sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_predict) function_name_predict
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_num_iteration) identifier_num_iteration
(None) None
)default_parameter
(default_parameter
(identifier_raw_score) identifier_raw_score
(False) False
)default_parameter
(default_parameter
(identifier_pred_leaf) identifier_pred_leaf
(False) False
)default_parameter
(default_parameter
(identifier_pred_contrib) identifier_pred_contrib
(False) False
)default_parameter
(default_parameter
(identifier_data_has_header) identifier_data_has_header
(False) False
)default_parameter
(default_parameter
(identifier_is_reshape) identifier_is_reshape
(True) True
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_predictor) identifier_predictor
(call
(attribute
(identifier_self) identifier_self
(identifier__to_predictor) identifier__to_predictor
)attribute
(argument_list
(call
(attribute
(identifier_copy) identifier_copy
(identifier_deepcopy) identifier_deepcopy
)attribute
(argument_list
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_num_iteration) identifier_num_iteration
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_num_iteration) identifier_num_iteration
(attribute
(identifier_self) identifier_self
(identifier_best_iteration) identifier_best_iteration
)attribute
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_predictor) identifier_predictor
(identifier_predict) identifier_predict
)attribute
(argument_list
(identifier_data) identifier_data
(identifier_num_iteration) identifier_num_iteration
(identifier_raw_score) identifier_raw_score
(identifier_pred_leaf) identifier_pred_leaf
(identifier_pred_contrib) identifier_pred_contrib
(identifier_data_has_header) identifier_data_has_header
(identifier_is_reshape) identifier_is_reshape
)argument_list
)call
)return_statement
)block
)function_definition
)module | Make a prediction.
Parameters
----------
data : string, numpy array, pandas DataFrame, H2O DataTable's Frame or scipy.sparse
Data source for prediction.
If string, it represents the path to txt file.
num_iteration : int or None, optional (default=None)
Limit number of iterations in the prediction.
If None, if the best iteration exists, it is used; otherwise, all iterations are used.
If <= 0, all iterations are used (no limits).
raw_score : bool, optional (default=False)
Whether to predict raw scores.
pred_leaf : bool, optional (default=False)
Whether to predict leaf index.
pred_contrib : bool, optional (default=False)
Whether to predict feature contributions.
Note
----
If you want to get more explanations for your model's predictions using SHAP values,
like SHAP interaction values,
you can install the shap package (https://github.com/slundberg/shap).
Note that unlike the shap package, with ``pred_contrib`` we return a matrix with an extra
column, where the last column is the expected value.
data_has_header : bool, optional (default=False)
Whether the data has header.
Used only if data is string.
is_reshape : bool, optional (default=True)
If True, result is reshaped to [nrow, ncol].
**kwargs
Other parameters for the prediction.
Returns
-------
result : numpy array
Prediction result. |
(module
(function_definition
(function_name_remove_gateway_router) function_name_remove_gateway_router
(parameters
(identifier_self) identifier_self
(identifier_router) identifier_router
)parameters
(block
(expression_statement
(assignment
(identifier_router_id) identifier_router_id
(call
(attribute
(identifier_self) identifier_self
(identifier__find_router_id) identifier__find_router_id
)attribute
(argument_list
(identifier_router) identifier_router
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_network_conn) identifier_network_conn
)attribute
(identifier_remove_gateway_router) identifier_remove_gateway_router
)attribute
(argument_list
(keyword_argument
(identifier_router) identifier_router
(identifier_router_id) identifier_router_id
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Removes an external network gateway from the specified router |
(module
(function_definition
(function_name_get_OID_field) function_name_get_OID_field
(parameters
(identifier_fs) identifier_fs
)parameters
(block
(if_statement
(comparison_operator
(identifier_arcpyFound) identifier_arcpyFound
(False) False
)comparison_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_"ArcPy is required to use this function") string_"ArcPy is required to use this function"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_desc) identifier_desc
(call
(attribute
(identifier_arcpy) identifier_arcpy
(identifier_Describe) identifier_Describe
)attribute
(argument_list
(identifier_fs) identifier_fs
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_desc) identifier_desc
(identifier_hasOID) identifier_hasOID
)attribute
(block
(return_statement
(attribute
(identifier_desc) identifier_desc
(identifier_OIDFieldName) identifier_OIDFieldName
)attribute
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | returns a featureset's object id field |
(module
(function_definition
(function_name_is_object) function_name_is_object
(parameters
(identifier_brain_or_object) identifier_brain_or_object
)parameters
(block
(if_statement
(call
(identifier_is_portal) identifier_is_portal
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_is_at_content) identifier_is_at_content
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_is_dexterity_content) identifier_is_dexterity_content
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_is_brain) identifier_is_brain
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Check if the passed in object is a supported portal content object
:param brain_or_object: A single catalog brain or content object
:type brain_or_object: Portal Object
:returns: True if the passed in object is a valid portal content |
(module
(function_definition
(function_name__validate) function_name__validate
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_region_type) identifier_region_type
)attribute
(identifier_regions_attributes) identifier_regions_attributes
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"'{0}' is not a valid region type in this package") string_"'{0}' is not a valid region type in this package"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_region_type) identifier_region_type
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_coordsys) identifier_coordsys
)attribute
(binary_operator
(subscript
(identifier_valid_coordsys) identifier_valid_coordsys
(string_'DS9') string_'DS9'
)subscript
(subscript
(identifier_valid_coordsys) identifier_valid_coordsys
(string_'CRTF') string_'CRTF'
)subscript
)binary_operator
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_"'{0}' is not a valid coordinate reference frame ") string_"'{0}' is not a valid coordinate reference frame "
(string_"in astropy") string_"in astropy"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_coordsys) identifier_coordsys
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Checks whether all the attributes of this object is valid. |
(module
(function_definition
(function_name_get_current_environment) function_name_get_current_environment
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_note) identifier_note
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_shutit_global) identifier_shutit_global
(identifier_shutit_global_object) identifier_shutit_global_object
)attribute
(identifier_yield_to_draw) identifier_yield_to_draw
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_handle_note) identifier_handle_note
)attribute
(argument_list
(identifier_note) identifier_note
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_current_shutit_pexpect_session_environment) identifier_get_current_shutit_pexpect_session_environment
)attribute
(argument_list
)argument_list
)call
(identifier_environment_id) identifier_environment_id
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_handle_note_after) identifier_handle_note_after
)attribute
(argument_list
(identifier_note) identifier_note
)argument_list
)call
)expression_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | Returns the current environment id from the current
shutit_pexpect_session |
(module
(function_definition
(function_name_str2int) function_name_str2int
(parameters
(identifier_self) identifier_self
(identifier_num) identifier_num
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_radix) identifier_radix
(identifier_alphabet) identifier_alphabet
)pattern_list
(expression_list
(attribute
(identifier_self) identifier_self
(identifier_radix) identifier_radix
)attribute
(attribute
(identifier_self) identifier_self
(identifier_alphabet) identifier_alphabet
)attribute
)expression_list
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_radix) identifier_radix
(integer_36) integer_36
)comparison_operator
(comparison_operator
(call
(attribute
(subscript
(identifier_alphabet) identifier_alphabet
(slice
(colon) colon
(identifier_radix) identifier_radix
)slice
)subscript
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(subscript
(identifier_BASE85) identifier_BASE85
(slice
(colon) colon
(identifier_radix) identifier_radix
)slice
)subscript
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(identifier_int) identifier_int
(argument_list
(identifier_num) identifier_num
(identifier_radix) identifier_radix
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lalphabet) identifier_lalphabet
(subscript
(identifier_alphabet) identifier_alphabet
(slice
(colon) colon
(identifier_radix) identifier_radix
)slice
)subscript
)assignment
)expression_statement
(for_statement
(identifier_char) identifier_char
(identifier_num) identifier_num
(block
(if_statement
(comparison_operator
(identifier_char) identifier_char
(identifier_lalphabet) identifier_lalphabet
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(concatenated_string
(string_"invalid literal for radix2int() with radix ") string_"invalid literal for radix2int() with radix "
(string_"%d: '%s'") string_"%d: '%s'"
)concatenated_string
(tuple
(identifier_radix) identifier_radix
(identifier_num) identifier_num
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(binary_operator
(binary_operator
(identifier_ret) identifier_ret
(identifier_radix) identifier_radix
)binary_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_cached_map) identifier_cached_map
)attribute
(identifier_char) identifier_char
)subscript
)binary_operator
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Converts a string into an integer.
If possible, the built-in python conversion will be used for speed
purposes.
:param num: A string that will be converted to an integer.
:rtype: integer
:raise ValueError: when *num* is invalid |
(module
(function_definition
(function_name_get_all_destinations) function_name_get_all_destinations
(parameters
(identifier_self) identifier_self
(identifier_server_id) identifier_server_id
)parameters
(block
(expression_statement
(assignment
(identifier_server) identifier_server
(call
(attribute
(identifier_self) identifier_self
(identifier__get_server) identifier__get_server
)attribute
(argument_list
(identifier_server_id) identifier_server_id
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_server) identifier_server
(identifier_conn) identifier_conn
)attribute
(identifier_EnumerateInstances) identifier_EnumerateInstances
)attribute
(argument_list
(identifier_DESTINATION_CLASSNAME) identifier_DESTINATION_CLASSNAME
(keyword_argument
(identifier_namespace) identifier_namespace
(attribute
(identifier_server) identifier_server
(identifier_interop_ns) identifier_interop_ns
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return all listener destinations in a WBEM server.
This function contacts the WBEM server and retrieves the listener
destinations by enumerating the instances of CIM class
"CIM_ListenerDestinationCIMXML" in the Interop namespace of the WBEM
server.
Parameters:
server_id (:term:`string`):
The server ID of the WBEM server, returned by
:meth:`~pywbem.WBEMSubscriptionManager.add_server`.
Returns:
:class:`py:list` of :class:`~pywbem.CIMInstance`: The listener
destination instances.
Raises:
Exceptions raised by :class:`~pywbem.WBEMConnection`. |
(module
(function_definition
(function_name_columns) function_name_columns
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kw) identifier_kw
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_fut) identifier_fut
(call
(attribute
(identifier_self) identifier_self
(identifier__run_operation) identifier__run_operation
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__impl) identifier__impl
)attribute
(identifier_columns) identifier_columns
)attribute
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_fut) identifier_fut
)return_statement
)block
)function_definition
)module | Creates a results set of column names in specified tables by
executing the ODBC SQLColumns function. Each row fetched has the
following columns.
:param table: the table tname
:param catalog: the catalog name
:param schema: the schmea name
:param column: string search pattern for column names. |
(module
(function_definition
(function_name_stdchannel_redirected) function_name_stdchannel_redirected
(parameters
(identifier_stdchannel) identifier_stdchannel
(identifier_dest_filename) identifier_dest_filename
(default_parameter
(identifier_fake) identifier_fake
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_fake) identifier_fake
(block
(expression_statement
(yield
)yield
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_oldstdchannel) identifier_oldstdchannel
(assignment
(identifier_dest_file) identifier_dest_file
(None) None
)assignment
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_oldstdchannel) identifier_oldstdchannel
(call
(attribute
(identifier_os) identifier_os
(identifier_dup) identifier_dup
)attribute
(argument_list
(call
(attribute
(identifier_stdchannel) identifier_stdchannel
(identifier_fileno) identifier_fileno
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dest_file) identifier_dest_file
(call
(identifier_open) identifier_open
(argument_list
(identifier_dest_filename) identifier_dest_filename
(string_'w') string_'w'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_dup2) identifier_dup2
)attribute
(argument_list
(call
(attribute
(identifier_dest_file) identifier_dest_file
(identifier_fileno) identifier_fileno
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_stdchannel) identifier_stdchannel
(identifier_fileno) identifier_fileno
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(yield
)yield
)expression_statement
)block
(finally_clause
(block
(if_statement
(comparison_operator
(identifier_oldstdchannel) identifier_oldstdchannel
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_dup2) identifier_dup2
)attribute
(argument_list
(identifier_oldstdchannel) identifier_oldstdchannel
(call
(attribute
(identifier_stdchannel) identifier_stdchannel
(identifier_fileno) identifier_fileno
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_dest_file) identifier_dest_file
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_dest_file) identifier_dest_file
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | A context manager to temporarily redirect stdout or stderr
e.g.:
with stdchannel_redirected(sys.stderr, os.devnull):
if compiler.has_function('clock_gettime', libraries=['rt']):
libraries.append('rt') |
(module
(function_definition
(function_name_needed) function_name_needed
(parameters
(identifier_name) identifier_name
(identifier_required) identifier_required
)parameters
(block
(return_statement
(list_comprehension
(conditional_expression
(call
(identifier_relative_field) identifier_relative_field
(argument_list
(identifier_r) identifier_r
(identifier_name) identifier_name
)argument_list
)call
(boolean_operator
(identifier_r) identifier_r
(call
(identifier_startswith_field) identifier_startswith_field
(argument_list
(identifier_r) identifier_r
(identifier_name) identifier_name
)argument_list
)call
)boolean_operator
(None) None
)conditional_expression
(for_in_clause
(identifier_r) identifier_r
(identifier_required) identifier_required
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | RETURN SUBSET IF name IN REQUIRED |
(module
(function_definition
(function_name__update_dict) function_name__update_dict
(parameters
(identifier_self) identifier_self
(identifier_newdict) identifier_newdict
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_bugzilla) identifier_bugzilla
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bugzilla) identifier_bugzilla
)attribute
(identifier_post_translation) identifier_post_translation
)attribute
(argument_list
(dictionary
)dictionary
(identifier_newdict) identifier_newdict
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_aliases) identifier_aliases
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bugzilla) identifier_bugzilla
)attribute
(identifier__get_bug_aliases) identifier__get_bug_aliases
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_newname) identifier_newname
(identifier_oldname) identifier_oldname
)pattern_list
(identifier_aliases) identifier_aliases
(block
(if_statement
(comparison_operator
(identifier_oldname) identifier_oldname
(identifier_newdict) identifier_newdict
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_newname) identifier_newname
(identifier_newdict) identifier_newdict
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_newdict) identifier_newdict
(identifier_newname) identifier_newname
)subscript
(subscript
(identifier_newdict) identifier_newdict
(identifier_oldname) identifier_oldname
)subscript
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(subscript
(identifier_newdict) identifier_newdict
(identifier_newname) identifier_newname
)subscript
(subscript
(identifier_newdict) identifier_newdict
(identifier_oldname) identifier_oldname
)subscript
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(concatenated_string
(string_"Update dict contained differing alias values ") string_"Update dict contained differing alias values "
(string_"d[%s]=%s and d[%s]=%s , dropping the value ") string_"d[%s]=%s and d[%s]=%s , dropping the value "
(string_"d[%s]") string_"d[%s]"
)concatenated_string
(identifier_newname) identifier_newname
(subscript
(identifier_newdict) identifier_newdict
(identifier_newname) identifier_newname
)subscript
(identifier_oldname) identifier_oldname
(subscript
(identifier_newdict) identifier_newdict
(identifier_oldname) identifier_oldname
)subscript
(identifier_oldname) identifier_oldname
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
(delete_statement
(parenthesized_expression
(subscript
(identifier_newdict) identifier_newdict
(identifier_oldname) identifier_oldname
)subscript
)parenthesized_expression
)delete_statement
)block
)for_statement
)block
)if_statement
(for_statement
(identifier_key) identifier_key
(call
(attribute
(identifier_newdict) identifier_newdict
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(attribute
(identifier_self) identifier_self
(identifier__bug_fields) identifier__bug_fields
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__bug_fields) identifier__bug_fields
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___dict__) identifier___dict__
)attribute
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_newdict) identifier_newdict
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(string_'id') string_'id'
(attribute
(identifier_self) identifier_self
(identifier___dict__) identifier___dict__
)attribute
)comparison_operator
(comparison_operator
(string_'bug_id') string_'bug_id'
(attribute
(identifier_self) identifier_self
(identifier___dict__) identifier___dict__
)attribute
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"Bug object needs a bug_id") string_"Bug object needs a bug_id"
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Update internal dictionary, in a way that ensures no duplicate
entries are stored WRT field aliases |
(module
(function_definition
(function_name_nonull_dict) function_name_nonull_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(dictionary_comprehension
(pair
(identifier_k) identifier_k
(identifier_v) identifier_v
)pair
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_six) identifier_six
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_dict) identifier_dict
)attribute
)argument_list
)call
)for_in_clause
(if_clause
(boolean_operator
(identifier_v) identifier_v
(comparison_operator
(identifier_k) identifier_k
(string_'_codes') string_'_codes'
)comparison_operator
)boolean_operator
)if_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | Like dict, but does not hold any null values.
:return: |
(module
(function_definition
(function_name_code_memory_read) function_name_code_memory_read
(parameters
(identifier_self) identifier_self
(identifier_addr) identifier_addr
(identifier_num_bytes) identifier_num_bytes
)parameters
(block
(expression_statement
(assignment
(identifier_buf_size) identifier_buf_size
(identifier_num_bytes) identifier_num_bytes
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_buf) identifier_buf
(call
(parenthesized_expression
(binary_operator
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_uint8) identifier_c_uint8
)attribute
(identifier_buf_size) identifier_buf_size
)binary_operator
)parenthesized_expression
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__dll) identifier__dll
)attribute
(identifier_JLINKARM_ReadCodeMem) identifier_JLINKARM_ReadCodeMem
)attribute
(argument_list
(identifier_addr) identifier_addr
(identifier_buf_size) identifier_buf_size
(identifier_buf) identifier_buf
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_res) identifier_res
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_JLinkException) identifier_JLinkException
)attribute
(argument_list
(identifier_res) identifier_res
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(subscript
(call
(identifier_list) identifier_list
(argument_list
(identifier_buf) identifier_buf
)argument_list
)call
(slice
(colon) colon
(identifier_res) identifier_res
)slice
)subscript
)return_statement
)block
)function_definition
)module | Reads bytes from code memory.
Note:
This is similar to calling ``memory_read`` or ``memory_read8``,
except that this uses a cache and reads ahead. This should be used
in instances where you want to read a small amount of bytes at a
time, and expect to always read ahead.
Args:
self (JLink): the ``JLink`` instance
addr (int): starting address from which to read
num_bytes (int): number of bytes to read
Returns:
A list of bytes read from the target.
Raises:
JLinkException: if memory could not be read. |
(module
(function_definition
(function_name_handleStatus) function_name_handleStatus
(parameters
(identifier_self) identifier_self
(identifier_version) identifier_version
(identifier_code) identifier_code
(identifier_message) identifier_message
)parameters
(block
(expression_statement
(string_"extends handleStatus to instantiate a local response object") string_"extends handleStatus to instantiate a local response object"
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_proxy) identifier_proxy
(identifier_ProxyClient) identifier_ProxyClient
)attribute
(identifier_handleStatus) identifier_handleStatus
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_version) identifier_version
(identifier_code) identifier_code
(identifier_message) identifier_message
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__response) identifier__response
)attribute
(call
(attribute
(identifier_client) identifier_client
(identifier_Response) identifier_Response
)attribute
(argument_list
(identifier_version) identifier_version
(identifier_code) identifier_code
(identifier_message) identifier_message
(dictionary
)dictionary
(None) None
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | extends handleStatus to instantiate a local response object |
(module
(function_definition
(function_name_add_binary) function_name_add_binary
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_address) identifier_address
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_overwrite) identifier_overwrite
(False) False
)default_parameter
)parameters
(block
(expression_statement
(augmented_assignment
(identifier_address) identifier_address
(attribute
(identifier_self) identifier_self
(identifier_word_size_bytes) identifier_word_size_bytes
)attribute
)augmented_assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__segments) identifier__segments
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(call
(identifier__Segment) identifier__Segment
(argument_list
(identifier_address) identifier_address
(binary_operator
(identifier_address) identifier_address
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)binary_operator
(call
(identifier_bytearray) identifier_bytearray
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_word_size_bytes) identifier_word_size_bytes
)attribute
)argument_list
)call
(identifier_overwrite) identifier_overwrite
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add given data at given address. Set `overwrite` to ``True`` to
allow already added data to be overwritten. |
(module
(function_definition
(function_name_remove_one) function_name_remove_one
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___bulk) identifier___bulk
)attribute
(identifier_add_delete) identifier_add_delete
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___selector) identifier___selector
)attribute
(identifier__DELETE_ONE) identifier__DELETE_ONE
(keyword_argument
(identifier_collation) identifier_collation
(attribute
(identifier_self) identifier_self
(identifier___collation) identifier___collation
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Remove a single document matching the selector criteria. |
(module
(function_definition
(function_name_to_json) function_name_to_json
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_roots) identifier_roots
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_r) identifier_r
(attribute
(identifier_self) identifier_self
(identifier_roots) identifier_roots
)attribute
(block
(expression_statement
(call
(attribute
(identifier_roots) identifier_roots
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_r) identifier_r
(identifier_to_json) identifier_to_json
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(dictionary
(pair
(string_'roots') string_'roots'
(identifier_roots) identifier_roots
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Returns the JSON representation of this graph. |
(module
(function_definition
(function_name_save_expectations_config) function_name_save_expectations_config
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_filepath) identifier_filepath
(None) None
)default_parameter
(default_parameter
(identifier_discard_failed_expectations) identifier_discard_failed_expectations
(True) True
)default_parameter
(default_parameter
(identifier_discard_result_format_kwargs) identifier_discard_result_format_kwargs
(True) True
)default_parameter
(default_parameter
(identifier_discard_include_configs_kwargs) identifier_discard_include_configs_kwargs
(True) True
)default_parameter
(default_parameter
(identifier_discard_catch_exceptions_kwargs) identifier_discard_catch_exceptions_kwargs
(True) True
)default_parameter
(default_parameter
(identifier_suppress_warnings) identifier_suppress_warnings
(False) False
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_filepath) identifier_filepath
(None) None
)comparison_operator
(block
(pass_statement
)pass_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_expectations_config) identifier_expectations_config
(call
(attribute
(identifier_self) identifier_self
(identifier_get_expectations_config) identifier_get_expectations_config
)attribute
(argument_list
(identifier_discard_failed_expectations) identifier_discard_failed_expectations
(identifier_discard_result_format_kwargs) identifier_discard_result_format_kwargs
(identifier_discard_include_configs_kwargs) identifier_discard_include_configs_kwargs
(identifier_discard_catch_exceptions_kwargs) identifier_discard_catch_exceptions_kwargs
(identifier_suppress_warnings) identifier_suppress_warnings
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_expectation_config_str) identifier_expectation_config_str
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_expectations_config) identifier_expectations_config
(keyword_argument
(identifier_indent) identifier_indent
(integer_2) integer_2
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(call
(identifier_open) identifier_open
(argument_list
(identifier_filepath) identifier_filepath
(string_'w') string_'w'
)argument_list
)call
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_expectation_config_str) identifier_expectation_config_str
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Writes ``_expectation_config`` to a JSON file.
Writes the DataAsset's expectation config to the specified JSON ``filepath``. Failing expectations \
can be excluded from the JSON expectations config with ``discard_failed_expectations``. The kwarg key-value \
pairs :ref:`result_format`, :ref:`include_config`, and :ref:`catch_exceptions` are optionally excluded from the JSON \
expectations config.
Args:
filepath (string): \
The location and name to write the JSON config file to.
discard_failed_expectations (boolean): \
If True, excludes expectations that do not return ``success = True``. \
If False, all expectations are written to the JSON config file.
discard_result_format_kwargs (boolean): \
If True, the :ref:`result_format` attribute for each expectation is not written to the JSON config file. \
discard_include_configs_kwargs (boolean): \
If True, the :ref:`include_config` attribute for each expectation is not written to the JSON config file.\
discard_catch_exceptions_kwargs (boolean): \
If True, the :ref:`catch_exceptions` attribute for each expectation is not written to the JSON config \
file.
suppress_warnings (boolean): \
It True, all warnings raised by Great Expectations, as a result of dropped expectations, are \
suppressed. |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(identifier_publish) identifier_publish
)parameters
(block
(expression_statement
(assignment
(identifier_target_url) identifier_target_url
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_get_url) identifier_get_url
)attribute
(argument_list
(string_'PUBLISH') string_'PUBLISH'
(string_'POST') string_'POST'
(string_'create') string_'create'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(string_'POST') string_'POST'
(identifier_target_url) identifier_target_url
(keyword_argument
(identifier_json) identifier_json
(call
(attribute
(identifier_publish) identifier_publish
(identifier__serialize) identifier__serialize
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_create_from_result) identifier_create_from_result
)attribute
(argument_list
(call
(attribute
(identifier_r) identifier_r
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates a new publish group. |
(module
(function_definition
(function_name_to_ascii_hex) function_name_to_ascii_hex
(parameters
(typed_parameter
(identifier_value) identifier_value
(type
(identifier_int) identifier_int
)type
)typed_parameter
(typed_parameter
(identifier_digits) identifier_digits
(type
(identifier_int) identifier_int
)type
)typed_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(if_statement
(comparison_operator
(identifier_digits) identifier_digits
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(string_'') string_''
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_text) identifier_text
(string_'') string_''
)assignment
)expression_statement
(for_statement
(identifier__) identifier__
(call
(identifier_range) identifier_range
(argument_list
(integer_0) integer_0
(identifier_digits) identifier_digits
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(binary_operator
(call
(identifier_chr) identifier_chr
(argument_list
(binary_operator
(call
(identifier_ord) identifier_ord
(argument_list
(string_'0') string_'0'
)argument_list
)call
(parenthesized_expression
(binary_operator
(identifier_value) identifier_value
(integer_0x10) integer_0x10
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
(identifier_text) identifier_text
)binary_operator
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_value) identifier_value
(integer_0x10) integer_0x10
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_text) identifier_text
)return_statement
)block
)function_definition
)module | Converts an int value to ASCII hex, as used by LifeSOS.
Unlike regular hex, it uses the first 6 characters that follow
numerics on the ASCII table instead of A - F. |
(module
(function_definition
(function_name__forward_mode) function_name__forward_mode
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_f_val) identifier_f_val
(identifier_f_diff) identifier_f_diff
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_f) identifier_f
)attribute
(identifier__forward_mode) identifier__forward_mode
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_g_val) identifier_g_val
(identifier_g_diff) identifier_g_diff
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_g) identifier_g
)attribute
(identifier__forward_mode) identifier__forward_mode
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_val) identifier_val
(binary_operator
(identifier_f_val) identifier_f_val
(identifier_g_val) identifier_g_val
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_diff) identifier_diff
(binary_operator
(identifier_f_diff) identifier_f_diff
(identifier_g_diff) identifier_g_diff
)binary_operator
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_val) identifier_val
(identifier_diff) identifier_diff
)expression_list
)return_statement
)block
)function_definition
)module | Forward mode differentiation for a sum |
(module
(function_definition
(function_name_from_header) function_name_from_header
(parameters
(identifier_self) identifier_self
(identifier_param_name) identifier_param_name
(identifier_field) identifier_field
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___from_source) identifier___from_source
)attribute
(argument_list
(identifier_param_name) identifier_param_name
(identifier_field) identifier_field
(lambda
(attribute
(identifier_request) identifier_request
(identifier_headers) identifier_headers
)attribute
)lambda
(string_'header') string_'header'
)argument_list
)call
)return_statement
)block
)function_definition
)module | A decorator that converts a request header into a function parameter based on the specified field.
:param str param_name: The parameter which receives the argument.
:param Field field: The field class or instance used to deserialize the request header to a Python object.
:return: A function |
(module
(function_definition
(function_name_get_empty_dimension) function_name_get_empty_dimension
(parameters
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_dimension) identifier_dimension
(call
(identifier_JSONObject) identifier_JSONObject
(argument_list
(call
(identifier_Dimension) identifier_Dimension
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_dimension) identifier_dimension
(identifier_id) identifier_id
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_dimension) identifier_dimension
(identifier_name) identifier_name
)attribute
(string_'') string_''
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_dimension) identifier_dimension
(identifier_description) identifier_description
)attribute
(string_'') string_''
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_dimension) identifier_dimension
(identifier_project_id) identifier_project_id
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_dimension) identifier_dimension
(identifier_units) identifier_units
)attribute
(list
)list
)assignment
)expression_statement
(return_statement
(identifier_dimension) identifier_dimension
)return_statement
)block
)function_definition
)module | Returns a dimension object initialized with empty values |
(module
(function_definition
(function_name_scale_image) function_name_scale_image
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_new_width) identifier_new_width
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_figcanvas) identifier_figcanvas
)attribute
(identifier_fwidth) identifier_fwidth
)attribute
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier__scalestep) identifier__scalestep
)attribute
(attribute
(identifier_self) identifier_self
(identifier__scalefactor) identifier__scalefactor
)attribute
)binary_operator
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_height) identifier_new_height
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_figcanvas) identifier_figcanvas
)attribute
(identifier_fheight) identifier_fheight
)attribute
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier__scalestep) identifier__scalestep
)attribute
(attribute
(identifier_self) identifier_self
(identifier__scalefactor) identifier__scalefactor
)attribute
)binary_operator
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_figcanvas) identifier_figcanvas
)attribute
(identifier_setFixedSize) identifier_setFixedSize
)attribute
(argument_list
(identifier_new_width) identifier_new_width
(identifier_new_height) identifier_new_height
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Scale the image size. |
(module
(function_definition
(function_name_clear) function_name_clear
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier__hlock) identifier__hlock
)attribute
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_handlers) identifier_handlers
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)with_statement
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier__mlock) identifier__mlock
)attribute
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_memoize) identifier_memoize
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Discards all registered handlers and cached results |
(module
(function_definition
(function_name_qteGetMode) function_name_qteGetMode
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_mode) identifier_mode
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(block
(for_statement
(identifier_item) identifier_item
(attribute
(identifier_self) identifier_self
(identifier__qteModeList) identifier__qteModeList
)attribute
(block
(if_statement
(comparison_operator
(subscript
(identifier_item) identifier_item
(integer_0) integer_0
)subscript
(identifier_mode) identifier_mode
)comparison_operator
(block
(return_statement
(identifier_item) identifier_item
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Return a tuple containing the ``mode``, its value, and
its associated ``QLabel`` instance.
|Args|
* ``mode`` (**str**): size and position of new window.
|Returns|
* (**str**, **object**, **QLabel**: (mode, value, label).
|Raises|
* **QtmacsArgumentError** if at least one argument has an invalid type. |
(module
(function_definition
(function_name__parse) function_name__parse
(parameters
(typed_parameter
(identifier_read_method) identifier_read_method
(type
(identifier_Callable) identifier_Callable
)type
)typed_parameter
)parameters
(type
(identifier_HTTPResponse) identifier_HTTPResponse
)type
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_read_method) identifier_read_method
(argument_list
(integer_4096) integer_4096
)argument_list
)call
)assignment
)expression_statement
(while_statement
(boolean_operator
(comparison_operator
(string_b'HTTP/') string_b'HTTP/'
(identifier_response) identifier_response
)comparison_operator
(comparison_operator
(string_b'\r\n\r\n') string_b'\r\n\r\n'
(identifier_response) identifier_response
)comparison_operator
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_response) identifier_response
(call
(identifier_read_method) identifier_read_method
(argument_list
(integer_4096) integer_4096
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)while_statement
(expression_statement
(assignment
(identifier_fake_sock) identifier_fake_sock
(call
(identifier__FakeSocket) identifier__FakeSocket
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_HTTPResponse) identifier_HTTPResponse
(argument_list
(identifier_fake_sock) identifier_fake_sock
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_begin) identifier_begin
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Trick to standardize the API between sockets and SSLConnection objects. |
(module
(function_definition
(function_name__comparator_lt) function_name__comparator_lt
(parameters
(identifier_filter_value) identifier_filter_value
(identifier_tested_value) identifier_tested_value
)parameters
(block
(if_statement
(call
(identifier_is_string) identifier_is_string
(argument_list
(identifier_filter_value) identifier_filter_value
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_value_type) identifier_value_type
(call
(identifier_type) identifier_type
(argument_list
(identifier_tested_value) identifier_tested_value
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_filter_value) identifier_filter_value
(call
(identifier_value_type) identifier_value_type
(argument_list
(identifier_filter_value) identifier_filter_value
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(tuple
(identifier_TypeError) identifier_TypeError
(identifier_ValueError) identifier_ValueError
)tuple
(block
(if_statement
(comparison_operator
(identifier_value_type) identifier_value_type
(identifier_int) identifier_int
)comparison_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_filter_value) identifier_filter_value
(call
(identifier_float) identifier_float
(argument_list
(identifier_filter_value) identifier_filter_value
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(tuple
(identifier_TypeError) identifier_TypeError
(identifier_ValueError) identifier_ValueError
)tuple
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)except_clause
)try_statement
)block
)if_statement
(try_statement
(block
(return_statement
(comparison_operator
(identifier_tested_value) identifier_tested_value
(identifier_filter_value) identifier_filter_value
)comparison_operator
)return_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Tests if the filter value is strictly greater than the tested value
tested_value < filter_value |
(module
(function_definition
(function_name_text) function_name_text
(parameters
(typed_parameter
(identifier_message) identifier_message
(type
(identifier_Text) identifier_Text
)type
)typed_parameter
(typed_default_parameter
(identifier_default) identifier_default
(type
(identifier_Text) identifier_Text
)type
(string_"") string_""
)typed_default_parameter
(typed_default_parameter
(identifier_validate) identifier_validate
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(generic_type
(identifier_Type) identifier_Type
(type_parameter
(type
(identifier_Validator) identifier_Validator
)type
)type_parameter
)generic_type
)type
(type
(generic_type
(identifier_Callable) identifier_Callable
(type_parameter
(type
(list
(identifier_Text) identifier_Text
)list
)type
(type
(identifier_bool) identifier_bool
)type
)type_parameter
)generic_type
)type
(type
(None) None
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_qmark) identifier_qmark
(type
(identifier_Text) identifier_Text
)type
(identifier_DEFAULT_QUESTION_PREFIX) identifier_DEFAULT_QUESTION_PREFIX
)typed_default_parameter
(typed_default_parameter
(identifier_style) identifier_style
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_Style) identifier_Style
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(typed_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
(type
(identifier_Any) identifier_Any
)type
)typed_parameter
)parameters
(type
(identifier_Question) identifier_Question
)type
(block
(expression_statement
(assignment
(identifier_merged_style) identifier_merged_style
(call
(identifier_merge_styles) identifier_merge_styles
(argument_list
(list
(identifier_DEFAULT_STYLE) identifier_DEFAULT_STYLE
(identifier_style) identifier_style
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_validator) identifier_validator
(call
(identifier_build_validator) identifier_build_validator
(argument_list
(identifier_validate) identifier_validate
)argument_list
)call
)assignment
)expression_statement
(function_definition
(function_name_get_prompt_tokens) function_name_get_prompt_tokens
(parameters
)parameters
(block
(return_statement
(list
(tuple
(string_"class:qmark") string_"class:qmark"
(identifier_qmark) identifier_qmark
)tuple
(tuple
(string_"class:question") string_"class:question"
(call
(attribute
(string_' {} ') string_' {} '
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)tuple
)list
)return_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(identifier_PromptSession) identifier_PromptSession
(argument_list
(identifier_get_prompt_tokens) identifier_get_prompt_tokens
(keyword_argument
(identifier_style) identifier_style
(identifier_merged_style) identifier_merged_style
)keyword_argument
(keyword_argument
(identifier_validator) identifier_validator
(identifier_validator) identifier_validator
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_p) identifier_p
(identifier_default_buffer) identifier_default_buffer
)attribute
(identifier_reset) identifier_reset
)attribute
(argument_list
(call
(identifier_Document) identifier_Document
(argument_list
(identifier_default) identifier_default
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_Question) identifier_Question
(argument_list
(attribute
(identifier_p) identifier_p
(identifier_app) identifier_app
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Prompt the user to enter a free text message.
This question type can be used to prompt the user for some text input.
Args:
message: Question text
default: Default value will be returned if the user just hits
enter.
validate: Require the entered value to pass a validation. The
value can not be submited until the validator accepts
it (e.g. to check minimum password length).
This can either be a function accepting the input and
returning a boolean, or an class reference to a
subclass of the prompt toolkit Validator class.
qmark: Question prefix displayed in front of the question.
By default this is a `?`
style: A custom color and style for the question parts. You can
configure colors as well as font types for different elements.
Returns:
Question: Question instance, ready to be prompted (using `.ask()`). |
(module
(function_definition
(function_name_analyze_frames) function_name_analyze_frames
(parameters
(identifier_cls) identifier_cls
(identifier_workdir) identifier_workdir
)parameters
(block
(expression_statement
(assignment
(identifier_record) identifier_record
(call
(identifier_cls) identifier_cls
(argument_list
(None) None
(identifier_workdir) identifier_workdir
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_obj) identifier_obj
(dictionary
)dictionary
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_workdir) identifier_workdir
(string_'frames') string_'frames'
(string_'frames.json') string_'frames.json'
)argument_list
)call
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(attribute
(identifier_json) identifier_json
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(attribute
(identifier_record) identifier_record
(identifier_device_info) identifier_device_info
)attribute
(subscript
(identifier_obj) identifier_obj
(string_'device') string_'device'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_record) identifier_record
(identifier_frames) identifier_frames
)attribute
(subscript
(identifier_obj) identifier_obj
(string_'frames') string_'frames'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_record) identifier_record
(identifier_analyze_all) identifier_analyze_all
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_record) identifier_record
(identifier_save) identifier_save
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | generate draft from recorded frames |
(module
(function_definition
(function_name_array_append) function_name_array_append
(parameters
(identifier_path) identifier_path
(list_splat_pattern
(identifier_values) identifier_values
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(identifier__gen_4spec) identifier__gen_4spec
(argument_list
(identifier_LCB_SDCMD_ARRAY_ADD_LAST) identifier_LCB_SDCMD_ARRAY_ADD_LAST
(identifier_path) identifier_path
(call
(identifier_MultiValue) identifier_MultiValue
(argument_list
(list_splat
(identifier_values) identifier_values
)list_splat
)argument_list
)call
(keyword_argument
(identifier_create_path) identifier_create_path
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'create_parents') string_'create_parents'
(False) False
)argument_list
)call
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Add new values to the end of an array.
:param path: Path to the array. The path should contain the *array itself*
and not an element *within* the array
:param values: one or more values to append
:param create_parents: Create the array if it does not exist
.. note::
Specifying multiple values in `values` is more than just syntactical
sugar. It allows the server to insert the values as one single unit.
If you have multiple values to append to the same array, ensure they
are specified as multiple arguments to `array_append` rather than
multiple `array_append` commands to :cb_bmeth:`mutate_in`
This operation is only valid in :cb_bmeth:`mutate_in`.
.. seealso:: :func:`array_prepend`, :func:`upsert` |
(module
(function_definition
(function_name_stats) function_name_stats
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_ops) identifier_ops
(tuple
(identifier_min) identifier_min
(identifier_max) identifier_max
(attribute
(identifier_np) identifier_np
(identifier_median) identifier_median
)attribute
(identifier_sum) identifier_sum
)tuple
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_names) identifier_names
(list_comprehension
(attribute
(identifier_op) identifier_op
(identifier___name__) identifier___name__
)attribute
(for_in_clause
(identifier_op) identifier_op
(identifier_ops) identifier_ops
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ops) identifier_ops
(list_comprehension
(call
(identifier__zero_on_type_error) identifier__zero_on_type_error
(argument_list
(identifier_op) identifier_op
)argument_list
)call
(for_in_clause
(identifier_op) identifier_op
(identifier_ops) identifier_ops
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_columns) identifier_columns
(list_comprehension
(list_comprehension
(call
(identifier_op) identifier_op
(argument_list
(identifier_column) identifier_column
)argument_list
)call
(for_in_clause
(identifier_op) identifier_op
(identifier_ops) identifier_ops
)for_in_clause
)list_comprehension
(for_in_clause
(identifier_column) identifier_column
(attribute
(identifier_self) identifier_self
(identifier_columns) identifier_columns
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_table) identifier_table
(call
(attribute
(call
(call
(identifier_type) identifier_type
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(argument_list
)argument_list
)call
(identifier_with_columns) identifier_with_columns
)attribute
(argument_list
(call
(identifier_zip) identifier_zip
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_labels) identifier_labels
)attribute
(identifier_columns) identifier_columns
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stats) identifier_stats
(call
(attribute
(identifier_table) identifier_table
(identifier__unused_label) identifier__unused_label
)attribute
(argument_list
(string_'statistic') string_'statistic'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_table) identifier_table
(identifier_stats) identifier_stats
)subscript
(identifier_names) identifier_names
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_table) identifier_table
(identifier_move_to_start) identifier_move_to_start
)attribute
(argument_list
(identifier_stats) identifier_stats
)argument_list
)call
)expression_statement
(return_statement
(identifier_table) identifier_table
)return_statement
)block
)function_definition
)module | Compute statistics for each column and place them in a table. |
(module
(function_definition
(function_name_get_list_by_name) function_name_get_list_by_name
(parameters
(identifier_self) identifier_self
(identifier_display_name) identifier_display_name
)parameters
(block
(if_statement
(not_operator
(identifier_display_name) identifier_display_name
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Must provide a valid list display name') string_'Must provide a valid list display name'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_self) identifier_self
(identifier_build_url) identifier_build_url
)attribute
(argument_list
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__endpoints) identifier__endpoints
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'get_list_by_name') string_'get_list_by_name'
)argument_list
)call
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_display_name) identifier_display_name
(identifier_display_name) identifier_display_name
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_con) identifier_con
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_response) identifier_response
)not_operator
(block
(return_statement
(list
)list
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_list_constructor) identifier_list_constructor
)attribute
(argument_list
(keyword_argument
(identifier_parent) identifier_parent
(identifier_self) identifier_self
)keyword_argument
(dictionary_splat
(dictionary
(pair
(attribute
(identifier_self) identifier_self
(identifier__cloud_data_key) identifier__cloud_data_key
)attribute
(identifier_data) identifier_data
)pair
)dictionary
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a sharepoint list based on the display name of the list |
(module
(function_definition
(function_name_get_queryset) function_name_get_queryset
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_queryset) identifier_queryset
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_MostVotedManager) identifier_MostVotedManager
(identifier_self) identifier_self
)argument_list
)call
(identifier_get_queryset) identifier_get_queryset
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sql) identifier_sql
(assignment
(identifier_messages) identifier_messages
(call
(attribute
(identifier_queryset) identifier_queryset
(identifier_extra) identifier_extra
)attribute
(argument_list
(keyword_argument
(identifier_select) identifier_select
(dictionary
(pair
(string_'vote_count') string_'vote_count'
(identifier_sql) identifier_sql
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_messages) identifier_messages
(identifier_order_by) identifier_order_by
)attribute
(argument_list
(string_'-vote_count') string_'-vote_count'
(string_'received_time') string_'received_time'
)argument_list
)call
)return_statement
)block
)function_definition
)module | Query for the most voted messages sorting by the sum of
voted and after by date. |
(module
(function_definition
(function_name_load_pretrained) function_name_load_pretrained
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_wgts_fname) identifier_wgts_fname
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_itos_fname) identifier_itos_fname
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_default_parameter
(identifier_strict) identifier_strict
(type
(identifier_bool) identifier_bool
)type
(True) True
)typed_default_parameter
)parameters
(block
(expression_statement
(string_"Load a pretrained model and adapts it to the data vocabulary.") string_"Load a pretrained model and adapts it to the data vocabulary."
)expression_statement
(expression_statement
(assignment
(identifier_old_itos) identifier_old_itos
(call
(attribute
(identifier_pickle) identifier_pickle
(identifier_load) identifier_load
)attribute
(argument_list
(call
(identifier_open) identifier_open
(argument_list
(identifier_itos_fname) identifier_itos_fname
(string_'rb') string_'rb'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_old_stoi) identifier_old_stoi
(dictionary_comprehension
(pair
(identifier_v) identifier_v
(identifier_k) identifier_k
)pair
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_old_itos) identifier_old_itos
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_wgts) identifier_wgts
(call
(attribute
(identifier_torch) identifier_torch
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_wgts_fname) identifier_wgts_fname
(keyword_argument
(identifier_map_location) identifier_map_location
(lambda
(lambda_parameters
(identifier_storage) identifier_storage
(identifier_loc) identifier_loc
)lambda_parameters
(identifier_storage) identifier_storage
)lambda
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'model') string_'model'
(identifier_wgts) identifier_wgts
)comparison_operator
(block
(expression_statement
(assignment
(identifier_wgts) identifier_wgts
(subscript
(identifier_wgts) identifier_wgts
(string_'model') string_'model'
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_wgts) identifier_wgts
(call
(identifier_convert_weights) identifier_convert_weights
(argument_list
(identifier_wgts) identifier_wgts
(identifier_old_stoi) identifier_old_stoi
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_train_ds) identifier_train_ds
)attribute
(identifier_vocab) identifier_vocab
)attribute
(identifier_itos) identifier_itos
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(identifier_load_state_dict) identifier_load_state_dict
)attribute
(argument_list
(identifier_wgts) identifier_wgts
(keyword_argument
(identifier_strict) identifier_strict
(identifier_strict) identifier_strict
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Load a pretrained model and adapts it to the data vocabulary. |
(module
(function_definition
(function_name_end_task_type) function_name_end_task_type
(parameters
(identifier_self) identifier_self
(identifier_task_type_str) identifier_task_type_str
)parameters
(block
(assert_statement
(parenthesized_expression
(comparison_operator
(identifier_task_type_str) identifier_task_type_str
(attribute
(identifier_self) identifier_self
(identifier__task_dict) identifier__task_dict
)attribute
)comparison_operator
)parenthesized_expression
(call
(attribute
(string_"Task type has not been started yet: {}") string_"Task type has not been started yet: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_task_type_str) identifier_task_type_str
)argument_list
)call
)assert_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__log_progress) identifier__log_progress
)attribute
(argument_list
)argument_list
)call
)expression_statement
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__task_dict) identifier__task_dict
)attribute
(identifier_task_type_str) identifier_task_type_str
)subscript
)delete_statement
)block
)function_definition
)module | Call when processing of all tasks of the given type is completed, typically
just after exiting a loop that processes many tasks of the given type.
Progress messages logged at intervals will typically not include the final entry
which shows that processing is 100% complete, so a final progress message is
logged here. |
(module
(function_definition
(function_name_yield_once) function_name_yield_once
(parameters
(identifier_iterator) identifier_iterator
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_iterator) identifier_iterator
)argument_list
)call
)decorator
(function_definition
(function_name_yield_once_generator) function_name_yield_once_generator
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_yielded) identifier_yielded
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(call
(identifier_iterator) identifier_iterator
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_item) identifier_item
(identifier_yielded) identifier_yielded
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_yielded) identifier_yielded
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)expression_statement
(expression_statement
(yield
(identifier_item) identifier_item
)yield
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_yield_once_generator) identifier_yield_once_generator
)return_statement
)block
)function_definition
)module | Decorator to make an iterator returned by a method yield each result only
once.
>>> @yield_once
... def generate_list(foo):
... return foo
>>> list(generate_list([1, 2, 1]))
[1, 2]
:param iterator: Any method that returns an iterator
:return: An method returning an iterator
that yields every result only once at most. |
(module
(function_definition
(function_name_pretrain) function_name_pretrain
(parameters
(identifier_self) identifier_self
(identifier_train_set) identifier_train_set
(default_parameter
(identifier_validation_set) identifier_validation_set
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_do_pretrain) identifier_do_pretrain
)attribute
(True) True
)assignment
)expression_statement
(function_definition
(function_name_set_params_func) function_name_set_params_func
(parameters
(identifier_autoenc) identifier_autoenc
(identifier_autoencgraph) identifier_autoencgraph
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(call
(attribute
(identifier_autoenc) identifier_autoenc
(identifier_get_parameters) identifier_get_parameters
)attribute
(argument_list
(keyword_argument
(identifier_graph) identifier_graph
(identifier_autoencgraph) identifier_autoencgraph
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_encoding_w_) identifier_encoding_w_
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_params) identifier_params
(string_'enc_w') string_'enc_w'
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_encoding_b_) identifier_encoding_b_
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_params) identifier_params
(string_'enc_b') string_'enc_b'
)subscript
)argument_list
)call
)expression_statement
)block
)function_definition
(return_statement
(call
(attribute
(identifier_SupervisedModel) identifier_SupervisedModel
(identifier_pretrain_procedure) identifier_pretrain_procedure
)attribute
(argument_list
(identifier_self) identifier_self
(attribute
(identifier_self) identifier_self
(identifier_autoencoders) identifier_autoencoders
)attribute
(attribute
(identifier_self) identifier_self
(identifier_autoencoder_graphs) identifier_autoencoder_graphs
)attribute
(keyword_argument
(identifier_set_params_func) identifier_set_params_func
(identifier_set_params_func) identifier_set_params_func
)keyword_argument
(keyword_argument
(identifier_train_set) identifier_train_set
(identifier_train_set) identifier_train_set
)keyword_argument
(keyword_argument
(identifier_validation_set) identifier_validation_set
(identifier_validation_set) identifier_validation_set
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Perform Unsupervised pretraining of the autoencoder. |
(module
(function_definition
(function_name_get_chain) function_name_get_chain
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_table) identifier_table
(string_"filter") string_"filter"
)default_parameter
)parameters
(block
(return_statement
(list_comprehension
(identifier_r) identifier_r
(for_in_clause
(identifier_r) identifier_r
(attribute
(identifier_self) identifier_self
(identifier_rules) identifier_rules
)attribute
)for_in_clause
(if_clause
(boolean_operator
(comparison_operator
(subscript
(identifier_r) identifier_r
(string_"table") string_"table"
)subscript
(identifier_table) identifier_table
)comparison_operator
(comparison_operator
(subscript
(identifier_r) identifier_r
(string_"chain") string_"chain"
)subscript
(identifier_name) identifier_name
)comparison_operator
)boolean_operator
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Get the list of rules for a particular chain. Chain order is kept intact.
Args:
name (str): chain name, e.g. ``
table (str): table name, defaults to ``filter``
Returns:
list: rules |
(module
(function_definition
(function_name_stream) function_name_stream
(parameters
(identifier_streaming_fn) identifier_streaming_fn
(default_parameter
(identifier_status) identifier_status
(integer_200) integer_200
)default_parameter
(default_parameter
(identifier_headers) identifier_headers
(None) None
)default_parameter
(default_parameter
(identifier_content_type) identifier_content_type
(string_"text/plain; charset=utf-8") string_"text/plain; charset=utf-8"
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_StreamingHTTPResponse) identifier_StreamingHTTPResponse
(argument_list
(identifier_streaming_fn) identifier_streaming_fn
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
(keyword_argument
(identifier_content_type) identifier_content_type
(identifier_content_type) identifier_content_type
)keyword_argument
(keyword_argument
(identifier_status) identifier_status
(identifier_status) identifier_status
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Accepts an coroutine `streaming_fn` which can be used to
write chunks to a streaming response. Returns a `StreamingHTTPResponse`.
Example usage::
@app.route("/")
async def index(request):
async def streaming_fn(response):
await response.write('foo')
await response.write('bar')
return stream(streaming_fn, content_type='text/plain')
:param streaming_fn: A coroutine accepts a response and
writes content to that response.
:param mime_type: Specific mime_type.
:param headers: Custom Headers. |
(module
(function_definition
(function_name_save_metadata_json) function_name_save_metadata_json
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_filename) identifier_filename
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_structure) identifier_structure
(type
(identifier_JsonExportable) identifier_JsonExportable
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_compress_json) identifier_compress_json
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_filename) identifier_filename
(string_'.json.xz') string_'.json.xz'
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_filename) identifier_filename
(string_'.json') string_'.json'
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(identifier_save_structure_to_file) identifier_save_structure_to_file
(argument_list
(identifier_structure) identifier_structure
(identifier_filename) identifier_filename
)argument_list
)call
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_structure) identifier_structure
(tuple
(identifier_Post) identifier_Post
(identifier_StoryItem) identifier_StoryItem
)tuple
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_log) identifier_log
)attribute
(argument_list
(string_'json') string_'json'
(keyword_argument
(identifier_end) identifier_end
(string_' ') string_' '
)keyword_argument
(keyword_argument
(identifier_flush) identifier_flush
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Saves metadata JSON file of a structure. |
(module
(function_definition
(function_name_rgb2cmy) function_name_rgb2cmy
(parameters
(identifier_self) identifier_self
(identifier_img) identifier_img
(default_parameter
(identifier_whitebg) identifier_whitebg
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_tmp) identifier_tmp
(binary_operator
(identifier_img) identifier_img
(float_1.0) float_1.0
)binary_operator
)assignment
)expression_statement
(if_statement
(identifier_whitebg) identifier_whitebg
(block
(expression_statement
(assignment
(identifier_tmp) identifier_tmp
(parenthesized_expression
(binary_operator
(float_1.0) float_1.0
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_img) identifier_img
(call
(attribute
(identifier_img) identifier_img
(identifier_min) identifier_min
)attribute
(argument_list
)argument_list
)call
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_img) identifier_img
(identifier_max) identifier_max
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_img) identifier_img
(identifier_min) identifier_min
)attribute
(argument_list
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
)binary_operator
)parenthesized_expression
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(binary_operator
(identifier_tmp) identifier_tmp
(float_0.0) float_0.0
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(slice
(colon) colon
)slice
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
(binary_operator
(parenthesized_expression
(binary_operator
(subscript
(identifier_tmp) identifier_tmp
(slice
(colon) colon
)slice
(slice
(colon) colon
)slice
(integer_1) integer_1
)subscript
(subscript
(identifier_tmp) identifier_tmp
(slice
(colon) colon
)slice
(slice
(colon) colon
)slice
(integer_2) integer_2
)subscript
)binary_operator
)parenthesized_expression
(float_2.0) float_2.0
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(slice
(colon) colon
)slice
(slice
(colon) colon
)slice
(integer_1) integer_1
)subscript
(binary_operator
(parenthesized_expression
(binary_operator
(subscript
(identifier_tmp) identifier_tmp
(slice
(colon) colon
)slice
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
(subscript
(identifier_tmp) identifier_tmp
(slice
(colon) colon
)slice
(slice
(colon) colon
)slice
(integer_2) integer_2
)subscript
)binary_operator
)parenthesized_expression
(float_2.0) float_2.0
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(slice
(colon) colon
)slice
(slice
(colon) colon
)slice
(integer_2) integer_2
)subscript
(binary_operator
(parenthesized_expression
(binary_operator
(subscript
(identifier_tmp) identifier_tmp
(slice
(colon) colon
)slice
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
(subscript
(identifier_tmp) identifier_tmp
(slice
(colon) colon
)slice
(slice
(colon) colon
)slice
(integer_1) integer_1
)subscript
)binary_operator
)parenthesized_expression
(float_2.0) float_2.0
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
)module | transforms image from RGB to CMY |
(module
(function_definition
(function_name_edit_tab) function_name_edit_tab
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_setFocus) identifier_setFocus
)attribute
(argument_list
(True) True
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_tab_index) identifier_tab_index
)attribute
(identifier_index) identifier_index
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rect) identifier_rect
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_main) identifier_main
)attribute
(identifier_tabRect) identifier_tabRect
)attribute
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_rect) identifier_rect
(identifier_adjust) identifier_adjust
)attribute
(argument_list
(integer_1) integer_1
(integer_1) integer_1
(unary_operator
(integer_2) integer_2
)unary_operator
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_setFixedSize) identifier_setFixedSize
)attribute
(argument_list
(call
(attribute
(identifier_rect) identifier_rect
(identifier_size) identifier_size
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_move) identifier_move
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_main) identifier_main
)attribute
(identifier_mapToGlobal) identifier_mapToGlobal
)attribute
(argument_list
(call
(attribute
(identifier_rect) identifier_rect
(identifier_topLeft) identifier_topLeft
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_main) identifier_main
)attribute
(identifier_tabText) identifier_tabText
)attribute
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_text) identifier_text
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_u'&') string_u'&'
(string_u'') string_u''
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_split_char) identifier_split_char
)attribute
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(subscript
(call
(attribute
(identifier_text) identifier_text
(identifier_split) identifier_split
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_split_char) identifier_split_char
)attribute
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_split_index) identifier_split_index
)attribute
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_setText) identifier_setText
)attribute
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_selectAll) identifier_selectAll
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_isVisible) identifier_isVisible
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_show) identifier_show
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Activate the edit tab. |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(identifier_database) identifier_database
(identifier_key) identifier_key
(default_parameter
(identifier_callback) identifier_callback
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_token) identifier_token
(call
(attribute
(identifier_self) identifier_self
(identifier__get_token) identifier__get_token
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__enqueue) identifier__enqueue
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__PendingItem) identifier__PendingItem
)attribute
(argument_list
(identifier_token) identifier_token
(call
(identifier_BlobCommand) identifier_BlobCommand
(argument_list
(keyword_argument
(identifier_token) identifier_token
(identifier_token) identifier_token
)keyword_argument
(keyword_argument
(identifier_database) identifier_database
(identifier_database) identifier_database
)keyword_argument
(keyword_argument
(identifier_content) identifier_content
(call
(identifier_DeleteCommand) identifier_DeleteCommand
(argument_list
(keyword_argument
(identifier_key) identifier_key
(attribute
(identifier_key) identifier_key
(identifier_bytes) identifier_bytes
)attribute
)keyword_argument
)argument_list
)call
)keyword_argument
)argument_list
)call
(identifier_callback) identifier_callback
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Delete an item from the given database.
:param database: The database from which to delete the value.
:type database: .BlobDatabaseID
:param key: The key to delete.
:type key: uuid.UUID
:param callback: A callback to be called on success or failure. |
(module
(function_definition
(function_name_cartesian_product) function_name_cartesian_product
(parameters
(identifier_arrays) identifier_arrays
(default_parameter
(identifier_flat) identifier_flat
(True) True
)default_parameter
(default_parameter
(identifier_copy) identifier_copy
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_arrays) identifier_arrays
(call
(attribute
(identifier_np) identifier_np
(identifier_broadcast_arrays) identifier_broadcast_arrays
)attribute
(argument_list
(list_splat
(call
(attribute
(identifier_np) identifier_np
(identifier_ix_) identifier_ix_
)attribute
(argument_list
(list_splat
(identifier_arrays) identifier_arrays
)list_splat
)argument_list
)call
)list_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_flat) identifier_flat
(block
(return_statement
(call
(identifier_tuple) identifier_tuple
(generator_expression
(conditional_expression
(call
(attribute
(identifier_arr) identifier_arr
(identifier_flatten) identifier_flatten
)attribute
(argument_list
)argument_list
)call
(identifier_copy) identifier_copy
(attribute
(identifier_arr) identifier_arr
(identifier_flat) identifier_flat
)attribute
)conditional_expression
(for_in_clause
(identifier_arr) identifier_arr
(identifier_arrays) identifier_arrays
)for_in_clause
)generator_expression
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_tuple) identifier_tuple
(generator_expression
(conditional_expression
(call
(attribute
(identifier_arr) identifier_arr
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
(identifier_copy) identifier_copy
(identifier_arr) identifier_arr
)conditional_expression
(for_in_clause
(identifier_arr) identifier_arr
(identifier_arrays) identifier_arrays
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Efficient cartesian product of a list of 1D arrays returning the
expanded array views for each dimensions. By default arrays are
flattened, which may be controlled with the flat flag. The array
views can be turned into regular arrays with the copy flag. |
(module
(function_definition
(function_name_taxon_info) function_name_taxon_info
(parameters
(identifier_taxid) identifier_taxid
(identifier_ncbi) identifier_ncbi
(identifier_outFH) identifier_outFH
)parameters
(block
(expression_statement
(assignment
(identifier_taxid) identifier_taxid
(call
(identifier_int) identifier_int
(argument_list
(identifier_taxid) identifier_taxid
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tax_name) identifier_tax_name
(subscript
(call
(attribute
(identifier_ncbi) identifier_ncbi
(identifier_get_taxid_translator) identifier_get_taxid_translator
)attribute
(argument_list
(list
(identifier_taxid) identifier_taxid
)list
)argument_list
)call
(identifier_taxid) identifier_taxid
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rank) identifier_rank
(subscript
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(call
(attribute
(identifier_ncbi) identifier_ncbi
(identifier_get_rank) identifier_get_rank
)attribute
(argument_list
(list
(identifier_taxid) identifier_taxid
)list
)argument_list
)call
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lineage) identifier_lineage
(call
(attribute
(identifier_ncbi) identifier_ncbi
(identifier_get_taxid_translator) identifier_get_taxid_translator
)attribute
(argument_list
(call
(attribute
(identifier_ncbi) identifier_ncbi
(identifier_get_lineage) identifier_get_lineage
)attribute
(argument_list
(identifier_taxid) identifier_taxid
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lineage) identifier_lineage
(list_comprehension
(call
(attribute
(string_'{}:{}') string_'{}:{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_lineage) identifier_lineage
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lineage) identifier_lineage
(call
(attribute
(string_';') string_';'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_lineage) identifier_lineage
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_x) identifier_x
(list_comprehension
(call
(identifier_str) identifier_str
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(list
(identifier_tax_name) identifier_tax_name
(identifier_taxid) identifier_taxid
(identifier_rank) identifier_rank
(identifier_lineage) identifier_lineage
)list
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_outFH) identifier_outFH
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(call
(attribute
(string_'\t') string_'\t'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(string_'\n') string_'\n'
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Write info on taxid |
(module
(function_definition
(function_name_undo) function_name_undo
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__wasUndo) identifier__wasUndo
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__qteIndex) identifier__qteIndex
)attribute
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__qteStack) identifier__qteStack
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__qteIndex) identifier__qteIndex
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__wasUndo) identifier__wasUndo
)attribute
(True) True
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__qteIndex) identifier__qteIndex
)attribute
(integer_0) integer_0
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_undoObj) identifier_undoObj
(subscript
(attribute
(identifier_self) identifier_self
(identifier__qteStack) identifier__qteStack
)attribute
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier__qteIndex) identifier__qteIndex
)attribute
(integer_1) integer_1
)binary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_undoObj) identifier_undoObj
(call
(identifier_QtmacsUndoCommand) identifier_QtmacsUndoCommand
(argument_list
(identifier_undoObj) identifier_undoObj
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__push) identifier__push
)attribute
(argument_list
(identifier_undoObj) identifier_undoObj
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(parenthesized_expression
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier__qteIndex) identifier__qteIndex
)attribute
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(attribute
(identifier_self) identifier_self
(identifier__qteLastSavedUndoIndex) identifier__qteLastSavedUndoIndex
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_qtesigSavedState) identifier_qtesigSavedState
)attribute
(identifier_emit) identifier_emit
)attribute
(argument_list
(call
(identifier_QtmacsMessage) identifier_QtmacsMessage
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_saveState) identifier_saveState
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Undo the last command by adding its inverse action to the stack.
This method automatically takes care of applying the correct
inverse action when it is called consecutively (ie. without a
calling ``push`` in between).
The ``qtesigSavedState`` signal is triggered whenever enough undo
operations have been performed to put the document back into the
last saved state.
..warning: The ``qtesigSaveState`` is triggered whenever the
logic of the undo operations **should** have led back to
that state, but since the ``UndoStack`` only stacks and
``QtmacsUndoCommand`` objects it may well be the document is
**not** in the last saved state, eg. because not all
modifications were protected by undo objects, or because the
``QtmacsUndoCommand`` objects have a bug. It is therefore
advisable to check in the calling class if the content is
indeed identical by comparing it with a temporarily stored
copy.
|Args|
* **None**
|Signals|
* ``qtesigSavedState``: the document is the last saved state.
|Returns|
* **None**
|Raises|
* **None** |
(module
(function_definition
(function_name_set_image_path) function_name_set_image_path
(parameters
(identifier_self) identifier_self
(identifier_identifier) identifier_identifier
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(identifier_open) identifier_open
(argument_list
(identifier_path) identifier_path
(string_'rb') string_'rb'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_image_data) identifier_set_image_data
)attribute
(argument_list
(identifier_identifier) identifier_identifier
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set data for an image mentioned in the template.
@param identifier: Identifier of the image; refer to the image in the
template by setting "py3o.[identifier]" as the name of that image.
@type identifier: string
@param path: Image path on the file system
@type path: string |
(module
(function_definition
(function_name__get_lattice_parameters) function_name__get_lattice_parameters
(parameters
(identifier_lattice) identifier_lattice
)parameters
(block
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_dot) identifier_dot
)attribute
(argument_list
(attribute
(identifier_lattice) identifier_lattice
(identifier_T) identifier_T
)attribute
(identifier_lattice) identifier_lattice
)argument_list
)call
(identifier_diagonal) identifier_diagonal
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(keyword_argument
(identifier_dtype) identifier_dtype
(string_'double') string_'double'
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return basis vector lengths
Parameters
----------
lattice : array_like
Basis vectors given as column vectors
shape=(3, 3), dtype='double'
Returns
-------
ndarray, shape=(3,), dtype='double' |
(module
(function_definition
(function_name_descendants) function_name_descendants
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
(default_parameter
(identifier_relations) identifier_relations
(None) None
)default_parameter
(default_parameter
(identifier_reflexive) identifier_reflexive
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_reflexive) identifier_reflexive
(block
(expression_statement
(assignment
(identifier_decs) identifier_decs
(call
(attribute
(identifier_self) identifier_self
(identifier_descendants) identifier_descendants
)attribute
(argument_list
(identifier_node) identifier_node
(identifier_relations) identifier_relations
(keyword_argument
(identifier_reflexive) identifier_reflexive
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_decs) identifier_decs
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)expression_statement
(return_statement
(identifier_decs) identifier_decs
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_g) identifier_g
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_relations) identifier_relations
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_g) identifier_g
(call
(attribute
(identifier_self) identifier_self
(identifier_get_graph) identifier_get_graph
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_g) identifier_g
(call
(attribute
(identifier_self) identifier_self
(identifier_get_filtered_graph) identifier_get_filtered_graph
)attribute
(argument_list
(identifier_relations) identifier_relations
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_node) identifier_node
(identifier_g) identifier_g
)comparison_operator
(block
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_nx) identifier_nx
(identifier_descendants) identifier_descendants
)attribute
(argument_list
(identifier_g) identifier_g
(identifier_node) identifier_node
)argument_list
)call
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(list
)list
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns all descendants of specified node.
The default implementation is to use networkx, but some
implementations of the Ontology class may use a database or
service backed implementation, for large graphs.
Arguments
---------
node : str
identifier for node in ontology
reflexive : bool
if true, return query node in graph
relations : list
relation (object property) IDs used to filter
Returns
-------
list[str]
descendant node IDs |
(module
(function_definition
(function_name_get_adjustable_form) function_name_get_adjustable_form
(parameters
(identifier_self) identifier_self
(identifier_element_dispatch) identifier_element_dispatch
)parameters
(block
(expression_statement
(assignment
(identifier_adjustable_form) identifier_adjustable_form
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(call
(attribute
(identifier_element_dispatch) identifier_element_dispatch
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_adjustable_form) identifier_adjustable_form
(identifier_key) identifier_key
)subscript
(call
(subscript
(identifier_element_dispatch) identifier_element_dispatch
(identifier_key) identifier_key
)subscript
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_adjustable_form) identifier_adjustable_form
)return_statement
)block
)function_definition
)module | Create an adjustable form from an element dispatch table. |
(module
(function_definition
(function_name_raw_diff) function_name_raw_diff
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_udiff_copy) identifier_udiff_copy
(call
(attribute
(identifier_self) identifier_self
(identifier_copy_iterator) identifier_copy_iterator
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier___format) identifier___format
)attribute
(string_'gitdiff') string_'gitdiff'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_udiff_copy) identifier_udiff_copy
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_gitdiff) identifier__parse_gitdiff
)attribute
(argument_list
(identifier_udiff_copy) identifier_udiff_copy
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(string_u'') string_u''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_udiff_copy) identifier_udiff_copy
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns raw string as udiff |
(module
(function_definition
(function_name_get_max_levels_metadata) function_name_get_max_levels_metadata
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(call
(identifier_dict) identifier_dict
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__max_levels_metadata) identifier__max_levels_metadata
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_metadata) identifier_metadata
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'existing_cardinal_values') string_'existing_cardinal_values'
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_my_osid_object_form) identifier_my_osid_object_form
)attribute
(identifier__my_map) identifier__my_map
)attribute
(string_'maxLevels') string_'maxLevels'
)subscript
)pair
)dictionary
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_Metadata) identifier_Metadata
(argument_list
(dictionary_splat
(identifier_metadata) identifier_metadata
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | get the metadata for max levels |
(module
(function_definition
(function_name__get_ancestors_path) function_name__get_ancestors_path
(parameters
(identifier_self) identifier_self
(identifier_model) identifier_model
(default_parameter
(identifier_levels) identifier_levels
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_issubclass) identifier_issubclass
(argument_list
(identifier_model) identifier_model
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"%r is not a subclass of %r") string_"%r is not a subclass of %r"
(tuple
(identifier_model) identifier_model
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ancestry) identifier_ancestry
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parent_link) identifier_parent_link
(call
(attribute
(attribute
(identifier_model) identifier_model
(identifier__meta) identifier__meta
)attribute
(identifier_get_ancestor_link) identifier_get_ancestor_link
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_levels) identifier_levels
(block
(expression_statement
(augmented_assignment
(identifier_levels) identifier_levels
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
(while_statement
(comparison_operator
(identifier_parent_link) identifier_parent_link
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_related) identifier_related
(attribute
(identifier_parent_link) identifier_parent_link
(identifier_remote_field) identifier_remote_field
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ancestry) identifier_ancestry
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_0) integer_0
(call
(attribute
(identifier_related) identifier_related
(identifier_get_accessor_name) identifier_get_accessor_name
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(identifier_levels) identifier_levels
(comparison_operator
(identifier_levels) identifier_levels
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_parent_model) identifier_parent_model
(attribute
(identifier_related) identifier_related
(identifier_model) identifier_model
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parent_link) identifier_parent_link
(call
(attribute
(attribute
(identifier_parent_model) identifier_parent_model
(identifier__meta) identifier__meta
)attribute
(identifier_get_ancestor_link) identifier_get_ancestor_link
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_parent_link) identifier_parent_link
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)while_statement
(return_statement
(call
(attribute
(identifier_LOOKUP_SEP) identifier_LOOKUP_SEP
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_ancestry) identifier_ancestry
)argument_list
)call
)return_statement
)block
)function_definition
)module | Serves as an opposite to _get_subclasses_recurse, instead walking from
the Model class up the Model's ancestry and constructing the desired
select_related string backwards. |
(module
(function_definition
(function_name_hx2dp) function_name_hx2dp
(parameters
(identifier_string) identifier_string
)parameters
(block
(expression_statement
(assignment
(identifier_string) identifier_string
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_stringToCharP) identifier_stringToCharP
)attribute
(argument_list
(identifier_string) identifier_string
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lenout) identifier_lenout
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
(integer_80) integer_80
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_errmsg) identifier_errmsg
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_stringToCharP) identifier_stringToCharP
)attribute
(argument_list
(identifier_lenout) identifier_lenout
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_number) identifier_number
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_double) identifier_c_double
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_error) identifier_error
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_libspice) identifier_libspice
(identifier_hx2dp_c) identifier_hx2dp_c
)attribute
(argument_list
(identifier_string) identifier_string
(identifier_lenout) identifier_lenout
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_number) identifier_number
)argument_list
)call
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_error) identifier_error
)argument_list
)call
(identifier_errmsg) identifier_errmsg
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_error) identifier_error
(identifier_value) identifier_value
)attribute
)not_operator
(block
(return_statement
(attribute
(identifier_number) identifier_number
(identifier_value) identifier_value
)attribute
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_toPythonString) identifier_toPythonString
)attribute
(argument_list
(identifier_errmsg) identifier_errmsg
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Convert a string representing a double precision number in a
base 16 scientific notation into its equivalent double
precision number.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/hx2dp_c.html
:param string: Hex form string to convert to double precision.
:type string: str
:return: Double precision value to be returned, Or Error Message.
:rtype: float or str |
(module
(function_definition
(function_name_StatFS) function_name_StatFS
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_platform) identifier_platform
(identifier_system) identifier_system
)attribute
(argument_list
)argument_list
)call
(string_"Windows") string_"Windows"
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"os.statvfs not available on Windows") string_"os.statvfs not available on Windows"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_local_path) identifier_local_path
(call
(attribute
(identifier_client_utils) identifier_client_utils
(identifier_CanonicalPathToLocalPath) identifier_CanonicalPathToLocalPath
)attribute
(argument_list
(boolean_operator
(identifier_path) identifier_path
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)boolean_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_statvfs) identifier_statvfs
)attribute
(argument_list
(identifier_local_path) identifier_local_path
)argument_list
)call
)return_statement
)block
)function_definition
)module | Call os.statvfs for a given list of rdf_paths.
OS X and Linux only.
Note that a statvfs call for a network filesystem (e.g. NFS) that is
unavailable, e.g. due to no network, will result in the call blocking.
Args:
path: a Unicode string containing the path or None. If path is None the
value in self.path is used.
Returns:
posix.statvfs_result object
Raises:
RuntimeError: if called on windows |
(module
(function_definition
(function_name_set_state) function_name_set_state
(parameters
(identifier_self) identifier_self
(identifier_state) identifier_state
(keyword_separator
)keyword_separator
(default_parameter
(identifier_index) identifier_index
(integer_0) integer_0
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_values) identifier_set_values
)attribute
(argument_list
(dictionary
(pair
(identifier_ATTR_DEVICE_STATE) identifier_ATTR_DEVICE_STATE
(call
(identifier_int) identifier_int
(argument_list
(identifier_state) identifier_state
)argument_list
)call
)pair
)dictionary
(keyword_argument
(identifier_index) identifier_index
(identifier_index) identifier_index
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Set state of a light. |
(module
(function_definition
(function_name_read_file) function_name_read_file
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(default_parameter
(identifier_location) identifier_location
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(call
(identifier_requests_retry_session) identifier_requests_retry_session
(argument_list
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_timeout) identifier_timeout
(float_10.0) float_10.0
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_text) identifier_text
(attribute
(identifier_response) identifier_response
(identifier_text) identifier_text
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'tab-width') string_'tab-width'
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_text) identifier_text
(identifier_expandtabs) identifier_expandtabs
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(string_'tab-width') string_'tab-width'
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_text) identifier_text
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
(True) True
)argument_list
)call
)return_statement
)block
)function_definition
)module | Read content from the web by overriding
`LiteralIncludeReader.read_file`. |
(module
(function_definition
(function_name_remove_volume) function_name_remove_volume
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_lvremove_cmd) identifier_lvremove_cmd
(conditional_expression
(list
(string_'sudo') string_'sudo'
)list
(comparison_operator
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_lvm_command) identifier_lvm_command
)attribute
(argument_list
)argument_list
)call
(identifier_sudo) identifier_sudo
)attribute
(argument_list
)argument_list
)call
(True) True
)comparison_operator
(list
)list
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_lvremove_cmd) identifier_lvremove_cmd
(identifier_extend) identifier_extend
)attribute
(argument_list
(list
(string_'lvremove') string_'lvremove'
(string_'-f') string_'-f'
(call
(attribute
(identifier_self) identifier_self
(identifier_volume_path) identifier_volume_path
)attribute
(argument_list
)argument_list
)call
)list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_output) identifier_check_output
)attribute
(argument_list
(identifier_lvremove_cmd) identifier_lvremove_cmd
(keyword_argument
(identifier_timeout) identifier_timeout
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___lvm_snapshot_remove_cmd_timeout__) identifier___lvm_snapshot_remove_cmd_timeout__
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Remove this volume
:return: None |
(module
(function_definition
(function_name__convert_simple_value_boolean_query_to_and_boolean_queries) function_name__convert_simple_value_boolean_query_to_and_boolean_queries
(parameters
(identifier_tree) identifier_tree
(identifier_keyword) identifier_keyword
)parameters
(block
(function_definition
(function_name__create_operator_node) function_name__create_operator_node
(parameters
(identifier_value_node) identifier_value_node
)parameters
(block
(expression_statement
(assignment
(identifier_base_node) identifier_base_node
(conditional_expression
(attribute
(identifier_value_node) identifier_value_node
(identifier_op) identifier_op
)attribute
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value_node) identifier_value_node
(identifier_NotOp) identifier_NotOp
)argument_list
)call
(identifier_value_node) identifier_value_node
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_updated_base_node) identifier_updated_base_node
(conditional_expression
(call
(identifier_KeywordOp) identifier_KeywordOp
(argument_list
(identifier_keyword) identifier_keyword
(identifier_base_node) identifier_base_node
)argument_list
)call
(identifier_keyword) identifier_keyword
(call
(identifier_ValueOp) identifier_ValueOp
(argument_list
(identifier_base_node) identifier_base_node
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
(return_statement
(conditional_expression
(call
(identifier_NotOp) identifier_NotOp
(argument_list
(identifier_updated_base_node) identifier_updated_base_node
)argument_list
)call
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value_node) identifier_value_node
(identifier_NotOp) identifier_NotOp
)argument_list
)call
(identifier_updated_base_node) identifier_updated_base_node
)conditional_expression
)return_statement
)block
)function_definition
(function_definition
(function_name__get_bool_op_type) function_name__get_bool_op_type
(parameters
(identifier_bool_op) identifier_bool_op
)parameters
(block
(return_statement
(conditional_expression
(identifier_AndOp) identifier_AndOp
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_bool_op) identifier_bool_op
(identifier_And) identifier_And
)argument_list
)call
(identifier_OrOp) identifier_OrOp
)conditional_expression
)return_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_new_tree_root) identifier_new_tree_root
(call
(call
(identifier__get_bool_op_type) identifier__get_bool_op_type
(argument_list
(attribute
(identifier_tree) identifier_tree
(identifier_bool_op) identifier_bool_op
)attribute
)argument_list
)call
(argument_list
(None) None
(None) None
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_current_tree) identifier_current_tree
(identifier_new_tree_root) identifier_new_tree_root
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_previous_tree) identifier_previous_tree
(identifier_tree) identifier_tree
)assignment
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(attribute
(identifier_current_tree) identifier_current_tree
(identifier_left) identifier_left
)attribute
(call
(identifier__create_operator_node) identifier__create_operator_node
(argument_list
(attribute
(identifier_previous_tree) identifier_previous_tree
(identifier_left) identifier_left
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_previous_tree) identifier_previous_tree
(identifier_right) identifier_right
)attribute
(identifier_SimpleValueBooleanQuery) identifier_SimpleValueBooleanQuery
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_current_tree) identifier_current_tree
(identifier_right) identifier_right
)attribute
(call
(identifier__create_operator_node) identifier__create_operator_node
(argument_list
(attribute
(identifier_previous_tree) identifier_previous_tree
(identifier_right) identifier_right
)attribute
)argument_list
)call
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_previous_tree) identifier_previous_tree
(attribute
(identifier_previous_tree) identifier_previous_tree
(identifier_right) identifier_right
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_current_tree) identifier_current_tree
(identifier_right) identifier_right
)attribute
(call
(call
(identifier__get_bool_op_type) identifier__get_bool_op_type
(argument_list
(attribute
(identifier_previous_tree) identifier_previous_tree
(identifier_bool_op) identifier_bool_op
)attribute
)argument_list
)call
(argument_list
(None) None
(None) None
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_current_tree) identifier_current_tree
(attribute
(identifier_current_tree) identifier_current_tree
(identifier_right) identifier_right
)attribute
)assignment
)expression_statement
)block
)while_statement
(return_statement
(identifier_new_tree_root) identifier_new_tree_root
)return_statement
)block
)function_definition
)module | Chain SimpleValueBooleanQuery values into chained AndOp queries with the given current Keyword. |
(module
(function_definition
(function_name_get_directory_list_doc) function_name_get_directory_list_doc
(parameters
(identifier_self) identifier_self
(identifier_configs) identifier_configs
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_configs) identifier_configs
(tuple
(identifier_tuple) identifier_tuple
(identifier_list) identifier_list
)tuple
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_configs) identifier_configs
(list
(identifier_configs) identifier_configs
)list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_util) identifier_util
(identifier_check_list_type) identifier_check_list_type
)attribute
(argument_list
(identifier_configs) identifier_configs
(identifier_dict) identifier_dict
(string_'configs') string_'configs'
(keyword_argument
(identifier_allow_none) identifier_allow_none
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___directory_list_descriptor) identifier___directory_list_descriptor
)attribute
(argument_list
(identifier_configs) identifier_configs
)argument_list
)call
)return_statement
)block
)function_definition
)module | JSON dict description of a protorpc.remote.Service in list format.
Args:
configs: Either a single dict or a list of dicts containing the service
configurations to list.
Returns:
dict, The directory list document as a JSON dict. |
(module
(function_definition
(function_name_is_url) function_name_is_url
(parameters
(identifier_path) identifier_path
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_parse_result) identifier_parse_result
(call
(identifier_urlparse) identifier_urlparse
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_all) identifier_all
(argument_list
(tuple
(attribute
(identifier_parse_result) identifier_parse_result
(identifier_scheme) identifier_scheme
)attribute
(attribute
(identifier_parse_result) identifier_parse_result
(identifier_netloc) identifier_netloc
)attribute
(attribute
(identifier_parse_result) identifier_parse_result
(identifier_path) identifier_path
)attribute
)tuple
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Test if path represents a valid URL.
:param str path: Path to file.
:return: True if path is valid url string, False otherwise.
:rtype: :py:obj:`True` or :py:obj:`False` |
(module
(function_definition
(function_name_save_form) function_name_save_form
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_form) identifier_form
(identifier_change) identifier_change
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(subscript
(attribute
(identifier_form) identifier_form
(identifier_cleaned_data) identifier_cleaned_data
)attribute
(string_'name') string_'name'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_origin_url) identifier_origin_url
(subscript
(attribute
(identifier_form) identifier_form
(identifier_cleaned_data) identifier_cleaned_data
)attribute
(string_'origin_url') string_'origin_url'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(identifier_ClonedRepo) identifier_ClonedRepo
(argument_list
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_origin) identifier_origin
(identifier_origin_url) identifier_origin_url
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_"New repo form produced %s") string_"New repo form produced %s"
(call
(identifier_str) identifier_str
(argument_list
(identifier_res) identifier_res
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_form) identifier_form
(identifier_save) identifier_save
)attribute
(argument_list
(keyword_argument
(identifier_commit) identifier_commit
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | Here we pluck out the data to create a new cloned repo.
Form is an instance of NewRepoForm. |
(module
(function_definition
(function_name_dumps) function_name_dumps
(parameters
(identifier_columns) identifier_columns
)parameters
(block
(expression_statement
(assignment
(identifier_fp) identifier_fp
(call
(identifier_BytesIO) identifier_BytesIO
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_dump) identifier_dump
(argument_list
(identifier_columns) identifier_columns
(identifier_fp) identifier_fp
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_fp) identifier_fp
(identifier_seek) identifier_seek
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_fp) identifier_fp
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Serialize ``columns`` to a JSON formatted ``bytes`` object. |
(module
(function_definition
(function_name_app) function_name_app
(parameters
(identifier_environ) identifier_environ
(identifier_start_response) identifier_start_response
)parameters
(block
(try_statement
(block
(if_statement
(comparison_operator
(subscript
(identifier_environ) identifier_environ
(string_'REQUEST_METHOD') string_'REQUEST_METHOD'
)subscript
(string_'GET') string_'GET'
)comparison_operator
(block
(expression_statement
(call
(identifier_start_response) identifier_start_response
(argument_list
(string_'200 OK') string_'200 OK'
(list
(tuple
(string_'content-type') string_'content-type'
(string_'text/html') string_'text/html'
)tuple
)list
)argument_list
)call
)expression_statement
(return_statement
(list
(string_'Hellow world!') string_'Hellow world!'
)list
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_start_response) identifier_start_response
(argument_list
(string_'405 Method Not Allowed') string_'405 Method Not Allowed'
(list
(tuple
(string_'content-type') string_'content-type'
(string_'text/html') string_'text/html'
)tuple
)list
)argument_list
)call
)expression_statement
(return_statement
(list
(string_'') string_''
)list
)return_statement
)block
)else_clause
)if_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_ex) identifier_ex
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_start_response) identifier_start_response
(argument_list
(string_'500 Internal Server Error') string_'500 Internal Server Error'
(list
(tuple
(string_'content-type') string_'content-type'
(string_'text/html') string_'text/html'
)tuple
)list
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exc_info) identifier_exc_info
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier__handle_exc) identifier__handle_exc
(argument_list
(identifier_ex) identifier_ex
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Simple WSGI application. Returns 200 OK response with 'Hellow world!' in
the body for GET requests. Returns 405 Method Not Allowed for all other
methods.
Returns 500 Internal Server Error if an exception is thrown. The response
body will not include the error or any information about it. The error and
its stack trace will be reported to FogBugz via BugzScout, though.
:param environ: WSGI environ
:param start_response: function that accepts status string and headers |
(module
(function_definition
(function_name_files_cp) function_name_files_cp
(parameters
(identifier_self) identifier_self
(identifier_source) identifier_source
(identifier_dest) identifier_dest
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(tuple
(identifier_source) identifier_source
(identifier_dest) identifier_dest
)tuple
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(string_'/files/cp') string_'/files/cp'
(identifier_args) identifier_args
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Copies files within the MFS.
Due to the nature of IPFS this will not actually involve any of the
file's content being copied.
.. code-block:: python
>>> c.files_ls("/")
{'Entries': [
{'Size': 0, 'Hash': '', 'Name': 'Software', 'Type': 0},
{'Size': 0, 'Hash': '', 'Name': 'test', 'Type': 0}
]}
>>> c.files_cp("/test", "/bla")
''
>>> c.files_ls("/")
{'Entries': [
{'Size': 0, 'Hash': '', 'Name': 'Software', 'Type': 0},
{'Size': 0, 'Hash': '', 'Name': 'bla', 'Type': 0},
{'Size': 0, 'Hash': '', 'Name': 'test', 'Type': 0}
]}
Parameters
----------
source : str
Filepath within the MFS to copy from
dest : str
Destination filepath with the MFS to which the file will be
copied to |
(module
(function_definition
(function_name_part) function_name_part
(parameters
(identifier_z) identifier_z
(identifier_s) identifier_s
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(if_statement
(identifier_sage_included) identifier_sage_included
(block
(if_statement
(comparison_operator
(identifier_s) identifier_s
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_real) identifier_real
)attribute
(argument_list
(identifier_z) identifier_z
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_s) identifier_s
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_imag) identifier_imag
)attribute
(argument_list
(identifier_z) identifier_z
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_s) identifier_s
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(identifier_z) identifier_z
)return_statement
)block
)elif_clause
)if_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(identifier_s) identifier_s
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(attribute
(identifier_z) identifier_z
(identifier_real) identifier_real
)attribute
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_s) identifier_s
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(return_statement
(attribute
(identifier_z) identifier_z
(identifier_imag) identifier_imag
)attribute
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_s) identifier_s
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(identifier_z) identifier_z
)return_statement
)block
)elif_clause
)if_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | r"""Get the real or imaginary part of a complex number. |
(module
(function_definition
(function_name__import_parsers) function_name__import_parsers
(parameters
)parameters
(block
(global_statement
(identifier_ARCGIS_NODES) identifier_ARCGIS_NODES
)global_statement
(global_statement
(identifier_ARCGIS_ROOTS) identifier_ARCGIS_ROOTS
)global_statement
(global_statement
(identifier_ArcGISParser) identifier_ArcGISParser
)global_statement
(global_statement
(identifier_FGDC_ROOT) identifier_FGDC_ROOT
)global_statement
(global_statement
(identifier_FgdcParser) identifier_FgdcParser
)global_statement
(global_statement
(identifier_ISO_ROOTS) identifier_ISO_ROOTS
)global_statement
(global_statement
(identifier_IsoParser) identifier_IsoParser
)global_statement
(global_statement
(identifier_VALID_ROOTS) identifier_VALID_ROOTS
)global_statement
(if_statement
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_ARCGIS_NODES) identifier_ARCGIS_NODES
(None) None
)comparison_operator
(comparison_operator
(identifier_ARCGIS_ROOTS) identifier_ARCGIS_ROOTS
(None) None
)comparison_operator
)boolean_operator
(comparison_operator
(identifier_ArcGISParser) identifier_ArcGISParser
(None) None
)comparison_operator
)boolean_operator
(block
(import_from_statement
(dotted_name
(identifier_gis_metadata) identifier_gis_metadata
(identifier_arcgis_metadata_parser) identifier_arcgis_metadata_parser
)dotted_name
(dotted_name
(identifier_ARCGIS_NODES) identifier_ARCGIS_NODES
)dotted_name
)import_from_statement
(import_from_statement
(dotted_name
(identifier_gis_metadata) identifier_gis_metadata
(identifier_arcgis_metadata_parser) identifier_arcgis_metadata_parser
)dotted_name
(dotted_name
(identifier_ARCGIS_ROOTS) identifier_ARCGIS_ROOTS
)dotted_name
)import_from_statement
(import_from_statement
(dotted_name
(identifier_gis_metadata) identifier_gis_metadata
(identifier_arcgis_metadata_parser) identifier_arcgis_metadata_parser
)dotted_name
(dotted_name
(identifier_ArcGISParser) identifier_ArcGISParser
)dotted_name
)import_from_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_FGDC_ROOT) identifier_FGDC_ROOT
(None) None
)comparison_operator
(comparison_operator
(identifier_FgdcParser) identifier_FgdcParser
(None) None
)comparison_operator
)boolean_operator
(block
(import_from_statement
(dotted_name
(identifier_gis_metadata) identifier_gis_metadata
(identifier_fgdc_metadata_parser) identifier_fgdc_metadata_parser
)dotted_name
(dotted_name
(identifier_FGDC_ROOT) identifier_FGDC_ROOT
)dotted_name
)import_from_statement
(import_from_statement
(dotted_name
(identifier_gis_metadata) identifier_gis_metadata
(identifier_fgdc_metadata_parser) identifier_fgdc_metadata_parser
)dotted_name
(dotted_name
(identifier_FgdcParser) identifier_FgdcParser
)dotted_name
)import_from_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_ISO_ROOTS) identifier_ISO_ROOTS
(None) None
)comparison_operator
(comparison_operator
(identifier_IsoParser) identifier_IsoParser
(None) None
)comparison_operator
)boolean_operator
(block
(import_from_statement
(dotted_name
(identifier_gis_metadata) identifier_gis_metadata
(identifier_iso_metadata_parser) identifier_iso_metadata_parser
)dotted_name
(dotted_name
(identifier_ISO_ROOTS) identifier_ISO_ROOTS
)dotted_name
)import_from_statement
(import_from_statement
(dotted_name
(identifier_gis_metadata) identifier_gis_metadata
(identifier_iso_metadata_parser) identifier_iso_metadata_parser
)dotted_name
(dotted_name
(identifier_IsoParser) identifier_IsoParser
)dotted_name
)import_from_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_VALID_ROOTS) identifier_VALID_ROOTS
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_VALID_ROOTS) identifier_VALID_ROOTS
(call
(attribute
(set
(identifier_FGDC_ROOT) identifier_FGDC_ROOT
)set
(identifier_union) identifier_union
)attribute
(argument_list
(binary_operator
(identifier_ARCGIS_ROOTS) identifier_ARCGIS_ROOTS
(identifier_ISO_ROOTS) identifier_ISO_ROOTS
)binary_operator
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Lazy imports to prevent circular dependencies between this module and utils |
(module
(function_definition
(function_name_put) function_name_put
(parameters
(identifier_self) identifier_self
(identifier_template_name) identifier_template_name
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_reqparse) identifier_reqparse
)attribute
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'template') string_'template'
(keyword_argument
(identifier_type) identifier_type
(identifier_str) identifier_str
)keyword_argument
(keyword_argument
(identifier_required) identifier_required
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_reqparse) identifier_reqparse
)attribute
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_template) identifier_template
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_Template) identifier_Template
)attribute
(identifier_find_one) identifier_find_one
)attribute
(argument_list
(keyword_argument
(identifier_template_name) identifier_template_name
(identifier_template_name) identifier_template_name
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_template) identifier_template
)not_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_make_response) identifier_make_response
)attribute
(argument_list
(string_'No such template found') string_'No such template found'
(attribute
(identifier_HTTP) identifier_HTTP
(identifier_NOT_FOUND) identifier_NOT_FOUND
)attribute
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_changes) identifier_changes
(call
(identifier_diff) identifier_diff
(argument_list
(attribute
(identifier_template) identifier_template
(identifier_template) identifier_template
)attribute
(subscript
(identifier_args) identifier_args
(string_'template') string_'template'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_template) identifier_template
(identifier_template) identifier_template
)attribute
(subscript
(identifier_args) identifier_args
(string_'template') string_'template'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_template) identifier_template
(identifier_is_modified) identifier_is_modified
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_template) identifier_template
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_auditlog) identifier_auditlog
(argument_list
(keyword_argument
(identifier_event) identifier_event
(string_'template.update') string_'template.update'
)keyword_argument
(keyword_argument
(identifier_actor) identifier_actor
(attribute
(subscript
(identifier_session) identifier_session
(string_'user') string_'user'
)subscript
(identifier_username) identifier_username
)attribute
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(dictionary
(pair
(string_'template_name') string_'template_name'
(identifier_template_name) identifier_template_name
)pair
(pair
(string_'template_changes') string_'template_changes'
(identifier_changes) identifier_changes
)pair
)dictionary
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_make_response) identifier_make_response
)attribute
(argument_list
(call
(attribute
(string_'Template {} has been updated') string_'Template {} has been updated'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_template_name) identifier_template_name
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Update a template |
(module
(function_definition
(function_name__valid_locales) function_name__valid_locales
(parameters
(identifier_locales) identifier_locales
(identifier_normalize) identifier_normalize
)parameters
(block
(if_statement
(identifier_normalize) identifier_normalize
(block
(expression_statement
(assignment
(identifier_normalizer) identifier_normalizer
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(attribute
(identifier_locale) identifier_locale
(identifier_normalize) identifier_normalize
)attribute
(argument_list
(call
(attribute
(identifier_x) identifier_x
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)lambda
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_normalizer) identifier_normalizer
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(attribute
(identifier_x) identifier_x
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)lambda
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_filter) identifier_filter
(argument_list
(identifier_can_set_locale) identifier_can_set_locale
(call
(identifier_map) identifier_map
(argument_list
(identifier_normalizer) identifier_normalizer
(identifier_locales) identifier_locales
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a list of normalized locales that do not throw an ``Exception``
when set.
Parameters
----------
locales : str
A string where each locale is separated by a newline.
normalize : bool
Whether to call ``locale.normalize`` on each locale.
Returns
-------
valid_locales : list
A list of valid locales. |
(module
(function_definition
(function_name_attr_sep) function_name_attr_sep
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_new_sep) identifier_new_sep
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__attr_sep) identifier__attr_sep
)attribute
(identifier_new_sep) identifier_new_sep
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__filters_tree) identifier__filters_tree
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__generate_filters_tree) identifier__generate_filters_tree
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Set the new value for the attribute separator.
When the new value is assigned a new tree is generated. |
(module
(function_definition
(function_name_commit) function_name_commit
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_message) identifier_message
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_default_parameter
(identifier_files_to_add) identifier_files_to_add
(type
(subscript
(attribute
(identifier_typing) identifier_typing
(identifier_Optional) identifier_Optional
)attribute
(subscript
(attribute
(identifier_typing) identifier_typing
(identifier_Union) identifier_Union
)attribute
(subscript
(attribute
(identifier_typing) identifier_typing
(identifier_List) identifier_List
)attribute
(identifier_str) identifier_str
)subscript
(identifier_str) identifier_str
)subscript
)subscript
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_allow_empty) identifier_allow_empty
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(call
(identifier_str) identifier_str
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'message: %s') string_'message: %s'
(identifier_message) identifier_message
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_files_to_add) identifier_files_to_add
(call
(attribute
(identifier_self) identifier_self
(identifier__sanitize_files_to_add) identifier__sanitize_files_to_add
)attribute
(argument_list
(identifier_files_to_add) identifier_files_to_add
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'files to add: %s') string_'files to add: %s'
(identifier_files_to_add) identifier_files_to_add
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(identifier_message) identifier_message
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_error) identifier_error
)attribute
(argument_list
(string_'empty commit message') string_'empty commit message'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_getenv) identifier_getenv
)attribute
(argument_list
(string_'APPVEYOR') string_'APPVEYOR'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_info) identifier_info
)attribute
(argument_list
(string_'committing on AV, adding skip_ci tag') string_'committing on AV, adding skip_ci tag'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_message) identifier_message
(call
(attribute
(identifier_self) identifier_self
(identifier_add_skip_ci_to_commit_msg) identifier_add_skip_ci_to_commit_msg
)attribute
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_files_to_add) identifier_files_to_add
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_stage_all) identifier_stage_all
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_reset_index) identifier_reset_index
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_stage_subset) identifier_stage_subset
)attribute
(argument_list
(list_splat
(identifier_files_to_add) identifier_files_to_add
)list_splat
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(boolean_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_index_is_empty) identifier_index_is_empty
)attribute
(argument_list
)argument_list
)call
(not_operator
(identifier_allow_empty) identifier_allow_empty
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_error) identifier_error
)attribute
(argument_list
(string_'empty commit') string_'empty commit'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_repo) identifier_repo
)attribute
(identifier_index) identifier_index
)attribute
(identifier_commit) identifier_commit
)attribute
(argument_list
(keyword_argument
(identifier_message) identifier_message
(identifier_message) identifier_message
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Commits changes to the repo
:param message: first line of the message
:type message: str
:param files_to_add: files to commit
:type files_to_add: optional list of str
:param allow_empty: allow dummy commit
:type allow_empty: bool |
(module
(function_definition
(function_name_clamp) function_name_clamp
(parameters
(identifier_color) identifier_color
(identifier_min_v) identifier_min_v
(identifier_max_v) identifier_max_v
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_h) identifier_h
(identifier_s) identifier_s
(identifier_v) identifier_v
)pattern_list
(call
(identifier_rgb_to_hsv) identifier_rgb_to_hsv
(argument_list
(list_splat
(call
(identifier_map) identifier_map
(argument_list
(identifier_down_scale) identifier_down_scale
(identifier_color) identifier_color
)argument_list
)call
)list_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_min_v) identifier_min_v
(identifier_max_v) identifier_max_v
)pattern_list
(call
(identifier_map) identifier_map
(argument_list
(identifier_down_scale) identifier_down_scale
(tuple
(identifier_min_v) identifier_min_v
(identifier_max_v) identifier_max_v
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_v) identifier_v
(call
(identifier_min) identifier_min
(argument_list
(call
(identifier_max) identifier_max
(argument_list
(identifier_min_v) identifier_min_v
(identifier_v) identifier_v
)argument_list
)call
(identifier_max_v) identifier_max_v
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_tuple) identifier_tuple
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(identifier_up_scale) identifier_up_scale
(call
(identifier_hsv_to_rgb) identifier_hsv_to_rgb
(argument_list
(identifier_h) identifier_h
(identifier_s) identifier_s
(identifier_v) identifier_v
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Clamps a color such that the value is between min_v and max_v. |
(module
(function_definition
(function_name_to_nullable_string) function_name_to_nullable_string
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(attribute
(identifier_datetime) identifier_datetime
(identifier_date) identifier_date
)attribute
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_isoformat) identifier_isoformat
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
)comparison_operator
(block
(if_statement
(comparison_operator
(attribute
(identifier_value) identifier_value
(identifier_tzinfo) identifier_tzinfo
)attribute
(None) None
)comparison_operator
(block
(return_statement
(binary_operator
(call
(attribute
(identifier_value) identifier_value
(identifier_isoformat) identifier_isoformat
)attribute
(argument_list
)argument_list
)call
(string_"Z") string_"Z"
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_isoformat) identifier_isoformat
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier_list) identifier_list
)comparison_operator
(block
(expression_statement
(assignment
(identifier_builder) identifier_builder
(string_'') string_''
)assignment
)expression_statement
(for_statement
(identifier_element) identifier_element
(identifier_value) identifier_value
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_builder) identifier_builder
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_builder) identifier_builder
(binary_operator
(identifier_builder) identifier_builder
(string_",") string_","
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_builder) identifier_builder
(binary_operator
(identifier_builder) identifier_builder
(identifier_element) identifier_element
)binary_operator
)assignment
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_builder) identifier_builder
(identifier___str__) identifier___str__
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_str) identifier_str
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
)function_definition
)module | Converts value into string or returns None when value is None.
:param value: the value to convert.
:return: string value or None when value is None. |
(module
(function_definition
(function_name_remove_duplicates) function_name_remove_duplicates
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_configs) identifier_configs
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_configs) identifier_configs
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_c) identifier_c
(attribute
(identifier_self) identifier_self
(identifier_configs) identifier_configs
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_c) identifier_c
(identifier_configs) identifier_configs
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_struct) identifier_struct
(call
(attribute
(identifier_c) identifier_c
(identifier_view) identifier_view
)attribute
(argument_list
(binary_operator
(attribute
(attribute
(identifier_c) identifier_c
(identifier_dtype) identifier_dtype
)attribute
(identifier_descr) identifier_descr
)attribute
(integer_4) integer_4
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_configs_unique) identifier_configs_unique
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_unique) identifier_unique
)attribute
(argument_list
(identifier_struct) identifier_struct
)argument_list
)call
(identifier_view) identifier_view
)attribute
(argument_list
(attribute
(identifier_c) identifier_c
(identifier_dtype) identifier_dtype
)attribute
)argument_list
)call
(identifier_reshape) identifier_reshape
)attribute
(argument_list
(unary_operator
(integer_1) integer_1
)unary_operator
(integer_4) integer_4
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_configs) identifier_configs
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_configs) identifier_configs
)attribute
(identifier_configs_unique) identifier_configs_unique
)assignment
)expression_statement
)block
(else_clause
(block
(return_statement
(identifier_configs_unique) identifier_configs_unique
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | remove duplicate entries from 4-point configurations. If no
configurations are provided, then use self.configs. Unique
configurations are only returned if configs is not None.
Parameters
----------
configs: Nx4 numpy.ndarray, optional
remove duplicates from these configurations instead from
self.configs.
Returns
-------
configs_unique: Kx4 numpy.ndarray
unique configurations. Only returned if configs is not None |
(module
(function_definition
(function_name_download_saved_posts) function_name_download_saved_posts
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_max_count) identifier_max_count
(type
(identifier_int) identifier_int
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_fast_update) identifier_fast_update
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
(typed_default_parameter
(identifier_post_filter) identifier_post_filter
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(generic_type
(identifier_Callable) identifier_Callable
(type_parameter
(type
(list
(identifier_Post) identifier_Post
)list
)type
(type
(identifier_bool) identifier_bool
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_log) identifier_log
)attribute
(argument_list
(string_"Retrieving saved posts...") string_"Retrieving saved posts..."
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_count) identifier_count
(integer_1) integer_1
)assignment
)expression_statement
(for_statement
(identifier_post) identifier_post
(call
(attribute
(call
(attribute
(identifier_Profile) identifier_Profile
(identifier_from_username) identifier_from_username
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_username) identifier_username
)attribute
)argument_list
)call
(identifier_get_saved_posts) identifier_get_saved_posts
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_max_count) identifier_max_count
(None) None
)comparison_operator
(comparison_operator
(identifier_count) identifier_count
(identifier_max_count) identifier_max_count
)comparison_operator
)boolean_operator
(block
(break_statement
)break_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_post_filter) identifier_post_filter
(None) None
)comparison_operator
(not_operator
(call
(identifier_post_filter) identifier_post_filter
(argument_list
(identifier_post) identifier_post
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_log) identifier_log
)attribute
(argument_list
(call
(attribute
(string_"<{} skipped>") string_"<{} skipped>"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_post) identifier_post
)argument_list
)call
(keyword_argument
(identifier_flush) identifier_flush
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_log) identifier_log
)attribute
(argument_list
(call
(attribute
(string_"[{:>3}] ") string_"[{:>3}] "
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_count) identifier_count
)argument_list
)call
(keyword_argument
(identifier_end) identifier_end
(call
(identifier_str) identifier_str
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_flush) identifier_flush
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_count) identifier_count
(integer_1) integer_1
)augmented_assignment
)expression_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_error_catcher) identifier_error_catcher
)attribute
(argument_list
(string_'Download saved posts') string_'Download saved posts'
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_downloaded) identifier_downloaded
(call
(attribute
(identifier_self) identifier_self
(identifier_download_post) identifier_download_post
)attribute
(argument_list
(identifier_post) identifier_post
(keyword_argument
(identifier_target) identifier_target
(string_':saved') string_':saved'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_fast_update) identifier_fast_update
(not_operator
(identifier_downloaded) identifier_downloaded
)not_operator
)boolean_operator
(block
(break_statement
)break_statement
)block
)if_statement
)block
)with_statement
)block
)for_statement
)block
)function_definition
)module | Download user's saved pictures.
:param max_count: Maximum count of pictures to download
:param fast_update: If true, abort when first already-downloaded picture is encountered
:param post_filter: function(post), which returns True if given picture should be downloaded |
(module
(function_definition
(function_name_look_at) function_name_look_at
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_z) identifier_z
)parameters
(block
(for_statement
(identifier_camera) identifier_camera
(attribute
(identifier_self) identifier_self
(identifier_cameras) identifier_cameras
)attribute
(block
(expression_statement
(call
(attribute
(identifier_camera) identifier_camera
(identifier_look_at) identifier_look_at
)attribute
(argument_list
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_z) identifier_z
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Converges the two cameras to look at the specific point |
(module
(function_definition
(function_name_make_basic_table) function_name_make_basic_table
(parameters
(identifier_self) identifier_self
(identifier_file_type) identifier_file_type
)parameters
(block
(expression_statement
(assignment
(identifier_table_data) identifier_table_data
(dictionary_comprehension
(pair
(identifier_sample) identifier_sample
(subscript
(identifier_items) identifier_items
(string_'kv') string_'kv'
)subscript
)pair
(for_in_clause
(pattern_list
(identifier_sample) identifier_sample
(identifier_items) identifier_items
)pattern_list
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_mod_data) identifier_mod_data
)attribute
(identifier_file_type) identifier_file_type
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_table_headers) identifier_table_headers
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_column_header) identifier_column_header
(tuple_pattern
(identifier_description) identifier_description
(identifier_header_options) identifier_header_options
)tuple_pattern
)pattern_list
(call
(attribute
(subscript
(subscript
(identifier_file_types) identifier_file_types
(identifier_file_type) identifier_file_type
)subscript
(string_'kv_descriptions') string_'kv_descriptions'
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_table_headers) identifier_table_headers
(identifier_column_header) identifier_column_header
)subscript
(dictionary
(pair
(string_'rid') string_'rid'
(call
(attribute
(string_'{}_{}_bbmstheader') string_'{}_{}_bbmstheader'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_file_type) identifier_file_type
(identifier_column_header) identifier_column_header
)argument_list
)call
)pair
(pair
(string_'title') string_'title'
(identifier_column_header) identifier_column_header
)pair
(pair
(string_'description') string_'description'
(identifier_description) identifier_description
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(subscript
(identifier_table_headers) identifier_table_headers
(identifier_column_header) identifier_column_header
)subscript
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_header_options) identifier_header_options
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_tconfig) identifier_tconfig
(dictionary
(pair
(string_'id') string_'id'
(binary_operator
(identifier_file_type) identifier_file_type
(string_'_bbm_table') string_'_bbm_table'
)binary_operator
)pair
(pair
(string_'namespace') string_'namespace'
(string_'BBTools') string_'BBTools'
)pair
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_sample) identifier_sample
(identifier_table_data) identifier_table_data
(block
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(subscript
(identifier_table_data) identifier_table_data
(identifier_sample) identifier_sample
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(assignment
(subscript
(subscript
(identifier_table_data) identifier_table_data
(identifier_sample) identifier_sample
)subscript
(identifier_key) identifier_key
)subscript
(call
(identifier_float) identifier_float
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_table) identifier_table
(identifier_plot) identifier_plot
)attribute
(argument_list
(identifier_table_data) identifier_table_data
(identifier_table_headers) identifier_table_headers
(identifier_tconfig) identifier_tconfig
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create table of key-value items in 'file_type'. |
(module
(function_definition
(function_name_configure) function_name_configure
(parameters
(default_parameter
(identifier_project) identifier_project
(identifier_LOGGING_PROJECT) identifier_LOGGING_PROJECT
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_project) identifier_project
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(concatenated_string
(string_'!! Error: The $LOGGING_PROJECT enviroment ') string_'!! Error: The $LOGGING_PROJECT enviroment '
(string_'variable is required in order to set up cloud logging. ') string_'variable is required in order to set up cloud logging. '
(string_'Cloud logging is disabled.\n') string_'Cloud logging is disabled.\n'
)concatenated_string
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(try_statement
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_contextlib) identifier_contextlib
(identifier_redirect_stderr) identifier_redirect_stderr
)attribute
(argument_list
(call
(attribute
(identifier_io) identifier_io
(identifier_StringIO) identifier_StringIO
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_client) identifier_client
(call
(attribute
(identifier_glog) identifier_glog
(identifier_Client) identifier_Client
)attribute
(argument_list
(identifier_project) identifier_project
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_client) identifier_client
(identifier_setup_logging) identifier_setup_logging
)attribute
(argument_list
(attribute
(identifier_logging) identifier_logging
(identifier_INFO) identifier_INFO
)attribute
)argument_list
)call
)expression_statement
)block
)with_statement
)block
(except_clause
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_basicConfig) identifier_basicConfig
)attribute
(argument_list
(keyword_argument
(identifier_level) identifier_level
(attribute
(identifier_logging) identifier_logging
(identifier_INFO) identifier_INFO
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(string_'!! Cloud logging disabled\n') string_'!! Cloud logging disabled\n'
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Configures cloud logging
This is called for all main calls. If a $LOGGING_PROJECT is environment
variable configured, then STDERR and STDOUT are redirected to cloud
logging. |
(module
(function_definition
(function_name__clean_text) function_name__clean_text
(parameters
(identifier_self) identifier_self
(identifier_branch) identifier_branch
)parameters
(block
(if_statement
(boolean_operator
(attribute
(identifier_branch) identifier_branch
(identifier_text) identifier_text
)attribute
(attribute
(identifier_self) identifier_self
(identifier_input_text_formatter) identifier_input_text_formatter
)attribute
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(identifier_branch) identifier_branch
(identifier_text) identifier_text
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_input_text_formatter) identifier_input_text_formatter
)attribute
(argument_list
(attribute
(identifier_branch) identifier_branch
(identifier_text) identifier_text
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(for_statement
(identifier_child) identifier_child
(identifier_branch) identifier_branch
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__clean_text) identifier__clean_text
)attribute
(argument_list
(identifier_child) identifier_child
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(attribute
(identifier_branch) identifier_branch
(identifier_text) identifier_text
)attribute
(comparison_operator
(call
(attribute
(attribute
(identifier_branch) identifier_branch
(identifier_text) identifier_text
)attribute
(identifier_find) identifier_find
)attribute
(argument_list
(attribute
(identifier_child) identifier_child
(identifier_text) identifier_text
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(identifier_branch) identifier_branch
(identifier_text) identifier_text
)attribute
(call
(attribute
(attribute
(identifier_branch) identifier_branch
(identifier_text) identifier_text
)attribute
(identifier_replace) identifier_replace
)attribute
(argument_list
(attribute
(identifier_child) identifier_child
(identifier_text) identifier_text
)attribute
(string_'') string_''
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Remove text from node if same text exists in its children.
Apply string formatter if set. |
(module
(function_definition
(function_name_folder2db) function_name_folder2db
(parameters
(identifier_folder_name) identifier_folder_name
(identifier_debug) identifier_debug
(identifier_energy_limit) identifier_energy_limit
(identifier_skip_folders) identifier_skip_folders
(identifier_goto_reaction) identifier_goto_reaction
)parameters
(block
(expression_statement
(assignment
(identifier_folder_name) identifier_folder_name
(call
(attribute
(identifier_folder_name) identifier_folder_name
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_skip) identifier_skip
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_s) identifier_s
(call
(attribute
(identifier_skip_folders) identifier_skip_folders
(identifier_split) identifier_split
)attribute
(argument_list
(string_', ') string_', '
)argument_list
)call
(block
(for_statement
(identifier_sk) identifier_sk
(call
(attribute
(identifier_s) identifier_s
(identifier_split) identifier_split
)attribute
(argument_list
(string_',') string_','
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_skip) identifier_skip
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_sk) identifier_sk
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_pub_id) identifier_pub_id
(call
(attribute
(identifier__folder2db) identifier__folder2db
(identifier_main) identifier_main
)attribute
(argument_list
(identifier_folder_name) identifier_folder_name
(identifier_debug) identifier_debug
(identifier_energy_limit) identifier_energy_limit
(identifier_skip) identifier_skip
(identifier_goto_reaction) identifier_goto_reaction
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_pub_id) identifier_pub_id
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'') string_''
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'') string_''
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Ready to release the data?') string_'Ready to release the data?'
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_" Send it to the Catalysis-Hub server with 'cathub db2server {folder_name}/{pub_id}.db'.") string_" Send it to the Catalysis-Hub server with 'cathub db2server {folder_name}/{pub_id}.db'."
(identifier_format) identifier_format
)attribute
(argument_list
(dictionary_splat
(call
(identifier_locals) identifier_locals
(argument_list
)argument_list
)call
)dictionary_splat
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_" Then log in at www.catalysis-hub.org/upload/ to verify and release. ") string_" Then log in at www.catalysis-hub.org/upload/ to verify and release. "
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Read folder and collect data in local sqlite3 database |
(module
(function_definition
(function_name_get_module_files) function_name_get_module_files
(parameters
(identifier_src_directory) identifier_src_directory
(identifier_blacklist) identifier_blacklist
(default_parameter
(identifier_list_all) identifier_list_all
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_files) identifier_files
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_directory) identifier_directory
(identifier_dirnames) identifier_dirnames
(identifier_filenames) identifier_filenames
)pattern_list
(call
(attribute
(identifier_os) identifier_os
(identifier_walk) identifier_walk
)attribute
(argument_list
(identifier_src_directory) identifier_src_directory
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_directory) identifier_directory
(identifier_blacklist) identifier_blacklist
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(call
(identifier__handle_blacklist) identifier__handle_blacklist
(argument_list
(identifier_blacklist) identifier_blacklist
(identifier_dirnames) identifier_dirnames
(identifier_filenames) identifier_filenames
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(not_operator
(identifier_list_all) identifier_list_all
)not_operator
(comparison_operator
(string_"__init__.py") string_"__init__.py"
(identifier_filenames) identifier_filenames
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_dirnames) identifier_dirnames
(slice
(colon) colon
)slice
)subscript
(tuple
)tuple
)assignment
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(for_statement
(identifier_filename) identifier_filename
(identifier_filenames) identifier_filenames
(block
(if_statement
(call
(identifier__is_python_file) identifier__is_python_file
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_src) identifier_src
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_directory) identifier_directory
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_files) identifier_files
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_src) identifier_src
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_files) identifier_files
)return_statement
)block
)function_definition
)module | given a package directory return a list of all available python
module's files in the package and its subpackages
:type src_directory: str
:param src_directory:
path of the directory corresponding to the package
:type blacklist: list or tuple
:param blacklist: iterable
list of files or directories to ignore.
:type list_all: bool
:param list_all:
get files from all paths, including ones without __init__.py
:rtype: list
:return:
the list of all available python module's files in the package and
its subpackages |
(module
(function_definition
(function_name_validate_pattern) function_name_validate_pattern
(parameters
(identifier_fn) identifier_fn
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_directory) identifier_directory
(identifier_pattern) identifier_pattern
)pattern_list
(call
(identifier_parse_pattern) identifier_parse_pattern
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_directory) identifier_directory
(None) None
)comparison_operator
(block
(expression_statement
(call
(identifier_print_err) identifier_print_err
(argument_list
(call
(attribute
(string_"Invalid pattern {}.") string_"Invalid pattern {}."
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(None) None
(None) None
)expression_list
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_target) identifier_target
(call
(identifier_resolve_path) identifier_resolve_path
(argument_list
(identifier_directory) identifier_directory
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mode) identifier_mode
(call
(identifier_auto) identifier_auto
(argument_list
(identifier_get_mode) identifier_get_mode
(identifier_target) identifier_target
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_mode_exists) identifier_mode_exists
(argument_list
(identifier_mode) identifier_mode
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(identifier_print_err) identifier_print_err
(argument_list
(call
(attribute
(string_"cannot access '{}': No such file or directory") string_"cannot access '{}': No such file or directory"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(None) None
(None) None
)expression_list
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_mode_isdir) identifier_mode_isdir
(argument_list
(identifier_mode) identifier_mode
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(identifier_print_err) identifier_print_err
(argument_list
(call
(attribute
(string_"cannot access '{}': Not a directory") string_"cannot access '{}': Not a directory"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(None) None
(None) None
)expression_list
)return_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_target) identifier_target
(identifier_pattern) identifier_pattern
)expression_list
)return_statement
)block
)function_definition
)module | On success return an absolute path and a pattern.
Otherwise print a message and return None, None |
(module
(function_definition
(function_name__get_texture) function_name__get_texture
(parameters
(identifier_arr) identifier_arr
(identifier_default) identifier_default
(identifier_n_items) identifier_n_items
(identifier_from_bounds) identifier_from_bounds
)parameters
(block
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_default) identifier_default
(string_'__len__') string_'__len__'
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_default) identifier_default
(list
(identifier_default) identifier_default
)list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_n_cols) identifier_n_cols
(call
(identifier_len) identifier_len
(argument_list
(identifier_default) identifier_default
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_arr) identifier_arr
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_arr) identifier_arr
(call
(attribute
(identifier_np) identifier_np
(identifier_tile) identifier_tile
)attribute
(argument_list
(identifier_default) identifier_default
(tuple
(identifier_n_items) identifier_n_items
(integer_1) integer_1
)tuple
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(assert_statement
(comparison_operator
(attribute
(identifier_arr) identifier_arr
(identifier_shape) identifier_shape
)attribute
(tuple
(identifier_n_items) identifier_n_items
(identifier_n_cols) identifier_n_cols
)tuple
)comparison_operator
)assert_statement
(expression_statement
(assignment
(identifier_arr) identifier_arr
(call
(attribute
(subscript
(identifier_arr) identifier_arr
(attribute
(identifier_np) identifier_np
(identifier_newaxis) identifier_newaxis
)attribute
(ellipsis_...) ellipsis_...
)subscript
(identifier_astype) identifier_astype
)attribute
(argument_list
(attribute
(identifier_np) identifier_np
(identifier_float64) identifier_float64
)attribute
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(attribute
(identifier_arr) identifier_arr
(identifier_shape) identifier_shape
)attribute
(tuple
(integer_1) integer_1
(identifier_n_items) identifier_n_items
(identifier_n_cols) identifier_n_cols
)tuple
)comparison_operator
)assert_statement
(assert_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_from_bounds) identifier_from_bounds
)argument_list
)call
(integer_2) integer_2
)comparison_operator
)assert_statement
(expression_statement
(assignment
(pattern_list
(identifier_m) identifier_m
(identifier_M) identifier_M
)pattern_list
(call
(identifier_map) identifier_map
(argument_list
(identifier_float) identifier_float
(identifier_from_bounds) identifier_from_bounds
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_all) identifier_all
)attribute
(argument_list
(comparison_operator
(identifier_arr) identifier_arr
(identifier_m) identifier_m
)comparison_operator
)argument_list
)call
)assert_statement
(assert_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_all) identifier_all
)attribute
(argument_list
(comparison_operator
(identifier_arr) identifier_arr
(identifier_M) identifier_M
)comparison_operator
)argument_list
)call
)assert_statement
(expression_statement
(assignment
(identifier_arr) identifier_arr
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_arr) identifier_arr
(identifier_m) identifier_m
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_M) identifier_M
(identifier_m) identifier_m
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(assert_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_all) identifier_all
)attribute
(argument_list
(comparison_operator
(identifier_arr) identifier_arr
(integer_0) integer_0
)comparison_operator
)argument_list
)call
)assert_statement
(assert_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_all) identifier_all
)attribute
(argument_list
(comparison_operator
(identifier_arr) identifier_arr
(float_1.) float_1.
)comparison_operator
)argument_list
)call
)assert_statement
(return_statement
(identifier_arr) identifier_arr
)return_statement
)block
)function_definition
)module | Prepare data to be uploaded as a texture.
The from_bounds must be specified. |
(module
(function_definition
(function_name_expand_models) function_name_expand_models
(parameters
(identifier_self) identifier_self
(identifier_target) identifier_target
(identifier_data) identifier_data
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_data) identifier_data
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_data) identifier_data
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_chunk) identifier_chunk
(identifier_data) identifier_data
(block
(if_statement
(comparison_operator
(identifier_target) identifier_target
(identifier_chunk) identifier_chunk
)comparison_operator
(block
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_init_target_object) identifier_init_target_object
)attribute
(argument_list
(identifier_target) identifier_target
(identifier_chunk) identifier_chunk
)argument_list
)call
)yield
)expression_statement
)block
(else_clause
(block
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_item) identifier_item
)pattern_list
(call
(attribute
(identifier_chunk) identifier_chunk
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_init_single_object) identifier_init_single_object
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_item) identifier_item
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module | Generates all objects from given data. |
(module
(function_definition
(function_name_int_imf_dm) function_name_int_imf_dm
(parameters
(identifier_m1) identifier_m1
(identifier_m2) identifier_m2
(identifier_m) identifier_m
(identifier_imf) identifier_imf
(default_parameter
(identifier_bywhat) identifier_bywhat
(string_'bymass') string_'bymass'
)default_parameter
(default_parameter
(identifier_integral) identifier_integral
(string_'normal') string_'normal'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_ind_m) identifier_ind_m
(binary_operator
(parenthesized_expression
(comparison_operator
(identifier_m) identifier_m
(call
(identifier_min) identifier_min
(argument_list
(identifier_m1) identifier_m1
(identifier_m2) identifier_m2
)argument_list
)call
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(identifier_m) identifier_m
(call
(identifier_max) identifier_max
(argument_list
(identifier_m1) identifier_m1
(identifier_m2) identifier_m2
)argument_list
)call
)comparison_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_integral) identifier_integral
(string_'normal') string_'normal'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_int_func) identifier_int_func
(attribute
(attribute
(identifier_sc) identifier_sc
(identifier_integrate) identifier_integrate
)attribute
(identifier_trapz) identifier_trapz
)attribute
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_integral) identifier_integral
(string_'cum') string_'cum'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_int_func) identifier_int_func
(attribute
(attribute
(identifier_sc) identifier_sc
(identifier_integrate) identifier_integrate
)attribute
(identifier_cumtrapz) identifier_cumtrapz
)attribute
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Error in int_imf_dm: don't know how to integrate") string_"Error in int_imf_dm: don't know how to integrate"
)argument_list
)call
)expression_statement
(return_statement
(integer_0) integer_0
)return_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_bywhat) identifier_bywhat
(string_'bymass') string_'bymass'
)comparison_operator
(block
(return_statement
(call
(identifier_int_func) identifier_int_func
(argument_list
(binary_operator
(subscript
(identifier_m) identifier_m
(identifier_ind_m) identifier_ind_m
)subscript
(subscript
(identifier_imf) identifier_imf
(identifier_ind_m) identifier_ind_m
)subscript
)binary_operator
(subscript
(identifier_m) identifier_m
(identifier_ind_m) identifier_ind_m
)subscript
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_bywhat) identifier_bywhat
(string_'bynumber') string_'bynumber'
)comparison_operator
(block
(return_statement
(call
(identifier_int_func) identifier_int_func
(argument_list
(subscript
(identifier_imf) identifier_imf
(identifier_ind_m) identifier_ind_m
)subscript
(subscript
(identifier_m) identifier_m
(identifier_ind_m) identifier_ind_m
)subscript
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Error in int_imf_dm: don't know by what to integrate") string_"Error in int_imf_dm: don't know by what to integrate"
)argument_list
)call
)expression_statement
(return_statement
(integer_0) integer_0
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Integrate IMF between m1 and m2.
Parameters
----------
m1 : float
Min mass
m2 : float
Max mass
m : float
Mass array
imf : float
IMF array
bywhat : string, optional
'bymass' integrates the mass that goes into stars of
that mass interval; or 'bynumber' which integrates the number
of stars in that mass interval. The default is 'bymass'.
integrate : string, optional
'normal' uses sc.integrate.trapz; 'cum' returns cumulative
trapezoidal integral. The default is 'normal'. |
(module
(function_definition
(function_name_finditer_noregex) function_name_finditer_noregex
(parameters
(identifier_string) identifier_string
(identifier_sub) identifier_sub
(identifier_whole_word) identifier_whole_word
)parameters
(block
(expression_statement
(assignment
(identifier_start) identifier_start
(integer_0) integer_0
)assignment
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_start) identifier_start
(call
(attribute
(identifier_string) identifier_string
(identifier_find) identifier_find
)attribute
(argument_list
(identifier_sub) identifier_sub
(identifier_start) identifier_start
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_start) identifier_start
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(identifier_whole_word) identifier_whole_word
(block
(if_statement
(identifier_start) identifier_start
(block
(expression_statement
(assignment
(identifier_pchar) identifier_pchar
(subscript
(identifier_string) identifier_string
(binary_operator
(identifier_start) identifier_start
(integer_1) integer_1
)binary_operator
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_pchar) identifier_pchar
(string_' ') string_' '
)assignment
)expression_statement
)block
)else_clause
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_nchar) identifier_nchar
(subscript
(identifier_string) identifier_string
(binary_operator
(identifier_start) identifier_start
(call
(identifier_len) identifier_len
(argument_list
(identifier_sub) identifier_sub
)argument_list
)call
)binary_operator
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_IndexError) identifier_IndexError
(block
(expression_statement
(assignment
(identifier_nchar) identifier_nchar
(string_' ') string_' '
)assignment
)expression_statement
)block
)except_clause
)try_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_nchar) identifier_nchar
(attribute
(identifier_DocumentWordsProvider) identifier_DocumentWordsProvider
(identifier_separators) identifier_separators
)attribute
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_pchar) identifier_pchar
(attribute
(identifier_DocumentWordsProvider) identifier_DocumentWordsProvider
(identifier_separators) identifier_separators
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(yield
(identifier_start) identifier_start
)yield
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_start) identifier_start
(call
(identifier_len) identifier_len
(argument_list
(identifier_sub) identifier_sub
)argument_list
)call
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(yield
(identifier_start) identifier_start
)yield
)expression_statement
(expression_statement
(augmented_assignment
(identifier_start) identifier_start
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)while_statement
)block
)function_definition
)module | Search occurrences using str.find instead of regular expressions.
:param string: string to parse
:param sub: search string
:param whole_word: True to select whole words only |
(module
(function_definition
(function_name_get_aligned_collection) function_name_get_aligned_collection
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_value) identifier_value
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_data_type) identifier_data_type
(None) None
)default_parameter
(default_parameter
(identifier_unit) identifier_unit
(None) None
)default_parameter
(default_parameter
(identifier_mutable) identifier_mutable
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_header) identifier_header
(call
(attribute
(identifier_self) identifier_self
(identifier__check_aligned_header) identifier__check_aligned_header
)attribute
(argument_list
(identifier_data_type) identifier_data_type
(identifier_unit) identifier_unit
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_values) identifier_values
(call
(attribute
(identifier_self) identifier_self
(identifier__check_aligned_value) identifier__check_aligned_value
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_mutable) identifier_mutable
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_collection) identifier_collection
(call
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(argument_list
(identifier_header) identifier_header
(identifier_values) identifier_values
(attribute
(identifier_self) identifier_self
(identifier_datetimes) identifier_datetimes
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__enumeration) identifier__enumeration
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__get_mutable_enumeration) identifier__get_mutable_enumeration
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_mutable) identifier_mutable
(False) False
)comparison_operator
(block
(expression_statement
(assignment
(identifier_col_obj) identifier_col_obj
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__enumeration) identifier__enumeration
)attribute
(string_'immutable') string_'immutable'
)subscript
(attribute
(identifier_self) identifier_self
(identifier__collection_type) identifier__collection_type
)attribute
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_col_obj) identifier_col_obj
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__enumeration) identifier__enumeration
)attribute
(string_'mutable') string_'mutable'
)subscript
(attribute
(identifier_self) identifier_self
(identifier__collection_type) identifier__collection_type
)attribute
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_collection) identifier_collection
(call
(identifier_col_obj) identifier_col_obj
(argument_list
(identifier_header) identifier_header
(identifier_values) identifier_values
(attribute
(identifier_self) identifier_self
(identifier_datetimes) identifier_datetimes
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_collection) identifier_collection
(identifier__validated_a_period) identifier__validated_a_period
)attribute
(attribute
(identifier_self) identifier_self
(identifier__validated_a_period) identifier__validated_a_period
)attribute
)assignment
)expression_statement
(return_statement
(identifier_collection) identifier_collection
)return_statement
)block
)function_definition
)module | Return a Collection aligned with this one composed of one repeated value.
Aligned Data Collections are of the same Data Collection class, have the same
number of values and have matching datetimes.
Args:
value: A value to be repeated in the aliged collection values or
A list of values that has the same length as this collection.
Default: 0.
data_type: The data type of the aligned collection. Default is to
use the data type of this collection.
unit: The unit of the aligned collection. Default is to
use the unit of this collection or the base unit of the
input data_type (if it exists).
mutable: An optional Boolean to set whether the returned aligned
collection is mutable (True) or immutable (False). The default is
None, which will simply set the aligned collection to have the
same mutability as the starting collection. |
(module
(function_definition
(function_name__build_from) function_name__build_from
(parameters
(identifier_baseip) identifier_baseip
)parameters
(block
(import_from_statement
(dotted_name
(identifier_ipaddress) identifier_ipaddress
)dotted_name
(dotted_name
(identifier_ip_address) identifier_ip_address
)dotted_name
)import_from_statement
(try_statement
(block
(expression_statement
(call
(identifier_ip_address) identifier_ip_address
(argument_list
(identifier_baseip) identifier_baseip
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(if_statement
(comparison_operator
(string_'http') string_'http'
(call
(attribute
(subscript
(identifier_baseip) identifier_baseip
(slice
(integer_0) integer_0
(colon) colon
(integer_4) integer_4
)slice
)subscript
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_baseip) identifier_baseip
(call
(identifier_urlunsplit) identifier_urlunsplit
(argument_list
(list
(string_'http') string_'http'
(identifier_baseip) identifier_baseip
(string_'') string_''
(string_'') string_''
(string_'') string_''
)list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_spl) identifier_spl
(call
(identifier_urlsplit) identifier_urlsplit
(argument_list
(identifier_baseip) identifier_baseip
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'.xml') string_'.xml'
(attribute
(identifier_spl) identifier_spl
(identifier_path) identifier_path
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_sep) identifier_sep
(conditional_expression
(string_'') string_''
(call
(attribute
(attribute
(identifier_spl) identifier_spl
(identifier_path) identifier_path
)attribute
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
(string_'/') string_'/'
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_spl) identifier_spl
(call
(attribute
(identifier_spl) identifier_spl
(identifier__replace) identifier__replace
)attribute
(argument_list
(keyword_argument
(identifier_path) identifier_path
(binary_operator
(binary_operator
(attribute
(identifier_spl) identifier_spl
(identifier_path) identifier_path
)attribute
(identifier_sep) identifier_sep
)binary_operator
(string_'description.xml') string_'description.xml'
)binary_operator
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_spl) identifier_spl
(identifier_geturl) identifier_geturl
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)except_clause
(else_clause
(block
(return_statement
(call
(identifier_urlunsplit) identifier_urlunsplit
(argument_list
(tuple
(string_'http') string_'http'
(identifier_baseip) identifier_baseip
(string_'/description.xml') string_'/description.xml'
(string_'') string_''
(string_'') string_''
)tuple
)argument_list
)call
)return_statement
)block
)else_clause
)try_statement
)block
)function_definition
)module | Build URL for description.xml from ip |
(module
(function_definition
(function_name_unlink_user_account) function_name_unlink_user_account
(parameters
(identifier_self) identifier_self
(identifier_id) identifier_id
(identifier_provider) identifier_provider
(identifier_user_id) identifier_user_id
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_self) identifier_self
(identifier__url) identifier__url
)attribute
(argument_list
(call
(attribute
(string_'{}/identities/{}/{}') string_'{}/identities/{}/{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_id) identifier_id
(identifier_provider) identifier_provider
(identifier_user_id) identifier_user_id
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_delete) identifier_delete
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)return_statement
)block
)function_definition
)module | Unlink a user account
Args:
id (str): The user_id of the user identity.
provider (str): The type of identity provider (e.g: facebook).
user_id (str): The unique identifier for the user for the identity.
See: https://auth0.com/docs/api/management/v2#!/Users/delete_user_identity_by_user_id |
(module
(function_definition
(function_name_switch) function_name_switch
(parameters
(identifier_scm) identifier_scm
(identifier_to_branch) identifier_to_branch
(identifier_verbose) identifier_verbose
(identifier_fake) identifier_fake
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_scm) identifier_scm
(identifier_fake) identifier_fake
)attribute
(identifier_fake) identifier_fake
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_scm) identifier_scm
(identifier_verbose) identifier_verbose
)attribute
(boolean_operator
(identifier_fake) identifier_fake
(identifier_verbose) identifier_verbose
)boolean_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_scm) identifier_scm
(identifier_repo_check) identifier_repo_check
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_to_branch) identifier_to_branch
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_scm) identifier_scm
(identifier_display_available_branches) identifier_display_available_branches
)attribute
(argument_list
)argument_list
)call
)expression_statement
(raise_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_BadArgumentUsage) identifier_BadArgumentUsage
)attribute
(argument_list
(string_'Please specify a branch to switch to') string_'Please specify a branch to switch to'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_scm) identifier_scm
(identifier_stash_log) identifier_stash_log
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_status_log) identifier_status_log
(argument_list
(attribute
(identifier_scm) identifier_scm
(identifier_checkout_branch) identifier_checkout_branch
)attribute
(call
(attribute
(string_'Switching to {0}.') string_'Switching to {0}.'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(identifier_crayons) identifier_crayons
(identifier_yellow) identifier_yellow
)attribute
(argument_list
(identifier_to_branch) identifier_to_branch
)argument_list
)call
)argument_list
)call
(identifier_to_branch) identifier_to_branch
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_scm) identifier_scm
(identifier_unstash_log) identifier_unstash_log
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Switches from one branch to another, safely stashing and restoring local changes. |
(module
(function_definition
(function_name_perform_request) function_name_perform_request
(parameters
(identifier_self) identifier_self
(identifier_request_type) identifier_request_type
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_req) identifier_req
(call
(identifier_api_request) identifier_api_request
(argument_list
(identifier_request_type) identifier_request_type
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_self) identifier_self
(identifier_send_request) identifier_send_request
)attribute
(argument_list
(identifier_req) identifier_req
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | Create and send a request.
`request_type` is the request type (string). This is used to look up a
plugin, whose request class is instantiated and passed the remaining
arguments passed to this function. |
(module
(function_definition
(function_name_worker_edit) function_name_worker_edit
(parameters
(identifier_worker) identifier_worker
(identifier_lbn) identifier_lbn
(identifier_settings) identifier_settings
(default_parameter
(identifier_profile) identifier_profile
(string_'default') string_'default'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(subscript
(identifier_settings) identifier_settings
(string_'cmd') string_'cmd'
)subscript
(string_'update') string_'update'
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_settings) identifier_settings
(string_'mime') string_'mime'
)subscript
(string_'prop') string_'prop'
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_settings) identifier_settings
(string_'w') string_'w'
)subscript
(identifier_lbn) identifier_lbn
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_settings) identifier_settings
(string_'sw') string_'sw'
)subscript
(identifier_worker) identifier_worker
)assignment
)expression_statement
(return_statement
(comparison_operator
(subscript
(call
(identifier__do_http) identifier__do_http
(argument_list
(identifier_settings) identifier_settings
(identifier_profile) identifier_profile
)argument_list
)call
(string_'worker.result.type') string_'worker.result.type'
)subscript
(string_'OK') string_'OK'
)comparison_operator
)return_statement
)block
)function_definition
)module | Edit the worker settings
Note: http://tomcat.apache.org/connectors-doc/reference/status.html
Data Parameters for the standard Update Action
CLI Examples:
.. code-block:: bash
salt '*' modjk.worker_edit node1 loadbalancer1 "{'vwf': 500, 'vwd': 60}"
salt '*' modjk.worker_edit node1 loadbalancer1 "{'vwf': 500, 'vwd': 60}" other-profile |
(module
(function_definition
(function_name_get_app_names) function_name_get_app_names
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_app_names) identifier_app_names
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier_apps) identifier_apps
)attribute
(block
(expression_statement
(call
(attribute
(identifier_app_names) identifier_app_names
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_app_names) identifier_app_names
)return_statement
)block
)function_definition
)module | Return application names.
Return the list of application names that are available in the
database.
Returns:
set of str. |
(module
(function_definition
(function_name_split_state) function_name_split_state
(parameters
(identifier_self) identifier_self
(identifier_state) identifier_state
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_state_separator) identifier_state_separator
)attribute
(block
(return_statement
(call
(attribute
(identifier_state) identifier_state
(identifier_split) identifier_split
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_state_separator) identifier_state_separator
)attribute
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(identifier_state) identifier_state
)argument_list
)call
)return_statement
)block
)function_definition
)module | Split state string.
Parameters
----------
state : `str`
Returns
-------
`list` of `str` |
(module
(function_definition
(function_name__get_dis_func) function_name__get_dis_func
(parameters
(identifier_self) identifier_self
(identifier_union) identifier_union
)parameters
(block
(expression_statement
(assignment
(identifier_union_types) identifier_union_types
(attribute
(identifier_union) identifier_union
(identifier___args__) identifier___args__
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_NoneType) identifier_NoneType
(identifier_union_types) identifier_union_types
)comparison_operator
(block
(expression_statement
(assignment
(identifier_union_types) identifier_union_types
(call
(identifier_tuple) identifier_tuple
(generator_expression
(identifier_e) identifier_e
(for_in_clause
(identifier_e) identifier_e
(identifier_union_types) identifier_union_types
)for_in_clause
(if_clause
(comparison_operator
(identifier_e) identifier_e
(identifier_NoneType) identifier_NoneType
)comparison_operator
)if_clause
)generator_expression
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_all) identifier_all
(generator_expression
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_e) identifier_e
(string_"__attrs_attrs__") string_"__attrs_attrs__"
)argument_list
)call
(for_in_clause
(identifier_e) identifier_e
(identifier_union_types) identifier_union_types
)for_in_clause
)generator_expression
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(concatenated_string
(string_"Only unions of attr classes supported ") string_"Only unions of attr classes supported "
(string_"currently. Register a loads hook manually.") string_"currently. Register a loads hook manually."
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(identifier_create_uniq_field_dis_func) identifier_create_uniq_field_dis_func
(argument_list
(list_splat
(identifier_union_types) identifier_union_types
)list_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Fetch or try creating a disambiguation function for a union. |
(module
(function_definition
(function_name_set_hostname) function_name_set_hostname
(parameters
(default_parameter
(identifier_hostname) identifier_hostname
(None) None
)default_parameter
(default_parameter
(identifier_deploy) identifier_deploy
(False) False
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_hostname) identifier_hostname
)not_operator
(block
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(string_"Hostname option must not be none.") string_"Hostname option must not be none."
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_query) identifier_query
(dictionary
(pair
(string_'type') string_'type'
(string_'config') string_'config'
)pair
(pair
(string_'action') string_'action'
(string_'set') string_'set'
)pair
(pair
(string_'xpath') string_'xpath'
(string_'/config/devices/entry[@name=\'localhost.localdomain\']/deviceconfig/system') string_'/config/devices/entry[@name=\'localhost.localdomain\']/deviceconfig/system'
)pair
(pair
(string_'element') string_'element'
(call
(attribute
(string_'<hostname>{0}</hostname>') string_'<hostname>{0}</hostname>'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_hostname) identifier_hostname
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ret) identifier_ret
(identifier_update) identifier_update
)attribute
(argument_list
(call
(subscript
(identifier___proxy__) identifier___proxy__
(string_'panos.call') string_'panos.call'
)subscript
(argument_list
(identifier_query) identifier_query
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_deploy) identifier_deploy
(True) True
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_ret) identifier_ret
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_commit) identifier_commit
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Set the hostname of the Palo Alto proxy minion. A commit will be required before this is processed.
CLI Example:
Args:
hostname (str): The hostname to set
deploy (bool): If true then commit the full candidate configuration, if false only set pending change.
.. code-block:: bash
salt '*' panos.set_hostname newhostname
salt '*' panos.set_hostname newhostname deploy=True |
(module
(function_definition
(function_name_resize) function_name_resize
(parameters
(identifier_self) identifier_self
(identifier_w) identifier_w
(identifier_h) identifier_h
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_plane_w) identifier_plane_w
)attribute
(identifier_w) identifier_w
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_plane_h) identifier_plane_h
)attribute
(identifier_h) identifier_h
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_plane_ratio) identifier_plane_ratio
)attribute
(binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_char_ratio) identifier_char_ratio
)attribute
(identifier_w) identifier_w
)binary_operator
(identifier_h) identifier_h
)binary_operator
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_crosshairs) identifier_crosshairs
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_crosshairs_coord) identifier_crosshairs_coord
)attribute
(tuple
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_w) identifier_w
(integer_2) integer_2
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_h) identifier_h
(integer_2) integer_2
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)tuple
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Used when resizing the plane, resets the plane ratio factor.
:param w: New width of the visible section of the plane.
:param h: New height of the visible section of the plane. |
(module
(function_definition
(function_name__name_with_flags) function_name__name_with_flags
(parameters
(identifier_self) identifier_self
(identifier_include_restricted) identifier_include_restricted
(default_parameter
(identifier_title) identifier_title
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(conditional_expression
(string_"Special: ") string_"Special: "
(attribute
(identifier_self) identifier_self
(identifier_special) identifier_special
)attribute
(string_"") string_""
)conditional_expression
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)augmented_assignment
)expression_statement
(if_statement
(identifier_title) identifier_title
(block
(expression_statement
(augmented_assignment
(identifier_name) identifier_name
(call
(attribute
(string_" - {}") string_" - {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_title) identifier_title
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_include_restricted) identifier_include_restricted
(attribute
(identifier_self) identifier_self
(identifier_restricted) identifier_restricted
)attribute
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_name) identifier_name
(string_" (R)") string_" (R)"
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_name) identifier_name
(conditional_expression
(string_" (BB)") string_" (BB)"
(attribute
(identifier_self) identifier_self
(identifier_both_blocks) identifier_both_blocks
)attribute
(string_"") string_""
)conditional_expression
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_name) identifier_name
(conditional_expression
(string_" (A)") string_" (A)"
(attribute
(identifier_self) identifier_self
(identifier_administrative) identifier_administrative
)attribute
(string_"") string_""
)conditional_expression
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_name) identifier_name
(conditional_expression
(string_" (S)") string_" (S)"
(attribute
(identifier_self) identifier_self
(identifier_sticky) identifier_sticky
)attribute
(string_"") string_""
)conditional_expression
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_name) identifier_name
(conditional_expression
(string_" (Deleted)") string_" (Deleted)"
(attribute
(identifier_self) identifier_self
(identifier_deleted) identifier_deleted
)attribute
(string_"") string_""
)conditional_expression
)augmented_assignment
)expression_statement
(return_statement
(identifier_name) identifier_name
)return_statement
)block
)function_definition
)module | Generate the name with flags. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.