sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_expireat) function_name_expireat
(parameters
(identifier_key) identifier_key
(identifier_timestamp) identifier_timestamp
(default_parameter
(identifier_host) identifier_host
(None) None
)default_parameter
(default_parameter
(identifier_port) identifier_port
(None) None
)default_parameter
(default_parameter
(identifier_db) identifier_db
(None) None
)default_parameter
(default_parameter
(identifier_password) identifier_password
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_server) identifier_server
(call
(identifier__connect) identifier__connect
(argument_list
(identifier_host) identifier_host
(identifier_port) identifier_port
(identifier_db) identifier_db
(identifier_password) identifier_password
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_server) identifier_server
(identifier_expireat) identifier_expireat
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_timestamp) identifier_timestamp
)argument_list
)call
)return_statement
)block
)function_definition
)module | Set a keys expire at given UNIX time
CLI Example:
.. code-block:: bash
salt '*' redis.expireat foo 1400000000 |
(module
(function_definition
(function_name_secret_hex) function_name_secret_hex
(parameters
(identifier_self) identifier_self
(identifier_secret_hex) identifier_secret_hex
)parameters
(block
(if_statement
(comparison_operator
(identifier_secret_hex) identifier_secret_hex
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Invalid value for `secret_hex`, must not be `None`") string_"Invalid value for `secret_hex`, must not be `None`"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_secret_hex) identifier_secret_hex
(None) None
)comparison_operator
(not_operator
(call
(attribute
(identifier_re) identifier_re
(identifier_search) identifier_search
)attribute
(argument_list
(string_'^(0[xX])?[0-9a-fA-F]{32,64}$') string_'^(0[xX])?[0-9a-fA-F]{32,64}$'
(identifier_secret_hex) identifier_secret_hex
)argument_list
)call
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Invalid value for `secret_hex`, must be a follow pattern or equal to `/^(0[xX])?[0-9a-fA-F]{32,64}$/`") string_"Invalid value for `secret_hex`, must be a follow pattern or equal to `/^(0[xX])?[0-9a-fA-F]{32,64}$/`"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__secret_hex) identifier__secret_hex
)attribute
(identifier_secret_hex) identifier_secret_hex
)assignment
)expression_statement
)block
)function_definition
)module | Sets the secret_hex of this PreSharedKey.
The secret of the pre-shared key in hexadecimal. It is not case sensitive; 4a is same as 4A, and it is allowed with or without 0x in the beginning. The minimum length of the secret is 128 bits and maximum 256 bits.
:param secret_hex: The secret_hex of this PreSharedKey.
:type: str |
(module
(function_definition
(function_name_parameterize_path) function_name_parameterize_path
(parameters
(identifier_path) identifier_path
(identifier_parameters) identifier_parameters
)parameters
(block
(if_statement
(comparison_operator
(identifier_parameters) identifier_parameters
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_parameters) identifier_parameters
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(return_statement
(call
(attribute
(identifier_path) identifier_path
(identifier_format) identifier_format
)attribute
(argument_list
(dictionary_splat
(identifier_parameters) identifier_parameters
)dictionary_splat
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(identifier_KeyError) identifier_KeyError
(as_pattern_target
(identifier_key_error) identifier_key_error
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_PapermillMissingParameterException) identifier_PapermillMissingParameterException
(argument_list
(call
(attribute
(string_"Missing parameter {}") string_"Missing parameter {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_key_error) identifier_key_error
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Format a path with a provided dictionary of parameters
Parameters
----------
path : string
Path with optional parameters, as a python format string
parameters : dict
Arbitrary keyword arguments to fill in the path |
(module
(function_definition
(function_name_discrete_index) function_name_discrete_index
(parameters
(identifier_self) identifier_self
(identifier_indices) identifier_indices
)parameters
(block
(expression_statement
(assignment
(identifier_elements) identifier_elements
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(identifier_indices) identifier_indices
(block
(expression_statement
(call
(attribute
(identifier_elements) identifier_elements
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_self) identifier_self
(identifier_i) identifier_i
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_elements) identifier_elements
)return_statement
)block
)function_definition
)module | get elements by discrete indices
:param indices: list
discrete indices
:return: elements |
(module
(function_definition
(function_name_del_cookie) function_name_del_cookie
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_name) identifier_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
(keyword_separator
)keyword_separator
(typed_default_parameter
(identifier_domain) identifier_domain
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_path) identifier_path
(type
(identifier_str) identifier_str
)type
(string_'/') string_'/'
)typed_default_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__cookies) identifier__cookies
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_name) identifier_name
(None) None
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_cookie) identifier_set_cookie
)attribute
(argument_list
(identifier_name) identifier_name
(string_'') string_''
(keyword_argument
(identifier_max_age) identifier_max_age
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_expires) identifier_expires
(string_"Thu, 01 Jan 1970 00:00:00 GMT") string_"Thu, 01 Jan 1970 00:00:00 GMT"
)keyword_argument
(keyword_argument
(identifier_domain) identifier_domain
(identifier_domain) identifier_domain
)keyword_argument
(keyword_argument
(identifier_path) identifier_path
(identifier_path) identifier_path
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Delete cookie.
Creates new empty expired cookie. |
(module
(function_definition
(function_name_modules_and_args) function_name_modules_and_args
(parameters
(default_parameter
(identifier_modules) identifier_modules
(True) True
)default_parameter
(default_parameter
(identifier_states) identifier_states
(False) False
)default_parameter
(default_parameter
(identifier_names_only) identifier_names_only
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_dirs) identifier_dirs
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_module_dir) identifier_module_dir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_realpath) identifier_realpath
)attribute
(argument_list
(identifier___file__) identifier___file__
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_state_dir) identifier_state_dir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_module_dir) identifier_module_dir
)argument_list
)call
(string_'states') string_'states'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_modules) identifier_modules
(block
(expression_statement
(call
(attribute
(identifier_dirs) identifier_dirs
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_module_dir) identifier_module_dir
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_states) identifier_states
(block
(expression_statement
(call
(attribute
(identifier_dirs) identifier_dirs
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_state_dir) identifier_state_dir
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(identifier__mods_with_args) identifier__mods_with_args
(argument_list
(identifier_dirs) identifier_dirs
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_names_only) identifier_names_only
(block
(return_statement
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(identifier_ret) identifier_ret
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_OrderedDict) identifier_OrderedDict
(argument_list
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(identifier_ret) identifier_ret
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Walk the Salt install tree and return a dictionary or a list
of the functions therein as well as their arguments.
:param modules: Walk the modules directory if True
:param states: Walk the states directory if True
:param names_only: Return only a list of the callable functions instead of a dictionary with arguments
:return: An OrderedDict with callable function names as keys and lists of arguments as
values (if ``names_only``==False) or simply an ordered list of callable
function nanes (if ``names_only``==True).
CLI Example:
(example truncated for brevity)
.. code-block:: bash
salt myminion baredoc.modules_and_args
myminion:
----------
[...]
at.atrm:
at.jobcheck:
at.mod_watch:
- name
at.present:
- unique_tag
- name
- timespec
- job
- tag
- user
at.watch:
- unique_tag
- name
- timespec
- job
- tag
- user
[...] |
(module
(function_definition
(function_name_common_items_ratio) function_name_common_items_ratio
(parameters
(identifier_pronac) identifier_pronac
(identifier_dt) identifier_dt
)parameters
(block
(expression_statement
(assignment
(identifier_segment_id) identifier_segment_id
(call
(identifier_get_segment_id) identifier_get_segment_id
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_pronac) identifier_pronac
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_metrics) identifier_metrics
(subscript
(call
(attribute
(attribute
(identifier_data) identifier_data
(identifier_common_items_metrics) identifier_common_items_metrics
)attribute
(identifier_to_dict) identifier_to_dict
)attribute
(argument_list
(keyword_argument
(identifier_orient) identifier_orient
(string_'index') string_'index'
)keyword_argument
)argument_list
)call
(identifier_segment_id) identifier_segment_id
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ratio) identifier_ratio
(call
(identifier_common_items_percentage) identifier_common_items_percentage
(argument_list
(identifier_pronac) identifier_pronac
(call
(identifier_segment_common_items) identifier_segment_common_items
(argument_list
(identifier_segment_id) identifier_segment_id
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_k) identifier_k
(float_1.5) float_1.5
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_threshold) identifier_threshold
(binary_operator
(subscript
(identifier_metrics) identifier_metrics
(string_'mean') string_'mean'
)subscript
(binary_operator
(identifier_k) identifier_k
(subscript
(identifier_metrics) identifier_metrics
(string_'std') string_'std'
)subscript
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_uncommon_items) identifier_uncommon_items
(call
(identifier_get_uncommon_items) identifier_get_uncommon_items
(argument_list
(identifier_pronac) identifier_pronac
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pronac_filter) identifier_pronac_filter
(comparison_operator
(subscript
(attribute
(identifier_data) identifier_data
(identifier_all_items) identifier_all_items
)attribute
(string_'PRONAC') string_'PRONAC'
)subscript
(identifier_pronac) identifier_pronac
)comparison_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_uncommon_items_filter) identifier_uncommon_items_filter
(parenthesized_expression
(call
(attribute
(subscript
(attribute
(identifier_data) identifier_data
(identifier_all_items) identifier_all_items
)attribute
(string_'idPlanilhaItens') string_'idPlanilhaItens'
)subscript
(identifier_isin) identifier_isin
)attribute
(argument_list
(identifier_uncommon_items) identifier_uncommon_items
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_items_filter) identifier_items_filter
(parenthesized_expression
(binary_operator
(identifier_pronac_filter) identifier_pronac_filter
(identifier_uncommon_items_filter) identifier_uncommon_items_filter
)binary_operator
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_filtered_items) identifier_filtered_items
(parenthesized_expression
(call
(attribute
(subscript
(attribute
(identifier_data) identifier_data
(identifier_all_items) identifier_all_items
)attribute
(identifier_items_filter) identifier_items_filter
)subscript
(identifier_drop_duplicates) identifier_drop_duplicates
)attribute
(argument_list
(keyword_argument
(identifier_subset) identifier_subset
(string_'idPlanilhaItens') string_'idPlanilhaItens'
)keyword_argument
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_uncommon_items) identifier_uncommon_items
(call
(identifier_add_info_to_uncommon_items) identifier_add_info_to_uncommon_items
(argument_list
(identifier_filtered_items) identifier_filtered_items
(identifier_uncommon_items) identifier_uncommon_items
)argument_list
)call
)assignment
)expression_statement
(return_statement
(dictionary
(pair
(string_'is_outlier') string_'is_outlier'
(comparison_operator
(identifier_ratio) identifier_ratio
(identifier_threshold) identifier_threshold
)comparison_operator
)pair
(pair
(string_'valor') string_'valor'
(identifier_ratio) identifier_ratio
)pair
(pair
(string_'maximo_esperado') string_'maximo_esperado'
(subscript
(identifier_metrics) identifier_metrics
(string_'mean') string_'mean'
)subscript
)pair
(pair
(string_'desvio_padrao') string_'desvio_padrao'
(subscript
(identifier_metrics) identifier_metrics
(string_'std') string_'std'
)subscript
)pair
(pair
(string_'items_incomuns') string_'items_incomuns'
(identifier_uncommon_items) identifier_uncommon_items
)pair
(pair
(string_'items_comuns_que_o_projeto_nao_possui') string_'items_comuns_que_o_projeto_nao_possui'
(call
(identifier_get_common_items_not_present) identifier_get_common_items_not_present
(argument_list
(identifier_pronac) identifier_pronac
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Calculates the common items on projects in a cultural segment,
calculates the uncommon items on projects in a cultural segment and
verify if a project is an outlier compared to the other projects
in his segment. |
(module
(function_definition
(function_name_extend) function_name_extend
(parameters
(identifier_self) identifier_self
(identifier_elts) identifier_elts
)parameters
(block
(expression_statement
(assignment
(identifier_elts) identifier_elts
(subscript
(identifier_elts) identifier_elts
(slice
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__in_deque) identifier__in_deque
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_elts) identifier_elts
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_event) identifier_event
(call
(attribute
(identifier_self) identifier_self
(identifier__event_for) identifier__event_for
)attribute
(argument_list
(identifier_elts) identifier_elts
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__event_deque) identifier__event_deque
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_event) identifier_event
)argument_list
)call
)expression_statement
(return_statement
(identifier_event) identifier_event
)return_statement
)block
)function_definition
)module | Adds elts to the tasks.
Args:
elts (Sequence): a iterable of elements that can be appended to the
task's bundle_field.
Returns:
Event: an event that can be used to wait on the response. |
(module
(function_definition
(function_name_local_manager_rule) function_name_local_manager_rule
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_adm_gid) identifier_adm_gid
(attribute
(identifier_self) identifier_self
(identifier_local_manager_gid) identifier_local_manager_gid
)attribute
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_adm_gid) identifier_adm_gid
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_config) identifier_config
(attribute
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_root) identifier_root
)attribute
(string_'settings') string_'settings'
)subscript
(string_'ugm_localmanager') string_'ugm_localmanager'
)subscript
(identifier_attrs) identifier_attrs
)attribute
)assignment
)expression_statement
(return_statement
(subscript
(identifier_config) identifier_config
(identifier_adm_gid) identifier_adm_gid
)subscript
)return_statement
)block
)function_definition
)module | Return rule for local manager. |
(module
(function_definition
(function_name_vote_random) function_name_vote_random
(parameters
(identifier_candidates) identifier_candidates
(identifier_votes) identifier_votes
(identifier_n_winners) identifier_n_winners
)parameters
(block
(expression_statement
(assignment
(identifier_rcands) identifier_rcands
(call
(identifier_list) identifier_list
(argument_list
(identifier_candidates) identifier_candidates
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_shuffle) identifier_shuffle
(argument_list
(identifier_rcands) identifier_rcands
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_rcands) identifier_rcands
(subscript
(identifier_rcands) identifier_rcands
(slice
(colon) colon
(call
(identifier_min) identifier_min
(argument_list
(identifier_n_winners) identifier_n_winners
(call
(identifier_len) identifier_len
(argument_list
(identifier_rcands) identifier_rcands
)argument_list
)call
)argument_list
)call
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_best) identifier_best
(list_comprehension
(tuple
(identifier_i) identifier_i
(float_0.0) float_0.0
)tuple
(for_in_clause
(identifier_i) identifier_i
(identifier_rcands) identifier_rcands
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(identifier_best) identifier_best
)return_statement
)block
)function_definition
)module | Select random winners from the candidates.
This voting method bypasses the given votes completely.
:param candidates: All candidates in the vote
:param votes: Votes from the agents
:param int n_winners: The number of vote winners |
(module
(function_definition
(function_name_stop_all) function_name_stop_all
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_pool) identifier_pool
(call
(identifier_Pool) identifier_Pool
(argument_list
(keyword_argument
(identifier_concurrency) identifier_concurrency
(integer_3) integer_3
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_node) identifier_node
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_nodes) identifier_nodes
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_pool) identifier_pool
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_node) identifier_node
(identifier_stop) identifier_stop
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(yield
(call
(attribute
(identifier_pool) identifier_pool
(identifier_join) identifier_join
)attribute
(argument_list
)argument_list
)call
)yield
)expression_statement
)block
)function_definition
)module | Stop all nodes |
(module
(function_definition
(function_name_load_extra) function_name_load_extra
(parameters
(identifier_cls) identifier_cls
(identifier_filename) identifier_filename
)parameters
(block
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_filename) identifier_filename
(string_'rb') string_'rb'
)argument_list
)call
(as_pattern_target
(identifier_configuration_file) identifier_configuration_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier_load_extra_data) identifier_load_extra_data
)attribute
(argument_list
(call
(attribute
(identifier_configuration_file) identifier_configuration_file
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(string_"Config successfully loaded from {0:s}\n") string_"Config successfully loaded from {0:s}\n"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)with_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Loads extra JSON configuration parameters from a file on the filesystem.
Args:
filename: str, the filename to open.
Returns:
bool: True if the extra configuration parameters were read. |
(module
(function_definition
(function_name_forward) function_name_forward
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__index) identifier__index
)attribute
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__history) identifier__history
)attribute
)argument_list
)call
(integer_1) integer_1
)binary_operator
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__index) identifier__index
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_index) identifier__check_index
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_current_item) identifier_current_item
)attribute
)return_statement
)block
)function_definition
)module | Go forward in history if possible.
Return the current item after going forward. |
(module
(function_definition
(function_name_parse_args) function_name_parse_args
(parameters
(identifier_self) identifier_self
(identifier_ctx) identifier_ctx
(identifier_args) identifier_args
)parameters
(block
(if_statement
(boolean_operator
(identifier_args) identifier_args
(comparison_operator
(subscript
(identifier_args) identifier_args
(integer_0) integer_0
)subscript
(attribute
(identifier_self) identifier_self
(identifier_commands) identifier_commands
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_0) integer_0
(string_'') string_''
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_OptionalGroup) identifier_OptionalGroup
(identifier_self) identifier_self
)argument_list
)call
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
(identifier_ctx) identifier_ctx
(identifier_args) identifier_args
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Check if the first argument is an existing command. |
(module
(function_definition
(function_name_merge) function_name_merge
(parameters
(identifier_dest) identifier_dest
(identifier_src) identifier_src
(default_parameter
(identifier_merge_lists) identifier_merge_lists
(False) False
)default_parameter
(default_parameter
(identifier_in_place) identifier_in_place
(True) True
)default_parameter
)parameters
(block
(if_statement
(identifier_in_place) identifier_in_place
(block
(expression_statement
(assignment
(identifier_merged) identifier_merged
(identifier_dest) identifier_dest
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_merged) identifier_merged
(call
(attribute
(identifier_copy) identifier_copy
(identifier_deepcopy) identifier_deepcopy
)attribute
(argument_list
(identifier_dest) identifier_dest
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(attribute
(identifier_dictupdate) identifier_dictupdate
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_merged) identifier_merged
(identifier_src) identifier_src
(keyword_argument
(identifier_merge_lists) identifier_merge_lists
(identifier_merge_lists) identifier_merge_lists
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | defaults.merge
Allows deep merging of dicts in formulas.
merge_lists : False
If True, it will also merge lists instead of replace their items.
in_place : True
If True, it will merge into dest dict,
if not it will make a new copy from that dict and return it.
CLI Example:
.. code-block:: bash
salt '*' default.merge a=b d=e
It is more typical to use this in a templating language in formulas,
instead of directly on the command-line. |
(module
(function_definition
(function_name_limited_to) function_name_limited_to
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_left) identifier_left
(type
(generic_type
(identifier_Set) identifier_Set
(type_parameter
(type
(identifier_TLeft) identifier_TLeft
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_right) identifier_right
(type
(generic_type
(identifier_Set) identifier_Set
(type_parameter
(type
(identifier_TRight) identifier_TRight
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(string_'BipartiteGraph[TLeft, TRight, TEdgeValue]') string_'BipartiteGraph[TLeft, TRight, TEdgeValue]'
)type
(block
(return_statement
(call
(identifier_BipartiteGraph) identifier_BipartiteGraph
(generator_expression
(tuple
(tuple
(identifier_n1) identifier_n1
(identifier_n2) identifier_n2
)tuple
(identifier_v) identifier_v
)tuple
(for_in_clause
(pattern_list
(tuple_pattern
(identifier_n1) identifier_n1
(identifier_n2) identifier_n2
)tuple_pattern
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__edges) identifier__edges
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(boolean_operator
(comparison_operator
(identifier_n1) identifier_n1
(identifier_left) identifier_left
)comparison_operator
(comparison_operator
(identifier_n2) identifier_n2
(identifier_right) identifier_right
)comparison_operator
)boolean_operator
)if_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Returns the induced subgraph where only the nodes from the given sets are included. |
(module
(function_definition
(function_name_samefile) function_name_samefile
(parameters
(identifier_path1) identifier_path1
(identifier_path2) identifier_path2
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_path1) identifier_path1
(identifier_path1_is_storage) identifier_path1_is_storage
)pattern_list
(call
(identifier_format_and_is_storage) identifier_format_and_is_storage
(argument_list
(identifier_path1) identifier_path1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_path2) identifier_path2
(identifier_path2_is_storage) identifier_path2_is_storage
)pattern_list
(call
(identifier_format_and_is_storage) identifier_format_and_is_storage
(argument_list
(identifier_path2) identifier_path2
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(identifier_path1_is_storage) identifier_path1_is_storage
)not_operator
(not_operator
(identifier_path2_is_storage) identifier_path2_is_storage
)not_operator
)boolean_operator
(block
(return_statement
(call
(identifier_os_path_samefile) identifier_os_path_samefile
(argument_list
(identifier_path1) identifier_path1
(identifier_path2) identifier_path2
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(not_operator
(identifier_path1_is_storage) identifier_path1_is_storage
)not_operator
(not_operator
(identifier_path2_is_storage) identifier_path2_is_storage
)not_operator
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(call
(identifier_handle_os_exceptions) identifier_handle_os_exceptions
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_system) identifier_system
(call
(identifier_get_instance) identifier_get_instance
(argument_list
(identifier_path1) identifier_path1
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_system) identifier_system
(call
(identifier_get_instance) identifier_get_instance
(argument_list
(identifier_path2) identifier_path2
)argument_list
)call
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
(elif_clause
(comparison_operator
(call
(attribute
(identifier_system) identifier_system
(identifier_relpath) identifier_relpath
)attribute
(argument_list
(identifier_path1) identifier_path1
)argument_list
)call
(call
(attribute
(identifier_system) identifier_system
(identifier_relpath) identifier_relpath
)attribute
(argument_list
(identifier_path2) identifier_path2
)argument_list
)call
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)elif_clause
)if_statement
)block
)with_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Return True if both pathname arguments refer to the same file or directory.
Equivalent to "os.path.samefile".
Args:
path1 (path-like object): Path or URL.
path2 (path-like object): Path or URL.
Returns:
bool: True if same file or directory. |
(module
(function_definition
(function_name_get_change_price) function_name_get_change_price
(parameters
(identifier_self) identifier_self
(identifier_plan_old) identifier_plan_old
(identifier_plan_new) identifier_plan_new
(identifier_period) identifier_period
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_period) identifier_period
(None) None
)comparison_operator
(comparison_operator
(identifier_period) identifier_period
(integer_1) integer_1
)comparison_operator
)boolean_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_plan_old_day_cost) identifier_plan_old_day_cost
(call
(attribute
(identifier_self) identifier_self
(identifier__calculate_day_cost) identifier__calculate_day_cost
)attribute
(argument_list
(identifier_plan_old) identifier_plan_old
(identifier_period) identifier_period
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_plan_new_day_cost) identifier_plan_new_day_cost
(call
(attribute
(identifier_self) identifier_self
(identifier__calculate_day_cost) identifier__calculate_day_cost
)attribute
(argument_list
(identifier_plan_new) identifier_plan_new
(identifier_period) identifier_period
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_plan_new_day_cost) identifier_plan_new_day_cost
(identifier_plan_old_day_cost) identifier_plan_old_day_cost
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__calculate_final_price) identifier__calculate_final_price
)attribute
(argument_list
(identifier_period) identifier_period
(None) None
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__calculate_final_price) identifier__calculate_final_price
)attribute
(argument_list
(identifier_period) identifier_period
(binary_operator
(identifier_plan_new_day_cost) identifier_plan_new_day_cost
(identifier_plan_old_day_cost) identifier_plan_old_day_cost
)binary_operator
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Calculates total price of plan change. Returns None if no payment is required. |
(module
(function_definition
(function_name_truncated_normal_expval) function_name_truncated_normal_expval
(parameters
(identifier_mu) identifier_mu
(identifier_tau) identifier_tau
(identifier_a) identifier_a
(identifier_b) identifier_b
)parameters
(block
(expression_statement
(assignment
(identifier_phia) identifier_phia
(call
(attribute
(identifier_np) identifier_np
(identifier_exp) identifier_exp
)attribute
(argument_list
(call
(identifier_normal_like) identifier_normal_like
(argument_list
(identifier_a) identifier_a
(identifier_mu) identifier_mu
(identifier_tau) identifier_tau
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_phib) identifier_phib
(call
(attribute
(identifier_np) identifier_np
(identifier_exp) identifier_exp
)attribute
(argument_list
(call
(identifier_normal_like) identifier_normal_like
(argument_list
(identifier_b) identifier_b
(identifier_mu) identifier_mu
(identifier_tau) identifier_tau
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sigma) identifier_sigma
(binary_operator
(float_1.) float_1.
(call
(attribute
(identifier_np) identifier_np
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(identifier_tau) identifier_tau
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_Phia) identifier_Phia
(call
(attribute
(identifier_utils) identifier_utils
(identifier_normcdf) identifier_normcdf
)attribute
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_a) identifier_a
(identifier_mu) identifier_mu
)binary_operator
)parenthesized_expression
(identifier_sigma) identifier_sigma
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_b) identifier_b
(attribute
(identifier_np) identifier_np
(identifier_inf) identifier_inf
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_Phib) identifier_Phib
(float_1.0) float_1.0
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_Phib) identifier_Phib
(call
(attribute
(identifier_utils) identifier_utils
(identifier_normcdf) identifier_normcdf
)attribute
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_b) identifier_b
(identifier_mu) identifier_mu
)binary_operator
)parenthesized_expression
(identifier_sigma) identifier_sigma
)binary_operator
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(subscript
(parenthesized_expression
(binary_operator
(identifier_mu) identifier_mu
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_phia) identifier_phia
(identifier_phib) identifier_phib
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_Phib) identifier_Phib
(identifier_Phia) identifier_Phia
)binary_operator
)parenthesized_expression
)binary_operator
)binary_operator
)parenthesized_expression
(integer_0) integer_0
)subscript
)return_statement
)block
)function_definition
)module | Expected value of the truncated normal distribution.
.. math::
E(X) =\mu + \frac{\sigma(\varphi_1-\varphi_2)}{T}
where
.. math::
T & =\Phi\left(\frac{B-\mu}{\sigma}\right)-\Phi
\left(\frac{A-\mu}{\sigma}\right)\text \\
\varphi_1 &=
\varphi\left(\frac{A-\mu}{\sigma}\right) \\
\varphi_2 &=
\varphi\left(\frac{B-\mu}{\sigma}\right) \\
and :math:`\varphi = N(0,1)` and :math:`tau & 1/sigma**2`.
:Parameters:
- `mu` : Mean of the distribution.
- `tau` : Precision of the distribution, which corresponds to 1/sigma**2 (tau > 0).
- `a` : Left bound of the distribution.
- `b` : Right bound of the distribution. |
(module
(function_definition
(function_name_print_evaluation) function_name_print_evaluation
(parameters
(default_parameter
(identifier_period) identifier_period
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_show_stdv) identifier_show_stdv
(True) True
)default_parameter
)parameters
(block
(function_definition
(function_name_callback) function_name_callback
(parameters
(identifier_env) identifier_env
)parameters
(block
(if_statement
(boolean_operator
(boolean_operator
(boolean_operator
(comparison_operator
(attribute
(identifier_env) identifier_env
(identifier_rank) identifier_rank
)attribute
(integer_0) integer_0
)comparison_operator
(parenthesized_expression
(not_operator
(attribute
(identifier_env) identifier_env
(identifier_evaluation_result_list) identifier_evaluation_result_list
)attribute
)not_operator
)parenthesized_expression
)boolean_operator
(comparison_operator
(identifier_period) identifier_period
(False) False
)comparison_operator
)boolean_operator
(comparison_operator
(identifier_period) identifier_period
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_i) identifier_i
(attribute
(identifier_env) identifier_env
(identifier_iteration) identifier_iteration
)attribute
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(comparison_operator
(binary_operator
(identifier_i) identifier_i
(identifier_period) identifier_period
)binary_operator
(integer_0) integer_0
)comparison_operator
(comparison_operator
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
(attribute
(identifier_env) identifier_env
(identifier_begin_iteration) identifier_begin_iteration
)attribute
)comparison_operator
)boolean_operator
(comparison_operator
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
(attribute
(identifier_env) identifier_env
(identifier_end_iteration) identifier_end_iteration
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(string_'\t') string_'\t'
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(identifier__fmt_metric) identifier__fmt_metric
(argument_list
(identifier_x) identifier_x
(identifier_show_stdv) identifier_show_stdv
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(attribute
(identifier_env) identifier_env
(identifier_evaluation_result_list) identifier_evaluation_result_list
)attribute
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_rabit) identifier_rabit
(identifier_tracker_print) identifier_tracker_print
)attribute
(argument_list
(binary_operator
(string_'[%d]\t%s\n') string_'[%d]\t%s\n'
(tuple
(identifier_i) identifier_i
(identifier_msg) identifier_msg
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
(return_statement
(identifier_callback) identifier_callback
)return_statement
)block
)function_definition
)module | Create a callback that print evaluation result.
We print the evaluation results every **period** iterations
and on the first and the last iterations.
Parameters
----------
period : int
The period to log the evaluation results
show_stdv : bool, optional
Whether show stdv if provided
Returns
-------
callback : function
A callback that print evaluation every period iterations. |
(module
(function_definition
(function_name_checkInstalledBrew) function_name_checkInstalledBrew
(parameters
(identifier_package) identifier_package
(default_parameter
(identifier_similar) identifier_similar
(True) True
)default_parameter
(default_parameter
(identifier_speak) identifier_speak
(True) True
)default_parameter
(default_parameter
(identifier_speakSimilar) identifier_speakSimilar
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_packages) identifier_packages
(call
(attribute
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_output) identifier_check_output
)attribute
(argument_list
(list
(string_'brew') string_'brew'
(string_'list') string_'list'
)list
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_installed) identifier_installed
(comparison_operator
(identifier_package) identifier_package
(identifier_packages) identifier_packages
)comparison_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_similar) identifier_similar
(list
)list
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_installed) identifier_installed
)not_operator
(block
(expression_statement
(assignment
(identifier_similar) identifier_similar
(list_comprehension
(identifier_pkg) identifier_pkg
(for_in_clause
(identifier_pkg) identifier_pkg
(identifier_packages) identifier_packages
)for_in_clause
(if_clause
(comparison_operator
(identifier_package) identifier_package
(identifier_pkg) identifier_pkg
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_speak) identifier_speak
(block
(expression_statement
(call
(identifier_speakInstalledPackages) identifier_speakInstalledPackages
(argument_list
(identifier_package) identifier_package
(string_"homebrew") string_"homebrew"
(identifier_installed) identifier_installed
(identifier_similar) identifier_similar
(identifier_speakSimilar) identifier_speakSimilar
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(tuple
(identifier_installed) identifier_installed
(identifier_similar) identifier_similar
)tuple
)return_statement
)block
)function_definition
)module | checks if a given package is installed on homebrew |
(module
(function_definition
(function_name_stratified_kfold) function_name_stratified_kfold
(parameters
(identifier_df) identifier_df
(identifier_n_folds) identifier_n_folds
)parameters
(block
(expression_statement
(assignment
(identifier_sessions) identifier_sessions
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_pd) identifier_pd
(identifier_DataFrame) identifier_DataFrame
)attribute
(identifier_from_records) identifier_from_records
)attribute
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(attribute
(identifier_df) identifier_df
(identifier_index) identifier_index
)attribute
(identifier_unique) identifier_unique
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
(identifier_groupby) identifier_groupby
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
(identifier_apply) identifier_apply
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(attribute
(subscript
(identifier_x) identifier_x
(integer_1) integer_1
)subscript
(identifier_unique) identifier_unique
)attribute
(argument_list
)argument_list
)call
)lambda
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_sessions) identifier_sessions
(identifier_apply) identifier_apply
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(attribute
(attribute
(identifier_np) identifier_np
(identifier_random) identifier_random
)attribute
(identifier_shuffle) identifier_shuffle
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)lambda
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_folds) identifier_folds
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_n_folds) identifier_n_folds
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_idx) identifier_idx
(call
(attribute
(identifier_sessions) identifier_sessions
(identifier_apply) identifier_apply
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(attribute
(identifier_pd) identifier_pd
(identifier_Series) identifier_Series
)attribute
(argument_list
(subscript
(identifier_x) identifier_x
(slice
(binary_operator
(identifier_i) identifier_i
(parenthesized_expression
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(identifier_n_folds) identifier_n_folds
)binary_operator
)parenthesized_expression
)binary_operator
(colon) colon
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(identifier_n_folds) identifier_n_folds
)binary_operator
)parenthesized_expression
)binary_operator
)slice
)subscript
)argument_list
)call
)lambda
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_idx) identifier_idx
(attribute
(attribute
(call
(attribute
(call
(attribute
(identifier_pd) identifier_pd
(identifier_DataFrame) identifier_DataFrame
)attribute
(argument_list
(call
(attribute
(call
(attribute
(identifier_idx) identifier_idx
(identifier_stack) identifier_stack
)attribute
(argument_list
)argument_list
)call
(identifier_reset_index) identifier_reset_index
)attribute
(argument_list
(keyword_argument
(identifier_level) identifier_level
(integer_1) integer_1
)keyword_argument
(keyword_argument
(identifier_drop) identifier_drop
(True) True
)keyword_argument
)argument_list
)call
)argument_list
)call
(identifier_set_index) identifier_set_index
)attribute
(argument_list
(integer_0) integer_0
(keyword_argument
(identifier_append) identifier_append
(True) True
)keyword_argument
)argument_list
)call
(identifier_index) identifier_index
)attribute
(identifier_values) identifier_values
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_folds) identifier_folds
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(attribute
(identifier_df) identifier_df
(identifier_loc) identifier_loc
)attribute
(identifier_idx) identifier_idx
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_folds) identifier_folds
)return_statement
)block
)function_definition
)module | Create stratified k-folds from an indexed dataframe |
(module
(function_definition
(function_name__get_stddevs) function_name__get_stddevs
(parameters
(identifier_self) identifier_self
(identifier_C) identifier_C
(identifier_stddev_types) identifier_stddev_types
(identifier_stddev_shape) identifier_stddev_shape
)parameters
(block
(expression_statement
(assignment
(identifier_stddevs) identifier_stddevs
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_stddev_type) identifier_stddev_type
(identifier_stddev_types) identifier_stddev_types
(block
(assert_statement
(comparison_operator
(identifier_stddev_type) identifier_stddev_type
(attribute
(identifier_self) identifier_self
(identifier_DEFINED_FOR_STANDARD_DEVIATION_TYPES) identifier_DEFINED_FOR_STANDARD_DEVIATION_TYPES
)attribute
)comparison_operator
)assert_statement
(if_statement
(comparison_operator
(identifier_stddev_type) identifier_stddev_type
(attribute
(attribute
(identifier_const) identifier_const
(identifier_StdDev) identifier_StdDev
)attribute
(identifier_TOTAL) identifier_TOTAL
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_stddevs) identifier_stddevs
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(subscript
(identifier_C) identifier_C
(string_"sigtot") string_"sigtot"
)subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(identifier_stddev_shape) identifier_stddev_shape
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_stddev_type) identifier_stddev_type
(attribute
(attribute
(identifier_const) identifier_const
(identifier_StdDev) identifier_StdDev
)attribute
(identifier_INTRA_EVENT) identifier_INTRA_EVENT
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_stddevs) identifier_stddevs
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(subscript
(identifier_C) identifier_C
(string_'sig2') string_'sig2'
)subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(identifier_stddev_shape) identifier_stddev_shape
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_stddev_type) identifier_stddev_type
(attribute
(attribute
(identifier_const) identifier_const
(identifier_StdDev) identifier_StdDev
)attribute
(identifier_INTER_EVENT) identifier_INTER_EVENT
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_stddevs) identifier_stddevs
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(subscript
(identifier_C) identifier_C
(string_'sig1') string_'sig1'
)subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(identifier_stddev_shape) identifier_stddev_shape
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_stddevs) identifier_stddevs
)return_statement
)block
)function_definition
)module | Returns the standard deviations given in Table 2 |
(module
(function_definition
(function_name_read_data) function_name_read_data
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_timeout) identifier_timeout
(float_10.0) float_10.0
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_start_time) identifier_start_time
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(None) None
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_stdout_reader) identifier_stdout_reader
)attribute
(identifier_queue) identifier_queue
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_data) identifier_data
(block
(expression_statement
(yield
(identifier_data) identifier_data
)yield
)expression_statement
)block
(else_clause
(block
(break_statement
)break_statement
)block
)else_clause
)if_statement
)block
(except_clause
(attribute
(identifier_queue) identifier_queue
(identifier_Empty) identifier_Empty
)attribute
(block
(expression_statement
(assignment
(identifier_end_time) identifier_end_time
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_data) identifier_data
)not_operator
(block
(if_statement
(comparison_operator
(binary_operator
(identifier_end_time) identifier_end_time
(identifier_start_time) identifier_start_time
)binary_operator
(identifier_timeout) identifier_timeout
)comparison_operator
(block
(raise_statement
(call
(identifier_ReadTimeoutError) identifier_ReadTimeoutError
(argument_list
(call
(attribute
(string_'ffmpeg output: {}') string_'ffmpeg output: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_stderr_reader) identifier_stderr_reader
)attribute
(identifier_queue) identifier_queue
)attribute
(identifier_queue) identifier_queue
)attribute
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_start_time) identifier_start_time
(identifier_end_time) identifier_end_time
)assignment
)expression_statement
(continue_statement
)continue_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)except_clause
)try_statement
)block
)while_statement
)block
)function_definition
)module | Read blocks of raw PCM data from the file. |
(module
(function_definition
(function_name_parse_template_json) function_name_parse_template_json
(parameters
(identifier_self) identifier_self
(identifier_template_json) identifier_template_json
)parameters
(block
(assert_statement
(comparison_operator
(subscript
(identifier_template_json) identifier_template_json
(string_'type') string_'type'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_DOCUMENT_TYPE) identifier_DOCUMENT_TYPE
)attribute
)comparison_operator
(string_'') string_''
)assert_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_template_id) identifier_template_id
)attribute
(subscript
(identifier_template_json) identifier_template_json
(string_'templateId') string_'templateId'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(call
(attribute
(identifier_template_json) identifier_template_json
(identifier_get) identifier_get
)attribute
(argument_list
(string_'name') string_'name'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_creator) identifier_creator
)attribute
(call
(attribute
(identifier_template_json) identifier_template_json
(identifier_get) identifier_get
)attribute
(argument_list
(string_'creator') string_'creator'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_template) identifier_template
)attribute
(subscript
(identifier_template_json) identifier_template_json
(string_'serviceAgreementTemplate') string_'serviceAgreementTemplate'
)subscript
)assignment
)expression_statement
)block
)function_definition
)module | Parse a template from a json.
:param template_json: json dict |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_plugin_name) identifier_plugin_name
(identifier_plugin_version) identifier_plugin_version
(identifier_flavor_id) identifier_flavor_id
(default_parameter
(identifier_description) identifier_description
(None) None
)default_parameter
(default_parameter
(identifier_volumes_per_node) identifier_volumes_per_node
(None) None
)default_parameter
(default_parameter
(identifier_volumes_size) identifier_volumes_size
(None) None
)default_parameter
(default_parameter
(identifier_node_processes) identifier_node_processes
(None) None
)default_parameter
(default_parameter
(identifier_node_configs) identifier_node_configs
(None) None
)default_parameter
(default_parameter
(identifier_floating_ip_pool) identifier_floating_ip_pool
(None) None
)default_parameter
(default_parameter
(identifier_security_groups) identifier_security_groups
(None) None
)default_parameter
(default_parameter
(identifier_auto_security_group) identifier_auto_security_group
(None) None
)default_parameter
(default_parameter
(identifier_availability_zone) identifier_availability_zone
(None) None
)default_parameter
(default_parameter
(identifier_volumes_availability_zone) identifier_volumes_availability_zone
(None) None
)default_parameter
(default_parameter
(identifier_volume_type) identifier_volume_type
(None) None
)default_parameter
(default_parameter
(identifier_image_id) identifier_image_id
(None) None
)default_parameter
(default_parameter
(identifier_is_proxy_gateway) identifier_is_proxy_gateway
(None) None
)default_parameter
(default_parameter
(identifier_volume_local_to_instance) identifier_volume_local_to_instance
(None) None
)default_parameter
(default_parameter
(identifier_use_autoconfig) identifier_use_autoconfig
(None) None
)default_parameter
(default_parameter
(identifier_shares) identifier_shares
(None) None
)default_parameter
(default_parameter
(identifier_is_public) identifier_is_public
(None) None
)default_parameter
(default_parameter
(identifier_is_protected) identifier_is_protected
(None) None
)default_parameter
(default_parameter
(identifier_volume_mount_prefix) identifier_volume_mount_prefix
(None) None
)default_parameter
(default_parameter
(identifier_boot_from_volume) identifier_boot_from_volume
(None) None
)default_parameter
(default_parameter
(identifier_boot_volume_type) identifier_boot_volume_type
(None) None
)default_parameter
(default_parameter
(identifier_boot_volume_availability_zone) identifier_boot_volume_availability_zone
(None) None
)default_parameter
(default_parameter
(identifier_boot_volume_local_to_instance) identifier_boot_volume_local_to_instance
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'name') string_'name'
(identifier_name) identifier_name
)pair
(pair
(string_'plugin_name') string_'plugin_name'
(identifier_plugin_name) identifier_plugin_name
)pair
(pair
(string_'plugin_version') string_'plugin_version'
(identifier_plugin_version) identifier_plugin_version
)pair
(pair
(string_'flavor_id') string_'flavor_id'
(identifier_flavor_id) identifier_flavor_id
)pair
(pair
(string_'node_processes') string_'node_processes'
(identifier_node_processes) identifier_node_processes
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__do_create) identifier__do_create
)attribute
(argument_list
(identifier_data) identifier_data
(identifier_description) identifier_description
(identifier_volumes_per_node) identifier_volumes_per_node
(identifier_volumes_size) identifier_volumes_size
(identifier_node_configs) identifier_node_configs
(identifier_floating_ip_pool) identifier_floating_ip_pool
(identifier_security_groups) identifier_security_groups
(identifier_auto_security_group) identifier_auto_security_group
(identifier_availability_zone) identifier_availability_zone
(identifier_volumes_availability_zone) identifier_volumes_availability_zone
(identifier_volume_type) identifier_volume_type
(identifier_image_id) identifier_image_id
(identifier_is_proxy_gateway) identifier_is_proxy_gateway
(identifier_volume_local_to_instance) identifier_volume_local_to_instance
(identifier_use_autoconfig) identifier_use_autoconfig
(identifier_shares) identifier_shares
(identifier_is_public) identifier_is_public
(identifier_is_protected) identifier_is_protected
(identifier_volume_mount_prefix) identifier_volume_mount_prefix
(identifier_boot_from_volume) identifier_boot_from_volume
(identifier_boot_volume_type) identifier_boot_volume_type
(identifier_boot_volume_availability_zone) identifier_boot_volume_availability_zone
(identifier_boot_volume_local_to_instance) identifier_boot_volume_local_to_instance
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a Node Group Template. |
(module
(function_definition
(function_name_validate_empty_attributes) function_name_validate_empty_attributes
(parameters
(typed_parameter
(identifier_fully_qualified_name) identifier_fully_qualified_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_spec) identifier_spec
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_Any) identifier_Any
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(list_splat_pattern
(identifier_attributes) identifier_attributes
)list_splat_pattern
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_EmptyAttributeError) identifier_EmptyAttributeError
)type
)type_parameter
)generic_type
)type
(block
(return_statement
(list_comprehension
(call
(identifier_EmptyAttributeError) identifier_EmptyAttributeError
(argument_list
(identifier_fully_qualified_name) identifier_fully_qualified_name
(identifier_spec) identifier_spec
(identifier_attribute) identifier_attribute
)argument_list
)call
(for_in_clause
(identifier_attribute) identifier_attribute
(identifier_attributes) identifier_attributes
)for_in_clause
(if_clause
(not_operator
(call
(attribute
(identifier_spec) identifier_spec
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_attribute) identifier_attribute
(None) None
)argument_list
)call
)not_operator
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Validates to ensure that a set of attributes do not contain empty values |
(module
(function_definition
(function_name_remove_input) function_name_remove_input
(parameters
(identifier_urls) identifier_urls
(identifier_preserves) identifier_preserves
(default_parameter
(identifier_verbose) identifier_verbose
(False) False
)default_parameter
)parameters
(block
(for_statement
(identifier_path) identifier_path
(call
(identifier_map) identifier_map
(argument_list
(identifier_url2path) identifier_url2path
(identifier_urls) identifier_urls
)argument_list
)call
(block
(if_statement
(call
(identifier_any) identifier_any
(generator_expression
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_samefile) identifier_samefile
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_preserve) identifier_preserve
)argument_list
)call
(for_in_clause
(identifier_preserve) identifier_preserve
(identifier_preserves) identifier_preserves
)for_in_clause
)generator_expression
)call
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(identifier_verbose) identifier_verbose
(block
(print_statement
(chevron
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
)chevron
(binary_operator
(string_"removing \"%s\" ...") string_"removing \"%s\" ..."
(identifier_path) identifier_path
)binary_operator
)print_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
)block
)function_definition
)module | Attempt to delete all files identified by the URLs in urls except
any that are the same as the files in the preserves list. |
(module
(function_definition
(function_name__diff_group_position) function_name__diff_group_position
(parameters
(identifier_group) identifier_group
)parameters
(block
(expression_statement
(assignment
(identifier_old_start) identifier_old_start
(subscript
(subscript
(identifier_group) identifier_group
(integer_0) integer_0
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_start) identifier_new_start
(subscript
(subscript
(identifier_group) identifier_group
(integer_0) integer_0
)subscript
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_old_length) identifier_old_length
(assignment
(identifier_new_length) identifier_new_length
(integer_0) integer_0
)assignment
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_old_line) identifier_old_line
(identifier_new_line) identifier_new_line
(identifier_line_or_conflict) identifier_line_or_conflict
)pattern_list
(identifier_group) identifier_group
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_line_or_conflict) identifier_line_or_conflict
(identifier_tuple) identifier_tuple
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_old) identifier_old
(identifier_new) identifier_new
)pattern_list
(identifier_line_or_conflict) identifier_line_or_conflict
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_old_length) identifier_old_length
(call
(identifier_len) identifier_len
(argument_list
(identifier_old) identifier_old
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_new_length) identifier_new_length
(call
(identifier_len) identifier_len
(argument_list
(identifier_new) identifier_new
)argument_list
)call
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_old_length) identifier_old_length
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_new_length) identifier_new_length
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(if_statement
(identifier_old_length) identifier_old_length
(block
(expression_statement
(augmented_assignment
(identifier_old_start) identifier_old_start
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_new_length) identifier_new_length
(block
(expression_statement
(augmented_assignment
(identifier_new_start) identifier_new_start
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_color) identifier_color
(identifier_LineNumber) identifier_LineNumber
)attribute
(argument_list
(binary_operator
(string_'@@ -%s,%s +%s,%s @@') string_'@@ -%s,%s +%s,%s @@'
(tuple
(identifier_old_start) identifier_old_start
(identifier_old_length) identifier_old_length
(identifier_new_start) identifier_new_start
(identifier_new_length) identifier_new_length
)tuple
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Generate a unified diff position line for a diff group |
(module
(function_definition
(function_name_assign) function_name_assign
(parameters
(identifier_self) identifier_self
(identifier_link_type) identifier_link_type
(identifier_product) identifier_product
(identifier_linked_product) identifier_linked_product
(default_parameter
(identifier_data) identifier_data
(None) None
)default_parameter
(default_parameter
(identifier_identifierType) identifier_identifierType
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_bool) identifier_bool
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_call) identifier_call
)attribute
(argument_list
(string_'catalog_product_link.assign') string_'catalog_product_link.assign'
(list
(identifier_link_type) identifier_link_type
(identifier_product) identifier_product
(identifier_linked_product) identifier_linked_product
(identifier_data) identifier_data
(identifier_identifierType) identifier_identifierType
)list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Assign a product link
:param link_type: type of link, one of 'cross_sell', 'up_sell',
'related' or 'grouped'
:param product: ID or SKU of product
:param linked_product: ID or SKU of linked product
:param data: dictionary of link data, (position, qty, etc.)
Example: { 'position': '0', 'qty': 1}
:param identifierType: Defines whether the product or SKU value is
passed in the "product" parameter.
:return: boolean |
(module
(function_definition
(function_name___compress_attributes) function_name___compress_attributes
(parameters
(identifier_self) identifier_self
(identifier_dic) identifier_dic
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_dic) identifier_dic
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(attribute
(identifier_types) identifier_types
(identifier_ListType) identifier_ListType
)attribute
)argument_list
)call
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_v) identifier_v
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)boolean_operator
(block
(if_statement
(comparison_operator
(identifier_k) identifier_k
(tuple
(string_'msExchMailboxSecurityDescriptor') string_'msExchMailboxSecurityDescriptor'
(string_'msExchSafeSendersHash') string_'msExchSafeSendersHash'
(string_'msExchBlockedSendersHash') string_'msExchBlockedSendersHash'
(string_'replicationSignature') string_'replicationSignature'
(string_'msExchSafeRecipientsHash') string_'msExchSafeRecipientsHash'
(string_'sIDHistory') string_'sIDHistory'
(string_'msRTCSIP-UserRoutingGroupId') string_'msRTCSIP-UserRoutingGroupId'
(string_'mSMQDigests') string_'mSMQDigests'
(string_'mSMQSignCertificates') string_'mSMQSignCertificates'
(string_'msExchMasterAccountSid') string_'msExchMasterAccountSid'
(string_'msExchPreviousAccountSid') string_'msExchPreviousAccountSid'
(string_'msExchUMPinChecksum') string_'msExchUMPinChecksum'
(string_'userSMIMECertificate') string_'userSMIMECertificate'
(string_'userCertificate') string_'userCertificate'
(string_'userCert') string_'userCert'
(string_'msExchDisabledArchiveGUID') string_'msExchDisabledArchiveGUID'
(string_'msExchUMPinChecksum') string_'msExchUMPinChecksum'
(string_'msExchUMSpokenName') string_'msExchUMSpokenName'
(string_'objectSid') string_'objectSid'
(string_'objectGUID') string_'objectGUID'
(string_'msExchArchiveGUID') string_'msExchArchiveGUID'
(string_'thumbnailPhoto') string_'thumbnailPhoto'
(string_'msExchMailboxGuid') string_'msExchMailboxGuid'
)tuple
)comparison_operator
(block
(try_statement
(block
(expression_statement
(assignment
(subscript
(identifier_result) identifier_result
(identifier_k) identifier_k
)subscript
(call
(attribute
(subscript
(identifier_v) identifier_v
(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
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_error) identifier_error
)attribute
(argument_list
(binary_operator
(string_"Failed to decode attribute: %s -- %s") string_"Failed to decode attribute: %s -- %s"
(tuple
(identifier_k) identifier_k
(identifier_e) identifier_e
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_result) identifier_result
(identifier_k) identifier_k
)subscript
(subscript
(identifier_v) identifier_v
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | This will convert all attributes that are list with only one item string into simple string. It seems that LDAP always return lists, even when it doesn
t make sense.
:param dic:
:return: |
(module
(function_definition
(function_name_get_new_broks) function_name_get_new_broks
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_elt) identifier_elt
(call
(attribute
(identifier_self) identifier_self
(identifier_all_my_hosts_and_services) identifier_all_my_hosts_and_services
)attribute
(argument_list
)argument_list
)call
(block
(for_statement
(identifier_brok) identifier_brok
(attribute
(identifier_elt) identifier_elt
(identifier_broks) identifier_broks
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_brok) identifier_brok
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_elt) identifier_elt
(identifier_broks) identifier_broks
)attribute
(list
)list
)assignment
)expression_statement
)block
)for_statement
(for_statement
(identifier_contact) identifier_contact
(attribute
(identifier_self) identifier_self
(identifier_contacts) identifier_contacts
)attribute
(block
(for_statement
(identifier_brok) identifier_brok
(attribute
(identifier_contact) identifier_contact
(identifier_broks) identifier_broks
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_brok) identifier_brok
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_contact) identifier_contact
(identifier_broks) identifier_broks
)attribute
(list
)list
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Iter over all hosts and services to add new broks in internal lists
:return: None |
(module
(function_definition
(function_name_get_relationship_dicts) function_name_get_relationship_dicts
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_relationships) identifier_relationships
)attribute
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_goid) identifier_goid
(identifier_goobj) identifier_goobj
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_go2obj) identifier_go2obj
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(for_statement
(pattern_list
(identifier_reltyp) identifier_reltyp
(identifier_relset) identifier_relset
)pattern_list
(call
(attribute
(attribute
(identifier_goobj) identifier_goobj
(identifier_relationship) identifier_relationship
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_relfwd_goids) identifier_relfwd_goids
(call
(identifier_set) identifier_set
(generator_expression
(attribute
(identifier_o) identifier_o
(identifier_id) identifier_id
)attribute
(for_in_clause
(identifier_o) identifier_o
(identifier_relset) identifier_relset
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"CountRelativesInit RELLLLS") string_"CountRelativesInit RELLLLS"
(identifier_goid) identifier_goid
(attribute
(identifier_goobj) identifier_goobj
(identifier_id) identifier_id
)attribute
(identifier_reltyp) identifier_reltyp
(identifier_relfwd_goids) identifier_relfwd_goids
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Given GO DAG relationships, return summaries per GO ID. |
(module
(function_definition
(function_name_unpack) function_name_unpack
(parameters
(identifier_cls) identifier_cls
(identifier_msg) identifier_msg
(identifier_client) identifier_client
(identifier_server) identifier_server
(identifier_request_id) identifier_request_id
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_flags) identifier_flags
)pattern_list
(call
(identifier__UNPACK_INT) identifier__UNPACK_INT
(argument_list
(subscript
(identifier_msg) identifier_msg
(slice
(colon) colon
(integer_4) integer_4
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_namespace) identifier_namespace
(identifier_pos) identifier_pos
)pattern_list
(call
(identifier__get_c_string) identifier__get_c_string
(argument_list
(identifier_msg) identifier_msg
(integer_4) integer_4
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_docs) identifier_docs
(call
(attribute
(identifier_bson) identifier_bson
(identifier_decode_all) identifier_decode_all
)attribute
(argument_list
(subscript
(identifier_msg) identifier_msg
(slice
(identifier_pos) identifier_pos
(colon) colon
)slice
)subscript
(identifier_CODEC_OPTIONS) identifier_CODEC_OPTIONS
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(list_splat
(identifier_docs) identifier_docs
)list_splat
(keyword_argument
(identifier_namespace) identifier_namespace
(identifier_namespace) identifier_namespace
)keyword_argument
(keyword_argument
(identifier_flags) identifier_flags
(identifier_flags) identifier_flags
)keyword_argument
(keyword_argument
(identifier__client) identifier__client
(identifier_client) identifier_client
)keyword_argument
(keyword_argument
(identifier_request_id) identifier_request_id
(identifier_request_id) identifier_request_id
)keyword_argument
(keyword_argument
(identifier__server) identifier__server
(identifier_server) identifier_server
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Parse message and return an `OpInsert`.
Takes the client message as bytes, the client and server socket objects,
and the client request id. |
(module
(function_definition
(function_name_protocol) function_name_protocol
(parameters
(identifier_alias_name) identifier_alias_name
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
(default_parameter
(identifier_allow_none) identifier_allow_none
(False) False
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(string_'Will be removed in v1.0') string_'Will be removed in v1.0'
(identifier_DeprecationWarning) identifier_DeprecationWarning
(keyword_argument
(identifier_stacklevel) identifier_stacklevel
(integer_2) integer_2
)keyword_argument
)argument_list
)call
)expression_statement
(try_statement
(block
(return_statement
(subscript
(call
(identifier__split_docker_link) identifier__split_docker_link
(argument_list
(identifier_alias_name) identifier_alias_name
)argument_list
)call
(integer_0) integer_0
)subscript
)return_statement
)block
(except_clause
(as_pattern
(identifier_KeyError) identifier_KeyError
(as_pattern_target
(identifier_err) identifier_err
)as_pattern_target
)as_pattern
(block
(if_statement
(boolean_operator
(identifier_default) identifier_default
(identifier_allow_none) identifier_allow_none
)boolean_operator
(block
(return_statement
(identifier_default) identifier_default
)return_statement
)block
(else_clause
(block
(raise_statement
(identifier_err) identifier_err
)raise_statement
)block
)else_clause
)if_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Get the protocol from the docker link alias or return the default.
Args:
alias_name: The docker link alias
default: The default value if the link isn't available
allow_none: If the return value can be `None` (i.e. optional)
Examples:
Assuming a Docker link was created with ``docker --link postgres:db``
and the resulting environment variable is ``DB_PORT=tcp://172.17.0.82:5432``.
>>> envitro.docker.protocol('DB')
tcp |
(module
(function_definition
(function_name__all_inner) function_name__all_inner
(parameters
(identifier_self) identifier_self
(identifier_fields) identifier_fields
(identifier_limit) identifier_limit
(identifier_order_by) identifier_order_by
(identifier_offset) identifier_offset
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__get_table_url) identifier__get_table_url
)attribute
(argument_list
)argument_list
)call
(keyword_argument
(identifier_params) identifier_params
(call
(attribute
(identifier_self) identifier_self
(identifier__get_formatted_query) identifier__get_formatted_query
)attribute
(argument_list
(identifier_fields) identifier_fields
(identifier_limit) identifier_limit
(identifier_order_by) identifier_order_by
(identifier_offset) identifier_offset
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier__get_content) identifier__get_content
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)yield
)expression_statement
(while_statement
(comparison_operator
(string_'next') string_'next'
(attribute
(identifier_response) identifier_response
(identifier_links) identifier_links
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_url_link) identifier_url_link
)attribute
(subscript
(subscript
(attribute
(identifier_response) identifier_response
(identifier_links) identifier_links
)attribute
(string_'next') string_'next'
)subscript
(string_'url') string_'url'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_url_link) identifier_url_link
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier__get_content) identifier__get_content
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)yield
)expression_statement
)block
)while_statement
)block
)function_definition
)module | Yields all records for the query and follows links if present on the response after validating
:return: List of records with content |
(module
(function_definition
(function_name_debug_file) function_name_debug_file
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_switch_to_plugin) identifier_switch_to_plugin
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_current_editor) identifier_current_editor
(call
(attribute
(identifier_self) identifier_self
(identifier_get_current_editor) identifier_get_current_editor
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_current_editor) identifier_current_editor
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_current_editor) identifier_current_editor
(identifier_sig_debug_start) identifier_sig_debug_start
)attribute
(identifier_emit) identifier_emit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_run_file) identifier_run_file
)attribute
(argument_list
(keyword_argument
(identifier_debug) identifier_debug
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Debug current script |
(module
(function_definition
(function_name_publish) function_name_publish
(parameters
(identifier_cls) identifier_cls
(identifier_message) identifier_message
(default_parameter
(identifier_client_filter) identifier_client_filter
(None) None
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_cls) identifier_cls
(identifier__lock) identifier__lock
)attribute
)with_item
)with_clause
(block
(for_statement
(identifier_client) identifier_client
(attribute
(identifier_cls) identifier_cls
(identifier_subscribers) identifier_subscribers
)attribute
(block
(if_statement
(boolean_operator
(parenthesized_expression
(not_operator
(identifier_client_filter) identifier_client_filter
)not_operator
)parenthesized_expression
(call
(identifier_client_filter) identifier_client_filter
(argument_list
(identifier_client) identifier_client
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_client) identifier_client
(identifier_send) identifier_send
)attribute
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)with_statement
)block
)function_definition
)module | Publish messages to subscribers.
Args:
message: The message to publish.
client_filter: A filter function to call passing in each client. Only
clients for whom the function returns True will have the
message sent to them. |
(module
(function_definition
(function_name_read) function_name_read
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dev) identifier_dev
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"READ : Nothing received") string_"READ : Nothing received"
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_data) identifier_data
(string_b'\x00') string_b'\x00'
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"READ : Empty packet (Got \\x00)") string_"READ : Empty packet (Got \\x00)"
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_pkt) identifier_pkt
(call
(identifier_bytearray) identifier_bytearray
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dev) identifier_dev
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
(subscript
(identifier_pkt) identifier_pkt
(integer_0) integer_0
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_pkt) identifier_pkt
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(identifier_bytearray) identifier_bytearray
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_"READ : %s") string_"READ : %s"
(call
(attribute
(identifier_self) identifier_self
(identifier_format_packet) identifier_format_packet
)attribute
(argument_list
(identifier_pkt) identifier_pkt
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_do_callback) identifier_do_callback
)attribute
(argument_list
(identifier_pkt) identifier_pkt
)argument_list
)call
)expression_statement
(return_statement
(identifier_pkt) identifier_pkt
)return_statement
)block
)function_definition
)module | We have been called to read! As a consumer, continue to read for
the length of the packet and then pass to the callback. |
(module
(function_definition
(function_name_raw) function_name_raw
(parameters
(identifier_text) identifier_text
)parameters
(block
(expression_statement
(assignment
(identifier_new_string) identifier_new_string
(string_'') string_''
)assignment
)expression_statement
(for_statement
(identifier_char) identifier_char
(identifier_text) identifier_text
(block
(try_statement
(block
(expression_statement
(augmented_assignment
(identifier_new_string) identifier_new_string
(subscript
(identifier_escape_dict) identifier_escape_dict
(identifier_char) identifier_char
)subscript
)augmented_assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(augmented_assignment
(identifier_new_string) identifier_new_string
(identifier_char) identifier_char
)augmented_assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier_new_string) identifier_new_string
)return_statement
)block
)function_definition
)module | Returns a raw string representation of text |
(module
(function_definition
(function_name_class_repr) function_name_class_repr
(parameters
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_klass) identifier_klass
(identifier_value) identifier_value
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_type) identifier_type
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_klass) identifier_klass
(attribute
(identifier_klass) identifier_klass
(identifier___class__) identifier___class__
)attribute
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(string_'.') string_'.'
(identifier_join) identifier_join
)attribute
(argument_list
(list
(attribute
(identifier_klass) identifier_klass
(identifier___module__) identifier___module__
)attribute
(attribute
(identifier_klass) identifier_klass
(identifier___name__) identifier___name__
)attribute
)list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a representation of the value class.
Arguments
---------
value
A class or a class instance
Returns
-------
str
The "module.name" representation of the value class.
Example
-------
>>> from datetime import date
>>> class_repr(date)
'datetime.date'
>>> class_repr(date.today())
'datetime.date' |
(module
(function_definition
(function_name_find_function) function_name_find_function
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_deffunction) identifier_deffunction
(call
(attribute
(identifier_lib) identifier_lib
(identifier_EnvFindDeffunction) identifier_EnvFindDeffunction
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__env) identifier__env
)attribute
(call
(attribute
(identifier_name) identifier_name
(identifier_encode) identifier_encode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_deffunction) identifier_deffunction
(attribute
(identifier_ffi) identifier_ffi
(identifier_NULL) identifier_NULL
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_LookupError) identifier_LookupError
(argument_list
(binary_operator
(string_"Function '%s' not found") string_"Function '%s' not found"
(identifier_name) identifier_name
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(identifier_Function) identifier_Function
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__env) identifier__env
)attribute
(identifier_deffunction) identifier_deffunction
)argument_list
)call
)return_statement
)block
)function_definition
)module | Find the Function by its name. |
(module
(function_definition
(function_name_communicate_through) function_name_communicate_through
(parameters
(identifier_self) identifier_self
(identifier_file) identifier_file
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__communication) identifier__communication
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Already communicating.") string_"Already communicating."
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__communication) identifier__communication
)attribute
(assignment
(identifier_communication) identifier_communication
(call
(identifier_Communication) identifier_Communication
(argument_list
(identifier_file) identifier_file
(attribute
(identifier_self) identifier_self
(identifier__get_needle_positions) identifier__get_needle_positions
)attribute
(attribute
(identifier_self) identifier_self
(identifier__machine) identifier__machine
)attribute
(list
(attribute
(identifier_self) identifier_self
(identifier__on_message_received) identifier__on_message_received
)attribute
)list
(keyword_argument
(identifier_right_end_needle) identifier_right_end_needle
(attribute
(identifier_self) identifier_self
(identifier_right_end_needle) identifier_right_end_needle
)attribute
)keyword_argument
(keyword_argument
(identifier_left_end_needle) identifier_left_end_needle
(attribute
(identifier_self) identifier_self
(identifier_left_end_needle) identifier_left_end_needle
)attribute
)keyword_argument
)argument_list
)call
)assignment
)assignment
)expression_statement
(return_statement
(identifier_communication) identifier_communication
)return_statement
)block
)function_definition
)module | Setup communication through a file.
:rtype: AYABInterface.communication.Communication |
(module
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_html_string) identifier_html_string
(default_parameter
(identifier_wrapper) identifier_wrapper
(identifier_Parser) identifier_Parser
)default_parameter
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(identifier_Parser) identifier_Parser
(argument_list
(call
(attribute
(attribute
(identifier_lxml) identifier_lxml
(identifier_html) identifier_html
)attribute
(identifier_fromstring) identifier_fromstring
)attribute
(argument_list
(identifier_html_string) identifier_html_string
)argument_list
)call
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Parse html with wrapper |
(module
(function_definition
(function_name_nl_object_alloc) function_name_nl_object_alloc
(parameters
(identifier_ops) identifier_ops
)parameters
(block
(expression_statement
(assignment
(identifier_new) identifier_new
(call
(identifier_nl_object) identifier_nl_object
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_nl_init_list_head) identifier_nl_init_list_head
(argument_list
(attribute
(identifier_new) identifier_new
(identifier_ce_list) identifier_ce_list
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_new) identifier_new
(identifier_ce_ops) identifier_ce_ops
)attribute
(identifier_ops) identifier_ops
)assignment
)expression_statement
(if_statement
(attribute
(identifier_ops) identifier_ops
(identifier_oo_constructor) identifier_oo_constructor
)attribute
(block
(expression_statement
(call
(attribute
(identifier_ops) identifier_ops
(identifier_oo_constructor) identifier_oo_constructor
)attribute
(argument_list
(identifier_new) identifier_new
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Allocated new object 0x%x') string_'Allocated new object 0x%x'
(call
(identifier_id) identifier_id
(argument_list
(identifier_new) identifier_new
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_new) identifier_new
)return_statement
)block
)function_definition
)module | Allocate a new object of kind specified by the operations handle.
https://github.com/thom311/libnl/blob/libnl3_2_25/lib/object.c#L54
Positional arguments:
ops -- cache operations handle (nl_object_ops class instance).
Returns:
New nl_object class instance or None. |
(module
(function_definition
(function_name_stop_recording) function_name_stop_recording
(parameters
)parameters
(block
(global_statement
(identifier__recording) identifier__recording
)global_statement
(if_statement
(not_operator
(identifier__recording) identifier__recording
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Must call "start_recording" before.') string_'Must call "start_recording" before.'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_recorded_events_queue) identifier_recorded_events_queue
(identifier_hooked) identifier_hooked
)pattern_list
(identifier__recording) identifier__recording
)assignment
)expression_statement
(expression_statement
(call
(identifier_unhook) identifier_unhook
(argument_list
(identifier_hooked) identifier_hooked
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(attribute
(identifier_recorded_events_queue) identifier_recorded_events_queue
(identifier_queue) identifier_queue
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Stops the global recording of events and returns a list of the events
captured. |
(module
(function_definition
(function_name_wrap_threading_start) function_name_wrap_threading_start
(parameters
(identifier_start_func) identifier_start_func
)parameters
(block
(function_definition
(function_name_call) function_name_call
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__opencensus_context) identifier__opencensus_context
)attribute
(parenthesized_expression
(call
(attribute
(identifier_execution_context) identifier_execution_context
(identifier_get_opencensus_full_context) identifier_get_opencensus_full_context
)attribute
(argument_list
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(return_statement
(call
(identifier_start_func) identifier_start_func
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)return_statement
)block
)function_definition
(return_statement
(identifier_call) identifier_call
)return_statement
)block
)function_definition
)module | Wrap the start function from thread. Put the tracer informations in the
threading object. |
(module
(function_definition
(function_name_bytes_array) function_name_bytes_array
(parameters
(identifier_self) identifier_self
)parameters
(block
(assert_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_dimensions) identifier_dimensions
)attribute
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(call
(attribute
(string_'{}: cannot get value as bytes array!') string_'{}: cannot get value as bytes array!'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)argument_list
)call
)assert_statement
(expression_statement
(assignment
(pattern_list
(identifier_l) identifier_l
(identifier_n) identifier_n
)pattern_list
(attribute
(identifier_self) identifier_self
(identifier_dimensions) identifier_dimensions
)attribute
)assignment
)expression_statement
(return_statement
(list_comprehension
(subscript
(attribute
(identifier_self) identifier_self
(identifier_bytes) identifier_bytes
)attribute
(slice
(binary_operator
(identifier_i) identifier_i
(identifier_l) identifier_l
)binary_operator
(colon) colon
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(identifier_l) identifier_l
)binary_operator
)slice
)subscript
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_n) identifier_n
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Get the param as an array of raw byte strings. |
(module
(function_definition
(function_name_tag) function_name_tag
(parameters
(identifier_tagname) identifier_tagname
(default_parameter
(identifier_content) identifier_content
(string_'') string_''
)default_parameter
(default_parameter
(identifier_attrs) identifier_attrs
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_attrs_str) identifier_attrs_str
(boolean_operator
(identifier_attrs) identifier_attrs
(call
(attribute
(string_' ') string_' '
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier__generate_dom_attrs) identifier__generate_dom_attrs
(argument_list
(identifier_attrs) identifier_attrs
)argument_list
)call
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_open_tag) identifier_open_tag
(identifier_tagname) identifier_tagname
)assignment
)expression_statement
(if_statement
(identifier_attrs_str) identifier_attrs_str
(block
(expression_statement
(augmented_assignment
(identifier_open_tag) identifier_open_tag
(binary_operator
(string_' ') string_' '
(identifier_attrs_str) identifier_attrs_str
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_content) identifier_content
(None) None
)comparison_operator
(block
(return_statement
(call
(identifier_literal) identifier_literal
(argument_list
(binary_operator
(string_'<%s />') string_'<%s />'
(identifier_open_tag) identifier_open_tag
)binary_operator
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier_iterate) identifier_iterate
(argument_list
(identifier_content) identifier_content
(keyword_argument
(identifier_unless) identifier_unless
(tuple
(identifier_basestring) identifier_basestring
(identifier_literal) identifier_literal
)tuple
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_literal) identifier_literal
(argument_list
(binary_operator
(string_'<%s>%s</%s>') string_'<%s>%s</%s>'
(tuple
(identifier_open_tag) identifier_open_tag
(identifier_content) identifier_content
(identifier_tagname) identifier_tagname
)tuple
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Helper for programmatically building HTML tags.
Note that this barely does any escaping, and will happily spit out
dangerous user input if used as such.
:param tagname:
Tag name of the DOM element we want to return.
:param content:
Optional content of the DOM element. If `None`, then the element is
self-closed. By default, the content is an empty string. Supports
iterables like generators.
:param attrs:
Optional dictionary-like collection of attributes for the DOM element.
Example::
>>> tag('div', content='Hello, world.')
u'<div>Hello, world.</div>'
>>> tag('script', attrs={'src': '/static/js/core.js'})
u'<script src="/static/js/core.js"></script>'
>>> tag('script', attrs=[('src', '/static/js/core.js'), ('type', 'text/javascript')])
u'<script src="/static/js/core.js" type="text/javascript"></script>'
>>> tag('meta', content=None, attrs=dict(content='"quotedquotes"'))
u'<meta content="\\\\"quotedquotes\\\\"" />'
>>> tag('ul', (tag('li', str(i)) for i in xrange(3)))
u'<ul><li>0</li><li>1</li><li>2</li></ul>' |
(module
(function_definition
(function_name_position_input) function_name_position_input
(parameters
(identifier_obj) identifier_obj
(default_parameter
(identifier_visible) identifier_visible
(False) False
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_obj) identifier_obj
(identifier_generic_position) identifier_generic_position
)attribute
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_ObjectPosition) identifier_ObjectPosition
(identifier_objects) identifier_objects
)attribute
(identifier_create) identifier_create
)attribute
(argument_list
(keyword_argument
(identifier_content_object) identifier_content_object
(identifier_obj) identifier_obj
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(dictionary
(pair
(string_'obj') string_'obj'
(identifier_obj) identifier_obj
)pair
(pair
(string_'visible') string_'visible'
(identifier_visible) identifier_visible
)pair
(pair
(string_'object_position') string_'object_position'
(subscript
(call
(attribute
(attribute
(identifier_obj) identifier_obj
(identifier_generic_position) identifier_generic_position
)attribute
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)subscript
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Template tag to return an input field for the position of the object. |
(module
(function_definition
(function_name_list_databases) function_name_list_databases
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_lines) identifier_lines
(call
(identifier_output_lines) identifier_output_lines
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_exec_psql) identifier_exec_psql
)attribute
(argument_list
(string_'\\list') string_'\\list'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
(string_'|') string_'|'
)argument_list
)call
(for_in_clause
(identifier_line) identifier_line
(identifier_lines) identifier_lines
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Runs the ``\\list`` command and returns a list of column values with
information about all databases. |
(module
(function_definition
(function_name_random_stats) function_name_random_stats
(parameters
(identifier_self) identifier_self
(identifier_all_stats) identifier_all_stats
(identifier_race) identifier_race
(identifier_ch_class) identifier_ch_class
)parameters
(block
(expression_statement
(assignment
(identifier_stats) identifier_stats
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_s) identifier_s
(identifier_all_stats) identifier_all_stats
(block
(expression_statement
(call
(attribute
(identifier_stats) identifier_stats
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_s) identifier_s
(string_'stat') string_'stat'
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_res) identifier_res
(subscript
(identifier_s) identifier_s
(string_'stat') string_'stat'
)subscript
)subscript
(integer_0) integer_0
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_cur_stat) identifier_cur_stat
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_stat) identifier_stat
(identifier_stats) identifier_stats
(block
(for_statement
(pattern_list
(identifier_ndx) identifier_ndx
(identifier_i) identifier_i
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_classes) identifier_classes
)attribute
(identifier_dat) identifier_dat
)attribute
)argument_list
)call
(block
(if_statement
(comparison_operator
(subscript
(identifier_i) identifier_i
(string_'name') string_'name'
)subscript
(identifier_ch_class) identifier_ch_class
)comparison_operator
(block
(expression_statement
(assignment
(identifier_cur_stat) identifier_cur_stat
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_i) identifier_i
(identifier_stat) identifier_stat
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(for_statement
(pattern_list
(identifier_ndx) identifier_ndx
(identifier_i) identifier_i
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_races) identifier_races
)attribute
(identifier_dat) identifier_dat
)attribute
)argument_list
)call
(block
(if_statement
(comparison_operator
(subscript
(identifier_i) identifier_i
(string_'name') string_'name'
)subscript
(identifier_race) identifier_race
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_cur_stat) identifier_cur_stat
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_i) identifier_i
(identifier_stat) identifier_stat
)subscript
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_cur_stat) identifier_cur_stat
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_cur_stat) identifier_cur_stat
(integer_1) integer_1
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_cur_stat) identifier_cur_stat
(integer_10) integer_10
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_stat) identifier_stat
(tuple
(string_'Health') string_'Health'
(string_'max_health') string_'max_health'
)tuple
)comparison_operator
(block
(expression_statement
(assignment
(identifier_cur_stat) identifier_cur_stat
(integer_10) integer_10
)assignment
)expression_statement
)block
)if_statement
)block
)elif_clause
)if_statement
(expression_statement
(assignment
(subscript
(identifier_res) identifier_res
(identifier_stat) identifier_stat
)subscript
(identifier_cur_stat) identifier_cur_stat
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | create random stats based on the characters class and race
This looks up the tables from CharacterCollection to get
base stats and applies a close random fit |
(module
(function_definition
(function_name__LogRecord_msg) function_name__LogRecord_msg
(parameters
)parameters
(block
(function_definition
(function_name__LogRecord_msgProperty) function_name__LogRecord_msgProperty
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier___msg) identifier___msg
)attribute
)return_statement
)block
)function_definition
(function_definition
(function_name__LogRecord_msgSetter) function_name__LogRecord_msgSetter
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___msg) identifier___msg
)attribute
(call
(identifier_to_unicode) identifier_to_unicode
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
(expression_statement
(assignment
(attribute
(attribute
(identifier_logging) identifier_logging
(identifier_LogRecord) identifier_LogRecord
)attribute
(identifier_msg) identifier_msg
)attribute
(call
(identifier_property) identifier_property
(argument_list
(identifier__LogRecord_msgProperty) identifier__LogRecord_msgProperty
(identifier__LogRecord_msgSetter) identifier__LogRecord_msgSetter
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Overrides logging.LogRecord.msg attribute to ensure variable content is stored as unicode. |
(module
(function_definition
(function_name_with_pattern) function_name_with_pattern
(parameters
(identifier_pattern) identifier_pattern
(default_parameter
(identifier_regex_group_count) identifier_regex_group_count
(None) None
)default_parameter
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_func) identifier_func
(identifier_pattern) identifier_pattern
)attribute
(identifier_pattern) identifier_pattern
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_func) identifier_func
(identifier_regex_group_count) identifier_regex_group_count
)attribute
(identifier_regex_group_count) identifier_regex_group_count
)assignment
)expression_statement
(return_statement
(identifier_func) identifier_func
)return_statement
)block
)function_definition
(return_statement
(identifier_decorator) identifier_decorator
)return_statement
)block
)function_definition
)module | Attach a regular expression pattern matcher to a custom type converter
function.
This annotates the type converter with the :attr:`pattern` attribute.
EXAMPLE:
>>> import parse
>>> @parse.with_pattern(r"\d+")
... def parse_number(text):
... return int(text)
is equivalent to:
>>> def parse_number(text):
... return int(text)
>>> parse_number.pattern = r"\d+"
:param pattern: regular expression pattern (as text)
:param regex_group_count: Indicates how many regex-groups are in pattern.
:return: wrapped function |
(module
(function_definition
(function_name_log_game_start) function_name_log_game_start
(parameters
(identifier_self) identifier_self
(identifier_players) identifier_players
(identifier_terrain) identifier_terrain
(identifier_numbers) identifier_numbers
(identifier_ports) identifier_ports
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__set_players) identifier__set_players
)attribute
(argument_list
(identifier_players) identifier_players
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__logln) identifier__logln
)attribute
(argument_list
(call
(attribute
(string_'{} v{}') string_'{} v{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier___name__) identifier___name__
(identifier___version__) identifier___version__
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__logln) identifier__logln
)attribute
(argument_list
(call
(attribute
(string_'timestamp: {0}') string_'timestamp: {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_timestamp_str) identifier_timestamp_str
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__log_players) identifier__log_players
)attribute
(argument_list
(identifier_players) identifier_players
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__log_board_terrain) identifier__log_board_terrain
)attribute
(argument_list
(identifier_terrain) identifier_terrain
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__log_board_numbers) identifier__log_board_numbers
)attribute
(argument_list
(identifier_numbers) identifier_numbers
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__log_board_ports) identifier__log_board_ports
)attribute
(argument_list
(identifier_ports) identifier_ports
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__logln) identifier__logln
)attribute
(argument_list
(string_'...CATAN!') string_'...CATAN!'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Begin a game.
Erase the log, set the timestamp, set the players, and write the log header.
The robber is assumed to start on the desert (or off-board).
:param players: iterable of catan.game.Player objects
:param terrain: list of 19 catan.board.Terrain objects.
:param numbers: list of 19 catan.board.HexNumber objects.
:param ports: list of catan.board.Port objects. |
(module
(function_definition
(function_name_read) function_name_read
(parameters
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(string_'{}/{}/{}') string_'{}/{}/{}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_settings) identifier_settings
(identifier_VAULT_BASE_URL) identifier_VAULT_BASE_URL
)attribute
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
(call
(attribute
(attribute
(identifier_settings) identifier_settings
(identifier_VAULT_BASE_SECRET_PATH) identifier_VAULT_BASE_SECRET_PATH
)attribute
(identifier_strip) identifier_strip
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
(call
(attribute
(identifier_path) identifier_path
(identifier_lstrip) identifier_lstrip
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(dictionary
(pair
(string_'X-Vault-Token') string_'X-Vault-Token'
(attribute
(identifier_settings) identifier_settings
(identifier_VAULT_ACCESS_TOKEN) identifier_VAULT_ACCESS_TOKEN
)attribute
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_resp) identifier_resp
(identifier_ok) identifier_ok
)attribute
(block
(return_statement
(subscript
(call
(attribute
(identifier_resp) identifier_resp
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
(string_'data') string_'data'
)subscript
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(string_'Failed VAULT GET request: %s %s') string_'Failed VAULT GET request: %s %s'
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
(attribute
(identifier_resp) identifier_resp
(identifier_text) identifier_text
)attribute
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(call
(attribute
(string_'Failed Vault GET request: {} {}') string_'Failed Vault GET request: {} {}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
(attribute
(identifier_resp) identifier_resp
(identifier_text) identifier_text
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Read a secret from Vault REST endpoint |
(module
(function_definition
(function_name_set) function_name_set
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_value) identifier_value
(default_parameter
(identifier_confidence) identifier_confidence
(integer_100) integer_100
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_key) identifier_key
(attribute
(identifier_self) identifier_self
(identifier_info) identifier_info
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_old_confidence) identifier_old_confidence
(identifier_old_value) identifier_old_value
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_info) identifier_info
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_old_confidence) identifier_old_confidence
(identifier_confidence) identifier_confidence
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_info) identifier_info
)attribute
(identifier_key) identifier_key
)subscript
(tuple
(identifier_confidence) identifier_confidence
(identifier_value) identifier_value
)tuple
)assignment
)expression_statement
)block
)function_definition
)module | Defines the given value with the given confidence, unless the same
value is already defined with a higher confidence level. |
(module
(function_definition
(function_name_savemat) function_name_savemat
(parameters
(identifier_file_name) identifier_file_name
(identifier_mdict) identifier_mdict
(default_parameter
(identifier_appendmat) identifier_appendmat
(True) True
)default_parameter
(default_parameter
(identifier_format) identifier_format
(string_'7.3') string_'7.3'
)default_parameter
(default_parameter
(identifier_oned_as) identifier_oned_as
(string_'row') string_'row'
)default_parameter
(default_parameter
(identifier_store_python_metadata) identifier_store_python_metadata
(True) True
)default_parameter
(default_parameter
(identifier_action_for_matlab_incompatible) identifier_action_for_matlab_incompatible
(string_'error') string_'error'
)default_parameter
(default_parameter
(identifier_marshaller_collection) identifier_marshaller_collection
(None) None
)default_parameter
(default_parameter
(identifier_truncate_existing) identifier_truncate_existing
(False) False
)default_parameter
(default_parameter
(identifier_truncate_invalid_matlab) identifier_truncate_invalid_matlab
(False) False
)default_parameter
(dictionary_splat_pattern
(identifier_keywords) identifier_keywords
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_float) identifier_float
(argument_list
(identifier_format) identifier_format
)argument_list
)call
(float_7.3) float_7.3
)comparison_operator
(block
(import_statement
(dotted_name
(identifier_scipy) identifier_scipy
(identifier_io) identifier_io
)dotted_name
)import_statement
(expression_statement
(call
(attribute
(attribute
(identifier_scipy) identifier_scipy
(identifier_io) identifier_io
)attribute
(identifier_savemat) identifier_savemat
)attribute
(argument_list
(identifier_file_name) identifier_file_name
(identifier_mdict) identifier_mdict
(keyword_argument
(identifier_appendmat) identifier_appendmat
(identifier_appendmat) identifier_appendmat
)keyword_argument
(keyword_argument
(identifier_format) identifier_format
(identifier_format) identifier_format
)keyword_argument
(keyword_argument
(identifier_oned_as) identifier_oned_as
(identifier_oned_as) identifier_oned_as
)keyword_argument
(dictionary_splat
(identifier_keywords) identifier_keywords
)dictionary_splat
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_appendmat) identifier_appendmat
(not_operator
(call
(attribute
(identifier_file_name) identifier_file_name
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.mat') string_'.mat'
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_file_name) identifier_file_name
(binary_operator
(identifier_file_name) identifier_file_name
(string_'.mat') string_'.mat'
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_options) identifier_options
(call
(identifier_Options) identifier_Options
(argument_list
(keyword_argument
(identifier_store_python_metadata) identifier_store_python_metadata
(identifier_store_python_metadata) identifier_store_python_metadata
)keyword_argument
(line_continuation_\) line_continuation_\
(keyword_argument
(identifier_matlab_compatible) identifier_matlab_compatible
(True) True
)keyword_argument
(keyword_argument
(identifier_oned_as) identifier_oned_as
(identifier_oned_as) identifier_oned_as
)keyword_argument
(line_continuation_\) line_continuation_\
(keyword_argument
(identifier_action_for_matlab_incompatible) identifier_action_for_matlab_incompatible
(identifier_action_for_matlab_incompatible) identifier_action_for_matlab_incompatible
)keyword_argument
(line_continuation_\) line_continuation_\
(keyword_argument
(identifier_marshaller_collection) identifier_marshaller_collection
(identifier_marshaller_collection) identifier_marshaller_collection
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_writes) identifier_writes
(argument_list
(keyword_argument
(identifier_mdict) identifier_mdict
(identifier_mdict) identifier_mdict
)keyword_argument
(keyword_argument
(identifier_filename) identifier_filename
(identifier_file_name) identifier_file_name
)keyword_argument
(keyword_argument
(identifier_truncate_existing) identifier_truncate_existing
(identifier_truncate_existing) identifier_truncate_existing
)keyword_argument
(keyword_argument
(identifier_truncate_invalid_matlab) identifier_truncate_invalid_matlab
(identifier_truncate_invalid_matlab) identifier_truncate_invalid_matlab
)keyword_argument
(keyword_argument
(identifier_options) identifier_options
(identifier_options) identifier_options
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Save a dictionary of python types to a MATLAB MAT file.
Saves the data provided in the dictionary `mdict` to a MATLAB MAT
file. `format` determines which kind/vesion of file to use. The
'7.3' version, which is HDF5 based, is handled by this package and
all types that this package can write are supported. Versions 4 and
5 are not HDF5 based, so everything is dispatched to the SciPy
package's ``scipy.io.savemat`` function, which this function is
modelled after (arguments not specific to this package have the same
names, etc.).
Parameters
----------
file_name : str or file-like object
Name of the MAT file to store in. The '.mat' extension is
added on automatically if not present if `appendmat` is set to
``True``. An open file-like object can be passed if the writing
is being dispatched to SciPy (`format` < 7.3).
mdict : dict
The dictionary of variables and their contents to store in the
file.
appendmat : bool, optional
Whether to append the '.mat' extension to `file_name` if it
doesn't already end in it or not.
format : {'4', '5', '7.3'}, optional
The MATLAB mat file format to use. The '7.3' format is handled
by this package while the '4' and '5' formats are dispatched to
SciPy.
oned_as : {'row', 'column'}, optional
Whether 1D arrays should be turned into row or column vectors.
store_python_metadata : bool, optional
Whether or not to store Python type information. Doing so allows
most types to be read back perfectly. Only applicable if not
dispatching to SciPy (`format` >= 7.3).
action_for_matlab_incompatible: str, optional
The action to perform writing data that is not MATLAB
compatible. The actions are to write the data anyways
('ignore'), don't write the incompatible data ('discard'), or
throw a ``TypeNotMatlabCompatibleError`` exception.
marshaller_collection : MarshallerCollection, optional
Collection of marshallers to disk to use. Only applicable if
not dispatching to SciPy (`format` >= 7.3).
truncate_existing : bool, optional
Whether to truncate the file if it already exists before writing
to it.
truncate_invalid_matlab : bool, optional
Whether to truncate a file if the file doesn't have the proper
header (userblock in HDF5 terms) setup for MATLAB metadata to be
placed.
**keywords :
Additional keywords arguments to be passed onto
``scipy.io.savemat`` if dispatching to SciPy (`format` < 7.3).
Raises
------
ImportError
If `format` < 7.3 and the ``scipy`` module can't be found.
NotImplementedError
If writing a variable in `mdict` is not supported.
exceptions.TypeNotMatlabCompatibleError
If writing a type not compatible with MATLAB and
`action_for_matlab_incompatible` is set to ``'error'``.
Notes
-----
Writing the same data and then reading it back from disk using the
HDF5 based version 7.3 format (the functions in this package) or the
older format (SciPy functions) can lead to very different
results. Each package supports a different set of data types and
converts them to and from the same MATLAB types differently.
See Also
--------
loadmat : Equivelent function to do reading.
scipy.io.savemat : SciPy function this one models after and
dispatches to.
Options
writes : Function used to do the actual writing. |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_file_or_filename) identifier_file_or_filename
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_file_or_filename) identifier_file_or_filename
(identifier_basestring) identifier_basestring
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_file) identifier_file
(None) None
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_file) identifier_file
(call
(identifier_open) identifier_open
(argument_list
(identifier_file_or_filename) identifier_file_or_filename
(string_"wb") string_"wb"
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(identifier_detail) identifier_detail
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_error) identifier_error
)attribute
(argument_list
(binary_operator
(string_"Error opening %s.") string_"Error opening %s."
(identifier_detail) identifier_detail
)binary_operator
)argument_list
)call
)expression_statement
)block
)except_clause
(finally_clause
(block
(if_statement
(comparison_operator
(identifier_file) identifier_file
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__write_data) identifier__write_data
)attribute
(argument_list
(identifier_file) identifier_file
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_file) identifier_file
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)finally_clause
)try_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_file) identifier_file
(identifier_file_or_filename) identifier_file_or_filename
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__write_data) identifier__write_data
)attribute
(argument_list
(identifier_file) identifier_file
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_file) identifier_file
)return_statement
)block
)function_definition
)module | Writes the case data to file. |
(module
(function_definition
(function_name_copytree_hardlink) function_name_copytree_hardlink
(parameters
(identifier_source) identifier_source
(identifier_dest) identifier_dest
)parameters
(block
(expression_statement
(assignment
(identifier_copy2) identifier_copy2
(attribute
(identifier_shutil) identifier_shutil
(identifier_copy2) identifier_copy2
)attribute
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(attribute
(identifier_shutil) identifier_shutil
(identifier_copy2) identifier_copy2
)attribute
(attribute
(identifier_os) identifier_os
(identifier_link) identifier_link
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copytree) identifier_copytree
)attribute
(argument_list
(identifier_source) identifier_source
(identifier_dest) identifier_dest
)argument_list
)call
)expression_statement
)block
(finally_clause
(block
(expression_statement
(assignment
(attribute
(identifier_shutil) identifier_shutil
(identifier_copy2) identifier_copy2
)attribute
(identifier_copy2) identifier_copy2
)assignment
)expression_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Recursively copy a directory ala shutils.copytree, but hardlink files
instead of copying. Available on UNIX systems only. |
(module
(function_definition
(function_name_info) function_name_info
(parameters
(identifier_ctx) identifier_ctx
)parameters
(block
(expression_statement
(assignment
(identifier_dev) identifier_dev
(subscript
(attribute
(identifier_ctx) identifier_ctx
(identifier_obj) identifier_obj
)attribute
(string_'dev') string_'dev'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_controller) identifier_controller
(subscript
(attribute
(identifier_ctx) identifier_ctx
(identifier_obj) identifier_obj
)attribute
(string_'controller') string_'controller'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_slot1) identifier_slot1
(identifier_slot2) identifier_slot2
)pattern_list
(attribute
(identifier_controller) identifier_controller
(identifier_slot_status) identifier_slot_status
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(call
(attribute
(string_'Slot 1: {}') string_'Slot 1: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(boolean_operator
(boolean_operator
(identifier_slot1) identifier_slot1
(string_'programmed') string_'programmed'
)boolean_operator
(string_'empty') string_'empty'
)boolean_operator
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(call
(attribute
(string_'Slot 2: {}') string_'Slot 2: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(boolean_operator
(boolean_operator
(identifier_slot2) identifier_slot2
(string_'programmed') string_'programmed'
)boolean_operator
(string_'empty') string_'empty'
)boolean_operator
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_dev) identifier_dev
(identifier_is_fips) identifier_is_fips
)attribute
(block
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(call
(attribute
(string_'FIPS Approved Mode: {}') string_'FIPS Approved Mode: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(conditional_expression
(string_'Yes') string_'Yes'
(attribute
(identifier_controller) identifier_controller
(identifier_is_in_fips_mode) identifier_is_in_fips_mode
)attribute
(string_'No') string_'No'
)conditional_expression
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Display status of YubiKey Slots. |
(module
(function_definition
(function_name_prepare_editable_requirement) function_name_prepare_editable_requirement
(parameters
(identifier_self) identifier_self
(identifier_req) identifier_req
(identifier_require_hashes) identifier_require_hashes
(identifier_use_user_site) identifier_use_user_site
(identifier_finder) identifier_finder
)parameters
(block
(assert_statement
(attribute
(identifier_req) identifier_req
(identifier_editable) identifier_editable
)attribute
(string_"cannot prepare a non-editable req as editable") string_"cannot prepare a non-editable req as editable"
)assert_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Obtaining %s') string_'Obtaining %s'
(identifier_req) identifier_req
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(call
(identifier_indent_log) identifier_indent_log
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(if_statement
(identifier_require_hashes) identifier_require_hashes
(block
(raise_statement
(call
(identifier_InstallationError) identifier_InstallationError
(argument_list
(binary_operator
(concatenated_string
(string_'The editable requirement %s cannot be installed when ') string_'The editable requirement %s cannot be installed when '
(string_'requiring hashes, because there is no single file to ') string_'requiring hashes, because there is no single file to '
(string_'hash.') string_'hash.'
)concatenated_string
(identifier_req) identifier_req
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_req) identifier_req
(identifier_ensure_has_source_dir) identifier_ensure_has_source_dir
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_src_dir) identifier_src_dir
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_req) identifier_req
(identifier_update_editable) identifier_update_editable
)attribute
(argument_list
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__download_should_save) identifier__download_should_save
)attribute
)not_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_abstract_dist) identifier_abstract_dist
(call
(identifier_make_abstract_dist) identifier_make_abstract_dist
(argument_list
(identifier_req) identifier_req
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_req_tracker) identifier_req_tracker
)attribute
(identifier_track) identifier_track
)attribute
(argument_list
(identifier_req) identifier_req
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_abstract_dist) identifier_abstract_dist
(identifier_prep_for_dist) identifier_prep_for_dist
)attribute
(argument_list
(identifier_finder) identifier_finder
(attribute
(identifier_self) identifier_self
(identifier_build_isolation) identifier_build_isolation
)attribute
)argument_list
)call
)expression_statement
)block
)with_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__download_should_save) identifier__download_should_save
)attribute
(block
(expression_statement
(call
(attribute
(identifier_req) identifier_req
(identifier_archive) identifier_archive
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_download_dir) identifier_download_dir
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_req) identifier_req
(identifier_check_if_exists) identifier_check_if_exists
)attribute
(argument_list
(identifier_use_user_site) identifier_use_user_site
)argument_list
)call
)expression_statement
)block
)with_statement
(return_statement
(identifier_abstract_dist) identifier_abstract_dist
)return_statement
)block
)function_definition
)module | Prepare an editable requirement |
(module
(function_definition
(function_name_Handle_Search) function_name_Handle_Search
(parameters
(identifier_self) identifier_self
(identifier_msg) identifier_msg
)parameters
(block
(expression_statement
(assignment
(identifier_search_term) identifier_search_term
(subscript
(subscript
(identifier_msg) identifier_msg
(string_'object') string_'object'
)subscript
(string_'searchTerm') string_'searchTerm'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_db) identifier_db
)attribute
(identifier_searchForItem) identifier_searchForItem
)attribute
(argument_list
(identifier_search_term) identifier_search_term
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reply) identifier_reply
(dictionary
(pair
(string_"status") string_"status"
(string_"OK") string_"OK"
)pair
(pair
(string_"type") string_"type"
(string_"search") string_"search"
)pair
(pair
(string_"object") string_"object"
(dictionary
(pair
(string_"received search") string_"received search"
(subscript
(subscript
(identifier_msg) identifier_msg
(string_'object') string_'object'
)subscript
(string_'searchTerm') string_'searchTerm'
)subscript
)pair
(pair
(string_"results") string_"results"
(identifier_results) identifier_results
)pair
)dictionary
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_reply) identifier_reply
)argument_list
)call
)return_statement
)block
)function_definition
)module | Handle a search.
:param msg: the received search
:type msg: dict
:returns: The message to reply with
:rtype: str |
(module
(function_definition
(function_name__set_mtu_to_nics) function_name__set_mtu_to_nics
(parameters
(identifier_self) identifier_self
(identifier_conf) identifier_conf
)parameters
(block
(for_statement
(pattern_list
(identifier_dom_name) identifier_dom_name
(identifier_dom_spec) identifier_dom_spec
)pattern_list
(call
(attribute
(call
(attribute
(identifier_conf) identifier_conf
(identifier_get) identifier_get
)attribute
(argument_list
(string_'domains') string_'domains'
(dictionary
)dictionary
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(for_statement
(pattern_list
(identifier_idx) identifier_idx
(identifier_nic) identifier_nic
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(call
(attribute
(identifier_dom_spec) identifier_dom_spec
(identifier_get) identifier_get
)attribute
(argument_list
(string_'nics') string_'nics'
(list
)list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_net) identifier_net
(call
(attribute
(identifier_self) identifier_self
(identifier__get_net) identifier__get_net
)attribute
(argument_list
(identifier_conf) identifier_conf
(identifier_dom_name) identifier_dom_name
(identifier_nic) identifier_nic
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mtu) identifier_mtu
(call
(attribute
(identifier_net) identifier_net
(identifier_get) identifier_get
)attribute
(argument_list
(string_'mtu') string_'mtu'
(integer_1500) integer_1500
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_mtu) identifier_mtu
(integer_1500) integer_1500
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_nic) identifier_nic
(string_'mtu') string_'mtu'
)subscript
(identifier_mtu) identifier_mtu
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | For all the nics of all the domains in the conf that have MTU set,
save the MTU on the NIC definition.
Args:
conf (dict): Configuration spec to extract the domains from
Returns:
None |
(module
(function_definition
(function_name_team_info) function_name_team_info
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_teams) identifier_teams
(call
(attribute
(call
(attribute
(call
(identifier___get_league_object) identifier___get_league_object
(argument_list
)argument_list
)call
(identifier_find) identifier_find
)attribute
(argument_list
(string_'teams') string_'teams'
)argument_list
)call
(identifier_findall) identifier_findall
)attribute
(argument_list
(string_'team') string_'team'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_team) identifier_team
(identifier_teams) identifier_teams
(block
(expression_statement
(assignment
(identifier_info) identifier_info
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_x) identifier_x
(attribute
(identifier_team) identifier_team
(identifier_attrib) identifier_attrib
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_info) identifier_info
(identifier_x) identifier_x
)subscript
(subscript
(attribute
(identifier_team) identifier_team
(identifier_attrib) identifier_attrib
)attribute
(identifier_x) identifier_x
)subscript
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_info) identifier_info
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module | Returns a list of team information dictionaries |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kw) identifier_kw
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__runFunc) identifier__runFunc
)attribute
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(string_'mode') string_'mode'
(identifier_kw) identifier_kw
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_kw) identifier_kw
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'mode') string_'mode'
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'_save') string_'_save'
(identifier_kw) identifier_kw
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_kw) identifier_kw
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'_save') string_'_save'
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__runFunc) identifier__runFunc
)attribute
(argument_list
(identifier_self) identifier_self
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(attribute
(identifier_taskpars) identifier_taskpars
(identifier_NoExecError) identifier_NoExecError
)attribute
(argument_list
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(string_'No way to run task "') string_'No way to run task "'
(attribute
(identifier_self) identifier_self
(identifier___taskName) identifier___taskName
)attribute
)binary_operator
(string_'". You must either override the "run" method in your ') string_'". You must either override the "run" method in your '
)binary_operator
(string_'ConfigObjPars subclass, or you must supply a "run" ') string_'ConfigObjPars subclass, or you must supply a "run" '
)binary_operator
(string_'function in your package.') string_'function in your package.'
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | This may be overridden by a subclass. |
(module
(function_definition
(function_name__get_condition_json) function_name__get_condition_json
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(assignment
(identifier_condition) identifier_condition
(subscript
(attribute
(identifier_self) identifier_self
(identifier_condition_data) identifier_condition_data
)attribute
(identifier_index) identifier_index
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_condition_log) identifier_condition_log
(dictionary
(pair
(string_'name') string_'name'
(subscript
(identifier_condition) identifier_condition
(integer_0) integer_0
)subscript
)pair
(pair
(string_'value') string_'value'
(subscript
(identifier_condition) identifier_condition
(integer_1) integer_1
)subscript
)pair
(pair
(string_'type') string_'type'
(subscript
(identifier_condition) identifier_condition
(integer_2) integer_2
)subscript
)pair
(pair
(string_'match') string_'match'
(subscript
(identifier_condition) identifier_condition
(integer_3) integer_3
)subscript
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_condition_log) identifier_condition_log
)argument_list
)call
)return_statement
)block
)function_definition
)module | Method to generate json for logging audience condition.
Args:
index: Index of the condition.
Returns:
String: Audience condition JSON. |
(module
(function_definition
(function_name_iter_orgs) function_name_iter_orgs
(parameters
(identifier_username) identifier_username
(default_parameter
(identifier_number) identifier_number
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
(default_parameter
(identifier_etag) identifier_etag
(None) None
)default_parameter
)parameters
(block
(return_statement
(conditional_expression
(call
(attribute
(identifier_gh) identifier_gh
(identifier_iter_orgs) identifier_iter_orgs
)attribute
(argument_list
(identifier_username) identifier_username
(identifier_number) identifier_number
(identifier_etag) identifier_etag
)argument_list
)call
(identifier_username) identifier_username
(list
)list
)conditional_expression
)return_statement
)block
)function_definition
)module | List the organizations associated with ``username``.
:param str username: (required), login of the user
:param int number: (optional), number of orgs to return. Default: -1,
return all of the issues
:param str etag: (optional), ETag from a previous request to the same
endpoint
:returns: generator of
:class:`Organization <github3.orgs.Organization>` |
(module
(function_definition
(function_name_replace_file) function_name_replace_file
(parameters
(identifier_from_file) identifier_from_file
(identifier_to_file) identifier_to_file
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_to_file) identifier_to_file
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_OSError) identifier_OSError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(identifier_copy) identifier_copy
(argument_list
(identifier_from_file) identifier_from_file
(identifier_to_file) identifier_to_file
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Replaces to_file with from_file |
(module
(function_definition
(function_name_post) function_name_post
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_object) identifier_object
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_object) identifier_get_object
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_form_class) identifier_form_class
(call
(attribute
(identifier_self) identifier_self
(identifier_get_form_class) identifier_get_form_class
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_form) identifier_form
(call
(attribute
(identifier_self) identifier_self
(identifier_get_form) identifier_get_form
)attribute
(argument_list
(identifier_form_class) identifier_form_class
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_formsets) identifier_formsets
(call
(attribute
(identifier_self) identifier_self
(identifier_get_formsets) identifier_get_formsets
)attribute
(argument_list
(identifier_form) identifier_form
(keyword_argument
(identifier_saving) identifier_saving
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_valid_formsets) identifier_valid_formsets
(True) True
)assignment
)expression_statement
(for_statement
(identifier_formset) identifier_formset
(call
(attribute
(identifier_formsets) identifier_formsets
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(not_operator
(call
(attribute
(identifier_formset) identifier_formset
(identifier_is_valid) identifier_is_valid
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_valid_formsets) identifier_valid_formsets
(False) False
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_is_valid) identifier_is_valid
)attribute
(argument_list
(identifier_form) identifier_form
(identifier_formsets) identifier_formsets
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_form_valid) identifier_form_valid
)attribute
(argument_list
(identifier_form) identifier_form
(identifier_formsets) identifier_formsets
)argument_list
)call
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_adminForm) identifier_adminForm
(call
(attribute
(identifier_self) identifier_self
(identifier_get_admin_form) identifier_get_admin_form
)attribute
(argument_list
(identifier_form) identifier_form
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_adminFormSets) identifier_adminFormSets
(call
(attribute
(identifier_self) identifier_self
(identifier_get_admin_formsets) identifier_get_admin_formsets
)attribute
(argument_list
(identifier_formsets) identifier_formsets
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_context) identifier_context
(dictionary
(pair
(string_'adminForm') string_'adminForm'
(identifier_adminForm) identifier_adminForm
)pair
(pair
(string_'formsets') string_'formsets'
(identifier_adminFormSets) identifier_adminFormSets
)pair
(pair
(string_'obj') string_'obj'
(attribute
(identifier_self) identifier_self
(identifier_object) identifier_object
)attribute
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_form_invalid) identifier_form_invalid
)attribute
(argument_list
(keyword_argument
(identifier_form) identifier_form
(identifier_form) identifier_form
)keyword_argument
(dictionary_splat
(identifier_context) identifier_context
)dictionary_splat
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Method for handling POST requests.
Validates submitted form and
formsets. Saves if valid, re displays
page with errors if invalid. |
(module
(function_definition
(function_name_pdb) function_name_pdb
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_embed_disabled) identifier_embed_disabled
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_warning_log) identifier_warning_log
)attribute
(argument_list
(string_"Pdb is disabled when runned from the grid runner because of the multithreading") string_"Pdb is disabled when runned from the grid runner because of the multithreading"
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(subscript
(subscript
(identifier_BROME_CONFIG) identifier_BROME_CONFIG
(string_'runner') string_'runner'
)subscript
(string_'play_sound_on_pdb') string_'play_sound_on_pdb'
)subscript
(block
(expression_statement
(call
(identifier_say) identifier_say
(argument_list
(subscript
(subscript
(identifier_BROME_CONFIG) identifier_BROME_CONFIG
(string_'runner') string_'runner'
)subscript
(string_'sound_on_pdb') string_'sound_on_pdb'
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_set_trace) identifier_set_trace
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Start the python debugger
Calling pdb won't do anything in a multithread context |
(module
(function_definition
(function_name__confirm_constant) function_name__confirm_constant
(parameters
(identifier_a) identifier_a
)parameters
(block
(expression_statement
(assignment
(identifier_a) identifier_a
(call
(attribute
(identifier_np) identifier_np
(identifier_asanyarray) identifier_asanyarray
)attribute
(argument_list
(identifier_a) identifier_a
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_isclose) identifier_isclose
)attribute
(argument_list
(identifier_a) identifier_a
(float_1.0) float_1.0
)argument_list
)call
(identifier_all) identifier_all
)attribute
(argument_list
(keyword_argument
(identifier_axis) identifier_axis
(integer_0) integer_0
)keyword_argument
)argument_list
)call
(identifier_any) identifier_any
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Confirm `a` has volumn vector of 1s. |
(module
(function_definition
(function_name_approximant) function_name_approximant
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(if_statement
(comparison_operator
(string_'approximant') string_'approximant'
(attribute
(attribute
(identifier_self) identifier_self
(identifier_table) identifier_table
)attribute
(identifier_fieldnames) identifier_fieldnames
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(concatenated_string
(string_"approximant not found in input file and no ") string_"approximant not found in input file and no "
(string_"approximant was specified on initialization") string_"approximant was specified on initialization"
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_table) identifier_table
)attribute
(string_"approximant") string_"approximant"
)subscript
(identifier_index) identifier_index
)subscript
)return_statement
)block
)function_definition
)module | Return the name of the approximant ot use at the given index |
(module
(function_definition
(function_name__try_lookup) function_name__try_lookup
(parameters
(identifier_table) identifier_table
(identifier_value) identifier_value
(default_parameter
(identifier_default) identifier_default
(string_"") string_""
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_string) identifier_string
(subscript
(identifier_table) identifier_table
(identifier_value) identifier_value
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(identifier_string) identifier_string
(identifier_default) identifier_default
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_string) identifier_string
)return_statement
)block
)function_definition
)module | try to get a string from the lookup table, return "" instead of key
error |
(module
(function_definition
(function_name_connection_made) function_name_connection_made
(parameters
(identifier_self) identifier_self
(identifier_transport) identifier_transport
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_transport) identifier_transport
)attribute
(identifier_transport) identifier_transport
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_transport) identifier_transport
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_method) identifier_method
)attribute
(identifier_message) identifier_message
)attribute
(identifier_encode) identifier_encode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_time_out_handle) identifier_time_out_handle
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_loop) identifier_loop
)attribute
(identifier_call_later) identifier_call_later
)attribute
(argument_list
(identifier_TIME_OUT_LIMIT) identifier_TIME_OUT_LIMIT
(attribute
(identifier_self) identifier_self
(identifier_time_out) identifier_time_out
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Connect to device is successful.
Start configuring RTSP session.
Schedule time out handle in case device doesn't respond. |
(module
(function_definition
(function_name_create_cell_renderer_text) function_name_create_cell_renderer_text
(parameters
(identifier_self) identifier_self
(identifier_tree_view) identifier_tree_view
(default_parameter
(identifier_title) identifier_title
(string_"title") string_"title"
)default_parameter
(default_parameter
(identifier_assign) identifier_assign
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_editable) identifier_editable
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_renderer) identifier_renderer
(call
(attribute
(identifier_Gtk) identifier_Gtk
(identifier_CellRendererText) identifier_CellRendererText
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_renderer) identifier_renderer
(identifier_set_property) identifier_set_property
)attribute
(argument_list
(string_'editable') string_'editable'
(identifier_editable) identifier_editable
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_column) identifier_column
(call
(attribute
(identifier_Gtk) identifier_Gtk
(identifier_TreeViewColumn) identifier_TreeViewColumn
)attribute
(argument_list
(identifier_title) identifier_title
(identifier_renderer) identifier_renderer
(keyword_argument
(identifier_text) identifier_text
(identifier_assign) identifier_assign
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_tree_view) identifier_tree_view
(identifier_append_column) identifier_append_column
)attribute
(argument_list
(identifier_column) identifier_column
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Function creates a CellRendererText with title |
(module
(function_definition
(function_name_set_interval) function_name_set_interval
(parameters
(identifier_self) identifier_self
(identifier_timer_id) identifier_timer_id
(identifier_interval) identifier_interval
)parameters
(block
(return_statement
(call
(attribute
(identifier_lib) identifier_lib
(identifier_ztimerset_set_interval) identifier_ztimerset_set_interval
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__as_parameter_) identifier__as_parameter_
)attribute
(identifier_timer_id) identifier_timer_id
(identifier_interval) identifier_interval
)argument_list
)call
)return_statement
)block
)function_definition
)module | Set timer interval. Returns 0 if OK, -1 on failure.
This method is slow, canceling the timer and adding a new one yield better performance. |
(module
(function_definition
(function_name__process) function_name__process
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_resource) identifier_resource
(None) None
)default_parameter
(default_parameter
(identifier_data) identifier_data
(dictionary
)dictionary
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier__data) identifier__data
(boolean_operator
(identifier_data) identifier_data
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rsc_url) identifier_rsc_url
(call
(attribute
(identifier_self) identifier_self
(identifier_get_rsc_endpoint) identifier_get_rsc_endpoint
)attribute
(argument_list
(identifier_resource) identifier_resource
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier__data) identifier__data
(block
(expression_statement
(assignment
(identifier_req) identifier_req
(call
(attribute
(identifier_requests) identifier_requests
(identifier_post) identifier_post
)attribute
(argument_list
(identifier_rsc_url) identifier_rsc_url
(keyword_argument
(identifier_data) identifier_data
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier__data) identifier__data
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(identifier_self) identifier_self
(identifier_headers) identifier_headers
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_req) identifier_req
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_rsc_url) identifier_rsc_url
(keyword_argument
(identifier_params) identifier_params
(identifier__data) identifier__data
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(identifier_self) identifier_self
(identifier_headers) identifier_headers
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_req) identifier_req
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__response) identifier__response
)attribute
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(attribute
(identifier_req) identifier_req
(identifier_text) identifier_text
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_int) identifier_int
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier__response) identifier__response
)attribute
(string_'response_code') string_'response_code'
)subscript
)argument_list
)call
(integer_00) integer_00
)comparison_operator
(block
(return_statement
(tuple
(True) True
(attribute
(identifier_self) identifier_self
(identifier__response) identifier__response
)attribute
)tuple
)return_statement
)block
(else_clause
(block
(return_statement
(tuple
(False) False
(subscript
(attribute
(identifier_self) identifier_self
(identifier__response) identifier__response
)attribute
(string_'response_text') string_'response_text'
)subscript
)tuple
)return_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(return_statement
(tuple
(integer_500) integer_500
(string_"Request Failed") string_"Request Failed"
)tuple
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Processes the current transaction
Sends an HTTP request to the PAYDUNYA API server |
(module
(function_definition
(function_name_sample) function_name_sample
(parameters
(identifier_self) identifier_self
(identifier_data_1) identifier_data_1
(identifier_data_2) identifier_data_2
(default_parameter
(identifier_sample_size) identifier_sample_size
(integer_15000) integer_15000
)default_parameter
(default_parameter
(identifier_blocked_proportion) identifier_blocked_proportion
(float_.5) float_.5
)default_parameter
(default_parameter
(identifier_original_length_1) identifier_original_length_1
(None) None
)default_parameter
(default_parameter
(identifier_original_length_2) identifier_original_length_2
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__checkData) identifier__checkData
)attribute
(argument_list
(identifier_data_1) identifier_data_1
(identifier_data_2) identifier_data_2
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_active_learner) identifier_active_learner
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_ActiveLearner) identifier_ActiveLearner
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_data_model) identifier_data_model
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_active_learner) identifier_active_learner
)attribute
(identifier_sample_product) identifier_sample_product
)attribute
(argument_list
(identifier_data_1) identifier_data_1
(identifier_data_2) identifier_data_2
(identifier_blocked_proportion) identifier_blocked_proportion
(identifier_sample_size) identifier_sample_size
(identifier_original_length_1) identifier_original_length_1
(identifier_original_length_2) identifier_original_length_2
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Draws a random sample of combinations of records from
the first and second datasets, and initializes active
learning with this sample
Arguments:
data_1 -- Dictionary of records from first dataset, where the
keys are record_ids and the values are dictionaries
with the keys being field names
data_2 -- Dictionary of records from second dataset, same
form as data_1
sample_size -- Size of the sample to draw |
(module
(function_definition
(function_name_put) function_name_put
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_inq) identifier_inq
)attribute
(identifier_put) identifier_put
)attribute
(argument_list
(tuple
(attribute
(identifier_self) identifier_self
(identifier__putcount) identifier__putcount
)attribute
(tuple
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
)tuple
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__putcount) identifier__putcount
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)function_definition
)module | place a new item into the pool to be handled by the workers
all positional and keyword arguments will be passed in as the arguments
to the function run by the pool's workers |
(module
(function_definition
(function_name_avg_time) function_name_avg_time
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_source) identifier_source
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_source) identifier_source
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_runtimes) identifier_runtimes
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_rec) identifier_rec
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_source_stats) identifier_source_stats
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_runtimes) identifier_runtimes
(identifier_extend) identifier_extend
)attribute
(argument_list
(list_comprehension
(identifier_r) identifier_r
(for_in_clause
(identifier_r) identifier_r
(attribute
(identifier_rec) identifier_rec
(identifier_runtimes) identifier_runtimes
)attribute
)for_in_clause
(if_clause
(comparison_operator
(identifier_r) identifier_r
(integer_0) integer_0
)comparison_operator
)if_clause
)list_comprehension
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier_avg) identifier_avg
(argument_list
(identifier_runtimes) identifier_runtimes
)argument_list
)call
)return_statement
)block
(else_clause
(block
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_source) identifier_source
)argument_list
)call
(block
(return_statement
(call
(identifier_avg) identifier_avg
(argument_list
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_source_stats) identifier_source_stats
)attribute
(attribute
(identifier_source) identifier_source
(identifier___name__) identifier___name__
)attribute
)subscript
(identifier_runtimes) identifier_runtimes
)attribute
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_avg) identifier_avg
(argument_list
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_source_stats) identifier_source_stats
)attribute
(identifier_source) identifier_source
)subscript
(identifier_runtimes) identifier_runtimes
)attribute
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns the average time taken to scrape lyrics. If a string or a
function is passed as source, return the average time taken to scrape
lyrics from that source, otherwise return the total average. |
(module
(function_definition
(function_name_random_seed_np_tf) function_name_random_seed_np_tf
(parameters
(identifier_seed) identifier_seed
)parameters
(block
(if_statement
(comparison_operator
(identifier_seed) identifier_seed
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_np) identifier_np
(identifier_random) identifier_random
)attribute
(identifier_seed) identifier_seed
)attribute
(argument_list
(identifier_seed) identifier_seed
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_tf) identifier_tf
(identifier_set_random_seed) identifier_set_random_seed
)attribute
(argument_list
(identifier_seed) identifier_seed
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Seed numpy and tensorflow random number generators.
:param seed: seed parameter |
(module
(function_definition
(function_name_beginningPage) function_name_beginningPage
(parameters
(identifier_R) identifier_R
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(subscript
(identifier_R) identifier_R
(string_'PG') string_'PG'
)subscript
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_p) identifier_p
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'suppl ') string_'suppl '
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(subscript
(identifier_p) identifier_p
(slice
(integer_6) integer_6
(colon) colon
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(subscript
(call
(attribute
(subscript
(call
(attribute
(identifier_p) identifier_p
(identifier_split) identifier_split
)attribute
(argument_list
(string_' ') string_' '
)argument_list
)call
(integer_0) integer_0
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
(string_'-') string_'-'
)argument_list
)call
(integer_0) integer_0
)subscript
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_';') string_';'
(string_'') string_''
)argument_list
)call
)return_statement
)block
)function_definition
)module | As pages may not be given as numbers this is the most accurate this function can be |
(module
(function_definition
(function_name_request) function_name_request
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_method) identifier_method
(type
(attribute
(identifier_base) identifier_base
(identifier_String) identifier_String
)attribute
)type
)typed_parameter
(typed_default_parameter
(identifier_data) identifier_data
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_Dict) identifier_Dict
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_files) identifier_files
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_Dict) identifier_Dict
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(identifier_List) identifier_List
)type
(type
(identifier_Dict) identifier_Dict
)type
(type
(attribute
(identifier_base) identifier_base
(identifier_Boolean) identifier_Boolean
)attribute
)type
)type_parameter
)generic_type
)type
(block
(return_statement
(await
(call
(attribute
(identifier_api) identifier_api
(identifier_make_request) identifier_make_request
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(attribute
(identifier_self) identifier_self
(identifier___token) identifier___token
)attribute
(identifier_method) identifier_method
(identifier_data) identifier_data
(identifier_files) identifier_files
(keyword_argument
(identifier_proxy) identifier_proxy
(attribute
(identifier_self) identifier_self
(identifier_proxy) identifier_proxy
)attribute
)keyword_argument
(keyword_argument
(identifier_proxy_auth) identifier_proxy_auth
(attribute
(identifier_self) identifier_self
(identifier_proxy_auth) identifier_proxy_auth
)attribute
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(attribute
(identifier_self) identifier_self
(identifier_timeout) identifier_timeout
)attribute
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)await
)return_statement
)block
)function_definition
)module | Make an request to Telegram Bot API
https://core.telegram.org/bots/api#making-requests
:param method: API method
:type method: :obj:`str`
:param data: request parameters
:type data: :obj:`dict`
:param files: files
:type files: :obj:`dict`
:return: result
:rtype: Union[List, Dict]
:raise: :obj:`aiogram.exceptions.TelegramApiError` |
(module
(function_definition
(function_name_get_conversation_between) function_name_get_conversation_between
(parameters
(identifier_self) identifier_self
(identifier_um_from_user) identifier_um_from_user
(identifier_um_to_user) identifier_um_to_user
)parameters
(block
(expression_statement
(assignment
(identifier_messages) identifier_messages
(call
(attribute
(identifier_self) identifier_self
(identifier_filter) identifier_filter
)attribute
(argument_list
(binary_operator
(call
(identifier_Q) identifier_Q
(argument_list
(keyword_argument
(identifier_sender) identifier_sender
(identifier_um_from_user) identifier_um_from_user
)keyword_argument
(keyword_argument
(identifier_recipients) identifier_recipients
(identifier_um_to_user) identifier_um_to_user
)keyword_argument
(keyword_argument
(identifier_sender_deleted_at__isnull) identifier_sender_deleted_at__isnull
(True) True
)keyword_argument
)argument_list
)call
(call
(identifier_Q) identifier_Q
(argument_list
(keyword_argument
(identifier_sender) identifier_sender
(identifier_um_to_user) identifier_um_to_user
)keyword_argument
(keyword_argument
(identifier_recipients) identifier_recipients
(identifier_um_from_user) identifier_um_from_user
)keyword_argument
(keyword_argument
(identifier_messagerecipient__deleted_at__isnull) identifier_messagerecipient__deleted_at__isnull
(True) True
)keyword_argument
)argument_list
)call
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_messages) identifier_messages
)return_statement
)block
)function_definition
)module | Returns a conversation between two users |
(module
(function_definition
(function_name_vsepg) function_name_vsepg
(parameters
(identifier_v1) identifier_v1
(identifier_v2) identifier_v2
(identifier_ndim) identifier_ndim
)parameters
(block
(expression_statement
(assignment
(identifier_v1) identifier_v1
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_toDoubleVector) identifier_toDoubleVector
)attribute
(argument_list
(identifier_v1) identifier_v1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_v2) identifier_v2
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_toDoubleVector) identifier_toDoubleVector
)attribute
(argument_list
(identifier_v2) identifier_v2
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ndim) identifier_ndim
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
(identifier_ndim) identifier_ndim
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_libspice) identifier_libspice
(identifier_vsepg_c) identifier_vsepg_c
)attribute
(argument_list
(identifier_v1) identifier_v1
(identifier_v2) identifier_v2
(identifier_ndim) identifier_ndim
)argument_list
)call
)return_statement
)block
)function_definition
)module | Find the separation angle in radians between two double
precision vectors of arbitrary dimension. This angle is defined
as zero if either vector is zero.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vsepg_c.html
:param v1: First vector
:type v1: Array of floats
:param v2: Second vector
:type v2: Array of floats
:param ndim: The number of elements in v1 and v2.
:type ndim: int
:return: separation angle in radians
:rtype: float |
(module
(function_definition
(function_name_read_dir_tree) function_name_read_dir_tree
(parameters
(identifier_self) identifier_self
(identifier_file_hash) identifier_file_hash
)parameters
(block
(expression_statement
(assignment
(identifier_json_d) identifier_json_d
(call
(attribute
(identifier_self) identifier_self
(identifier_read_index_object) identifier_read_index_object
)attribute
(argument_list
(identifier_file_hash) identifier_file_hash
(string_'tree') string_'tree'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_node) identifier_node
(dictionary
(pair
(string_'files') string_'files'
(subscript
(identifier_json_d) identifier_json_d
(string_'files') string_'files'
)subscript
)pair
(pair
(string_'dirs') string_'dirs'
(dictionary
)dictionary
)pair
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_hsh) identifier_hsh
)pattern_list
(call
(attribute
(subscript
(identifier_json_d) identifier_json_d
(string_'dirs') string_'dirs'
)subscript
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(subscript
(identifier_node) identifier_node
(string_'dirs') string_'dirs'
)subscript
(identifier_name) identifier_name
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_read_dir_tree) identifier_read_dir_tree
)attribute
(argument_list
(identifier_hsh) identifier_hsh
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_node) identifier_node
)return_statement
)block
)function_definition
)module | Recursively read the directory structure beginning at hash |
(module
(function_definition
(function_name_is_lossy) function_name_is_lossy
(parameters
(identifier_label) identifier_label
)parameters
(block
(expression_statement
(assignment
(identifier_val) identifier_val
(call
(attribute
(call
(attribute
(call
(identifier_getkey) identifier_getkey
(argument_list
(keyword_argument
(identifier_from_) identifier_from_
(identifier_label) identifier_label
)keyword_argument
(keyword_argument
(identifier_keyword) identifier_keyword
(string_'INST_CMPRS_TYPE') string_'INST_CMPRS_TYPE'
)keyword_argument
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_val) identifier_val
(string_'LOSSY') string_'LOSSY'
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Check Label file for the compression type. |
(module
(function_definition
(function_name__get_anchor) function_name__get_anchor
(parameters
(identifier_module_to_name) identifier_module_to_name
(identifier_fullname) identifier_fullname
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier__anchor_re) identifier__anchor_re
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_fullname) identifier_fullname
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"'%s' is not a valid anchor") string_"'%s' is not a valid anchor"
(identifier_fullname) identifier_fullname
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_anchor) identifier_anchor
(identifier_fullname) identifier_fullname
)assignment
)expression_statement
(for_statement
(identifier_module_name) identifier_module_name
(call
(attribute
(identifier_module_to_name) identifier_module_to_name
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_fullname) identifier_fullname
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(binary_operator
(identifier_module_name) identifier_module_name
(string_".") string_"."
)binary_operator
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_rest) identifier_rest
(subscript
(identifier_fullname) identifier_fullname
(slice
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_module_name) identifier_module_name
)argument_list
)call
(integer_1) integer_1
)binary_operator
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_anchor) identifier_anchor
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_rest) identifier_rest
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_anchor) identifier_anchor
(identifier_rest) identifier_rest
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_anchor) identifier_anchor
)return_statement
)block
)function_definition
)module | Turn a full member name into an anchor.
Args:
module_to_name: Dictionary mapping modules to short names.
fullname: Fully qualified name of symbol.
Returns:
HTML anchor string. The longest module name prefix of fullname is
removed to make the anchor.
Raises:
ValueError: If fullname uses characters invalid in an anchor. |
(module
(function_definition
(function_name_union) function_name_union
(parameters
(identifier_self) identifier_self
(identifier_rdds) identifier_rdds
)parameters
(block
(expression_statement
(assignment
(identifier_first_jrdd_deserializer) identifier_first_jrdd_deserializer
(attribute
(subscript
(identifier_rdds) identifier_rdds
(integer_0) integer_0
)subscript
(identifier__jrdd_deserializer) identifier__jrdd_deserializer
)attribute
)assignment
)expression_statement
(if_statement
(call
(identifier_any) identifier_any
(generator_expression
(comparison_operator
(attribute
(identifier_x) identifier_x
(identifier__jrdd_deserializer) identifier__jrdd_deserializer
)attribute
(identifier_first_jrdd_deserializer) identifier_first_jrdd_deserializer
)comparison_operator
(for_in_clause
(identifier_x) identifier_x
(identifier_rdds) identifier_rdds
)for_in_clause
)generator_expression
)call
(block
(expression_statement
(assignment
(identifier_rdds) identifier_rdds
(list_comprehension
(call
(attribute
(identifier_x) identifier_x
(identifier__reserialize) identifier__reserialize
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(identifier_rdds) identifier_rdds
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cls) identifier_cls
(attribute
(attribute
(attribute
(attribute
(attribute
(attribute
(attribute
(identifier_SparkContext) identifier_SparkContext
(identifier__jvm) identifier__jvm
)attribute
(identifier_org) identifier_org
)attribute
(identifier_apache) identifier_apache
)attribute
(identifier_spark) identifier_spark
)attribute
(identifier_api) identifier_api
)attribute
(identifier_java) identifier_java
)attribute
(identifier_JavaRDD) identifier_JavaRDD
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_jrdds) identifier_jrdds
(call
(attribute
(attribute
(identifier_SparkContext) identifier_SparkContext
(identifier__gateway) identifier__gateway
)attribute
(identifier_new_array) identifier_new_array
)attribute
(argument_list
(identifier_cls) identifier_cls
(call
(identifier_len) identifier_len
(argument_list
(identifier_rdds) identifier_rdds
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_0) integer_0
(call
(identifier_len) identifier_len
(argument_list
(identifier_rdds) identifier_rdds
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_jrdds) identifier_jrdds
(identifier_i) identifier_i
)subscript
(attribute
(subscript
(identifier_rdds) identifier_rdds
(identifier_i) identifier_i
)subscript
(identifier__jrdd) identifier__jrdd
)attribute
)assignment
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier_RDD) identifier_RDD
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__jsc) identifier__jsc
)attribute
(identifier_union) identifier_union
)attribute
(argument_list
(identifier_jrdds) identifier_jrdds
)argument_list
)call
(identifier_self) identifier_self
(attribute
(subscript
(identifier_rdds) identifier_rdds
(integer_0) integer_0
)subscript
(identifier__jrdd_deserializer) identifier__jrdd_deserializer
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Build the union of a list of RDDs.
This supports unions() of RDDs with different serialized formats,
although this forces them to be reserialized using the default
serializer:
>>> path = os.path.join(tempdir, "union-text.txt")
>>> with open(path, "w") as testFile:
... _ = testFile.write("Hello")
>>> textFile = sc.textFile(path)
>>> textFile.collect()
[u'Hello']
>>> parallelized = sc.parallelize(["World!"])
>>> sorted(sc.union([textFile, parallelized]).collect())
[u'Hello', 'World!'] |
(module
(function_definition
(function_name_mark_time) function_name_mark_time
(parameters
(identifier_times) identifier_times
(default_parameter
(identifier_msg) identifier_msg
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_tt) identifier_tt
(call
(attribute
(identifier_time) identifier_time
(identifier_clock) identifier_clock
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_times) identifier_times
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_tt) identifier_tt
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_msg) identifier_msg
(None) None
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_times) identifier_times
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)parenthesized_expression
)boolean_operator
(block
(print_statement
(identifier_msg) identifier_msg
(binary_operator
(subscript
(identifier_times) identifier_times
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(subscript
(identifier_times) identifier_times
(unary_operator
(integer_2) integer_2
)unary_operator
)subscript
)binary_operator
)print_statement
)block
)if_statement
)block
)function_definition
)module | Time measurement utility.
Measures times of execution between subsequent calls using
time.clock(). The time is printed if the msg argument is not None.
Examples
--------
>>> times = []
>>> mark_time(times)
... do something
>>> mark_time(times, 'elapsed')
elapsed 0.1
... do something else
>>> mark_time(times, 'elapsed again')
elapsed again 0.05
>>> times
[0.10000000000000001, 0.050000000000000003] |
(module
(function_definition
(function_name__get_sorted_action_keys) function_name__get_sorted_action_keys
(parameters
(identifier_self) identifier_self
(identifier_keys_list) identifier_keys_list
)parameters
(block
(expression_statement
(assignment
(identifier_action_list) identifier_action_list
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(identifier_keys_list) identifier_keys_list
(block
(if_statement
(call
(attribute
(identifier_key) identifier_key
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'action-') string_'action-'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_action_list) identifier_action_list
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_action_list) identifier_action_list
(identifier_sort) identifier_sort
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_action_list) identifier_action_list
)return_statement
)block
)function_definition
)module | This function returns only the elements starting with 'action-' in
'keys_list'. The returned list is sorted by the index appended to
the end of each element |
(module
(function_definition
(function_name_generate_image) function_name_generate_image
(parameters
(identifier_self) identifier_self
(identifier_imgtype) identifier_imgtype
(default_parameter
(identifier_face) identifier_face
(None) None
)default_parameter
(default_parameter
(identifier_hair) identifier_hair
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_imgtype) identifier_imgtype
(identifier_str) identifier_str
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"type of 'imgtype' must be str.") string_"type of 'imgtype' must be str."
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_face) identifier_face
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_face) identifier_face
(identifier_str) identifier_str
)argument_list
)call
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"type of 'face' must be str.") string_"type of 'face' must be str."
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_hair) identifier_hair
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_hair) identifier_hair
(identifier_str) identifier_str
)argument_list
)call
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"type of 'hair' must be str.") string_"type of 'hair' must be str."
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(boolean_operator
(parenthesized_expression
(boolean_operator
(identifier_face) identifier_face
(identifier_hair) identifier_hair
)boolean_operator
)parenthesized_expression
(comparison_operator
(identifier_imgtype) identifier_imgtype
(string_'awooo') string_'awooo'
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_InvalidArguments) identifier_InvalidArguments
(argument_list
(string_'\'face\' and \'hair\' are arguments only available on the \'awoo\' image type') string_'\'face\' and \'hair\' are arguments only available on the \'awoo\' image type'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(binary_operator
(string_f'https://api.weeb.sh/auto-image/generate?type={imgtype}') string_f'https://api.weeb.sh/auto-image/generate?type={imgtype}'
(parenthesized_expression
(conditional_expression
(binary_operator
(string_"&face=") string_"&face="
(identifier_face) identifier_face
)binary_operator
(identifier_face) identifier_face
(string_"") string_""
)conditional_expression
)parenthesized_expression
)binary_operator
(parenthesized_expression
(conditional_expression
(binary_operator
(string_"&hair=") string_"&hair="
(identifier_hair) identifier_hair
)binary_operator
(identifier_hair) identifier_hair
(string_"") string_""
)conditional_expression
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_aiohttp) identifier_aiohttp
(identifier_ClientSession) identifier_ClientSession
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_session) identifier_session
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_session) identifier_session
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(identifier_self) identifier_self
(identifier___headers) identifier___headers
)attribute
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_resp) identifier_resp
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(if_statement
(comparison_operator
(attribute
(identifier_resp) identifier_resp
(identifier_status) identifier_status
)attribute
(integer_200) integer_200
)comparison_operator
(block
(return_statement
(await
(call
(attribute
(identifier_resp) identifier_resp
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)await
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(subscript
(parenthesized_expression
(await
(call
(attribute
(identifier_resp) identifier_resp
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)await
)parenthesized_expression
(string_'message') string_'message'
)subscript
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)with_statement
)block
)with_statement
)block
)function_definition
)module | Generate a basic image using the auto-image endpoint of weeb.sh.
This function is a coroutine.
Parameters:
imgtype: str - type of the generation to create, possible types are awooo, eyes, or won.
face: str - only used with awooo type, defines color of face
hair: str - only used with awooo type, defines color of hair/fur
Return Type: image data |
(module
(function_definition
(function_name_get_tx_identity_info) function_name_get_tx_identity_info
(parameters
(identifier_self) identifier_self
(identifier_tx_ac) identifier_tx_ac
)parameters
(block
(expression_statement
(assignment
(identifier_rows) identifier_rows
(call
(attribute
(identifier_self) identifier_self
(identifier__fetchall) identifier__fetchall
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier__queries) identifier__queries
)attribute
(string_'tx_identity_info') string_'tx_identity_info'
)subscript
(list
(identifier_tx_ac) identifier_tx_ac
)list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_rows) identifier_rows
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_HGVSDataNotAvailableError) identifier_HGVSDataNotAvailableError
(argument_list
(call
(attribute
(string_"No transcript definition for (tx_ac={tx_ac})") string_"No transcript definition for (tx_ac={tx_ac})"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_tx_ac) identifier_tx_ac
(identifier_tx_ac) identifier_tx_ac
)keyword_argument
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(subscript
(identifier_rows) identifier_rows
(integer_0) integer_0
)subscript
)return_statement
)block
)function_definition
)module | returns features associated with a single transcript.
:param tx_ac: transcript accession with version (e.g., 'NM_199425.2')
:type tx_ac: str
# database output
-[ RECORD 1 ]--+-------------
tx_ac | NM_199425.2
alt_ac | NM_199425.2
alt_aln_method | transcript
cds_start_i | 283
cds_end_i | 1003
lengths | {707,79,410}
hgnc | VSX1 |
(module
(function_definition
(function_name_add_item) function_name_add_item
(parameters
(identifier_self) identifier_self
(identifier_item) identifier_item
(dictionary_splat_pattern
(identifier_options) identifier_options
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_export_item) identifier_export_item
(dictionary
(pair
(string_"item") string_"item"
(attribute
(identifier_item) identifier_item
(identifier_url) identifier_url
)attribute
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_export_item) identifier_export_item
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_options) identifier_options
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_items) identifier_items
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_export_item) identifier_export_item
)argument_list
)call
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Add a layer or table item to the export.
:param Layer|Table item: The Layer or Table to add
:rtype: self |
(module
(function_definition
(function_name__calculate_duration) function_name__calculate_duration
(parameters
(identifier_start_time) identifier_start_time
(identifier_finish_time) identifier_finish_time
)parameters
(block
(if_statement
(not_operator
(parenthesized_expression
(boolean_operator
(identifier_start_time) identifier_start_time
(identifier_finish_time) identifier_finish_time
)boolean_operator
)parenthesized_expression
)not_operator
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_start) identifier_start
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_fromtimestamp) identifier_fromtimestamp
)attribute
(argument_list
(identifier_start_time) identifier_start_time
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_finish) identifier_finish
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_fromtimestamp) identifier_fromtimestamp
)attribute
(argument_list
(identifier_finish_time) identifier_finish_time
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_duration) identifier_duration
(binary_operator
(identifier_finish) identifier_finish
(identifier_start) identifier_start
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_decimals) identifier_decimals
(call
(identifier_float) identifier_float
(argument_list
(parenthesized_expression
(binary_operator
(string_"0.") string_"0."
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_duration) identifier_duration
(identifier_microseconds) identifier_microseconds
)attribute
)argument_list
)call
)binary_operator
)parenthesized_expression
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(attribute
(identifier_duration) identifier_duration
(identifier_seconds) identifier_seconds
)attribute
(identifier_decimals) identifier_decimals
)binary_operator
)return_statement
)block
)function_definition
)module | Calculates how long it took to execute the testcase. |
(module
(function_definition
(function_name_task_path) function_name_task_path
(parameters
(identifier_cls) identifier_cls
(identifier_project) identifier_project
(identifier_location) identifier_location
(identifier_queue) identifier_queue
(identifier_task) identifier_task
)parameters
(block
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_path_template) identifier_path_template
)attribute
(identifier_expand) identifier_expand
)attribute
(argument_list
(string_"projects/{project}/locations/{location}/queues/{queue}/tasks/{task}") string_"projects/{project}/locations/{location}/queues/{queue}/tasks/{task}"
(keyword_argument
(identifier_project) identifier_project
(identifier_project) identifier_project
)keyword_argument
(keyword_argument
(identifier_location) identifier_location
(identifier_location) identifier_location
)keyword_argument
(keyword_argument
(identifier_queue) identifier_queue
(identifier_queue) identifier_queue
)keyword_argument
(keyword_argument
(identifier_task) identifier_task
(identifier_task) identifier_task
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a fully-qualified task string. |
(module
(function_definition
(function_name__filehandle) function_name__filehandle
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier__fh) identifier__fh
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__has_file_rolled) identifier__has_file_rolled
)attribute
(argument_list
)argument_list
)call
)boolean_operator
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__fh) identifier__fh
)attribute
(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
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__fh) identifier__fh
)attribute
(None) None
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__fh) identifier__fh
)attribute
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__open_file) identifier__open_file
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)attribute
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_opened_before) identifier_opened_before
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_opened_before) identifier_opened_before
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__fh) identifier__fh
)attribute
(identifier_seek) identifier_seek
)attribute
(argument_list
(integer_0) integer_0
(attribute
(identifier_os) identifier_os
(identifier_SEEK_END) identifier_SEEK_END
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__fh) identifier__fh
)attribute
)return_statement
)block
)function_definition
)module | Return a filehandle to the file being tailed |
(module
(function_definition
(function_name_copy) function_name_copy
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_params) identifier_params
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_new_params) identifier_new_params
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_name) identifier_name
(list
(string_'owner') string_'owner'
(string_'priority') string_'priority'
(string_'key') string_'key'
(string_'final') string_'final'
)list
(block
(expression_statement
(assignment
(subscript
(identifier_new_params) identifier_new_params
(identifier_name) identifier_name
)subscript
(call
(attribute
(identifier_params) identifier_params
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_name) identifier_name
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_name) identifier_name
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier_Route) identifier_Route
(argument_list
(dictionary_splat
(identifier_new_params) identifier_new_params
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates the new instance of the Route substituting the requested
parameters. |
(module
(function_definition
(function_name_find_by) function_name_find_by
(parameters
(identifier_cls) identifier_cls
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(type
(string_'Entity') string_'Entity'
)type
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(concatenated_string
(string_f'Lookup `{cls.__name__}` object with values ') string_f'Lookup `{cls.__name__}` object with values '
(string_f'{kwargs}') string_f'{kwargs}'
)concatenated_string
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier_query) identifier_query
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(identifier_limit) identifier_limit
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_results) identifier_results
)not_operator
(block
(raise_statement
(call
(identifier_ObjectNotFoundError) identifier_ObjectNotFoundError
(argument_list
(concatenated_string
(string_f'`{cls.__name__}` object with values {[item for item in kwargs.items()]} ') string_f'`{cls.__name__}` object with values {[item for item in kwargs.items()]} '
(string_f'does not exist.') string_f'does not exist.'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(attribute
(identifier_results) identifier_results
(identifier_first) identifier_first
)attribute
)return_statement
)block
)function_definition
)module | Find a specific entity record that matches one or more criteria.
:param kwargs: named arguments consisting of attr_name and attr_value pairs to search on |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.