sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_df) function_name_df
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_statement
(aliased_import
(dotted_name
(identifier_pandas) identifier_pandas
)dotted_name
(identifier_pd) identifier_pd
)aliased_import
)import_statement
(return_statement
(call
(attribute
(identifier_pd) identifier_pd
(identifier_concat) identifier_concat
)attribute
(argument_list
(list_comprehension
(call
(attribute
(identifier_w) identifier_w
(identifier_df) identifier_df
)attribute
(argument_list
(keyword_argument
(identifier_uwi) identifier_uwi
(True) True
)keyword_argument
)argument_list
)call
(for_in_clause
(identifier_w) identifier_w
(identifier_self) identifier_self
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Makes a pandas DataFrame containing Curve data for all the wells
in the Project. The DataFrame has a dual index of well UWI and
curve Depths. Requires `pandas`.
Args:
No arguments.
Returns:
`pandas.DataFrame`. |
(module
(function_definition
(function_name_get_site) function_name_get_site
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_num_args) identifier_num_args
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_num_args) identifier_num_args
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_site) identifier_site
(subscript
(identifier_args) identifier_args
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_num_args) identifier_num_args
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_host_name) identifier_host_name
(identifier_path_to_site) identifier_path_to_site
)pattern_list
(identifier_args) identifier_args
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_path_to_site) identifier_path_to_site
(conditional_expression
(binary_operator
(string_'/') string_'/'
(identifier_path_to_site) identifier_path_to_site
)binary_operator
(not_operator
(call
(attribute
(identifier_path_to_site) identifier_path_to_site
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
)not_operator
(identifier_path_to_site) identifier_path_to_site
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_site) identifier_site
(call
(attribute
(string_'{}:{}:') string_'{}:{}:'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_host_name) identifier_host_name
(identifier_path_to_site) identifier_path_to_site
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_num_args) identifier_num_args
(integer_3) integer_3
)comparison_operator
(block
(expression_statement
(assignment
(identifier_site) identifier_site
(call
(attribute
(string_',') string_','
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Incorrect number of arguments') string_'Incorrect number of arguments'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_self) identifier_self
(identifier_build_url) identifier_build_url
)attribute
(argument_list
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__endpoints) identifier__endpoints
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'get_site') string_'get_site'
)argument_list
)call
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_id) identifier_id
(identifier_site) identifier_site
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_con) identifier_con
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_response) identifier_response
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_site_constructor) identifier_site_constructor
)attribute
(argument_list
(keyword_argument
(identifier_parent) identifier_parent
(identifier_self) identifier_self
)keyword_argument
(dictionary_splat
(dictionary
(pair
(attribute
(identifier_self) identifier_self
(identifier__cloud_data_key) identifier__cloud_data_key
)attribute
(identifier_data) identifier_data
)pair
)dictionary
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a sharepoint site
:param args: It accepts multiple ways of retrieving a site:
get_site(host_name): the host_name: host_name ej.
'contoso.sharepoint.com' or 'root'
get_site(site_id): the site_id: a comma separated string of
(host_name, site_collection_id, site_id)
get_site(host_name, path_to_site): host_name ej. 'contoso.
sharepoint.com', path_to_site: a url path (with a leading slash)
get_site(host_name, site_collection_id, site_id):
host_name ej. 'contoso.sharepoint.com'
:rtype: Site |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_con) identifier_con
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_subpars) identifier_subpars
)attribute
(identifier_pars) identifier_pars
)attribute
(identifier_control) identifier_control
)attribute
)assignment
)expression_statement
(expression_statement
(call
(identifier_self) identifier_self
(argument_list
(binary_operator
(attribute
(identifier_con) identifier_con
(identifier_eqi1) identifier_eqi1
)attribute
(attribute
(identifier_con) identifier_con
(identifier_tind) identifier_tind
)attribute
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Update |KI1| based on |EQI1| and |TInd|.
>>> from hydpy.models.lland import *
>>> parameterstep('1d')
>>> eqi1(5.0)
>>> tind.value = 10.0
>>> derived.ki1.update()
>>> derived.ki1
ki1(50.0) |
(module
(function_definition
(function_name_fuzzy_subset) function_name_fuzzy_subset
(parameters
(identifier_str_) identifier_str_
)parameters
(block
(if_statement
(comparison_operator
(identifier_str_) identifier_str_
(None) None
)comparison_operator
(block
(return_statement
(identifier_str_) identifier_str_
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_':') string_':'
(identifier_str_) identifier_str_
)comparison_operator
(block
(return_statement
(call
(identifier_smart_cast) identifier_smart_cast
(argument_list
(identifier_str_) identifier_str_
(identifier_slice) identifier_slice
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(call
(attribute
(identifier_str_) identifier_str_
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'[') string_'['
)argument_list
)call
(block
(return_statement
(call
(identifier_smart_cast) identifier_smart_cast
(argument_list
(subscript
(identifier_str_) identifier_str_
(slice
(integer_1) integer_1
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(identifier_list) identifier_list
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_smart_cast) identifier_smart_cast
(argument_list
(identifier_str_) identifier_str_
(identifier_list) identifier_list
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | converts a string into an argument to list_take |
(module
(function_definition
(function_name_notify) function_name_notify
(parameters
(identifier_self) identifier_self
(identifier_msg) identifier_msg
(default_parameter
(identifier_color) identifier_color
(string_'green') string_'green'
)default_parameter
(default_parameter
(identifier_notify) identifier_notify
(string_'true') string_'true'
)default_parameter
(default_parameter
(identifier_message_format) identifier_message_format
(string_'text') string_'text'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_message_dict) identifier_message_dict
)attribute
(dictionary
(pair
(string_'message') string_'message'
(identifier_msg) identifier_msg
)pair
(pair
(string_'color') string_'color'
(identifier_color) identifier_color
)pair
(pair
(string_'notify') string_'notify'
(identifier_notify) identifier_notify
)pair
(pair
(string_'message_format') string_'message_format'
(identifier_message_format) identifier_message_format
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_debug) identifier_debug
)attribute
)not_operator
(block
(return_statement
(call
(attribute
(identifier_requests) identifier_requests
(identifier_post) identifier_post
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_notification_url) identifier_notification_url
)attribute
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_message_dict) identifier_message_dict
)attribute
)argument_list
)call
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(identifier_self) identifier_self
(identifier_headers) identifier_headers
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'HipChat message: <{}>') string_'HipChat message: <{}>'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(list
)list
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Send notification to specified HipChat room |
(module
(function_definition
(function_name__collapseMsg) function_name__collapseMsg
(parameters
(identifier_self) identifier_self
(identifier_msg) identifier_msg
)parameters
(block
(expression_statement
(assignment
(identifier_retval) identifier_retval
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_logname) identifier_logname
(identifier_msg) identifier_msg
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(string_u"") string_u""
)assignment
)expression_statement
(for_statement
(identifier_m) identifier_m
(subscript
(identifier_msg) identifier_msg
(identifier_logname) identifier_logname
)subscript
(block
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(identifier_bytes2unicode) identifier_bytes2unicode
(argument_list
(identifier_m) identifier_m
(attribute
(attribute
(identifier_self) identifier_self
(identifier_builder) identifier_builder
)attribute
(identifier_unicode_encoding) identifier_unicode_encoding
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_data) identifier_data
(identifier_m) identifier_m
)augmented_assignment
)expression_statement
)block
)for_statement
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_logname) identifier_logname
(identifier_tuple) identifier_tuple
)argument_list
)call
(comparison_operator
(subscript
(identifier_logname) identifier_logname
(integer_0) integer_0
)subscript
(string_'log') string_'log'
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_retval) identifier_retval
(string_'log') string_'log'
)subscript
(tuple
(subscript
(identifier_logname) identifier_logname
(integer_1) integer_1
)subscript
(identifier_data) identifier_data
)tuple
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_retval) identifier_retval
(identifier_logname) identifier_logname
)subscript
(identifier_data) identifier_data
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_retval) identifier_retval
)return_statement
)block
)function_definition
)module | Take msg, which is a dictionary of lists of output chunks, and
concatenate all the chunks into a single string |
(module
(function_definition
(function_name_make_link) function_name_make_link
(parameters
(identifier_title) identifier_title
(identifier_url) identifier_url
(default_parameter
(identifier_blank) identifier_blank
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_attrs) identifier_attrs
(binary_operator
(string_'href="%s"') string_'href="%s"'
(identifier_url) identifier_url
)binary_operator
)assignment
)expression_statement
(if_statement
(identifier_blank) identifier_blank
(block
(expression_statement
(augmented_assignment
(identifier_attrs) identifier_attrs
(string_' target="_blank" rel="noopener noreferrer"') string_' target="_blank" rel="noopener noreferrer"'
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(binary_operator
(string_'<a %s>%s</a>') string_'<a %s>%s</a>'
(tuple
(identifier_attrs) identifier_attrs
(identifier_title) identifier_title
)tuple
)binary_operator
)return_statement
)block
)function_definition
)module | Make a HTML link out of an URL.
Args:
title (str): Text to show for the link.
url (str): URL the link will point to.
blank (bool): If True, appends target=_blank, noopener and noreferrer to
the <a> element. Defaults to False. |
(module
(function_definition
(function_name_resolve_filename) function_name_resolve_filename
(parameters
(identifier_self) identifier_self
(identifier_package_dir) identifier_package_dir
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_sass_path) identifier_sass_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_package_dir) identifier_package_dir
(attribute
(identifier_self) identifier_self
(identifier_sass_path) identifier_sass_path
)attribute
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_strip_extension) identifier_strip_extension
)attribute
(block
(expression_statement
(assignment
(pattern_list
(identifier_filename) identifier_filename
(identifier__) identifier__
)pattern_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_css_filename) identifier_css_filename
(binary_operator
(identifier_filename) identifier_filename
(string_'.css') string_'.css'
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_css_path) identifier_css_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_package_dir) identifier_package_dir
(attribute
(identifier_self) identifier_self
(identifier_css_path) identifier_css_path
)attribute
(identifier_css_filename) identifier_css_filename
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_sass_path) identifier_sass_path
(identifier_css_path) identifier_css_path
)expression_list
)return_statement
)block
)function_definition
)module | Gets a proper full relative path of Sass source and
CSS source that will be generated, according to ``package_dir``
and ``filename``.
:param package_dir: the path of package directory
:type package_dir: :class:`str`, :class:`basestring`
:param filename: the filename of Sass/SCSS source to compile
:type filename: :class:`str`, :class:`basestring`
:returns: a pair of (sass, css) path
:rtype: :class:`tuple` |
(module
(function_definition
(function_name_export_data_object_info) function_name_export_data_object_info
(parameters
(identifier_bpmn_diagram) identifier_bpmn_diagram
(identifier_data_object_params) identifier_data_object_params
(identifier_output_element) identifier_output_element
)parameters
(block
(expression_statement
(call
(attribute
(identifier_output_element) identifier_output_element
(identifier_set) identifier_set
)attribute
(argument_list
(attribute
(attribute
(identifier_consts) identifier_consts
(identifier_Consts) identifier_Consts
)attribute
(identifier_is_collection) identifier_is_collection
)attribute
(subscript
(identifier_data_object_params) identifier_data_object_params
(attribute
(attribute
(identifier_consts) identifier_consts
(identifier_Consts) identifier_Consts
)attribute
(identifier_is_collection) identifier_is_collection
)attribute
)subscript
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Adds DataObject node attributes to exported XML element
:param bpmn_diagram: BPMNDiagramGraph class instantion representing a BPMN process diagram,
:param data_object_params: dictionary with given subprocess parameters,
:param output_element: object representing BPMN XML 'subprocess' element. |
(module
(function_definition
(function_name__gate_pre_offset) function_name__gate_pre_offset
(parameters
(identifier_self) identifier_self
(identifier_gate) identifier_gate
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_gates) identifier_gates
(subscript
(attribute
(identifier_self) identifier_self
(identifier_settings) identifier_settings
)attribute
(string_'gates') string_'gates'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_delta_pos) identifier_delta_pos
(subscript
(subscript
(identifier_gates) identifier_gates
(attribute
(attribute
(identifier_gate) identifier_gate
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)subscript
(string_'pre_offset') string_'pre_offset'
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(identifier_delta_pos) identifier_delta_pos
(call
(attribute
(identifier_self) identifier_self
(identifier__gate_offset) identifier__gate_offset
)attribute
(argument_list
(identifier_gate) identifier_gate
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_delta_pos) identifier_delta_pos
)return_statement
)block
)function_definition
)module | Return the offset to use before placing this gate.
:param string gate: The name of the gate whose pre-offset is desired.
:return: Offset to use before the gate.
:rtype: float |
(module
(function_definition
(function_name_sync_role_definitions) function_name_sync_role_definitions
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_from_statement
(dotted_name
(identifier_superset) identifier_superset
)dotted_name
(dotted_name
(identifier_conf) identifier_conf
)dotted_name
)import_from_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Syncing role definition') string_'Syncing role definition'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_create_custom_permissions) identifier_create_custom_permissions
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_role) identifier_set_role
)attribute
(argument_list
(string_'Admin') string_'Admin'
(attribute
(identifier_self) identifier_self
(identifier_is_admin_pvm) identifier_is_admin_pvm
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_role) identifier_set_role
)attribute
(argument_list
(string_'Alpha') string_'Alpha'
(attribute
(identifier_self) identifier_self
(identifier_is_alpha_pvm) identifier_is_alpha_pvm
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_role) identifier_set_role
)attribute
(argument_list
(string_'Gamma') string_'Gamma'
(attribute
(identifier_self) identifier_self
(identifier_is_gamma_pvm) identifier_is_gamma_pvm
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_role) identifier_set_role
)attribute
(argument_list
(string_'granter') string_'granter'
(attribute
(identifier_self) identifier_self
(identifier_is_granter_pvm) identifier_is_granter_pvm
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_role) identifier_set_role
)attribute
(argument_list
(string_'sql_lab') string_'sql_lab'
(attribute
(identifier_self) identifier_self
(identifier_is_sql_lab_pvm) identifier_is_sql_lab_pvm
)attribute
)argument_list
)call
)expression_statement
(if_statement
(call
(attribute
(identifier_conf) identifier_conf
(identifier_get) identifier_get
)attribute
(argument_list
(string_'PUBLIC_ROLE_LIKE_GAMMA') string_'PUBLIC_ROLE_LIKE_GAMMA'
(False) False
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_role) identifier_set_role
)attribute
(argument_list
(string_'Public') string_'Public'
(attribute
(identifier_self) identifier_self
(identifier_is_gamma_pvm) identifier_is_gamma_pvm
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_create_missing_perms) identifier_create_missing_perms
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_get_session) identifier_get_session
)attribute
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_clean_perms) identifier_clean_perms
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Inits the Superset application with security roles and such |
(module
(function_definition
(function_name_is_quote_artifact) function_name_is_quote_artifact
(parameters
(identifier_orig_text) identifier_orig_text
(identifier_span) identifier_span
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cursor) identifier_cursor
(call
(attribute
(identifier_re) identifier_re
(identifier_finditer) identifier_finditer
)attribute
(argument_list
(string_r'("|\')[^ .,:;?!()*+-].*?("|\')') string_r'("|\')[^ .,:;?!()*+-].*?("|\')'
(identifier_orig_text) identifier_orig_text
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_cursor) identifier_cursor
(block
(if_statement
(comparison_operator
(subscript
(call
(attribute
(identifier_item) identifier_item
(identifier_span) identifier_span
)attribute
(argument_list
)argument_list
)call
(integer_1) integer_1
)subscript
(subscript
(identifier_span) identifier_span
(integer_1) integer_1
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(True) True
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | Distinguish between quotes and units. |
(module
(function_definition
(function_name_visible_width) function_name_visible_width
(parameters
(identifier_string) identifier_string
)parameters
(block
(if_statement
(comparison_operator
(string_'\033') string_'\033'
(identifier_string) identifier_string
)comparison_operator
(block
(expression_statement
(assignment
(identifier_string) identifier_string
(call
(attribute
(identifier_RE_COLOR_ANSI) identifier_RE_COLOR_ANSI
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_'') string_''
(identifier_string) identifier_string
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_string) identifier_string
(call
(attribute
(identifier_string) identifier_string
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'u8') string_'u8'
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(tuple
(identifier_AttributeError) identifier_AttributeError
(identifier_UnicodeEncodeError) identifier_UnicodeEncodeError
)tuple
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_width) identifier_width
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_char) identifier_char
(identifier_string) identifier_string
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_unicodedata) identifier_unicodedata
(identifier_east_asian_width) identifier_east_asian_width
)attribute
(argument_list
(identifier_char) identifier_char
)argument_list
)call
(tuple
(string_'F') string_'F'
(string_'W') string_'W'
)tuple
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_width) identifier_width
(integer_2) integer_2
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_width) identifier_width
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_width) identifier_width
)return_statement
)block
)function_definition
)module | Get the visible width of a unicode string.
Some CJK unicode characters are more than one byte unlike ASCII and latin unicode characters.
From: https://github.com/Robpol86/terminaltables/pull/9
:param str string: String to measure.
:return: String's width.
:rtype: int |
(module
(function_definition
(function_name_temp_shell_task) function_name_temp_shell_task
(parameters
(identifier_cls) identifier_cls
(identifier_inp) identifier_inp
(default_parameter
(identifier_mpi_procs) identifier_mpi_procs
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_workdir) identifier_workdir
(None) None
)default_parameter
(default_parameter
(identifier_manager) identifier_manager
(None) None
)default_parameter
)parameters
(block
(import_statement
(dotted_name
(identifier_tempfile) identifier_tempfile
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_workdir) identifier_workdir
(conditional_expression
(call
(attribute
(identifier_tempfile) identifier_tempfile
(identifier_mkdtemp) identifier_mkdtemp
)attribute
(argument_list
)argument_list
)call
(comparison_operator
(identifier_workdir) identifier_workdir
(None) None
)comparison_operator
(identifier_workdir) identifier_workdir
)conditional_expression
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_manager) identifier_manager
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_manager) identifier_manager
(call
(attribute
(identifier_TaskManager) identifier_TaskManager
(identifier_from_user_config) identifier_from_user_config
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_task) identifier_task
(call
(attribute
(identifier_cls) identifier_cls
(identifier_from_input) identifier_from_input
)attribute
(argument_list
(identifier_inp) identifier_inp
(keyword_argument
(identifier_workdir) identifier_workdir
(identifier_workdir) identifier_workdir
)keyword_argument
(keyword_argument
(identifier_manager) identifier_manager
(call
(attribute
(identifier_manager) identifier_manager
(identifier_to_shell_manager) identifier_to_shell_manager
)attribute
(argument_list
(keyword_argument
(identifier_mpi_procs) identifier_mpi_procs
(identifier_mpi_procs) identifier_mpi_procs
)keyword_argument
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_task) identifier_task
(identifier_set_name) identifier_set_name
)attribute
(argument_list
(string_'temp_shell_task') string_'temp_shell_task'
)argument_list
)call
)expression_statement
(return_statement
(identifier_task) identifier_task
)return_statement
)block
)function_definition
)module | Build a Task with a temporary workdir. The task is executed via the shell with 1 MPI proc.
Mainly used for invoking Abinit to get important parameters needed to prepare the real task.
Args:
mpi_procs: Number of MPI processes to use. |
(module
(function_definition
(function_name__get_redis_keys_opts) function_name__get_redis_keys_opts
(parameters
)parameters
(block
(return_statement
(dictionary
(pair
(string_'bank_prefix') string_'bank_prefix'
(call
(attribute
(identifier___opts__) identifier___opts__
(identifier_get) identifier_get
)attribute
(argument_list
(string_'cache.redis.bank_prefix') string_'cache.redis.bank_prefix'
(identifier__BANK_PREFIX) identifier__BANK_PREFIX
)argument_list
)call
)pair
(pair
(string_'bank_keys_prefix') string_'bank_keys_prefix'
(call
(attribute
(identifier___opts__) identifier___opts__
(identifier_get) identifier_get
)attribute
(argument_list
(string_'cache.redis.bank_keys_prefix') string_'cache.redis.bank_keys_prefix'
(identifier__BANK_KEYS_PREFIX) identifier__BANK_KEYS_PREFIX
)argument_list
)call
)pair
(pair
(string_'key_prefix') string_'key_prefix'
(call
(attribute
(identifier___opts__) identifier___opts__
(identifier_get) identifier_get
)attribute
(argument_list
(string_'cache.redis.key_prefix') string_'cache.redis.key_prefix'
(identifier__KEY_PREFIX) identifier__KEY_PREFIX
)argument_list
)call
)pair
(pair
(string_'separator') string_'separator'
(call
(attribute
(identifier___opts__) identifier___opts__
(identifier_get) identifier_get
)attribute
(argument_list
(string_'cache.redis.separator') string_'cache.redis.separator'
(identifier__SEPARATOR) identifier__SEPARATOR
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Build the key opts based on the user options. |
(module
(function_definition
(function_name_set_path) function_name_set_path
(parameters
(identifier_dicts) identifier_dicts
(identifier_keys) identifier_keys
(identifier_v) identifier_v
)parameters
(block
(for_statement
(identifier_key) identifier_key
(subscript
(identifier_keys) identifier_keys
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(block
(expression_statement
(assignment
(identifier_dicts) identifier_dicts
(call
(attribute
(identifier_dicts) identifier_dicts
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(identifier_key) identifier_key
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_dicts) identifier_dicts
(call
(attribute
(identifier_dicts) identifier_dicts
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(subscript
(identifier_keys) identifier_keys
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_dicts) identifier_dicts
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Helper function for modifying nested dictionaries
:param dicts: dict: the given dictionary
:param keys: list str: path to added value
:param v: str: value to be added
Example:
>>> d = dict()
>>> set_path(d, ['a', 'b', 'c'], 'd')
>>> d
{'a': {'b': {'c': ['d']}}}
In case of duplicate paths, the additional value will
be added to the leaf node rather than simply replace it:
>>> set_path(d, ['a', 'b', 'c'], 'e')
>>> d
{'a': {'b': {'c': ['d', 'e']}}} |
(module
(function_definition
(function_name_set_sample_probability) function_name_set_sample_probability
(parameters
(identifier_probability) identifier_probability
)parameters
(block
(global_statement
(identifier__sample_probability) identifier__sample_probability
)global_statement
(if_statement
(not_operator
(comparison_operator
(float_0.0) float_0.0
(identifier_probability) identifier_probability
(float_1.0) float_1.0
)comparison_operator
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Invalid probability value') string_'Invalid probability value'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Setting sample probability to %.2f') string_'Setting sample probability to %.2f'
(identifier_probability) identifier_probability
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier__sample_probability) identifier__sample_probability
(call
(identifier_float) identifier_float
(argument_list
(identifier_probability) identifier_probability
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Set the probability that a batch will be submitted to the InfluxDB
server. This should be a value that is greater than or equal to ``0`` and
less than or equal to ``1.0``. A value of ``0.25`` would represent a
probability of 25% that a batch would be written to InfluxDB.
:param float probability: The value between 0 and 1.0 that represents the
probability that a batch will be submitted to the InfluxDB server. |
(module
(function_definition
(function_name_getSampleFrequency) function_name_getSampleFrequency
(parameters
(identifier_self) identifier_self
(identifier_chn) identifier_chn
)parameters
(block
(if_statement
(comparison_operator
(integer_0) integer_0
(identifier_chn) identifier_chn
(attribute
(identifier_self) identifier_self
(identifier_signals_in_file) identifier_signals_in_file
)attribute
)comparison_operator
(block
(return_statement
(call
(identifier_round) identifier_round
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_samplefrequency) identifier_samplefrequency
)attribute
(argument_list
(identifier_chn) identifier_chn
)argument_list
)call
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns the samplefrequency of signal edfsignal.
Parameters
----------
chn : int
channel number
Examples
--------
>>> import pyedflib
>>> f = pyedflib.data.test_generator()
>>> f.getSampleFrequency(0)==200.0
True
>>> f._close()
>>> del f |
(module
(function_definition
(function_name__get_rsa_key) function_name__get_rsa_key
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(string_'https://steamcommunity.com/mobilelogin/getrsakey/') string_'https://steamcommunity.com/mobilelogin/getrsakey/'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_values) identifier_values
(dictionary
(pair
(string_'username') string_'username'
(attribute
(identifier_self) identifier_self
(identifier__username) identifier__username
)attribute
)pair
(pair
(string_'donotcache') string_'donotcache'
(call
(attribute
(identifier_self) identifier_self
(identifier__get_donotcachetime) identifier__get_donotcachetime
)attribute
(argument_list
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_req) identifier_req
(call
(attribute
(identifier_self) identifier_self
(identifier_post) identifier_post
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_data) identifier_data
(identifier_values) identifier_values
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_req) identifier_req
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(subscript
(identifier_data) identifier_data
(string_'success') string_'success'
)subscript
)not_operator
(block
(raise_statement
(call
(identifier_SteamWebError) identifier_SteamWebError
(argument_list
(string_'Failed to get RSA key') string_'Failed to get RSA key'
(identifier_data) identifier_data
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_mod) identifier_mod
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_data) identifier_data
(string_'publickey_mod') string_'publickey_mod'
)subscript
)argument_list
)call
(integer_16) integer_16
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_exp) identifier_exp
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_data) identifier_data
(string_'publickey_exp') string_'publickey_exp'
)subscript
)argument_list
)call
(integer_16) integer_16
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rsa) identifier_rsa
(call
(attribute
(identifier_RSA) identifier_RSA
(identifier_construct) identifier_construct
)attribute
(argument_list
(tuple
(identifier_mod) identifier_mod
(identifier_exp) identifier_exp
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_rsa_cipher) identifier_rsa_cipher
)attribute
(call
(attribute
(identifier_PKCS1_v1_5) identifier_PKCS1_v1_5
(identifier_new) identifier_new
)attribute
(argument_list
(identifier_rsa) identifier_rsa
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_rsa_timestamp) identifier_rsa_timestamp
)attribute
(subscript
(identifier_data) identifier_data
(string_'timestamp') string_'timestamp'
)subscript
)assignment
)expression_statement
)block
)function_definition
)module | get steam RSA key, build and return cipher |
(module
(function_definition
(function_name_get_meta) function_name_get_meta
(parameters
(identifier_self) identifier_self
(identifier_table_name) identifier_table_name
(default_parameter
(identifier_constraints) identifier_constraints
(None) None
)default_parameter
(default_parameter
(identifier_column_to_field_name) identifier_column_to_field_name
(None) None
)default_parameter
(default_parameter
(identifier_is_view) identifier_is_view
(False) False
)default_parameter
(default_parameter
(identifier_is_partition) identifier_is_partition
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_meta) identifier_meta
(list
(string_" class Meta(models.Model.Meta):") string_" class Meta(models.Model.Meta):"
(binary_operator
(string_" db_table = '%s'") string_" db_table = '%s'"
(identifier_table_name) identifier_table_name
)binary_operator
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_vendor) identifier_vendor
)attribute
(string_'salesforce') string_'salesforce'
)comparison_operator
(block
(for_statement
(identifier_line) identifier_line
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_introspection) identifier_introspection
)attribute
(identifier_get_additional_meta) identifier_get_additional_meta
)attribute
(argument_list
(identifier_table_name) identifier_table_name
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_meta) identifier_meta
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_" ") string_" "
(identifier_line) identifier_line
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_meta) identifier_meta
(identifier_append) identifier_append
)attribute
(argument_list
(string_"") string_""
)argument_list
)call
)expression_statement
(return_statement
(identifier_meta) identifier_meta
)return_statement
)block
)function_definition
)module | Return a sequence comprising the lines of code necessary
to construct the inner Meta class for the model corresponding
to the given database table name. |
(module
(function_definition
(function_name_as_fs) function_name_as_fs
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(attribute
(identifier_self) identifier_self
(identifier__standard_value) identifier__standard_value
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_idx) identifier_idx
(integer_0) integer_0
)assignment
)expression_statement
(while_statement
(parenthesized_expression
(comparison_operator
(identifier_idx) identifier_idx
(call
(identifier_len) identifier_len
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)comparison_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_c) identifier_c
(subscript
(identifier_s) identifier_s
(identifier_idx) identifier_idx
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_c) identifier_c
(string_"\\") string_"\\"
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_c) identifier_c
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_nextchr) identifier_nextchr
(subscript
(identifier_s) identifier_s
(binary_operator
(identifier_idx) identifier_idx
(integer_1) integer_1
)binary_operator
)subscript
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_nextchr) identifier_nextchr
(string_".") string_"."
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(identifier_nextchr) identifier_nextchr
(string_"-") string_"-"
)comparison_operator
)parenthesized_expression
)boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_nextchr) identifier_nextchr
(string_"_") string_"_"
)comparison_operator
)parenthesized_expression
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_nextchr) identifier_nextchr
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_idx) identifier_idx
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(string_"\\") string_"\\"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_nextchr) identifier_nextchr
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_idx) identifier_idx
(integer_2) integer_2
)augmented_assignment
)expression_statement
(continue_statement
)continue_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
(expression_statement
(augmented_assignment
(identifier_idx) identifier_idx
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)while_statement
(return_statement
(call
(attribute
(string_"") string_""
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the value of component encoded as formatted string.
Inspect each character in value of component.
Certain nonalpha characters pass thru without escaping
into the result, but most retain escaping.
:returns: Formatted string associated with component
:rtype: string |
(module
(function_definition
(function_name__path_completer_grammar) function_name__path_completer_grammar
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__path_completer_grammar_cache) identifier__path_completer_grammar_cache
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__path_completer_grammar_cache) identifier__path_completer_grammar_cache
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__create_path_completer_grammar) identifier__create_path_completer_grammar
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__path_completer_grammar_cache) identifier__path_completer_grammar_cache
)attribute
)return_statement
)block
)function_definition
)module | Return the grammar for matching paths inside strings inside Python
code. |
(module
(function_definition
(function_name_MakeDestinationKey) function_name_MakeDestinationKey
(parameters
(identifier_directory) identifier_directory
(identifier_filename) identifier_filename
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
(identifier_utils) identifier_utils
(identifier_SmartStr) identifier_SmartStr
)attribute
(argument_list
(call
(attribute
(identifier_utils) identifier_utils
(identifier_JoinPath) identifier_JoinPath
)attribute
(argument_list
(identifier_directory) identifier_directory
(identifier_filename) identifier_filename
)argument_list
)call
)argument_list
)call
(identifier_lstrip) identifier_lstrip
)attribute
(argument_list
(string_"/") string_"/"
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates a name that identifies a database file. |
(module
(function_definition
(function_name_data_lookup_method) function_name_data_lookup_method
(parameters
(identifier_fields_list) identifier_fields_list
(identifier_mongo_db_obj) identifier_mongo_db_obj
(identifier_hist) identifier_hist
(identifier_record) identifier_record
(identifier_lookup_type) identifier_lookup_type
)parameters
(block
(if_statement
(comparison_operator
(identifier_hist) identifier_hist
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_hist) identifier_hist
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_field) identifier_field
(identifier_record) identifier_record
(block
(if_statement
(boolean_operator
(comparison_operator
(subscript
(identifier_record) identifier_record
(identifier_field) identifier_field
)subscript
(string_'') string_''
)comparison_operator
(comparison_operator
(subscript
(identifier_record) identifier_record
(identifier_field) identifier_field
)subscript
(None) None
)comparison_operator
)boolean_operator
(block
(if_statement
(comparison_operator
(identifier_field) identifier_field
(identifier_fields_list) identifier_fields_list
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_lookup_type) identifier_lookup_type
(subscript
(subscript
(identifier_fields_list) identifier_fields_list
(identifier_field) identifier_field
)subscript
(string_'lookup') string_'lookup'
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_field_val_new) identifier_field_val_new
(identifier_hist) identifier_hist
)pattern_list
(call
(identifier_DataLookup) identifier_DataLookup
(argument_list
(keyword_argument
(identifier_fieldVal) identifier_fieldVal
(subscript
(identifier_record) identifier_record
(identifier_field) identifier_field
)subscript
)keyword_argument
(keyword_argument
(identifier_db) identifier_db
(identifier_mongo_db_obj) identifier_mongo_db_obj
)keyword_argument
(keyword_argument
(identifier_lookupType) identifier_lookupType
(identifier_lookup_type) identifier_lookup_type
)keyword_argument
(keyword_argument
(identifier_fieldName) identifier_fieldName
(identifier_field) identifier_field
)keyword_argument
(keyword_argument
(identifier_histObj) identifier_histObj
(identifier_hist) identifier_hist
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_record) identifier_record
(identifier_field) identifier_field
)subscript
(identifier_field_val_new) identifier_field_val_new
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
(return_statement
(expression_list
(identifier_record) identifier_record
(identifier_hist) identifier_hist
)expression_list
)return_statement
)block
)function_definition
)module | Method to lookup the replacement value given a single input value from
the same field.
:param dict fields_list: Fields configurations
:param MongoClient mongo_db_obj: MongoDB collection object
:param dict hist: existing input of history values object
:param dict record: values to validate
:param str lookup_type: Type of lookup |
(module
(function_definition
(function_name_start_watcher_thread) function_name_start_watcher_thread
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_watcher_thread) identifier_watcher_thread
(call
(attribute
(identifier_threading) identifier_threading
(identifier_Thread) identifier_Thread
)attribute
(argument_list
(keyword_argument
(identifier_target) identifier_target
(attribute
(identifier_self) identifier_self
(identifier_run_watcher) identifier_run_watcher
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__reload_mode) identifier__reload_mode
)attribute
(attribute
(identifier_self) identifier_self
(identifier_RELOAD_MODE_V_SPAWN_WAIT) identifier_RELOAD_MODE_V_SPAWN_WAIT
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_daemon) identifier_daemon
(False) False
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_daemon) identifier_daemon
(True) True
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_watcher_thread) identifier_watcher_thread
(identifier_setDaemon) identifier_setDaemon
)attribute
(argument_list
(identifier_daemon) identifier_daemon
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_watcher_thread) identifier_watcher_thread
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_watcher_thread) identifier_watcher_thread
)return_statement
)block
)function_definition
)module | Start watcher thread.
:return:
Watcher thread object. |
(module
(function_definition
(function_name_detectOperaMobile) function_name_detectOperaMobile
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_UAgentInfo) identifier_UAgentInfo
(identifier_engineOpera) identifier_engineOpera
)attribute
(attribute
(identifier_self) identifier_self
(identifier___userAgent) identifier___userAgent
)attribute
)comparison_operator
(line_continuation_\) line_continuation_\
(parenthesized_expression
(boolean_operator
(comparison_operator
(attribute
(identifier_UAgentInfo) identifier_UAgentInfo
(identifier_mini) identifier_mini
)attribute
(attribute
(identifier_self) identifier_self
(identifier___userAgent) identifier___userAgent
)attribute
)comparison_operator
(comparison_operator
(attribute
(identifier_UAgentInfo) identifier_UAgentInfo
(identifier_mobi) identifier_mobi
)attribute
(attribute
(identifier_self) identifier_self
(identifier___userAgent) identifier___userAgent
)attribute
)comparison_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
)return_statement
)block
)function_definition
)module | Return detection of an Opera browser for a mobile device
Detects Opera Mobile or Opera Mini. |
(module
(function_definition
(function_name_get_proposed_feature) function_name_get_proposed_feature
(parameters
(identifier_project) identifier_project
)parameters
(block
(expression_statement
(assignment
(identifier_change_collector) identifier_change_collector
(call
(identifier_ChangeCollector) identifier_ChangeCollector
(argument_list
(identifier_project) identifier_project
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_collected_changes) identifier_collected_changes
(call
(attribute
(identifier_change_collector) identifier_change_collector
(identifier_collect_changes) identifier_collect_changes
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_new_feature_info) identifier_new_feature_info
(call
(identifier_one_or_raise) identifier_one_or_raise
(argument_list
(attribute
(identifier_collected_changes) identifier_collected_changes
(identifier_new_feature_info) identifier_new_feature_info
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_importer) identifier_importer
(identifier__) identifier__
(identifier__) identifier__
)pattern_list
(identifier_new_feature_info) identifier_new_feature_info
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_BalletError) identifier_BalletError
(argument_list
(string_'Too many features collected') string_'Too many features collected'
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_module) identifier_module
(call
(identifier_importer) identifier_importer
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_feature) identifier_feature
(call
(identifier__get_contrib_feature_from_module) identifier__get_contrib_feature_from_module
(argument_list
(identifier_module) identifier_module
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_feature) identifier_feature
)return_statement
)block
)function_definition
)module | Get the proposed feature
The path of the proposed feature is determined by diffing the project
against a comparison branch, such as master. The feature is then imported
from that path and returned.
Args:
project (ballet.project.Project): project info
Raises:
ballet.exc.BalletError: more than one feature collected |
(module
(function_definition
(function_name_surface_or_abstract) function_name_surface_or_abstract
(parameters
(identifier_cls) identifier_cls
(identifier_predstr) identifier_predstr
)parameters
(block
(if_statement
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_predstr) identifier_predstr
(identifier_strip) identifier_strip
)attribute
(argument_list
(string_'"') string_'"'
)argument_list
)call
(identifier_lstrip) identifier_lstrip
)attribute
(argument_list
(string_"'") string_"'"
)argument_list
)call
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'_') string_'_'
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier_surface) identifier_surface
)attribute
(argument_list
(identifier_predstr) identifier_predstr
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier_abstract) identifier_abstract
)attribute
(argument_list
(identifier_predstr) identifier_predstr
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Instantiate a Pred from either its surface or abstract symbol. |
(module
(function_definition
(function_name_quantile) function_name_quantile
(parameters
(identifier_data) identifier_data
(identifier_weights) identifier_weights
(identifier_quantile) identifier_quantile
)parameters
(block
(expression_statement
(assignment
(identifier_nd) identifier_nd
(attribute
(identifier_data) identifier_data
(identifier_ndim) identifier_ndim
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_nd) identifier_nd
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"data must have at least one dimension") string_"data must have at least one dimension"
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_nd) identifier_nd
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(call
(identifier_quantile_1D) identifier_quantile_1D
(argument_list
(identifier_data) identifier_data
(identifier_weights) identifier_weights
(identifier_quantile) identifier_quantile
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_nd) identifier_nd
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_n) identifier_n
(attribute
(identifier_data) identifier_data
(identifier_shape) identifier_shape
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_imr) identifier_imr
(call
(attribute
(identifier_data) identifier_data
(identifier_reshape) identifier_reshape
)attribute
(argument_list
(tuple
(call
(attribute
(identifier_np) identifier_np
(identifier_prod) identifier_prod
)attribute
(argument_list
(subscript
(identifier_n) identifier_n
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)argument_list
)call
(subscript
(identifier_n) identifier_n
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_np) identifier_np
(identifier_apply_along_axis) identifier_apply_along_axis
)attribute
(argument_list
(identifier_quantile_1D) identifier_quantile_1D
(unary_operator
(integer_1) integer_1
)unary_operator
(identifier_imr) identifier_imr
(identifier_weights) identifier_weights
(identifier_quantile) identifier_quantile
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_reshape) identifier_reshape
)attribute
(argument_list
(subscript
(identifier_n) identifier_n
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)argument_list
)call
)return_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Weighted quantile of an array with respect to the last axis.
Parameters
----------
data : ndarray
Input array.
weights : ndarray
Array with the weights. It must have the same size of the last
axis of `data`.
quantile : float
Quantile to compute. It must have a value between 0 and 1.
Returns
-------
quantile : float
The output value. |
(module
(function_definition
(function_name_shipping_rate) function_name_shipping_rate
(parameters
(identifier_context) identifier_context
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_settings) identifier_settings
(call
(attribute
(identifier_Configuration) identifier_Configuration
(identifier_for_site) identifier_for_site
)attribute
(argument_list
(attribute
(subscript
(identifier_context) identifier_context
(string_"request") string_"request"
)subscript
(identifier_site) identifier_site
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_code) identifier_code
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'code') string_'code'
(None) None
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'name') string_'name'
(None) None
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_get_shipping_cost) identifier_get_shipping_cost
(argument_list
(identifier_settings) identifier_settings
(identifier_code) identifier_code
(identifier_name) identifier_name
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the shipping rate for a country & shipping option name. |
(module
(function_definition
(function_name_values) function_name_values
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ui) identifier_ui
)attribute
(identifier_hzBtn) identifier_hzBtn
)attribute
(identifier_isChecked) identifier_isChecked
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_fscale) identifier_fscale
(attribute
(identifier_SmartSpinBox) identifier_SmartSpinBox
(identifier_Hz) identifier_Hz
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_fscale) identifier_fscale
(attribute
(identifier_SmartSpinBox) identifier_SmartSpinBox
(identifier_kHz) identifier_kHz
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ui) identifier_ui
)attribute
(identifier_msBtn) identifier_msBtn
)attribute
(identifier_isChecked) identifier_isChecked
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_tscale) identifier_tscale
(attribute
(identifier_SmartSpinBox) identifier_SmartSpinBox
(identifier_MilliSeconds) identifier_MilliSeconds
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_tscale) identifier_tscale
(attribute
(identifier_SmartSpinBox) identifier_SmartSpinBox
(identifier_Seconds) identifier_Seconds
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(expression_list
(identifier_fscale) identifier_fscale
(identifier_tscale) identifier_tscale
)expression_list
)return_statement
)block
)function_definition
)module | Gets the scales that the user chose
| For frequency: 1 = Hz, 1000 = kHz
| For time: 1 = seconds, 0.001 = ms
:returns: float, float -- frequency scaling, time scaling |
(module
(function_definition
(function_name__set_fqdn) function_name__set_fqdn
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_results) identifier_results
(call
(attribute
(identifier_self) identifier_self
(identifier__search) identifier__search
)attribute
(argument_list
(string_'cn=config') string_'cn=config'
(string_'(objectClass=*)') string_'(objectClass=*)'
(list
(string_'nsslapd-localhost') string_'nsslapd-localhost'
)list
(keyword_argument
(identifier_scope) identifier_scope
(attribute
(identifier_ldap) identifier_ldap
(identifier_SCOPE_BASE) identifier_SCOPE_BASE
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(identifier_results) identifier_results
)not_operator
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_results) identifier_results
)argument_list
)call
(identifier_list) identifier_list
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(None) None
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(pattern_list
(identifier_dn) identifier_dn
(identifier_attrs) identifier_attrs
)pattern_list
(subscript
(identifier_results) identifier_results
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(subscript
(subscript
(identifier_attrs) identifier_attrs
(string_'nsslapd-localhost') string_'nsslapd-localhost'
)subscript
(integer_0) integer_0
)subscript
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__fqdn) identifier__fqdn
)attribute
(identifier_r) identifier_r
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_'FQDN: %s') string_'FQDN: %s'
(attribute
(identifier_self) identifier_self
(identifier__fqdn) identifier__fqdn
)attribute
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Get FQDN from LDAP |
(module
(function_definition
(function_name_is_constant) function_name_is_constant
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_qc) identifier_qc
(type
(identifier_QuantumComputer) identifier_QuantumComputer
)type
)typed_parameter
(typed_parameter
(identifier_bitstring_map) identifier_bitstring_map
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__init_attr) identifier__init_attr
)attribute
(argument_list
(identifier_bitstring_map) identifier_bitstring_map
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_prog) identifier_prog
(call
(identifier_Program) identifier_Program
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dj_ro) identifier_dj_ro
(call
(attribute
(identifier_prog) identifier_prog
(identifier_declare) identifier_declare
)attribute
(argument_list
(string_'ro') string_'ro'
(string_'BIT') string_'BIT'
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_computational_qubits) identifier_computational_qubits
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_prog) identifier_prog
(attribute
(identifier_self) identifier_self
(identifier_deutsch_jozsa_circuit) identifier_deutsch_jozsa_circuit
)attribute
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_prog) identifier_prog
(list_comprehension
(call
(identifier_MEASURE) identifier_MEASURE
(argument_list
(identifier_qubit) identifier_qubit
(identifier_ro) identifier_ro
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_qubit) identifier_qubit
(identifier_ro) identifier_ro
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_computational_qubits) identifier_computational_qubits
)attribute
(identifier_dj_ro) identifier_dj_ro
)argument_list
)call
)for_in_clause
)list_comprehension
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_executable) identifier_executable
(call
(attribute
(identifier_qc) identifier_qc
(identifier_compile) identifier_compile
)attribute
(argument_list
(identifier_prog) identifier_prog
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_returned_bitstring) identifier_returned_bitstring
(call
(attribute
(identifier_qc) identifier_qc
(identifier_run) identifier_run
)attribute
(argument_list
(identifier_executable) identifier_executable
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bitstring) identifier_bitstring
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_returned_bitstring) identifier_returned_bitstring
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_int) identifier_int
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_constant) identifier_constant
(call
(identifier_all) identifier_all
(argument_list
(list_comprehension
(comparison_operator
(identifier_bit) identifier_bit
(integer_0) integer_0
)comparison_operator
(for_in_clause
(identifier_bit) identifier_bit
(identifier_bitstring) identifier_bitstring
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_constant) identifier_constant
)return_statement
)block
)function_definition
)module | Computes whether bitstring_map represents a constant function, given that it is constant
or balanced. Constant means all inputs map to the same value, balanced means half of the
inputs maps to one value, and half to the other.
:param QVMConnection cxn: The connection object to the Rigetti cloud to run pyQuil programs.
:param bitstring_map: A dictionary whose keys are bitstrings, and whose values are bits
represented as strings.
:type bistring_map: Dict[String, String]
:return: True if the bitstring_map represented a constant function, false otherwise.
:rtype: bool |
(module
(function_definition
(function_name__parse_stop_words_file) function_name__parse_stop_words_file
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_language) identifier_language
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_loaded) identifier_loaded
(False) False
)assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Loading stop words in %s') string_'Loading stop words in %s'
(identifier_path) identifier_path
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_language) identifier_language
(subscript
(call
(attribute
(identifier_path) identifier_path
(identifier_split) identifier_split
)attribute
(argument_list
(string_'-') string_'-'
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)assignment
)expression_statement
(if_statement
(not_operator
(comparison_operator
(identifier_language) identifier_language
(attribute
(identifier_self) identifier_self
(identifier___stop_words) identifier___stop_words
)attribute
)comparison_operator
)not_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier___stop_words) identifier___stop_words
)attribute
(identifier_language) identifier_language
)subscript
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_codecs) identifier_codecs
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_path) identifier_path
(string_'r') string_'r'
(string_'UTF-8') string_'UTF-8'
)argument_list
)call
(as_pattern_target
(identifier_file) identifier_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_loaded) identifier_loaded
(True) True
)assignment
)expression_statement
(for_statement
(identifier_word) identifier_word
(identifier_file) identifier_file
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier___stop_words) identifier___stop_words
)attribute
(identifier_language) identifier_language
)subscript
(identifier_add) identifier_add
)attribute
(argument_list
(call
(attribute
(identifier_word) identifier_word
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
)block
)if_statement
(return_statement
(identifier_loaded) identifier_loaded
)return_statement
)block
)function_definition
)module | Load stop words from the given path.
Parse the stop words file, saving each word found in it in a set
for the language of the file. This language is obtained from
the file name. If the file doesn't exist, the method will have
no effect.
Args:
path: Path to the stop words file.
Returns:
A boolean indicating whether the file was loaded. |
(module
(function_definition
(function_name_mac_set_relative_dylib_deps) function_name_mac_set_relative_dylib_deps
(parameters
(identifier_libname) identifier_libname
)parameters
(block
(import_from_statement
(dotted_name
(identifier_PyInstaller) identifier_PyInstaller
(identifier_lib) identifier_lib
(identifier_macholib) identifier_macholib
)dotted_name
(dotted_name
(identifier_util) identifier_util
)dotted_name
)import_from_statement
(import_from_statement
(dotted_name
(identifier_PyInstaller) identifier_PyInstaller
(identifier_lib) identifier_lib
(identifier_macholib) identifier_macholib
(identifier_MachO) identifier_MachO
)dotted_name
(dotted_name
(identifier_MachO) identifier_MachO
)dotted_name
)import_from_statement
(if_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_libname) identifier_libname
)argument_list
)call
(identifier__BOOTLOADER_FNAMES) identifier__BOOTLOADER_FNAMES
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(function_definition
(function_name_match_func) function_name_match_func
(parameters
(identifier_pth) identifier_pth
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_util) identifier_util
(identifier_in_system_path) identifier_in_system_path
)attribute
(argument_list
(identifier_pth) identifier_pth
)argument_list
)call
)not_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(string_'@executable_path') string_'@executable_path'
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_pth) identifier_pth
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_dll) identifier_dll
(call
(identifier_MachO) identifier_MachO
(argument_list
(identifier_libname) identifier_libname
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_dll) identifier_dll
(identifier_rewriteLoadCommands) identifier_rewriteLoadCommands
)attribute
(argument_list
(identifier_match_func) identifier_match_func
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(identifier_open) identifier_open
(argument_list
(attribute
(identifier_dll) identifier_dll
(identifier_filename) identifier_filename
)attribute
(string_'rb+') string_'rb+'
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_header) identifier_header
(attribute
(identifier_dll) identifier_dll
(identifier_headers) identifier_headers
)attribute
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_seek) identifier_seek
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_dll) identifier_dll
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_seek) identifier_seek
)attribute
(argument_list
(integer_0) integer_0
(integer_2) integer_2
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | On Mac OS X set relative paths to dynamic library dependencies of `libname`.
Relative paths allow to avoid using environment variable DYLD_LIBRARY_PATH.
There are known some issues with DYLD_LIBRARY_PATH. Relative paths is
more flexible mechanism.
Current location of dependend libraries is derived from the location
of the executable (paths start with '@executable_path').
@executable_path or @loader_path fail in some situations
(@loader_path - qt4 plugins, @executable_path -
Python built-in hashlib module). |
(module
(function_definition
(function_name__read_console_output) function_name__read_console_output
(parameters
(identifier_self) identifier_self
(identifier_ws) identifier_ws
(identifier_out) identifier_out
)parameters
(block
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(yield
(call
(attribute
(identifier_ws) identifier_ws
(identifier_receive) identifier_receive
)attribute
(argument_list
)argument_list
)call
)yield
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_msg) identifier_msg
(identifier_tp) identifier_tp
)attribute
(attribute
(attribute
(identifier_aiohttp) identifier_aiohttp
(identifier_WSMsgType) identifier_WSMsgType
)attribute
(identifier_text) identifier_text
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_feed_data) identifier_feed_data
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_msg) identifier_msg
(identifier_data) identifier_data
)attribute
(identifier_encode) identifier_encode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_msg) identifier_msg
(identifier_tp) identifier_tp
)attribute
(attribute
(attribute
(identifier_aiohttp) identifier_aiohttp
(identifier_WSMsgType) identifier_WSMsgType
)attribute
(identifier_BINARY) identifier_BINARY
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_feed_data) identifier_feed_data
)attribute
(argument_list
(attribute
(identifier_msg) identifier_msg
(identifier_data) identifier_data
)attribute
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(attribute
(identifier_msg) identifier_msg
(identifier_tp) identifier_tp
)attribute
(attribute
(attribute
(identifier_aiohttp) identifier_aiohttp
(identifier_WSMsgType) identifier_WSMsgType
)attribute
(identifier_ERROR) identifier_ERROR
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_critical) identifier_critical
)attribute
(argument_list
(call
(attribute
(string_"Docker WebSocket Error: {}") string_"Docker WebSocket Error: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_msg) identifier_msg
(identifier_data) identifier_data
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_feed_eof) identifier_feed_eof
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_ws) identifier_ws
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(break_statement
)break_statement
)block
)else_clause
)if_statement
)block
)while_statement
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_stop) identifier_stop
)attribute
(argument_list
)argument_list
)call
)yield
)expression_statement
)block
)function_definition
)module | Read Websocket and forward it to the telnet
:param ws: Websocket connection
:param out: Output stream |
(module
(function_definition
(function_name_get_all_dbparameter_groups) function_name_get_all_dbparameter_groups
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_groupname) identifier_groupname
(None) None
)default_parameter
(default_parameter
(identifier_max_records) identifier_max_records
(None) None
)default_parameter
(default_parameter
(identifier_marker) identifier_marker
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_groupname) identifier_groupname
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'DBParameterGroupName') string_'DBParameterGroupName'
)subscript
(identifier_groupname) identifier_groupname
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_max_records) identifier_max_records
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'MaxRecords') string_'MaxRecords'
)subscript
(identifier_max_records) identifier_max_records
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_marker) identifier_marker
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'Marker') string_'Marker'
)subscript
(identifier_marker) identifier_marker
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_list) identifier_get_list
)attribute
(argument_list
(string_'DescribeDBParameterGroups') string_'DescribeDBParameterGroups'
(identifier_params) identifier_params
(list
(tuple
(string_'DBParameterGroup') string_'DBParameterGroup'
(identifier_ParameterGroup) identifier_ParameterGroup
)tuple
)list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get all parameter groups associated with your account in a region.
:type groupname: str
:param groupname: The name of the DBParameter group to retrieve.
If not provided, all DBParameter groups will be returned.
:type max_records: int
:param max_records: The maximum number of records to be returned.
If more results are available, a MoreToken will
be returned in the response that can be used to
retrieve additional records. Default is 100.
:type marker: str
:param marker: The marker provided by a previous request.
:rtype: list
:return: A list of :class:`boto.ec2.parametergroup.ParameterGroup` |
(module
(function_definition
(function_name_patch_conf) function_name_patch_conf
(parameters
(default_parameter
(identifier_settings_patch) identifier_settings_patch
(None) None
)default_parameter
(default_parameter
(identifier_settings_file) identifier_settings_file
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_settings_patch) identifier_settings_patch
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_settings_patch) identifier_settings_patch
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_reload_config) identifier_reload_config
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_ENVIRONMENT_VARIABLE) identifier_ENVIRONMENT_VARIABLE
)subscript
(conditional_expression
(identifier_settings_file) identifier_settings_file
(identifier_settings_file) identifier_settings_file
(string_'') string_''
)conditional_expression
)assignment
)expression_statement
(import_from_statement
(dotted_name
(identifier_bernard) identifier_bernard
(identifier_conf) identifier_conf
)dotted_name
(aliased_import
(dotted_name
(identifier_settings) identifier_settings
)dotted_name
(identifier_l_settings) identifier_l_settings
)aliased_import
)import_from_statement
(expression_statement
(assignment
(identifier_r_settings) identifier_r_settings
(attribute
(identifier_l_settings) identifier_l_settings
(identifier__settings) identifier__settings
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_r_settings) identifier_r_settings
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_settings_patch) identifier_settings_patch
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(string_'bernard.i18n') string_'bernard.i18n'
(identifier_modules) identifier_modules
)comparison_operator
(block
(import_from_statement
(dotted_name
(identifier_bernard) identifier_bernard
(identifier_i18n) identifier_i18n
)dotted_name
(dotted_name
(identifier_translate) identifier_translate
)dotted_name
(dotted_name
(identifier_intents) identifier_intents
)dotted_name
)import_from_statement
(expression_statement
(call
(attribute
(identifier_translate) identifier_translate
(identifier__regenerate_word_dict) identifier__regenerate_word_dict
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_intents) identifier_intents
(identifier__refresh_intents_db) identifier__refresh_intents_db
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(yield
)yield
)expression_statement
)block
)function_definition
)module | Reload the configuration form scratch. Only the default config is loaded,
not the environment-specified config.
Then the specified patch is applied.
This is for unit tests only!
:param settings_patch: Custom configuration values to insert
:param settings_file: Custom settings file to read |
(module
(function_definition
(function_name_topics) function_name_topics
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_cluster) identifier_cluster
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_cluster) identifier_cluster
)attribute
)assignment
)expression_statement
(if_statement
(boolean_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier__metadata_refresh_in_progress) identifier__metadata_refresh_in_progress
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier__topics) identifier__topics
)attribute
)boolean_operator
(block
(expression_statement
(assignment
(identifier_future) identifier_future
(call
(attribute
(identifier_cluster) identifier_cluster
(identifier_request_update) identifier_request_update
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_poll) identifier_poll
)attribute
(argument_list
(keyword_argument
(identifier_future) identifier_future
(identifier_future) identifier_future
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_stash) identifier_stash
(attribute
(identifier_cluster) identifier_cluster
(identifier_need_all_topic_metadata) identifier_need_all_topic_metadata
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_cluster) identifier_cluster
(identifier_need_all_topic_metadata) identifier_need_all_topic_metadata
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_future) identifier_future
(call
(attribute
(identifier_cluster) identifier_cluster
(identifier_request_update) identifier_request_update
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_poll) identifier_poll
)attribute
(argument_list
(keyword_argument
(identifier_future) identifier_future
(identifier_future) identifier_future
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_cluster) identifier_cluster
(identifier_need_all_topic_metadata) identifier_need_all_topic_metadata
)attribute
(identifier_stash) identifier_stash
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_cluster) identifier_cluster
(identifier_topics) identifier_topics
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get all topics the user is authorized to view.
Returns:
set: topics |
(module
(function_definition
(function_name_output_shape) function_name_output_shape
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__output_shape) identifier__output_shape
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__ensure_is_connected) identifier__ensure_is_connected
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__output_shape) identifier__output_shape
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__output_shape) identifier__output_shape
)attribute
(call
(identifier_tuple) identifier_tuple
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__output_shape) identifier__output_shape
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__output_shape) identifier__output_shape
)attribute
)return_statement
)block
)function_definition
)module | Returns the output shape. |
(module
(function_definition
(function_name__wr_ver_n_key) function_name__wr_ver_n_key
(parameters
(identifier_self) identifier_self
(identifier_fout_txt) identifier_fout_txt
(identifier_verbose) identifier_verbose
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_fout_txt) identifier_fout_txt
(string_'w') string_'w'
)argument_list
)call
(as_pattern_target
(identifier_prt) identifier_prt
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__prt_ver_n_key) identifier__prt_ver_n_key
)attribute
(argument_list
(identifier_prt) identifier_prt
(identifier_verbose) identifier_verbose
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_' WROTE: {TXT}') string_' WROTE: {TXT}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_TXT) identifier_TXT
(identifier_fout_txt) identifier_fout_txt
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Write GO DAG version and key indicating presence of GO ID in a list. |
(module
(function_definition
(function_name__compute_document_meta) function_name__compute_document_meta
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_meta) identifier_meta
(call
(identifier_OrderedDict) identifier_OrderedDict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bounds_iter) identifier_bounds_iter
(call
(attribute
(identifier_xml_utils) identifier_xml_utils
(identifier_bounds) identifier_bounds
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)attribute
(keyword_argument
(identifier_start_re) identifier_start_re
(string_r'<text id="(\d+)"[^>]*name="([^"]*)"') string_r'<text id="(\d+)"[^>]*name="([^"]*)"'
)keyword_argument
(keyword_argument
(identifier_end_re) identifier_end_re
(string_r'</text>') string_r'</text>'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_match) identifier_match
(identifier_bounds) identifier_bounds
)pattern_list
(identifier_bounds_iter) identifier_bounds_iter
(block
(expression_statement
(assignment
(pattern_list
(identifier_doc_id) identifier_doc_id
(identifier_title) identifier_title
)pattern_list
(expression_list
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)argument_list
)call
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_title) identifier_title
(call
(attribute
(identifier_xml_utils) identifier_xml_utils
(identifier_unescape_attribute) identifier_unescape_attribute
)attribute
(argument_list
(identifier_title) identifier_title
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_xml_data) identifier_xml_data
(call
(attribute
(identifier_xml_utils) identifier_xml_utils
(identifier_load_chunk) identifier_load_chunk
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)attribute
(identifier_bounds) identifier_bounds
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_doc) identifier_doc
(call
(identifier_Document) identifier_Document
(argument_list
(call
(attribute
(attribute
(identifier_compat) identifier_compat
(identifier_ElementTree) identifier_ElementTree
)attribute
(identifier_XML) identifier_XML
)attribute
(argument_list
(call
(attribute
(identifier_xml_data) identifier_xml_data
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf8') string_'utf8'
)argument_list
)call
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_meta) identifier_meta
(identifier_doc_id) identifier_doc_id
)subscript
(call
(identifier__DocumentMeta) identifier__DocumentMeta
(argument_list
(identifier_title) identifier_title
(identifier_bounds) identifier_bounds
(call
(attribute
(identifier_doc) identifier_doc
(identifier_categories) identifier_categories
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_meta) identifier_meta
)return_statement
)block
)function_definition
)module | Return documents meta information that can
be used for fast document lookups. Meta information
consists of documents titles, categories and positions
in file. |
(module
(function_definition
(function_name_begin_pending_transactions) function_name_begin_pending_transactions
(parameters
(identifier_self) identifier_self
)parameters
(block
(while_statement
(not_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__pending_sessions) identifier__pending_sessions
)attribute
(identifier_empty) identifier_empty
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_session) identifier_session
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__pending_sessions) identifier__pending_sessions
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_session) identifier_session
(identifier__transaction) identifier__transaction
)attribute
(identifier_begin) identifier_begin
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_TransactionPingingPool) identifier_TransactionPingingPool
(identifier_self) identifier_self
)argument_list
)call
(identifier_put) identifier_put
)attribute
(argument_list
(identifier_session) identifier_session
)argument_list
)call
)expression_statement
)block
)while_statement
)block
)function_definition
)module | Begin all transactions for sessions added to the pool. |
(module
(function_definition
(function_name_setupData) function_name_setupData
(parameters
(identifier_self) identifier_self
(identifier_dataPath) identifier_dataPath
(default_parameter
(identifier_numLabels) identifier_numLabels
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_ordered) identifier_ordered
(False) False
)default_parameter
(default_parameter
(identifier_stripCats) identifier_stripCats
(False) False
)default_parameter
(default_parameter
(identifier_seed) identifier_seed
(integer_42) integer_42
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_dataPath) identifier_dataPath
(identifier_numLabels) identifier_numLabels
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(identifier_ordered) identifier_ordered
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_randomizeData) identifier_randomizeData
)attribute
(argument_list
(identifier_seed) identifier_seed
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_filename) identifier_filename
(identifier_ext) identifier_ext
)pattern_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(identifier_dataPath) identifier_dataPath
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_classificationFileName) identifier_classificationFileName
(call
(attribute
(string_"{}_category.json") string_"{}_category.json"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dataFileName) identifier_dataFileName
(call
(attribute
(string_"{}_network{}") string_"{}_network{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_filename) identifier_filename
(identifier_ext) identifier_ext
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_stripCats) identifier_stripCats
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_stripCategories) identifier_stripCategories
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_saveData) identifier_saveData
)attribute
(argument_list
(identifier_dataFileName) identifier_dataFileName
(identifier_classificationFileName) identifier_classificationFileName
)argument_list
)call
)expression_statement
(return_statement
(identifier_dataFileName) identifier_dataFileName
)return_statement
)block
)function_definition
)module | Main method of this class. Use for setting up a network data file.
@param dataPath (str) Path to CSV file.
@param numLabels (int) Number of columns of category labels.
@param textPreprocess (bool) True will preprocess text while tokenizing.
@param ordered (bool) Keep data samples (sequences) in order,
otherwise randomize.
@param seed (int) Random seed.
@return dataFileName (str) Network data file name; same directory as
input data file. |
(module
(function_definition
(function_name_stats) function_name_stats
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(identifier__patch_stats_request) identifier__patch_stats_request
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_body) identifier_body
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dispatcher) identifier_dispatcher
)attribute
(identifier_response) identifier_response
)attribute
(argument_list
(call
(attribute
(identifier_models) identifier_models
(identifier_Request) identifier_Request
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__url) identifier__url
)attribute
(argument_list
(string_'data/v1/stats') string_'data/v1/stats'
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_auth) identifier_auth
)attribute
(keyword_argument
(identifier_body_type) identifier_body_type
(attribute
(identifier_models) identifier_models
(identifier_JSON) identifier_JSON
)attribute
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_body) identifier_body
)keyword_argument
(keyword_argument
(identifier_method) identifier_method
(string_'POST') string_'POST'
)keyword_argument
)argument_list
)call
)argument_list
)call
(identifier_get_body) identifier_get_body
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get stats for the provided request.
:param request dict: A search request that also contains the 'interval'
property.
:returns: :py:class:`planet.api.models.JSON`
:raises planet.api.exceptions.APIException: On API error. |
(module
(function_definition
(function_name__stop) function_name__stop
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_duration) identifier_duration
(binary_operator
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_start) identifier_start
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_result) identifier_result
)attribute
(string_'stop') string_'stop'
)subscript
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_now) identifier_now
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_result) identifier_result
)attribute
(string_'delta') string_'delta'
)subscript
(call
(identifier_int) identifier_int
(argument_list
(identifier_duration) identifier_duration
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_duration_unit) identifier_duration_unit
)attribute
(string_'minutes') string_'minutes'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_duration) identifier_duration
(call
(identifier_round) identifier_round
(argument_list
(binary_operator
(identifier_duration) identifier_duration
(float_60.0) float_60.0
)binary_operator
(integer_2) integer_2
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_duration) identifier_duration
(call
(identifier_round) identifier_round
(argument_list
(identifier_duration) identifier_duration
(integer_2) integer_2
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_result) identifier_result
)attribute
(string_'stdout') string_'stdout'
)subscript
(binary_operator
(string_"Paused for %s %s") string_"Paused for %s %s"
(tuple
(identifier_duration) identifier_duration
(attribute
(identifier_self) identifier_self
(identifier_duration_unit) identifier_duration_unit
)attribute
)tuple
)binary_operator
)assignment
)expression_statement
)block
)function_definition
)module | calculate the duration we actually paused for and then
finish building the task result string |
(module
(function_definition
(function_name_pack_commands) function_name_pack_commands
(parameters
(identifier_self) identifier_self
(identifier_commands) identifier_commands
)parameters
(block
(expression_statement
(string_"Pack multiple commands into the Redis protocol") string_"Pack multiple commands into the Redis protocol"
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pieces) identifier_pieces
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_buffer_length) identifier_buffer_length
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_cmd) identifier_cmd
(identifier_commands) identifier_commands
(block
(for_statement
(identifier_chunk) identifier_chunk
(call
(attribute
(identifier_self) identifier_self
(identifier_pack_command) identifier_pack_command
)attribute
(argument_list
(list_splat
(identifier_cmd) identifier_cmd
)list_splat
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_pieces) identifier_pieces
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_chunk) identifier_chunk
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_buffer_length) identifier_buffer_length
(call
(identifier_len) identifier_len
(argument_list
(identifier_chunk) identifier_chunk
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_buffer_length) identifier_buffer_length
(integer_6000) integer_6000
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_SYM_EMPTY) identifier_SYM_EMPTY
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_pieces) identifier_pieces
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_buffer_length) identifier_buffer_length
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pieces) identifier_pieces
(list
)list
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_pieces) identifier_pieces
(block
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_SYM_EMPTY) identifier_SYM_EMPTY
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_pieces) identifier_pieces
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module | Pack multiple commands into the Redis protocol |
(module
(function_definition
(function_name_abort_request) function_name_abort_request
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_timedout) identifier_timedout
)attribute
(True) True
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_request) identifier_request
(identifier_cancel) identifier_cancel
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(attribute
(identifier_error) identifier_error
(identifier_AlreadyCancelled) identifier_AlreadyCancelled
)attribute
(block
(return_statement
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Called to abort request on timeout |
(module
(function_definition
(function_name_compute_time_at_sun_angle) function_name_compute_time_at_sun_angle
(parameters
(identifier_day) identifier_day
(identifier_latitude) identifier_latitude
(identifier_angle) identifier_angle
)parameters
(block
(expression_statement
(assignment
(identifier_positive_angle_rad) identifier_positive_angle_rad
(call
(identifier_radians) identifier_radians
(argument_list
(call
(identifier_abs) identifier_abs
(argument_list
(identifier_angle) identifier_angle
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_angle_sign) identifier_angle_sign
(binary_operator
(call
(identifier_abs) identifier_abs
(argument_list
(identifier_angle) identifier_angle
)argument_list
)call
(identifier_angle) identifier_angle
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_latitude_rad) identifier_latitude_rad
(call
(identifier_radians) identifier_radians
(argument_list
(identifier_latitude) identifier_latitude
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_declination) identifier_declination
(call
(identifier_radians) identifier_radians
(argument_list
(call
(identifier_sun_declination) identifier_sun_declination
(argument_list
(identifier_day) identifier_day
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_numerator) identifier_numerator
(binary_operator
(unary_operator
(call
(identifier_sin) identifier_sin
(argument_list
(identifier_positive_angle_rad) identifier_positive_angle_rad
)argument_list
)call
)unary_operator
(binary_operator
(call
(identifier_sin) identifier_sin
(argument_list
(identifier_latitude_rad) identifier_latitude_rad
)argument_list
)call
(call
(identifier_sin) identifier_sin
(argument_list
(identifier_declination) identifier_declination
)argument_list
)call
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_denominator) identifier_denominator
(binary_operator
(call
(identifier_cos) identifier_cos
(argument_list
(identifier_latitude_rad) identifier_latitude_rad
)argument_list
)call
(call
(identifier_cos) identifier_cos
(argument_list
(identifier_declination) identifier_declination
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_time_diff) identifier_time_diff
(binary_operator
(call
(identifier_degrees) identifier_degrees
(argument_list
(call
(identifier_acos) identifier_acos
(argument_list
(binary_operator
(identifier_numerator) identifier_numerator
(identifier_denominator) identifier_denominator
)binary_operator
)argument_list
)call
)argument_list
)call
(integer_15) integer_15
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(identifier_time_diff) identifier_time_diff
(identifier_angle_sign) identifier_angle_sign
)binary_operator
)return_statement
)block
)function_definition
)module | Compute the floating point time difference between mid-day and an angle.
All the prayers are defined as certain angles from mid-day (Zuhr).
This formula is taken from praytimes.org/calculation
:param day: The day to which to compute for
:param longitude: Longitude of the place of interest
:angle: The angle at which to compute the time
:returns: The floating point time delta between Zuhr and the angle, the
sign of the result corresponds to the sign of the angle |
(module
(function_definition
(function_name_cidr_broadcast) function_name_cidr_broadcast
(parameters
(identifier_cidr) identifier_cidr
)parameters
(block
(expression_statement
(assignment
(identifier_ips) identifier_ips
(call
(attribute
(identifier_netaddr) identifier_netaddr
(identifier_IPNetwork) identifier_IPNetwork
)attribute
(argument_list
(identifier_cidr) identifier_cidr
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_six) identifier_six
(identifier_text_type) identifier_text_type
)attribute
(argument_list
(attribute
(identifier_ips) identifier_ips
(identifier_broadcast) identifier_broadcast
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get the broadcast address associated with a CIDR address.
CLI example::
salt myminion netaddress.cidr_netmask 192.168.0.0/20 |
(module
(function_definition
(function_name__setup) function_name__setup
(parameters
)parameters
(block
(expression_statement
(call
(attribute
(identifier__SOCKET) identifier__SOCKET
(identifier_setsockopt) identifier_setsockopt
)attribute
(argument_list
(attribute
(identifier_socket) identifier_socket
(identifier_SOL_SOCKET) identifier_SOL_SOCKET
)attribute
(attribute
(identifier_socket) identifier_socket
(identifier_SO_BROADCAST) identifier_SO_BROADCAST
)attribute
(integer_1) integer_1
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier__SOCKET) identifier__SOCKET
(identifier_bind) identifier_bind
)attribute
(argument_list
(tuple
(string_'') string_''
(identifier_PORT) identifier_PORT
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_udp) identifier_udp
(call
(attribute
(identifier_threading) identifier_threading
(identifier_Thread) identifier_Thread
)attribute
(argument_list
(keyword_argument
(identifier_target) identifier_target
(identifier__listen) identifier__listen
)keyword_argument
(keyword_argument
(identifier_daemon) identifier_daemon
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_udp) identifier_udp
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set up module.
Open a UDP socket, and listen in a thread. |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_nb) identifier_nb
(integer_0) integer_0
)default_parameter
)parameters
(block
(return_statement
(dictionary_comprehension
(pair
(identifier_i) identifier_i
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_stats_history) identifier_stats_history
)attribute
(identifier_i) identifier_i
)subscript
(identifier_history_raw) identifier_history_raw
)attribute
(argument_list
(keyword_argument
(identifier_nb) identifier_nb
(identifier_nb) identifier_nb
)keyword_argument
)argument_list
)call
)pair
(for_in_clause
(identifier_i) identifier_i
(attribute
(identifier_self) identifier_self
(identifier_stats_history) identifier_stats_history
)attribute
)for_in_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | Get the history as a dict of list |
(module
(function_definition
(function_name_disconnect) function_name_disconnect
(parameters
(identifier_self) identifier_self
(identifier_user) identifier_user
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_remove_user) identifier_remove_user
)attribute
(argument_list
(identifier_user) identifier_user
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_send_message) identifier_send_message
)attribute
(argument_list
(call
(identifier_create_message) identifier_create_message
(argument_list
(string_'RoomServer') string_'RoomServer'
(call
(attribute
(string_'Please all say goodbye to {name}!') string_'Please all say goodbye to {name}!'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_name) identifier_name
(attribute
(attribute
(identifier_user) identifier_user
(identifier_id) identifier_id
)attribute
(identifier_name) identifier_name
)attribute
)keyword_argument
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_send_message) identifier_send_message
)attribute
(argument_list
(call
(identifier_create_disconnect) identifier_create_disconnect
(argument_list
(attribute
(attribute
(identifier_user) identifier_user
(identifier_id) identifier_id
)attribute
(identifier_name) identifier_name
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Disconnect a user and send a message to the
connected clients |
(module
(function_definition
(function_name__build_all_dependencies) function_name__build_all_dependencies
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_model) identifier_model
(identifier_schema) identifier_schema
)pattern_list
(call
(attribute
(identifier_six) identifier_six
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__models) identifier__models
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_dep_list) identifier_dep_list
(call
(attribute
(identifier_self) identifier_self
(identifier__build_dependent_model_list) identifier__build_dependent_model_list
)attribute
(argument_list
(identifier_schema) identifier_schema
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(identifier_model) identifier_model
)subscript
(identifier_dep_list) identifier_dep_list
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Helper function to build a map of model to their list of model reference dependencies |
(module
(function_definition
(function_name_remove_entry) function_name_remove_entry
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_field_value) identifier_field_value
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_field) identifier_field
(identifier_value) identifier_value
)pattern_list
(call
(identifier_next) identifier_next
(argument_list
(call
(identifier_iter) identifier_iter
(argument_list
(call
(attribute
(identifier_field_value) identifier_field_value
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(string_'entries') string_'entries'
)subscript
(slice
(colon) colon
)slice
)subscript
(list_comprehension
(identifier_entry) identifier_entry
(for_in_clause
(identifier_entry) identifier_entry
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'entries') string_'entries'
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(call
(attribute
(call
(attribute
(identifier_entry) identifier_entry
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(string_'{}_entry') string_'{}_entry'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_typeof) identifier_typeof
)attribute
)argument_list
)call
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_field) identifier_field
)argument_list
)call
(call
(identifier_str) identifier_str
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
)block
)function_definition
)module | Remove an AccessList entry by field specified. Use the supported
arguments for the inheriting class for keyword arguments.
:raises UpdateElementFailed: failed to modify with reason
:return: None |
(module
(function_definition
(function_name_is_ubuntu) function_name_is_ubuntu
(parameters
)parameters
(block
(if_statement
(boolean_operator
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_platform) identifier_platform
)attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'linux') string_'linux'
)argument_list
)call
(call
(attribute
(identifier_osp) identifier_osp
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(string_'/etc/lsb-release') string_'/etc/lsb-release'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_release_info) identifier_release_info
(call
(attribute
(call
(identifier_open) identifier_open
(argument_list
(string_'/etc/lsb-release') string_'/etc/lsb-release'
)argument_list
)call
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'Ubuntu') string_'Ubuntu'
(identifier_release_info) identifier_release_info
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Detect if we are running in an Ubuntu-based distribution |
(module
(function_definition
(function_name_enable) function_name_enable
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_reason) identifier_reason
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_"enable") string_"enable"
(False) False
)pair
(pair
(string_"reason") string_"reason"
(identifier_reason) identifier_reason
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__api) identifier__api
)attribute
(identifier_put) identifier_put
)attribute
(argument_list
(string_"/v1/agent/maintenance") string_"/v1/agent/maintenance"
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
)argument_list
)call
)await
)assignment
)expression_statement
(return_statement
(comparison_operator
(attribute
(identifier_response) identifier_response
(identifier_status) identifier_status
)attribute
(integer_200) integer_200
)comparison_operator
)return_statement
)block
)function_definition
)module | Resumes normal operation
Parameters:
reason (str): Reason of enabling
Returns:
bool: ``True`` on success |
(module
(function_definition
(function_name_dot) function_name_dot
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(expression_statement
(assignment
(identifier_dot_product) identifier_dot_product
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_a) identifier_a
(attribute
(identifier_self) identifier_self
(identifier_elements) identifier_elements
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_b) identifier_b
(attribute
(identifier_other) identifier_other
(identifier_elements) identifier_elements
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_a_len) identifier_a_len
(call
(identifier_len) identifier_len
(argument_list
(identifier_a) identifier_a
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_b_len) identifier_b_len
(call
(identifier_len) identifier_len
(argument_list
(identifier_b) identifier_b
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_i) identifier_i
(assignment
(identifier_j) identifier_j
(integer_0) integer_0
)assignment
)assignment
)expression_statement
(while_statement
(boolean_operator
(comparison_operator
(identifier_i) identifier_i
(identifier_a_len) identifier_a_len
)comparison_operator
(comparison_operator
(identifier_j) identifier_j
(identifier_b_len) identifier_b_len
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_a_val) identifier_a_val
(subscript
(identifier_a) identifier_a
(identifier_i) identifier_i
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_b_val) identifier_b_val
(subscript
(identifier_b) identifier_b
(identifier_j) identifier_j
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_a_val) identifier_a_val
(identifier_b_val) identifier_b_val
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_i) identifier_i
(integer_2) integer_2
)augmented_assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_a_val) identifier_a_val
(identifier_b_val) identifier_b_val
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_j) identifier_j
(integer_2) integer_2
)augmented_assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_dot_product) identifier_dot_product
(binary_operator
(subscript
(identifier_a) identifier_a
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)subscript
(subscript
(identifier_b) identifier_b
(binary_operator
(identifier_j) identifier_j
(integer_1) integer_1
)binary_operator
)subscript
)binary_operator
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_i) identifier_i
(integer_2) integer_2
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_j) identifier_j
(integer_2) integer_2
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)while_statement
(return_statement
(identifier_dot_product) identifier_dot_product
)return_statement
)block
)function_definition
)module | Calculates the dot product of this vector and another vector. |
(module
(function_definition
(function_name_generic_div) function_name_generic_div
(parameters
(identifier_a) identifier_a
(identifier_b) identifier_b
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'Called generic_div({}, {})') string_'Called generic_div({}, {})'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_a) identifier_a
(identifier_b) identifier_b
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(binary_operator
(identifier_a) identifier_a
(identifier_b) identifier_b
)binary_operator
)return_statement
)block
)function_definition
)module | Simple function to divide two numbers |
(module
(function_definition
(function_name_init_argparser_build_dir) function_name_init_argparser_build_dir
(parameters
(identifier_self) identifier_self
(identifier_argparser) identifier_argparser
(default_parameter
(identifier_help) identifier_help
(parenthesized_expression
(concatenated_string
(string_'the build directory, where all sources will be copied to ') string_'the build directory, where all sources will be copied to '
(string_'as part of the build process; if left unspecified, the ') string_'as part of the build process; if left unspecified, the '
(string_'default behavior is to create a new temporary directory ') string_'default behavior is to create a new temporary directory '
(string_'that will be removed upon conclusion of the build; if ') string_'that will be removed upon conclusion of the build; if '
(string_'specified, it must be an existing directory and all files ') string_'specified, it must be an existing directory and all files '
(string_'for the build will be copied there instead, overwriting any ') string_'for the build will be copied there instead, overwriting any '
(string_'existing file, with no cleanup done after.') string_'existing file, with no cleanup done after.'
)concatenated_string
)parenthesized_expression
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_argparser) identifier_argparser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'--build-dir') string_'--build-dir'
(keyword_argument
(identifier_default) identifier_default
(None) None
)keyword_argument
(keyword_argument
(identifier_dest) identifier_dest
(identifier_BUILD_DIR) identifier_BUILD_DIR
)keyword_argument
(keyword_argument
(identifier_metavar) identifier_metavar
(call
(identifier_metavar) identifier_metavar
(argument_list
(identifier_BUILD_DIR) identifier_BUILD_DIR
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(identifier_help) identifier_help
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | For setting up build directory |
(module
(function_definition
(function_name_plotgwsrc) function_name_plotgwsrc
(parameters
(identifier_gwb) identifier_gwb
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_theta) identifier_theta
(identifier_phi) identifier_phi
(identifier_omega) identifier_omega
(identifier_polarization) identifier_polarization
)pattern_list
(call
(attribute
(identifier_gwb) identifier_gwb
(identifier_gw_dist) identifier_gw_dist
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rho) identifier_rho
(binary_operator
(identifier_phi) identifier_phi
(attribute
(identifier_N) identifier_N
(identifier_pi) identifier_pi
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_eta) identifier_eta
(binary_operator
(binary_operator
(float_0.5) float_0.5
(attribute
(identifier_N) identifier_N
(identifier_pi) identifier_pi
)attribute
)binary_operator
(identifier_theta) identifier_theta
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_P) identifier_P
(identifier_title) identifier_title
)attribute
(argument_list
(string_"GWB source population") string_"GWB source population"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_ax) identifier_ax
(call
(attribute
(identifier_P) identifier_P
(identifier_axes) identifier_axes
)attribute
(argument_list
(keyword_argument
(identifier_projection) identifier_projection
(string_'mollweide') string_'mollweide'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_foo) identifier_foo
(call
(attribute
(identifier_P) identifier_P
(identifier_scatter) identifier_scatter
)attribute
(argument_list
(identifier_rho) identifier_rho
(identifier_eta) identifier_eta
(keyword_argument
(identifier_marker) identifier_marker
(string_'.') string_'.'
)keyword_argument
(keyword_argument
(identifier_s) identifier_s
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_foo) identifier_foo
)return_statement
)block
)function_definition
)module | Plot a GWB source population as a mollweide projection. |
(module
(function_definition
(function_name_execute_command_no_results) function_name_execute_command_no_results
(parameters
(identifier_self) identifier_self
(identifier_sock_info) identifier_sock_info
(identifier_generator) identifier_generator
)parameters
(block
(expression_statement
(assignment
(identifier_full_result) identifier_full_result
(dictionary
(pair
(string_"writeErrors") string_"writeErrors"
(list
)list
)pair
(pair
(string_"writeConcernErrors") string_"writeConcernErrors"
(list
)list
)pair
(pair
(string_"nInserted") string_"nInserted"
(integer_0) integer_0
)pair
(pair
(string_"nUpserted") string_"nUpserted"
(integer_0) integer_0
)pair
(pair
(string_"nMatched") string_"nMatched"
(integer_0) integer_0
)pair
(pair
(string_"nModified") string_"nModified"
(integer_0) integer_0
)pair
(pair
(string_"nRemoved") string_"nRemoved"
(integer_0) integer_0
)pair
(pair
(string_"upserted") string_"upserted"
(list
)list
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_write_concern) identifier_write_concern
(call
(identifier_WriteConcern) identifier_WriteConcern
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_op_id) identifier_op_id
(call
(identifier__randint) identifier__randint
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__execute_command) identifier__execute_command
)attribute
(argument_list
(identifier_generator) identifier_generator
(identifier_write_concern) identifier_write_concern
(None) None
(identifier_sock_info) identifier_sock_info
(identifier_op_id) identifier_op_id
(False) False
(identifier_full_result) identifier_full_result
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_OperationFailure) identifier_OperationFailure
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Execute write commands with OP_MSG and w=0 WriteConcern, ordered. |
(module
(function_definition
(function_name_addPolygonAnnot) function_name_addPolygonAnnot
(parameters
(identifier_self) identifier_self
(identifier_points) identifier_points
)parameters
(block
(expression_statement
(call
(identifier_CheckParent) identifier_CheckParent
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_val) identifier_val
(call
(attribute
(identifier__fitz) identifier__fitz
(identifier_Page_addPolygonAnnot) identifier_Page_addPolygonAnnot
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_points) identifier_points
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_val) identifier_val
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_val) identifier_val
(identifier_thisown) identifier_thisown
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_val) identifier_val
(identifier_parent) identifier_parent
)attribute
(call
(attribute
(identifier_weakref) identifier_weakref
(identifier_proxy) identifier_proxy
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__annot_refs) identifier__annot_refs
)attribute
(call
(identifier_id) identifier_id
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)subscript
(identifier_val) identifier_val
)assignment
)expression_statement
(return_statement
(identifier_val) identifier_val
)return_statement
)block
)function_definition
)module | Add a 'Polygon' annotation for a sequence of points. |
(module
(function_definition
(function_name_get_output_jsonpath) function_name_get_output_jsonpath
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_sub_output) identifier_sub_output
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_output_jsonpath_field) identifier_output_jsonpath_field
(call
(attribute
(identifier_self) identifier_self
(identifier_get_output_jsonpath_field) identifier_get_output_jsonpath_field
)attribute
(argument_list
(identifier_sub_output) identifier_sub_output
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_extractor) identifier_extractor
)attribute
(identifier_get_metadata) identifier_get_metadata
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_metadata) identifier_metadata
(string_'source') string_'source'
)subscript
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_input_fields) identifier_input_fields
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_extractor_filter) identifier_extractor_filter
(string_"") string_""
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_is_first) identifier_is_first
(True) True
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_metadata) identifier_metadata
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(identifier_is_first) identifier_is_first
(block
(expression_statement
(assignment
(identifier_is_first) identifier_is_first
(False) False
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_extractor_filter) identifier_extractor_filter
(binary_operator
(identifier_extractor_filter) identifier_extractor_filter
(string_" & ") string_" & "
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_basestring) identifier_basestring
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_extractor_filter) identifier_extractor_filter
(binary_operator
(identifier_extractor_filter) identifier_extractor_filter
(line_continuation_\) line_continuation_\
(call
(attribute
(string_"{}=\"{}\"") string_"{}=\"{}\""
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_key) identifier_key
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_'(?<=[^\\\])\"') string_'(?<=[^\\\])\"'
(string_"'") string_"'"
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)binary_operator
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(attribute
(identifier_types) identifier_types
(identifier_ListType) identifier_ListType
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_extractor_filter) identifier_extractor_filter
(binary_operator
(identifier_extractor_filter) identifier_extractor_filter
(line_continuation_\) line_continuation_\
(call
(attribute
(string_"{}={}") string_"{}={}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_key) identifier_key
(call
(identifier_str) identifier_str
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)binary_operator
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_output_jsonpath) identifier_output_jsonpath
(call
(attribute
(string_"{}[?{}].result.value") string_"{}[?{}].result.value"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_output_jsonpath_field) identifier_output_jsonpath_field
(identifier_extractor_filter) identifier_extractor_filter
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_output_jsonpath) identifier_output_jsonpath
)return_statement
)block
)function_definition
)module | Attempt to build a JSONPath filter for this ExtractorProcessor
that captures how to get at the outputs of the wrapped Extractor |
(module
(function_definition
(function_name_plot_rebit_prior) function_name_plot_rebit_prior
(parameters
(identifier_prior) identifier_prior
(default_parameter
(identifier_rebit_axes) identifier_rebit_axes
(identifier_REBIT_AXES) identifier_REBIT_AXES
)default_parameter
(default_parameter
(identifier_n_samples) identifier_n_samples
(integer_2000) integer_2000
)default_parameter
(default_parameter
(identifier_true_state) identifier_true_state
(None) None
)default_parameter
(default_parameter
(identifier_true_size) identifier_true_size
(integer_250) integer_250
)default_parameter
(default_parameter
(identifier_force_mean) identifier_force_mean
(None) None
)default_parameter
(default_parameter
(identifier_legend) identifier_legend
(True) True
)default_parameter
(default_parameter
(identifier_mean_color_index) identifier_mean_color_index
(integer_2) integer_2
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_pallette) identifier_pallette
(subscript
(attribute
(identifier_plt) identifier_plt
(identifier_rcParams) identifier_rcParams
)attribute
(string_'axes.color_cycle') string_'axes.color_cycle'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(identifier_plot_rebit_modelparams) identifier_plot_rebit_modelparams
(argument_list
(call
(attribute
(identifier_prior) identifier_prior
(identifier_sample) identifier_sample
)attribute
(argument_list
(identifier_n_samples) identifier_n_samples
)argument_list
)call
(keyword_argument
(identifier_c) identifier_c
(subscript
(identifier_pallette) identifier_pallette
(integer_0) integer_0
)subscript
)keyword_argument
(keyword_argument
(identifier_label) identifier_label
(string_'Prior') string_'Prior'
)keyword_argument
(keyword_argument
(identifier_rebit_axes) identifier_rebit_axes
(identifier_rebit_axes) identifier_rebit_axes
)keyword_argument
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_true_state) identifier_true_state
(None) None
)comparison_operator
(block
(expression_statement
(call
(identifier_plot_rebit_modelparams) identifier_plot_rebit_modelparams
(argument_list
(identifier_true_state) identifier_true_state
(keyword_argument
(identifier_c) identifier_c
(subscript
(identifier_pallette) identifier_pallette
(integer_1) integer_1
)subscript
)keyword_argument
(keyword_argument
(identifier_label) identifier_label
(string_'True') string_'True'
)keyword_argument
(keyword_argument
(identifier_marker) identifier_marker
(string_'*') string_'*'
)keyword_argument
(keyword_argument
(identifier_s) identifier_s
(identifier_true_size) identifier_true_size
)keyword_argument
(keyword_argument
(identifier_rebit_axes) identifier_rebit_axes
(identifier_rebit_axes) identifier_rebit_axes
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_prior) identifier_prior
(string_'_mean') string_'_mean'
)argument_list
)call
(comparison_operator
(identifier_force_mean) identifier_force_mean
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_mean) identifier_mean
(conditional_expression
(identifier_force_mean) identifier_force_mean
(comparison_operator
(identifier_force_mean) identifier_force_mean
(None) None
)comparison_operator
(attribute
(identifier_prior) identifier_prior
(identifier__mean) identifier__mean
)attribute
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(identifier_plot_rebit_modelparams) identifier_plot_rebit_modelparams
(argument_list
(subscript
(call
(attribute
(attribute
(identifier_prior) identifier_prior
(identifier__basis) identifier__basis
)attribute
(identifier_state_to_modelparams) identifier_state_to_modelparams
)attribute
(argument_list
(identifier_mean) identifier_mean
)argument_list
)call
(None) None
(slice
(colon) colon
)slice
)subscript
(keyword_argument
(identifier_edgecolors) identifier_edgecolors
(subscript
(identifier_pallette) identifier_pallette
(identifier_mean_color_index) identifier_mean_color_index
)subscript
)keyword_argument
(keyword_argument
(identifier_s) identifier_s
(integer_250) integer_250
)keyword_argument
(keyword_argument
(identifier_facecolors) identifier_facecolors
(string_'none') string_'none'
)keyword_argument
(keyword_argument
(identifier_linewidth) identifier_linewidth
(integer_3) integer_3
)keyword_argument
(keyword_argument
(identifier_label) identifier_label
(string_'Mean') string_'Mean'
)keyword_argument
(keyword_argument
(identifier_rebit_axes) identifier_rebit_axes
(identifier_rebit_axes) identifier_rebit_axes
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_plot_decorate_rebits) identifier_plot_decorate_rebits
(argument_list
(attribute
(identifier_prior) identifier_prior
(identifier_basis) identifier_basis
)attribute
(keyword_argument
(identifier_rebit_axes) identifier_rebit_axes
(identifier_rebit_axes) identifier_rebit_axes
)keyword_argument
)argument_list
)call
)expression_statement
(if_statement
(identifier_legend) identifier_legend
(block
(expression_statement
(call
(attribute
(identifier_plt) identifier_plt
(identifier_legend) identifier_legend
)attribute
(argument_list
(keyword_argument
(identifier_loc) identifier_loc
(string_'lower left') string_'lower left'
)keyword_argument
(keyword_argument
(identifier_ncol) identifier_ncol
(integer_3) integer_3
)keyword_argument
(keyword_argument
(identifier_scatterpoints) identifier_scatterpoints
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Plots rebit states drawn from a given prior.
:param qinfer.tomography.DensityOperatorDistribution prior: Distribution over
rebit states to plot.
:param list rebit_axes: List containing indices for the :math:`x`
and :math:`z` axes.
:param int n_samples: Number of samples to draw from the
prior.
:param np.ndarray true_state: State to be plotted as a "true" state for
comparison. |
(module
(function_definition
(function_name_comicDownloaded) function_name_comicDownloaded
(parameters
(identifier_self) identifier_self
(identifier_comic) identifier_comic
(identifier_filename) identifier_filename
(default_parameter
(identifier_text) identifier_text
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_lastComic) identifier_lastComic
)attribute
(attribute
(identifier_comic) identifier_comic
(identifier_name) identifier_name
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_newComic) identifier_newComic
)attribute
(argument_list
(identifier_comic) identifier_comic
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_size) identifier_size
(None) None
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_allowdownscale) identifier_allowdownscale
)attribute
(block
(expression_statement
(assignment
(identifier_size) identifier_size
(call
(identifier_getDimensionForImage) identifier_getDimensionForImage
(argument_list
(identifier_filename) identifier_filename
(identifier_MaxImageSize) identifier_MaxImageSize
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_imageUrl) identifier_imageUrl
(call
(attribute
(identifier_self) identifier_self
(identifier_getUrlFromFilename) identifier_getUrlFromFilename
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pageUrl) identifier_pageUrl
(attribute
(identifier_comic) identifier_comic
(identifier_referrer) identifier_referrer
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_pageUrl) identifier_pageUrl
(attribute
(identifier_self) identifier_self
(identifier_lastUrl) identifier_lastUrl
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_html) identifier_html
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(string_u'<li><a href="%s">%s</a>\n') string_u'<li><a href="%s">%s</a>\n'
(tuple
(identifier_pageUrl) identifier_pageUrl
(identifier_pageUrl) identifier_pageUrl
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_html) identifier_html
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(string_u'<br/><img src="%s"') string_u'<br/><img src="%s"'
(identifier_imageUrl) identifier_imageUrl
)binary_operator
)argument_list
)call
)expression_statement
(if_statement
(identifier_size) identifier_size
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_html) identifier_html
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(string_' width="%d" height="%d"') string_' width="%d" height="%d"'
(identifier_size) identifier_size
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_html) identifier_html
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(string_'/>\n') string_'/>\n'
)argument_list
)call
)expression_statement
(if_statement
(identifier_text) identifier_text
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_html) identifier_html
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(string_u'<br/>%s\n') string_u'<br/>%s\n'
(identifier_text) identifier_text
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_lastComic) identifier_lastComic
)attribute
(attribute
(identifier_comic) identifier_comic
(identifier_name) identifier_name
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_lastUrl) identifier_lastUrl
)attribute
(identifier_pageUrl) identifier_pageUrl
)assignment
)expression_statement
)block
)function_definition
)module | Write HTML entry for downloaded comic. |
(module
(function_definition
(function_name__CalculateHashesFileEntry) function_name__CalculateHashesFileEntry
(parameters
(identifier_self) identifier_self
(identifier_file_system) identifier_file_system
(identifier_file_entry) identifier_file_entry
(identifier_parent_full_path) identifier_parent_full_path
(identifier_output_writer) identifier_output_writer
)parameters
(block
(expression_statement
(assignment
(identifier_full_path) identifier_full_path
(call
(attribute
(identifier_file_system) identifier_file_system
(identifier_JoinPath) identifier_JoinPath
)attribute
(argument_list
(list
(identifier_parent_full_path) identifier_parent_full_path
(attribute
(identifier_file_entry) identifier_file_entry
(identifier_name) identifier_name
)attribute
)list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_data_stream) identifier_data_stream
(attribute
(identifier_file_entry) identifier_file_entry
(identifier_data_streams) identifier_data_streams
)attribute
(block
(expression_statement
(assignment
(identifier_hash_value) identifier_hash_value
(call
(attribute
(identifier_self) identifier_self
(identifier__CalculateHashDataStream) identifier__CalculateHashDataStream
)attribute
(argument_list
(identifier_file_entry) identifier_file_entry
(attribute
(identifier_data_stream) identifier_data_stream
(identifier_name) identifier_name
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_display_path) identifier_display_path
(call
(attribute
(identifier_self) identifier_self
(identifier__GetDisplayPath) identifier__GetDisplayPath
)attribute
(argument_list
(attribute
(identifier_file_entry) identifier_file_entry
(identifier_path_spec) identifier_path_spec
)attribute
(identifier_full_path) identifier_full_path
(attribute
(identifier_data_stream) identifier_data_stream
(identifier_name) identifier_name
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_output_writer) identifier_output_writer
(identifier_WriteFileHash) identifier_WriteFileHash
)attribute
(argument_list
(identifier_display_path) identifier_display_path
(boolean_operator
(identifier_hash_value) identifier_hash_value
(string_'N/A') string_'N/A'
)boolean_operator
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(identifier_sub_file_entry) identifier_sub_file_entry
(attribute
(identifier_file_entry) identifier_file_entry
(identifier_sub_file_entries) identifier_sub_file_entries
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__CalculateHashesFileEntry) identifier__CalculateHashesFileEntry
)attribute
(argument_list
(identifier_file_system) identifier_file_system
(identifier_sub_file_entry) identifier_sub_file_entry
(identifier_full_path) identifier_full_path
(identifier_output_writer) identifier_output_writer
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Recursive calculates hashes starting with the file entry.
Args:
file_system (dfvfs.FileSystem): file system.
file_entry (dfvfs.FileEntry): file entry.
parent_full_path (str): full path of the parent file entry.
output_writer (StdoutWriter): output writer. |
(module
(function_definition
(function_name_user_getfield) function_name_user_getfield
(parameters
(identifier_self) identifier_self
(identifier_field) identifier_field
(default_parameter
(identifier_access_token) identifier_access_token
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_info) identifier_info
(call
(attribute
(identifier_self) identifier_self
(identifier_user_getinfo) identifier_user_getinfo
)attribute
(argument_list
(list
(identifier_field) identifier_field
)list
(identifier_access_token) identifier_access_token
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_info) identifier_info
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_field) identifier_field
)argument_list
)call
)return_statement
)block
)function_definition
)module | Request a single field of information about the user.
:param field: The name of the field requested.
:type field: str
:returns: The value of the field. Depending on the type, this may be
a string, list, dict, or something else.
:rtype: object
.. versionadded:: 1.0 |
(module
(function_definition
(function_name_on_binop) function_name_on_binop
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(return_statement
(call
(call
(identifier_op2func) identifier_op2func
(argument_list
(attribute
(identifier_node) identifier_node
(identifier_op) identifier_op
)attribute
)argument_list
)call
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_run) identifier_run
)attribute
(argument_list
(attribute
(identifier_node) identifier_node
(identifier_left) identifier_left
)attribute
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_run) identifier_run
)attribute
(argument_list
(attribute
(identifier_node) identifier_node
(identifier_right) identifier_right
)attribute
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Binary operator. |
(module
(function_definition
(function_name_get_significant_decimal) function_name_get_significant_decimal
(parameters
(identifier_my_decimal) identifier_my_decimal
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_my_decimal) identifier_my_decimal
(identifier_Integral) identifier_Integral
)argument_list
)call
(block
(return_statement
(identifier_my_decimal) identifier_my_decimal
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_my_decimal) identifier_my_decimal
(identifier_my_decimal) identifier_my_decimal
)comparison_operator
(block
(return_statement
(identifier_my_decimal) identifier_my_decimal
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_my_int_part) identifier_my_int_part
(subscript
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_my_decimal) identifier_my_decimal
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_my_decimal_part) identifier_my_decimal_part
(subscript
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_my_decimal) identifier_my_decimal
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_first_not_zero) identifier_first_not_zero
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_my_decimal_part) identifier_my_decimal_part
)argument_list
)call
)argument_list
)call
(block
(if_statement
(comparison_operator
(subscript
(identifier_my_decimal_part) identifier_my_decimal_part
(identifier_i) identifier_i
)subscript
(string_'0') string_'0'
)comparison_operator
(block
(continue_statement
)continue_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_first_not_zero) identifier_first_not_zero
(identifier_i) identifier_i
)assignment
)expression_statement
(break_statement
)break_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_my_truncated_decimal) identifier_my_truncated_decimal
(subscript
(identifier_my_decimal_part) identifier_my_decimal_part
(slice
(colon) colon
(binary_operator
(identifier_first_not_zero) identifier_first_not_zero
(integer_3) integer_3
)binary_operator
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_my_leftover_number) identifier_my_leftover_number
(subscript
(identifier_my_decimal_part) identifier_my_decimal_part
(slice
(colon) colon
(binary_operator
(identifier_first_not_zero) identifier_first_not_zero
(integer_3) integer_3
)binary_operator
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_my_leftover_number) identifier_my_leftover_number
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier_float) identifier_float
(argument_list
(binary_operator
(string_'0.') string_'0.'
(identifier_my_leftover_number) identifier_my_leftover_number
)binary_operator
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_round_up) identifier_round_up
(False) False
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_my_leftover_number) identifier_my_leftover_number
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_round_up) identifier_round_up
(True) True
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_my_truncated) identifier_my_truncated
(call
(identifier_float) identifier_float
(argument_list
(binary_operator
(binary_operator
(identifier_my_int_part) identifier_my_int_part
(string_'.') string_'.'
)binary_operator
(identifier_my_truncated_decimal) identifier_my_truncated_decimal
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_round_up) identifier_round_up
(block
(expression_statement
(assignment
(identifier_my_bonus) identifier_my_bonus
(binary_operator
(binary_operator
(integer_1) integer_1
(integer_10) integer_10
)binary_operator
(parenthesized_expression
(unary_operator
(parenthesized_expression
(binary_operator
(identifier_first_not_zero) identifier_first_not_zero
(integer_4) integer_4
)binary_operator
)parenthesized_expression
)unary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_my_truncated) identifier_my_truncated
(identifier_my_bonus) identifier_my_bonus
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_my_truncated) identifier_my_truncated
)return_statement
)block
)function_definition
)module | Return a truncated decimal by last three digit after leading zero. |
(module
(function_definition
(function_name_find_window) function_name_find_window
(parameters
(identifier_self) identifier_self
(identifier_highlight_locations) identifier_highlight_locations
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_text_block) identifier_text_block
)attribute
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_max_length) identifier_max_length
)attribute
)comparison_operator
(block
(return_statement
(tuple
(integer_0) integer_0
(attribute
(identifier_self) identifier_self
(identifier_max_length) identifier_max_length
)attribute
)tuple
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_num_chars_before) identifier_num_chars_before
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_settings) identifier_settings
(string_'HIGHLIGHT_NUM_CHARS_BEFORE_MATCH') string_'HIGHLIGHT_NUM_CHARS_BEFORE_MATCH'
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_best_start) identifier_best_start
(identifier_best_end) identifier_best_end
)pattern_list
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_ColabHighlighter) identifier_ColabHighlighter
(identifier_self) identifier_self
)argument_list
)call
(identifier_find_window) identifier_find_window
)attribute
(argument_list
(identifier_highlight_locations) identifier_highlight_locations
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_best_start) identifier_best_start
(identifier_num_chars_before) identifier_num_chars_before
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_best_end) identifier_best_end
(identifier_best_start) identifier_best_start
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_best_start) identifier_best_start
(integer_0) integer_0
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_best_start) identifier_best_start
(identifier_num_chars_before) identifier_num_chars_before
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_best_end) identifier_best_end
(identifier_num_chars_before) identifier_num_chars_before
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(tuple
(identifier_best_start) identifier_best_start
(identifier_best_end) identifier_best_end
)tuple
)return_statement
)block
)function_definition
)module | Getting the HIGHLIGHT_NUM_CHARS_BEFORE_MATCH setting
to find how many characters before the first word found should
be removed from the window |
(module
(function_definition
(function_name_send_all_messages) function_name_send_all_messages
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_close_on_done) identifier_close_on_done
(True) True
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_open) identifier_open
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_running) identifier_running
(True) True
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_messages) identifier_messages
(subscript
(attribute
(identifier_self) identifier_self
(identifier__pending_messages) identifier__pending_messages
)attribute
(slice
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_running) identifier_running
(call
(attribute
(identifier_self) identifier_self
(identifier_wait) identifier_wait
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(list_comprehension
(attribute
(identifier_m) identifier_m
(identifier_state) identifier_state
)attribute
(for_in_clause
(identifier_m) identifier_m
(identifier_messages) identifier_messages
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(identifier_results) identifier_results
)return_statement
)block
(finally_clause
(block
(if_statement
(boolean_operator
(identifier_close_on_done) identifier_close_on_done
(not_operator
(identifier_running) identifier_running
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Send all pending messages in the queue. This will return a list
of the send result of all the pending messages so it can be
determined if any messages failed to send.
This function will open the client if it is not already open.
:param close_on_done: Close the client once the messages are sent.
Default is `True`.
:type close_on_done: bool
:rtype: list[~uamqp.constants.MessageState] |
(module
(function_definition
(function_name_create_user) function_name_create_user
(parameters
(identifier_self) identifier_self
(identifier_auth) identifier_auth
(identifier_login_name) identifier_login_name
(identifier_username) identifier_username
(identifier_email) identifier_email
(identifier_password) identifier_password
(default_parameter
(identifier_send_notify) identifier_send_notify
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_"login_name") string_"login_name"
(identifier_login_name) identifier_login_name
)pair
(pair
(string_"username") string_"username"
(identifier_username) identifier_username
)pair
(pair
(string_"email") string_"email"
(identifier_email) identifier_email
)pair
(pair
(string_"password") string_"password"
(identifier_password) identifier_password
)pair
(pair
(string_"send_notify") string_"send_notify"
(identifier_send_notify) identifier_send_notify
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier_post) identifier_post
)attribute
(argument_list
(string_"/admin/users") string_"/admin/users"
(keyword_argument
(identifier_auth) identifier_auth
(identifier_auth) identifier_auth
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_GogsUser) identifier_GogsUser
(identifier_from_json) identifier_from_json
)attribute
(argument_list
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates a new user, and returns the created user.
:param auth.Authentication auth: authentication object, must be admin-level
:param str login_name: login name for created user
:param str username: username for created user
:param str email: email address for created user
:param str password: password for created user
:param bool send_notify: whether a notification email should be sent upon creation
:return: a representation of the created user
:rtype: GogsUser
:raises NetworkFailure: if there is an error communicating with the server
:raises ApiFailure: if the request cannot be serviced |
(module
(function_definition
(function_name_save_plot) function_name_save_plot
(parameters
(identifier_fig) identifier_fig
(default_parameter
(identifier_prefile) identifier_prefile
(string_'') string_''
)default_parameter
(default_parameter
(identifier_postfile) identifier_postfile
(string_'') string_''
)default_parameter
(default_parameter
(identifier_output_path) identifier_output_path
(string_'./') string_'./'
)default_parameter
(default_parameter
(identifier_output_name) identifier_output_name
(string_'Figure') string_'Figure'
)default_parameter
(default_parameter
(identifier_output_format) identifier_output_format
(string_'png') string_'png'
)default_parameter
(default_parameter
(identifier_dpi) identifier_dpi
(integer_300) integer_300
)default_parameter
(default_parameter
(identifier_transparent) identifier_transparent
(False) False
)default_parameter
(dictionary_splat_pattern
(identifier__) identifier__
)dictionary_splat_pattern
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_output_path) identifier_output_path
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(identifier_output_path) identifier_output_path
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_output_path) identifier_output_path
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(identifier_prefile) identifier_prefile
(identifier_output_name) identifier_output_name
)binary_operator
(identifier_postfile) identifier_postfile
)binary_operator
(string_".") string_"."
)binary_operator
(identifier_output_format) identifier_output_format
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_fig) identifier_fig
(identifier_savefig) identifier_savefig
)attribute
(argument_list
(identifier_output) identifier_output
(keyword_argument
(identifier_dpi) identifier_dpi
(identifier_dpi) identifier_dpi
)keyword_argument
(keyword_argument
(identifier_transparent) identifier_transparent
(identifier_transparent) identifier_transparent
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Generates a figure file in the selected directory.
Args:
fig: matplotlib figure
prefile(str): Include before the general filename of the figure
postfile(str): Included after the general filename of the figure
output_path(str): Define the path to the output directory
output_name(str): String to define the name of the output figure
output_format(str): String to define the format of the output figure
dpi(int): Define the DPI (Dots per Inch) of the figure
transparent(bool): If True the saved figure will have a transparent background |
(module
(function_definition
(function_name_filter_format) function_name_filter_format
(parameters
(identifier_filter_template) identifier_filter_template
(identifier_assertion_values) identifier_assertion_values
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_filter_template) identifier_filter_template
(identifier_bytes) identifier_bytes
)argument_list
)call
)assert_statement
(return_statement
(binary_operator
(identifier_filter_template) identifier_filter_template
(parenthesized_expression
(call
(identifier_tuple) identifier_tuple
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(identifier_escape_filter_chars) identifier_escape_filter_chars
(identifier_assertion_values) identifier_assertion_values
)argument_list
)call
)argument_list
)call
)parenthesized_expression
)binary_operator
)return_statement
)block
)function_definition
)module | filter_template
String containing %s as placeholder for assertion values.
assertion_values
List or tuple of assertion values. Length must match
count of %s in filter_template. |
(module
(function_definition
(function_name_global_horizontal_irradiance) function_name_global_horizontal_irradiance
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_analysis_period) identifier_analysis_period
(call
(identifier_AnalysisPeriod) identifier_AnalysisPeriod
(argument_list
(keyword_argument
(identifier_timestep) identifier_timestep
(attribute
(identifier_self) identifier_self
(identifier_timestep) identifier_timestep
)attribute
)keyword_argument
(keyword_argument
(identifier_is_leap_year) identifier_is_leap_year
(attribute
(identifier_self) identifier_self
(identifier_is_leap_year) identifier_is_leap_year
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_header_ghr) identifier_header_ghr
(call
(identifier_Header) identifier_Header
(argument_list
(keyword_argument
(identifier_data_type) identifier_data_type
(call
(identifier_GlobalHorizontalIrradiance) identifier_GlobalHorizontalIrradiance
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_unit) identifier_unit
(string_'W/m2') string_'W/m2'
)keyword_argument
(keyword_argument
(identifier_analysis_period) identifier_analysis_period
(identifier_analysis_period) identifier_analysis_period
)keyword_argument
(keyword_argument
(identifier_metadata) identifier_metadata
(attribute
(identifier_self) identifier_self
(identifier_metadata) identifier_metadata
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_glob_horiz) identifier_glob_horiz
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sp) identifier_sp
(call
(attribute
(identifier_Sunpath) identifier_Sunpath
(identifier_from_location) identifier_from_location
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_location) identifier_location
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_sp) identifier_sp
(identifier_is_leap_year) identifier_is_leap_year
)attribute
(attribute
(identifier_self) identifier_self
(identifier_is_leap_year) identifier_is_leap_year
)attribute
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_dt) identifier_dt
(identifier_dnr) identifier_dnr
(identifier_dhr) identifier_dhr
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_datetimes) identifier_datetimes
)attribute
(attribute
(identifier_self) identifier_self
(identifier_direct_normal_irradiance) identifier_direct_normal_irradiance
)attribute
(attribute
(identifier_self) identifier_self
(identifier_diffuse_horizontal_irradiance) identifier_diffuse_horizontal_irradiance
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_sun) identifier_sun
(call
(attribute
(identifier_sp) identifier_sp
(identifier_calculate_sun_from_date_time) identifier_calculate_sun_from_date_time
)attribute
(argument_list
(identifier_dt) identifier_dt
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_glob_horiz) identifier_glob_horiz
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(identifier_dhr) identifier_dhr
(binary_operator
(identifier_dnr) identifier_dnr
(call
(attribute
(identifier_math) identifier_math
(identifier_sin) identifier_sin
)attribute
(argument_list
(call
(attribute
(identifier_math) identifier_math
(identifier_radians) identifier_radians
)attribute
(argument_list
(attribute
(identifier_sun) identifier_sun
(identifier_altitude) identifier_altitude
)attribute
)argument_list
)call
)argument_list
)call
)binary_operator
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier_HourlyContinuousCollection) identifier_HourlyContinuousCollection
(argument_list
(identifier_header_ghr) identifier_header_ghr
(identifier_glob_horiz) identifier_glob_horiz
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the global horizontal irradiance at each timestep. |
(module
(function_definition
(function_name_to_list_str) function_name_to_list_str
(parameters
(identifier_value) identifier_value
(default_parameter
(identifier_encode) identifier_encode
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_index) identifier_index
(identifier_v) identifier_v
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_to_dict_str) identifier_to_dict_str
(argument_list
(identifier_v) identifier_v
(identifier_encode) identifier_encode
)argument_list
)call
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(identifier_list) identifier_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_to_list_str) identifier_to_list_str
(argument_list
(identifier_v) identifier_v
(identifier_encode) identifier_encode
)argument_list
)call
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(identifier_encode) identifier_encode
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_encode) identifier_encode
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_default_encode) identifier_default_encode
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | recursively convert list content into string
:arg list value: The list that need to be converted.
:arg function encode: Function used to encode object. |
(module
(function_definition
(function_name_parse_value) function_name_parse_value
(parameters
(identifier_self) identifier_self
(identifier_val) identifier_val
(identifier_display) identifier_display
(default_parameter
(identifier_rawdict) identifier_rawdict
(integer_0) integer_0
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vno) identifier_vno
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_f) identifier_f
(attribute
(identifier_self) identifier_self
(identifier_static_fields) identifier_static_fields
)attribute
(block
(if_statement
(not_operator
(attribute
(identifier_f) identifier_f
(identifier_name) identifier_name
)attribute
)not_operator
(block
(pass_statement
)pass_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_f) identifier_f
(identifier_LengthField) identifier_LengthField
)argument_list
)call
(block
(pass_statement
)pass_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_f) identifier_f
(identifier_FormatField) identifier_FormatField
)argument_list
)call
(block
(pass_statement
)pass_statement
)block
)elif_clause
(else_clause
(block
(if_statement
(comparison_operator
(attribute
(identifier_f) identifier_f
(identifier_structvalues) identifier_structvalues
)attribute
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_field_val) identifier_field_val
(subscript
(identifier_val) identifier_val
(identifier_vno) identifier_vno
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_field_val) identifier_field_val
(subscript
(identifier_val) identifier_val
(slice
(identifier_vno) identifier_vno
(colon) colon
(binary_operator
(identifier_vno) identifier_vno
(attribute
(identifier_f) identifier_f
(identifier_structvalues) identifier_structvalues
)attribute
)binary_operator
)slice
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_f) identifier_f
(identifier_parse_value) identifier_parse_value
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_field_val) identifier_field_val
(call
(attribute
(identifier_f) identifier_f
(identifier_parse_value) identifier_parse_value
)attribute
(argument_list
(identifier_field_val) identifier_field_val
(identifier_display) identifier_display
(keyword_argument
(identifier_rawdict) identifier_rawdict
(identifier_rawdict) identifier_rawdict
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(attribute
(identifier_f) identifier_f
(identifier_name) identifier_name
)attribute
)subscript
(identifier_field_val) identifier_field_val
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_vno) identifier_vno
(binary_operator
(identifier_vno) identifier_vno
(attribute
(identifier_f) identifier_f
(identifier_structvalues) identifier_structvalues
)attribute
)binary_operator
)assignment
)expression_statement
)block
)for_statement
(if_statement
(not_operator
(identifier_rawdict) identifier_rawdict
)not_operator
(block
(return_statement
(call
(identifier_DictWrapper) identifier_DictWrapper
(argument_list
(identifier_ret) identifier_ret
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | This function is used by List and Object fields to convert
Struct objects with no var_fields into Python values. |
(module
(function_definition
(function_name_create_build_system) function_name_create_build_system
(parameters
(identifier_working_dir) identifier_working_dir
(default_parameter
(identifier_buildsys_type) identifier_buildsys_type
(None) None
)default_parameter
(default_parameter
(identifier_package) identifier_package
(None) None
)default_parameter
(default_parameter
(identifier_opts) identifier_opts
(None) None
)default_parameter
(default_parameter
(identifier_write_build_scripts) identifier_write_build_scripts
(False) False
)default_parameter
(default_parameter
(identifier_verbose) identifier_verbose
(False) False
)default_parameter
(default_parameter
(identifier_build_args) identifier_build_args
(list
)list
)default_parameter
(default_parameter
(identifier_child_build_args) identifier_child_build_args
(list
)list
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_rez) identifier_rez
(identifier_plugin_managers) identifier_plugin_managers
)dotted_name
(dotted_name
(identifier_plugin_manager) identifier_plugin_manager
)dotted_name
)import_from_statement
(if_statement
(not_operator
(identifier_buildsys_type) identifier_buildsys_type
)not_operator
(block
(expression_statement
(assignment
(identifier_clss) identifier_clss
(call
(identifier_get_valid_build_systems) identifier_get_valid_build_systems
(argument_list
(identifier_working_dir) identifier_working_dir
(keyword_argument
(identifier_package) identifier_package
(identifier_package) identifier_package
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_clss) identifier_clss
)not_operator
(block
(raise_statement
(call
(identifier_BuildSystemError) identifier_BuildSystemError
(argument_list
(binary_operator
(string_"No build system is associated with the path %s") string_"No build system is associated with the path %s"
(identifier_working_dir) identifier_working_dir
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_clss) identifier_clss
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(string_', ') string_', '
(identifier_join) identifier_join
)attribute
(generator_expression
(call
(attribute
(identifier_x) identifier_x
(identifier_name) identifier_name
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(identifier_clss) identifier_clss
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(raise_statement
(call
(identifier_BuildSystemError) identifier_BuildSystemError
(argument_list
(binary_operator
(parenthesized_expression
(concatenated_string
(string_"Source could be built with one of: %s; ") string_"Source could be built with one of: %s; "
(string_"Please specify a build system") string_"Please specify a build system"
)concatenated_string
)parenthesized_expression
(identifier_s) identifier_s
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_buildsys_type) identifier_buildsys_type
(call
(attribute
(call
(attribute
(call
(identifier_iter) identifier_iter
(argument_list
(identifier_clss) identifier_clss
)argument_list
)call
(identifier_next) identifier_next
)attribute
(argument_list
)argument_list
)call
(identifier_name) identifier_name
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cls_) identifier_cls_
(call
(attribute
(identifier_plugin_manager) identifier_plugin_manager
(identifier_get_plugin_class) identifier_get_plugin_class
)attribute
(argument_list
(string_'build_system') string_'build_system'
(identifier_buildsys_type) identifier_buildsys_type
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_cls_) identifier_cls_
(argument_list
(identifier_working_dir) identifier_working_dir
(keyword_argument
(identifier_opts) identifier_opts
(identifier_opts) identifier_opts
)keyword_argument
(keyword_argument
(identifier_package) identifier_package
(identifier_package) identifier_package
)keyword_argument
(keyword_argument
(identifier_write_build_scripts) identifier_write_build_scripts
(identifier_write_build_scripts) identifier_write_build_scripts
)keyword_argument
(keyword_argument
(identifier_verbose) identifier_verbose
(identifier_verbose) identifier_verbose
)keyword_argument
(keyword_argument
(identifier_build_args) identifier_build_args
(identifier_build_args) identifier_build_args
)keyword_argument
(keyword_argument
(identifier_child_build_args) identifier_child_build_args
(identifier_child_build_args) identifier_child_build_args
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a new build system that can build the source in working_dir. |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_specfile) identifier_specfile
)attribute
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(identifier_open) identifier_open
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_specfile) identifier_specfile
)attribute
(string_'r') string_'r'
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(attribute
(identifier_self) identifier_self
(identifier_specfile) identifier_specfile
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(for_statement
(identifier_line) identifier_line
(identifier_f) identifier_f
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_v_regex) identifier_v_regex
)attribute
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__pkg_version) identifier__pkg_version
)attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_v_regex) identifier_v_regex
)attribute
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_n_regex) identifier_n_regex
)attribute
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__pkg_name) identifier__pkg_name
)attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_n_regex) identifier_n_regex
)attribute
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__loaded) identifier__loaded
)attribute
(True) True
)assignment
)expression_statement
)block
)function_definition
)module | call this function after the file exists to populate properties |
(module
(function_definition
(function_name_upload) function_name_upload
(parameters
)parameters
(block
(function_definition
(function_name_twine) function_name_twine
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_process) identifier_process
(call
(identifier_run) identifier_run
(argument_list
(attribute
(identifier_sys) identifier_sys
(identifier_executable) identifier_executable
)attribute
(string_'-m') string_'-m'
(string_'twine') string_'twine'
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(comparison_operator
(call
(attribute
(identifier_process) identifier_process
(identifier_wait) identifier_wait
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)return_statement
)block
)function_definition
(if_statement
(comparison_operator
(call
(attribute
(call
(identifier_run) identifier_run
(argument_list
(attribute
(identifier_sys) identifier_sys
(identifier_executable) identifier_executable
)attribute
(string_'setup.py') string_'setup.py'
(string_'sdist') string_'sdist'
(string_'bdist_wheel') string_'bdist_wheel'
)argument_list
)call
(identifier_wait) identifier_wait
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(identifier_error) identifier_error
(argument_list
(string_'failed building packages') string_'failed building packages'
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_twine) identifier_twine
(argument_list
(string_'register') string_'register'
(subscript
(call
(attribute
(identifier_glob) identifier_glob
(identifier_glob) identifier_glob
)attribute
(argument_list
(string_'dist/*') string_'dist/*'
)argument_list
)call
(integer_0) integer_0
)subscript
)argument_list
)call
(block
(expression_statement
(call
(identifier_error) identifier_error
(argument_list
(string_'register failed') string_'register failed'
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_twine) identifier_twine
(argument_list
(string_'upload') string_'upload'
(string_'-s') string_'-s'
(string_'-i') string_'-i'
(string_'CB164668') string_'CB164668'
(string_'--skip-existing') string_'--skip-existing'
(string_'dist/*') string_'dist/*'
)argument_list
)call
(block
(expression_statement
(call
(identifier_error) identifier_error
(argument_list
(string_'upload failed') string_'upload failed'
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | build the files and upload to pypi |
(module
(function_definition
(function_name_imagetransformer_b12l_4h_b128_uncond_dr03_tpu) function_name_imagetransformer_b12l_4h_b128_uncond_dr03_tpu
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_hparams) identifier_hparams
(call
(identifier_imagetransformer_bas8l_8h_big_uncond_dr03_imgnet) identifier_imagetransformer_bas8l_8h_big_uncond_dr03_imgnet
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_update_hparams_for_tpu) identifier_update_hparams_for_tpu
(argument_list
(identifier_hparams) identifier_hparams
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_batch_size) identifier_batch_size
)attribute
(integer_2) integer_2
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_num_heads) identifier_num_heads
)attribute
(integer_4) integer_4
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_num_decoder_layers) identifier_num_decoder_layers
)attribute
(integer_12) integer_12
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_block_length) identifier_block_length
)attribute
(integer_128) integer_128
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_hidden_size) identifier_hidden_size
)attribute
(integer_256) integer_256
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_filter_size) identifier_filter_size
)attribute
(integer_2048) integer_2048
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_layer_preprocess_sequence) identifier_layer_preprocess_sequence
)attribute
(string_"none") string_"none"
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_layer_postprocess_sequence) identifier_layer_postprocess_sequence
)attribute
(string_"dan") string_"dan"
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_layer_prepostprocess_dropout) identifier_layer_prepostprocess_dropout
)attribute
(float_0.1) float_0.1
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_optimizer) identifier_optimizer
)attribute
(string_"Adafactor") string_"Adafactor"
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_learning_rate_schedule) identifier_learning_rate_schedule
)attribute
(string_"rsqrt_decay") string_"rsqrt_decay"
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_learning_rate_warmup_steps) identifier_learning_rate_warmup_steps
)attribute
(integer_10000) integer_10000
)assignment
)expression_statement
(return_statement
(identifier_hparams) identifier_hparams
)return_statement
)block
)function_definition
)module | TPU config for cifar 10. |
(module
(function_definition
(function_name_set_data) function_name_set_data
(parameters
(identifier_self) identifier_self
(identifier_column) identifier_column
(identifier_value) identifier_value
(identifier_role) identifier_role
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
)not_operator
(comparison_operator
(identifier_column) identifier_column
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(identifier_column_count) identifier_column_count
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(identifier_set_data) identifier_set_data
)attribute
(argument_list
(identifier_column) identifier_column
(identifier_value) identifier_value
(identifier_role) identifier_role
)argument_list
)call
)return_statement
)block
)function_definition
)module | Set the data of column to value
:param column: the column to set
:type column: int
:param value: the value to set
:param role: the role, usually EditRole
:type role: :class:`QtCore.Qt.ItemDataRole`
:returns: True, if data successfully changed
:rtype: :class:`bool`
:raises: None |
(module
(function_definition
(function_name_sample) function_name_sample
(parameters
(identifier_self) identifier_self
(identifier_frame) identifier_frame
)parameters
(block
(expression_statement
(assignment
(identifier_frames) identifier_frames
(call
(attribute
(identifier_self) identifier_self
(identifier_frame_stack) identifier_frame_stack
)attribute
(argument_list
(identifier_frame) identifier_frame
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_frames) identifier_frames
(block
(expression_statement
(call
(attribute
(identifier_frames) identifier_frames
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_parent_stats) identifier_parent_stats
(attribute
(identifier_self) identifier_self
(identifier_stats) identifier_stats
)attribute
)assignment
)expression_statement
(for_statement
(identifier_f) identifier_f
(identifier_frames) identifier_frames
(block
(expression_statement
(assignment
(identifier_parent_stats) identifier_parent_stats
(call
(attribute
(identifier_parent_stats) identifier_parent_stats
(identifier_ensure_child) identifier_ensure_child
)attribute
(argument_list
(attribute
(identifier_f) identifier_f
(identifier_f_code) identifier_f_code
)attribute
(identifier_void) identifier_void
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_stats) identifier_stats
(call
(attribute
(identifier_parent_stats) identifier_parent_stats
(identifier_ensure_child) identifier_ensure_child
)attribute
(argument_list
(attribute
(identifier_frame) identifier_frame
(identifier_f_code) identifier_f_code
)attribute
(identifier_RecordingStatistics) identifier_RecordingStatistics
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_stats) identifier_stats
(identifier_own_hits) identifier_own_hits
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)function_definition
)module | Samples the given frame. |
(module
(function_definition
(function_name_pub) function_name_pub
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_topic) identifier_topic
(string_b'') string_b''
)default_parameter
(default_parameter
(identifier_embed_topic) identifier_embed_topic
(False) False
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_topic) identifier_topic
(identifier_bytes) identifier_bytes
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_error) identifier_error
(string_'Topic must be bytes') string_'Topic must be bytes'
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(identifier_error) identifier_error
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(identifier_error) identifier_error
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sock) identifier_sock
(call
(attribute
(identifier_self) identifier_self
(identifier___sock) identifier___sock
)attribute
(argument_list
(attribute
(identifier_zmq) identifier_zmq
(identifier_PUB) identifier_PUB
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___send_function) identifier___send_function
)attribute
(argument_list
(identifier_sock) identifier_sock
(identifier_topic) identifier_topic
(identifier_embed_topic) identifier_embed_topic
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a callable that can be used to transmit a message, with a given
``topic``, in a publisher-subscriber fashion. Note that the sender
function has a ``print`` like signature, with an infinite number of
arguments. Each one being a part of the complete message.
By default, no topic will be included into published messages. Being up
to developers to include the topic, at the beginning of the first part
(i.e. frame) of every published message, so that subscribers are able
to receive them. For a different behaviour, check the embed_topic
argument.
:param topic: the topic that will be published to (default=b'')
:type topic: bytes
:param embed_topic: set for the topic to be automatically sent as the
first part (i.e. frame) of every published message
(default=False)
:type embed_topic bool
:rtype: function |
(module
(function_definition
(function_name__object_to_json) function_name__object_to_json
(parameters
(identifier_obj) identifier_obj
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_obj) identifier_obj
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_obj) identifier_obj
(identifier_isoformat) identifier_isoformat
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_repr) identifier_repr
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convert objects that cannot be natively serialized into JSON
into their string representation
For datetime based objects convert them into their ISO formatted
string as specified by :meth:`datetime.datetime.isoformat`.
:param obj: object to convert into a JSON via getting its string
representation.
:type obj: object
:return: String value representing the given object ready to be
encoded into a JSON.
:rtype: str |
(module
(function_definition
(function_name_touch) function_name_touch
(parameters
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(call
(identifier_get_rc_path) identifier_get_rc_path
(argument_list
)argument_list
)call
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(call
(identifier_open) identifier_open
(argument_list
(call
(identifier_get_rc_path) identifier_get_rc_path
(argument_list
)argument_list
)call
(string_'a') string_'a'
)argument_list
)call
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'Created file: {}') string_'Created file: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_get_rc_path) identifier_get_rc_path
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Create a .vacationrc file if none exists. |
(module
(function_definition
(function_name_options) function_name_options
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwds) identifier_kwds
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_opts) identifier_opts
(call
(identifier_dict) identifier_dict
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_opts) identifier_opts
)attribute
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_k) identifier_k
(identifier_kwds) identifier_kwds
(block
(try_statement
(block
(expression_statement
(assignment
(identifier__) identifier__
(subscript
(identifier_opts) identifier_opts
(identifier_k) identifier_k
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"invalid option {!r}") string_"invalid option {!r}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_k) identifier_k
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(subscript
(identifier_opts) identifier_opts
(identifier_k) identifier_k
)subscript
(subscript
(identifier_kwds) identifier_kwds
(identifier_k) identifier_k
)subscript
)assignment
)expression_statement
)block
)for_statement
(return_statement
(call
(call
(identifier_type) identifier_type
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_cls) identifier_cls
)attribute
(identifier_opts) identifier_opts
(attribute
(identifier_self) identifier_self
(identifier_kwargs) identifier_kwargs
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Change options for interactive functions.
Returns
-------
A new :class:`_InteractFactory` which will apply the
options when called. |
(module
(function_definition
(function_name_add_override) function_name_add_override
(parameters
(identifier_self) identifier_self
(identifier_addr) identifier_addr
(identifier_key) identifier_key
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_address) identifier_address
(attribute
(call
(identifier_Address) identifier_Address
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_addr) identifier_addr
)argument_list
)call
)argument_list
)call
(identifier_id) identifier_id
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'New override for %s %s is %s') string_'New override for %s %s is %s'
(identifier_address) identifier_address
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_device_override) identifier_device_override
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__overrides) identifier__overrides
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_address) identifier_address
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_device_override) identifier_device_override
(identifier_key) identifier_key
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__overrides) identifier__overrides
)attribute
(identifier_address) identifier_address
)subscript
(identifier_device_override) identifier_device_override
)assignment
)expression_statement
)block
)function_definition
)module | Register an attribute override for a device. |
(module
(function_definition
(function_name__to_date_in_588) function_name__to_date_in_588
(parameters
(identifier_date_str) identifier_date_str
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_date_tokens) identifier_date_tokens
(generator_expression
(call
(identifier_int) identifier_int
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(call
(attribute
(identifier_date_str) identifier_date_str
(identifier_split) identifier_split
)attribute
(argument_list
(string_".") string_"."
)argument_list
)call
)for_in_clause
)generator_expression
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(return_statement
(identifier_date_str) identifier_date_str
)return_statement
)block
)except_clause
)try_statement
(return_statement
(call
(attribute
(string_".") string_"."
(identifier_join) identifier_join
)attribute
(generator_expression
(call
(identifier_str) identifier_str
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(identifier_date_tokens) identifier_date_tokens
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Convert date in the format ala 03.02.2017 to 3.2.2017.
Viz #100 for details. |
(module
(function_definition
(function_name__remove_till_caught_up_3pc) function_name__remove_till_caught_up_3pc
(parameters
(identifier_self) identifier_self
(identifier_last_caught_up_3PC) identifier_last_caught_up_3PC
)parameters
(block
(expression_statement
(assignment
(identifier_outdated_pre_prepares) identifier_outdated_pre_prepares
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_pp) identifier_pp
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_prePrepares) identifier_prePrepares
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(identifier_compare_3PC_keys) identifier_compare_3PC_keys
(argument_list
(identifier_key) identifier_key
(identifier_last_caught_up_3PC) identifier_last_caught_up_3PC
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_outdated_pre_prepares) identifier_outdated_pre_prepares
(identifier_key) identifier_key
)subscript
(identifier_pp) identifier_pp
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_pp) identifier_pp
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sentPrePrepares) identifier_sentPrePrepares
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(identifier_compare_3PC_keys) identifier_compare_3PC_keys
(argument_list
(identifier_key) identifier_key
(identifier_last_caught_up_3PC) identifier_last_caught_up_3PC
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_outdated_pre_prepares) identifier_outdated_pre_prepares
(identifier_key) identifier_key
)subscript
(identifier_pp) identifier_pp
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_trace) identifier_trace
)attribute
(argument_list
(call
(attribute
(string_'{} going to remove messages for {} 3PC keys') string_'{} going to remove messages for {} 3PC keys'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_self) identifier_self
(call
(identifier_len) identifier_len
(argument_list
(identifier_outdated_pre_prepares) identifier_outdated_pre_prepares
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_pp) identifier_pp
)pattern_list
(call
(attribute
(identifier_outdated_pre_prepares) identifier_outdated_pre_prepares
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_batches) identifier_batches
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_key) identifier_key
(None) None
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sentPrePrepares) identifier_sentPrePrepares
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_key) identifier_key
(None) None
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_prePrepares) identifier_prePrepares
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_key) identifier_key
(None) None
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_prepares) identifier_prepares
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_key) identifier_key
(None) None
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_commits) identifier_commits
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_key) identifier_key
(None) None
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__discard_ordered_req_keys) identifier__discard_ordered_req_keys
)attribute
(argument_list
(identifier_pp) identifier_pp
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Remove any 3 phase messages till the last ordered key and also remove
any corresponding request keys |
(module
(function_definition
(function_name__text_position) function_name__text_position
(parameters
(identifier_size) identifier_size
(identifier_text) identifier_text
(identifier_font) identifier_font
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_width) identifier_width
(identifier_height) identifier_height
)pattern_list
(call
(attribute
(identifier_font) identifier_font
(identifier_getsize) identifier_getsize
)attribute
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_left) identifier_left
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_size) identifier_size
(identifier_width) identifier_width
)binary_operator
)parenthesized_expression
(float_2.0) float_2.0
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_top) identifier_top
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_size) identifier_size
(identifier_height) identifier_height
)binary_operator
)parenthesized_expression
(float_3.0) float_3.0
)binary_operator
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_left) identifier_left
(identifier_top) identifier_top
)expression_list
)return_statement
)block
)function_definition
)module | Returns the left-top point where the text should be positioned. |
(module
(function_definition
(function_name_delete_subject) function_name_delete_subject
(parameters
(identifier_self) identifier_self
(identifier_subject_id) identifier_subject_id
)parameters
(block
(expression_statement
(assignment
(identifier_uri) identifier_uri
(call
(attribute
(identifier_self) identifier_self
(identifier__get_subject_uri) identifier__get_subject_uri
)attribute
(argument_list
(keyword_argument
(identifier_guid) identifier_guid
(identifier_subject_id) identifier_subject_id
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_service) identifier_service
)attribute
(identifier__delete) identifier__delete
)attribute
(argument_list
(identifier_uri) identifier_uri
)argument_list
)call
)return_statement
)block
)function_definition
)module | Remove a specific subject by its identifier. |
(module
(function_definition
(function_name_stop_event_stream) function_name_stop_event_stream
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__stream) identifier__stream
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__stream) identifier__stream
)attribute
(identifier_stop) identifier_stop
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__stream) identifier__stream
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__stream) identifier__stream
)attribute
(None) None
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(attribute
(attribute
(identifier_self) identifier_self
(identifier__events) identifier__events
)attribute
(identifier_mutex) identifier_mutex
)attribute
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__events) identifier__events
)attribute
(identifier_queue) identifier_queue
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)if_statement
)block
)function_definition
)module | Stop streaming events from `gerrit stream-events`. |
(module
(function_definition
(function_name_tb_capture) function_name_tb_capture
(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_wrapper) function_name_wrapper
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwds) identifier_kwds
)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_kwds) identifier_kwds
)dictionary_splat
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(raise_statement
(call
(identifier_MuchoChildError) identifier_MuchoChildError
(argument_list
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
)module | A decorator which captures worker tracebacks.
Tracebacks in particular, are captured. Inspired by an example in
https://bugs.python.org/issue13831.
This decorator wraps rio-mucho worker tasks.
Parameters
----------
func : function
A function to be decorated.
Returns
-------
func |
(module
(function_definition
(function_name_upper_diag_self_prodx) function_name_upper_diag_self_prodx
(parameters
(identifier_list_) identifier_list_
)parameters
(block
(return_statement
(list_comprehension
(tuple
(identifier_item1) identifier_item1
(identifier_item2) identifier_item2
)tuple
(for_in_clause
(pattern_list
(identifier_n1) identifier_n1
(identifier_item1) identifier_item1
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_list_) identifier_list_
)argument_list
)call
)for_in_clause
(for_in_clause
(pattern_list
(identifier_n2) identifier_n2
(identifier_item2) identifier_item2
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_list_) identifier_list_
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_n1) identifier_n1
(identifier_n2) identifier_n2
)comparison_operator
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | upper diagnoal of cartesian product of self and self.
Weird name. fixme
Args:
list_ (list):
Returns:
list:
CommandLine:
python -m utool.util_alg --exec-upper_diag_self_prodx
Example:
>>> # ENABLE_DOCTEST
>>> from utool.util_alg import * # NOQA
>>> list_ = [1, 2, 3]
>>> result = upper_diag_self_prodx(list_)
>>> print(result)
[(1, 2), (1, 3), (2, 3)] |
(module
(function_definition
(function_name_read) function_name_read
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_buffer) identifier_buffer
(call
(identifier_BytesIO) identifier_BytesIO
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_chunk) identifier_chunk
(call
(attribute
(identifier_self) identifier_self
(identifier_buffer_iter) identifier_buffer_iter
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'buffer.write(%r)') string_'buffer.write(%r)'
(identifier_chunk) identifier_chunk
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_buffer) identifier_buffer
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_chunk) identifier_chunk
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_buffer) identifier_buffer
(identifier_seek) identifier_seek
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_buffer) identifier_buffer
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Read buffer out as a single stream.
.. warning::
Avoid using this function!
**Why?** This is a *convenience* function; it doesn't encourage good
memory management.
All memory required for a mesh is duplicated, and returned as a
single :class:`str`. So at best, using this function will double
the memory required for a single model.
**Instead:** Wherever possible, please use :meth:`buffer_iter`. |
(module
(function_definition
(function_name__async_requests) function_name__async_requests
(parameters
(identifier_urls) identifier_urls
)parameters
(block
(expression_statement
(assignment
(identifier_session) identifier_session
(call
(identifier_FuturesSession) identifier_FuturesSession
(argument_list
(keyword_argument
(identifier_max_workers) identifier_max_workers
(integer_30) integer_30
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_futures) identifier_futures
(list_comprehension
(call
(attribute
(identifier_session) identifier_session
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
(for_in_clause
(identifier_url) identifier_url
(identifier_urls) identifier_urls
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(list_comprehension
(call
(attribute
(identifier_future) identifier_future
(identifier_result) identifier_result
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_future) identifier_future
(identifier_futures) identifier_futures
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Sends multiple non-blocking requests. Returns
a list of responses.
:param urls:
List of urls |
(module
(function_definition
(function_name_fave_dashboards_by_username) function_name_fave_dashboards_by_username
(parameters
(identifier_self) identifier_self
(identifier_username) identifier_username
)parameters
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(attribute
(identifier_security_manager) identifier_security_manager
(identifier_find_user) identifier_find_user
)attribute
(argument_list
(keyword_argument
(identifier_username) identifier_username
(identifier_username) identifier_username
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_fave_dashboards) identifier_fave_dashboards
)attribute
(argument_list
(call
(attribute
(identifier_user) identifier_user
(identifier_get_id) identifier_get_id
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | This lets us use a user's username to pull favourite dashboards |
(module
(function_definition
(function_name_get_mesh) function_name_get_mesh
(parameters
(identifier_self) identifier_self
(identifier_var) identifier_var
(default_parameter
(identifier_coords) identifier_coords
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_mesh) identifier_mesh
(call
(attribute
(attribute
(identifier_var) identifier_var
(identifier_attrs) identifier_attrs
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'mesh') string_'mesh'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_mesh) identifier_mesh
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_coords) identifier_coords
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_coords) identifier_coords
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ds) identifier_ds
)attribute
(identifier_coords) identifier_coords
)attribute
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_coords) identifier_coords
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_mesh) identifier_mesh
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ds) identifier_ds
)attribute
(identifier_coords) identifier_coords
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_mesh) identifier_mesh
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get the mesh variable for the given `var`
Parameters
----------
var: xarray.Variable
The data source whith the ``'mesh'`` attribute
coords: dict
The coordinates to use. If None, the coordinates of the dataset of
this decoder is used
Returns
-------
xarray.Coordinate
The mesh coordinate |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.