sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_diagonalSize) function_name_diagonalSize
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_szs) identifier_szs
(list_comprehension
(call
(attribute
(identifier_a) identifier_a
(identifier_diagonalSize) identifier_diagonalSize
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_a) identifier_a
(attribute
(identifier_self) identifier_self
(identifier_actors) identifier_actors
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_max) identifier_max
)attribute
(argument_list
(identifier_szs) identifier_szs
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the maximum diagonal size of the ``Actors`` of the ``Assembly``. |
(module
(function_definition
(function_name__get_opts_seaborn) function_name__get_opts_seaborn
(parameters
(identifier_self) identifier_self
(identifier_opts) identifier_opts
(identifier_style) identifier_style
)parameters
(block
(if_statement
(comparison_operator
(identifier_opts) identifier_opts
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_chart_opts) identifier_chart_opts
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_opts) identifier_opts
(dictionary
)dictionary
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_opts) identifier_opts
(attribute
(identifier_self) identifier_self
(identifier_chart_opts) identifier_chart_opts
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_style) identifier_style
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_chart_style) identifier_chart_style
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_style) identifier_style
(attribute
(identifier_self) identifier_self
(identifier_chart_style) identifier_chart_style
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_style) identifier_style
(dictionary
)dictionary
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_opts) identifier_opts
(identifier_style) identifier_style
)expression_list
)return_statement
)block
)function_definition
)module | Initialialize for chart rendering |
(module
(function_definition
(function_name_is_list) function_name_is_list
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(identifier_get_data) identifier_get_data
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_data) identifier_data
(identifier_key) identifier_key
)subscript
(tuple
(identifier_tuple) identifier_tuple
(identifier_list) identifier_list
)tuple
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return True if variable is a list or a tuple |
(module
(function_definition
(function_name_create_convert_sbml_id_function) function_name_create_convert_sbml_id_function
(parameters
(default_parameter
(identifier_compartment_prefix) identifier_compartment_prefix
(string_'C_') string_'C_'
)default_parameter
(default_parameter
(identifier_reaction_prefix) identifier_reaction_prefix
(string_'R_') string_'R_'
)default_parameter
(default_parameter
(identifier_compound_prefix) identifier_compound_prefix
(string_'M_') string_'M_'
)default_parameter
(default_parameter
(identifier_decode_id) identifier_decode_id
(identifier_entry_id_from_cobra_encoding) identifier_entry_id_from_cobra_encoding
)default_parameter
)parameters
(block
(function_definition
(function_name_convert_sbml_id) function_name_convert_sbml_id
(parameters
(identifier_entry) identifier_entry
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_entry) identifier_entry
(identifier_BaseCompartmentEntry) identifier_BaseCompartmentEntry
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(identifier_compartment_prefix) identifier_compartment_prefix
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_entry) identifier_entry
(identifier_BaseReactionEntry) identifier_BaseReactionEntry
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(identifier_reaction_prefix) identifier_reaction_prefix
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_entry) identifier_entry
(identifier_BaseCompoundEntry) identifier_BaseCompoundEntry
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(identifier_compound_prefix) identifier_compound_prefix
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(expression_statement
(assignment
(identifier_new_id) identifier_new_id
(attribute
(identifier_entry) identifier_entry
(identifier_id) identifier_id
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_decode_id) identifier_decode_id
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_new_id) identifier_new_id
(call
(identifier_decode_id) identifier_decode_id
(argument_list
(identifier_new_id) identifier_new_id
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_prefix) identifier_prefix
(None) None
)comparison_operator
(call
(attribute
(identifier_new_id) identifier_new_id
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_prefix) identifier_prefix
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_new_id) identifier_new_id
(subscript
(identifier_new_id) identifier_new_id
(slice
(call
(identifier_len) identifier_len
(argument_list
(identifier_prefix) identifier_prefix
)argument_list
)call
(colon) colon
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_new_id) identifier_new_id
)return_statement
)block
)function_definition
(return_statement
(identifier_convert_sbml_id) identifier_convert_sbml_id
)return_statement
)block
)function_definition
)module | Create function for converting SBML IDs.
The returned function will strip prefixes, decode the ID using the provided
function. These prefixes are common on IDs in SBML models because the IDs
live in a global namespace. |
(module
(function_definition
(function_name_process_tokendef) function_name_process_tokendef
(parameters
(identifier_cls) identifier_cls
(identifier_name) identifier_name
(default_parameter
(identifier_tokendefs) identifier_tokendefs
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_processed) identifier_processed
(assignment
(subscript
(attribute
(identifier_cls) identifier_cls
(identifier__all_tokens) identifier__all_tokens
)attribute
(identifier_name) identifier_name
)subscript
(dictionary
)dictionary
)assignment
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tokendefs) identifier_tokendefs
(boolean_operator
(identifier_tokendefs) identifier_tokendefs
(subscript
(attribute
(identifier_cls) identifier_cls
(identifier_tokens) identifier_tokens
)attribute
(identifier_name) identifier_name
)subscript
)boolean_operator
)assignment
)expression_statement
(for_statement
(identifier_state) identifier_state
(call
(identifier_list) identifier_list
(argument_list
(identifier_tokendefs) identifier_tokendefs
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier__process_state) identifier__process_state
)attribute
(argument_list
(identifier_tokendefs) identifier_tokendefs
(identifier_processed) identifier_processed
(identifier_state) identifier_state
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_processed) identifier_processed
)return_statement
)block
)function_definition
)module | Preprocess a dictionary of token definitions. |
(module
(function_definition
(function_name_validate_maximum) function_name_validate_maximum
(parameters
(identifier_value) identifier_value
(identifier_maximum) identifier_maximum
(identifier_is_exclusive) identifier_is_exclusive
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(identifier_is_exclusive) identifier_is_exclusive
(block
(expression_statement
(assignment
(identifier_comparison_text) identifier_comparison_text
(string_"less than") string_"less than"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_compare_fn) identifier_compare_fn
(attribute
(identifier_operator) identifier_operator
(identifier_lt) identifier_lt
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_comparison_text) identifier_comparison_text
(string_"less than or equal to") string_"less than or equal to"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_compare_fn) identifier_compare_fn
(attribute
(identifier_operator) identifier_operator
(identifier_le) identifier_le
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(not_operator
(call
(identifier_compare_fn) identifier_compare_fn
(argument_list
(identifier_value) identifier_value
(identifier_maximum) identifier_maximum
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValidationError) identifier_ValidationError
(argument_list
(call
(attribute
(subscript
(subscript
(identifier_MESSAGES) identifier_MESSAGES
(string_'maximum') string_'maximum'
)subscript
(string_'invalid') string_'invalid'
)subscript
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_value) identifier_value
(identifier_comparison_text) identifier_comparison_text
(identifier_maximum) identifier_maximum
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Validator function for validating that a value does not violate it's
maximum allowed value. This validation can be inclusive, or exclusive of
the maximum depending on the value of `is_exclusive`. |
(module
(function_definition
(function_name_coerce) function_name_coerce
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__coerce) identifier__coerce
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_self) identifier_self
(identifier__coerce) identifier__coerce
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Coerce a cleaned value. |
(module
(function_definition
(function_name_find_hostname) function_name_find_hostname
(parameters
(default_parameter
(identifier_use_chroot) identifier_use_chroot
(True) True
)default_parameter
)parameters
(block
(for_statement
(identifier_chroot_file) identifier_chroot_file
(identifier_CHROOT_FILES) identifier_CHROOT_FILES
(block
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_chroot_file) identifier_chroot_file
)argument_list
)call
(as_pattern_target
(identifier_handle) identifier_handle
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_first_line) identifier_first_line
(call
(identifier_next) identifier_next
(argument_list
(identifier_handle) identifier_handle
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(identifier_first_line) identifier_first_line
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_name) identifier_name
(block
(return_statement
(identifier_name) identifier_name
)return_statement
)block
)if_statement
)block
)with_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_socket) identifier_socket
(identifier_gethostname) identifier_gethostname
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Find the host name to include in log messages.
:param use_chroot: Use the name of the chroot when inside a chroot?
(boolean, defaults to :data:`True`)
:returns: A suitable host name (a string).
Looks for :data:`CHROOT_FILES` that have a nonempty first line (taken to be
the chroot name). If none are found then :func:`socket.gethostname()` is
used as a fall back. |
(module
(function_definition
(function_name_extend) function_name_extend
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_other) identifier_other
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(identifier_self) identifier_self
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_self) identifier_self
(identifier_key) identifier_key
)subscript
(call
(identifier__shallowcopy) identifier__shallowcopy
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(subscript
(identifier_self) identifier_self
(identifier_key) identifier_key
)subscript
(identifier_extend) identifier_extend
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module | Appends the segmentlists from other to the corresponding
segmentlists in self, adding new segmentslists to self as
needed. |
(module
(function_definition
(function_name_loadMsbwt) function_name_loadMsbwt
(parameters
(identifier_self) identifier_self
(identifier_dirName) identifier_dirName
(identifier_logger) identifier_logger
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_dirName) identifier_dirName
)attribute
(identifier_dirName) identifier_dirName
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_bwt) identifier_bwt
)attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_load) identifier_load
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_dirName) identifier_dirName
)attribute
(string_'/comp_msbwt.npy') string_'/comp_msbwt.npy'
)binary_operator
(string_'r') string_'r'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_constructTotalCounts) identifier_constructTotalCounts
)attribute
(argument_list
(identifier_logger) identifier_logger
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_constructIndexing) identifier_constructIndexing
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_constructFMIndex) identifier_constructFMIndex
)attribute
(argument_list
(identifier_logger) identifier_logger
)argument_list
)call
)expression_statement
)block
)function_definition
)module | This functions loads a BWT file and constructs total counts, indexes start positions, and constructs an FM index in memory
@param dirName - the directory to load, inside should be '<DIR>/comp_msbwt.npy' or it will fail |
(module
(function_definition
(function_name__post) function_name__post
(parameters
(identifier_self) identifier_self
(identifier_endpoint) identifier_endpoint
(identifier_data) identifier_data
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__request) identifier__request
)attribute
(argument_list
(identifier_endpoint) identifier_endpoint
(string_'post') string_'post'
(identifier_data) identifier_data
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Method to perform POST request on the API.
:param endpoint: Endpoint of the API.
:param data: POST DATA for the request.
:param kwargs: Other keyword arguments for requests.
:return: Response of the POST request. |
(module
(function_definition
(function_name_cleanup) function_name_cleanup
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__processing_stop) identifier__processing_stop
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__wakeup_processing_thread) identifier__wakeup_processing_thread
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__processing_stopped_event) identifier__processing_stopped_event
)attribute
(identifier_wait) identifier_wait
)attribute
(argument_list
(integer_3) integer_3
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Stop backgroud thread and cleanup resources |
(module
(function_definition
(function_name_file_copy) function_name_file_copy
(parameters
(default_parameter
(identifier_src) identifier_src
(None) None
)default_parameter
(default_parameter
(identifier_dest) identifier_dest
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_conn) identifier_conn
(call
(subscript
(identifier___proxy__) identifier___proxy__
(string_'junos.conn') string_'junos.conn'
)subscript
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'out') string_'out'
)subscript
(True) True
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_src) identifier_src
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'message') string_'message'
)subscript
(string_'Please provide the absolute path of the file to be copied.') string_'Please provide the absolute path of the file to be copied.'
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'out') string_'out'
)subscript
(False) False
)assignment
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_src) identifier_src
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'message') string_'message'
)subscript
(string_'Invalid source file path') string_'Invalid source file path'
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'out') string_'out'
)subscript
(False) False
)assignment
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_dest) identifier_dest
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'message') string_'message'
)subscript
(string_'Please provide the absolute path of the destination where the file is to be copied.') string_'Please provide the absolute path of the destination where the file is to be copied.'
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'out') string_'out'
)subscript
(False) False
)assignment
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)if_statement
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_SCP) identifier_SCP
(argument_list
(identifier_conn) identifier_conn
(keyword_argument
(identifier_progress) identifier_progress
(True) True
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_scp) identifier_scp
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_scp) identifier_scp
(identifier_put) identifier_put
)attribute
(argument_list
(identifier_src) identifier_src
(identifier_dest) identifier_dest
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'message') string_'message'
)subscript
(call
(attribute
(string_'Successfully copied file from {0} to {1}') string_'Successfully copied file from {0} to {1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_src) identifier_src
(identifier_dest) identifier_dest
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_exception) identifier_exception
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'message') string_'message'
)subscript
(call
(attribute
(string_'Could not copy file : "{0}"') string_'Could not copy file : "{0}"'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_exception) identifier_exception
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'out') string_'out'
)subscript
(False) False
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Copies the file from the local device to the junos device
src
The source path where the file is kept.
dest
The destination path on the where the file will be copied
CLI Example:
.. code-block:: bash
salt 'device_name' junos.file_copy /home/m2/info.txt info_copy.txt |
(module
(function_definition
(function_name_to_unit) function_name_to_unit
(parameters
(identifier_self) identifier_self
(identifier_unit) identifier_unit
)parameters
(block
(expression_statement
(assignment
(identifier_new_data_c) identifier_new_data_c
(call
(attribute
(identifier_self) identifier_self
(identifier_duplicate) identifier_duplicate
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_new_data_c) identifier_new_data_c
(identifier_convert_to_unit) identifier_convert_to_unit
)attribute
(argument_list
(identifier_unit) identifier_unit
)argument_list
)call
)expression_statement
(return_statement
(identifier_new_data_c) identifier_new_data_c
)return_statement
)block
)function_definition
)module | Return a Data Collection in the input unit. |
(module
(function_definition
(function_name_generic_translate) function_name_generic_translate
(parameters
(default_parameter
(identifier_frm) identifier_frm
(None) None
)default_parameter
(default_parameter
(identifier_to) identifier_to
(None) None
)default_parameter
(default_parameter
(identifier_delete) identifier_delete
(string_'') string_''
)default_parameter
)parameters
(block
(if_statement
(identifier_PY2) identifier_PY2
(block
(expression_statement
(assignment
(identifier_delete_dict) identifier_delete_dict
(call
(attribute
(identifier_dict) identifier_dict
(identifier_fromkeys) identifier_fromkeys
)attribute
(generator_expression
(call
(identifier_ord) identifier_ord
(argument_list
(call
(identifier_unicode) identifier_unicode
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)argument_list
)call
(for_in_clause
(identifier_d) identifier_d
(identifier_delete) identifier_delete
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_frm) identifier_frm
(None) None
)comparison_operator
(comparison_operator
(identifier_to) identifier_to
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_string_trans) identifier_string_trans
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_unicode_table) identifier_unicode_table
(identifier_delete_dict) identifier_delete_dict
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_string_trans) identifier_string_trans
(call
(attribute
(identifier_string) identifier_string
(identifier_maketrans) identifier_maketrans
)attribute
(argument_list
(identifier_frm) identifier_frm
(identifier_to) identifier_to
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_unicode_table) identifier_unicode_table
(call
(identifier_dict) identifier_dict
(argument_list
(generator_expression
(tuple
(call
(identifier_ord) identifier_ord
(argument_list
(call
(identifier_unicode) identifier_unicode
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)argument_list
)call
(call
(identifier_unicode) identifier_unicode
(argument_list
(identifier_t) identifier_t
)argument_list
)call
)tuple
(for_in_clause
(pattern_list
(identifier_f) identifier_f
(identifier_t) identifier_t
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_frm) identifier_frm
(identifier_to) identifier_to
)argument_list
)call
)for_in_clause
)generator_expression
(dictionary_splat
(identifier_delete_dict) identifier_delete_dict
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_string_args) identifier_string_args
(conditional_expression
(tuple
(identifier_string_trans) identifier_string_trans
(identifier_delete) identifier_delete
)tuple
(identifier_delete) identifier_delete
(tuple
(identifier_string_trans) identifier_string_trans
)tuple
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_translate_args) identifier_translate_args
(list
(identifier_string_args) identifier_string_args
(tuple
(identifier_unicode_table) identifier_unicode_table
)tuple
)list
)assignment
)expression_statement
(function_definition
(function_name_translate) function_name_translate
(parameters
(identifier_basestr) identifier_basestr
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(subscript
(identifier_translate_args) identifier_translate_args
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_basestr) identifier_basestr
(identifier_unicode) identifier_unicode
)argument_list
)call
)subscript
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_basestr) identifier_basestr
(identifier_translate) identifier_translate
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)return_statement
)block
)function_definition
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_string_trans) identifier_string_trans
(call
(attribute
(identifier_str) identifier_str
(identifier_maketrans) identifier_maketrans
)attribute
(argument_list
(boolean_operator
(identifier_frm) identifier_frm
(string_'') string_''
)boolean_operator
(boolean_operator
(identifier_to) identifier_to
(string_'') string_''
)boolean_operator
(boolean_operator
(identifier_delete) identifier_delete
(string_'') string_''
)boolean_operator
)argument_list
)call
)assignment
)expression_statement
(function_definition
(function_name_translate) function_name_translate
(parameters
(identifier_basestr) identifier_basestr
)parameters
(block
(return_statement
(call
(attribute
(identifier_basestr) identifier_basestr
(identifier_translate) identifier_translate
)attribute
(argument_list
(identifier_string_trans) identifier_string_trans
)argument_list
)call
)return_statement
)block
)function_definition
)block
)else_clause
)if_statement
(return_statement
(identifier_translate) identifier_translate
)return_statement
)block
)function_definition
)module | Return a translate function for strings and unicode.
>>> translate = generic_translate('Hoy', 'Bad', 'r')
>>> translate('Holy grail')
'Bald gail'
>>> translate(u'Holy grail') == u'Bald gail'
True |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_example) identifier_example
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_this_dir) identifier_this_dir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_realpath) identifier_realpath
)attribute
(argument_list
(identifier___file__) identifier___file__
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_example_dir) identifier_example_dir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_this_dir) identifier_this_dir
(attribute
(identifier_os) identifier_os
(identifier_pardir) identifier_pardir
)attribute
(string_"examples") string_"examples"
(identifier_example) identifier_example
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copytree) identifier_copytree
)attribute
(argument_list
(identifier_example_dir) identifier_example_dir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(identifier_os) identifier_os
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)argument_list
)call
(identifier_example) identifier_example
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_log) identifier_log
(argument_list
(string_"Example created.") string_"Example created."
(keyword_argument
(identifier_delay) identifier_delay
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(call
(attribute
(string_"Example '{}' does not exist.") string_"Example '{}' does not exist."
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_example) identifier_example
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)except_clause
(except_clause
(identifier_OSError) identifier_OSError
(block
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(call
(attribute
(string_"Example '{}' already exists here.") string_"Example '{}' already exists here."
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_example) identifier_example
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Create a copy of the given example. |
(module
(function_definition
(function_name_send_position_setpoint) function_name_send_position_setpoint
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_z) identifier_z
(identifier_yaw) identifier_yaw
)parameters
(block
(expression_statement
(assignment
(identifier_pk) identifier_pk
(call
(identifier_CRTPPacket) identifier_CRTPPacket
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_pk) identifier_pk
(identifier_port) identifier_port
)attribute
(attribute
(identifier_CRTPPort) identifier_CRTPPort
(identifier_COMMANDER_GENERIC) identifier_COMMANDER_GENERIC
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_pk) identifier_pk
(identifier_data) identifier_data
)attribute
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(string_'<Bffff') string_'<Bffff'
(identifier_TYPE_POSITION) identifier_TYPE_POSITION
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_z) identifier_z
(identifier_yaw) identifier_yaw
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__cf) identifier__cf
)attribute
(identifier_send_packet) identifier_send_packet
)attribute
(argument_list
(identifier_pk) identifier_pk
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Control mode where the position is sent as absolute x,y,z coordinate in
meter and the yaw is the absolute orientation.
x and y are in m
yaw is in degrees |
(module
(function_definition
(function_name_reduce_by) function_name_reduce_by
(parameters
(identifier_self) identifier_self
(identifier_package_request) identifier_package_request
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_pr) identifier_pr
)attribute
(block
(expression_statement
(assignment
(identifier_reqstr) identifier_reqstr
(call
(identifier__short_req_str) identifier__short_req_str
(argument_list
(identifier_package_request) identifier_package_request
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pr) identifier_pr
)attribute
(identifier_passive) identifier_passive
)attribute
(argument_list
(string_"reducing %s wrt %s...") string_"reducing %s wrt %s..."
(identifier_self) identifier_self
(identifier_reqstr) identifier_reqstr
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier_solver) identifier_solver
)attribute
(identifier_optimised) identifier_optimised
)attribute
(block
(if_statement
(comparison_operator
(identifier_package_request) identifier_package_request
(attribute
(identifier_self) identifier_self
(identifier_been_reduced_by) identifier_been_reduced_by
)attribute
)comparison_operator
(block
(return_statement
(tuple
(identifier_self) identifier_self
(list
)list
)tuple
)return_statement
)block
)if_statement
)block
)if_statement
(if_statement
(boolean_operator
(parenthesized_expression
(comparison_operator
(attribute
(identifier_package_request) identifier_package_request
(identifier_range) identifier_range
)attribute
(None) None
)comparison_operator
)parenthesized_expression
(line_continuation_\) line_continuation_\
(parenthesized_expression
(comparison_operator
(attribute
(identifier_package_request) identifier_package_request
(identifier_name) identifier_name
)attribute
(attribute
(identifier_self) identifier_self
(identifier_fam_requires) identifier_fam_requires
)attribute
)comparison_operator
)parenthesized_expression
)boolean_operator
(block
(return_statement
(tuple
(identifier_self) identifier_self
(list
)list
)tuple
)return_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_solver) identifier_solver
)attribute
(identifier_timed) identifier_timed
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_solver) identifier_solver
)attribute
(identifier_reduction_time) identifier_reduction_time
)attribute
)argument_list
)call
)with_item
)with_clause
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__reduce_by) identifier__reduce_by
)attribute
(argument_list
(identifier_package_request) identifier_package_request
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Remove variants whos dependencies conflict with the given package
request.
Returns:
(VariantSlice, [Reduction]) tuple, where slice may be None if all
variants were reduced. |
(module
(function_definition
(function_name__iterslice) function_name__iterslice
(parameters
(identifier_self) identifier_self
(identifier_slice) identifier_slice
)parameters
(block
(expression_statement
(assignment
(identifier_indices) identifier_indices
(call
(identifier_range) identifier_range
(argument_list
(list_splat
(call
(attribute
(identifier_slice) identifier_slice
(identifier_indices) identifier_indices
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__records) identifier__records
)attribute
)argument_list
)call
)argument_list
)call
)list_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_is_attached) identifier_is_attached
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_rows) identifier_rows
(call
(attribute
(identifier_self) identifier_self
(identifier__enum_attached_rows) identifier__enum_attached_rows
)attribute
(argument_list
(identifier_indices) identifier_indices
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_slice) identifier_slice
(identifier_step) identifier_step
)attribute
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_slice) identifier_slice
(identifier_step) identifier_step
)attribute
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_rows) identifier_rows
(call
(identifier_reversed) identifier_reversed
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(identifier_rows) identifier_rows
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_rows) identifier_rows
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_indices) identifier_indices
(subscript
(attribute
(identifier_self) identifier_self
(identifier__records) identifier__records
)attribute
(identifier_slice) identifier_slice
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_fields) identifier_fields
(attribute
(identifier_self) identifier_self
(identifier_fields) identifier_fields
)attribute
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_row) identifier_row
)pattern_list
(identifier_rows) identifier_rows
(block
(expression_statement
(yield
(call
(attribute
(identifier_Record) identifier_Record
(identifier__make) identifier__make
)attribute
(argument_list
(identifier_fields) identifier_fields
(identifier_row) identifier_row
(identifier_self) identifier_self
(identifier_i) identifier_i
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Yield records from a slice index. |
(module
(function_definition
(function_name___is_control_flow) function_name___is_control_flow
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_jump_instructions) identifier_jump_instructions
(tuple
(string_'jmp') string_'jmp'
(string_'jecxz') string_'jecxz'
(string_'jcxz') string_'jcxz'
(string_'ja') string_'ja'
(string_'jnbe') string_'jnbe'
(string_'jae') string_'jae'
(string_'jnb') string_'jnb'
(string_'jb') string_'jb'
(string_'jnae') string_'jnae'
(string_'jbe') string_'jbe'
(string_'jna') string_'jna'
(string_'jc') string_'jc'
(string_'je') string_'je'
(string_'jz') string_'jz'
(string_'jnc') string_'jnc'
(string_'jne') string_'jne'
(string_'jnz') string_'jnz'
(string_'jnp') string_'jnp'
(string_'jpo') string_'jpo'
(string_'jp') string_'jp'
(string_'jpe') string_'jpe'
(string_'jg') string_'jg'
(string_'jnle') string_'jnle'
(string_'jge') string_'jge'
(string_'jnl') string_'jnl'
(string_'jl') string_'jl'
(string_'jnge') string_'jnge'
(string_'jle') string_'jle'
(string_'jng') string_'jng'
(string_'jno') string_'jno'
(string_'jns') string_'jns'
(string_'jo') string_'jo'
(string_'js') string_'js'
)tuple
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_call_instructions) identifier_call_instructions
(tuple
(string_'call') string_'call'
(string_'ret') string_'ret'
(string_'retn') string_'retn'
)tuple
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_loop_instructions) identifier_loop_instructions
(tuple
(string_'loop') string_'loop'
(string_'loopz') string_'loopz'
(string_'loopnz') string_'loopnz'
(string_'loope') string_'loope'
(string_'loopne') string_'loopne'
)tuple
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_control_flow_instructions) identifier_control_flow_instructions
(binary_operator
(binary_operator
(identifier_call_instructions) identifier_call_instructions
(identifier_loop_instructions) identifier_loop_instructions
)binary_operator
(line_continuation_\) line_continuation_\
(identifier_jump_instructions) identifier_jump_instructions
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_isControlFlow) identifier_isControlFlow
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_instruction) identifier_instruction
(None) None
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_pc) identifier_pc
)attribute
(None) None
)comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_faultDisasm) identifier_faultDisasm
)attribute
)boolean_operator
(block
(for_statement
(identifier_disasm) identifier_disasm
(attribute
(identifier_self) identifier_self
(identifier_faultDisasm) identifier_faultDisasm
)attribute
(block
(if_statement
(comparison_operator
(subscript
(identifier_disasm) identifier_disasm
(integer_0) integer_0
)subscript
(attribute
(identifier_self) identifier_self
(identifier_pc) identifier_pc
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_instruction) identifier_instruction
(call
(attribute
(call
(attribute
(subscript
(identifier_disasm) identifier_disasm
(integer_2) integer_2
)subscript
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(if_statement
(identifier_instruction) identifier_instruction
(block
(for_statement
(identifier_x) identifier_x
(identifier_control_flow_instructions) identifier_control_flow_instructions
(block
(if_statement
(comparison_operator
(identifier_x) identifier_x
(identifier_instruction) identifier_instruction
)comparison_operator
(block
(expression_statement
(assignment
(identifier_isControlFlow) identifier_isControlFlow
(True) True
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(return_statement
(identifier_isControlFlow) identifier_isControlFlow
)return_statement
)block
)function_definition
)module | Private method to tell if the instruction pointed to by the program
counter is a control flow instruction.
Currently only works for x86 and amd64 architectures. |
(module
(function_definition
(function_name__map_arg_names) function_name__map_arg_names
(parameters
(identifier_source) identifier_source
(identifier_mapping) identifier_mapping
)parameters
(block
(return_statement
(dictionary_comprehension
(pair
(identifier_cartopy_name) identifier_cartopy_name
(subscript
(identifier_source) identifier_source
(identifier_cf_name) identifier_cf_name
)subscript
)pair
(for_in_clause
(pattern_list
(identifier_cartopy_name) identifier_cartopy_name
(identifier_cf_name) identifier_cf_name
)pattern_list
(identifier_mapping) identifier_mapping
)for_in_clause
(if_clause
(comparison_operator
(identifier_cf_name) identifier_cf_name
(identifier_source) identifier_source
)comparison_operator
)if_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | Map one set of keys to another. |
(module
(function_definition
(function_name_has_hardware_breakpoint) function_name_has_hardware_breakpoint
(parameters
(identifier_self) identifier_self
(identifier_dwThreadId) identifier_dwThreadId
(identifier_address) identifier_address
)parameters
(block
(if_statement
(comparison_operator
(identifier_dwThreadId) identifier_dwThreadId
(attribute
(identifier_self) identifier_self
(identifier___hardwareBP) identifier___hardwareBP
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_bpSet) identifier_bpSet
(subscript
(attribute
(identifier_self) identifier_self
(identifier___hardwareBP) identifier___hardwareBP
)attribute
(identifier_dwThreadId) identifier_dwThreadId
)subscript
)assignment
)expression_statement
(for_statement
(identifier_bp) identifier_bp
(identifier_bpSet) identifier_bpSet
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_bp) identifier_bp
(identifier_get_address) identifier_get_address
)attribute
(argument_list
)argument_list
)call
(identifier_address) identifier_address
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Checks if a hardware breakpoint is defined at the given address.
@see:
L{define_hardware_breakpoint},
L{get_hardware_breakpoint},
L{erase_hardware_breakpoint},
L{enable_hardware_breakpoint},
L{enable_one_shot_hardware_breakpoint},
L{disable_hardware_breakpoint}
@type dwThreadId: int
@param dwThreadId: Thread global ID.
@type address: int
@param address: Memory address of breakpoint.
@rtype: bool
@return: C{True} if the breakpoint is defined, C{False} otherwise. |
(module
(function_definition
(function_name_read_to_end) function_name_read_to_end
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_record) identifier_record
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_record) identifier_record
)attribute
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_member_info) identifier_member_info
)attribute
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_curr_offset) identifier_curr_offset
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
)assignment
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_b) identifier_b
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_record) identifier_record
)attribute
(identifier_raw_stream) identifier_raw_stream
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_BUFF_SIZE) identifier_BUFF_SIZE
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_b) identifier_b
)not_operator
(block
(break_statement
)break_statement
)block
)if_statement
)block
)while_statement
(expression_statement
(assignment
(pattern_list
(attribute
(identifier_self) identifier_self
(identifier_next_line) identifier_next_line
)attribute
(identifier_empty_size) identifier_empty_size
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__consume_blanklines) identifier__consume_blanklines
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
(binary_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_fh) identifier_fh
)attribute
(identifier_tell) identifier_tell
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_reader) identifier_reader
)attribute
(identifier_rem_length) identifier_rem_length
)attribute
(argument_list
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_next_line) identifier_next_line
)attribute
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_next_line) identifier_next_line
)attribute
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_length) identifier_length
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
(identifier_curr_offset) identifier_curr_offset
)binary_operator
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_reader) identifier_reader
)attribute
(identifier_decompressor) identifier_decompressor
)attribute
)not_operator
(block
(expression_statement
(augmented_assignment
(identifier_length) identifier_length
(identifier_empty_size) identifier_empty_size
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_member_info) identifier_member_info
)attribute
(tuple
(identifier_curr_offset) identifier_curr_offset
(identifier_length) identifier_length
)tuple
)assignment
)expression_statement
)block
)function_definition
)module | Read remainder of the stream
If a digester is included, update it
with the data read |
(module
(function_definition
(function_name_current) function_name_current
(parameters
(default_parameter
(identifier_sam) identifier_sam
(False) False
)default_parameter
)parameters
(block
(try_statement
(block
(if_statement
(identifier_sam) identifier_sam
(block
(expression_statement
(assignment
(identifier_user_name) identifier_user_name
(call
(attribute
(identifier_win32api) identifier_win32api
(identifier_GetUserNameEx) identifier_GetUserNameEx
)attribute
(argument_list
(attribute
(identifier_win32con) identifier_win32con
(identifier_NameSamCompatible) identifier_NameSamCompatible
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_user_name) identifier_user_name
(call
(attribute
(identifier_win32api) identifier_win32api
(identifier_GetUserName) identifier_GetUserName
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_pywintypes) identifier_pywintypes
(identifier_error) identifier_error
)attribute
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(string_'Failed to get current user') string_'Failed to get current user'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(string_'nbr: %s') string_'nbr: %s'
(attribute
(identifier_exc) identifier_exc
(identifier_winerror) identifier_winerror
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(string_'ctx: %s') string_'ctx: %s'
(attribute
(identifier_exc) identifier_exc
(identifier_funcname) identifier_funcname
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(string_'msg: %s') string_'msg: %s'
(attribute
(identifier_exc) identifier_exc
(identifier_strerror) identifier_strerror
)attribute
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(string_'Failed to get current user') string_'Failed to get current user'
(keyword_argument
(identifier_info) identifier_info
(identifier_exc) identifier_exc
)keyword_argument
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(not_operator
(identifier_user_name) identifier_user_name
)not_operator
(block
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(string_'Failed to get current user') string_'Failed to get current user'
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_user_name) identifier_user_name
)return_statement
)block
)function_definition
)module | Get the username that salt-minion is running under. If salt-minion is
running as a service it should return the Local System account. If salt is
running from a command prompt it should return the username that started the
command prompt.
.. versionadded:: 2015.5.6
Args:
sam (bool, optional): False returns just the username without any domain
notation. True returns the domain with the username in the SAM
format. Ie: ``domain\\username``
Returns:
str: Returns username
CLI Example:
.. code-block:: bash
salt '*' user.current |
(module
(function_definition
(function_name_as_patch) function_name_as_patch
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(import_from_statement
(dotted_name
(identifier_matplotlib) identifier_matplotlib
(identifier_patches) identifier_patches
)dotted_name
(dotted_name
(identifier_Rectangle) identifier_Rectangle
)dotted_name
)import_from_statement
(return_statement
(call
(identifier_Rectangle) identifier_Rectangle
(argument_list
(keyword_argument
(identifier_xy) identifier_xy
(tuple
(subscript
(attribute
(identifier_self) identifier_self
(identifier_extent) identifier_extent
)attribute
(integer_0) integer_0
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_extent) identifier_extent
)attribute
(integer_2) integer_2
)subscript
)tuple
)keyword_argument
(keyword_argument
(identifier_width) identifier_width
(subscript
(attribute
(identifier_self) identifier_self
(identifier_shape) identifier_shape
)attribute
(integer_1) integer_1
)subscript
)keyword_argument
(keyword_argument
(identifier_height) identifier_height
(subscript
(attribute
(identifier_self) identifier_self
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a `matplotlib.patches.Rectangle` that represents the
bounding box.
Parameters
----------
kwargs
Any keyword arguments accepted by
`matplotlib.patches.Patch`.
Returns
-------
result : `matplotlib.patches.Rectangle`
A matplotlib rectangular patch.
Examples
--------
.. plot::
:include-source:
import matplotlib.pyplot as plt
from photutils import BoundingBox
bbox = BoundingBox(2, 7, 3, 8)
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
np.random.seed(12345)
ax.imshow(np.random.random((10, 10)), interpolation='nearest',
cmap='viridis')
ax.add_patch(bbox.as_patch(facecolor='none', edgecolor='white',
lw=2.)) |
(module
(function_definition
(function_name_list_anime_series) function_name_list_anime_series
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_sort) identifier_sort
(attribute
(identifier_META) identifier_META
(identifier_SORT_ALPHA) identifier_SORT_ALPHA
)attribute
)default_parameter
(default_parameter
(identifier_limit) identifier_limit
(attribute
(identifier_META) identifier_META
(identifier_MAX_SERIES) identifier_MAX_SERIES
)attribute
)default_parameter
(default_parameter
(identifier_offset) identifier_offset
(integer_0) integer_0
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__android_api) identifier__android_api
)attribute
(identifier_list_series) identifier_list_series
)attribute
(argument_list
(keyword_argument
(identifier_media_type) identifier_media_type
(attribute
(identifier_ANDROID) identifier_ANDROID
(identifier_MEDIA_TYPE_ANIME) identifier_MEDIA_TYPE_ANIME
)attribute
)keyword_argument
(keyword_argument
(identifier_filter) identifier_filter
(identifier_sort) identifier_sort
)keyword_argument
(keyword_argument
(identifier_limit) identifier_limit
(identifier_limit) identifier_limit
)keyword_argument
(keyword_argument
(identifier_offset) identifier_offset
(identifier_offset) identifier_offset
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Get a list of anime series
@param str sort pick how results should be sorted, should be one
of META.SORT_*
@param int limit limit number of series to return, there doesn't
seem to be an upper bound
@param int offset list series starting from this offset, for pagination
@return list<crunchyroll.models.Series> |
(module
(function_definition
(function_name_from_textfile) function_name_from_textfile
(parameters
(identifier_cls) identifier_cls
(identifier_textfile) identifier_textfile
(default_parameter
(identifier_workers) identifier_workers
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_job_size) identifier_job_size
(integer_1000) integer_1000
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_c) identifier_c
(call
(identifier_Counter) identifier_Counter
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_textfile) identifier_textfile
(identifier_string_types) identifier_string_types
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_textfile) identifier_textfile
(call
(identifier_TextFile) identifier_TextFile
(argument_list
(identifier_textfile) identifier_textfile
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_result) identifier_result
(call
(attribute
(identifier_textfile) identifier_textfile
(identifier_apply) identifier_apply
)attribute
(argument_list
(identifier_count) identifier_count
(identifier_workers) identifier_workers
(identifier_job_size) identifier_job_size
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_c) identifier_c
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier_CountedVocabulary) identifier_CountedVocabulary
(argument_list
(keyword_argument
(identifier_word_count) identifier_word_count
(identifier_c) identifier_c
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Count the set of words appeared in a text file.
Args:
textfile (string): The name of the text file or `TextFile` object.
min_count (integer): Minimum number of times a word/token appeared in the document
to be considered part of the vocabulary.
workers (integer): Number of parallel workers to read the file simulatenously.
job_size (integer): Size of the batch send to each worker.
most_frequent (integer): if no min_count is specified, consider the most frequent k words for the vocabulary.
Returns:
A vocabulary of the most frequent words appeared in the document. |
(module
(function_definition
(function_name_from_string) function_name_from_string
(parameters
(identifier_cls) identifier_cls
(identifier_string) identifier_string
(default_parameter
(identifier_format_) identifier_format_
(None) None
)default_parameter
(default_parameter
(identifier_fps) identifier_fps
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_fp) identifier_fp
(call
(attribute
(identifier_io) identifier_io
(identifier_StringIO) identifier_StringIO
)attribute
(argument_list
(identifier_string) identifier_string
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier_from_file) identifier_from_file
)attribute
(argument_list
(identifier_fp) identifier_fp
(identifier_format_) identifier_format_
(keyword_argument
(identifier_fps) identifier_fps
(identifier_fps) identifier_fps
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Load subtitle file from string.
See :meth:`SSAFile.load()` for full description.
Arguments:
string (str): Subtitle file in a string. Note that the string
must be Unicode (in Python 2).
Returns:
SSAFile
Example:
>>> text = '''
... 1
... 00:00:00,000 --> 00:00:05,000
... An example SubRip file.
... '''
>>> subs = SSAFile.from_string(text) |
(module
(function_definition
(function_name_list_records) function_name_list_records
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_rtype) identifier_rtype
(None) None
)default_parameter
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_content) identifier_content
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(identifier_rtype) identifier_rtype
)not_operator
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'type') string_'type'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(string_'Parameter "type" is deprecated, use "rtype" instead.') string_'Parameter "type" is deprecated, use "rtype" instead.'
(identifier_DeprecationWarning) identifier_DeprecationWarning
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_rtype) identifier_rtype
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'type') string_'type'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__list_records) identifier__list_records
)attribute
(argument_list
(keyword_argument
(identifier_rtype) identifier_rtype
(identifier_rtype) identifier_rtype
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_content) identifier_content
(identifier_content) identifier_content
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | List all records. Return an empty list if no records found
type, name and content are used to filter records.
If possible filter during the query, otherwise filter after response is received. |
(module
(function_definition
(function_name_push) function_name_push
(parameters
(identifier_self) identifier_self
(identifier_cart) identifier_cart
(default_parameter
(identifier_env) identifier_env
(None) None
)default_parameter
(default_parameter
(identifier_callback) identifier_callback
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_juicer) identifier_juicer
(identifier_utils) identifier_utils
)attribute
(identifier_Log) identifier_Log
)attribute
(identifier_log_debug) identifier_log_debug
)attribute
(argument_list
(binary_operator
(string_"Initializing push of cart '%s'") string_"Initializing push of cart '%s'"
(attribute
(identifier_cart) identifier_cart
(identifier_cart_name) identifier_cart_name
)attribute
)binary_operator
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(identifier_env) identifier_env
)not_operator
(block
(expression_statement
(assignment
(identifier_env) identifier_env
(subscript
(attribute
(identifier_self) identifier_self
(identifier__defaults) identifier__defaults
)attribute
(string_'start_in') string_'start_in'
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_cart) identifier_cart
(identifier_current_env) identifier_current_env
)attribute
(identifier_env) identifier_env
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_sign_cart_for_env_maybe) identifier_sign_cart_for_env_maybe
)attribute
(argument_list
(identifier_cart) identifier_cart
(identifier_env) identifier_env
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_upload) identifier_upload
)attribute
(argument_list
(identifier_env) identifier_env
(identifier_cart) identifier_cart
(identifier_callback) identifier_callback
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | `cart` - Release cart to push items from
`callback` - Optional callback to call if juicer.utils.upload_rpm succeeds
Pushes the items in a release cart to the pre-release environment. |
(module
(function_definition
(function_name_vector_check) function_name_vector_check
(parameters
(identifier_vector) identifier_vector
)parameters
(block
(for_statement
(identifier_i) identifier_i
(identifier_vector) identifier_vector
(block
(if_statement
(comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_i) identifier_i
(identifier_int) identifier_int
)argument_list
)call
(False) False
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_i) identifier_i
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Check input vector items type.
:param vector: input vector
:type vector : list
:return: bool |
(module
(function_definition
(function_name_alias_log_entry) function_name_alias_log_entry
(parameters
(identifier_self) identifier_self
(identifier_log_entry_id) identifier_log_entry_id
(identifier_alias_id) identifier_alias_id
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__alias_id) identifier__alias_id
)attribute
(argument_list
(keyword_argument
(identifier_primary_id) identifier_primary_id
(identifier_log_entry_id) identifier_log_entry_id
)keyword_argument
(keyword_argument
(identifier_equivalent_id) identifier_equivalent_id
(identifier_alias_id) identifier_alias_id
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Adds an ``Id`` to a ``LogEntry`` for the purpose of creating compatibility.
The primary ``Id`` of the ``LogEntry`` is determined by the
provider. The new ``Id`` performs as an alias to the primary
``Id``. If the alias is a pointer to another log entry, it is
reassigned to the given log entry ``Id``.
arg: log_entry_id (osid.id.Id): the ``Id`` of a ``LogEntry``
arg: alias_id (osid.id.Id): the alias ``Id``
raise: AlreadyExists - ``alias_id`` is already assigned
raise: NotFound - ``log_entry_id`` not found
raise: NullArgument - ``log_entry_id`` or ``alias_id`` is
``null``
raise: OperationFailed - unable to complete request
raise: PermissionDenied - authorization failure
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name__get_metadata) function_name__get_metadata
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_is_done) identifier_is_done
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Cannot get metadata for a program that isn't completed.") string_"Cannot get metadata for a program that isn't completed."
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__raw) identifier__raw
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"metadata") string_"metadata"
(dictionary
)dictionary
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
(None) None
)argument_list
)call
)return_statement
)block
)function_definition
)module | If the server returned a metadata dictionary, retrieve a particular key from it. If no
metadata exists, or the key does not exist, return None.
:param key: Metadata key, e.g., "gate_depth"
:return: The associated metadata.
:rtype: Optional[Any] |
(module
(function_definition
(function_name_list_assets) function_name_list_assets
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_requests_session) identifier_requests_session
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__base_url) identifier__base_url
)attribute
)argument_list
)call
(identifier_content) identifier_content
)attribute
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_response) identifier_response
)not_operator
(block
(return_statement
(dictionary
)dictionary
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_asset_list) identifier_asset_list
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(expression_statement
(assignment
(identifier_asset_list) identifier_asset_list
(None) None
)assignment
)expression_statement
)block
)except_clause
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(identifier_response) identifier_response
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'UTF-8') string_'UTF-8'
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(not_operator
(identifier_asset_list) identifier_asset_list
)not_operator
(block
(return_statement
(list
)list
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'ids') string_'ids'
(identifier_asset_list) identifier_asset_list
)comparison_operator
(block
(return_statement
(subscript
(identifier_asset_list) identifier_asset_list
(string_'ids') string_'ids'
)subscript
)return_statement
)block
)if_statement
(return_statement
(list
)list
)return_statement
)block
)function_definition
)module | List all the assets registered in the aquarius instance.
:return: List of DID string |
(module
(function_definition
(function_name_get_collection_sizes) function_name_get_collection_sizes
(parameters
(identifier_obj) identifier_obj
(typed_default_parameter
(identifier_collections) identifier_collections
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_Tuple) identifier_Tuple
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(default_parameter
(identifier_get_only_non_empty) identifier_get_only_non_empty
(False) False
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_pympler) identifier_pympler
)dotted_name
(dotted_name
(identifier_asizeof) identifier_asizeof
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_collections) identifier_collections
(boolean_operator
(identifier_collections) identifier_collections
(tuple
(identifier_list) identifier_list
(identifier_dict) identifier_dict
(identifier_set) identifier_set
(identifier_deque) identifier_deque
(attribute
(identifier_abc) identifier_abc
(identifier_Sized) identifier_Sized
)attribute
)tuple
)boolean_operator
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_collections) identifier_collections
(identifier_tuple) identifier_tuple
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_collections) identifier_collections
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_collections) identifier_collections
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_attr_name) identifier_attr_name
(call
(identifier_dir) identifier_dir
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_attr) identifier_attr
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_obj) identifier_obj
(identifier_attr_name) identifier_attr_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_attr) identifier_attr
(identifier_collections) identifier_collections
)argument_list
)call
(parenthesized_expression
(boolean_operator
(not_operator
(identifier_get_only_non_empty) identifier_get_only_non_empty
)not_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_attr) identifier_attr
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_attr_name) identifier_attr_name
(call
(identifier_len) identifier_len
(argument_list
(identifier_attr) identifier_attr
)argument_list
)call
(call
(attribute
(identifier_asizeof) identifier_asizeof
(identifier_asizeof) identifier_asizeof
)attribute
(argument_list
(identifier_attr) identifier_attr
(keyword_argument
(identifier_detail) identifier_detail
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)tuple
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Iterates over `collections` of the gives object and gives its byte size
and number of items in collection |
(module
(function_definition
(function_name_get_image) function_name_get_image
(parameters
(identifier_server_) identifier_server_
)parameters
(block
(expression_statement
(assignment
(identifier_images) identifier_images
(call
(identifier_avail_images) identifier_avail_images
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_server_image) identifier_server_image
(call
(attribute
(identifier_six) identifier_six
(identifier_text_type) identifier_text_type
)attribute
(argument_list
(call
(attribute
(identifier_config) identifier_config
(identifier_get_cloud_config_value) identifier_get_cloud_config_value
)attribute
(argument_list
(string_'image') string_'image'
(identifier_server_) identifier_server_
(identifier___opts__) identifier___opts__
(keyword_argument
(identifier_search_global) identifier_search_global
(False) False
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_image) identifier_image
(identifier_images) identifier_images
(block
(if_statement
(comparison_operator
(identifier_server_image) identifier_server_image
(tuple
(subscript
(subscript
(identifier_images) identifier_images
(identifier_image) identifier_image
)subscript
(string_'name') string_'name'
)subscript
(subscript
(subscript
(identifier_images) identifier_images
(identifier_image) identifier_image
)subscript
(string_'id') string_'id'
)subscript
)tuple
)comparison_operator
(block
(return_statement
(subscript
(subscript
(identifier_images) identifier_images
(identifier_image) identifier_image
)subscript
(string_'id') string_'id'
)subscript
)return_statement
)block
)if_statement
)block
)for_statement
(raise_statement
(call
(identifier_SaltCloudNotFound) identifier_SaltCloudNotFound
(argument_list
(call
(attribute
(string_'The specified image, \'{0}\', could not be found.') string_'The specified image, \'{0}\', could not be found.'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_server_image) identifier_server_image
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Return the image object to use. |
(module
(function_definition
(function_name_QueryLayer) function_name_QueryLayer
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_text) identifier_text
(None) None
)default_parameter
(default_parameter
(identifier_Geometry) identifier_Geometry
(None) None
)default_parameter
(default_parameter
(identifier_inSR) identifier_inSR
(None) None
)default_parameter
(default_parameter
(identifier_spatialRel) identifier_spatialRel
(string_'esriSpatialRelIntersects') string_'esriSpatialRelIntersects'
)default_parameter
(default_parameter
(identifier_where) identifier_where
(None) None
)default_parameter
(default_parameter
(identifier_outFields) identifier_outFields
(None) None
)default_parameter
(default_parameter
(identifier_returnGeometry) identifier_returnGeometry
(None) None
)default_parameter
(default_parameter
(identifier_outSR) identifier_outSR
(None) None
)default_parameter
(default_parameter
(identifier_objectIds) identifier_objectIds
(None) None
)default_parameter
(default_parameter
(identifier_time) identifier_time
(None) None
)default_parameter
(default_parameter
(identifier_maxAllowableOffset) identifier_maxAllowableOffset
(None) None
)default_parameter
(default_parameter
(identifier_returnIdsOnly) identifier_returnIdsOnly
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_inSR) identifier_inSR
)not_operator
(block
(if_statement
(identifier_Geometry) identifier_Geometry
(block
(expression_statement
(assignment
(identifier_inSR) identifier_inSR
(attribute
(identifier_Geometry) identifier_Geometry
(identifier_spatialReference) identifier_spatialReference
)attribute
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(attribute
(identifier_self) identifier_self
(identifier__get_subfolder) identifier__get_subfolder
)attribute
(argument_list
(string_"./query") string_"./query"
(identifier_JsonResult) identifier_JsonResult
(dictionary
(pair
(string_'text') string_'text'
(identifier_text) identifier_text
)pair
(pair
(string_'geometry') string_'geometry'
(identifier_geometry) identifier_geometry
)pair
(pair
(string_'inSR') string_'inSR'
(identifier_inSR) identifier_inSR
)pair
(pair
(string_'spatialRel') string_'spatialRel'
(identifier_spatialRel) identifier_spatialRel
)pair
(pair
(string_'where') string_'where'
(identifier_where) identifier_where
)pair
(pair
(string_'outFields') string_'outFields'
(identifier_outFields) identifier_outFields
)pair
(pair
(string_'returnGeometry') string_'returnGeometry'
(identifier_returnGeometry) identifier_returnGeometry
)pair
(pair
(string_'outSR') string_'outSR'
(identifier_outSR) identifier_outSR
)pair
(pair
(string_'objectIds') string_'objectIds'
(identifier_objectIds) identifier_objectIds
)pair
(pair
(string_'time') string_'time'
(call
(attribute
(identifier_utils) identifier_utils
(identifier_pythonvaluetotime) identifier_pythonvaluetotime
)attribute
(argument_list
(identifier_time) identifier_time
)argument_list
)call
)pair
(pair
(string_'maxAllowableOffset') string_'maxAllowableOffset'
(identifier_maxAllowableOffset) identifier_maxAllowableOffset
)pair
(pair
(string_'returnIdsOnly') string_'returnIdsOnly'
(identifier_returnIdsOnly) identifier_returnIdsOnly
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_gptypes) identifier_gptypes
(identifier_GPFeatureRecordSetLayer) identifier_GPFeatureRecordSetLayer
)attribute
(identifier_fromJson) identifier_fromJson
)attribute
(argument_list
(attribute
(identifier_out) identifier_out
(identifier__json_struct) identifier__json_struct
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | The query operation is performed on a layer resource. The result
of this operation is a resultset resource. This resource provides
information about query results including the values for the fields
requested by the user. If you request geometry information, the
geometry of each result is also returned in the resultset.
B{Spatial Relation Options:}
- esriSpatialRelIntersects
- esriSpatialRelContains
- esriSpatialRelCrosses
- esriSpatialRelEnvelopeIntersects
- esriSpatialRelIndexIntersects
- esriSpatialRelOverlaps
- esriSpatialRelTouches
- esriSpatialRelWithin |
(module
(function_definition
(function_name_fbp_op) function_name_fbp_op
(parameters
(identifier_ray_trafo) identifier_ray_trafo
(default_parameter
(identifier_padding) identifier_padding
(True) True
)default_parameter
(default_parameter
(identifier_filter_type) identifier_filter_type
(string_'Ram-Lak') string_'Ram-Lak'
)default_parameter
(default_parameter
(identifier_frequency_scaling) identifier_frequency_scaling
(float_1.0) float_1.0
)default_parameter
)parameters
(block
(return_statement
(binary_operator
(attribute
(identifier_ray_trafo) identifier_ray_trafo
(identifier_adjoint) identifier_adjoint
)attribute
(call
(identifier_fbp_filter_op) identifier_fbp_filter_op
(argument_list
(identifier_ray_trafo) identifier_ray_trafo
(identifier_padding) identifier_padding
(identifier_filter_type) identifier_filter_type
(identifier_frequency_scaling) identifier_frequency_scaling
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Create filtered back-projection operator from a `RayTransform`.
The filtered back-projection is an approximate inverse to the ray
transform.
Parameters
----------
ray_trafo : `RayTransform`
The ray transform (forward operator) whose approximate inverse should
be computed. Its geometry has to be any of the following
`Parallel2dGeometry` : Exact reconstruction
`Parallel3dAxisGeometry` : Exact reconstruction
`FanBeamGeometry` : Approximate reconstruction, correct in limit of fan
angle = 0.
Only flat detectors are supported (det_curvature_radius is None).
`ConeFlatGeometry`, pitch = 0 (circular) : Approximate reconstruction,
correct in the limit of fan angle = 0 and cone angle = 0.
`ConeFlatGeometry`, pitch > 0 (helical) : Very approximate unless a
`tam_danielson_window` is used. Accurate with the window.
Other geometries: Not supported
padding : bool, optional
If the data space should be zero padded. Without padding, the data may
be corrupted due to the circular convolution used. Using padding makes
the algorithm slower.
filter_type : optional
The type of filter to be used.
The predefined options are, in approximate order from most noise
senstive to least noise sensitive:
``'Ram-Lak'``, ``'Shepp-Logan'``, ``'Cosine'``, ``'Hamming'`` and
``'Hann'``.
A callable can also be provided. It must take an array of values in
[0, 1] and return the filter for these frequencies.
frequency_scaling : float, optional
Relative cutoff frequency for the filter.
The normalized frequencies are rescaled so that they fit into the range
[0, frequency_scaling]. Any frequency above ``frequency_scaling`` is
set to zero.
Returns
-------
fbp_op : `Operator`
Approximate inverse operator of ``ray_trafo``.
See Also
--------
tam_danielson_window : Windowing for helical data.
parker_weighting : Windowing for overcomplete fan-beam data. |
(module
(function_definition
(function_name__to_representation) function_name__to_representation
(parameters
(identifier_self) identifier_self
(identifier_instance) identifier_instance
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_enable_optimization) identifier_enable_optimization
)attribute
(block
(expression_statement
(assignment
(identifier_representation) identifier_representation
(call
(attribute
(identifier_self) identifier_self
(identifier__faster_to_representation) identifier__faster_to_representation
)attribute
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_representation) identifier_representation
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_WithDynamicSerializerMixin) identifier_WithDynamicSerializerMixin
(identifier_self) identifier_self
)argument_list
)call
(identifier_to_representation) identifier_to_representation
)attribute
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(attribute
(identifier_settings) identifier_settings
(identifier_ENABLE_LINKS) identifier_ENABLE_LINKS
)attribute
(block
(expression_statement
(assignment
(identifier_representation) identifier_representation
(call
(identifier_merge_link_object) identifier_merge_link_object
(argument_list
(identifier_self) identifier_self
(identifier_representation) identifier_representation
(identifier_instance) identifier_instance
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_debug) identifier_debug
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_representation) identifier_representation
(string_'_meta') string_'_meta'
)subscript
(dictionary
(pair
(string_'id') string_'id'
(attribute
(identifier_instance) identifier_instance
(identifier_pk) identifier_pk
)attribute
)pair
(pair
(string_'type') string_'type'
(call
(attribute
(identifier_self) identifier_self
(identifier_get_plural_name) identifier_get_plural_name
)attribute
(argument_list
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_tag_dict) identifier_tag_dict
(argument_list
(identifier_representation) identifier_representation
(keyword_argument
(identifier_serializer) identifier_serializer
(identifier_self) identifier_self
)keyword_argument
(keyword_argument
(identifier_instance) identifier_instance
(identifier_instance) identifier_instance
)keyword_argument
(keyword_argument
(identifier_embed) identifier_embed
(attribute
(identifier_self) identifier_self
(identifier_embed) identifier_embed
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Uncached `to_representation`. |
(module
(function_definition
(function_name_CreateWeightTableECMWF) function_name_CreateWeightTableECMWF
(parameters
(identifier_in_ecmwf_nc) identifier_in_ecmwf_nc
(identifier_in_catchment_shapefile) identifier_in_catchment_shapefile
(identifier_river_id) identifier_river_id
(identifier_in_connectivity_file) identifier_in_connectivity_file
(identifier_out_weight_table) identifier_out_weight_table
(default_parameter
(identifier_area_id) identifier_area_id
(None) None
)default_parameter
(default_parameter
(identifier_file_geodatabase) identifier_file_geodatabase
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data_ecmwf_nc) identifier_data_ecmwf_nc
(call
(identifier_Dataset) identifier_Dataset
(argument_list
(identifier_in_ecmwf_nc) identifier_in_ecmwf_nc
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_variables_list) identifier_variables_list
(call
(attribute
(attribute
(identifier_data_ecmwf_nc) identifier_data_ecmwf_nc
(identifier_variables) identifier_variables
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_in_ecmwf_lat_var) identifier_in_ecmwf_lat_var
(string_'lat') string_'lat'
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'latitude') string_'latitude'
(identifier_variables_list) identifier_variables_list
)comparison_operator
(block
(expression_statement
(assignment
(identifier_in_ecmwf_lat_var) identifier_in_ecmwf_lat_var
(string_'latitude') string_'latitude'
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_in_ecmwf_lon_var) identifier_in_ecmwf_lon_var
(string_'lon') string_'lon'
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'longitude') string_'longitude'
(identifier_variables_list) identifier_variables_list
)comparison_operator
(block
(expression_statement
(assignment
(identifier_in_ecmwf_lon_var) identifier_in_ecmwf_lon_var
(string_'longitude') string_'longitude'
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ecmwf_lon) identifier_ecmwf_lon
(line_continuation_\) line_continuation_\
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(subscript
(subscript
(attribute
(identifier_data_ecmwf_nc) identifier_data_ecmwf_nc
(identifier_variables) identifier_variables
)attribute
(identifier_in_ecmwf_lon_var) identifier_in_ecmwf_lon_var
)subscript
(slice
(colon) colon
)slice
)subscript
(integer_180) integer_180
)binary_operator
)parenthesized_expression
(integer_360) integer_360
)binary_operator
(integer_180) integer_180
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ecmwf_lat) identifier_ecmwf_lat
(subscript
(subscript
(attribute
(identifier_data_ecmwf_nc) identifier_data_ecmwf_nc
(identifier_variables) identifier_variables
)attribute
(identifier_in_ecmwf_lat_var) identifier_in_ecmwf_lat_var
)subscript
(slice
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_data_ecmwf_nc) identifier_data_ecmwf_nc
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_rtree_create_weight_table) identifier_rtree_create_weight_table
(argument_list
(identifier_ecmwf_lat) identifier_ecmwf_lat
(identifier_ecmwf_lon) identifier_ecmwf_lon
(identifier_in_catchment_shapefile) identifier_in_catchment_shapefile
(identifier_river_id) identifier_river_id
(identifier_in_connectivity_file) identifier_in_connectivity_file
(identifier_out_weight_table) identifier_out_weight_table
(identifier_file_geodatabase) identifier_file_geodatabase
(identifier_area_id) identifier_area_id
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create Weight Table for ECMWF Grids
.. note:: The grids are in the RAPIDpy package under
the gis/lsm_grids folder.
Parameters
----------
in_ecmwf_nc: str
Path to the ECMWF NetCDF grid.
in_catchment_shapefile: str
Path to the Catchment shapefile.
river_id: str
The name of the field with the river ID (Ex. 'DrainLnID' or 'LINKNO').
in_connectivity_file: str
The path to the RAPID connectivity file.
out_weight_table: str
The path to the output weight table file.
area_id: str, optional
The name of the field with the area of each catchment stored in meters
squared. Default is it calculate the area.
file_geodatabase: str, optional
Path to the file geodatabase. If you use this option, in_drainage_line
is the name of the stream network feature class.
(WARNING: Not always stable with GDAL.)
Example:
.. code:: python
from RAPIDpy.gis.weight import CreateWeightTableECMWF
CreateWeightTableECMWF(
in_ecmwf_nc='/path/to/runoff_ecmwf_grid.nc'
in_catchment_shapefile='/path/to/catchment.shp',
river_id='LINKNO',
in_connectivity_file='/path/to/rapid_connect.csv',
out_weight_table='/path/to/ecmwf_weight.csv',
) |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_files) identifier_files
)parameters
(block
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_files) identifier_files
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
(string_'str') string_'str'
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__files) identifier__files
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_files) identifier_files
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__files) identifier__files
)attribute
(identifier_extend) identifier_extend
)attribute
(argument_list
(identifier_files) identifier_files
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Adds files to check.
Args:
files: List of files to check. |
(module
(function_definition
(function_name_ensure_sink) function_name_ensure_sink
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_topic_info) identifier_topic_info
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pubsub) identifier_pubsub
)attribute
(identifier_ensure_topic) identifier_ensure_topic
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_scope) identifier_scope
(identifier_sink_path) identifier_sink_path
(identifier_sink_info) identifier_sink_info
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_sink) identifier_get_sink
)attribute
(argument_list
(identifier_topic_info) identifier_topic_info
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_client) identifier_client
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_client) identifier_client
)attribute
(argument_list
(string_'logging') string_'logging'
(string_'v2') string_'v2'
(binary_operator
(string_'%s.sinks') string_'%s.sinks'
(identifier_scope) identifier_scope
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_sink) identifier_sink
(call
(attribute
(identifier_client) identifier_client
(identifier_execute_command) identifier_execute_command
)attribute
(argument_list
(string_'get') string_'get'
(dictionary
(pair
(string_'sinkName') string_'sinkName'
(identifier_sink_path) identifier_sink_path
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_HttpError) identifier_HttpError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_e) identifier_e
(identifier_resp) identifier_resp
)attribute
(identifier_status) identifier_status
)attribute
(integer_404) integer_404
)comparison_operator
(block
(raise_statement
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sink) identifier_sink
(call
(attribute
(identifier_client) identifier_client
(identifier_execute_command) identifier_execute_command
)attribute
(argument_list
(string_'create') string_'create'
(identifier_sink_info) identifier_sink_info
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_delta) identifier_delta
(call
(identifier_delta_resource) identifier_delta_resource
(argument_list
(identifier_sink) identifier_sink
(subscript
(identifier_sink_info) identifier_sink_info
(string_'body') string_'body'
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_delta) identifier_delta
(block
(expression_statement
(assignment
(subscript
(identifier_sink_info) identifier_sink_info
(string_'updateMask') string_'updateMask'
)subscript
(call
(attribute
(string_',') string_','
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_delta) identifier_delta
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_sink_info) identifier_sink_info
(string_'sinkName') string_'sinkName'
)subscript
(identifier_sink_path) identifier_sink_path
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_sink_info) identifier_sink_info
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'parent') string_'parent'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_sink) identifier_sink
(call
(attribute
(identifier_client) identifier_client
(identifier_execute_command) identifier_execute_command
)attribute
(argument_list
(string_'update') string_'update'
(identifier_sink_info) identifier_sink_info
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(return_statement
(identifier_sink_path) identifier_sink_path
)return_statement
)block
)else_clause
)if_statement
)block
)else_clause
)try_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pubsub) identifier_pubsub
)attribute
(identifier_ensure_iam) identifier_ensure_iam
)attribute
(argument_list
(keyword_argument
(identifier_publisher) identifier_publisher
(subscript
(identifier_sink) identifier_sink
(string_'writerIdentity') string_'writerIdentity'
)subscript
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_sink_path) identifier_sink_path
)return_statement
)block
)function_definition
)module | Ensure the log sink and its pub sub topic exist. |
(module
(function_definition
(function_name_out) function_name_out
(parameters
(identifier_msg) identifier_msg
(default_parameter
(identifier_error) identifier_error
(False) False
)default_parameter
)parameters
(block
(expression_statement
(string_" Send message to shell ") string_" Send message to shell "
)expression_statement
(expression_statement
(assignment
(identifier_pipe) identifier_pipe
(identifier_stdout) identifier_stdout
)assignment
)expression_statement
(if_statement
(identifier_error) identifier_error
(block
(expression_statement
(assignment
(identifier_pipe) identifier_pipe
(identifier_stderr) identifier_stderr
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(identifier_color_msg) identifier_color_msg
(argument_list
(identifier_msg) identifier_msg
(string_"warning") string_"warning"
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_pipe) identifier_pipe
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(string_"%s\n") string_"%s\n"
(identifier_msg) identifier_msg
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Send message to shell |
(module
(function_definition
(function_name_readResources) function_name_readResources
(parameters
(identifier_self) identifier_self
(identifier_elem) identifier_elem
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_iterator) identifier_iterator
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_elem) identifier_elem
(string_'iter') string_'iter'
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(expression_statement
(assignment
(identifier_iterator) identifier_iterator
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_elem) identifier_elem
(string_'getiterator') string_'getiterator'
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
(for_statement
(identifier_include) identifier_include
(call
(identifier_iterator) identifier_iterator
(argument_list
(string_"include") string_"include"
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_loc) identifier_loc
(call
(attribute
(attribute
(identifier_include) identifier_include
(identifier_attrib) identifier_attrib
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"location") string_"location"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_loc) identifier_loc
(call
(attribute
(identifier_loc) identifier_loc
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.qrc') string_'.qrc'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_mname) identifier_mname
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(binary_operator
(subscript
(identifier_loc) identifier_loc
(slice
(colon) colon
(unary_operator
(integer_4) integer_4
)unary_operator
)slice
)subscript
(attribute
(identifier_self) identifier_self
(identifier__resource_suffix) identifier__resource_suffix
)attribute
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_mname) identifier_mname
(attribute
(identifier_self) identifier_self
(identifier_resources) identifier_resources
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_resources) identifier_resources
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_mname) identifier_mname
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Read a "resources" tag and add the module to import to the parser's
list of them. |
(module
(function_definition
(function_name_parse_unicode) function_name_parse_unicode
(parameters
(identifier_self) identifier_self
(identifier_i) identifier_i
(default_parameter
(identifier_wide) identifier_wide
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(conditional_expression
(call
(attribute
(identifier_self) identifier_self
(identifier_get_wide_unicode) identifier_get_wide_unicode
)attribute
(argument_list
(identifier_i) identifier_i
)argument_list
)call
(identifier_wide) identifier_wide
(call
(attribute
(identifier_self) identifier_self
(identifier_get_narrow_unicode) identifier_get_narrow_unicode
)attribute
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_int) identifier_int
(argument_list
(identifier_text) identifier_text
(integer_16) integer_16
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_single) identifier_single
(call
(attribute
(identifier_self) identifier_self
(identifier_get_single_stack) identifier_get_single_stack
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_span_stack) identifier_span_stack
)attribute
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_self) identifier_self
(identifier_convert_case) identifier_convert_case
)attribute
(argument_list
(call
(identifier_chr) identifier_chr
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(subscript
(attribute
(identifier_self) identifier_self
(identifier_span_stack) identifier_span_stack
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(conditional_expression
(call
(identifier_ord) identifier_ord
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_convert_case) identifier_convert_case
)attribute
(argument_list
(identifier_text) identifier_text
(identifier_single) identifier_single
)argument_list
)call
)argument_list
)call
(comparison_operator
(identifier_single) identifier_single
(None) None
)comparison_operator
(call
(identifier_ord) identifier_ord
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
)block
(elif_clause
(identifier_single) identifier_single
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_ord) identifier_ord
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_convert_case) identifier_convert_case
)attribute
(argument_list
(call
(identifier_chr) identifier_chr
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier_single) identifier_single
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(if_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_use_format) identifier_use_format
)attribute
(comparison_operator
(identifier_value) identifier_value
(identifier__CURLY_BRACKETS_ORD) identifier__CURLY_BRACKETS_ORD
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_handle_format) identifier_handle_format
)attribute
(argument_list
(call
(identifier_chr) identifier_chr
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier_i) identifier_i
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_value) identifier_value
(integer_0xFF) integer_0xFF
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_result) identifier_result
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_'\\%03o') string_'\\%03o'
(identifier_value) identifier_value
)binary_operator
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_result) identifier_result
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_chr) identifier_chr
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Parse Unicode. |
(module
(function_definition
(function_name_load_segment) function_name_load_segment
(parameters
(identifier_self) identifier_self
(identifier_f) identifier_f
(default_parameter
(identifier_is_irom_segment) identifier_is_irom_segment
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_file_offs) identifier_file_offs
(call
(attribute
(identifier_f) identifier_f
(identifier_tell) identifier_tell
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(tuple_pattern
(identifier_offset) identifier_offset
(identifier_size) identifier_size
)tuple_pattern
(call
(attribute
(identifier_struct) identifier_struct
(identifier_unpack) identifier_unpack
)attribute
(argument_list
(string_'<II') string_'<II'
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
(integer_8) integer_8
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_warn_if_unusual_segment) identifier_warn_if_unusual_segment
)attribute
(argument_list
(identifier_offset) identifier_offset
(identifier_size) identifier_size
(identifier_is_irom_segment) identifier_is_irom_segment
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_segment_data) identifier_segment_data
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_size) identifier_size
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_segment_data) identifier_segment_data
)argument_list
)call
(identifier_size) identifier_size
)comparison_operator
(block
(raise_statement
(call
(identifier_FatalError) identifier_FatalError
(argument_list
(binary_operator
(string_'End of file reading segment 0x%x, length %d (actual length %d)') string_'End of file reading segment 0x%x, length %d (actual length %d)'
(tuple
(identifier_offset) identifier_offset
(identifier_size) identifier_size
(call
(identifier_len) identifier_len
(argument_list
(identifier_segment_data) identifier_segment_data
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_segment) identifier_segment
(call
(identifier_ImageSegment) identifier_ImageSegment
(argument_list
(identifier_offset) identifier_offset
(identifier_segment_data) identifier_segment_data
(identifier_file_offs) identifier_file_offs
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_segments) identifier_segments
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_segment) identifier_segment
)argument_list
)call
)expression_statement
(return_statement
(identifier_segment) identifier_segment
)return_statement
)block
)function_definition
)module | Load the next segment from the image file |
(module
(function_definition
(function_name_to_value) function_name_to_value
(parameters
(identifier_original_string) identifier_original_string
(default_parameter
(identifier_corenlp_value) identifier_corenlp_value
(None) None
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_original_string) identifier_original_string
(identifier_Value) identifier_Value
)argument_list
)call
(block
(return_statement
(identifier_original_string) identifier_original_string
)return_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_corenlp_value) identifier_corenlp_value
)not_operator
(block
(expression_statement
(assignment
(identifier_corenlp_value) identifier_corenlp_value
(identifier_original_string) identifier_original_string
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_amount) identifier_amount
(call
(attribute
(identifier_NumberValue) identifier_NumberValue
(identifier_parse) identifier_parse
)attribute
(argument_list
(identifier_corenlp_value) identifier_corenlp_value
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_amount) identifier_amount
(None) None
)comparison_operator
(block
(return_statement
(call
(identifier_NumberValue) identifier_NumberValue
(argument_list
(identifier_amount) identifier_amount
(identifier_original_string) identifier_original_string
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ymd) identifier_ymd
(call
(attribute
(identifier_DateValue) identifier_DateValue
(identifier_parse) identifier_parse
)attribute
(argument_list
(identifier_corenlp_value) identifier_corenlp_value
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ymd) identifier_ymd
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(subscript
(identifier_ymd) identifier_ymd
(integer_1) integer_1
)subscript
(subscript
(identifier_ymd) identifier_ymd
(integer_2) integer_2
)subscript
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(return_statement
(call
(identifier_NumberValue) identifier_NumberValue
(argument_list
(subscript
(identifier_ymd) identifier_ymd
(integer_0) integer_0
)subscript
(identifier_original_string) identifier_original_string
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_DateValue) identifier_DateValue
(argument_list
(subscript
(identifier_ymd) identifier_ymd
(integer_0) integer_0
)subscript
(subscript
(identifier_ymd) identifier_ymd
(integer_1) integer_1
)subscript
(subscript
(identifier_ymd) identifier_ymd
(integer_2) integer_2
)subscript
(identifier_original_string) identifier_original_string
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)if_statement
(return_statement
(call
(identifier_StringValue) identifier_StringValue
(argument_list
(identifier_original_string) identifier_original_string
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convert the string to Value object.
Args:
original_string (basestring): Original string
corenlp_value (basestring): Optional value returned from CoreNLP
Returns:
Value |
(module
(function_definition
(function_name_mklink) function_name_mklink
(parameters
)parameters
(block
(import_from_statement
(dotted_name
(identifier_optparse) identifier_optparse
)dotted_name
(dotted_name
(identifier_OptionParser) identifier_OptionParser
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(identifier_OptionParser) identifier_OptionParser
(argument_list
(keyword_argument
(identifier_usage) identifier_usage
(string_"usage: %prog [options] link target") string_"usage: %prog [options] link target"
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_option) identifier_add_option
)attribute
(argument_list
(string_'-d') string_'-d'
(string_'--directory') string_'--directory'
(keyword_argument
(identifier_help) identifier_help
(string_"Target is a directory (only necessary if not present)") string_"Target is a directory (only necessary if not present)"
)keyword_argument
(keyword_argument
(identifier_action) identifier_action
(string_"store_true") string_"store_true"
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_options) identifier_options
(identifier_args) identifier_args
)pattern_list
(call
(attribute
(identifier_parser) identifier_parser
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_link) identifier_link
(identifier_target) identifier_target
)pattern_list
(identifier_args) identifier_args
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_error) identifier_error
)attribute
(argument_list
(string_"incorrect number of arguments") string_"incorrect number of arguments"
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(identifier_symlink) identifier_symlink
(argument_list
(identifier_target) identifier_target
(identifier_link) identifier_link
(attribute
(identifier_options) identifier_options
(identifier_directory) identifier_directory
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(string_"Symbolic link created: %(link)s --> %(target)s\n") string_"Symbolic link created: %(link)s --> %(target)s\n"
(call
(identifier_vars) identifier_vars
(argument_list
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Like cmd.exe's mklink except it will infer directory status of the
target. |
(module
(function_definition
(function_name__build_fields) function_name__build_fields
(parameters
(identifier_self) identifier_self
(identifier_defaults) identifier_defaults
(identifier_fields) identifier_fields
)parameters
(block
(return_statement
(call
(identifier_dict) identifier_dict
(argument_list
(binary_operator
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(call
(attribute
(identifier_defaults) identifier_defaults
(identifier_get) identifier_get
)attribute
(argument_list
(string_'@fields') string_'@fields'
(dictionary
)dictionary
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_fields) identifier_fields
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return provided fields including any in defaults
>>> f = LogstashFormatter()
# Verify that ``fields`` is used
>>> f._build_fields({}, {'foo': 'one'}) == \
{'foo': 'one'}
True
# Verify that ``@fields`` in ``defaults`` is used
>>> f._build_fields({'@fields': {'bar': 'two'}}, {'foo': 'one'}) == \
{'foo': 'one', 'bar': 'two'}
True
# Verify that ``fields`` takes precedence
>>> f._build_fields({'@fields': {'foo': 'two'}}, {'foo': 'one'}) == \
{'foo': 'one'}
True |
(module
(function_definition
(function_name_as_proximal_lang_operator) function_name_as_proximal_lang_operator
(parameters
(identifier_op) identifier_op
(default_parameter
(identifier_norm_bound) identifier_norm_bound
(None) None
)default_parameter
)parameters
(block
(function_definition
(function_name_forward) function_name_forward
(parameters
(identifier_inp) identifier_inp
(identifier_out) identifier_out
)parameters
(block
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(slice
(colon) colon
)slice
)subscript
(call
(attribute
(call
(identifier_op) identifier_op
(argument_list
(identifier_inp) identifier_inp
)argument_list
)call
(identifier_asarray) identifier_asarray
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
(function_definition
(function_name_adjoint) function_name_adjoint
(parameters
(identifier_inp) identifier_inp
(identifier_out) identifier_out
)parameters
(block
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(slice
(colon) colon
)slice
)subscript
(call
(attribute
(call
(attribute
(identifier_op) identifier_op
(identifier_adjoint) identifier_adjoint
)attribute
(argument_list
(identifier_inp) identifier_inp
)argument_list
)call
(identifier_asarray) identifier_asarray
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
(import_statement
(dotted_name
(identifier_proximal) identifier_proximal
)dotted_name
)import_statement
(return_statement
(call
(attribute
(identifier_proximal) identifier_proximal
(identifier_LinOpFactory) identifier_LinOpFactory
)attribute
(argument_list
(keyword_argument
(identifier_input_shape) identifier_input_shape
(attribute
(attribute
(identifier_op) identifier_op
(identifier_domain) identifier_domain
)attribute
(identifier_shape) identifier_shape
)attribute
)keyword_argument
(keyword_argument
(identifier_output_shape) identifier_output_shape
(attribute
(attribute
(identifier_op) identifier_op
(identifier_range) identifier_range
)attribute
(identifier_shape) identifier_shape
)attribute
)keyword_argument
(keyword_argument
(identifier_forward) identifier_forward
(identifier_forward) identifier_forward
)keyword_argument
(keyword_argument
(identifier_adjoint) identifier_adjoint
(identifier_adjoint) identifier_adjoint
)keyword_argument
(keyword_argument
(identifier_norm_bound) identifier_norm_bound
(identifier_norm_bound) identifier_norm_bound
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Wrap ``op`` as a ``proximal.BlackBox``.
This is intended to be used with the `ProxImaL language solvers.
<https://github.com/comp-imaging/proximal>`_
For documentation on the proximal language (ProxImaL) see [Hei+2016].
Parameters
----------
op : `Operator`
Linear operator to be wrapped. Its domain and range must implement
``shape``, and elements in these need to implement ``asarray``.
norm_bound : float, optional
An upper bound on the spectral norm of the operator. Note that this is
the norm as defined by ProxImaL, and hence use the unweighted spaces.
Returns
-------
``proximal.BlackBox`` : proximal_lang_operator
The wrapped operator.
Notes
-----
If the data representation of ``op``'s domain and range is of type
`NumpyTensorSpace` this incurs no significant overhead. If the data
space is implemented with CUDA or some other non-local representation,
the overhead is significant.
References
----------
[Hei+2016] Heide, F et al. *ProxImaL: Efficient Image Optimization using
Proximal Algorithms*. ACM Transactions on Graphics (TOG), 2016. |
(module
(function_definition
(function_name_path_to_resource) function_name_path_to_resource
(parameters
(identifier_project) identifier_project
(identifier_path) identifier_path
(default_parameter
(identifier_type) identifier_type
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_project_path) identifier_project_path
(call
(identifier_path_relative_to_project_root) identifier_path_relative_to_project_root
(argument_list
(identifier_project) identifier_project
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_project_path) identifier_project_path
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_project_path) identifier_project_path
(call
(attribute
(attribute
(attribute
(identifier_rope) identifier_rope
(identifier_base) identifier_base
)attribute
(identifier_project) identifier_project
)attribute
(identifier__realpath) identifier__realpath
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_project) identifier_project
(call
(attribute
(attribute
(attribute
(identifier_rope) identifier_rope
(identifier_base) identifier_base
)attribute
(identifier_project) identifier_project
)attribute
(identifier_get_no_project) identifier_get_no_project
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_type) identifier_type
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_project) identifier_project
(identifier_get_resource) identifier_get_resource
)attribute
(argument_list
(identifier_project_path) identifier_project_path
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_type) identifier_type
(string_'file') string_'file'
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_project) identifier_project
(identifier_get_file) identifier_get_file
)attribute
(argument_list
(identifier_project_path) identifier_project_path
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_type) identifier_type
(string_'folder') string_'folder'
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_project) identifier_project
(identifier_get_folder) identifier_get_folder
)attribute
(argument_list
(identifier_project_path) identifier_project_path
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Get the resource at path
You only need to specify `type` if `path` does not exist. It can
be either 'file' or 'folder'. If the type is `None` it is assumed
that the resource already exists.
Note that this function uses `Project.get_resource()`,
`Project.get_file()`, and `Project.get_folder()` methods. |
(module
(function_definition
(function_name_handle_table) function_name_handle_table
(parameters
(identifier_self) identifier_self
(identifier_table_dict) identifier_table_dict
)parameters
(block
(expression_statement
(assignment
(identifier_table) identifier_table
(subscript
(identifier_table_dict) identifier_table_dict
(string_'table') string_'table'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tab) identifier_tab
(subscript
(identifier_table_dict) identifier_table_dict
(string_'tab') string_'tab'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_tab) identifier_tab
(identifier_load_table_data) identifier_load_table_data
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_table_name) identifier_table_name
(attribute
(attribute
(identifier_table) identifier_table
(identifier__meta) identifier__meta
)attribute
(identifier_name) identifier_name
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(subscript
(attribute
(identifier_tab) identifier_tab
(identifier__tables) identifier__tables
)attribute
(identifier_table_name) identifier_table_name
)subscript
(identifier__meta) identifier__meta
)attribute
(identifier_has_prev_data) identifier_has_prev_data
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_has_prev_data) identifier_has_prev_data
)attribute
(argument_list
(identifier_table) identifier_table
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(subscript
(attribute
(identifier_tab) identifier_tab
(identifier__tables) identifier__tables
)attribute
(identifier_table_name) identifier_table_name
)subscript
(identifier__meta) identifier__meta
)attribute
(identifier_has_more_data) identifier_has_more_data
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_has_more_data) identifier_has_more_data
)attribute
(argument_list
(identifier_table) identifier_table
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_handled) identifier_handled
(call
(attribute
(subscript
(attribute
(identifier_tab) identifier_tab
(identifier__tables) identifier__tables
)attribute
(identifier_table_name) identifier_table_name
)subscript
(identifier_maybe_handle) identifier_maybe_handle
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_handled) identifier_handled
)return_statement
)block
)function_definition
)module | Loads the table data based on a given table_dict and handles them.
For the given dict containing a ``DataTable`` and a ``TableTab``
instance, it loads the table data for that tab and calls the
table's :meth:`~horizon.tables.DataTable.maybe_handle` method.
The return value will be the result of ``maybe_handle``. |
(module
(function_definition
(function_name_set_trunk_groups) function_name_set_trunk_groups
(parameters
(identifier_self) identifier_self
(identifier_vid) identifier_vid
(default_parameter
(identifier_value) identifier_value
(None) None
)default_parameter
(default_parameter
(identifier_default) identifier_default
(False) False
)default_parameter
(default_parameter
(identifier_disable) identifier_disable
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_default) identifier_default
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_configure_vlan) identifier_configure_vlan
)attribute
(argument_list
(identifier_vid) identifier_vid
(string_'default trunk group') string_'default trunk group'
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(identifier_disable) identifier_disable
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_configure_vlan) identifier_configure_vlan
)attribute
(argument_list
(identifier_vid) identifier_vid
(string_'no trunk group') string_'no trunk group'
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_current_value) identifier_current_value
(subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_vid) identifier_vid
)argument_list
)call
(string_'trunk_groups') string_'trunk_groups'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_failure) identifier_failure
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_make_iterable) identifier_make_iterable
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_name) identifier_name
(call
(attribute
(call
(identifier_set) identifier_set
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier_difference) identifier_difference
)attribute
(argument_list
(identifier_current_value) identifier_current_value
)argument_list
)call
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_add_trunk_group) identifier_add_trunk_group
)attribute
(argument_list
(identifier_vid) identifier_vid
(identifier_name) identifier_name
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_failure) identifier_failure
(True) True
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(for_statement
(identifier_name) identifier_name
(call
(attribute
(call
(identifier_set) identifier_set
(argument_list
(identifier_current_value) identifier_current_value
)argument_list
)call
(identifier_difference) identifier_difference
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_remove_trunk_group) identifier_remove_trunk_group
)attribute
(argument_list
(identifier_vid) identifier_vid
(identifier_name) identifier_name
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_failure) identifier_failure
(True) True
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(not_operator
(identifier_failure) identifier_failure
)not_operator
)return_statement
)block
)function_definition
)module | Configures the list of trunk groups support on a vlan
This method handles configuring the vlan trunk group value to default
if the default flag is set to True. If the default flag is set
to False, then this method will calculate the set of trunk
group names to be added and to be removed.
EosVersion:
4.13.7M
Args:
vid (str): The VLAN ID to configure
value (str): The list of trunk groups that should be configured
for this vlan id.
default (bool): Configures the trunk group value to default if
this value is true
disable (bool): Negates the trunk group value if set to true
Returns:
True if the operation was successful otherwise False |
(module
(function_definition
(function_name__rank_results) function_name__rank_results
(parameters
(typed_parameter
(identifier_results) identifier_results
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_Dict) identifier_Dict
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_method) identifier_method
(type
(identifier_SimAlgorithm) identifier_SimAlgorithm
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_Dict) identifier_Dict
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(identifier_sorted_results) identifier_sorted_results
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_results) identifier_results
(keyword_argument
(identifier_reverse) identifier_reverse
(True) True
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_k) identifier_k
)lambda_parameters
(subscript
(identifier_k) identifier_k
(subscript
(attribute
(identifier_OwlSim2Api) identifier_OwlSim2Api
(identifier_method2key) identifier_method2key
)attribute
(identifier_method) identifier_method
)subscript
)subscript
)lambda
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_sorted_results) identifier_sorted_results
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_rank) identifier_rank
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_previous_score) identifier_previous_score
(subscript
(subscript
(identifier_sorted_results) identifier_sorted_results
(integer_0) integer_0
)subscript
(subscript
(attribute
(identifier_OwlSim2Api) identifier_OwlSim2Api
(identifier_method2key) identifier_method2key
)attribute
(identifier_method) identifier_method
)subscript
)subscript
)assignment
)expression_statement
(for_statement
(identifier_result) identifier_result
(identifier_sorted_results) identifier_sorted_results
(block
(if_statement
(comparison_operator
(identifier_previous_score) identifier_previous_score
(subscript
(identifier_result) identifier_result
(subscript
(attribute
(identifier_OwlSim2Api) identifier_OwlSim2Api
(identifier_method2key) identifier_method2key
)attribute
(identifier_method) identifier_method
)subscript
)subscript
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_rank) identifier_rank
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_result) identifier_result
(string_'rank') string_'rank'
)subscript
(identifier_rank) identifier_rank
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_previous_score) identifier_previous_score
(subscript
(identifier_result) identifier_result
(subscript
(attribute
(identifier_OwlSim2Api) identifier_OwlSim2Api
(identifier_method2key) identifier_method2key
)attribute
(identifier_method) identifier_method
)subscript
)subscript
)assignment
)expression_statement
)block
)for_statement
)block
)if_statement
(return_statement
(identifier_sorted_results) identifier_sorted_results
)return_statement
)block
)function_definition
)module | Ranks results - for phenodigm results are ranks but ties need to accounted for
for other methods, results need to be reranked
:param results: Results from search_by_attribute_set()['results'] or
compare_attribute_sets()['results']
:param method: sim method used to rank results
:return: Sorted results list |
(module
(function_definition
(function_name_get_data_files_tuple) function_name_get_data_files_tuple
(parameters
(list_splat_pattern
(identifier_rel_path) identifier_rel_path
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_rel_path) identifier_rel_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(list_splat
(identifier_rel_path) identifier_rel_path
)list_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_target_path) identifier_target_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(string_"share") string_"share"
(list_splat
(subscript
(call
(attribute
(identifier_rel_path) identifier_rel_path
(identifier_split) identifier_split
)attribute
(argument_list
(attribute
(identifier_os) identifier_os
(identifier_sep) identifier_sep
)attribute
)argument_list
)call
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)list_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(string_"path_to_file") string_"path_to_file"
(identifier_kwargs) identifier_kwargs
)comparison_operator
(subscript
(identifier_kwargs) identifier_kwargs
(string_"path_to_file") string_"path_to_file"
)subscript
)boolean_operator
(block
(expression_statement
(assignment
(identifier_source_files) identifier_source_files
(list
(identifier_rel_path) identifier_rel_path
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_target_path) identifier_target_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_target_path) identifier_target_path
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_source_files) identifier_source_files
(list_comprehension
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_rel_path) identifier_rel_path
(identifier_filename) identifier_filename
)argument_list
)call
(for_in_clause
(identifier_filename) identifier_filename
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(identifier_rel_path) identifier_rel_path
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(expression_list
(identifier_target_path) identifier_target_path
(identifier_source_files) identifier_source_files
)expression_list
)return_statement
)block
)function_definition
)module | Return a tuple which can be used for setup.py's data_files
:param tuple path: List of path elements pointing to a file or a directory of files
:param dict kwargs: Set path_to_file to True is `path` points to a file
:return: tuple of install directory and list of source files
:rtype: tuple(str, [str]) |
(module
(function_definition
(function_name_pre_dispatch) function_name_pre_dispatch
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_path_args) identifier_path_args
)parameters
(block
(expression_statement
(assignment
(identifier_secret_key) identifier_secret_key
(call
(attribute
(identifier_self) identifier_self
(identifier_get_secret_key) identifier_get_secret_key
)attribute
(argument_list
(identifier_request) identifier_request
(identifier_path_args) identifier_path_args
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_secret_key) identifier_secret_key
)not_operator
(block
(raise_statement
(call
(identifier_PermissionDenied) identifier_PermissionDenied
(argument_list
(string_'Signature not valid.') string_'Signature not valid.'
)argument_list
)call
)raise_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_signing) identifier_signing
(identifier_verify_url_path) identifier_verify_url_path
)attribute
(argument_list
(attribute
(identifier_request) identifier_request
(identifier_path) identifier_path
)attribute
(attribute
(identifier_request) identifier_request
(identifier_GET) identifier_GET
)attribute
(identifier_secret_key) identifier_secret_key
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_SigningError) identifier_SigningError
(as_pattern_target
(identifier_ex) identifier_ex
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_PermissionDenied) identifier_PermissionDenied
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_ex) identifier_ex
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Pre dispatch hook |
(module
(function_definition
(function_name_get_dir) function_name_get_dir
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(string_"-WD") string_"-WD"
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
)comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_FIRST_RUN) identifier_FIRST_RUN
)attribute
)boolean_operator
(block
(expression_statement
(assignment
(identifier_ind) identifier_ind
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
(identifier_index) identifier_index
)attribute
(argument_list
(string_'-WD') string_'-WD'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_WD) identifier_WD
)attribute
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
(binary_operator
(identifier_ind) identifier_ind
(integer_1) integer_1
)binary_operator
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_WD) identifier_WD
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_WD) identifier_WD
)attribute
(call
(attribute
(identifier_os) identifier_os
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dir_path) identifier_dir_path
)attribute
(identifier_SetValue) identifier_SetValue
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_WD) identifier_WD
)attribute
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_on_change_dir_button) identifier_on_change_dir_button
)attribute
(argument_list
(None) None
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_FIRST_RUN) identifier_FIRST_RUN
)attribute
(False) False
)assignment
)expression_statement
)block
)function_definition
)module | Choose a working directory dialog.
Called by self.get_dm_and_wd. |
(module
(function_definition
(function_name_put_records) function_name_put_records
(parameters
(identifier_self) identifier_self
(identifier_records) identifier_records
(default_parameter
(identifier_partition_key) identifier_partition_key
(None) None
)default_parameter
)parameters
(block
(for_statement
(identifier_record) identifier_record
(identifier_records) identifier_records
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_put_record) identifier_put_record
)attribute
(argument_list
(identifier_record) identifier_record
(identifier_partition_key) identifier_partition_key
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Add a list of data records to the record queue in the proper format.
Convinience method that calls self.put_record for each element.
Parameters
----------
records : list
Lists of records to send.
partition_key: str
Hash that determines which shard a given data record belongs to. |
(module
(function_definition
(function_name__line_start_indexes) function_name__line_start_indexes
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier__cache) identifier__cache
)attribute
(identifier_line_indexes) identifier_line_indexes
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_line_lengths) identifier_line_lengths
(call
(identifier_map) identifier_map
(argument_list
(identifier_len) identifier_len
(attribute
(identifier_self) identifier_self
(identifier_lines) identifier_lines
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_indexes) identifier_indexes
(list
(integer_0) integer_0
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_append) identifier_append
(attribute
(identifier_indexes) identifier_indexes
(identifier_append) identifier_append
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pos) identifier_pos
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_line_length) identifier_line_length
(identifier_line_lengths) identifier_line_lengths
(block
(expression_statement
(augmented_assignment
(identifier_pos) identifier_pos
(binary_operator
(identifier_line_length) identifier_line_length
(integer_1) integer_1
)binary_operator
)augmented_assignment
)expression_statement
(expression_statement
(call
(identifier_append) identifier_append
(argument_list
(identifier_pos) identifier_pos
)argument_list
)call
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_indexes) identifier_indexes
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_indexes) identifier_indexes
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier__cache) identifier__cache
)attribute
(identifier_line_indexes) identifier_line_indexes
)attribute
(identifier_indexes) identifier_indexes
)assignment
)expression_statement
)block
)if_statement
(return_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier__cache) identifier__cache
)attribute
(identifier_line_indexes) identifier_line_indexes
)attribute
)return_statement
)block
)function_definition
)module | Array pointing to the start indexes of all the lines. |
(module
(function_definition
(function_name_format_options) function_name_format_options
(parameters
(identifier_self) identifier_self
(identifier_ctx) identifier_ctx
(identifier_formatter) identifier_formatter
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_Pyp2rpmCommand) identifier_Pyp2rpmCommand
(identifier_self) identifier_self
)argument_list
)call
(identifier_format_options) identifier_format_options
)attribute
(argument_list
(identifier_ctx) identifier_ctx
(identifier_formatter) identifier_formatter
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_scl_opts) identifier_scl_opts
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_param) identifier_param
(call
(attribute
(identifier_self) identifier_self
(identifier_get_params) identifier_get_params
)attribute
(argument_list
(identifier_ctx) identifier_ctx
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_param) identifier_param
(identifier_SclizeOption) identifier_SclizeOption
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_scl_opts) identifier_scl_opts
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_param) identifier_param
(identifier_get_scl_help_record) identifier_get_scl_help_record
)attribute
(argument_list
(identifier_ctx) identifier_ctx
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_scl_opts) identifier_scl_opts
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_formatter) identifier_formatter
(identifier_section) identifier_section
)attribute
(argument_list
(string_'SCL related options') string_'SCL related options'
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_formatter) identifier_formatter
(identifier_write_dl) identifier_write_dl
)attribute
(argument_list
(identifier_scl_opts) identifier_scl_opts
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)if_statement
)block
)function_definition
)module | Writes SCL related options into the formatter as a separate
group. |
(module
(function_definition
(function_name_next_done) function_name_next_done
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__done) identifier__done
)attribute
)not_operator
(attribute
(identifier_self) identifier_self
(identifier__pending) identifier__pending
)attribute
)boolean_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__done_event) identifier__done_event
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__done_event) identifier__done_event
)attribute
(identifier_wait) identifier_wait
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__done) identifier__done
)attribute
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__done) identifier__done
)attribute
(identifier_popleft) identifier_popleft
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Returns the next completed task. Returns None if no more tasks
remain. A TaskGroup may also be used as an asynchronous iterator. |
(module
(function_definition
(function_name_to_pelias_dict) function_name_to_pelias_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_vb) identifier_vb
(call
(attribute
(identifier_self) identifier_self
(identifier_convert_srs) identifier_convert_srs
)attribute
(argument_list
(integer_4326) integer_4326
)argument_list
)call
)assignment
)expression_statement
(return_statement
(dictionary
(pair
(string_'boundary.rect.min_lat') string_'boundary.rect.min_lat'
(attribute
(identifier_vb) identifier_vb
(identifier_bottom) identifier_bottom
)attribute
)pair
(pair
(string_'boundary.rect.min_lon') string_'boundary.rect.min_lon'
(attribute
(identifier_vb) identifier_vb
(identifier_left) identifier_left
)attribute
)pair
(pair
(string_'boundary.rect.max_lat') string_'boundary.rect.max_lat'
(attribute
(identifier_vb) identifier_vb
(identifier_top) identifier_top
)attribute
)pair
(pair
(string_'boundary.rect.max_lon') string_'boundary.rect.max_lon'
(attribute
(identifier_vb) identifier_vb
(identifier_right) identifier_right
)attribute
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Convert Viewbox object to a string that can be used by Pelias
as a query parameter. |
(module
(function_definition
(function_name_execute) function_name_execute
(parameters
(identifier_self) identifier_self
(identifier_input_data) identifier_input_data
)parameters
(block
(expression_statement
(assignment
(identifier_md5) identifier_md5
(subscript
(subscript
(identifier_input_data) identifier_input_data
(string_'meta') string_'meta'
)subscript
(string_'md5') string_'md5'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(string_'http://www.virustotal.com/vtapi/v2/file/report') string_'http://www.virustotal.com/vtapi/v2/file/report'
(keyword_argument
(identifier_params) identifier_params
(dictionary
(pair
(string_'apikey') string_'apikey'
(attribute
(identifier_self) identifier_self
(identifier_apikey) identifier_apikey
)attribute
)pair
(pair
(string_'resource') string_'resource'
(identifier_md5) identifier_md5
)pair
(pair
(string_'allinfo') string_'allinfo'
(integer_1) integer_1
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_vt_output) identifier_vt_output
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(return_statement
(dictionary
(pair
(string_'vt_error') string_'vt_error'
(string_'VirusTotal Query Error, no valid response... past per min quota?') string_'VirusTotal Query Error, no valid response... past per min quota?'
)pair
)dictionary
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(dictionary_comprehension
(pair
(identifier_field) identifier_field
(subscript
(identifier_vt_output) identifier_vt_output
(identifier_field) identifier_field
)subscript
)pair
(for_in_clause
(identifier_field) identifier_field
(call
(attribute
(identifier_vt_output) identifier_vt_output
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_field) identifier_field
(attribute
(identifier_self) identifier_self
(identifier_exclude) identifier_exclude
)attribute
)comparison_operator
)if_clause
)dictionary_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_not_found) identifier_not_found
(conditional_expression
(False) False
(identifier_output) identifier_output
(True) True
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_output) identifier_output
(string_'file_type') string_'file_type'
)subscript
(subscript
(subscript
(identifier_input_data) identifier_input_data
(string_'meta') string_'meta'
)subscript
(string_'file_type') string_'file_type'
)subscript
)assignment
)expression_statement
(if_statement
(identifier_not_found) identifier_not_found
(block
(expression_statement
(assignment
(subscript
(identifier_output) identifier_output
(string_'not_found') string_'not_found'
)subscript
(True) True
)assignment
)expression_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_scan_results) identifier_scan_results
(call
(attribute
(identifier_collections) identifier_collections
(identifier_Counter) identifier_Counter
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_scan) identifier_scan
(call
(attribute
(subscript
(identifier_vt_output) identifier_vt_output
(string_'scans') string_'scans'
)subscript
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(string_'result') string_'result'
(identifier_scan) identifier_scan
)comparison_operator
(block
(if_statement
(subscript
(identifier_scan) identifier_scan
(string_'result') string_'result'
)subscript
(block
(expression_statement
(augmented_assignment
(subscript
(identifier_scan_results) identifier_scan_results
(subscript
(identifier_scan) identifier_scan
(string_'result') string_'result'
)subscript
)subscript
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_output) identifier_output
(string_'scan_results') string_'scan_results'
)subscript
(call
(attribute
(identifier_scan_results) identifier_scan_results
(identifier_most_common) identifier_most_common
)attribute
(argument_list
(integer_5) integer_5
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module | Execute the VTQuery worker |
(module
(function_definition
(function_name_render) function_name_render
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_release_notes) identifier_release_notes
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_parser) identifier_parser
(attribute
(identifier_self) identifier_self
(identifier_parsers) identifier_parsers
)attribute
(block
(expression_statement
(assignment
(identifier_parser_content) identifier_parser_content
(call
(attribute
(identifier_parser) identifier_parser
(identifier_render) identifier_render
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_parser_content) identifier_parser_content
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_release_notes) identifier_release_notes
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_parser_content) identifier_parser_content
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(call
(attribute
(string_u"\r\n\r\n") string_u"\r\n\r\n"
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_release_notes) identifier_release_notes
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the rendered release notes from all parsers as a string |
(module
(function_definition
(function_name_create_base64encoded_randomness) function_name_create_base64encoded_randomness
(parameters
(typed_parameter
(identifier_num_bytes) identifier_num_bytes
(type
(identifier_int) identifier_int
)type
)typed_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_randbytes) identifier_randbytes
(call
(attribute
(identifier_os) identifier_os
(identifier_urandom) identifier_urandom
)attribute
(argument_list
(identifier_num_bytes) identifier_num_bytes
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(identifier_base64) identifier_base64
(identifier_urlsafe_b64encode) identifier_urlsafe_b64encode
)attribute
(argument_list
(identifier_randbytes) identifier_randbytes
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'ascii') string_'ascii'
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create and return ``num_bytes`` of random data.
The result is encoded in a string with URL-safe ``base64`` encoding.
Used (for example) to generate session tokens.
Which generator to use? See
https://cryptography.io/en/latest/random-numbers/.
Do NOT use these methods:
.. code-block:: python
randbytes = M2Crypto.m2.rand_bytes(num_bytes) # NO!
randbytes = Crypto.Random.get_random_bytes(num_bytes) # NO!
Instead, do this:
.. code-block:: python
randbytes = os.urandom(num_bytes) # YES |
(module
(function_definition
(function_name_open) function_name_open
(parameters
(identifier_filename) identifier_filename
(default_parameter
(identifier_frame) identifier_frame
(string_'unspecified') string_'unspecified'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_Image) identifier_Image
(identifier_load_data) identifier_load_data
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_data) identifier_data
(identifier_shape) identifier_shape
)attribute
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(comparison_operator
(subscript
(attribute
(identifier_data) identifier_data
(identifier_shape) identifier_shape
)attribute
(integer_2) integer_2
)subscript
(integer_1) integer_1
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(subscript
(identifier_data) identifier_data
(slice
(colon) colon
)slice
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_BinaryImage) identifier_BinaryImage
(argument_list
(identifier_data) identifier_data
(identifier_frame) identifier_frame
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates a BinaryImage from a file.
Parameters
----------
filename : :obj:`str`
The file to load the data from. Must be one of .png, .jpg,
.npy, or .npz.
frame : :obj:`str`
A string representing the frame of reference in which the new image
lies.
Returns
-------
:obj:`BinaryImage`
The new binary image. |
(module
(function_definition
(function_name_writerow) function_name_writerow
(parameters
(identifier_self) identifier_self
(identifier_row) identifier_row
)parameters
(block
(expression_statement
(assignment
(identifier_json_text) identifier_json_text
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_row) identifier_row
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_json_text) identifier_json_text
(identifier_bytes) identifier_bytes
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_json_text) identifier_json_text
(call
(attribute
(identifier_json_text) identifier_json_text
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__out) identifier__out
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_json_text) identifier_json_text
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__out) identifier__out
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(string_u'\n') string_u'\n'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Write a single row. |
(module
(function_definition
(function_name_IsSymbolFileSane) function_name_IsSymbolFileSane
(parameters
(identifier_self) identifier_self
(identifier_position) identifier_position
)parameters
(block
(expression_statement
(assignment
(identifier_pos) identifier_pos
(list
(subscript
(identifier_position) identifier_position
(integer_0) integer_0
)subscript
(None) None
(None) None
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_EnsureGdbPosition) identifier_EnsureGdbPosition
)attribute
(argument_list
(list_splat
(identifier_pos) identifier_pos
)list_splat
)argument_list
)call
)expression_statement
(try_statement
(block
(if_statement
(boolean_operator
(boolean_operator
(attribute
(identifier_GdbCache) identifier_GdbCache
(identifier_DICT) identifier_DICT
)attribute
(attribute
(identifier_GdbCache) identifier_GdbCache
(identifier_TYPE) identifier_TYPE
)attribute
)boolean_operator
(attribute
(identifier_GdbCache) identifier_GdbCache
(identifier_INTERP_HEAD) identifier_INTERP_HEAD
)attribute
)boolean_operator
(block
(expression_statement
(assignment
(identifier_tstate) identifier_tstate
(subscript
(attribute
(identifier_GdbCache) identifier_GdbCache
(identifier_INTERP_HEAD) identifier_INTERP_HEAD
)attribute
(string_'tstate_head') string_'tstate_head'
)subscript
)assignment
)expression_statement
(expression_statement
(subscript
(identifier_tstate) identifier_tstate
(string_'thread_id') string_'thread_id'
)subscript
)expression_statement
(expression_statement
(assignment
(identifier_frame) identifier_frame
(subscript
(identifier_tstate) identifier_tstate
(string_'frame') string_'frame'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_frame_attrs) identifier_frame_attrs
(list
(string_'f_back') string_'f_back'
(string_'f_locals') string_'f_locals'
(string_'f_localsplus') string_'f_localsplus'
(string_'f_globals') string_'f_globals'
(string_'f_builtins') string_'f_builtins'
(string_'f_lineno') string_'f_lineno'
(string_'f_lasti') string_'f_lasti'
)list
)assignment
)expression_statement
(for_statement
(identifier_attr_name) identifier_attr_name
(identifier_frame_attrs) identifier_frame_attrs
(block
(expression_statement
(subscript
(identifier_frame) identifier_frame
(identifier_attr_name) identifier_attr_name
)subscript
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_code) identifier_code
(subscript
(identifier_frame) identifier_frame
(string_'f_code') string_'f_code'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_code_attrs) identifier_code_attrs
(list
(string_'co_name') string_'co_name'
(string_'co_filename') string_'co_filename'
(string_'co_nlocals') string_'co_nlocals'
(string_'co_varnames') string_'co_varnames'
(string_'co_lnotab') string_'co_lnotab'
(string_'co_firstlineno') string_'co_firstlineno'
)list
)assignment
)expression_statement
(for_statement
(identifier_attr_name) identifier_attr_name
(identifier_code_attrs) identifier_code_attrs
(block
(expression_statement
(subscript
(identifier_code) identifier_code
(identifier_attr_name) identifier_attr_name
)subscript
)expression_statement
)block
)for_statement
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
(except_clause
(attribute
(identifier_gdb) identifier_gdb
(identifier_error) identifier_error
)attribute
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Performs basic sanity check by trying to look up a bunch of symbols. |
(module
(function_definition
(function_name_Update) function_name_Update
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(attribute
(attribute
(identifier_clc) identifier_clc
(identifier_v2) identifier_v2
)attribute
(identifier_API) identifier_API
)attribute
(identifier_Call) identifier_Call
)attribute
(argument_list
(string_'PUT') string_'PUT'
(binary_operator
(string_'antiAffinityPolicies/%s/%s') string_'antiAffinityPolicies/%s/%s'
(tuple
(attribute
(identifier_self) identifier_self
(identifier_alias) identifier_alias
)attribute
(attribute
(identifier_self) identifier_self
(identifier_id) identifier_id
)attribute
)tuple
)binary_operator
(dictionary
(pair
(string_'name') string_'name'
(identifier_name) identifier_name
)pair
)dictionary
(keyword_argument
(identifier_session) identifier_session
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_name) identifier_name
)assignment
)expression_statement
)block
)function_definition
)module | Change the policy's name.
https://t3n.zendesk.com/entries/45066480-Update-Anti-Affinity-Policy
*TODO* - currently returning 500 error |
(module
(function_definition
(function_name_slice) function_name_slice
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_start) identifier_start
(None) None
)default_parameter
(default_parameter
(identifier_stop) identifier_stop
(None) None
)default_parameter
(default_parameter
(identifier_step) identifier_step
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(identifier_check_type) identifier_check_type
(argument_list
(identifier_start) identifier_start
(identifier_int) identifier_int
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_check_type) identifier_check_type
(argument_list
(identifier_stop) identifier_stop
(identifier_int) identifier_int
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_check_type) identifier_check_type
(argument_list
(identifier_step) identifier_step
(identifier_int) identifier_int
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_step) identifier_step
(None) None
)comparison_operator
(comparison_operator
(identifier_step) identifier_step
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Only positive steps are currently supported') string_'Only positive steps are currently supported'
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(identifier__series_str_result) identifier__series_str_result
(argument_list
(identifier_self) identifier_self
(identifier_weld_str_slice) identifier_weld_str_slice
(keyword_argument
(identifier_start) identifier_start
(identifier_start) identifier_start
)keyword_argument
(keyword_argument
(identifier_stop) identifier_stop
(identifier_stop) identifier_stop
)keyword_argument
(keyword_argument
(identifier_step) identifier_step
(identifier_step) identifier_step
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Slice substrings from each element.
Note that negative step is currently not supported.
Parameters
----------
start : int
stop : int
step : int
Returns
-------
Series |
(module
(function_definition
(function_name_filter_ints_based_on_vlan) function_name_filter_ints_based_on_vlan
(parameters
(identifier_interfaces) identifier_interfaces
(identifier_vlan) identifier_vlan
(default_parameter
(identifier_count) identifier_count
(integer_1) integer_1
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_filtered_interfaces) identifier_filtered_interfaces
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_interface) identifier_interface
(identifier_interfaces) identifier_interfaces
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_interface) identifier_interface
(identifier_obj_type) identifier_obj_type
)attribute
(argument_list
)argument_list
)call
(string_'interface') string_'interface'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ixn_vlan) identifier_ixn_vlan
(call
(attribute
(identifier_interface) identifier_interface
(identifier_get_object_by_type) identifier_get_object_by_type
)attribute
(argument_list
(string_'vlan') string_'vlan'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vlanEnable) identifier_vlanEnable
(call
(identifier_is_true) identifier_is_true
(argument_list
(call
(attribute
(identifier_ixn_vlan) identifier_ixn_vlan
(identifier_get_attribute) identifier_get_attribute
)attribute
(argument_list
(string_'vlanEnable') string_'vlanEnable'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vlanCount) identifier_vlanCount
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_ixn_vlan) identifier_ixn_vlan
(identifier_get_attribute) identifier_get_attribute
)attribute
(argument_list
(string_'vlanCount') string_'vlanCount'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(call
(attribute
(identifier_interface) identifier_interface
(identifier_obj_type) identifier_obj_type
)attribute
(argument_list
)argument_list
)call
(string_'range') string_'range'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ixn_vlan) identifier_ixn_vlan
(call
(attribute
(identifier_interface) identifier_interface
(identifier_get_object_by_type) identifier_get_object_by_type
)attribute
(argument_list
(string_'vlanRange') string_'vlanRange'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vlanEnable) identifier_vlanEnable
(call
(identifier_is_true) identifier_is_true
(argument_list
(call
(attribute
(identifier_ixn_vlan) identifier_ixn_vlan
(identifier_get_attribute) identifier_get_attribute
)attribute
(argument_list
(string_'enabled') string_'enabled'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vlanCount) identifier_vlanCount
(call
(identifier_len) identifier_len
(argument_list
(call
(attribute
(identifier_ixn_vlan) identifier_ixn_vlan
(identifier_get_objects_by_type) identifier_get_objects_by_type
)attribute
(argument_list
(string_'vlanIdInfo') string_'vlanIdInfo'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_ixn_vlan) identifier_ixn_vlan
(call
(attribute
(identifier_interface) identifier_interface
(identifier_get_object_by_type) identifier_get_object_by_type
)attribute
(argument_list
(string_'ethernet') string_'ethernet'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vlanEnable) identifier_vlanEnable
(call
(identifier_is_true) identifier_is_true
(argument_list
(call
(attribute
(identifier_ixn_vlan) identifier_ixn_vlan
(identifier_get_attribute) identifier_get_attribute
)attribute
(argument_list
(string_'useVlans') string_'useVlans'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vlanCount) identifier_vlanCount
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_ixn_vlan) identifier_ixn_vlan
(identifier_get_attribute) identifier_get_attribute
)attribute
(argument_list
(string_'vlanCount') string_'vlanCount'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(boolean_operator
(not_operator
(parenthesized_expression
(binary_operator
(identifier_vlanEnable) identifier_vlanEnable
(identifier_vlan) identifier_vlan
)binary_operator
)parenthesized_expression
)not_operator
(comparison_operator
(identifier_vlanCount) identifier_vlanCount
(identifier_count) identifier_count
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_filtered_interfaces) identifier_filtered_interfaces
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_interface) identifier_interface
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_filtered_interfaces) identifier_filtered_interfaces
)return_statement
)block
)function_definition
)module | Filter list of interfaces based on VLAN presence or absence criteria.
:param interfaces: list of interfaces to filter.
:param vlan: boolean indicating whether to filter interfaces with or without VLAN.
:param vlan: number of expected VLANs (note that when vlanEnable == False, vlanCount == 1)
:return: interfaces with VLAN(s) if vlan == True and vlanCount == count else interfaces without
VLAN(s).
:todo: add vlanEnable and vlanCount to interface/range/deviceGroup classes. |
(module
(function_definition
(function_name_media) function_name_media
(parameters
(identifier_request) identifier_request
(identifier_path) identifier_path
(default_parameter
(identifier_hproPk) identifier_hproPk
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_settings) identifier_settings
(identifier_PIAPI_STANDALONE) identifier_PIAPI_STANDALONE
)attribute
)not_operator
(block
(expression_statement
(assignment
(tuple_pattern
(identifier_plugIt) identifier_plugIt
(identifier_baseURI) identifier_baseURI
(identifier__) identifier__
)tuple_pattern
(call
(identifier_getPlugItObject) identifier_getPlugItObject
(argument_list
(identifier_hproPk) identifier_hproPk
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(global_statement
(identifier_plugIt) identifier_plugIt
(identifier_baseURI) identifier_baseURI
)global_statement
)block
)else_clause
)if_statement
(try_statement
(block
(expression_statement
(assignment
(tuple_pattern
(identifier_media) identifier_media
(identifier_contentType) identifier_contentType
(identifier_cache_control) identifier_cache_control
)tuple_pattern
(call
(attribute
(identifier_plugIt) identifier_plugIt
(identifier_getMedia) identifier_getMedia
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_report_backend_error) identifier_report_backend_error
(argument_list
(identifier_request) identifier_request
(identifier_e) identifier_e
(string_'meta') string_'meta'
(identifier_hproPk) identifier_hproPk
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_gen500) identifier_gen500
(argument_list
(identifier_request) identifier_request
(identifier_baseURI) identifier_baseURI
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
(if_statement
(not_operator
(identifier_media) identifier_media
)not_operator
(block
(raise_statement
(identifier_Http404) identifier_Http404
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_HttpResponse) identifier_HttpResponse
(argument_list
(identifier_media) identifier_media
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_response) identifier_response
(string_'Content-Type') string_'Content-Type'
)subscript
(identifier_contentType) identifier_contentType
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_response) identifier_response
(string_'Content-Length') string_'Content-Length'
)subscript
(call
(identifier_len) identifier_len
(argument_list
(identifier_media) identifier_media
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_cache_control) identifier_cache_control
(block
(expression_statement
(assignment
(subscript
(identifier_response) identifier_response
(string_'Cache-Control') string_'Cache-Control'
)subscript
(identifier_cache_control) identifier_cache_control
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Ask the server for a media and return it to the client browser. Forward cache headers |
(module
(function_definition
(function_name_chat_delete) function_name_chat_delete
(parameters
(identifier_self) identifier_self
(identifier_room_id) identifier_room_id
(identifier_msg_id) identifier_msg_id
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___call_api_post) identifier___call_api_post
)attribute
(argument_list
(string_'chat.delete') string_'chat.delete'
(keyword_argument
(identifier_roomId) identifier_roomId
(identifier_room_id) identifier_room_id
)keyword_argument
(keyword_argument
(identifier_msgId) identifier_msgId
(identifier_msg_id) identifier_msg_id
)keyword_argument
(keyword_argument
(identifier_kwargs) identifier_kwargs
(identifier_kwargs) identifier_kwargs
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Deletes a chat message. |
(module
(function_definition
(function_name__open_list) function_name__open_list
(parameters
(identifier_self) identifier_self
(identifier_list_type) identifier_list_type
)parameters
(block
(if_statement
(comparison_operator
(identifier_list_type) identifier_list_type
(call
(attribute
(identifier_LIST_TYPES) identifier_LIST_TYPES
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_tag) identifier_tag
(subscript
(identifier_LIST_TYPES) identifier_LIST_TYPES
(identifier_list_type) identifier_list_type
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_'CustomSlackdownHTMLParser:_open_list: Not a valid list type.') string_'CustomSlackdownHTMLParser:_open_list: Not a valid list type.'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_html) identifier_html
(call
(attribute
(string_'<{t} class="list-container-{c}">') string_'<{t} class="list-container-{c}">'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_t) identifier_t
(identifier_tag) identifier_tag
)keyword_argument
(keyword_argument
(identifier_c) identifier_c
(identifier_list_type) identifier_list_type
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_cleaned_html) identifier_cleaned_html
)attribute
(identifier_html) identifier_html
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_current_parent_element) identifier_current_parent_element
)attribute
(string_'tag') string_'tag'
)subscript
(subscript
(identifier_LIST_TYPES) identifier_LIST_TYPES
(identifier_list_type) identifier_list_type
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_current_parent_element) identifier_current_parent_element
)attribute
(string_'attrs') string_'attrs'
)subscript
(dictionary
(pair
(string_'class') string_'class'
(identifier_list_type) identifier_list_type
)pair
)dictionary
)assignment
)expression_statement
)block
)function_definition
)module | Add an open list tag corresponding to the specification in the
parser's LIST_TYPES. |
(module
(function_definition
(function_name_get_zones) function_name_get_zones
(parameters
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
(default_parameter
(identifier_keyid) identifier_keyid
(None) None
)default_parameter
(default_parameter
(identifier_profile) identifier_profile
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_conn) identifier_conn
(call
(identifier__get_conn) identifier__get_conn
(argument_list
(keyword_argument
(identifier_region) identifier_region
(identifier_region) identifier_region
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
(keyword_argument
(identifier_keyid) identifier_keyid
(identifier_keyid) identifier_keyid
)keyword_argument
(keyword_argument
(identifier_profile) identifier_profile
(identifier_profile) identifier_profile
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(attribute
(identifier_z) identifier_z
(identifier_name) identifier_name
)attribute
(for_in_clause
(identifier_z) identifier_z
(call
(attribute
(identifier_conn) identifier_conn
(identifier_get_all_zones) identifier_get_all_zones
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Get a list of AZs for the configured region.
CLI Example:
.. code-block:: bash
salt myminion boto_ec2.get_zones |
(module
(function_definition
(function_name_cli) function_name_cli
(parameters
(identifier_env) identifier_env
(identifier_sortby) identifier_sortby
(identifier_cpu) identifier_cpu
(identifier_columns) identifier_columns
(identifier_datacenter) identifier_datacenter
(identifier_name) identifier_name
(identifier_memory) identifier_memory
(identifier_disk) identifier_disk
(identifier_tag) identifier_tag
)parameters
(block
(expression_statement
(assignment
(identifier_mgr) identifier_mgr
(call
(attribute
(identifier_SoftLayer) identifier_SoftLayer
(identifier_DedicatedHostManager) identifier_DedicatedHostManager
)attribute
(argument_list
(attribute
(identifier_env) identifier_env
(identifier_client) identifier_client
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hosts) identifier_hosts
(call
(attribute
(identifier_mgr) identifier_mgr
(identifier_list_instances) identifier_list_instances
)attribute
(argument_list
(keyword_argument
(identifier_cpus) identifier_cpus
(identifier_cpu) identifier_cpu
)keyword_argument
(keyword_argument
(identifier_datacenter) identifier_datacenter
(identifier_datacenter) identifier_datacenter
)keyword_argument
(keyword_argument
(identifier_hostname) identifier_hostname
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_memory) identifier_memory
(identifier_memory) identifier_memory
)keyword_argument
(keyword_argument
(identifier_disk) identifier_disk
(identifier_disk) identifier_disk
)keyword_argument
(keyword_argument
(identifier_tags) identifier_tags
(identifier_tag) identifier_tag
)keyword_argument
(keyword_argument
(identifier_mask) identifier_mask
(call
(attribute
(identifier_columns) identifier_columns
(identifier_mask) identifier_mask
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_table) identifier_table
(call
(attribute
(identifier_formatting) identifier_formatting
(identifier_Table) identifier_Table
)attribute
(argument_list
(attribute
(identifier_columns) identifier_columns
(identifier_columns) identifier_columns
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_table) identifier_table
(identifier_sortby) identifier_sortby
)attribute
(identifier_sortby) identifier_sortby
)assignment
)expression_statement
(for_statement
(identifier_host) identifier_host
(identifier_hosts) identifier_hosts
(block
(expression_statement
(call
(attribute
(identifier_table) identifier_table
(identifier_add_row) identifier_add_row
)attribute
(argument_list
(list_comprehension
(boolean_operator
(identifier_value) identifier_value
(call
(attribute
(identifier_formatting) identifier_formatting
(identifier_blank) identifier_blank
)attribute
(argument_list
)argument_list
)call
)boolean_operator
(for_in_clause
(identifier_value) identifier_value
(call
(attribute
(identifier_columns) identifier_columns
(identifier_row) identifier_row
)attribute
(argument_list
(identifier_host) identifier_host
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_env) identifier_env
(identifier_fout) identifier_fout
)attribute
(argument_list
(identifier_table) identifier_table
)argument_list
)call
)expression_statement
)block
)function_definition
)module | List dedicated host. |
(module
(function_definition
(function_name_dense_to_deeper_block) function_name_dense_to_deeper_block
(parameters
(identifier_dense_layer) identifier_dense_layer
(default_parameter
(identifier_weighted) identifier_weighted
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_units) identifier_units
(attribute
(identifier_dense_layer) identifier_dense_layer
(identifier_units) identifier_units
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_weight) identifier_weight
(call
(attribute
(identifier_np) identifier_np
(identifier_eye) identifier_eye
)attribute
(argument_list
(identifier_units) identifier_units
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bias) identifier_bias
(call
(attribute
(identifier_np) identifier_np
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(identifier_units) identifier_units
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_dense_layer) identifier_new_dense_layer
(call
(identifier_StubDense) identifier_StubDense
(argument_list
(identifier_units) identifier_units
(identifier_units) identifier_units
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_weighted) identifier_weighted
(block
(expression_statement
(call
(attribute
(identifier_new_dense_layer) identifier_new_dense_layer
(identifier_set_weights) identifier_set_weights
)attribute
(argument_list
(tuple
(call
(identifier_add_noise) identifier_add_noise
(argument_list
(identifier_weight) identifier_weight
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(list
(integer_0) integer_0
(integer_1) integer_1
)list
)argument_list
)call
)argument_list
)call
(call
(identifier_add_noise) identifier_add_noise
(argument_list
(identifier_bias) identifier_bias
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(list
(integer_0) integer_0
(integer_1) integer_1
)list
)argument_list
)call
)argument_list
)call
)tuple
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(list
(call
(identifier_StubReLU) identifier_StubReLU
(argument_list
)argument_list
)call
(identifier_new_dense_layer) identifier_new_dense_layer
)list
)return_statement
)block
)function_definition
)module | deeper dense layer. |
(module
(function_definition
(function_name_joint) function_name_joint
(parameters
(identifier_node) identifier_node
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_node) identifier_node
(identifier__) identifier__
(identifier__) identifier__
)pattern_list
(call
(identifier__fix) identifier__fix
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_body) identifier_body
(binary_operator
(subscript
(attribute
(subscript
(attribute
(identifier_node) identifier_node
(identifier_body) identifier_body
)attribute
(integer_0) integer_0
)subscript
(identifier_body) identifier_body
)attribute
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(attribute
(subscript
(attribute
(identifier_node) identifier_node
(identifier_body) identifier_body
)attribute
(integer_1) integer_1
)subscript
(identifier_body) identifier_body
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_func) identifier_func
(call
(attribute
(identifier_gast) identifier_gast
(identifier_Module) identifier_Module
)attribute
(argument_list
(keyword_argument
(identifier_body) identifier_body
(list
(call
(attribute
(identifier_gast) identifier_gast
(identifier_FunctionDef) identifier_FunctionDef
)attribute
(argument_list
(keyword_argument
(identifier_name) identifier_name
(attribute
(subscript
(attribute
(identifier_node) identifier_node
(identifier_body) identifier_body
)attribute
(integer_0) integer_0
)subscript
(identifier_name) identifier_name
)attribute
)keyword_argument
(keyword_argument
(identifier_args) identifier_args
(attribute
(subscript
(attribute
(identifier_node) identifier_node
(identifier_body) identifier_body
)attribute
(integer_1) integer_1
)subscript
(identifier_args) identifier_args
)attribute
)keyword_argument
(keyword_argument
(identifier_body) identifier_body
(identifier_body) identifier_body
)keyword_argument
(keyword_argument
(identifier_decorator_list) identifier_decorator_list
(list
)list
)keyword_argument
(keyword_argument
(identifier_returns) identifier_returns
(None) None
)keyword_argument
)argument_list
)call
)list
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_anno) identifier_anno
(identifier_clearanno) identifier_clearanno
)attribute
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)expression_statement
(return_statement
(identifier_func) identifier_func
)return_statement
)block
)function_definition
)module | Merge the bodies of primal and adjoint into a single function.
Args:
node: A module with the primal and adjoint function definitions as returned
by `reverse_ad`.
Returns:
func: A `Module` node with a single function definition containing the
combined primal and adjoint. |
(module
(function_definition
(function_name__get_bases) function_name__get_bases
(parameters
(identifier_type_) identifier_type_
)parameters
(block
(try_statement
(block
(class_definition
(identifier__) identifier__
(argument_list
(identifier_type_) identifier_type_
)argument_list
(block_) block_
)class_definition
(expression_statement
(assignment
(identifier_BaseClass) identifier_BaseClass
(identifier_type_) identifier_type_
)assignment
)expression_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(expression_statement
(assignment
(identifier_BaseClass) identifier_BaseClass
(identifier_object) identifier_object
)assignment
)expression_statement
)block
)except_clause
)try_statement
(class_definition
(identifier_MetaClass) identifier_MetaClass
(argument_list
(identifier__ValidationMeta) identifier__ValidationMeta
(attribute
(identifier_BaseClass) identifier_BaseClass
(identifier___class__) identifier___class__
)attribute
)argument_list
(block_) block_
)class_definition
(return_statement
(expression_list
(identifier_BaseClass) identifier_BaseClass
(identifier_MetaClass) identifier_MetaClass
)expression_list
)return_statement
)block
)function_definition
)module | Get the base and meta classes to use in creating a subclass.
Args:
type_: The type to subclass.
Returns:
A tuple containing two values: a base class, and a metaclass. |
(module
(function_definition
(function_name_monkhorst_automatic) function_name_monkhorst_automatic
(parameters
(identifier_cls) identifier_cls
(identifier_structure) identifier_structure
(identifier_ngkpt) identifier_ngkpt
(default_parameter
(identifier_use_symmetries) identifier_use_symmetries
(True) True
)default_parameter
(default_parameter
(identifier_use_time_reversal) identifier_use_time_reversal
(True) True
)default_parameter
(default_parameter
(identifier_chksymbreak) identifier_chksymbreak
(None) None
)default_parameter
(default_parameter
(identifier_comment) identifier_comment
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_sg) identifier_sg
(call
(identifier_SpacegroupAnalyzer) identifier_SpacegroupAnalyzer
(argument_list
(identifier_structure) identifier_structure
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nshiftk) identifier_nshiftk
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_shiftk) identifier_shiftk
(binary_operator
(integer_3) integer_3
(tuple
(float_0.5) float_0.5
)tuple
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier_monkhorst) identifier_monkhorst
)attribute
(argument_list
(identifier_ngkpt) identifier_ngkpt
(keyword_argument
(identifier_shiftk) identifier_shiftk
(identifier_shiftk) identifier_shiftk
)keyword_argument
(keyword_argument
(identifier_use_symmetries) identifier_use_symmetries
(identifier_use_symmetries) identifier_use_symmetries
)keyword_argument
(keyword_argument
(identifier_use_time_reversal) identifier_use_time_reversal
(identifier_use_time_reversal) identifier_use_time_reversal
)keyword_argument
(keyword_argument
(identifier_chksymbreak) identifier_chksymbreak
(identifier_chksymbreak) identifier_chksymbreak
)keyword_argument
(keyword_argument
(identifier_comment) identifier_comment
(conditional_expression
(identifier_comment) identifier_comment
(identifier_comment) identifier_comment
(string_"Automatic Monkhorst-Pack scheme") string_"Automatic Monkhorst-Pack scheme"
)conditional_expression
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convenient static constructor for an automatic Monkhorst-Pack mesh.
Args:
structure: :class:`Structure` object.
ngkpt: Subdivisions N_1, N_2 and N_3 along reciprocal lattice vectors.
use_symmetries: Use spatial symmetries to reduce the number of k-points.
use_time_reversal: Use time-reversal symmetry to reduce the number of k-points.
Returns:
:class:`KSampling` object. |
(module
(function_definition
(function_name_get_api_v1_info) function_name_get_api_v1_info
(parameters
(identifier_api_prefix) identifier_api_prefix
)parameters
(block
(expression_statement
(assignment
(identifier_websocket_root) identifier_websocket_root
(binary_operator
(call
(identifier_base_ws_uri) identifier_base_ws_uri
(argument_list
)argument_list
)call
(identifier_EVENTS_ENDPOINT) identifier_EVENTS_ENDPOINT
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_docs_url) identifier_docs_url
(list
(string_'https://docs.bigchaindb.com/projects/server/en/v') string_'https://docs.bigchaindb.com/projects/server/en/v'
(attribute
(identifier_version) identifier_version
(identifier___version__) identifier___version__
)attribute
(string_'/http-client-server-api.html') string_'/http-client-server-api.html'
)list
)assignment
)expression_statement
(return_statement
(dictionary
(pair
(string_'docs') string_'docs'
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_docs_url) identifier_docs_url
)argument_list
)call
)pair
(pair
(string_'transactions') string_'transactions'
(call
(attribute
(string_'{}transactions/') string_'{}transactions/'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_api_prefix) identifier_api_prefix
)argument_list
)call
)pair
(pair
(string_'blocks') string_'blocks'
(call
(attribute
(string_'{}blocks/') string_'{}blocks/'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_api_prefix) identifier_api_prefix
)argument_list
)call
)pair
(pair
(string_'assets') string_'assets'
(call
(attribute
(string_'{}assets/') string_'{}assets/'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_api_prefix) identifier_api_prefix
)argument_list
)call
)pair
(pair
(string_'outputs') string_'outputs'
(call
(attribute
(string_'{}outputs/') string_'{}outputs/'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_api_prefix) identifier_api_prefix
)argument_list
)call
)pair
(pair
(string_'streams') string_'streams'
(identifier_websocket_root) identifier_websocket_root
)pair
(pair
(string_'metadata') string_'metadata'
(call
(attribute
(string_'{}metadata/') string_'{}metadata/'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_api_prefix) identifier_api_prefix
)argument_list
)call
)pair
(pair
(string_'validators') string_'validators'
(call
(attribute
(string_'{}validators') string_'{}validators'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_api_prefix) identifier_api_prefix
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Return a dict with all the information specific for the v1 of the
api. |
(module
(function_definition
(function_name_get_mean) function_name_get_mean
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_grp) identifier_grp
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_init) identifier_init
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_weights) identifier_weights
)attribute
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_pmap) identifier_pmap
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(integer_0) integer_0
(identifier_grp) identifier_grp
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_sid) identifier_sid
(identifier_pcurve) identifier_pcurve
)pattern_list
(call
(attribute
(identifier_pmap) identifier_pmap
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_array) identifier_array
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(binary_operator
(subscript
(attribute
(attribute
(identifier_pcurve) identifier_pcurve
(identifier_array) identifier_array
)attribute
(identifier_shape) identifier_shape
)attribute
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(tuple
(integer_2) integer_2
)tuple
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_array) identifier_array
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
(subscript
(attribute
(identifier_pcurve) identifier_pcurve
(identifier_array) identifier_array
)attribute
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_pcurve) identifier_pcurve
(identifier_array) identifier_array
)attribute
(identifier_array) identifier_array
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_pmap) identifier_pmap
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_dic) identifier_dic
(parenthesized_expression
(conditional_expression
(dictionary_comprehension
(pair
(identifier_g) identifier_g
(subscript
(attribute
(identifier_self) identifier_self
(identifier_dstore) identifier_dstore
)attribute
(binary_operator
(string_'poes/') string_'poes/'
(identifier_g) identifier_g
)binary_operator
)subscript
)pair
(for_in_clause
(identifier_g) identifier_g
(subscript
(attribute
(identifier_self) identifier_self
(identifier_dstore) identifier_dstore
)attribute
(string_'poes') string_'poes'
)subscript
)for_in_clause
)dictionary_comprehension
(comparison_operator
(identifier_grp) identifier_grp
(None) None
)comparison_operator
(dictionary
(pair
(identifier_grp) identifier_grp
(subscript
(attribute
(identifier_self) identifier_self
(identifier_dstore) identifier_dstore
)attribute
(binary_operator
(string_'poes/') string_'poes/'
(identifier_grp) identifier_grp
)binary_operator
)subscript
)pair
)dictionary
)conditional_expression
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pmaps) identifier_pmaps
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_rlzs_assoc) identifier_rlzs_assoc
)attribute
(identifier_combine_pmaps) identifier_combine_pmaps
)attribute
(argument_list
(identifier_dic) identifier_dic
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_stats) identifier_stats
(identifier_compute_pmap_stats) identifier_compute_pmap_stats
)attribute
(argument_list
(identifier_pmaps) identifier_pmaps
(list
(attribute
(identifier_stats) identifier_stats
(identifier_mean_curve) identifier_mean_curve
)attribute
(attribute
(identifier_stats) identifier_stats
(identifier_std_curve) identifier_std_curve
)attribute
)list
(attribute
(identifier_self) identifier_self
(identifier_weights) identifier_weights
)attribute
(attribute
(identifier_self) identifier_self
(identifier_imtls) identifier_imtls
)attribute
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Compute the mean curve as a ProbabilityMap
:param grp:
if not None must be a string of the form "grp-XX"; in that case
returns the mean considering only the contribution for group XX |
(module
(function_definition
(function_name_change_password) function_name_change_password
(parameters
(identifier_self) identifier_self
(identifier_user) identifier_user
(identifier_password) identifier_password
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier___contains__) identifier___contains__
)attribute
(argument_list
(identifier_user) identifier_user
)argument_list
)call
)not_operator
(block
(raise_statement
(identifier_UserNotExists) identifier_UserNotExists
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_new_users) identifier_new_users
)attribute
(identifier_user) identifier_user
)subscript
(binary_operator
(call
(attribute
(identifier_self) identifier_self
(identifier__encrypt_password) identifier__encrypt_password
)attribute
(argument_list
(identifier_password) identifier_password
)argument_list
)call
(string_"\n") string_"\n"
)binary_operator
)assignment
)expression_statement
)block
)function_definition
)module | Changes user password |
(module
(function_definition
(function_name__deserialize) function_name__deserialize
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__responses) identifier__responses
)attribute
)not_operator
(not_operator
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__responses) identifier__responses
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_body) identifier_body
)attribute
)not_operator
)boolean_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'Content-Type') string_'Content-Type'
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__responses) identifier__responses
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_headers) identifier_headers
)attribute
)comparison_operator
(block
(return_statement
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__responses) identifier__responses
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_body) identifier_body
)attribute
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_content_type) identifier_content_type
(call
(attribute
(identifier_algorithms) identifier_algorithms
(identifier_select_content_type) identifier_select_content_type
)attribute
(argument_list
(list
(call
(attribute
(identifier_headers) identifier_headers
(identifier_parse_content_type) identifier_parse_content_type
)attribute
(argument_list
(subscript
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__responses) identifier__responses
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_headers) identifier_headers
)attribute
(string_'Content-Type') string_'Content-Type'
)subscript
)argument_list
)call
)list
(identifier_AVAILABLE_CONTENT_TYPES) identifier_AVAILABLE_CONTENT_TYPES
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(identifier_errors) identifier_errors
(identifier_NoMatch) identifier_NoMatch
)attribute
(block
(return_statement
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__responses) identifier__responses
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_body) identifier_body
)attribute
)return_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(subscript
(identifier_content_type) identifier_content_type
(integer_0) integer_0
)subscript
(identifier_CONTENT_TYPE_JSON) identifier_CONTENT_TYPE_JSON
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__decode) identifier__decode
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__json) identifier__json
)attribute
(identifier_loads) identifier_loads
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__decode) identifier__decode
)attribute
(argument_list
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__responses) identifier__responses
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_body) identifier_body
)attribute
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(subscript
(identifier_content_type) identifier_content_type
(integer_0) integer_0
)subscript
(identifier_CONTENT_TYPE_MSGPACK) identifier_CONTENT_TYPE_MSGPACK
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__decode) identifier__decode
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__msgpack) identifier__msgpack
)attribute
(identifier_unpackb) identifier_unpackb
)attribute
(argument_list
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__responses) identifier__responses
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_body) identifier_body
)attribute
)argument_list
)call
)argument_list
)call
)return_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Try and deserialize a response body based upon the specified
content type.
:rtype: mixed |
(module
(function_definition
(function_name__op_msg_uncompressed) function_name__op_msg_uncompressed
(parameters
(identifier_flags) identifier_flags
(identifier_command) identifier_command
(identifier_identifier) identifier_identifier
(identifier_docs) identifier_docs
(identifier_check_keys) identifier_check_keys
(identifier_opts) identifier_opts
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_data) identifier_data
(identifier_total_size) identifier_total_size
(identifier_max_bson_size) identifier_max_bson_size
)pattern_list
(call
(identifier__op_msg_no_header) identifier__op_msg_no_header
(argument_list
(identifier_flags) identifier_flags
(identifier_command) identifier_command
(identifier_identifier) identifier_identifier
(identifier_docs) identifier_docs
(identifier_check_keys) identifier_check_keys
(identifier_opts) identifier_opts
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_request_id) identifier_request_id
(identifier_op_message) identifier_op_message
)pattern_list
(call
(identifier___pack_message) identifier___pack_message
(argument_list
(integer_2013) integer_2013
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_request_id) identifier_request_id
(identifier_op_message) identifier_op_message
(identifier_total_size) identifier_total_size
(identifier_max_bson_size) identifier_max_bson_size
)expression_list
)return_statement
)block
)function_definition
)module | Internal compressed OP_MSG message helper. |
(module
(function_definition
(function_name__format_python2_or_3) function_name__format_python2_or_3
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_pb_files) identifier_pb_files
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_source) identifier_source
)attribute
(string_'r') string_'r'
(keyword_argument
(identifier_buffering) identifier_buffering
(integer_1) integer_1
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_csvfile) identifier_csvfile
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_reader) identifier_reader
(call
(attribute
(identifier_csv) identifier_csv
(identifier_reader) identifier_reader
)attribute
(argument_list
(identifier_csvfile) identifier_csvfile
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_row) identifier_row
(identifier_reader) identifier_reader
(block
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier__) identifier__
(identifier_proto) identifier_proto
)pattern_list
(identifier_row) identifier_row
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_pb_files) identifier_pb_files
(identifier_add) identifier_add
)attribute
(argument_list
(call
(attribute
(string_'riak/pb/{0}_pb2.py') string_'riak/pb/{0}_pb2.py'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_proto) identifier_proto
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
(for_statement
(identifier_im) identifier_im
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_pb_files) identifier_pb_files
)argument_list
)call
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_im) identifier_im
(string_'r') string_'r'
(keyword_argument
(identifier_buffering) identifier_buffering
(integer_1) integer_1
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_pbfile) identifier_pbfile
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_contents) identifier_contents
(binary_operator
(string_'from six import *\n') string_'from six import *\n'
(call
(attribute
(identifier_pbfile) identifier_pbfile
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_contents) identifier_contents
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r'riak_pb2') string_r'riak_pb2'
(string_r'riak.pb.riak_pb2') string_r'riak.pb.riak_pb2'
(identifier_contents) identifier_contents
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_contents) identifier_contents
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(concatenated_string
(string_r'class\s+(\S+)\((\S+)\):\s*\n') string_r'class\s+(\S+)\((\S+)\):\s*\n'
(string_'\s+__metaclass__\s+=\s+(\S+)\s*\n') string_'\s+__metaclass__\s+=\s+(\S+)\s*\n'
)concatenated_string
(string_r'@add_metaclass(\3)\nclass \1(\2):\n') string_r'@add_metaclass(\3)\nclass \1(\2):\n'
(identifier_contents) identifier_contents
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_im) identifier_im
(string_'w') string_'w'
(keyword_argument
(identifier_buffering) identifier_buffering
(integer_1) integer_1
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_pbfile) identifier_pbfile
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_pbfile) identifier_pbfile
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_contents) identifier_contents
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)for_statement
)block
)function_definition
)module | Change the PB files to use full pathnames for Python 3.x
and modify the metaclasses to be version agnostic |
(module
(function_definition
(function_name_destination) function_name_destination
(parameters
(identifier_value) identifier_value
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_wrapped) identifier_wrapped
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier_get_decorator_data) identifier_get_decorator_data
(argument_list
(call
(identifier__get_base) identifier__get_base
(argument_list
(identifier_wrapped) identifier_wrapped
)argument_list
)call
(keyword_argument
(identifier_set_default) identifier_set_default
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_data) identifier_data
(identifier_override) identifier_override
)attribute
(string_'destination') string_'destination'
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
(return_statement
(identifier_wrapped) identifier_wrapped
)return_statement
)block
)function_definition
(return_statement
(identifier_decorator) identifier_decorator
)return_statement
)block
)function_definition
)module | Modifier decorator to update a patch's destination.
This only modifies the behaviour of the :func:`create_patches` function
and the :func:`patches` decorator, given that their parameter
``use_decorators`` is set to ``True``.
Parameters
----------
value : object
Patch destination.
Returns
-------
object
The decorated object. |
(module
(function_definition
(function_name_validate) function_name_validate
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_int_value) identifier_int_value
(call
(identifier_int) identifier_int
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__choice) identifier__choice
)attribute
(identifier_int_value) identifier_int_value
)assignment
)expression_statement
(return_statement
(True) True
)return_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_error_message) identifier_error_message
)attribute
(binary_operator
(string_'%s is not a valid integer.') string_'%s is not a valid integer.'
(identifier_value) identifier_value
)binary_operator
)assignment
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Return True if the choice is an integer; False otherwise.
If the value was cast successfully to an int, set the choice that will
make its way into the answers dict to the cast int value, not the
string representation. |
(module
(function_definition
(function_name_dissociate) function_name_dissociate
(parameters
(identifier_self) identifier_self
(identifier_id_filter) identifier_id_filter
(identifier_id_eq_type) identifier_id_eq_type
)parameters
(block
(if_statement
(not_operator
(call
(identifier_is_valid_int_param) identifier_is_valid_int_param
(argument_list
(identifier_id_filter) identifier_id_filter
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_InvalidParameterError) identifier_InvalidParameterError
(argument_list
(string_u'The identifier of Filter is invalid or was not informed.') string_u'The identifier of Filter is invalid or was not informed.'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_is_valid_int_param) identifier_is_valid_int_param
(argument_list
(identifier_id_eq_type) identifier_id_eq_type
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_InvalidParameterError) identifier_InvalidParameterError
(argument_list
(string_u'The identifier of TipoEquipamento is invalid or was not informed.') string_u'The identifier of TipoEquipamento is invalid or was not informed.'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(string_'filter/') string_'filter/'
(line_continuation_\) line_continuation_\
(call
(identifier_str) identifier_str
(argument_list
(identifier_id_filter) identifier_id_filter
)argument_list
)call
)binary_operator
(string_'/dissociate/') string_'/dissociate/'
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(identifier_id_eq_type) identifier_id_eq_type
)argument_list
)call
)binary_operator
(string_'/') string_'/'
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_code) identifier_code
(identifier_xml) identifier_xml
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_submit) identifier_submit
)attribute
(argument_list
(None) None
(string_'PUT') string_'PUT'
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_response) identifier_response
)attribute
(argument_list
(identifier_code) identifier_code
(identifier_xml) identifier_xml
)argument_list
)call
)return_statement
)block
)function_definition
)module | Removes relationship between Filter and TipoEquipamento.
:param id_filter: Identifier of Filter. Integer value and greater than zero.
:param id_eq_type: Identifier of TipoEquipamento. Integer value, greater than zero.
:return: None
:raise FilterNotFoundError: Filter not registered.
:raise TipoEquipamentoNotFoundError: TipoEquipamento not registered.
:raise DataBaseError: Networkapi failed to access the database.
:raise XMLError: Networkapi failed to generate the XML response. |
(module
(function_definition
(function_name_get_local_annotations) function_name_get_local_annotations
(parameters
(identifier_cls) identifier_cls
(identifier_target) identifier_target
(default_parameter
(identifier_exclude) identifier_exclude
(None) None
)default_parameter
(default_parameter
(identifier_ctx) identifier_ctx
(None) None
)default_parameter
(default_parameter
(identifier_select) identifier_select
(lambda
(lambda_parameters
(list_splat_pattern
(identifier_p) identifier_p
)list_splat_pattern
)lambda_parameters
(True) True
)lambda
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_exclude) identifier_exclude
(conditional_expression
(tuple
)tuple
(comparison_operator
(identifier_exclude) identifier_exclude
(None) None
)comparison_operator
(identifier_exclude) identifier_exclude
)conditional_expression
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_local_annotations) identifier_local_annotations
(call
(identifier_get_local_property) identifier_get_local_property
(argument_list
(identifier_target) identifier_target
(attribute
(identifier_Annotation) identifier_Annotation
(identifier___ANNOTATIONS_KEY__) identifier___ANNOTATIONS_KEY__
)attribute
(identifier_result) identifier_result
(keyword_argument
(identifier_ctx) identifier_ctx
(identifier_ctx) identifier_ctx
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_local_annotations) identifier_local_annotations
)not_operator
(block
(if_statement
(call
(identifier_ismethod) identifier_ismethod
(argument_list
(identifier_target) identifier_target
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_func) identifier_func
(call
(identifier_get_method_function) identifier_get_method_function
(argument_list
(identifier_target) identifier_target
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_local_annotations) identifier_local_annotations
(call
(identifier_get_local_property) identifier_get_local_property
(argument_list
(identifier_func) identifier_func
(attribute
(identifier_Annotation) identifier_Annotation
(identifier___ANNOTATIONS_KEY__) identifier___ANNOTATIONS_KEY__
)attribute
(identifier_result) identifier_result
(keyword_argument
(identifier_ctx) identifier_ctx
(identifier_ctx) identifier_ctx
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_local_annotations) identifier_local_annotations
)not_operator
(block
(expression_statement
(assignment
(identifier_local_annotations) identifier_local_annotations
(call
(identifier_get_local_property) identifier_get_local_property
(argument_list
(identifier_func) identifier_func
(attribute
(identifier_Annotation) identifier_Annotation
(identifier___ANNOTATIONS_KEY__) identifier___ANNOTATIONS_KEY__
)attribute
(identifier_result) identifier_result
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
(elif_clause
(call
(identifier_isfunction) identifier_isfunction
(argument_list
(identifier_target) identifier_target
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_local_annotations) identifier_local_annotations
(call
(identifier_get_local_property) identifier_get_local_property
(argument_list
(identifier_target) identifier_target
(attribute
(identifier_Annotation) identifier_Annotation
(identifier___ANNOTATIONS_KEY__) identifier___ANNOTATIONS_KEY__
)attribute
(identifier_result) identifier_result
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)if_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(call
(attribute
(string_'target {0} must be hashable') string_'target {0} must be hashable'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_target) identifier_target
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(for_statement
(identifier_local_annotation) identifier_local_annotation
(identifier_local_annotations) identifier_local_annotations
(block
(expression_statement
(assignment
(identifier_inherited) identifier_inherited
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_local_annotation) identifier_local_annotation
(identifier_cls) identifier_cls
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_not_excluded) identifier_not_excluded
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_local_annotation) identifier_local_annotation
(identifier_exclude) identifier_exclude
)argument_list
)call
)not_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_selected) identifier_selected
(call
(identifier_select) identifier_select
(argument_list
(identifier_target) identifier_target
(identifier_ctx) identifier_ctx
(identifier_local_annotation) identifier_local_annotation
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(identifier_inherited) identifier_inherited
(identifier_not_excluded) identifier_not_excluded
)boolean_operator
(identifier_selected) identifier_selected
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_local_annotation) identifier_local_annotation
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Get a list of local target annotations in the order of their
definition.
:param type cls: type of annotation to get from target.
:param target: target from where get annotations.
:param tuple/type exclude: annotation types to exclude from selection.
:param ctx: target ctx.
:param select: selection function which takes in parameters a target,
a ctx and an annotation and returns True if the annotation has to
be selected. True by default.
:return: target local annotations.
:rtype: list |
(module
(function_definition
(function_name_validate_set_ops) function_name_validate_set_ops
(parameters
(identifier_df) identifier_df
(identifier_other) identifier_other
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(attribute
(attribute
(identifier_df) identifier_df
(identifier_columns) identifier_columns
)attribute
(identifier_values) identifier_values
)attribute
(identifier_tolist) identifier_tolist
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(attribute
(attribute
(identifier_other) identifier_other
(identifier_columns) identifier_columns
)attribute
(identifier_values) identifier_values
)attribute
(identifier_tolist) identifier_tolist
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_not_in_df) identifier_not_in_df
(list_comprehension
(identifier_col) identifier_col
(for_in_clause
(identifier_col) identifier_col
(attribute
(identifier_other) identifier_other
(identifier_columns) identifier_columns
)attribute
)for_in_clause
(if_clause
(comparison_operator
(identifier_col) identifier_col
(attribute
(identifier_df) identifier_df
(identifier_columns) identifier_columns
)attribute
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_not_in_other) identifier_not_in_other
(list_comprehension
(identifier_col) identifier_col
(for_in_clause
(identifier_col) identifier_col
(attribute
(identifier_df) identifier_df
(identifier_columns) identifier_columns
)attribute
)for_in_clause
(if_clause
(comparison_operator
(identifier_col) identifier_col
(attribute
(identifier_other) identifier_other
(identifier_columns) identifier_columns
)attribute
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_error_string) identifier_error_string
(string_'Error: not compatible.') string_'Error: not compatible.'
)assignment
)expression_statement
(if_statement
(call
(identifier_len) identifier_len
(argument_list
(identifier_not_in_df) identifier_not_in_df
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_error_string) identifier_error_string
(binary_operator
(binary_operator
(string_' Cols in y but not x: ') string_' Cols in y but not x: '
(call
(identifier_str) identifier_str
(argument_list
(identifier_not_in_df) identifier_not_in_df
)argument_list
)call
)binary_operator
(string_'.') string_'.'
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_len) identifier_len
(argument_list
(identifier_not_in_other) identifier_not_in_other
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_error_string) identifier_error_string
(binary_operator
(binary_operator
(string_' Cols in x but not y: ') string_' Cols in x but not y: '
(call
(identifier_str) identifier_str
(argument_list
(identifier_not_in_other) identifier_not_in_other
)argument_list
)call
)binary_operator
(string_'.') string_'.'
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(identifier_error_string) identifier_error_string
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(attribute
(identifier_df) identifier_df
(identifier_index) identifier_index
)attribute
(identifier_names) identifier_names
)attribute
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(attribute
(attribute
(identifier_other) identifier_other
(identifier_index) identifier_index
)attribute
(identifier_names) identifier_names
)attribute
)argument_list
)call
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Index dimension mismatch') string_'Index dimension mismatch'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_df) identifier_df
(identifier_index) identifier_index
)attribute
(identifier_names) identifier_names
)attribute
(attribute
(attribute
(identifier_other) identifier_other
(identifier_index) identifier_index
)attribute
(identifier_names) identifier_names
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Index mismatch') string_'Index mismatch'
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(return_statement
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Helper function to ensure that DataFrames are valid for set operations.
Columns must be the same name in the same order, and indices must be of the
same dimension with the same names. |
(module
(function_definition
(function_name___read_device) function_name___read_device
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_state) identifier_state
(call
(identifier_XinputState) identifier_XinputState
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_manager) identifier_manager
)attribute
(identifier_xinput) identifier_xinput
)attribute
(identifier_XInputGetState) identifier_XInputGetState
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___device_number) identifier___device_number
)attribute
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_state) identifier_state
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_res) identifier_res
(identifier_XINPUT_ERROR_SUCCESS) identifier_XINPUT_ERROR_SUCCESS
)comparison_operator
(block
(return_statement
(identifier_state) identifier_state
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_res) identifier_res
(identifier_XINPUT_ERROR_DEVICE_NOT_CONNECTED) identifier_XINPUT_ERROR_DEVICE_NOT_CONNECTED
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(binary_operator
(string_"Unknown error %d attempting to get state of device %d") string_"Unknown error %d attempting to get state of device %d"
(tuple
(identifier_res) identifier_res
(attribute
(identifier_self) identifier_self
(identifier___device_number) identifier___device_number
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Read the state of the gamepad. |
(module
(function_definition
(function_name__maybe_apply_history) function_name__maybe_apply_history
(parameters
(identifier_self) identifier_self
(identifier_method) identifier_method
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_is_historic) identifier_is_historic
)attribute
(argument_list
)argument_list
)call
(block
(for_statement
(pattern_list
(identifier_kwargs) identifier_kwargs
(identifier_result_callback) identifier_result_callback
)pattern_list
(attribute
(identifier_self) identifier_self
(identifier__call_history) identifier__call_history
)attribute
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_self) identifier_self
(identifier__hookexec) identifier__hookexec
)attribute
(argument_list
(identifier_self) identifier_self
(list
(identifier_method) identifier_method
)list
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_res) identifier_res
(comparison_operator
(identifier_result_callback) identifier_result_callback
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(identifier_result_callback) identifier_result_callback
(argument_list
(subscript
(identifier_res) identifier_res
(integer_0) integer_0
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
)block
)function_definition
)module | Apply call history to a new hookimpl if it is marked as historic. |
(module
(function_definition
(function_name_import_) function_name_import_
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___import) identifier___import
)attribute
(argument_list
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_data) identifier_data
(dictionary_splat
(attribute
(identifier_self) identifier_self
(identifier_kwargs) identifier_kwargs
)attribute
)dictionary_splat
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Read JSON from `data`. |
(module
(function_definition
(function_name_drop_privileges) function_name_drop_privileges
(parameters
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_os) identifier_os
(identifier_name) identifier_name
)attribute
(string_'posix') string_'posix'
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_os) identifier_os
(identifier_geteuid) identifier_geteuid
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warn) identifier_warn
)attribute
(argument_list
(identifier_LOG_CHECK) identifier_LOG_CHECK
(call
(identifier__) identifier__
(argument_list
(concatenated_string
(string_"Running as root user; ") string_"Running as root user; "
(string_"dropping privileges by changing user to nobody.") string_"dropping privileges by changing user to nobody."
)concatenated_string
)argument_list
)call
)argument_list
)call
)expression_statement
(import_statement
(dotted_name
(identifier_pwd) identifier_pwd
)dotted_name
)import_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_seteuid) identifier_seteuid
)attribute
(argument_list
(subscript
(call
(attribute
(identifier_pwd) identifier_pwd
(identifier_getpwnam) identifier_getpwnam
)attribute
(argument_list
(string_'nobody') string_'nobody'
)argument_list
)call
(integer_3) integer_3
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Make sure to drop root privileges on POSIX systems. |
(module
(function_definition
(function_name_get_rectangle) function_name_get_rectangle
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_rec) identifier_rec
(binary_operator
(list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_pos) identifier_pos
)attribute
(integer_0) integer_0
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_pos) identifier_pos
)attribute
(integer_1) integer_1
)subscript
)list
(integer_2) integer_2
)binary_operator
)assignment
)expression_statement
(for_statement
(identifier_age) identifier_age
(attribute
(identifier_self) identifier_self
(identifier_nodes) identifier_nodes
)attribute
(block
(for_statement
(identifier_node) identifier_node
(identifier_age) identifier_age
(block
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_2) integer_2
)argument_list
)call
(block
(if_statement
(comparison_operator
(subscript
(identifier_rec) identifier_rec
(binary_operator
(integer_0) integer_0
(identifier_i) identifier_i
)binary_operator
)subscript
(subscript
(attribute
(identifier_node) identifier_node
(identifier_pos) identifier_pos
)attribute
(identifier_i) identifier_i
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_rec) identifier_rec
(binary_operator
(integer_0) integer_0
(identifier_i) identifier_i
)binary_operator
)subscript
(subscript
(attribute
(identifier_node) identifier_node
(identifier_pos) identifier_pos
)attribute
(identifier_i) identifier_i
)subscript
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(subscript
(identifier_rec) identifier_rec
(binary_operator
(integer_2) integer_2
(identifier_i) identifier_i
)binary_operator
)subscript
(subscript
(attribute
(identifier_node) identifier_node
(identifier_pos) identifier_pos
)attribute
(identifier_i) identifier_i
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_rec) identifier_rec
(binary_operator
(integer_2) integer_2
(identifier_i) identifier_i
)binary_operator
)subscript
(subscript
(attribute
(identifier_node) identifier_node
(identifier_pos) identifier_pos
)attribute
(identifier_i) identifier_i
)subscript
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
)block
)for_statement
)block
)for_statement
(return_statement
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_rec) identifier_rec
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets the coordinates of the rectangle, in which the tree can be put.
Returns:
tupel: (x1, y1, x2, y2) |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(try_statement
(block
(if_statement
(comparison_operator
(attribute
(identifier_sys) identifier_sys
(identifier_platform) identifier_platform
)attribute
(string_'darwin') string_'darwin'
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_CDLL) identifier_CDLL
)attribute
(argument_list
(identifier_path) identifier_path
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_RTLD_GLOBAL) identifier_RTLD_GLOBAL
)attribute
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_cdll) identifier_cdll
)attribute
(identifier_LoadLibrary) identifier_LoadLibrary
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
(except_clause
(identifier_OSError) identifier_OSError
(identifier_e) identifier_e
(block
(raise_statement
(call
(identifier_ImportError) identifier_ImportError
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Given a path to a library, load it. |
(module
(function_definition
(function_name__injectWorkerFiles) function_name__injectWorkerFiles
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
(identifier_botoExists) identifier_botoExists
)parameters
(block
(expression_statement
(call
(attribute
(identifier_node) identifier_node
(identifier_waitForNode) identifier_waitForNode
)attribute
(argument_list
(string_'toil_worker') string_'toil_worker'
(keyword_argument
(identifier_keyName) identifier_keyName
(attribute
(identifier_self) identifier_self
(identifier__keyName) identifier__keyName
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_node) identifier_node
(identifier_copySshKeys) identifier_copySshKeys
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__keyName) identifier__keyName
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_node) identifier_node
(identifier_injectFile) identifier_injectFile
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__credentialsPath) identifier__credentialsPath
)attribute
(attribute
(identifier_GoogleJobStore) identifier_GoogleJobStore
(identifier_nodeServiceAccountJson) identifier_nodeServiceAccountJson
)attribute
(string_'toil_worker') string_'toil_worker'
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__sseKey) identifier__sseKey
)attribute
(block
(expression_statement
(call
(attribute
(identifier_node) identifier_node
(identifier_injectFile) identifier_injectFile
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__sseKey) identifier__sseKey
)attribute
(attribute
(identifier_self) identifier_self
(identifier__sseKey) identifier__sseKey
)attribute
(string_'toil_worker') string_'toil_worker'
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_botoExists) identifier_botoExists
(block
(expression_statement
(call
(attribute
(identifier_node) identifier_node
(identifier_injectFile) identifier_injectFile
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__botoPath) identifier__botoPath
)attribute
(attribute
(identifier_self) identifier_self
(identifier_NODE_BOTO_PATH) identifier_NODE_BOTO_PATH
)attribute
(string_'toil_worker') string_'toil_worker'
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Set up the credentials on the worker. |
(module
(function_definition
(function_name_default_sources) function_name_default_sources
(parameters
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_S) identifier_S
(call
(identifier_OrderedDict) identifier_OrderedDict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_total) identifier_total
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_invalid_types) identifier_invalid_types
(list_comprehension
(identifier_t) identifier_t
(for_in_clause
(identifier_t) identifier_t
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_t) identifier_t
(identifier_SOURCE_VAR_TYPES) identifier_SOURCE_VAR_TYPES
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(for_statement
(identifier_t) identifier_t
(identifier_invalid_types) identifier_invalid_types
(block
(expression_statement
(call
(attribute
(attribute
(identifier_montblanc) identifier_montblanc
(identifier_log) identifier_log
)attribute
(identifier_warning) identifier_warning
)attribute
(argument_list
(binary_operator
(concatenated_string
(string_'Source type %s is not yet ') string_'Source type %s is not yet '
(string_'implemented in montblanc. ') string_'implemented in montblanc. '
(string_'Valid source types are %s') string_'Valid source types are %s'
)concatenated_string
(tuple
(identifier_t) identifier_t
(call
(attribute
(identifier_SOURCE_VAR_TYPES) identifier_SOURCE_VAR_TYPES
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_SOURCE_VAR_TYPES) identifier_SOURCE_VAR_TYPES
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_k) identifier_k
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_int) identifier_int
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(parenthesized_expression
(concatenated_string
(string_'Supplied value %s ') string_'Supplied value %s '
(string_'for source %s cannot be ') string_'for source %s cannot be '
(string_'converted to an integer') string_'converted to an integer'
)concatenated_string
)parenthesized_expression
(line_continuation_\) line_continuation_\
(tuple
(identifier_value) identifier_value
(identifier_k) identifier_k
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(augmented_assignment
(identifier_total) identifier_total
(identifier_value) identifier_value
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_S) identifier_S
(identifier_k) identifier_k
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_total) identifier_total
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_S) identifier_S
(identifier_POINT_TYPE) identifier_POINT_TYPE
)subscript
(integer_1) integer_1
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_S) identifier_S
)return_statement
)block
)function_definition
)module | Returns a dictionary mapping source types
to number of sources. If the number of sources
for the source type is supplied in the kwargs
these will be placed in the dictionary.
e.g. if we have 'point', 'gaussian' and 'sersic'
source types, then
default_sources(point=10, gaussian=20)
will return an OrderedDict {'point': 10, 'gaussian': 20, 'sersic': 0} |
(module
(function_definition
(function_name_user_exists) function_name_user_exists
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_user) identifier_user
(None) None
)default_parameter
(default_parameter
(identifier_password) identifier_password
(None) None
)default_parameter
(default_parameter
(identifier_host) identifier_host
(None) None
)default_parameter
(default_parameter
(identifier_port) identifier_port
(None) None
)default_parameter
(default_parameter
(identifier_database) identifier_database
(string_'admin') string_'admin'
)default_parameter
(default_parameter
(identifier_authdb) identifier_authdb
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_users) identifier_users
(call
(identifier_user_list) identifier_user_list
(argument_list
(identifier_user) identifier_user
(identifier_password) identifier_password
(identifier_host) identifier_host
(identifier_port) identifier_port
(identifier_database) identifier_database
(identifier_authdb) identifier_authdb
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_users) identifier_users
(attribute
(identifier_six) identifier_six
(identifier_string_types) identifier_string_types
)attribute
)argument_list
)call
(block
(return_statement
(string_'Failed to connect to mongo database') string_'Failed to connect to mongo database'
)return_statement
)block
)if_statement
(for_statement
(identifier_user) identifier_user
(identifier_users) identifier_users
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(call
(attribute
(call
(identifier_dict) identifier_dict
(argument_list
(identifier_user) identifier_user
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_'user') string_'user'
)argument_list
)call
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Checks if a user exists in MongoDB
CLI Example:
.. code-block:: bash
salt '*' mongodb.user_exists <name> <user> <password> <host> <port> <database> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.