sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_create_client_with_manual_poll) function_name_create_client_with_manual_poll
(parameters
(identifier_api_key) identifier_api_key
(default_parameter
(identifier_config_cache_class) identifier_config_cache_class
(None) None
)default_parameter
(default_parameter
(identifier_base_url) identifier_base_url
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_api_key) identifier_api_key
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ConfigCatClientException) identifier_ConfigCatClientException
(argument_list
(string_'API Key is required.') string_'API Key is required.'
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(identifier_ConfigCatClient) identifier_ConfigCatClient
(argument_list
(identifier_api_key) identifier_api_key
(integer_0) integer_0
(integer_0) integer_0
(None) None
(integer_0) integer_0
(identifier_config_cache_class) identifier_config_cache_class
(identifier_base_url) identifier_base_url
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create an instance of ConfigCatClient and setup Manual Poll mode with custom options
:param api_key: ConfigCat ApiKey to access your configuration.
:param config_cache_class: If you want to use custom caching instead of the client's default InMemoryConfigCache,
You can provide an implementation of ConfigCache.
:param base_url: You can set a base_url if you want to use a proxy server between your application and ConfigCat |
(module
(function_definition
(function_name_has_textonly_pdf) function_name_has_textonly_pdf
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_args_tess) identifier_args_tess
(list
(string_'tesseract') string_'tesseract'
(string_'--print-parameters') string_'--print-parameters'
(string_'pdf') string_'pdf'
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(string_'') string_''
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(call
(identifier_check_output) identifier_check_output
(argument_list
(identifier_args_tess) identifier_args_tess
(keyword_argument
(identifier_universal_newlines) identifier_universal_newlines
(True) True
)keyword_argument
(keyword_argument
(identifier_stderr) identifier_stderr
(identifier_STDOUT) identifier_STDOUT
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_CalledProcessError) identifier_CalledProcessError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Could not --print-parameters from tesseract") string_"Could not --print-parameters from tesseract"
(keyword_argument
(identifier_file) identifier_file
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(raise_statement
(identifier_MissingDependencyError) identifier_MissingDependencyError
(identifier_e) identifier_e
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(string_'textonly_pdf') string_'textonly_pdf'
(identifier_params) identifier_params
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Does Tesseract have textonly_pdf capability?
Available in v4.00.00alpha since January 2017. Best to
parse the parameter list |
(module
(function_definition
(function_name_Delete) function_name_Delete
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(attribute
(identifier_user_management_pb2) identifier_user_management_pb2
(identifier_ApiDeleteGrrUserArgs) identifier_ApiDeleteGrrUserArgs
)attribute
(argument_list
(keyword_argument
(identifier_username) identifier_username
(attribute
(identifier_self) identifier_self
(identifier_username) identifier_username
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__context) identifier__context
)attribute
(identifier_SendRequest) identifier_SendRequest
)attribute
(argument_list
(string_"DeleteGrrUser") string_"DeleteGrrUser"
(identifier_args) identifier_args
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Deletes the user. |
(module
(function_definition
(function_name_cast_values_csvs) function_name_cast_values_csvs
(parameters
(identifier_d) identifier_d
(identifier_idx) identifier_idx
(identifier_x) identifier_x
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(subscript
(identifier_d) identifier_d
(identifier_idx) identifier_idx
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_float) identifier_float
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(call
(attribute
(subscript
(identifier_d) identifier_d
(identifier_idx) identifier_idx
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)expression_statement
)block
)except_clause
(except_clause
(as_pattern
(identifier_KeyError) identifier_KeyError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_logger_misc) identifier_logger_misc
(identifier_warn) identifier_warn
)attribute
(argument_list
(call
(attribute
(string_"cast_values_csv: KeyError: col: {}, {}") string_"cast_values_csv: KeyError: col: {}, {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_x) identifier_x
(identifier_e) identifier_e
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_d) identifier_d
)return_statement
)block
)function_definition
)module | Attempt to cast string to float. If error, keep as a string.
:param dict d: Data
:param int idx: Index number
:param str x: Data
:return any: |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(identifier_friendly_name) identifier_friendly_name
(default_parameter
(identifier_event_callback_url) identifier_event_callback_url
(attribute
(identifier_values) identifier_values
(identifier_unset) identifier_unset
)attribute
)default_parameter
(default_parameter
(identifier_events_filter) identifier_events_filter
(attribute
(identifier_values) identifier_values
(identifier_unset) identifier_unset
)attribute
)default_parameter
(default_parameter
(identifier_multi_task_enabled) identifier_multi_task_enabled
(attribute
(identifier_values) identifier_values
(identifier_unset) identifier_unset
)attribute
)default_parameter
(default_parameter
(identifier_template) identifier_template
(attribute
(identifier_values) identifier_values
(identifier_unset) identifier_unset
)attribute
)default_parameter
(default_parameter
(identifier_prioritize_queue_order) identifier_prioritize_queue_order
(attribute
(identifier_values) identifier_values
(identifier_unset) identifier_unset
)attribute
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_values) identifier_values
(identifier_of) identifier_of
)attribute
(argument_list
(dictionary
(pair
(string_'FriendlyName') string_'FriendlyName'
(identifier_friendly_name) identifier_friendly_name
)pair
(pair
(string_'EventCallbackUrl') string_'EventCallbackUrl'
(identifier_event_callback_url) identifier_event_callback_url
)pair
(pair
(string_'EventsFilter') string_'EventsFilter'
(identifier_events_filter) identifier_events_filter
)pair
(pair
(string_'MultiTaskEnabled') string_'MultiTaskEnabled'
(identifier_multi_task_enabled) identifier_multi_task_enabled
)pair
(pair
(string_'Template') string_'Template'
(identifier_template) identifier_template
)pair
(pair
(string_'PrioritizeQueueOrder') string_'PrioritizeQueueOrder'
(identifier_prioritize_queue_order) identifier_prioritize_queue_order
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_payload) identifier_payload
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__version) identifier__version
)attribute
(identifier_create) identifier_create
)attribute
(argument_list
(string_'POST') string_'POST'
(attribute
(identifier_self) identifier_self
(identifier__uri) identifier__uri
)attribute
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_WorkspaceInstance) identifier_WorkspaceInstance
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__version) identifier__version
)attribute
(identifier_payload) identifier_payload
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a new WorkspaceInstance
:param unicode friendly_name: Human readable description of this workspace
:param unicode event_callback_url: If provided, the Workspace will publish events to this URL.
:param unicode events_filter: Use this parameter to receive webhooks on EventCallbackUrl for specific events on a workspace.
:param bool multi_task_enabled: Multi tasking allows workers to handle multiple tasks simultaneously.
:param unicode template: One of the available template names.
:param WorkspaceInstance.QueueOrder prioritize_queue_order: Use this parameter to configure whether to prioritize LIFO or FIFO when workers are receiving Tasks from combination of LIFO and FIFO TaskQueues.
:returns: Newly created WorkspaceInstance
:rtype: twilio.rest.taskrouter.v1.workspace.WorkspaceInstance |
(module
(function_definition
(function_name__get_proc_username) function_name__get_proc_username
(parameters
(identifier_proc) identifier_proc
)parameters
(block
(try_statement
(block
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_data) identifier_data
)attribute
(identifier_decode) identifier_decode
)attribute
(argument_list
(conditional_expression
(call
(attribute
(identifier_proc) identifier_proc
(identifier_username) identifier_username
)attribute
(argument_list
)argument_list
)call
(identifier_PSUTIL2) identifier_PSUTIL2
(attribute
(identifier_proc) identifier_proc
(identifier_username) identifier_username
)attribute
)conditional_expression
)argument_list
)call
)return_statement
)block
(except_clause
(tuple
(attribute
(identifier_psutil) identifier_psutil
(identifier_NoSuchProcess) identifier_NoSuchProcess
)attribute
(attribute
(identifier_psutil) identifier_psutil
(identifier_AccessDenied) identifier_AccessDenied
)attribute
(identifier_KeyError) identifier_KeyError
)tuple
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Returns the username of a Process instance.
It's backward compatible with < 2.0 versions of psutil. |
(module
(function_definition
(function_name__switch_partition) function_name__switch_partition
(parameters
)parameters
(type
(identifier_RootPartitions) identifier_RootPartitions
)type
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_output) identifier_check_output
)attribute
(argument_list
(list
(string_'ot-switch-partitions') string_'ot-switch-partitions'
)list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(call
(attribute
(identifier_res) identifier_res
(identifier_split) identifier_split
)attribute
(argument_list
(string_b'\n') string_b'\n'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_matches) identifier_matches
(call
(attribute
(identifier_re) identifier_re
(identifier_match) identifier_match
)attribute
(argument_list
(string_b'Current boot partition: ([23]), setting to ([23])') string_b'Current boot partition: ([23]), setting to ([23])'
(identifier_line) identifier_line
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_matches) identifier_matches
(block
(return_statement
(subscript
(dictionary
(pair
(string_b'2') string_b'2'
(attribute
(identifier_RootPartitions) identifier_RootPartitions
(identifier_TWO) identifier_TWO
)attribute
)pair
(pair
(string_b'3') string_b'3'
(attribute
(identifier_RootPartitions) identifier_RootPartitions
(identifier_THREE) identifier_THREE
)attribute
)pair
)dictionary
(call
(attribute
(identifier_matches) identifier_matches
(identifier_group) identifier_group
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)subscript
)return_statement
)block
)if_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_f'Bad output from ot-switch-partitions: {res}') string_f'Bad output from ot-switch-partitions: {res}'
)argument_list
)call
)raise_statement
)block
)else_clause
)for_statement
)block
)function_definition
)module | Switch the active boot partition using the switch script |
(module
(function_definition
(function_name_ver_cmp) function_name_ver_cmp
(parameters
(identifier_ver1) identifier_ver1
(identifier_ver2) identifier_ver2
)parameters
(block
(return_statement
(call
(identifier_cmp) identifier_cmp
(argument_list
(call
(attribute
(identifier_pkg_resources) identifier_pkg_resources
(identifier_parse_version) identifier_parse_version
)attribute
(argument_list
(identifier_ver1) identifier_ver1
)argument_list
)call
(call
(attribute
(identifier_pkg_resources) identifier_pkg_resources
(identifier_parse_version) identifier_parse_version
)attribute
(argument_list
(identifier_ver2) identifier_ver2
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Compare lago versions
Args:
ver1(str): version string
ver2(str): version string
Returns:
Return negative if ver1<ver2, zero if ver1==ver2, positive if
ver1>ver2. |
(module
(function_definition
(function_name_get_min_instability) function_name_get_min_instability
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_min_voltage) identifier_min_voltage
(None) None
)default_parameter
(default_parameter
(identifier_max_voltage) identifier_max_voltage
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_pair) identifier_pair
(call
(attribute
(identifier_self) identifier_self
(identifier__select_in_voltage_range) identifier__select_in_voltage_range
)attribute
(argument_list
(identifier_min_voltage) identifier_min_voltage
(identifier_max_voltage) identifier_max_voltage
)argument_list
)call
(block
(if_statement
(comparison_operator
(attribute
(identifier_pair) identifier_pair
(identifier_decomp_e_charge) identifier_decomp_e_charge
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_data) identifier_data
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_pair) identifier_pair
(identifier_decomp_e_charge) identifier_decomp_e_charge
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_pair) identifier_pair
(identifier_decomp_e_discharge) identifier_decomp_e_discharge
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_data) identifier_data
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_pair) identifier_pair
(identifier_decomp_e_discharge) identifier_decomp_e_discharge
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(conditional_expression
(call
(identifier_min) identifier_min
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(None) None
)conditional_expression
)return_statement
)block
)function_definition
)module | The minimum instability along a path for a specific voltage range.
Args:
min_voltage: The minimum allowable voltage.
max_voltage: The maximum allowable voltage.
Returns:
Minimum decomposition energy of all compounds along the insertion
path (a subset of the path can be chosen by the optional arguments) |
(module
(function_definition
(function_name_hash) function_name_hash
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_hash) identifier_hash
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier__shape) identifier__shape
)attribute
(tuple
(attribute
(identifier_self) identifier_self
(identifier_tilewidth) identifier_tilewidth
)attribute
(attribute
(identifier_self) identifier_self
(identifier_tilelength) identifier_tilelength
)attribute
(attribute
(identifier_self) identifier_self
(identifier_tiledepth) identifier_tiledepth
)attribute
(attribute
(identifier_self) identifier_self
(identifier_bitspersample) identifier_bitspersample
)attribute
(attribute
(identifier_self) identifier_self
(identifier_fillorder) identifier_fillorder
)attribute
(attribute
(identifier_self) identifier_self
(identifier_predictor) identifier_predictor
)attribute
(attribute
(identifier_self) identifier_self
(identifier_extrasamples) identifier_extrasamples
)attribute
(attribute
(identifier_self) identifier_self
(identifier_photometric) identifier_photometric
)attribute
(attribute
(identifier_self) identifier_self
(identifier_compression) identifier_compression
)attribute
(attribute
(identifier_self) identifier_self
(identifier_planarconfig) identifier_planarconfig
)attribute
)tuple
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return checksum to identify pages in same series. |
(module
(function_definition
(function_name__deserialize) function_name__deserialize
(parameters
(identifier_cls) identifier_cls
(identifier_key) identifier_key
(identifier_value) identifier_value
(identifier_fields) identifier_fields
)parameters
(block
(expression_statement
(assignment
(identifier_converter) identifier_converter
(call
(attribute
(identifier_cls) identifier_cls
(identifier__get_converter_for_field) identifier__get_converter_for_field
)attribute
(argument_list
(identifier_key) identifier_key
(None) None
(identifier_fields) identifier_fields
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_converter) identifier_converter
(identifier_deserialize) identifier_deserialize
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
)function_definition
)module | Marshal incoming data into Python objects. |
(module
(function_definition
(function_name_calc_qpout_v1) function_name_calc_qpout_v1
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_der) identifier_der
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parameters) identifier_parameters
)attribute
(identifier_derived) identifier_derived
)attribute
(identifier_fastaccess) identifier_fastaccess
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_flu) identifier_flu
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sequences) identifier_sequences
)attribute
(identifier_fluxes) identifier_fluxes
)attribute
(identifier_fastaccess) identifier_fastaccess
)attribute
)assignment
)expression_statement
(for_statement
(identifier_idx) identifier_idx
(call
(identifier_range) identifier_range
(argument_list
(attribute
(identifier_der) identifier_der
(identifier_nmb) identifier_nmb
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_flu) identifier_flu
(identifier_qpout) identifier_qpout
)attribute
(identifier_idx) identifier_idx
)subscript
(binary_operator
(subscript
(attribute
(identifier_flu) identifier_flu
(identifier_qma) identifier_qma
)attribute
(identifier_idx) identifier_idx
)subscript
(subscript
(attribute
(identifier_flu) identifier_flu
(identifier_qar) identifier_qar
)attribute
(identifier_idx) identifier_idx
)subscript
)binary_operator
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Calculate the ARMA results for the different response functions.
Required derived parameter:
|Nmb|
Required flux sequences:
|QMA|
|QAR|
Calculated flux sequence:
|QPOut|
Examples:
Initialize an arma model with three different response functions:
>>> from hydpy.models.arma import *
>>> parameterstep()
>>> derived.nmb(3)
>>> fluxes.qma.shape = 3
>>> fluxes.qar.shape = 3
>>> fluxes.qpout.shape = 3
Define the output values of the MA and of the AR processes
associated with the three response functions and apply
method |calc_qpout_v1|:
>>> fluxes.qar = 4.0, 5.0, 6.0
>>> fluxes.qma = 1.0, 2.0, 3.0
>>> model.calc_qpout_v1()
>>> fluxes.qpout
qpout(5.0, 7.0, 9.0) |
(module
(function_definition
(function_name_parse_kwargs) function_name_parse_kwargs
(parameters
(identifier_kwargs) identifier_kwargs
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(identifier_defaultdict) identifier_defaultdict
(argument_list
(identifier_list) identifier_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(generator_expression
(tuple
(call
(attribute
(identifier_k) identifier_k
(identifier_lstrip) identifier_lstrip
)attribute
(argument_list
(string_'-') string_'-'
)argument_list
)call
(identifier_v) identifier_v
)tuple
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(generator_expression
(call
(attribute
(identifier_a) identifier_a
(identifier_split) identifier_split
)attribute
(argument_list
(string_'=') string_'='
)argument_list
)call
(for_in_clause
(identifier_a) identifier_a
(identifier_kwargs) identifier_kwargs
)for_in_clause
)generator_expression
)for_in_clause
)generator_expression
(block
(expression_statement
(call
(attribute
(subscript
(identifier_d) identifier_d
(identifier_k) identifier_k
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_d) identifier_d
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_v) identifier_v
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_v) identifier_v
)argument_list
)call
(identifier_list) identifier_list
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(identifier_k) identifier_k
)subscript
(subscript
(identifier_v) identifier_v
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(identifier_k) identifier_k
)subscript
(identifier_v) identifier_v
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Convert a list of kwargs into a dictionary. Duplicates of the same keyword
get added to an list within the dictionary.
>>> parse_kwargs(['--var1=1', '--var2=2', '--var1=3']
{'var1': [1, 3], 'var2': 2} |
(module
(function_definition
(function_name_get_script_property) function_name_get_script_property
(parameters
(identifier_value) identifier_value
(default_parameter
(identifier_is_bytes) identifier_is_bytes
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(conditional_expression
(attribute
(identifier_unidata) identifier_unidata
(identifier_ascii_scripts) identifier_ascii_scripts
)attribute
(identifier_is_bytes) identifier_is_bytes
(attribute
(identifier_unidata) identifier_unidata
(identifier_unicode_scripts) identifier_unicode_scripts
)attribute
)conditional_expression
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'^') string_'^'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_negated) identifier_negated
(subscript
(identifier_value) identifier_value
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(binary_operator
(string_'^') string_'^'
(call
(attribute
(subscript
(attribute
(identifier_unidata) identifier_unidata
(identifier_unicode_alias) identifier_unicode_alias
)attribute
(string_'script') string_'script'
)subscript
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_negated) identifier_negated
(identifier_negated) identifier_negated
)argument_list
)call
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(subscript
(attribute
(identifier_unidata) identifier_unidata
(identifier_unicode_alias) identifier_unicode_alias
)attribute
(string_'script') string_'script'
)subscript
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_value) identifier_value
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(subscript
(identifier_obj) identifier_obj
(identifier_value) identifier_value
)subscript
)return_statement
)block
)function_definition
)module | Get `SC` property. |
(module
(function_definition
(function_name_connect) function_name_connect
(parameters
(identifier_self) identifier_self
(identifier_region) identifier_region
(dictionary_splat_pattern
(identifier_kw_params) identifier_kw_params
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_ec2) identifier_ec2
)attribute
(call
(attribute
(attribute
(identifier_boto) identifier_boto
(identifier_ec2) identifier_ec2
)attribute
(identifier_connect_to_region) identifier_connect_to_region
)attribute
(argument_list
(identifier_region) identifier_region
(dictionary_splat
(identifier_kw_params) identifier_kw_params
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_ec2) identifier_ec2
)attribute
)not_operator
(block
(raise_statement
(call
(identifier_EC2ManagerException) identifier_EC2ManagerException
(argument_list
(binary_operator
(string_'Unable to connect to region "%s"') string_'Unable to connect to region "%s"'
(identifier_region) identifier_region
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_remote_images) identifier_remote_images
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_images) identifier_images
)attribute
(call
(identifier_any) identifier_any
(generator_expression
(parenthesized_expression
(boolean_operator
(comparison_operator
(string_'image_name') string_'image_name'
(identifier_img) identifier_img
)comparison_operator
(comparison_operator
(string_'image_id') string_'image_id'
(identifier_img) identifier_img
)comparison_operator
)boolean_operator
)parenthesized_expression
(for_in_clause
(identifier_img) identifier_img
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_images) identifier_images
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)generator_expression
)call
)boolean_operator
(block
(for_statement
(identifier_img) identifier_img
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_images) identifier_images
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(string_'image_name') string_'image_name'
(identifier_img) identifier_img
)comparison_operator
(comparison_operator
(string_'image_id') string_'image_id'
(identifier_img) identifier_img
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_img) identifier_img
(string_'image_id') string_'image_id'
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_resolve_image_name) identifier_resolve_image_name
)attribute
(argument_list
(call
(attribute
(identifier_img) identifier_img
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'image_name') string_'image_name'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
)block
)function_definition
)module | Connect to a EC2.
:param region: The name of the region to connect to.
:type region: str
:param kw_params:
:type kw_params: dict |
(module
(function_definition
(function_name_get_record_types) function_name_get_record_types
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_type) identifier_type
(identifier_objects) identifier_objects
)dotted_name
)relative_import
(dotted_name
(identifier_TypeList) identifier_TypeList
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_type_list) identifier_type_list
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_type_idstr) identifier_type_idstr
(attribute
(identifier_self) identifier_self
(identifier__supported_record_type_ids) identifier__supported_record_type_ids
)attribute
(block
(expression_statement
(call
(attribute
(identifier_type_list) identifier_type_list
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_Type) identifier_Type
(argument_list
(dictionary_splat
(subscript
(attribute
(identifier_self) identifier_self
(identifier__record_type_data_sets) identifier__record_type_data_sets
)attribute
(call
(attribute
(call
(identifier_Id) identifier_Id
(argument_list
(identifier_type_idstr) identifier_type_idstr
)argument_list
)call
(identifier_get_identifier) identifier_get_identifier
)attribute
(argument_list
)argument_list
)call
)subscript
)dictionary_splat
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier_TypeList) identifier_TypeList
(argument_list
(identifier_type_list) identifier_type_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets the record types available in this object.
A record ``Type`` explicitly indicates the specification of an
interface to the record. A record may or may not inherit other
record interfaces through interface inheritance in which case
support of a record type may not be explicit in the returned
list. Interoperability with the typed interface to this object
should be performed through ``hasRecordType()``.
return: (osid.type.TypeList) - the record types available
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name_default) function_name_default
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(identifier_ensure_unicode) identifier_ensure_unicode
(argument_list
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_git) identifier_git
)attribute
(identifier_log) identifier_log
)attribute
(argument_list
(string_'-1') string_'-1'
(string_'-p') string_'-p'
(string_'--no-color') string_'--no-color'
(string_'--format=%s') string_'--format=%s'
)argument_list
)call
(identifier_stdout) identifier_stdout
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lines) identifier_lines
(call
(attribute
(identifier_output) identifier_output
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_u'\n') string_u'\n'
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_chain) identifier_chain
)attribute
(argument_list
(subscript
(identifier_lines) identifier_lines
(slice
(colon) colon
(integer_1) integer_1
)slice
)subscript
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_islice) identifier_islice
)attribute
(argument_list
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_dropwhile) identifier_dropwhile
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(not_operator
(call
(attribute
(identifier_x) identifier_x
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'+++') string_'+++'
)argument_list
)call
)not_operator
)lambda
(subscript
(identifier_lines) identifier_lines
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)argument_list
)call
(integer_1) integer_1
(None) None
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return last changes in truncated unified diff format |
(module
(function_definition
(function_name_defaults) function_name_defaults
(parameters
)parameters
(block
(return_statement
(call
(identifier_dict) identifier_dict
(generator_expression
(tuple
(call
(identifier_str) identifier_str
(argument_list
(identifier_k) identifier_k
)argument_list
)call
(call
(identifier_str) identifier_str
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)tuple
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_cma_default_options) identifier_cma_default_options
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | return a dictionary with default option values and description |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_entity) identifier_entity
)parameters
(block
(expression_statement
(assignment
(identifier_characteristic) identifier_characteristic
(call
(attribute
(identifier_self) identifier_self
(identifier_extract_traits) identifier_extract_traits
)attribute
(argument_list
(identifier_entity) identifier_entity
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_characteristic) identifier_characteristic
(identifier_traits) identifier_traits
)attribute
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(attribute
(identifier_characteristic) identifier_characteristic
(identifier_is_matching) identifier_is_matching
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_match) identifier_add_match
)attribute
(argument_list
(identifier_entity) identifier_entity
(list_splat
(attribute
(identifier_characteristic) identifier_characteristic
(identifier_traits) identifier_traits
)attribute
)list_splat
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_mismatch) identifier_add_mismatch
)attribute
(argument_list
(identifier_entity) identifier_entity
(list_splat
(attribute
(identifier_characteristic) identifier_characteristic
(identifier_traits) identifier_traits
)attribute
)list_splat
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Add entity to index.
:param object entity: single object to add to box's index |
(module
(function_definition
(function_name_zip_dict) function_name_zip_dict
(parameters
(typed_parameter
(identifier_a) identifier_a
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_A) identifier_A
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_b) identifier_b
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_B) identifier_B
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(line_continuation_\) line_continuation_\
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_A) identifier_A
)type
)type_parameter
)generic_type
)type
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_B) identifier_B
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
(block
(return_statement
(dictionary_comprehension
(pair
(identifier_key) identifier_key
(tuple
(call
(attribute
(identifier_a) identifier_a
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
(call
(attribute
(identifier_b) identifier_b
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)tuple
)pair
(for_in_clause
(identifier_key) identifier_key
(binary_operator
(call
(attribute
(identifier_a) identifier_a
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_b) identifier_b
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)binary_operator
)for_in_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | Combine the values within two dictionaries by key.
:param a: The first dictionary.
:param b: The second dictionary.
:return: A dictionary containing all keys that appear in the union of a and
b. Values are pairs where the first part is a's value for the key,
and right second part b's value. |
(module
(function_definition
(function_name_get_commits) function_name_get_commits
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_since_sha) identifier_since_sha
(None) None
)default_parameter
)parameters
(block
(assert_statement
(attribute
(identifier_self) identifier_self
(identifier_tempdir) identifier_tempdir
)attribute
)assert_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(list
(string_'git') string_'git'
(string_'log') string_'log'
(string_'--first-parent') string_'--first-parent'
(string_'--reverse') string_'--reverse'
(identifier_COMMIT_FORMAT) identifier_COMMIT_FORMAT
)list
)assignment
)expression_statement
(if_statement
(identifier_since_sha) identifier_since_sha
(block
(expression_statement
(assignment
(identifier_commits) identifier_commits
(list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_commit) identifier_get_commit
)attribute
(argument_list
(identifier_since_sha) identifier_since_sha
)argument_list
)call
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cmd) identifier_cmd
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_'{}..HEAD') string_'{}..HEAD'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_since_sha) identifier_since_sha
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_commits) identifier_commits
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cmd) identifier_cmd
(identifier_append) identifier_append
)attribute
(argument_list
(string_'HEAD') string_'HEAD'
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(identifier_cmd_output) identifier_cmd_output
(argument_list
(list_splat
(identifier_cmd) identifier_cmd
)list_splat
(keyword_argument
(identifier_cwd) identifier_cwd
(attribute
(identifier_self) identifier_self
(identifier_tempdir) identifier_tempdir
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_sha) identifier_sha
(identifier_date) identifier_date
)pattern_list
(call
(identifier_chunk_iter) identifier_chunk_iter
(argument_list
(call
(attribute
(identifier_output) identifier_output
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
(integer_2) integer_2
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_commits) identifier_commits
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_Commit) identifier_Commit
(argument_list
(identifier_sha) identifier_sha
(call
(identifier_int) identifier_int
(argument_list
(identifier_date) identifier_date
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_commits) identifier_commits
)return_statement
)block
)function_definition
)module | Returns a list of Commit objects.
Args:
since_sha - (optional) A sha to search from |
(module
(function_definition
(function_name_set_ard_time) function_name_set_ard_time
(parameters
(identifier_self) identifier_self
(identifier_us) identifier_us
)parameters
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_us) identifier_us
(integer_250) integer_250
)binary_operator
)parenthesized_expression
(integer_1) integer_1
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(comparison_operator
(identifier_t) identifier_t
(integer_0) integer_0
)comparison_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(integer_0) integer_0
)assignment
)expression_statement
)block
)if_statement
(if_statement
(parenthesized_expression
(comparison_operator
(identifier_t) identifier_t
(integer_0xF) integer_0xF
)comparison_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(integer_0xF) integer_0xF
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier__send_vendor_setup) identifier__send_vendor_setup
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_handle) identifier_handle
)attribute
(identifier_SET_RADIO_ARD) identifier_SET_RADIO_ARD
(identifier_t) identifier_t
(integer_0) integer_0
(tuple
)tuple
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set the ACK retry delay for radio communication |
(module
(function_definition
(function_name__default) function_name__default
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(return_statement
(conditional_expression
(attribute
(identifier_obj) identifier_obj
(identifier___dict__) identifier___dict__
)attribute
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_obj) identifier_obj
(identifier_JsonObj) identifier_JsonObj
)argument_list
)call
(call
(attribute
(call
(attribute
(identifier_json) identifier_json
(identifier_JSONDecoder) identifier_JSONDecoder
)attribute
(argument_list
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)conditional_expression
)return_statement
)block
)function_definition
)module | return a serialized version of obj or raise a TypeError
:param obj:
:return: Serialized version of obj |
(module
(function_definition
(function_name_request_login) function_name_request_login
(parameters
(identifier_blink) identifier_blink
(identifier_url) identifier_url
(identifier_username) identifier_username
(identifier_password) identifier_password
(default_parameter
(identifier_is_retry) identifier_is_retry
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_headers) identifier_headers
(dictionary
(pair
(string_'Host') string_'Host'
(identifier_DEFAULT_URL) identifier_DEFAULT_URL
)pair
(pair
(string_'Content-Type') string_'Content-Type'
(string_'application/json') string_'application/json'
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier_dumps) identifier_dumps
(argument_list
(dictionary
(pair
(string_'email') string_'email'
(identifier_username) identifier_username
)pair
(pair
(string_'password') string_'password'
(identifier_password) identifier_password
)pair
(pair
(string_'client_specifier') string_'client_specifier'
(string_'iPhone 9.2 | 2.2 | 222') string_'iPhone 9.2 | 2.2 | 222'
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_http_req) identifier_http_req
(argument_list
(identifier_blink) identifier_blink
(keyword_argument
(identifier_url) identifier_url
(identifier_url) identifier_url
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
(keyword_argument
(identifier_json_resp) identifier_json_resp
(False) False
)keyword_argument
(keyword_argument
(identifier_reqtype) identifier_reqtype
(string_'post') string_'post'
)keyword_argument
(keyword_argument
(identifier_is_retry) identifier_is_retry
(identifier_is_retry) identifier_is_retry
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Login request.
:param blink: Blink instance.
:param url: Login url.
:param username: Blink username.
:param password: Blink password.
:param is_retry: Is this part of a re-authorization attempt? |
(module
(function_definition
(function_name_get_as_float_with_default) function_name_get_as_float_with_default
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
(identifier_default_value) identifier_default_value
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(subscript
(identifier_self) identifier_self
(identifier_index) identifier_index
)subscript
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_FloatConverter) identifier_FloatConverter
(identifier_to_float_with_default) identifier_to_float_with_default
)attribute
(argument_list
(identifier_value) identifier_value
(identifier_default_value) identifier_default_value
)argument_list
)call
)return_statement
)block
)function_definition
)module | Converts array element into a float or returns default value if conversion is not possible.
:param index: an index of element to get.
:param default_value: the default value
:return: float value ot the element or default value if conversion is not supported. |
(module
(function_definition
(function_name__auto_commit) function_name__auto_commit
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_auto_commit) identifier_auto_commit
)attribute
)not_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_auto_commit_every_n) identifier_auto_commit_every_n
)attribute
(None) None
)comparison_operator
)boolean_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_count_since_commit) identifier_count_since_commit
)attribute
(attribute
(identifier_self) identifier_self
(identifier_auto_commit_every_n) identifier_auto_commit_every_n
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Check if we have to commit based on number of messages and commit |
(module
(function_definition
(function_name_updateData) function_name_updateData
(parameters
(identifier_self) identifier_self
(identifier_exten) identifier_exten
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier__extnum) identifier__extnum
(call
(attribute
(identifier_self) identifier_self
(identifier__interpretExten) identifier__interpretExten
)attribute
(argument_list
(identifier_exten) identifier_exten
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fimg) identifier_fimg
(call
(attribute
(identifier_fileutil) identifier_fileutil
(identifier_openImage) identifier_openImage
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__filename) identifier__filename
)attribute
(keyword_argument
(identifier_mode) identifier_mode
(string_'update') string_'update'
)keyword_argument
(keyword_argument
(identifier_memmap) identifier_memmap
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(subscript
(identifier_fimg) identifier_fimg
(identifier__extnum) identifier__extnum
)subscript
(identifier_data) identifier_data
)attribute
(identifier_data) identifier_data
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(subscript
(identifier_fimg) identifier_fimg
(identifier__extnum) identifier__extnum
)subscript
(identifier_header) identifier_header
)attribute
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__image) identifier__image
)attribute
(identifier__extnum) identifier__extnum
)subscript
(identifier_header) identifier_header
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_fimg) identifier_fimg
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Write out updated data and header to
the original input file for this object. |
(module
(function_definition
(function_name_languages_column) function_name_languages_column
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(expression_statement
(assignment
(identifier_languages) identifier_languages
(call
(attribute
(identifier_self) identifier_self
(identifier_get_available_languages) identifier_get_available_languages
)attribute
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_'<span class="available-languages">{0}</span>') string_'<span class="available-languages">{0}</span>'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(string_" ") string_" "
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_languages) identifier_languages
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Adds languages columns. |
(module
(function_definition
(function_name_ip) function_name_ip
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__ip) identifier__ip
)attribute
)not_operator
(block
(if_statement
(comparison_operator
(string_'ip') string_'ip'
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ip) identifier_ip
(subscript
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(string_'ip') string_'ip'
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_ip) identifier_ip
(subscript
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_protocol) identifier_protocol
)attribute
(identifier_transport) identifier_transport
)attribute
(identifier_get_extra_info) identifier_get_extra_info
)attribute
(argument_list
(string_'sockname') string_'sockname'
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_ip) identifier_ip
(call
(identifier_ip_address) identifier_ip_address
(argument_list
(identifier_ip) identifier_ip
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_ip) identifier_ip
(identifier_version) identifier_version
)attribute
(integer_4) integer_4
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__ip) identifier__ip
)attribute
(identifier_ip) identifier_ip
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_urlopen) identifier_urlopen
(argument_list
(string_'http://ipv4.icanhazip.com/') string_'http://ipv4.icanhazip.com/'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ip) identifier_ip
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_response) identifier_response
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ip) identifier_ip
(call
(identifier_ip_address) identifier_ip_address
(argument_list
(identifier_ip) identifier_ip
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__ip) identifier__ip
)attribute
(identifier_ip) identifier_ip
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__ip) identifier__ip
)attribute
)return_statement
)block
)function_definition
)module | return bot's ip as an ``ip_address`` object |
(module
(function_definition
(function_name_dicomdir_info) function_name_dicomdir_info
(parameters
(identifier_dirpath) identifier_dirpath
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_dr) identifier_dr
(call
(identifier_DicomReader) identifier_DicomReader
(argument_list
(keyword_argument
(identifier_dirpath) identifier_dirpath
(identifier_dirpath) identifier_dirpath
)keyword_argument
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_info) identifier_info
(call
(attribute
(attribute
(identifier_dr) identifier_dr
(identifier_dicomdirectory) identifier_dicomdirectory
)attribute
(identifier_get_stats_of_series_in_dir) identifier_get_stats_of_series_in_dir
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_info) identifier_info
)return_statement
)block
)function_definition
)module | Get information about series in dir |
(module
(function_definition
(function_name_checkout) function_name_checkout
(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
(identifier_self) identifier_self
(identifier__call_helper) identifier__call_helper
)attribute
(argument_list
(string_"Checking out") string_"Checking out"
(attribute
(attribute
(identifier_self) identifier_self
(identifier_real) identifier_real
)attribute
(identifier_checkout) identifier_checkout
)attribute
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | This function checks out source code. |
(module
(function_definition
(function_name_get_session_key) function_name_get_session_key
(parameters
(identifier_self) identifier_self
(identifier_username) identifier_username
(identifier_password_hash) identifier_password_hash
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_"username") string_"username"
(identifier_username) identifier_username
)pair
(pair
(string_"authToken") string_"authToken"
(call
(identifier_md5) identifier_md5
(argument_list
(binary_operator
(identifier_username) identifier_username
(identifier_password_hash) identifier_password_hash
)binary_operator
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(identifier__Request) identifier__Request
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_network) identifier_network
)attribute
(string_"auth.getMobileSession") string_"auth.getMobileSession"
(identifier_params) identifier_params
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_request) identifier_request
(identifier_sign_it) identifier_sign_it
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_doc) identifier_doc
(call
(attribute
(identifier_request) identifier_request
(identifier_execute) identifier_execute
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier__extract) identifier__extract
(argument_list
(identifier_doc) identifier_doc
(string_"key") string_"key"
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieve a session key with a username and a md5 hash of the user's
password. |
(module
(function_definition
(function_name_set_level) function_name_set_level
(parameters
(identifier_level) identifier_level
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_Logger) identifier_Logger
(identifier_level) identifier_level
)attribute
(identifier_level) identifier_level
)assignment
)expression_statement
(for_statement
(identifier_logger) identifier_logger
(call
(attribute
(attribute
(identifier_Logger) identifier_Logger
(identifier_loggers) identifier_loggers
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_setLevel) identifier_setLevel
)attribute
(argument_list
(identifier_level) identifier_level
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Set level of logging for all loggers.
Args:
level (int): level of logging. |
(module
(function_definition
(function_name_pack_value) function_name_pack_value
(parameters
(identifier_self) identifier_self
(identifier_val) identifier_val
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_val) identifier_val
(identifier_bytes) identifier_bytes
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_val) identifier_val
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_iterbytes) identifier_iterbytes
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_slen) identifier_slen
(call
(identifier_len) identifier_len
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_pad) identifier_pad
)attribute
(block
(expression_statement
(assignment
(identifier_pad) identifier_pad
(binary_operator
(string_b'\0\0') string_b'\0\0'
(parenthesized_expression
(binary_operator
(identifier_slen) identifier_slen
(integer_2) integer_2
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_pad) identifier_pad
(string_b'') string_b''
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(expression_list
(binary_operator
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(binary_operator
(string_'>') string_'>'
(binary_operator
(string_'H') string_'H'
(identifier_slen) identifier_slen
)binary_operator
)binary_operator
(list_splat
(identifier_val) identifier_val
)list_splat
)argument_list
)call
(identifier_pad) identifier_pad
)binary_operator
(identifier_slen) identifier_slen
(None) None
)expression_list
)return_statement
)block
)function_definition
)module | Convert 8-byte string into 16-byte list |
(module
(function_definition
(function_name__delete_partition) function_name__delete_partition
(parameters
(identifier_self) identifier_self
(identifier_tenant_id) identifier_tenant_id
(identifier_tenant_name) identifier_tenant_name
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dcnm_obj) identifier_dcnm_obj
)attribute
(identifier_delete_partition) identifier_delete_partition
)attribute
(argument_list
(identifier_tenant_name) identifier_tenant_name
(attribute
(identifier_fw_const) identifier_fw_const
(identifier_SERV_PART_NAME) identifier_SERV_PART_NAME
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Function to delete a service partition. |
(module
(function_definition
(function_name__token_extensions) function_name__token_extensions
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_token_provider) identifier_token_provider
(subscript
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(string_'sasl_oauth_token_provider') string_'sasl_oauth_token_provider'
)subscript
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(identifier_callable) identifier_callable
(argument_list
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_token_provider) identifier_token_provider
(string_"extensions") string_"extensions"
(None) None
)argument_list
)call
)argument_list
)call
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(call
(attribute
(identifier_token_provider) identifier_token_provider
(identifier_extensions) identifier_extensions
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(string_"\x01") string_"\x01"
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(attribute
(string_"{}={}") string_"{}={}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(call
(attribute
(identifier_token_provider) identifier_token_provider
(identifier_extensions) identifier_extensions
)attribute
(argument_list
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(string_"\x01") string_"\x01"
(identifier_msg) identifier_msg
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(string_"") string_""
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return a string representation of the OPTIONAL key-value pairs that can be sent with an OAUTHBEARER
initial request. |
(module
(function_definition
(function_name__build_indexes) function_name__build_indexes
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(identifier_list) identifier_list
)argument_list
)call
(block
(for_statement
(identifier_d) identifier_d
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_d) identifier_d
(identifier_dict) identifier_dict
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_err) identifier_err
(string_u'Cannot build index for non Dict type.') string_u'Cannot build index for non Dict type.'
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__tcex) identifier__tcex
)attribute
(identifier_log) identifier_log
)attribute
(identifier_error) identifier_error
)attribute
(argument_list
(identifier_err) identifier_err
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(identifier_err) identifier_err
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_data_obj) identifier_data_obj
(call
(identifier_DataObj) identifier_DataObj
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__master_index) identifier__master_index
)attribute
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(call
(identifier_id) identifier_id
(argument_list
(identifier_data_obj) identifier_data_obj
)argument_list
)call
(identifier_data_obj) identifier_data_obj
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_d) identifier_d
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(tuple
(identifier_float) identifier_float
(identifier_int) identifier_int
(identifier_str) identifier_str
)tuple
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__tcex) identifier__tcex
)attribute
(identifier_log) identifier_log
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_u'Can only build index String Types.') string_u'Can only build index String Types.'
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__indexes) identifier__indexes
)attribute
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(identifier_key) identifier_key
(dictionary
)dictionary
)argument_list
)call
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(identifier_value) identifier_value
(list
)list
)argument_list
)call
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_data_obj) identifier_data_obj
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_err) identifier_err
(string_u'Only *List* data type is currently supported') string_u'Only *List* data type is currently supported'
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__tcex) identifier__tcex
)attribute
(identifier_log) identifier_log
)attribute
(identifier_error) identifier_error
)attribute
(argument_list
(identifier_err) identifier_err
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(identifier_err) identifier_err
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Build indexes from data for fast filtering of data.
Building indexes of data when possible. This is only supported when dealing with a
List of Dictionaries with String values. |
(module
(function_definition
(function_name_show_grid) function_name_show_grid
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(string_'grid') string_'grid'
(string_'back') string_'back'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(string_'location') string_'location'
(string_'outer') string_'outer'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(string_'ticks') string_'ticks'
(string_'both') string_'both'
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_show_bounds) identifier_show_bounds
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | A wrapped implementation of ``show_bounds`` to change default
behaviour to use gridlines and showing the axes labels on the outer
edges. This is intended to be silimar to ``matplotlib``'s ``grid``
function. |
(module
(function_definition
(function_name_get_model) function_name_get_model
(parameters
(default_parameter
(identifier_with_pipeline) identifier_with_pipeline
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_model) identifier_model
(call
(identifier_NeuralNetClassifier) identifier_NeuralNetClassifier
(argument_list
(identifier_MLPClassifier) identifier_MLPClassifier
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_with_pipeline) identifier_with_pipeline
(block
(expression_statement
(assignment
(identifier_model) identifier_model
(call
(identifier_Pipeline) identifier_Pipeline
(argument_list
(list
(tuple
(string_'scale') string_'scale'
(call
(identifier_FeatureUnion) identifier_FeatureUnion
(argument_list
(list
(tuple
(string_'minmax') string_'minmax'
(call
(identifier_MinMaxScaler) identifier_MinMaxScaler
(argument_list
)argument_list
)call
)tuple
(tuple
(string_'normalize') string_'normalize'
(call
(identifier_Normalizer) identifier_Normalizer
(argument_list
)argument_list
)call
)tuple
)list
)argument_list
)call
)tuple
(tuple
(string_'select') string_'select'
(call
(identifier_SelectKBest) identifier_SelectKBest
(argument_list
(keyword_argument
(identifier_k) identifier_k
(identifier_N_FEATURES) identifier_N_FEATURES
)keyword_argument
)argument_list
)call
)tuple
(tuple
(string_'net') string_'net'
(identifier_model) identifier_model
)tuple
)list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_model) identifier_model
)return_statement
)block
)function_definition
)module | Get a multi-layer perceptron model.
Optionally, put it in a pipeline that scales the data. |
(module
(function_definition
(function_name_print) function_name_print
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(concatenated_string
(string_'{dim}Identifier:{none} {cyan}{identifier}{none}\n') string_'{dim}Identifier:{none} {cyan}{identifier}{none}\n'
(string_'{dim}Name:{none} {name}\n') string_'{dim}Name:{none} {name}\n'
(string_'{dim}Description:{none}\n{description}') string_'{dim}Description:{none}\n{description}'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_dim) identifier_dim
(attribute
(identifier_Style) identifier_Style
(identifier_DIM) identifier_DIM
)attribute
)keyword_argument
(keyword_argument
(identifier_cyan) identifier_cyan
(attribute
(identifier_Fore) identifier_Fore
(identifier_CYAN) identifier_CYAN
)attribute
)keyword_argument
(keyword_argument
(identifier_none) identifier_none
(attribute
(identifier_Style) identifier_Style
(identifier_RESET_ALL) identifier_RESET_ALL
)attribute
)keyword_argument
(keyword_argument
(identifier_identifier) identifier_identifier
(attribute
(identifier_self) identifier_self
(identifier_identifier) identifier_identifier
)attribute
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)keyword_argument
(keyword_argument
(identifier_description) identifier_description
(call
(identifier_pretty_description) identifier_pretty_description
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_description) identifier_description
)attribute
(keyword_argument
(identifier_indent) identifier_indent
(integer_2) integer_2
)keyword_argument
)argument_list
)call
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'argument_list') string_'argument_list'
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_argument_list) identifier_argument_list
)attribute
)boolean_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'{dim}Arguments:{none}') string_'{dim}Arguments:{none}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_dim) identifier_dim
(attribute
(identifier_Style) identifier_Style
(identifier_DIM) identifier_DIM
)attribute
)keyword_argument
(keyword_argument
(identifier_none) identifier_none
(attribute
(identifier_Style) identifier_Style
(identifier_RESET_ALL) identifier_RESET_ALL
)attribute
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(for_statement
(identifier_argument) identifier_argument
(attribute
(identifier_self) identifier_self
(identifier_argument_list) identifier_argument_list
)attribute
(block
(expression_statement
(call
(attribute
(identifier_argument) identifier_argument
(identifier_print) identifier_print
)attribute
(argument_list
(keyword_argument
(identifier_indent) identifier_indent
(integer_2) integer_2
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)function_definition
)module | Print self. |
(module
(function_definition
(function_name_desaturate) function_name_desaturate
(parameters
(identifier_self) identifier_self
(identifier_level) identifier_level
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_h) identifier_h
(identifier_s) identifier_s
(identifier_l) identifier_l
)pattern_list
(attribute
(identifier_self) identifier_self
(identifier___hsl) identifier___hsl
)attribute
)assignment
)expression_statement
(return_statement
(call
(identifier_Color) identifier_Color
(argument_list
(tuple
(identifier_h) identifier_h
(call
(identifier_max) identifier_max
(argument_list
(binary_operator
(identifier_s) identifier_s
(identifier_level) identifier_level
)binary_operator
(integer_0) integer_0
)argument_list
)call
(identifier_l) identifier_l
)tuple
(string_'hsl') string_'hsl'
(attribute
(identifier_self) identifier_self
(identifier___a) identifier___a
)attribute
(attribute
(identifier_self) identifier_self
(identifier___wref) identifier___wref
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a new instance based on this one but less saturated.
Parameters:
:level:
The amount by which the color should be desaturated to produce
the new one [0...1].
Returns:
A grapefruit.Color instance.
>>> Color.from_hsl(30, 0.5, 0.5).desaturate(0.25)
Color(0.625, 0.5, 0.375, 1.0)
>>> Color.from_hsl(30, 0.5, 0.5).desaturate(0.25).hsl
(30.0, 0.25, 0.5) |
(module
(function_definition
(function_name_from_json) function_name_from_json
(parameters
(identifier_cls) identifier_cls
(identifier_json_data) identifier_json_data
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_json_data) identifier_json_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_cls) identifier_cls
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_result) identifier_result
(string_"_from_json") string_"_from_json"
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier__from_json) identifier__from_json
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Tries to convert a JSON representation to an object of the same
type as self
A class can provide a _fromJSON implementation in order to do specific
type checking or other custom implementation details. This method
will throw a ValueError for invalid JSON, a TypeError for
improperly constructed, but valid JSON, and any custom errors
that can be be propagated from class constructors.
:param json_data: The JSON string to convert
:type json_data: str | unicode
:raises: TypeError, ValueError, LanguageMapInitError |
(module
(function_definition
(function_name__udp_transact) function_name__udp_transact
(parameters
(identifier_self) identifier_self
(identifier_payload) identifier_payload
(identifier_handler) identifier_handler
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(default_parameter
(identifier_broadcast) identifier_broadcast
(False) False
)default_parameter
(default_parameter
(identifier_timeout) identifier_timeout
(identifier_TIMEOUT) identifier_TIMEOUT
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
(identifier__BUFFER) identifier__BUFFER
)comparison_operator
(block
(delete_statement
(subscript
(identifier__BUFFER) identifier__BUFFER
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
)subscript
)delete_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_host) identifier_host
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
)assignment
)expression_statement
(if_statement
(identifier_broadcast) identifier_broadcast
(block
(expression_statement
(assignment
(identifier_host) identifier_host
(string_'255.255.255.255') string_'255.255.255.255'
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_retval) identifier_retval
(None) None
)assignment
)expression_statement
(for_statement
(identifier__) identifier__
(call
(identifier_range) identifier_range
(argument_list
(identifier_RETRIES) identifier_RETRIES
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier__SOCKET) identifier__SOCKET
(identifier_sendto) identifier_sendto
)attribute
(argument_list
(call
(identifier_bytearray) identifier_bytearray
(argument_list
(identifier_payload) identifier_payload
)argument_list
)call
(tuple
(identifier_host) identifier_host
(identifier_PORT) identifier_PORT
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_start) identifier_start
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(while_statement
(comparison_operator
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
(binary_operator
(identifier_start) identifier_start
(identifier_timeout) identifier_timeout
)binary_operator
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier__BUFFER) identifier__BUFFER
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_data) identifier_data
(block
(expression_statement
(assignment
(identifier_retval) identifier_retval
(call
(identifier_handler) identifier_handler
(argument_list
(identifier_data) identifier_data
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_retval) identifier_retval
(block
(return_statement
(identifier_retval) identifier_retval
)return_statement
)block
)if_statement
)block
)while_statement
)block
)for_statement
)block
)function_definition
)module | Complete a UDP transaction.
UDP is stateless and not guaranteed, so we have to
take some mitigation steps:
- Send payload multiple times.
- Wait for awhile to receive response.
:param payload: Payload to send.
:param handler: Response handler.
:param args: Arguments to pass to response handler.
:param broadcast: Send a broadcast instead.
:param timeout: Timeout in seconds. |
(module
(function_definition
(function_name_match_sr) function_name_match_sr
(parameters
(identifier_self) identifier_self
(identifier_svc_ref) identifier_svc_ref
(default_parameter
(identifier_cid) identifier_cid
(None) None
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier___lock) identifier___lock
)attribute
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_our_sr) identifier_our_sr
(call
(attribute
(identifier_self) identifier_self
(identifier_get_reference) identifier_get_reference
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_our_sr) identifier_our_sr
(None) None
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sr_compare) identifier_sr_compare
(comparison_operator
(identifier_our_sr) identifier_our_sr
(identifier_svc_ref) identifier_svc_ref
)comparison_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_cid) identifier_cid
(None) None
)comparison_operator
(block
(return_statement
(identifier_sr_compare) identifier_sr_compare
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_our_cid) identifier_our_cid
(call
(attribute
(identifier_self) identifier_self
(identifier_get_export_container_id) identifier_get_export_container_id
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_our_cid) identifier_our_cid
(None) None
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(boolean_operator
(identifier_sr_compare) identifier_sr_compare
(comparison_operator
(identifier_our_cid) identifier_our_cid
(identifier_cid) identifier_cid
)comparison_operator
)boolean_operator
)return_statement
)block
)with_statement
)block
)function_definition
)module | Checks if this export registration matches the given service reference
:param svc_ref: A service reference
:param cid: A container ID
:return: True if the service matches this export registration |
(module
(function_definition
(function_name__delete_masked_points) function_name__delete_masked_points
(parameters
(list_splat_pattern
(identifier_arrs) identifier_arrs
)list_splat_pattern
)parameters
(block
(if_statement
(call
(identifier_any) identifier_any
(generator_expression
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_a) identifier_a
(string_'mask') string_'mask'
)argument_list
)call
(for_in_clause
(identifier_a) identifier_a
(identifier_arrs) identifier_arrs
)for_in_clause
)generator_expression
)call
(block
(expression_statement
(assignment
(identifier_keep) identifier_keep
(unary_operator
(call
(attribute
(identifier_functools) identifier_functools
(identifier_reduce) identifier_reduce
)attribute
(argument_list
(attribute
(identifier_np) identifier_np
(identifier_logical_or) identifier_logical_or
)attribute
(generator_expression
(call
(attribute
(attribute
(identifier_np) identifier_np
(identifier_ma) identifier_ma
)attribute
(identifier_getmaskarray) identifier_getmaskarray
)attribute
(argument_list
(identifier_a) identifier_a
)argument_list
)call
(for_in_clause
(identifier_a) identifier_a
(identifier_arrs) identifier_arrs
)for_in_clause
)generator_expression
)argument_list
)call
)unary_operator
)assignment
)expression_statement
(return_statement
(call
(identifier_tuple) identifier_tuple
(generator_expression
(call
(attribute
(identifier_ma) identifier_ma
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(subscript
(identifier_a) identifier_a
(identifier_keep) identifier_keep
)subscript
)argument_list
)call
(for_in_clause
(identifier_a) identifier_a
(identifier_arrs) identifier_arrs
)for_in_clause
)generator_expression
)call
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_arrs) identifier_arrs
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Delete masked points from arrays.
Takes arrays and removes masked points to help with calculations and plotting.
Parameters
----------
arrs : one or more array-like
source arrays
Returns
-------
arrs : one or more array-like
arrays with masked elements removed |
(module
(function_definition
(function_name_filter_ignoring_case) function_name_filter_ignoring_case
(parameters
(identifier_self) identifier_self
(identifier_pattern) identifier_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_filter) identifier_filter
)attribute
(argument_list
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(identifier_pattern) identifier_pattern
(attribute
(identifier_re) identifier_re
(identifier_I) identifier_I
)attribute
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Like ``filter`` but case-insensitive.
Expects a regular expression string without the surrounding ``/``
characters.
>>> see().filter('^my', ignore_case=True)
MyClass() |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_maximum_version) identifier_maximum_version
(None) None
)default_parameter
(default_parameter
(identifier_required_version) identifier_required_version
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_flags) identifier_flags
(list
(tuple
(string_'Name') string_'Name'
(identifier_name) identifier_name
)tuple
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_maximum_version) identifier_maximum_version
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_flags) identifier_flags
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(string_'MaximumVersion') string_'MaximumVersion'
(identifier_maximum_version) identifier_maximum_version
)tuple
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_required_version) identifier_required_version
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_flags) identifier_flags
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(string_'RequiredVersion') string_'RequiredVersion'
(identifier_required_version) identifier_required_version
)tuple
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(string_'') string_''
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_flag) identifier_flag
(identifier_value) identifier_value
)pattern_list
(identifier_flags) identifier_flags
(block
(expression_statement
(augmented_assignment
(identifier_params) identifier_params
(call
(attribute
(string_'-{0} {1} ') string_'-{0} {1} '
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_flag) identifier_flag
(identifier_value) identifier_value
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(call
(attribute
(string_'Update-Module {0} -Force') string_'Update-Module {0} -Force'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier__pshell) identifier__pshell
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
)expression_statement
(return_statement
(comparison_operator
(identifier_name) identifier_name
(call
(identifier_list_modules) identifier_list_modules
(argument_list
)argument_list
)call
)comparison_operator
)return_statement
)block
)function_definition
)module | Update a PowerShell module to a specific version, or the newest
:param name: Name of a Powershell module
:type name: ``str``
:param maximum_version: The maximum version to install, e.g. 1.23.2
:type maximum_version: ``str``
:param required_version: Install a specific version
:type required_version: ``str``
CLI Example:
.. code-block:: bash
salt 'win01' psget.update PowerPlan |
(module
(function_definition
(function_name_add_to_obj) function_name_add_to_obj
(parameters
(identifier_obj) identifier_obj
(identifier_dictionary) identifier_dictionary
(default_parameter
(identifier_objs) identifier_objs
(None) None
)default_parameter
(default_parameter
(identifier_exceptions) identifier_exceptions
(None) None
)default_parameter
(default_parameter
(identifier_verbose) identifier_verbose
(integer_0) integer_0
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_exceptions) identifier_exceptions
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_exceptions) identifier_exceptions
(list
)list
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_item) identifier_item
(identifier_dictionary) identifier_dictionary
(block
(if_statement
(comparison_operator
(identifier_item) identifier_item
(identifier_exceptions) identifier_exceptions
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(comparison_operator
(subscript
(identifier_dictionary) identifier_dictionary
(identifier_item) identifier_item
)subscript
(None) None
)comparison_operator
(block
(if_statement
(identifier_verbose) identifier_verbose
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"process: ") string_"process: "
(identifier_item) identifier_item
(subscript
(identifier_dictionary) identifier_dictionary
(identifier_item) identifier_item
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(identifier_get_key_value) identifier_get_key_value
(argument_list
(subscript
(identifier_dictionary) identifier_dictionary
(identifier_item) identifier_item
)subscript
(identifier_objs) identifier_objs
(keyword_argument
(identifier_key) identifier_key
(identifier_item) identifier_item
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_verbose) identifier_verbose
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"assign: ") string_"assign: "
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_obj) identifier_obj
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(raise_statement
(call
(identifier_AttributeError) identifier_AttributeError
(argument_list
(call
(attribute
(string_"Can't set {0}={1} on object: {2}") string_"Can't set {0}={1} on object: {2}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_value) identifier_value
(identifier_obj) identifier_obj
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Cycles through a dictionary and adds the key-value pairs to an object.
:param obj:
:param dictionary:
:param exceptions:
:param verbose:
:return: |
(module
(function_definition
(function_name_imagetransformerpp_base_14l_8h_big_uncond_dr03_dan_p) function_name_imagetransformerpp_base_14l_8h_big_uncond_dr03_dan_p
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_hparams) identifier_hparams
(call
(identifier_imagetransformerpp_base_12l_8h_big_uncond_dr03_dan_l) identifier_imagetransformerpp_base_12l_8h_big_uncond_dr03_dan_l
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_num_decoder_layers) identifier_num_decoder_layers
)attribute
(integer_14) integer_14
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_batch_size) identifier_batch_size
)attribute
(integer_8) integer_8
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_layer_prepostprocess_dropout) identifier_layer_prepostprocess_dropout
)attribute
(float_0.2) float_0.2
)assignment
)expression_statement
(return_statement
(identifier_hparams) identifier_hparams
)return_statement
)block
)function_definition
)module | Gets to 2.92 in just under 4 days on 8 p100s. |
(module
(function_definition
(function_name_make_field) function_name_make_field
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'required') string_'required'
)subscript
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'allow_null') string_'allow_null'
)subscript
(True) True
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_field_class) identifier_field_class
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | create serializer field |
(module
(function_definition
(function_name_version) function_name_version
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(string_'lvm version') string_'lvm version'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(attribute
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'cmd.run') string_'cmd.run'
)subscript
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(subscript
(identifier_out) identifier_out
(integer_0) integer_0
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
(string_': ') string_': '
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(subscript
(identifier_ret) identifier_ret
(integer_1) integer_1
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return LVM version from lvm version
CLI Example:
.. code-block:: bash
salt '*' lvm.version |
(module
(function_definition
(function_name_get_formatted_string) function_name_get_formatted_string
(parameters
(identifier_self) identifier_self
(identifier_input_string) identifier_input_string
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_input_string) identifier_input_string
(identifier_str) identifier_str
)argument_list
)call
(block
(try_statement
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_processed_string) identifier_get_processed_string
)attribute
(argument_list
(identifier_input_string) identifier_input_string
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(identifier_KeyNotInContextError) identifier_KeyNotInContextError
(as_pattern_target
(identifier_err) identifier_err
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_KeyNotInContextError) identifier_KeyNotInContextError
(argument_list
(string_f'Unable to format \'{input_string}\' because {err}') string_f'Unable to format \'{input_string}\' because {err}'
)argument_list
)call
(identifier_err) identifier_err
)raise_statement
)block
)except_clause
)try_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_input_string) identifier_input_string
(identifier_SpecialTagDirective) identifier_SpecialTagDirective
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_input_string) identifier_input_string
(identifier_get_value) identifier_get_value
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(concatenated_string
(string_f"can only format on strings. {input_string} is a ") string_f"can only format on strings. {input_string} is a "
(string_f"{type(input_string)} instead.") string_f"{type(input_string)} instead."
)concatenated_string
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return formatted value for input_string.
get_formatted gets a context[key] value.
get_formatted_string is for any arbitrary string that is not in the
context.
Only valid if input_string is a type string.
Return a string interpolated from the context dictionary.
If input_string='Piping {key1} the {key2} wild'
And context={'key1': 'down', 'key2': 'valleys', 'key3': 'value3'}
Then this will return string: "Piping down the valleys wild"
Args:
input_string: string to parse for substitutions.
Returns:
Formatted string.
Raises:
KeyNotInContextError: context[key] has {somekey} where somekey does
not exist in context dictionary.
TypeError: Attempt operation on a non-string type. |
(module
(function_definition
(function_name_setupTable_vmtx) function_name_setupTable_vmtx
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(string_"vmtx") string_"vmtx"
(attribute
(identifier_self) identifier_self
(identifier_tables) identifier_tables
)attribute
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_otf) identifier_otf
)attribute
(string_"vmtx") string_"vmtx"
)subscript
(assignment
(identifier_vmtx) identifier_vmtx
(call
(identifier_newTable) identifier_newTable
(argument_list
(string_"vmtx") string_"vmtx"
)argument_list
)call
)assignment
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_vmtx) identifier_vmtx
(identifier_metrics) identifier_metrics
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_glyphName) identifier_glyphName
(identifier_glyph) identifier_glyph
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_allGlyphs) identifier_allGlyphs
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_height) identifier_height
(call
(identifier_otRound) identifier_otRound
(argument_list
(attribute
(identifier_glyph) identifier_glyph
(identifier_height) identifier_height
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_height) identifier_height
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"The height should not be negative: '%s'") string_"The height should not be negative: '%s'"
(parenthesized_expression
(identifier_glyphName) identifier_glyphName
)parenthesized_expression
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_verticalOrigin) identifier_verticalOrigin
(call
(identifier__getVerticalOrigin) identifier__getVerticalOrigin
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_otf) identifier_otf
)attribute
(identifier_glyph) identifier_glyph
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bounds) identifier_bounds
(subscript
(attribute
(identifier_self) identifier_self
(identifier_glyphBoundingBoxes) identifier_glyphBoundingBoxes
)attribute
(identifier_glyphName) identifier_glyphName
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_top) identifier_top
(conditional_expression
(attribute
(identifier_bounds) identifier_bounds
(identifier_yMax) identifier_yMax
)attribute
(identifier_bounds) identifier_bounds
(integer_0) integer_0
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_vmtx) identifier_vmtx
(identifier_glyphName) identifier_glyphName
)subscript
(tuple
(identifier_height) identifier_height
(binary_operator
(identifier_verticalOrigin) identifier_verticalOrigin
(identifier_top) identifier_top
)binary_operator
)tuple
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Make the vmtx table.
**This should not be called externally.** Subclasses
may override or supplement this method to handle the
table creation in a different way if desired. |
(module
(function_definition
(function_name_get_message) function_name_get_message
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(string_'') string_''
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__data_struct) identifier__data_struct
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(subscript
(attribute
(identifier_self) identifier_self
(identifier__data_struct) identifier__data_struct
)attribute
(identifier_KEY_MESSAGE) identifier_KEY_MESSAGE
)subscript
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Return the message embedded in the JSON error response body,
or an empty string if the JSON couldn't be parsed. |
(module
(function_definition
(function_name_list) function_name_list
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_databases) identifier_databases
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_dbname) identifier_dbname
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_databases) identifier_databases
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_dbname) identifier_dbname
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_reversed) identifier_reversed
(argument_list
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_databases) identifier_databases
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | List all the databases on the given path.
:return: |
(module
(function_definition
(function_name_WriteFromFD) function_name_WriteFromFD
(parameters
(identifier_self) identifier_self
(identifier_src_fd) identifier_src_fd
(default_parameter
(identifier_arcname) identifier_arcname
(None) None
)default_parameter
(default_parameter
(identifier_compress_type) identifier_compress_type
(None) None
)default_parameter
(default_parameter
(identifier_st) identifier_st
(None) None
)default_parameter
)parameters
(block
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_WriteFileHeader) identifier_WriteFileHeader
)attribute
(argument_list
(keyword_argument
(identifier_arcname) identifier_arcname
(identifier_arcname) identifier_arcname
)keyword_argument
(keyword_argument
(identifier_compress_type) identifier_compress_type
(identifier_compress_type) identifier_compress_type
)keyword_argument
(keyword_argument
(identifier_st) identifier_st
(identifier_st) identifier_st
)keyword_argument
)argument_list
)call
)yield
)expression_statement
(while_statement
(integer_1) integer_1
(block
(expression_statement
(assignment
(identifier_buf) identifier_buf
(call
(attribute
(identifier_src_fd) identifier_src_fd
(identifier_read) identifier_read
)attribute
(argument_list
(binary_operator
(integer_1024) integer_1024
(integer_1024) integer_1024
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_buf) identifier_buf
)not_operator
(block
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_WriteFileChunk) identifier_WriteFileChunk
)attribute
(argument_list
(identifier_buf) identifier_buf
)argument_list
)call
)yield
)expression_statement
)block
)while_statement
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_WriteFileFooter) identifier_WriteFileFooter
)attribute
(argument_list
)argument_list
)call
)yield
)expression_statement
)block
)function_definition
)module | Write a zip member from a file like object.
Args:
src_fd: A file like object, must support seek(), tell(), read().
arcname: The name in the archive this should take.
compress_type: Compression type (zipfile.ZIP_DEFLATED, or ZIP_STORED)
st: An optional stat object to be used for setting headers.
Raises:
ArchiveAlreadyClosedError: If the zip if already closed.
Yields:
Chunks of binary data. |
(module
(function_definition
(function_name_get_allowed_methods) function_name_get_allowed_methods
(parameters
(identifier_self) identifier_self
(identifier_callback) identifier_callback
)parameters
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_callback) identifier_callback
(string_'actions') string_'actions'
)argument_list
)call
(block
(return_statement
(list_comprehension
(call
(attribute
(identifier_method) identifier_method
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_method) identifier_method
(call
(attribute
(attribute
(identifier_callback) identifier_callback
(identifier_actions) identifier_actions
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_method) identifier_method
(string_'head') string_'head'
)comparison_operator
)if_clause
)list_comprehension
)return_statement
)block
)if_statement
(return_statement
(list_comprehension
(identifier_method) identifier_method
(for_in_clause
(identifier_method) identifier_method
(attribute
(call
(attribute
(identifier_callback) identifier_callback
(identifier_cls) identifier_cls
)attribute
(argument_list
)argument_list
)call
(identifier_allowed_methods) identifier_allowed_methods
)attribute
)for_in_clause
(if_clause
(comparison_operator
(identifier_method) identifier_method
(tuple
(string_'OPTIONS') string_'OPTIONS'
(string_'HEAD') string_'HEAD'
)tuple
)comparison_operator
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Return a list of the valid HTTP methods for this endpoint. |
(module
(function_definition
(function_name_pub) function_name_pub
(parameters
(identifier_self) identifier_self
(identifier_topic) identifier_topic
(identifier_message) identifier_message
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_send) identifier_send
)attribute
(argument_list
(call
(attribute
(string_' ') string_' '
(identifier_join) identifier_join
)attribute
(argument_list
(tuple
(attribute
(identifier_constants) identifier_constants
(identifier_PUB) identifier_PUB
)attribute
(identifier_topic) identifier_topic
)tuple
)argument_list
)call
(identifier_message) identifier_message
)argument_list
)call
)return_statement
)block
)function_definition
)module | Publish to a topic |
(module
(function_definition
(function_name_times) function_name_times
(parameters
(identifier_x) identifier_x
(identifier_y) identifier_y
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_fn) identifier_fn
)parameters
(block
(function_definition
(function_name_wrapped) function_name_wrapped
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(attribute
(identifier_random) identifier_random
(identifier_randint) identifier_randint
)attribute
(argument_list
(identifier_x) identifier_x
(identifier_y) identifier_y
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_z) identifier_z
(call
(identifier_range) identifier_range
(argument_list
(integer_1) integer_1
(identifier_n) identifier_n
)argument_list
)call
(block
(expression_statement
(call
(identifier_fn) identifier_fn
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
(return_statement
(identifier_wrapped) identifier_wrapped
)return_statement
)block
)function_definition
(return_statement
(identifier_decorator) identifier_decorator
)return_statement
)block
)function_definition
)module | Do something a random amount of times
between x & y |
(module
(function_definition
(function_name_recursive_apply) function_name_recursive_apply
(parameters
(identifier_inval) identifier_inval
(identifier_func) identifier_func
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_inval) identifier_inval
(identifier_dict) identifier_dict
)argument_list
)call
(block
(return_statement
(dictionary_comprehension
(pair
(identifier_k) identifier_k
(call
(identifier_recursive_apply) identifier_recursive_apply
(argument_list
(identifier_v) identifier_v
(identifier_func) identifier_func
)argument_list
)call
)pair
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_inval) identifier_inval
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)return_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_inval) identifier_inval
(identifier_list) identifier_list
)argument_list
)call
(block
(return_statement
(list_comprehension
(call
(identifier_recursive_apply) identifier_recursive_apply
(argument_list
(identifier_v) identifier_v
(identifier_func) identifier_func
)argument_list
)call
(for_in_clause
(identifier_v) identifier_v
(identifier_inval) identifier_inval
)for_in_clause
)list_comprehension
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(call
(identifier_func) identifier_func
(argument_list
(identifier_inval) identifier_inval
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Recursively apply a function to all levels of nested iterables
:param inval: the object to run the function on
:param func: the function that will be run on the inval |
(module
(function_definition
(function_name_get_account) function_name_get_account
(parameters
(identifier_self) identifier_self
(identifier_account) identifier_account
(default_parameter
(identifier_use_sis_id) identifier_use_sis_id
(False) False
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(identifier_use_sis_id) identifier_use_sis_id
(block
(expression_statement
(assignment
(identifier_account_id) identifier_account_id
(identifier_account) identifier_account
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_uri_str) identifier_uri_str
(string_'accounts/sis_account_id:{}') string_'accounts/sis_account_id:{}'
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_account_id) identifier_account_id
(call
(identifier_obj_or_id) identifier_obj_or_id
(argument_list
(identifier_account) identifier_account
(string_"account") string_"account"
(tuple
(identifier_Account) identifier_Account
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_uri_str) identifier_uri_str
(string_'accounts/{}') string_'accounts/{}'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___requester) identifier___requester
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(string_'GET') string_'GET'
(call
(attribute
(identifier_uri_str) identifier_uri_str
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_account_id) identifier_account_id
)argument_list
)call
(keyword_argument
(identifier__kwargs) identifier__kwargs
(call
(identifier_combine_kwargs) identifier_combine_kwargs
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Account) identifier_Account
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___requester) identifier___requester
)attribute
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieve information on an individual account.
:calls: `GET /api/v1/accounts/:id \
<https://canvas.instructure.com/doc/api/accounts.html#method.accounts.show>`_
:param account: The object or ID of the account to retrieve.
:type account: int, str or :class:`canvasapi.account.Account`
:param use_sis_id: Whether or not account_id is an sis ID.
Defaults to `False`.
:type use_sis_id: bool
:rtype: :class:`canvasapi.account.Account` |
(module
(function_definition
(function_name_validate) function_name_validate
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_validate_url) identifier_validate_url
(string_"https://api.pushover.net/1/users/validate.json") string_"https://api.pushover.net/1/users/validate.json"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_payload) identifier_payload
(dictionary
(pair
(string_'token') string_'token'
(attribute
(identifier_self) identifier_self
(identifier_api_token) identifier_api_token
)attribute
)pair
(pair
(string_'user') string_'user'
(attribute
(identifier_self) identifier_self
(identifier_user) identifier_user
)attribute
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_requests) identifier_requests
(identifier_post) identifier_post
)attribute
(argument_list
(identifier_validate_url) identifier_validate_url
(keyword_argument
(identifier_data) identifier_data
(identifier_payload) identifier_payload
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Validate the user and token, returns the Requests response. |
(module
(function_definition
(function_name_close) function_name_close
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_code) identifier_code
(type
(identifier_int) identifier_int
)type
(integer_1000) integer_1000
)typed_default_parameter
(typed_default_parameter
(identifier_reason) identifier_reason
(type
(identifier_str) identifier_str
)type
(string_"") string_""
)typed_default_parameter
)parameters
(type
(None) None
)type
(block
(try_statement
(block
(expression_statement
(await
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_wait_for) identifier_wait_for
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_write_close_frame) identifier_write_close_frame
)attribute
(argument_list
(call
(identifier_serialize_close) identifier_serialize_close
(argument_list
(identifier_code) identifier_code
(identifier_reason) identifier_reason
)argument_list
)call
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_close_timeout) identifier_close_timeout
)attribute
(keyword_argument
(identifier_loop) identifier_loop
(attribute
(identifier_self) identifier_self
(identifier_loop) identifier_loop
)attribute
)keyword_argument
)argument_list
)call
)await
)expression_statement
)block
(except_clause
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_TimeoutError) identifier_TimeoutError
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_fail_connection) identifier_fail_connection
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(await
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_wait_for) identifier_wait_for
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_transfer_data_task) identifier_transfer_data_task
)attribute
(attribute
(identifier_self) identifier_self
(identifier_close_timeout) identifier_close_timeout
)attribute
(keyword_argument
(identifier_loop) identifier_loop
(attribute
(identifier_self) identifier_self
(identifier_loop) identifier_loop
)attribute
)keyword_argument
)argument_list
)call
)await
)expression_statement
)block
(except_clause
(tuple
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_TimeoutError) identifier_TimeoutError
)attribute
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_CancelledError) identifier_CancelledError
)attribute
)tuple
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(expression_statement
(await
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_shield) identifier_shield
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_close_connection_task) identifier_close_connection_task
)attribute
)argument_list
)call
)await
)expression_statement
)block
)function_definition
)module | This coroutine performs the closing handshake.
It waits for the other end to complete the handshake and for the TCP
connection to terminate. As a consequence, there's no need to await
:meth:`wait_closed`; :meth:`close` already does it.
:meth:`close` is idempotent: it doesn't do anything once the
connection is closed.
It's safe to wrap this coroutine in :func:`~asyncio.create_task` since
errors during connection termination aren't particularly useful.
``code`` must be an :class:`int` and ``reason`` a :class:`str`. |
(module
(function_definition
(function_name_lrange) function_name_lrange
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_start) identifier_start
(identifier_stop) identifier_stop
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(attribute
(identifier_self) identifier_self
(identifier_pipe) identifier_pipe
)attribute
(as_pattern_target
(identifier_pipe) identifier_pipe
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(identifier_Future) identifier_Future
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_pipe) identifier_pipe
(identifier_lrange) identifier_lrange
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_redis_key) identifier_redis_key
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
(identifier_start) identifier_start
(identifier_stop) identifier_stop
)argument_list
)call
)assignment
)expression_statement
(function_definition
(function_name_cb) function_name_cb
(parameters
)parameters
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_set) identifier_set
)attribute
(argument_list
(list_comprehension
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_valueparse) identifier_valueparse
)attribute
(identifier_decode) identifier_decode
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
(for_in_clause
(identifier_v) identifier_v
(attribute
(identifier_res) identifier_res
(identifier_result) identifier_result
)attribute
)for_in_clause
)list_comprehension
)argument_list
)call
)expression_statement
)block
)function_definition
(expression_statement
(call
(attribute
(identifier_pipe) identifier_pipe
(identifier_on_execute) identifier_on_execute
)attribute
(argument_list
(identifier_cb) identifier_cb
)argument_list
)call
)expression_statement
(return_statement
(identifier_f) identifier_f
)return_statement
)block
)with_statement
)block
)function_definition
)module | Returns a range of items.
:param name: str the name of the redis key
:param start: integer representing the start index of the range
:param stop: integer representing the size of the list.
:return: Future() |
(module
(function_definition
(function_name_labels) function_name_labels
(parameters
(identifier_data) identifier_data
(identifier_label_column) identifier_label_column
(default_parameter
(identifier_color) identifier_color
(None) None
)default_parameter
(default_parameter
(identifier_font_name) identifier_font_name
(identifier_FONT_NAME) identifier_FONT_NAME
)default_parameter
(default_parameter
(identifier_font_size) identifier_font_size
(integer_14) integer_14
)default_parameter
(default_parameter
(identifier_anchor_x) identifier_anchor_x
(string_'left') string_'left'
)default_parameter
(default_parameter
(identifier_anchor_y) identifier_anchor_y
(string_'top') string_'top'
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_geoplotlib) identifier_geoplotlib
(identifier_layers) identifier_layers
)dotted_name
(dotted_name
(identifier_LabelsLayer) identifier_LabelsLayer
)dotted_name
)import_from_statement
(expression_statement
(call
(attribute
(attribute
(identifier__global_config) identifier__global_config
(identifier_layers) identifier_layers
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_LabelsLayer) identifier_LabelsLayer
(argument_list
(identifier_data) identifier_data
(identifier_label_column) identifier_label_column
(identifier_color) identifier_color
(identifier_font_name) identifier_font_name
(identifier_font_size) identifier_font_size
(identifier_anchor_x) identifier_anchor_x
(identifier_anchor_y) identifier_anchor_y
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Draw a text label for each sample
:param data: data access object
:param label_column: column in the data access object where the labels text is stored
:param color: color
:param font_name: font name
:param font_size: font size
:param anchor_x: anchor x
:param anchor_y: anchor y |
(module
(function_definition
(function_name__start_primary) function_name__start_primary
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_em) identifier_em
)attribute
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_em) identifier_em
)attribute
(identifier_set_secondary_state) identifier_set_secondary_state
)attribute
(argument_list
(identifier__STATE_RUNNING) identifier__STATE_RUNNING
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__set_shared_instances) identifier__set_shared_instances
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Start as the primary |
(module
(function_definition
(function_name_populate_items) function_name_populate_items
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__items) identifier__items
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_items) identifier_get_items
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_items) identifier_items
)attribute
)return_statement
)block
)function_definition
)module | populate and returns filtered items |
(module
(function_definition
(function_name_parent_tags) function_name_parent_tags
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_tags) identifier_tags
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_addr) identifier_addr
(attribute
(identifier_self) identifier_self
(identifier__addresses) identifier__addresses
)attribute
(block
(if_statement
(comparison_operator
(attribute
(identifier_addr) identifier_addr
(identifier_attr) identifier_attr
)attribute
(string_'text') string_'text'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_tags) identifier_tags
(identifier_add) identifier_add
)attribute
(argument_list
(attribute
(attribute
(identifier_addr) identifier_addr
(identifier_element) identifier_element
)attribute
(identifier_tag) identifier_tag
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_tags) identifier_tags
(identifier_update) identifier_update
)attribute
(generator_expression
(attribute
(identifier_el) identifier_el
(identifier_tag) identifier_tag
)attribute
(for_in_clause
(identifier_el) identifier_el
(call
(attribute
(attribute
(identifier_addr) identifier_addr
(identifier_element) identifier_element
)attribute
(identifier_iterancestors) identifier_iterancestors
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)generator_expression
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_tags) identifier_tags
(identifier_discard) identifier_discard
)attribute
(argument_list
(attribute
(identifier_HTMLFragment) identifier_HTMLFragment
(identifier__root_tag) identifier__root_tag
)attribute
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_frozenset) identifier_frozenset
(argument_list
(identifier_tags) identifier_tags
)argument_list
)call
)return_statement
)block
)function_definition
)module | Provides tags of all parent HTML elements. |
(module
(function_definition
(function_name_prepare) function_name_prepare
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_fields) identifier_fields
)attribute
)not_operator
(block
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_fieldname) identifier_fieldname
(identifier_lookup) identifier_lookup
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_fields) identifier_fields
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_lookup) identifier_lookup
(identifier_SubPreparer) identifier_SubPreparer
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_result) identifier_result
(identifier_fieldname) identifier_fieldname
)subscript
(call
(attribute
(identifier_lookup) identifier_lookup
(identifier_prepare) identifier_prepare
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_result) identifier_result
(identifier_fieldname) identifier_fieldname
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_lookup_data) identifier_lookup_data
)attribute
(argument_list
(identifier_lookup) identifier_lookup
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Handles transforming the provided data into the fielded data that should
be exposed to the end user.
Uses the ``lookup_data`` method to traverse dotted paths.
Returns a dictionary of data as the response. |
(module
(function_definition
(function_name__spacingx) function_name__spacingx
(parameters
(identifier_node) identifier_node
(identifier_max_dims) identifier_max_dims
(identifier_xoffset) identifier_xoffset
(identifier_xspace) identifier_xspace
)parameters
(block
(expression_statement
(assignment
(identifier_x_spacing) identifier_x_spacing
(binary_operator
(call
(identifier__n_terminations) identifier__n_terminations
(argument_list
(identifier_node) identifier_node
)argument_list
)call
(identifier_xspace) identifier_xspace
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_x_spacing) identifier_x_spacing
(subscript
(identifier_max_dims) identifier_max_dims
(integer_0) integer_0
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_max_dims) identifier_max_dims
(integer_0) integer_0
)subscript
(identifier_x_spacing) identifier_x_spacing
)assignment
)expression_statement
)block
)if_statement
(return_statement
(binary_operator
(identifier_xoffset) identifier_xoffset
(binary_operator
(identifier_x_spacing) identifier_x_spacing
(float_2.) float_2.
)binary_operator
)binary_operator
)return_statement
)block
)function_definition
)module | Determine the spacing of the current node depending on the number
of the leaves of the tree |
(module
(function_definition
(function_name_get_networks_by_name) function_name_get_networks_by_name
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_name) identifier_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_Network) identifier_Network
)type
)type_parameter
)generic_type
)type
(block
(return_statement
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_query) identifier_query
)attribute
(argument_list
(identifier_Network) identifier_Network
)argument_list
)call
(identifier_filter) identifier_filter
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_Network) identifier_Network
(identifier_name) identifier_name
)attribute
(identifier_like) identifier_like
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)argument_list
)call
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get all networks with the given name. Useful for getting all versions of a given network. |
(module
(function_definition
(function_name_plot_vyx) function_name_plot_vyx
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_colorbar) identifier_colorbar
(True) True
)default_parameter
(default_parameter
(identifier_cb_orientation) identifier_cb_orientation
(string_'vertical') string_'vertical'
)default_parameter
(default_parameter
(identifier_cb_label) identifier_cb_label
(None) None
)default_parameter
(default_parameter
(identifier_ax) identifier_ax
(None) None
)default_parameter
(default_parameter
(identifier_show) identifier_show
(True) True
)default_parameter
(default_parameter
(identifier_fname) identifier_fname
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_cb_label) identifier_cb_label
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_cb_label) identifier_cb_label
(attribute
(identifier_self) identifier_self
(identifier__vyx_label) identifier__vyx_label
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_ax) identifier_ax
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_fig) identifier_fig
(identifier_axes) identifier_axes
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_vyx) identifier_vyx
)attribute
(identifier_plot) identifier_plot
)attribute
(argument_list
(keyword_argument
(identifier_colorbar) identifier_colorbar
(identifier_colorbar) identifier_colorbar
)keyword_argument
(keyword_argument
(identifier_cb_orientation) identifier_cb_orientation
(identifier_cb_orientation) identifier_cb_orientation
)keyword_argument
(keyword_argument
(identifier_cb_label) identifier_cb_label
(identifier_cb_label) identifier_cb_label
)keyword_argument
(keyword_argument
(identifier_show) identifier_show
(False) False
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_show) identifier_show
(block
(expression_statement
(call
(attribute
(identifier_fig) identifier_fig
(identifier_show) identifier_show
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_fname) identifier_fname
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_fig) identifier_fig
(identifier_savefig) identifier_savefig
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_fig) identifier_fig
(identifier_axes) identifier_axes
)expression_list
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_vyx) identifier_vyx
)attribute
(identifier_plot) identifier_plot
)attribute
(argument_list
(keyword_argument
(identifier_colorbar) identifier_colorbar
(identifier_colorbar) identifier_colorbar
)keyword_argument
(keyword_argument
(identifier_cb_orientation) identifier_cb_orientation
(identifier_cb_orientation) identifier_cb_orientation
)keyword_argument
(keyword_argument
(identifier_cb_label) identifier_cb_label
(identifier_cb_label) identifier_cb_label
)keyword_argument
(keyword_argument
(identifier_ax) identifier_ax
(identifier_ax) identifier_ax
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Plot the Vyx component of the tensor.
Usage
-----
x.plot_vyx([tick_interval, xlabel, ylabel, ax, colorbar,
cb_orientation, cb_label, show, fname])
Parameters
----------
tick_interval : list or tuple, optional, default = [30, 30]
Intervals to use when plotting the x and y ticks. If set to None,
ticks will not be plotted.
xlabel : str, optional, default = 'longitude'
Label for the longitude axis.
ylabel : str, optional, default = 'latitude'
Label for the latitude axis.
ax : matplotlib axes object, optional, default = None
A single matplotlib axes object where the plot will appear.
colorbar : bool, optional, default = True
If True, plot a colorbar.
cb_orientation : str, optional, default = 'vertical'
Orientation of the colorbar: either 'vertical' or 'horizontal'.
cb_label : str, optional, default = '$V_{yx}$'
Text label for the colorbar.
show : bool, optional, default = True
If True, plot the image to the screen.
fname : str, optional, default = None
If present, and if axes is not specified, save the image to the
specified file.
kwargs : optional
Keyword arguements that will be sent to the SHGrid.plot()
and plt.imshow() methods. |
(module
(function_definition
(function_name__get_variable) function_name__get_variable
(parameters
(identifier_vid) identifier_vid
(identifier_variables) identifier_variables
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_vid) identifier_vid
(attribute
(identifier_six) identifier_six
(identifier_string_types) identifier_string_types
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_vid) identifier_vid
(call
(identifier_get_base_id) identifier_get_base_id
(argument_list
(identifier_vid) identifier_vid
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_vid) identifier_vid
(call
(identifier__get_string_vid) identifier__get_string_vid
(argument_list
(identifier_vid) identifier_vid
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(for_statement
(identifier_v) identifier_v
(identifier_variables) identifier_variables
(block
(if_statement
(comparison_operator
(identifier_vid) identifier_vid
(call
(identifier_get_base_id) identifier_get_base_id
(argument_list
(subscript
(identifier_v) identifier_v
(string_"id") string_"id"
)subscript
)argument_list
)call
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_copy) identifier_copy
(identifier_deepcopy) identifier_deepcopy
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)return_statement
)block
)if_statement
)block
)for_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"Did not find variable %s in \n%s") string_"Did not find variable %s in \n%s"
(tuple
(identifier_vid) identifier_vid
(call
(attribute
(identifier_pprint) identifier_pprint
(identifier_pformat) identifier_pformat
)attribute
(argument_list
(identifier_variables) identifier_variables
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Retrieve an input variable from our existing pool of options. |
(module
(function_definition
(function_name_can_handle) function_name_can_handle
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_text) identifier_text
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_changelogs) identifier_changelogs
(call
(attribute
(identifier_self) identifier_self
(identifier_split_changelogs) identifier_split_changelogs
)attribute
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_changelogs) identifier_changelogs
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(for_statement
(identifier_changelog) identifier_changelog
(identifier_changelogs) identifier_changelogs
(block
(expression_statement
(assignment
(pattern_list
(identifier__header) identifier__header
(identifier__changes) identifier__changes
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_split_changelog) identifier_split_changelog
)attribute
(argument_list
(identifier_changelog) identifier_changelog
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_any) identifier_any
(argument_list
(tuple
(identifier__header) identifier__header
(identifier__changes) identifier__changes
)tuple
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_header) identifier_header
(call
(attribute
(identifier_self) identifier_self
(identifier_parse_header) identifier_parse_header
)attribute
(argument_list
(identifier__header) identifier__header
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_changes) identifier_changes
(call
(attribute
(identifier_self) identifier_self
(identifier_parse_changes) identifier_parse_changes
)attribute
(argument_list
(identifier__changes) identifier__changes
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_any) identifier_any
(argument_list
(tuple
(identifier_header) identifier_header
(identifier_changes) identifier_changes
)tuple
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)for_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
(else_clause
(block
(return_statement
(True) True
)return_statement
)block
)else_clause
)try_statement
)block
)function_definition
)module | Check whether this parser can parse the text |
(module
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_self) identifier_self
(identifier_s) identifier_s
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_strptime) identifier_strptime
)attribute
(argument_list
(identifier_s) identifier_s
(attribute
(identifier_self) identifier_self
(identifier_date_format) identifier_date_format
)attribute
)argument_list
)call
(identifier_date) identifier_date
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Parses a date string formatted like ``YYYY-MM-DD``. |
(module
(function_definition
(function_name_configure_for_kerberos) function_name_configure_for_kerberos
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_datanode_transceiver_port) identifier_datanode_transceiver_port
(None) None
)default_parameter
(default_parameter
(identifier_datanode_web_port) identifier_datanode_web_port
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_datanode_transceiver_port) identifier_datanode_transceiver_port
(block
(expression_statement
(assignment
(subscript
(identifier_args) identifier_args
(string_'datanodeTransceiverPort') string_'datanodeTransceiverPort'
)subscript
(identifier_datanode_transceiver_port) identifier_datanode_transceiver_port
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_datanode_web_port) identifier_datanode_web_port
(block
(expression_statement
(assignment
(subscript
(identifier_args) identifier_args
(string_'datanodeWebPort') string_'datanodeWebPort'
)subscript
(identifier_datanode_web_port) identifier_datanode_web_port
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__cmd) identifier__cmd
)attribute
(argument_list
(string_'configureForKerberos') string_'configureForKerberos'
(keyword_argument
(identifier_data) identifier_data
(identifier_args) identifier_args
)keyword_argument
(keyword_argument
(identifier_api_version) identifier_api_version
(integer_11) integer_11
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Command to configure the cluster to use Kerberos for authentication.
This command will configure all relevant services on a cluster for
Kerberos usage. This command will trigger a GenerateCredentials command
to create Kerberos keytabs for all roles in the cluster.
@param datanode_transceiver_port: The HDFS DataNode transceiver port to use.
This will be applied to all DataNode role configuration groups. If
not specified, this will default to 1004.
@param datanode_web_port: The HDFS DataNode web port to use. This will be
applied to all DataNode role configuration groups. If not specified,
this will default to 1006.
@return: Reference to the submitted command.
@since: API v11 |
(module
(function_definition
(function_name__update_entry) function_name__update_entry
(parameters
(identifier_entry) identifier_entry
(identifier_status) identifier_status
(identifier_directives) identifier_directives
)parameters
(block
(for_statement
(pattern_list
(identifier_directive) identifier_directive
(identifier_state) identifier_state
)pattern_list
(call
(attribute
(identifier_six) identifier_six
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
(identifier_directives) identifier_directives
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_directive) identifier_directive
(string_'delete_others') string_'delete_others'
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_status) identifier_status
(string_'delete_others') string_'delete_others'
)subscript
(identifier_state) identifier_state
)assignment
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_attr) identifier_attr
(identifier_vals) identifier_vals
)pattern_list
(call
(attribute
(identifier_six) identifier_six
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
(identifier_state) identifier_state
)argument_list
)call
(block
(expression_statement
(call
(attribute
(subscript
(identifier_status) identifier_status
(string_'mentioned_attributes') string_'mentioned_attributes'
)subscript
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_attr) identifier_attr
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_vals) identifier_vals
(call
(identifier__toset) identifier__toset
(argument_list
(identifier_vals) identifier_vals
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_directive) identifier_directive
(string_'default') string_'default'
)comparison_operator
(block
(if_statement
(boolean_operator
(identifier_vals) identifier_vals
(parenthesized_expression
(boolean_operator
(comparison_operator
(identifier_attr) identifier_attr
(identifier_entry) identifier_entry
)comparison_operator
(not_operator
(subscript
(identifier_entry) identifier_entry
(identifier_attr) identifier_attr
)subscript
)not_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_entry) identifier_entry
(identifier_attr) identifier_attr
)subscript
(identifier_vals) identifier_vals
)assignment
)expression_statement
)block
)if_statement
)block
(elif_clause
(comparison_operator
(identifier_directive) identifier_directive
(string_'add') string_'add'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_vals) identifier_vals
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(identifier_entry) identifier_entry
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_attr) identifier_attr
(tuple
)tuple
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(identifier_vals) identifier_vals
(block
(expression_statement
(assignment
(subscript
(identifier_entry) identifier_entry
(identifier_attr) identifier_attr
)subscript
(identifier_vals) identifier_vals
)assignment
)expression_statement
)block
)if_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_directive) identifier_directive
(string_'delete') string_'delete'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_existing_vals) identifier_existing_vals
(call
(attribute
(identifier_entry) identifier_entry
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_attr) identifier_attr
(call
(identifier_OrderedSet) identifier_OrderedSet
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_vals) identifier_vals
(block
(expression_statement
(augmented_assignment
(identifier_existing_vals) identifier_existing_vals
(identifier_vals) identifier_vals
)augmented_assignment
)expression_statement
(if_statement
(identifier_existing_vals) identifier_existing_vals
(block
(expression_statement
(assignment
(subscript
(identifier_entry) identifier_entry
(identifier_attr) identifier_attr
)subscript
(identifier_existing_vals) identifier_existing_vals
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_directive) identifier_directive
(string_'replace') string_'replace'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_entry) identifier_entry
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_attr) identifier_attr
(None) None
)argument_list
)call
)expression_statement
(if_statement
(identifier_vals) identifier_vals
(block
(expression_statement
(assignment
(subscript
(identifier_entry) identifier_entry
(identifier_attr) identifier_attr
)subscript
(identifier_vals) identifier_vals
)assignment
)expression_statement
)block
)if_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'unknown directive: ') string_'unknown directive: '
(identifier_directive) identifier_directive
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Update an entry's attributes using the provided directives
:param entry:
A dict mapping each attribute name to a set of its values
:param status:
A dict holding cross-invocation status (whether delete_others
is True or not, and the set of mentioned attributes)
:param directives:
A dict mapping directive types to directive-specific state |
(module
(function_definition
(function_name__get_value) function_name__get_value
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_x) identifier_x
(identifier_y) identifier_y
)pattern_list
(expression_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__point) identifier__point
)attribute
(identifier_x) identifier_x
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__point) identifier__point
)attribute
(identifier_y) identifier_y
)attribute
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(attribute
(identifier_self) identifier_self
(identifier__px) identifier__px
)attribute
(attribute
(identifier_self) identifier_self
(identifier__py) identifier__py
)attribute
)pattern_list
(call
(attribute
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__item_point) identifier__item_point
)attribute
(identifier_canvas) identifier_canvas
)attribute
(identifier_get_matrix_i2i) identifier_get_matrix_i2i
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__item_point) identifier__item_point
)attribute
(attribute
(identifier_self) identifier_self
(identifier__item_target) identifier__item_target
)attribute
)argument_list
)call
(identifier_transform_point) identifier_transform_point
)attribute
(argument_list
(identifier_x) identifier_x
(identifier_y) identifier_y
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(attribute
(identifier_self) identifier_self
(identifier__px) identifier__px
)attribute
(attribute
(identifier_self) identifier_self
(identifier__py) identifier__py
)attribute
)expression_list
)return_statement
)block
)function_definition
)module | Return two delegating variables. Each variable should contain
a value attribute with the real value. |
(module
(function_definition
(function_name_configure_arrays) function_name_configure_arrays
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_science) identifier_science
)attribute
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_hdulist) identifier_hdulist
)attribute
(string_'sci') string_'sci'
(integer_1) integer_1
)subscript
(identifier_data) identifier_data
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_err) identifier_err
)attribute
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_hdulist) identifier_hdulist
)attribute
(string_'err') string_'err'
(integer_1) integer_1
)subscript
(identifier_data) identifier_data
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_dq) identifier_dq
)attribute
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_hdulist) identifier_hdulist
)attribute
(string_'dq') string_'dq'
(integer_1) integer_1
)subscript
(identifier_data) identifier_data
)attribute
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_ampstring) identifier_ampstring
)attribute
(string_'ABCD') string_'ABCD'
)comparison_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_science) identifier_science
)attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_concatenate) identifier_concatenate
)attribute
(argument_list
(tuple
(attribute
(identifier_self) identifier_self
(identifier_science) identifier_science
)attribute
(subscript
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_hdulist) identifier_hdulist
)attribute
(string_'sci') string_'sci'
(integer_2) integer_2
)subscript
(identifier_data) identifier_data
)attribute
(slice
(colon) colon
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
(slice
(colon) colon
)slice
)subscript
)tuple
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_err) identifier_err
)attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_concatenate) identifier_concatenate
)attribute
(argument_list
(tuple
(attribute
(identifier_self) identifier_self
(identifier_err) identifier_err
)attribute
(subscript
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_hdulist) identifier_hdulist
)attribute
(string_'err') string_'err'
(integer_2) integer_2
)subscript
(identifier_data) identifier_data
)attribute
(slice
(colon) colon
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
(slice
(colon) colon
)slice
)subscript
)tuple
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_dq) identifier_dq
)attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_concatenate) identifier_concatenate
)attribute
(argument_list
(tuple
(attribute
(identifier_self) identifier_self
(identifier_dq) identifier_dq
)attribute
(subscript
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_hdulist) identifier_hdulist
)attribute
(string_'dq') string_'dq'
(integer_2) integer_2
)subscript
(identifier_data) identifier_data
)attribute
(slice
(colon) colon
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
(slice
(colon) colon
)slice
)subscript
)tuple
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_ingest_dark) identifier_ingest_dark
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_ingest_flash) identifier_ingest_flash
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_ingest_flatfield) identifier_ingest_flatfield
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Get the SCI and ERR data. |
(module
(function_definition
(function_name_cache_key) function_name_cache_key
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(string_"") string_""
)assignment
)expression_statement
(for_statement
(identifier_arg) identifier_arg
(identifier_args) identifier_args
(block
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_arg) identifier_arg
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_key) identifier_key
(binary_operator
(string_":%s") string_":%s"
(call
(identifier_repr) identifier_repr
(argument_list
(identifier_arg) identifier_arg
)argument_list
)call
)binary_operator
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_key) identifier_key
(binary_operator
(string_":%s") string_":%s"
(call
(identifier_str) identifier_str
(argument_list
(identifier_arg) identifier_arg
)argument_list
)call
)binary_operator
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_key) identifier_key
)return_statement
)block
)function_definition
)module | Base method for computing the cache key with respect to the given
arguments. |
(module
(function_definition
(function_name_badge) function_name_badge
(parameters
(identifier_pipeline_id) identifier_pipeline_id
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_pipeline_id) identifier_pipeline_id
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'./') string_'./'
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_pipeline_id) identifier_pipeline_id
(binary_operator
(string_'./') string_'./'
(identifier_pipeline_id) identifier_pipeline_id
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_pipeline_status) identifier_pipeline_status
(call
(attribute
(identifier_status) identifier_status
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_pipeline_id) identifier_pipeline_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_status_color) identifier_status_color
(string_'lightgray') string_'lightgray'
)assignment
)expression_statement
(if_statement
(attribute
(identifier_pipeline_status) identifier_pipeline_status
(identifier_pipeline_details) identifier_pipeline_details
)attribute
(block
(expression_statement
(assignment
(identifier_status_text) identifier_status_text
(call
(attribute
(call
(attribute
(identifier_pipeline_status) identifier_pipeline_status
(identifier_state) identifier_state
)attribute
(argument_list
)argument_list
)call
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_last_execution) identifier_last_execution
(call
(attribute
(identifier_pipeline_status) identifier_pipeline_status
(identifier_get_last_execution) identifier_get_last_execution
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_success) identifier_success
(conditional_expression
(attribute
(identifier_last_execution) identifier_last_execution
(identifier_success) identifier_success
)attribute
(identifier_last_execution) identifier_last_execution
(None) None
)conditional_expression
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_success) identifier_success
(True) True
)comparison_operator
(block
(expression_statement
(assignment
(identifier_stats) identifier_stats
(conditional_expression
(attribute
(identifier_last_execution) identifier_last_execution
(identifier_stats) identifier_stats
)attribute
(identifier_last_execution) identifier_last_execution
(None) None
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_record_count) identifier_record_count
(call
(attribute
(identifier_stats) identifier_stats
(identifier_get) identifier_get
)attribute
(argument_list
(string_'count_of_rows') string_'count_of_rows'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_record_count) identifier_record_count
(None) None
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_status_text) identifier_status_text
(binary_operator
(string_' (%d records)') string_' (%d records)'
(identifier_record_count) identifier_record_count
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_status_color) identifier_status_color
(string_'brightgreen') string_'brightgreen'
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_success) identifier_success
(False) False
)comparison_operator
(block
(expression_statement
(assignment
(identifier_status_color) identifier_status_color
(string_'red') string_'red'
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_status_text) identifier_status_text
(string_"not found") string_"not found"
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier__make_badge_response) identifier__make_badge_response
(argument_list
(string_'pipeline') string_'pipeline'
(identifier_status_text) identifier_status_text
(identifier_status_color) identifier_status_color
)argument_list
)call
)return_statement
)block
)function_definition
)module | An individual pipeline status |
(module
(function_definition
(function_name_sendto) function_name_sendto
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(identifier_component) identifier_component
)parameters
(block
(expression_statement
(assignment
(identifier_active_pair) identifier_active_pair
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__nominated) identifier__nominated
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_component) identifier_component
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_active_pair) identifier_active_pair
(block
(expression_statement
(await
(call
(attribute
(attribute
(identifier_active_pair) identifier_active_pair
(identifier_protocol) identifier_protocol
)attribute
(identifier_send_data) identifier_send_data
)attribute
(argument_list
(identifier_data) identifier_data
(attribute
(identifier_active_pair) identifier_active_pair
(identifier_remote_addr) identifier_remote_addr
)attribute
)argument_list
)call
)await
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ConnectionError) identifier_ConnectionError
(argument_list
(string_'Cannot send data, not connected') string_'Cannot send data, not connected'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Send a datagram on the specified component.
If the connection is not established, a `ConnectionError` is raised. |
(module
(function_definition
(function_name__registerNode) function_name__registerNode
(parameters
(identifier_self) identifier_self
(identifier_nodeAddress) identifier_nodeAddress
(identifier_agentId) identifier_agentId
(default_parameter
(identifier_nodePort) identifier_nodePort
(integer_5051) integer_5051
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_executor) identifier_executor
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_executors) identifier_executors
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_nodeAddress) identifier_nodeAddress
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_executor) identifier_executor
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_executor) identifier_executor
(identifier_agentId) identifier_agentId
)attribute
(identifier_agentId) identifier_agentId
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_executor) identifier_executor
(call
(attribute
(identifier_self) identifier_self
(identifier_ExecutorInfo) identifier_ExecutorInfo
)attribute
(argument_list
(keyword_argument
(identifier_nodeAddress) identifier_nodeAddress
(identifier_nodeAddress) identifier_nodeAddress
)keyword_argument
(keyword_argument
(identifier_agentId) identifier_agentId
(identifier_agentId) identifier_agentId
)keyword_argument
(keyword_argument
(identifier_nodeInfo) identifier_nodeInfo
(None) None
)keyword_argument
(keyword_argument
(identifier_lastSeen) identifier_lastSeen
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_executors) identifier_executors
)attribute
(identifier_nodeAddress) identifier_nodeAddress
)subscript
(identifier_executor) identifier_executor
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_executor) identifier_executor
(identifier_lastSeen) identifier_lastSeen
)attribute
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_agentsByID) identifier_agentsByID
)attribute
(identifier_agentId) identifier_agentId
)subscript
(identifier_nodeAddress) identifier_nodeAddress
)assignment
)expression_statement
(return_statement
(identifier_executor) identifier_executor
)return_statement
)block
)function_definition
)module | Called when we get communication from an agent. Remembers the
information about the agent by address, and the agent address by agent
ID. |
(module
(function_definition
(function_name_pair_hmm_align_unaligned_seqs) function_name_pair_hmm_align_unaligned_seqs
(parameters
(identifier_seqs) identifier_seqs
(default_parameter
(identifier_moltype) identifier_moltype
(identifier_DNA_cogent) identifier_DNA_cogent
)default_parameter
(default_parameter
(identifier_params) identifier_params
(dictionary
)dictionary
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_seqs) identifier_seqs
(call
(identifier_LoadSeqs) identifier_LoadSeqs
(argument_list
(keyword_argument
(identifier_data) identifier_data
(identifier_seqs) identifier_seqs
)keyword_argument
(keyword_argument
(identifier_moltype) identifier_moltype
(identifier_moltype) identifier_moltype
)keyword_argument
(keyword_argument
(identifier_aligned) identifier_aligned
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_s1) identifier_s1
(identifier_s2) identifier_s2
)pattern_list
(call
(attribute
(identifier_seqs) identifier_seqs
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Pairwise aligning of seqs requires exactly two seqs.") string_"Pairwise aligning of seqs requires exactly two seqs."
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_gap_open) identifier_gap_open
(subscript
(identifier_params) identifier_params
(string_'gap_open') string_'gap_open'
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(identifier_gap_open) identifier_gap_open
(integer_5) integer_5
)assignment
)expression_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_gap_extend) identifier_gap_extend
(subscript
(identifier_params) identifier_params
(string_'gap_extend') string_'gap_extend'
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(identifier_gap_extend) identifier_gap_extend
(integer_2) integer_2
)assignment
)expression_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_score_matrix) identifier_score_matrix
(subscript
(identifier_params) identifier_params
(string_'score_matrix') string_'score_matrix'
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(identifier_score_matrix) identifier_score_matrix
(call
(identifier_make_dna_scoring_dict) identifier_make_dna_scoring_dict
(argument_list
(keyword_argument
(identifier_match) identifier_match
(integer_1) integer_1
)keyword_argument
(keyword_argument
(identifier_transition) identifier_transition
(unary_operator
(integer_1) integer_1
)unary_operator
)keyword_argument
(keyword_argument
(identifier_transversion) identifier_transversion
(unary_operator
(integer_1) integer_1
)unary_operator
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(call
(identifier_local_pairwise) identifier_local_pairwise
(argument_list
(identifier_s1) identifier_s1
(identifier_s2) identifier_s2
(identifier_score_matrix) identifier_score_matrix
(identifier_gap_open) identifier_gap_open
(identifier_gap_extend) identifier_gap_extend
)argument_list
)call
)return_statement
)block
)function_definition
)module | Checks parameters for pairwise alignment, returns alignment.
Code from Greg Caporaso. |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(typed_parameter
(identifier_gc) identifier_gc
(type
(identifier_GroupControl) identifier_GroupControl
)type
)typed_parameter
(identifier_name) identifier_name
(identifier_slaves) identifier_slaves
)parameters
(block
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(binary_operator
(string_"Creating group %s with slaves: %s") string_"Creating group %s with slaves: %s"
(tuple
(identifier_name) identifier_name
(identifier_slaves) identifier_slaves
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(await
(call
(attribute
(identifier_gc) identifier_gc
(identifier_create) identifier_create
)attribute
(argument_list
(identifier_name) identifier_name
(identifier_slaves) identifier_slaves
)argument_list
)call
)await
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create new group |
(module
(function_definition
(function_name__build_toc_node) function_name__build_toc_node
(parameters
(identifier_docname) identifier_docname
(default_parameter
(identifier_anchor) identifier_anchor
(string_"anchor") string_"anchor"
)default_parameter
(default_parameter
(identifier_text) identifier_text
(string_"test text") string_"test text"
)default_parameter
(default_parameter
(identifier_bullet) identifier_bullet
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_reference) identifier_reference
(call
(attribute
(identifier_nodes) identifier_nodes
(identifier_reference) identifier_reference
)attribute
(argument_list
(string_"") string_""
(string_"") string_""
(keyword_argument
(identifier_internal) identifier_internal
(True) True
)keyword_argument
(keyword_argument
(identifier_refuri) identifier_refuri
(identifier_docname) identifier_docname
)keyword_argument
(keyword_argument
(identifier_anchorname) identifier_anchorname
(binary_operator
(string_") string_"
(list
(call
(attribute
(identifier_nodes) identifier_nodes
(identifier_Text) identifier_Text
)attribute
(argument_list
(identifier_text) identifier_text
(identifier_text) identifier_text
)argument_list
)call
)list
)binary_operator
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_para) identifier_para
(call
(attribute
(identifier_addnodes) identifier_addnodes
(identifier_compact_paragraph) identifier_compact_paragraph
)attribute
(argument_list
(string_"") string_""
(string_"") string_""
(identifier_reference) identifier_reference
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret_list) identifier_ret_list
(call
(attribute
(identifier_nodes) identifier_nodes
(identifier_list_item) identifier_list_item
)attribute
(argument_list
(string_"") string_""
(identifier_para) identifier_para
)argument_list
)call
)assignment
)expression_statement
(return_statement
(conditional_expression
(call
(attribute
(identifier_nodes) identifier_nodes
(identifier_bullet_list) identifier_bullet_list
)attribute
(argument_list
(string_"") string_""
(identifier_ret_list) identifier_ret_list
)argument_list
)call
(identifier_bullet) identifier_bullet
(identifier_ret_list) identifier_ret_list
)conditional_expression
)return_statement
)block
)function_definition
)module | Create the node structure that Sphinx expects for TOC Tree entries.
The ``bullet`` argument wraps it in a ``nodes.bullet_list``,
which is how you nest TOC Tree entries. |
(module
(function_definition
(function_name__hdparm) function_name__hdparm
(parameters
(identifier_args) identifier_args
(default_parameter
(identifier_failhard) identifier_failhard
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(call
(attribute
(string_'hdparm {0}') string_'hdparm {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'cmd.run_all') string_'cmd.run_all'
)subscript
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_result) identifier_result
(string_'retcode') string_'retcode'
)subscript
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(string_'{0}: {1}') string_'{0}: {1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_cmd) identifier_cmd
(subscript
(identifier_result) identifier_result
(string_'stderr') string_'stderr'
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_failhard) identifier_failhard
(block
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warning) identifier_warning
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(return_statement
(subscript
(identifier_result) identifier_result
(string_'stdout') string_'stdout'
)subscript
)return_statement
)block
)function_definition
)module | Execute hdparm
Fail hard when required
return output when possible |
(module
(function_definition
(function_name__start_loop) function_name__start_loop
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_loop) identifier_loop
(call
(attribute
(identifier_GObject) identifier_GObject
(identifier_MainLoop) identifier_MainLoop
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bus) identifier_bus
(call
(identifier_SystemBus) identifier_SystemBus
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_manager) identifier_manager
(call
(attribute
(identifier_bus) identifier_bus
(identifier_get) identifier_get
)attribute
(argument_list
(string_".NetworkManager") string_".NetworkManager"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_manager) identifier_manager
(identifier_onPropertiesChanged) identifier_onPropertiesChanged
)attribute
(attribute
(identifier_self) identifier_self
(identifier__vpn_signal_handler) identifier__vpn_signal_handler
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_loop) identifier_loop
(identifier_run) identifier_run
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Starts main event handler loop, run in handler thread t. |
(module
(function_definition
(function_name__upload_simple) function_name__upload_simple
(parameters
(identifier_self) identifier_self
(identifier_upload_info) identifier_upload_info
(default_parameter
(identifier__) identifier__
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_upload_result) identifier_upload_result
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__api) identifier__api
)attribute
(identifier_upload_simple) identifier_upload_simple
)attribute
(argument_list
(attribute
(identifier_upload_info) identifier_upload_info
(identifier_fd) identifier_fd
)attribute
(attribute
(identifier_upload_info) identifier_upload_info
(identifier_name) identifier_name
)attribute
(keyword_argument
(identifier_folder_key) identifier_folder_key
(attribute
(identifier_upload_info) identifier_upload_info
(identifier_folder_key) identifier_folder_key
)attribute
)keyword_argument
(keyword_argument
(identifier_filedrop_key) identifier_filedrop_key
(attribute
(identifier_upload_info) identifier_upload_info
(identifier_filedrop_key) identifier_filedrop_key
)attribute
)keyword_argument
(keyword_argument
(identifier_path) identifier_path
(attribute
(identifier_upload_info) identifier_upload_info
(identifier_path) identifier_path
)attribute
)keyword_argument
(keyword_argument
(identifier_file_size) identifier_file_size
(attribute
(identifier_upload_info) identifier_upload_info
(identifier_size) identifier_size
)attribute
)keyword_argument
(keyword_argument
(identifier_file_hash) identifier_file_hash
(attribute
(attribute
(identifier_upload_info) identifier_upload_info
(identifier_hash_info) identifier_hash_info
)attribute
(identifier_file) identifier_file
)attribute
)keyword_argument
(keyword_argument
(identifier_action_on_duplicate) identifier_action_on_duplicate
(attribute
(identifier_upload_info) identifier_upload_info
(identifier_action_on_duplicate) identifier_action_on_duplicate
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"upload_result: %s") string_"upload_result: %s"
(identifier_upload_result) identifier_upload_result
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_upload_key) identifier_upload_key
(subscript
(subscript
(identifier_upload_result) identifier_upload_result
(string_'doupload') string_'doupload'
)subscript
(string_'key') string_'key'
)subscript
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__poll_upload) identifier__poll_upload
)attribute
(argument_list
(identifier_upload_key) identifier_upload_key
(string_'upload/simple') string_'upload/simple'
)argument_list
)call
)return_statement
)block
)function_definition
)module | Simple upload and return quickkey
Can be used for small files smaller than UPLOAD_SIMPLE_LIMIT_BYTES
upload_info -- UploadInfo object
check_result -- ignored |
(module
(function_definition
(function_name_batch_get_assets_history) function_name_batch_get_assets_history
(parameters
(identifier_self) identifier_self
(identifier_parent) identifier_parent
(identifier_content_type) identifier_content_type
(identifier_read_time_window) identifier_read_time_window
(default_parameter
(identifier_asset_names) identifier_asset_names
(None) None
)default_parameter
(default_parameter
(identifier_retry) identifier_retry
(attribute
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_gapic_v1) identifier_gapic_v1
)attribute
(identifier_method) identifier_method
)attribute
(identifier_DEFAULT) identifier_DEFAULT
)attribute
)default_parameter
(default_parameter
(identifier_timeout) identifier_timeout
(attribute
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_gapic_v1) identifier_gapic_v1
)attribute
(identifier_method) identifier_method
)attribute
(identifier_DEFAULT) identifier_DEFAULT
)attribute
)default_parameter
(default_parameter
(identifier_metadata) identifier_metadata
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(string_"batch_get_assets_history") string_"batch_get_assets_history"
(attribute
(identifier_self) identifier_self
(identifier__inner_api_calls) identifier__inner_api_calls
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__inner_api_calls) identifier__inner_api_calls
)attribute
(string_"batch_get_assets_history") string_"batch_get_assets_history"
)subscript
(call
(attribute
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_gapic_v1) identifier_gapic_v1
)attribute
(identifier_method) identifier_method
)attribute
(identifier_wrap_method) identifier_wrap_method
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_transport) identifier_transport
)attribute
(identifier_batch_get_assets_history) identifier_batch_get_assets_history
)attribute
(keyword_argument
(identifier_default_retry) identifier_default_retry
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__method_configs) identifier__method_configs
)attribute
(string_"BatchGetAssetsHistory") string_"BatchGetAssetsHistory"
)subscript
(identifier_retry) identifier_retry
)attribute
)keyword_argument
(keyword_argument
(identifier_default_timeout) identifier_default_timeout
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__method_configs) identifier__method_configs
)attribute
(string_"BatchGetAssetsHistory") string_"BatchGetAssetsHistory"
)subscript
(identifier_timeout) identifier_timeout
)attribute
)keyword_argument
(keyword_argument
(identifier_client_info) identifier_client_info
(attribute
(identifier_self) identifier_self
(identifier__client_info) identifier__client_info
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(attribute
(identifier_asset_service_pb2) identifier_asset_service_pb2
(identifier_BatchGetAssetsHistoryRequest) identifier_BatchGetAssetsHistoryRequest
)attribute
(argument_list
(keyword_argument
(identifier_parent) identifier_parent
(identifier_parent) identifier_parent
)keyword_argument
(keyword_argument
(identifier_content_type) identifier_content_type
(identifier_content_type) identifier_content_type
)keyword_argument
(keyword_argument
(identifier_read_time_window) identifier_read_time_window
(identifier_read_time_window) identifier_read_time_window
)keyword_argument
(keyword_argument
(identifier_asset_names) identifier_asset_names
(identifier_asset_names) identifier_asset_names
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(subscript
(attribute
(identifier_self) identifier_self
(identifier__inner_api_calls) identifier__inner_api_calls
)attribute
(string_"batch_get_assets_history") string_"batch_get_assets_history"
)subscript
(argument_list
(identifier_request) identifier_request
(keyword_argument
(identifier_retry) identifier_retry
(identifier_retry) identifier_retry
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
(keyword_argument
(identifier_metadata) identifier_metadata
(identifier_metadata) identifier_metadata
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Batch gets the update history of assets that overlap a time window. For
RESOURCE content, this API outputs history with asset in both non-delete
or deleted status. For IAM\_POLICY content, this API outputs history
when the asset and its attached IAM POLICY both exist. This can create
gaps in the output history. If a specified asset does not exist, this
API returns an INVALID\_ARGUMENT error.
Example:
>>> from google.cloud import asset_v1
>>> from google.cloud.asset_v1 import enums
>>>
>>> client = asset_v1.AssetServiceClient()
>>>
>>> # TODO: Initialize `parent`:
>>> parent = ''
>>>
>>> # TODO: Initialize `content_type`:
>>> content_type = enums.ContentType.CONTENT_TYPE_UNSPECIFIED
>>>
>>> # TODO: Initialize `read_time_window`:
>>> read_time_window = {}
>>>
>>> response = client.batch_get_assets_history(parent, content_type, read_time_window)
Args:
parent (str): Required. The relative name of the root asset. It can only be an
organization number (such as "organizations/123"), a project ID (such as
"projects/my-project-id")", or a project number (such as "projects/12345").
content_type (~google.cloud.asset_v1.types.ContentType): Required. The content type.
read_time_window (Union[dict, ~google.cloud.asset_v1.types.TimeWindow]): Optional. The time window for the asset history. Both start\_time and
end\_time are optional and if set, it must be after 2018-10-02 UTC. If
end\_time is not set, it is default to current timestamp. If start\_time
is not set, the snapshot of the assets at end\_time will be returned.
The returned results contain all temporal assets whose time window
overlap with read\_time\_window.
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.asset_v1.types.TimeWindow`
asset_names (list[str]): A list of the full names of the assets. For example:
``//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1``.
See `Resource
Names <https://cloud.google.com/apis/design/resource_names#full_resource_name>`__
and `Resource Name
Format <https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/resource-name-format>`__
for more info.
The request becomes a no-op if the asset name list is empty, and the max
size of the asset name list is 100 in one request.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata
that is provided to the method.
Returns:
A :class:`~google.cloud.asset_v1.types.BatchGetAssetsHistoryResponse` instance.
Raises:
google.api_core.exceptions.GoogleAPICallError: If the request
failed for any reason.
google.api_core.exceptions.RetryError: If the request failed due
to a retryable error and retry attempts failed.
ValueError: If the parameters are invalid. |
(module
(function_definition
(function_name__convert_template_option) function_name__convert_template_option
(parameters
(identifier_template) identifier_template
)parameters
(block
(expression_statement
(assignment
(identifier_option) identifier_option
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_extraction_method) identifier_extraction_method
(call
(attribute
(identifier_template) identifier_template
(identifier_get) identifier_get
)attribute
(argument_list
(string_'extraction_method') string_'extraction_method'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_extraction_method) identifier_extraction_method
(string_'guess') string_'guess'
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_option) identifier_option
(string_'guess') string_'guess'
)subscript
(True) True
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_extraction_method) identifier_extraction_method
(string_'lattice') string_'lattice'
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_option) identifier_option
(string_'lattice') string_'lattice'
)subscript
(True) True
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_extraction_method) identifier_extraction_method
(string_'stream') string_'stream'
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_option) identifier_option
(string_'stream') string_'stream'
)subscript
(True) True
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(expression_statement
(assignment
(subscript
(identifier_option) identifier_option
(string_'pages') string_'pages'
)subscript
(call
(attribute
(identifier_template) identifier_template
(identifier_get) identifier_get
)attribute
(argument_list
(string_'page') string_'page'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_option) identifier_option
(string_'area') string_'area'
)subscript
(list
(call
(identifier_round) identifier_round
(argument_list
(subscript
(identifier_template) identifier_template
(string_'y1') string_'y1'
)subscript
(integer_3) integer_3
)argument_list
)call
(call
(identifier_round) identifier_round
(argument_list
(subscript
(identifier_template) identifier_template
(string_'x1') string_'x1'
)subscript
(integer_3) integer_3
)argument_list
)call
(call
(identifier_round) identifier_round
(argument_list
(subscript
(identifier_template) identifier_template
(string_'y2') string_'y2'
)subscript
(integer_3) integer_3
)argument_list
)call
(call
(identifier_round) identifier_round
(argument_list
(subscript
(identifier_template) identifier_template
(string_'x2') string_'x2'
)subscript
(integer_3) integer_3
)argument_list
)call
)list
)assignment
)expression_statement
(return_statement
(identifier_option) identifier_option
)return_statement
)block
)function_definition
)module | Convert Tabula app template to tabula-py option
Args:
template (dict): Tabula app template
Returns:
`obj`:dict: tabula-py option |
(module
(function_definition
(function_name_autobuild_onlycopy) function_name_autobuild_onlycopy
(parameters
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_family) identifier_family
(call
(attribute
(identifier_utilities) identifier_utilities
(identifier_get_family) identifier_get_family
)attribute
(argument_list
(string_'module_settings.json') string_'module_settings.json'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_autobuild_release) identifier_autobuild_release
(argument_list
(identifier_family) identifier_family
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_Alias) identifier_Alias
(argument_list
(string_'release') string_'release'
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(string_'build') string_'build'
(string_'output') string_'output'
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_Default) identifier_Default
(argument_list
(list
(string_'release') string_'release'
)list
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_unit_test) identifier_unit_test
(identifier_IOTileException) identifier_IOTileException
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(identifier_e) identifier_e
(identifier_format) identifier_format
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_Exit) identifier_Exit
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Autobuild a project that does not require building firmware, pcb or documentation |
(module
(function_definition
(function_name_get_staff) function_name_get_staff
(parameters
(identifier_self) identifier_self
(identifier_gradebook_id) identifier_gradebook_id
(default_parameter
(identifier_simple) identifier_simple
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_staff_data) identifier_staff_data
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(string_'staff/{gradebookId}') string_'staff/{gradebookId}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_gradebookId) identifier_gradebookId
(boolean_operator
(identifier_gradebook_id) identifier_gradebook_id
(attribute
(identifier_self) identifier_self
(identifier_gradebook_id) identifier_gradebook_id
)attribute
)boolean_operator
)keyword_argument
)argument_list
)call
(keyword_argument
(identifier_params) identifier_params
(None) None
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_simple) identifier_simple
(block
(expression_statement
(assignment
(identifier_simple_list) identifier_simple_list
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_unraveled_list) identifier_unraveled_list
(call
(attribute
(identifier_self) identifier_self
(identifier_unravel_staff) identifier_unravel_staff
)attribute
(argument_list
(identifier_staff_data) identifier_staff_data
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_member) identifier_member
(call
(attribute
(identifier_unraveled_list) identifier_unraveled_list
(identifier___iter__) identifier___iter__
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_simple_list) identifier_simple_list
(identifier_append) identifier_append
)attribute
(argument_list
(dictionary
(pair
(string_'accountEmail') string_'accountEmail'
(subscript
(identifier_member) identifier_member
(string_'accountEmail') string_'accountEmail'
)subscript
)pair
(pair
(string_'displayName') string_'displayName'
(subscript
(identifier_member) identifier_member
(string_'displayName') string_'displayName'
)subscript
)pair
(pair
(string_'role') string_'role'
(subscript
(identifier_member) identifier_member
(string_'role') string_'role'
)subscript
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_simple_list) identifier_simple_list
)return_statement
)block
)if_statement
(return_statement
(subscript
(identifier_staff_data) identifier_staff_data
(string_'data') string_'data'
)subscript
)return_statement
)block
)function_definition
)module | Get staff list for gradebook.
Get staff list for the gradebook specified. Optionally, return
a less detailed list by specifying ``simple = True``.
If simple=True, return a list of dictionaries, one dictionary
for each member. The dictionary contains a member's ``email``,
``displayName``, and ``role``. Members with multiple roles will
appear in the list once for each role.
Args:
gradebook_id (str): unique identifier for gradebook, i.e. ``2314``
simple (bool): Return a staff list with less detail. Default
is ``False``.
Returns:
An example return value is:
.. code-block:: python
{
u'data': {
u'COURSE_ADMIN': [
{
u'accountEmail': u'benfranklin@mit.edu',
u'displayName': u'Benjamin Franklin',
u'editable': False,
u'email': u'benfranklin@mit.edu',
u'givenName': u'Benjamin',
u'middleName': None,
u'mitId': u'921344431',
u'nickName': u'Benjamin',
u'personId': 10710616,
u'sortableName': u'Franklin, Benjamin',
u'surname': u'Franklin',
u'year': None
},
],
u'COURSE_PROF': [
{
u'accountEmail': u'dduck@mit.edu',
u'displayName': u'Donald Duck',
u'editable': False,
u'email': u'dduck@mit.edu',
u'givenName': u'Donald',
u'middleName': None,
u'mitId': u'916144889',
u'nickName': u'Donald',
u'personId': 8117160,
u'sortableName': u'Duck, Donald',
u'surname': u'Duck',
u'year': None
},
],
u'COURSE_TA': [
{
u'accountEmail': u'hduck@mit.edu',
u'displayName': u'Huey Duck',
u'editable': False,
u'email': u'hduck@mit.edu',
u'givenName': u'Huey',
u'middleName': None,
u'mitId': u'920445024',
u'nickName': u'Huey',
u'personId': 1299059,
u'sortableName': u'Duck, Huey',
u'surname': u'Duck',
u'year': None
},
]
},
} |
(module
(function_definition
(function_name_get_authors) function_name_get_authors
(parameters
(identifier_self) identifier_self
(identifier_entry) identifier_entry
)parameters
(block
(try_statement
(block
(return_statement
(call
(identifier_format_html_join) identifier_format_html_join
(argument_list
(string_', ') string_', '
(string_'<a href="{}" target="blank">{}</a>') string_'<a href="{}" target="blank">{}</a>'
(list_comprehension
(tuple
(call
(attribute
(identifier_author) identifier_author
(identifier_get_absolute_url) identifier_get_absolute_url
)attribute
(argument_list
)argument_list
)call
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_author) identifier_author
(attribute
(identifier_author) identifier_author
(identifier_USERNAME_FIELD) identifier_USERNAME_FIELD
)attribute
)argument_list
)call
)tuple
(for_in_clause
(identifier_author) identifier_author
(call
(attribute
(attribute
(identifier_entry) identifier_entry
(identifier_authors) identifier_authors
)attribute
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_NoReverseMatch) identifier_NoReverseMatch
(block
(return_statement
(call
(attribute
(string_', ') string_', '
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(identifier_conditional_escape) identifier_conditional_escape
(argument_list
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_author) identifier_author
(attribute
(identifier_author) identifier_author
(identifier_USERNAME_FIELD) identifier_USERNAME_FIELD
)attribute
)argument_list
)call
)argument_list
)call
(for_in_clause
(identifier_author) identifier_author
(call
(attribute
(attribute
(identifier_entry) identifier_entry
(identifier_authors) identifier_authors
)attribute
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Return the authors in HTML. |
(module
(function_definition
(function_name_as_text) function_name_as_text
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_max_rows) identifier_max_rows
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_sep) identifier_sep
(string_" | ") string_" | "
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(identifier_max_rows) identifier_max_rows
)not_operator
(comparison_operator
(identifier_max_rows) identifier_max_rows
(attribute
(identifier_self) identifier_self
(identifier_num_rows) identifier_num_rows
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_max_rows) identifier_max_rows
(attribute
(identifier_self) identifier_self
(identifier_num_rows) identifier_num_rows
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_omitted) identifier_omitted
(call
(identifier_max) identifier_max
(argument_list
(integer_0) integer_0
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_num_rows) identifier_num_rows
)attribute
(identifier_max_rows) identifier_max_rows
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_labels) identifier_labels
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__columns) identifier__columns
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fmts) identifier_fmts
(call
(attribute
(identifier_self) identifier_self
(identifier__get_column_formatters) identifier__get_column_formatters
)attribute
(argument_list
(identifier_max_rows) identifier_max_rows
(False) False
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rows) identifier_rows
(list
(list_comprehension
(call
(identifier_fmt) identifier_fmt
(argument_list
(identifier_label) identifier_label
(keyword_argument
(identifier_label) identifier_label
(True) True
)keyword_argument
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_fmt) identifier_fmt
(identifier_label) identifier_label
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_fmts) identifier_fmts
(identifier_labels) identifier_labels
)argument_list
)call
)for_in_clause
)list_comprehension
)list
)assignment
)expression_statement
(for_statement
(identifier_row) identifier_row
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_islice) identifier_islice
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_rows) identifier_rows
)attribute
(identifier_max_rows) identifier_max_rows
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_rows) identifier_rows
(identifier_append) identifier_append
)attribute
(argument_list
(list_comprehension
(call
(identifier_f) identifier_f
(argument_list
(identifier_v) identifier_v
(keyword_argument
(identifier_label) identifier_label
(False) False
)keyword_argument
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_v) identifier_v
(identifier_f) identifier_f
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_row) identifier_row
(identifier_fmts) identifier_fmts
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_lines) identifier_lines
(list_comprehension
(call
(attribute
(identifier_sep) identifier_sep
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_row) identifier_row
)argument_list
)call
(for_in_clause
(identifier_row) identifier_row
(identifier_rows) identifier_rows
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(identifier_omitted) identifier_omitted
(block
(expression_statement
(call
(attribute
(identifier_lines) identifier_lines
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_'... ({} rows omitted)') string_'... ({} rows omitted)'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_omitted) identifier_omitted
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(string_'\n') string_'\n'
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(attribute
(identifier_line) identifier_line
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_line) identifier_line
(identifier_lines) identifier_lines
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Format table as text. |
(module
(function_definition
(function_name__estimate_centers_widths) function_name__estimate_centers_widths
(parameters
(identifier_self) identifier_self
(identifier_unique_R) identifier_unique_R
(identifier_inds) identifier_inds
(identifier_X) identifier_X
(identifier_W) identifier_W
(identifier_init_centers) identifier_init_centers
(identifier_init_widths) identifier_init_widths
(identifier_template_centers) identifier_template_centers
(identifier_template_widths) identifier_template_widths
(identifier_template_centers_mean_cov) identifier_template_centers_mean_cov
(identifier_template_widths_mean_var_reci) identifier_template_widths_mean_var_reci
)parameters
(block
(expression_statement
(assignment
(identifier_init_estimate) identifier_init_estimate
(call
(attribute
(identifier_np) identifier_np
(identifier_hstack) identifier_hstack
)attribute
(argument_list
(tuple
(call
(attribute
(identifier_init_centers) identifier_init_centers
(identifier_ravel) identifier_ravel
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_init_widths) identifier_init_widths
(identifier_ravel) identifier_ravel
)attribute
(argument_list
)argument_list
)call
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data_sigma) identifier_data_sigma
(binary_operator
(binary_operator
(float_1.0) float_1.0
(call
(attribute
(identifier_math) identifier_math
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(float_2.0) float_2.0
)argument_list
)call
)binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_std) identifier_std
)attribute
(argument_list
(identifier_X) identifier_X
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_final_estimate) identifier_final_estimate
(call
(identifier_least_squares) identifier_least_squares
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__residual_multivariate) identifier__residual_multivariate
)attribute
(identifier_init_estimate) identifier_init_estimate
(keyword_argument
(identifier_args) identifier_args
(tuple
(identifier_unique_R) identifier_unique_R
(identifier_inds) identifier_inds
(identifier_X) identifier_X
(identifier_W) identifier_W
(identifier_template_centers) identifier_template_centers
(identifier_template_widths) identifier_template_widths
(identifier_template_centers_mean_cov) identifier_template_centers_mean_cov
(identifier_template_widths_mean_var_reci) identifier_template_widths_mean_var_reci
(identifier_data_sigma) identifier_data_sigma
)tuple
)keyword_argument
(keyword_argument
(identifier_method) identifier_method
(attribute
(identifier_self) identifier_self
(identifier_nlss_method) identifier_nlss_method
)attribute
)keyword_argument
(keyword_argument
(identifier_loss) identifier_loss
(attribute
(identifier_self) identifier_self
(identifier_nlss_loss) identifier_nlss_loss
)attribute
)keyword_argument
(keyword_argument
(identifier_bounds) identifier_bounds
(attribute
(identifier_self) identifier_self
(identifier_bounds) identifier_bounds
)attribute
)keyword_argument
(keyword_argument
(identifier_verbose) identifier_verbose
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_x_scale) identifier_x_scale
(attribute
(identifier_self) identifier_self
(identifier_x_scale) identifier_x_scale
)attribute
)keyword_argument
(keyword_argument
(identifier_tr_solver) identifier_tr_solver
(attribute
(identifier_self) identifier_self
(identifier_tr_solver) identifier_tr_solver
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(attribute
(identifier_final_estimate) identifier_final_estimate
(identifier_x) identifier_x
)attribute
(attribute
(identifier_final_estimate) identifier_final_estimate
(identifier_cost) identifier_cost
)attribute
)expression_list
)return_statement
)block
)function_definition
)module | Estimate centers and widths
Parameters
----------
unique_R : a list of array,
Each element contains unique value in one dimension of
coordinate matrix R.
inds : a list of array,
Each element contains the indices to reconstruct one
dimension of original cooridnate matrix from the unique
array.
X : 2D array, with shape [n_voxel, n_tr]
fMRI data from one subject.
W : 2D array, with shape [K, n_tr]
The weight matrix.
init_centers : 2D array, with shape [K, n_dim]
The initial values of centers.
init_widths : 1D array
The initial values of widths.
template_centers: 1D array
The template prior on centers
template_widths: 1D array
The template prior on widths
template_centers_mean_cov: 2D array, with shape [K, cov_size]
The template prior on centers' mean
template_widths_mean_var_reci: 1D array
The reciprocal of template prior on variance of widths' mean
Returns
-------
final_estimate.x: 1D array
The newly estimated centers and widths.
final_estimate.cost: float
The cost value. |
(module
(function_definition
(function_name__GetCachedEntryDataTypeMap) function_name__GetCachedEntryDataTypeMap
(parameters
(identifier_self) identifier_self
(identifier_format_type) identifier_format_type
(identifier_value_data) identifier_value_data
(identifier_cached_entry_offset) identifier_cached_entry_offset
)parameters
(block
(if_statement
(comparison_operator
(identifier_format_type) identifier_format_type
(attribute
(identifier_self) identifier_self
(identifier__SUPPORTED_FORMAT_TYPES) identifier__SUPPORTED_FORMAT_TYPES
)attribute
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_ParseError) identifier_ParseError
)attribute
(argument_list
(call
(attribute
(string_'Unsupported format type: {0:d}') string_'Unsupported format type: {0:d}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_format_type) identifier_format_type
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_data_type_map_name) identifier_data_type_map_name
(string_'') string_''
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_format_type) identifier_format_type
(attribute
(identifier_self) identifier_self
(identifier__FORMAT_TYPE_XP) identifier__FORMAT_TYPE_XP
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data_type_map_name) identifier_data_type_map_name
(string_'appcompatcache_cached_entry_xp_32bit') string_'appcompatcache_cached_entry_xp_32bit'
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_format_type) identifier_format_type
(tuple
(attribute
(identifier_self) identifier_self
(identifier__FORMAT_TYPE_8) identifier__FORMAT_TYPE_8
)attribute
(attribute
(identifier_self) identifier_self
(identifier__FORMAT_TYPE_10) identifier__FORMAT_TYPE_10
)attribute
)tuple
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data_type_map_name) identifier_data_type_map_name
(string_'appcompatcache_cached_entry_header_8') string_'appcompatcache_cached_entry_header_8'
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_cached_entry) identifier_cached_entry
(call
(attribute
(identifier_self) identifier_self
(identifier__ParseCommon2003CachedEntry) identifier__ParseCommon2003CachedEntry
)attribute
(argument_list
(identifier_value_data) identifier_value_data
(identifier_cached_entry_offset) identifier_cached_entry_offset
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(attribute
(identifier_cached_entry) identifier_cached_entry
(identifier_path_offset_32bit) identifier_path_offset_32bit
)attribute
(integer_0) integer_0
)comparison_operator
(comparison_operator
(attribute
(identifier_cached_entry) identifier_cached_entry
(identifier_path_offset_64bit) identifier_path_offset_64bit
)attribute
(integer_0) integer_0
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_number_of_bits) identifier_number_of_bits
(string_'64') string_'64'
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_number_of_bits) identifier_number_of_bits
(string_'32') string_'32'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_format_type) identifier_format_type
(attribute
(identifier_self) identifier_self
(identifier__FORMAT_TYPE_2003) identifier__FORMAT_TYPE_2003
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data_type_map_name) identifier_data_type_map_name
(parenthesized_expression
(call
(attribute
(string_'appcompatcache_cached_entry_2003_{0:s}bit') string_'appcompatcache_cached_entry_2003_{0:s}bit'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_number_of_bits) identifier_number_of_bits
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_format_type) identifier_format_type
(attribute
(identifier_self) identifier_self
(identifier__FORMAT_TYPE_VISTA) identifier__FORMAT_TYPE_VISTA
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data_type_map_name) identifier_data_type_map_name
(parenthesized_expression
(call
(attribute
(string_'appcompatcache_cached_entry_vista_{0:s}bit') string_'appcompatcache_cached_entry_vista_{0:s}bit'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_number_of_bits) identifier_number_of_bits
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_format_type) identifier_format_type
(attribute
(identifier_self) identifier_self
(identifier__FORMAT_TYPE_7) identifier__FORMAT_TYPE_7
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data_type_map_name) identifier_data_type_map_name
(parenthesized_expression
(call
(attribute
(string_'appcompatcache_cached_entry_7_{0:s}bit') string_'appcompatcache_cached_entry_7_{0:s}bit'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_number_of_bits) identifier_number_of_bits
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)else_clause
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__GetDataTypeMap) identifier__GetDataTypeMap
)attribute
(argument_list
(identifier_data_type_map_name) identifier_data_type_map_name
)argument_list
)call
)return_statement
)block
)function_definition
)module | Determines the cached entry data type map.
Args:
format_type (int): format type.
value_data (bytes): value data.
cached_entry_offset (int): offset of the first cached entry data
relative to the start of the value data.
Returns:
dtfabric.DataTypeMap: data type map which contains a data type definition,
such as a structure, that can be mapped onto binary data or None
if the data type map is not defined.
Raises:
ParseError: if the cached entry data type map cannot be determined. |
(module
(function_definition
(function_name__unhandled_event_default) function_name__unhandled_event_default
(parameters
(identifier_event) identifier_event
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_event) identifier_event
(identifier_KeyboardEvent) identifier_KeyboardEvent
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_c) identifier_c
(attribute
(identifier_event) identifier_event
(identifier_key_code) identifier_key_code
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_c) identifier_c
(tuple
(call
(identifier_ord) identifier_ord
(argument_list
(string_"X") string_"X"
)argument_list
)call
(call
(identifier_ord) identifier_ord
(argument_list
(string_"x") string_"x"
)argument_list
)call
(call
(identifier_ord) identifier_ord
(argument_list
(string_"Q") string_"Q"
)argument_list
)call
(call
(identifier_ord) identifier_ord
(argument_list
(string_"q") string_"q"
)argument_list
)call
)tuple
)comparison_operator
(block
(raise_statement
(call
(identifier_StopApplication) identifier_StopApplication
(argument_list
(string_"User terminated app") string_"User terminated app"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_c) identifier_c
(tuple
(call
(identifier_ord) identifier_ord
(argument_list
(string_" ") string_" "
)argument_list
)call
(call
(identifier_ord) identifier_ord
(argument_list
(string_"\n") string_"\n"
)argument_list
)call
(call
(identifier_ord) identifier_ord
(argument_list
(string_"\r") string_"\r"
)argument_list
)call
)tuple
)comparison_operator
(block
(raise_statement
(call
(identifier_NextScene) identifier_NextScene
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Default unhandled event handler for handling simple scene navigation. |
(module
(function_definition
(function_name_Find) function_name_Find
(parameters
(identifier_cls) identifier_cls
(identifier_setting_matcher) identifier_setting_matcher
(default_parameter
(identifier_port_path) identifier_port_path
(None) None
)default_parameter
(default_parameter
(identifier_serial) identifier_serial
(None) None
)default_parameter
(default_parameter
(identifier_timeout_ms) identifier_timeout_ms
(None) None
)default_parameter
)parameters
(block
(if_statement
(identifier_port_path) identifier_port_path
(block
(expression_statement
(assignment
(identifier_device_matcher) identifier_device_matcher
(call
(attribute
(identifier_cls) identifier_cls
(identifier_PortPathMatcher) identifier_PortPathMatcher
)attribute
(argument_list
(identifier_port_path) identifier_port_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_usb_info) identifier_usb_info
(identifier_port_path) identifier_port_path
)assignment
)expression_statement
)block
(elif_clause
(identifier_serial) identifier_serial
(block
(expression_statement
(assignment
(identifier_device_matcher) identifier_device_matcher
(call
(attribute
(identifier_cls) identifier_cls
(identifier_SerialMatcher) identifier_SerialMatcher
)attribute
(argument_list
(identifier_serial) identifier_serial
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_usb_info) identifier_usb_info
(identifier_serial) identifier_serial
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_device_matcher) identifier_device_matcher
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_usb_info) identifier_usb_info
(string_'first') string_'first'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier_FindFirst) identifier_FindFirst
)attribute
(argument_list
(identifier_setting_matcher) identifier_setting_matcher
(identifier_device_matcher) identifier_device_matcher
(keyword_argument
(identifier_usb_info) identifier_usb_info
(identifier_usb_info) identifier_usb_info
)keyword_argument
(keyword_argument
(identifier_timeout_ms) identifier_timeout_ms
(identifier_timeout_ms) identifier_timeout_ms
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets the first device that matches according to the keyword args. |
(module
(function_definition
(function_name_enable_vmm_statistics) function_name_enable_vmm_statistics
(parameters
(identifier_self) identifier_self
(identifier_enable) identifier_enable
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_enable) identifier_enable
(identifier_bool) identifier_bool
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"enable can only be an instance of type bool") string_"enable can only be an instance of type bool"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__call) identifier__call
)attribute
(argument_list
(string_"enableVMMStatistics") string_"enableVMMStatistics"
(keyword_argument
(identifier_in_p) identifier_in_p
(list
(identifier_enable) identifier_enable
)list
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Enables or disables collection of VMM RAM statistics.
in enable of type bool
True enables statistics collection.
raises :class:`VBoxErrorInvalidVmState`
Machine session is not open.
raises :class:`VBoxErrorInvalidObjectState`
Session type is not direct. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.