sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name__reduce) function_name__reduce
(parameters
(identifier_self) identifier_self
(identifier_op) identifier_op
(identifier_name) identifier_name
(default_parameter
(identifier_axis) identifier_axis
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_skipna) identifier_skipna
(True) True
)default_parameter
(default_parameter
(identifier_numeric_only) identifier_numeric_only
(None) None
)default_parameter
(default_parameter
(identifier_filter_type) identifier_filter_type
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwds) identifier_kwds
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_delegate) identifier_delegate
(attribute
(identifier_self) identifier_self
(identifier__values) identifier__values
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_axis) identifier_axis
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__get_axis_number) identifier__get_axis_number
)attribute
(argument_list
(identifier_axis) identifier_axis
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_delegate) identifier_delegate
(identifier_Categorical) identifier_Categorical
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_delegate) identifier_delegate
(identifier__reduce) identifier__reduce
)attribute
(argument_list
(identifier_name) identifier_name
(keyword_argument
(identifier_numeric_only) identifier_numeric_only
(identifier_numeric_only) identifier_numeric_only
)keyword_argument
(dictionary_splat
(identifier_kwds) identifier_kwds
)dictionary_splat
)argument_list
)call
)return_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_delegate) identifier_delegate
(identifier_ExtensionArray) identifier_ExtensionArray
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_delegate) identifier_delegate
(identifier__reduce) identifier__reduce
)attribute
(argument_list
(identifier_name) identifier_name
(keyword_argument
(identifier_skipna) identifier_skipna
(identifier_skipna) identifier_skipna
)keyword_argument
(dictionary_splat
(identifier_kwds) identifier_kwds
)dictionary_splat
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(call
(identifier_is_datetime64_dtype) identifier_is_datetime64_dtype
(argument_list
(identifier_delegate) identifier_delegate
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_delegate) identifier_delegate
(call
(identifier_DatetimeIndex) identifier_DatetimeIndex
(argument_list
(identifier_delegate) identifier_delegate
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_delegate) identifier_delegate
(attribute
(identifier_np) identifier_np
(identifier_ndarray) identifier_ndarray
)attribute
)argument_list
)call
(block
(if_statement
(identifier_numeric_only) identifier_numeric_only
(block
(raise_statement
(call
(identifier_NotImplementedError) identifier_NotImplementedError
(argument_list
(call
(attribute
(concatenated_string
(string_'Series.{0} does not implement ') string_'Series.{0} does not implement '
(string_'numeric_only.') string_'numeric_only.'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_np) identifier_np
(identifier_errstate) identifier_errstate
)attribute
(argument_list
(keyword_argument
(identifier_all) identifier_all
(string_'ignore') string_'ignore'
)keyword_argument
)argument_list
)call
)with_item
)with_clause
(block
(return_statement
(call
(identifier_op) identifier_op
(argument_list
(identifier_delegate) identifier_delegate
(keyword_argument
(identifier_skipna) identifier_skipna
(identifier_skipna) identifier_skipna
)keyword_argument
(dictionary_splat
(identifier_kwds) identifier_kwds
)dictionary_splat
)argument_list
)call
)return_statement
)block
)with_statement
)block
)elif_clause
)if_statement
(return_statement
(call
(attribute
(identifier_delegate) identifier_delegate
(identifier__reduce) identifier__reduce
)attribute
(argument_list
(keyword_argument
(identifier_op) identifier_op
(identifier_op) identifier_op
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_axis) identifier_axis
(identifier_axis) identifier_axis
)keyword_argument
(keyword_argument
(identifier_skipna) identifier_skipna
(identifier_skipna) identifier_skipna
)keyword_argument
(keyword_argument
(identifier_numeric_only) identifier_numeric_only
(identifier_numeric_only) identifier_numeric_only
)keyword_argument
(keyword_argument
(identifier_filter_type) identifier_filter_type
(identifier_filter_type) identifier_filter_type
)keyword_argument
(dictionary_splat
(identifier_kwds) identifier_kwds
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Perform a reduction operation.
If we have an ndarray as a value, then simply perform the operation,
otherwise delegate to the object. |
(module
(function_definition
(function_name_distance) function_name_distance
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_method) identifier_method
(string_'haversine') string_'haversine'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_distances) identifier_distances
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_segment) identifier_segment
(identifier_self) identifier_self
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_segment) identifier_segment
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_distances) identifier_distances
(identifier_append) identifier_append
)attribute
(argument_list
(list
)list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_distances) identifier_distances
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_segment) identifier_segment
(identifier_distance) identifier_distance
)attribute
(argument_list
(identifier_method) identifier_method
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_distances) identifier_distances
)return_statement
)block
)function_definition
)module | Calculate distances between locations in segments.
Args:
method (str): Method used to calculate distance
Returns:
list of list of float: Groups of distance between points in
segments |
(module
(function_definition
(function_name_verifyUniqueWcsname) function_name_verifyUniqueWcsname
(parameters
(identifier_fname) identifier_fname
(identifier_wcsname) identifier_wcsname
)parameters
(block
(expression_statement
(assignment
(identifier_uniq) identifier_uniq
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_numsci) identifier_numsci
(identifier_extname) identifier_extname
)pattern_list
(call
(identifier_count_sci_extensions) identifier_count_sci_extensions
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_wnames) identifier_wnames
(call
(attribute
(identifier_altwcs) identifier_altwcs
(identifier_wcsnames) identifier_wcsnames
)attribute
(argument_list
(identifier_fname) identifier_fname
(keyword_argument
(identifier_ext) identifier_ext
(tuple
(identifier_extname) identifier_extname
(integer_1) integer_1
)tuple
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_wcsname) identifier_wcsname
(call
(attribute
(identifier_wnames) identifier_wnames
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_uniq) identifier_uniq
(False) False
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_uniq) identifier_uniq
)return_statement
)block
)function_definition
)module | Report whether or not the specified WCSNAME already exists in the file |
(module
(function_definition
(function_name_fastq_convert_pipe_cl) function_name_fastq_convert_pipe_cl
(parameters
(identifier_in_file) identifier_in_file
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(call
(identifier__seqtk_fastq_prep_cl) identifier__seqtk_fastq_prep_cl
(argument_list
(identifier_data) identifier_data
(identifier_in_file) identifier_in_file
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_cmd) identifier_cmd
)not_operator
(block
(expression_statement
(assignment
(identifier_cat_cmd) identifier_cat_cmd
(conditional_expression
(string_"zcat") string_"zcat"
(call
(attribute
(identifier_in_file) identifier_in_file
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_".gz") string_".gz"
)argument_list
)call
(string_"cat") string_"cat"
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(binary_operator
(binary_operator
(identifier_cat_cmd) identifier_cat_cmd
(string_" ") string_" "
)binary_operator
(identifier_in_file) identifier_in_file
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(binary_operator
(string_"<(%s)") string_"<(%s)"
(identifier_cmd) identifier_cmd
)binary_operator
)return_statement
)block
)function_definition
)module | Create an anonymous pipe converting Illumina 1.3-1.7 to Sanger.
Uses seqtk: https://github.com/lh3/seqt |
(module
(function_definition
(function_name_safe_temp_edit) function_name_safe_temp_edit
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_temporary_file) identifier_temporary_file
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_tmp_file) identifier_tmp_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copyfile) identifier_copyfile
)attribute
(argument_list
(identifier_filename) identifier_filename
(attribute
(identifier_tmp_file) identifier_tmp_file
(identifier_name) identifier_name
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(yield
(identifier_filename) identifier_filename
)yield
)expression_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copyfile) identifier_copyfile
)attribute
(argument_list
(attribute
(identifier_tmp_file) identifier_tmp_file
(identifier_name) identifier_name
)attribute
(identifier_filename) identifier_filename
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
)block
)with_statement
)block
)function_definition
)module | Safely modify a file within context that automatically reverts any changes afterwards
The file mutatation occurs in place. The file is backed up in a temporary file before edits
occur and when the context is closed, the mutated file is discarded and replaced with the backup.
WARNING: There may be a chance that the file may not be restored and this method should be used
carefully with the known risk. |
(module
(function_definition
(function_name_ylogydu) function_name_ylogydu
(parameters
(identifier_y) identifier_y
(identifier_u) identifier_u
)parameters
(block
(expression_statement
(assignment
(identifier_mask) identifier_mask
(parenthesized_expression
(comparison_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_atleast_1d) identifier_atleast_1d
)attribute
(argument_list
(identifier_y) identifier_y
)argument_list
)call
(float_0.) float_0.
)comparison_operator
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(attribute
(identifier_np) identifier_np
(identifier_zeros_like) identifier_zeros_like
)attribute
(argument_list
(identifier_u) identifier_u
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(identifier_mask) identifier_mask
)subscript
(binary_operator
(subscript
(identifier_y) identifier_y
(identifier_mask) identifier_mask
)subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_log) identifier_log
)attribute
(argument_list
(binary_operator
(subscript
(identifier_y) identifier_y
(identifier_mask) identifier_mask
)subscript
(subscript
(identifier_u) identifier_u
(identifier_mask) identifier_mask
)subscript
)binary_operator
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
)module | tool to give desired output for the limit as y -> 0, which is 0
Parameters
----------
y : array-like of len(n)
u : array-like of len(n)
Returns
-------
np.array len(n) |
(module
(function_definition
(function_name_steal) function_name_steal
(parameters
(identifier_self) identifier_self
(identifier_instr) identifier_instr
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_instr) identifier_instr
(identifier__stolen_by) identifier__stolen_by
)attribute
(identifier_self) identifier_self
)assignment
)expression_statement
(for_statement
(identifier_jmp) identifier_jmp
(attribute
(identifier_instr) identifier_instr
(identifier__target_of) identifier__target_of
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_jmp) identifier_jmp
(identifier_arg) identifier_arg
)attribute
(identifier_self) identifier_self
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__target_of) identifier__target_of
)attribute
(attribute
(identifier_instr) identifier_instr
(identifier__target_of) identifier__target_of
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_instr) identifier_instr
(identifier__target_of) identifier__target_of
)attribute
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Steal the jump index off of `instr`.
This makes anything that would have jumped to `instr` jump to
this Instruction instead.
Parameters
----------
instr : Instruction
The instruction to steal the jump sources from.
Returns
-------
self : Instruction
The instruction that owns this method.
Notes
-----
This mutates self and ``instr`` inplace. |
(module
(function_definition
(function_name__runOPF) function_name__runOPF
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_decommit) identifier_decommit
)attribute
(block
(expression_statement
(assignment
(identifier_solver) identifier_solver
(call
(identifier_UDOPF) identifier_UDOPF
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_case) identifier_case
)attribute
(keyword_argument
(identifier_dc) identifier_dc
(parenthesized_expression
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_locationalAdjustment) identifier_locationalAdjustment
)attribute
(string_"dc") string_"dc"
)comparison_operator
)parenthesized_expression
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_locationalAdjustment) identifier_locationalAdjustment
)attribute
(string_"dc") string_"dc"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_solver) identifier_solver
(call
(identifier_OPF) identifier_OPF
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_case) identifier_case
)attribute
(keyword_argument
(identifier_dc) identifier_dc
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_solver) identifier_solver
(call
(identifier_OPF) identifier_OPF
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_case) identifier_case
)attribute
(keyword_argument
(identifier_dc) identifier_dc
(False) False
)keyword_argument
(keyword_argument
(identifier_opt) identifier_opt
(dictionary
(pair
(string_"verbose") string_"verbose"
(True) True
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__solution) identifier__solution
)attribute
(call
(attribute
(identifier_solver) identifier_solver
(identifier_solve) identifier_solve
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__solution) identifier__solution
)attribute
(string_"converged") string_"converged"
)subscript
)return_statement
)block
)function_definition
)module | Computes dispatch points and LMPs using OPF. |
(module
(function_definition
(function_name_rectangle) function_name_rectangle
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_start_point) identifier_start_point
)attribute
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_end_point) identifier_end_point
)attribute
(None) None
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(identifier_QgsRectangle) identifier_QgsRectangle
(argument_list
)argument_list
)call
)return_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_start_point) identifier_start_point
)attribute
(identifier_x) identifier_x
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_end_point) identifier_end_point
)attribute
(identifier_x) identifier_x
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_start_point) identifier_start_point
)attribute
(identifier_y) identifier_y
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_end_point) identifier_end_point
)attribute
(identifier_y) identifier_y
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(identifier_QgsRectangle) identifier_QgsRectangle
(argument_list
)argument_list
)call
)return_statement
)block
)elif_clause
)if_statement
(return_statement
(call
(identifier_QgsRectangle) identifier_QgsRectangle
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_start_point) identifier_start_point
)attribute
(attribute
(identifier_self) identifier_self
(identifier_end_point) identifier_end_point
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Accessor for the rectangle.
:return: A rectangle showing the designed extent.
:rtype: QgsRectangle |
(module
(function_definition
(function_name_contains_container) function_name_contains_container
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(identifier_make_path) identifier_make_path
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_container) identifier_get_container
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Returns True if a container exists at the specified path,
otherwise False.
:param path: str or Path instance
:return:
:rtype: bool
:raises ValueError: A component of path is a field name. |
(module
(function_definition
(function_name_abi_splitext) function_name_abi_splitext
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_filename) identifier_filename
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_is_ncfile) identifier_is_ncfile
(False) False
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_filename) identifier_filename
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_".nc") string_".nc"
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_is_ncfile) identifier_is_ncfile
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_filename) identifier_filename
(subscript
(identifier_filename) identifier_filename
(slice
(colon) colon
(unary_operator
(integer_3) integer_3
)unary_operator
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_known_extensions) identifier_known_extensions
(call
(identifier_abi_extensions) identifier_abi_extensions
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
(integer_1) integer_1
)binary_operator
(unary_operator
(integer_1) integer_1
)unary_operator
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_ext) identifier_ext
(subscript
(identifier_filename) identifier_filename
(slice
(identifier_i) identifier_i
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ext) identifier_ext
(identifier_known_extensions) identifier_known_extensions
)comparison_operator
(block
(break_statement
)break_statement
)block
)if_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"Cannot find a registered extension in %s") string_"Cannot find a registered extension in %s"
(identifier_filename) identifier_filename
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)for_statement
(expression_statement
(assignment
(identifier_root) identifier_root
(subscript
(identifier_filename) identifier_filename
(slice
(colon) colon
(identifier_i) identifier_i
)slice
)subscript
)assignment
)expression_statement
(if_statement
(identifier_is_ncfile) identifier_is_ncfile
(block
(expression_statement
(augmented_assignment
(identifier_ext) identifier_ext
(string_".nc") string_".nc"
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_root) identifier_root
(identifier_ext) identifier_ext
)expression_list
)return_statement
)block
)function_definition
)module | Split the ABINIT extension from a filename.
"Extension" are found by searching in an internal database.
Returns "(root, ext)" where ext is the registered ABINIT extension
The final ".nc" is included (if any)
>>> assert abi_splitext("foo_WFK") == ('foo_', 'WFK')
>>> assert abi_splitext("/home/guido/foo_bar_WFK.nc") == ('foo_bar_', 'WFK.nc') |
(module
(function_definition
(function_name_setup) function_name_setup
(parameters
)parameters
(block
(global_statement
(identifier__displayhooks) identifier__displayhooks
(identifier__excepthooks) identifier__excepthooks
)global_statement
(if_statement
(comparison_operator
(identifier__displayhooks) identifier__displayhooks
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier__displayhooks) identifier__displayhooks
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__excepthooks) identifier__excepthooks
(list
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_sys) identifier_sys
(identifier_displayhook) identifier_displayhook
)attribute
(attribute
(identifier_sys) identifier_sys
(identifier___displayhook__) identifier___displayhook__
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier__displayhooks) identifier__displayhooks
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_weakref) identifier_weakref
(identifier_ref) identifier_ref
)attribute
(argument_list
(attribute
(identifier_sys) identifier_sys
(identifier_displayhook) identifier_displayhook
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_sys) identifier_sys
(identifier_excepthook) identifier_excepthook
)attribute
(attribute
(identifier_sys) identifier_sys
(identifier___excepthook__) identifier___excepthook__
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier__excepthooks) identifier__excepthooks
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_weakref) identifier_weakref
(identifier_ref) identifier_ref
)attribute
(argument_list
(attribute
(identifier_sys) identifier_sys
(identifier_excepthook) identifier_excepthook
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_sys) identifier_sys
(identifier_displayhook) identifier_displayhook
)attribute
(identifier_displayhook) identifier_displayhook
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_sys) identifier_sys
(identifier_excepthook) identifier_excepthook
)attribute
(identifier_excepthook) identifier_excepthook
)assignment
)expression_statement
)block
)function_definition
)module | Initializes the hook queues for the sys module. This method will
automatically be called on the first registration for a hook to the system
by either the registerDisplay or registerExcept functions. |
(module
(function_definition
(function_name__add_edge) function_name__add_edge
(parameters
(identifier_self) identifier_self
(identifier_source) identifier_source
(identifier_target) identifier_target
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_edge_properties) identifier_edge_properties
(attribute
(identifier_self) identifier_self
(identifier_edge_properties) identifier_edge_properties
)attribute
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_edge_properties) identifier_edge_properties
(identifier_k) identifier_k
)subscript
(identifier_v) identifier_v
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_graph) identifier_graph
)attribute
(identifier_add_edge) identifier_add_edge
)attribute
(argument_list
(identifier_source) identifier_source
(identifier_target) identifier_target
(dictionary_splat
(identifier_edge_properties) identifier_edge_properties
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add an edge to the graph. |
(module
(function_definition
(function_name_getDayStart) function_name_getDayStart
(parameters
(identifier_self) identifier_self
(identifier_dateTime) identifier_dateTime
)parameters
(block
(return_statement
(call
(attribute
(call
(identifier_ensure_localtime) identifier_ensure_localtime
(argument_list
(identifier_dateTime) identifier_dateTime
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(keyword_argument
(identifier_hour) identifier_hour
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_minute) identifier_minute
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_second) identifier_second
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_microsecond) identifier_microsecond
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Ensure local time and get the beginning of the day |
(module
(function_definition
(function_name_configure) function_name_configure
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_settings_module) identifier_settings_module
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_default_settings) identifier_default_settings
(identifier_reload) identifier_reload
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_environment_var) identifier_environment_var
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__kwargs) identifier__kwargs
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"ENVVAR_FOR_DYNACONF") string_"ENVVAR_FOR_DYNACONF"
(attribute
(identifier_default_settings) identifier_default_settings
(identifier_ENVVAR_FOR_DYNACONF) identifier_ENVVAR_FOR_DYNACONF
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_settings_module) identifier_settings_module
(boolean_operator
(identifier_settings_module) identifier_settings_module
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_environment_var) identifier_environment_var
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(call
(identifier_compat_kwargs) identifier_compat_kwargs
(argument_list
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_update) identifier_update
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__kwargs) identifier__kwargs
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__wrapped) identifier__wrapped
)attribute
(call
(identifier_Settings) identifier_Settings
(argument_list
(keyword_argument
(identifier_settings_module) identifier_settings_module
(identifier_settings_module) identifier_settings_module
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Lazy Settings configured ...") string_"Lazy Settings configured ..."
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Allows user to reconfigure settings object passing a new settings
module or separated kwargs
:param settings_module: defines the setttings file
:param kwargs: override default settings |
(module
(function_definition
(function_name_fetch_alien) function_name_fetch_alien
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_parent) identifier_parent
(call
(attribute
(identifier_self) identifier_self
(identifier_get_parent) identifier_get_parent
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_parent) identifier_parent
(block
(expression_statement
(assignment
(identifier_parentelement) identifier_parentelement
(call
(attribute
(identifier_parent) identifier_parent
(identifier_get_element) identifier_get_element
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_parentelement) identifier_parentelement
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_refobjinter) identifier_get_refobjinter
)attribute
(argument_list
)argument_list
)call
(identifier_get_current_element) identifier_get_current_element
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_parentelement) identifier_parentelement
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__alien) identifier__alien
)attribute
(True) True
)assignment
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__alien) identifier__alien
)attribute
)return_statement
)block
)if_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_element) identifier_element
(call
(attribute
(identifier_self) identifier_self
(identifier_get_element) identifier_get_element
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_element) identifier_element
(identifier_parentelement) identifier_parentelement
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__alien) identifier__alien
)attribute
(False) False
)assignment
)expression_statement
)block
(elif_clause
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_element) identifier_element
(attribute
(attribute
(identifier_djadapter) identifier_djadapter
(identifier_models) identifier_models
)attribute
(identifier_Shot) identifier_Shot
)attribute
)argument_list
)call
(line_continuation_\) line_continuation_\
(parenthesized_expression
(boolean_operator
(comparison_operator
(attribute
(attribute
(identifier_element) identifier_element
(identifier_sequence) identifier_sequence
)attribute
(identifier_name) identifier_name
)attribute
(attribute
(identifier_djadapter) identifier_djadapter
(identifier_GLOBAL_NAME) identifier_GLOBAL_NAME
)attribute
)comparison_operator
(line_continuation_\) line_continuation_\
(parenthesized_expression
(boolean_operator
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_parentelement) identifier_parentelement
(attribute
(attribute
(identifier_djadapter) identifier_djadapter
(identifier_models) identifier_models
)attribute
(identifier_Shot) identifier_Shot
)attribute
)argument_list
)call
(line_continuation_\) line_continuation_\
(comparison_operator
(attribute
(identifier_parentelement) identifier_parentelement
(identifier_sequence) identifier_sequence
)attribute
(attribute
(identifier_element) identifier_element
(identifier_sequence) identifier_sequence
)attribute
)comparison_operator
)boolean_operator
(comparison_operator
(attribute
(identifier_element) identifier_element
(identifier_name) identifier_name
)attribute
(attribute
(identifier_djadapter) identifier_djadapter
(identifier_GLOBAL_NAME) identifier_GLOBAL_NAME
)attribute
)comparison_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
)parenthesized_expression
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__alien) identifier__alien
)attribute
(False) False
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_assets) identifier_assets
(call
(attribute
(attribute
(identifier_parentelement) identifier_parentelement
(identifier_assets) identifier_assets
)attribute
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__alien) identifier__alien
)attribute
(comparison_operator
(identifier_element) identifier_element
(identifier_assets) identifier_assets
)comparison_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__alien) identifier__alien
)attribute
)return_statement
)block
)function_definition
)module | Set and return, if the reftrack element is linked to the current scene.
Askes the refobj interface for the current scene.
If there is no current scene then True is returned.
:returns: whether the element is linked to the current scene
:rtype: bool
:raises: None |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_instance_name) identifier_instance_name
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier__url) identifier__url
)attribute
(identifier_instance_name) identifier_instance_name
)binary_operator
(string_'/') string_'/'
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
(dictionary_splat
(attribute
(identifier_self) identifier_self
(identifier__default_request_kwargs) identifier__default_request_kwargs
)attribute
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier__get_response_data) identifier__get_response_data
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__concrete_instance) identifier__concrete_instance
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get an ObjectRocket instance by name.
:param str instance_name: The name of the instance to retrieve.
:returns: A subclass of :py:class:`bases.BaseInstance`, or None if instance does not exist.
:rtype: :py:class:`bases.BaseInstance` |
(module
(function_definition
(function_name_encrypt) function_name_encrypt
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_pubkey) identifier_pubkey
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_nonce) identifier_nonce
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_bytes) identifier_bytes
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_text) identifier_text
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_bytes) identifier_bytes
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_text_bytes) identifier_text_bytes
(call
(identifier_ensure_bytes) identifier_ensure_bytes
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nonce_bytes) identifier_nonce_bytes
(call
(identifier_ensure_bytes) identifier_ensure_bytes
(argument_list
(identifier_nonce) identifier_nonce
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_recipient_pubkey) identifier_recipient_pubkey
(call
(identifier_PublicKey) identifier_PublicKey
(argument_list
(identifier_pubkey) identifier_pubkey
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_crypt_bytes) identifier_crypt_bytes
(call
(attribute
(call
(attribute
(attribute
(identifier_libnacl) identifier_libnacl
(identifier_public) identifier_public
)attribute
(identifier_Box) identifier_Box
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_recipient_pubkey) identifier_recipient_pubkey
)argument_list
)call
(identifier_encrypt) identifier_encrypt
)attribute
(argument_list
(identifier_text_bytes) identifier_text_bytes
(identifier_nonce_bytes) identifier_nonce_bytes
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_Base58Encoder) identifier_Base58Encoder
(identifier_encode) identifier_encode
)attribute
(argument_list
(subscript
(identifier_crypt_bytes) identifier_crypt_bytes
(slice
(integer_24) integer_24
(colon) colon
)slice
)subscript
)argument_list
)call
)return_statement
)block
)function_definition
)module | Encrypt message text with the public key of the recipient and a nonce
The nonce must be a 24 character string (you can use libnacl.utils.rand_nonce() to get one)
and unique for each encrypted message.
Return base58 encoded encrypted message
:param pubkey: Base58 encoded public key of the recipient
:param nonce: Unique nonce
:param text: Message to encrypt
:return: |
(module
(function_definition
(function_name_reverse_point) function_name_reverse_point
(parameters
(identifier_self) identifier_self
(identifier_latitude) identifier_latitude
(identifier_longitude) identifier_longitude
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_fields) identifier_fields
(call
(attribute
(string_",") string_","
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_"fields") string_"fields"
(list
)list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_point_param) identifier_point_param
(call
(attribute
(string_"{0},{1}") string_"{0},{1}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_latitude) identifier_latitude
(identifier_longitude) identifier_longitude
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier__req) identifier__req
)attribute
(argument_list
(keyword_argument
(identifier_verb) identifier_verb
(string_"reverse") string_"reverse"
)keyword_argument
(keyword_argument
(identifier_params) identifier_params
(dictionary
(pair
(string_"q") string_"q"
(identifier_point_param) identifier_point_param
)pair
(pair
(string_"fields") string_"fields"
(identifier_fields) identifier_fields
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(return_statement
(call
(identifier_error_response) identifier_error_response
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_Location) identifier_Location
(argument_list
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Method for identifying an address from a geographic point |
(module
(function_definition
(function_name_count_relations) function_name_count_relations
(parameters
(identifier_graph) identifier_graph
)parameters
(type
(identifier_Counter) identifier_Counter
)type
(block
(return_statement
(call
(identifier_Counter) identifier_Counter
(generator_expression
(subscript
(identifier_data) identifier_data
(identifier_RELATION) identifier_RELATION
)subscript
(for_in_clause
(pattern_list
(identifier__) identifier__
(identifier__) identifier__
(identifier_data) identifier_data
)pattern_list
(call
(attribute
(identifier_graph) identifier_graph
(identifier_edges) identifier_edges
)attribute
(argument_list
(keyword_argument
(identifier_data) identifier_data
(True) True
)keyword_argument
)argument_list
)call
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Return a histogram over all relationships in a graph.
:param pybel.BELGraph graph: A BEL graph
:return: A Counter from {relation type: frequency} |
(module
(function_definition
(function_name_lookup_deleted_folder) function_name_lookup_deleted_folder
(parameters
(identifier_event) identifier_event
(identifier_filesystem) identifier_filesystem
(identifier_journal) identifier_journal
)parameters
(block
(expression_statement
(assignment
(identifier_folder_events) identifier_folder_events
(generator_expression
(identifier_e) identifier_e
(for_in_clause
(identifier_e) identifier_e
(subscript
(identifier_journal) identifier_journal
(attribute
(identifier_event) identifier_event
(identifier_parent_inode) identifier_parent_inode
)attribute
)subscript
)for_in_clause
(if_clause
(boolean_operator
(comparison_operator
(string_'DIRECTORY') string_'DIRECTORY'
(attribute
(identifier_e) identifier_e
(identifier_attributes) identifier_attributes
)attribute
)comparison_operator
(comparison_operator
(string_'FILE_DELETE') string_'FILE_DELETE'
(attribute
(identifier_e) identifier_e
(identifier_changes) identifier_changes
)attribute
)comparison_operator
)boolean_operator
)if_clause
)generator_expression
)assignment
)expression_statement
(for_statement
(identifier_folder_event) identifier_folder_event
(identifier_folder_events) identifier_folder_events
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(identifier_lookup_deleted_folder) identifier_lookup_deleted_folder
(argument_list
(identifier_folder_event) identifier_folder_event
(identifier_filesystem) identifier_filesystem
(identifier_journal) identifier_journal
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_ntpath) identifier_ntpath
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_path) identifier_path
(attribute
(identifier_event) identifier_event
(identifier_name) identifier_name
)attribute
)argument_list
)call
)return_statement
)block
)for_statement
(return_statement
(call
(identifier_lookup_folder) identifier_lookup_folder
(argument_list
(identifier_event) identifier_event
(identifier_filesystem) identifier_filesystem
)argument_list
)call
)return_statement
)block
)function_definition
)module | Lookup the parent folder in the journal content. |
(module
(function_definition
(function_name__attributeStr) function_name__attributeStr
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(return_statement
(call
(attribute
(string_"{}={}") string_"{}={}"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier__encodeAttr) identifier__encodeAttr
(argument_list
(identifier_name) identifier_name
)argument_list
)call
(call
(attribute
(string_",") string_","
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(identifier__encodeAttr) identifier__encodeAttr
(argument_list
(identifier_v) identifier_v
)argument_list
)call
(for_in_clause
(identifier_v) identifier_v
(subscript
(attribute
(identifier_self) identifier_self
(identifier_attributes) identifier_attributes
)attribute
(identifier_name) identifier_name
)subscript
)for_in_clause
)list_comprehension
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return name=value for a single attribute |
(module
(function_definition
(function_name_play) function_name_play
(parameters
(identifier_cls) identifier_cls
(identifier_file_path) identifier_file_path
(default_parameter
(identifier_on_done) identifier_on_done
(None) None
)default_parameter
(default_parameter
(identifier_logger) identifier_logger
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_pygame) identifier_pygame
(identifier_mixer) identifier_mixer
)attribute
(identifier_init) identifier_init
)attribute
(argument_list
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_pygame) identifier_pygame
(identifier_mixer) identifier_mixer
)attribute
(identifier_music) identifier_music
)attribute
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_file_path) identifier_file_path
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_pygame) identifier_pygame
(identifier_error) identifier_error
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(identifier_logger) identifier_logger
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_pygame) identifier_pygame
(identifier_mixer) identifier_mixer
)attribute
(identifier_music) identifier_music
)attribute
(identifier_play) identifier_play
)attribute
(argument_list
)argument_list
)call
)expression_statement
(while_statement
(call
(attribute
(attribute
(attribute
(identifier_pygame) identifier_pygame
(identifier_mixer) identifier_mixer
)attribute
(identifier_music) identifier_music
)attribute
(identifier_get_busy) identifier_get_busy
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(float_0.1) float_0.1
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)while_statement
(if_statement
(identifier_on_done) identifier_on_done
(block
(expression_statement
(call
(identifier_on_done) identifier_on_done
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Play an audio file.
:param file_path: the path to the file to play.
:param on_done: callback when audio playback completes. |
(module
(function_definition
(function_name_dAbr_dV) function_name_dAbr_dV
(parameters
(identifier_dSf_dVa) identifier_dSf_dVa
(identifier_dSf_dVm) identifier_dSf_dVm
(identifier_dSt_dVa) identifier_dSt_dVa
(identifier_dSt_dVm) identifier_dSt_dVm
(identifier_Sf) identifier_Sf
(identifier_St) identifier_St
)parameters
(block
(expression_statement
(assignment
(identifier_dAf_dPf) identifier_dAf_dPf
(call
(identifier_spdiag) identifier_spdiag
(argument_list
(binary_operator
(integer_2) integer_2
(call
(attribute
(identifier_Sf) identifier_Sf
(identifier_real) identifier_real
)attribute
(argument_list
)argument_list
)call
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dAf_dQf) identifier_dAf_dQf
(call
(identifier_spdiag) identifier_spdiag
(argument_list
(binary_operator
(integer_2) integer_2
(call
(attribute
(identifier_Sf) identifier_Sf
(identifier_imag) identifier_imag
)attribute
(argument_list
)argument_list
)call
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dAt_dPt) identifier_dAt_dPt
(call
(identifier_spdiag) identifier_spdiag
(argument_list
(binary_operator
(integer_2) integer_2
(call
(attribute
(identifier_St) identifier_St
(identifier_real) identifier_real
)attribute
(argument_list
)argument_list
)call
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dAt_dQt) identifier_dAt_dQt
(call
(identifier_spdiag) identifier_spdiag
(argument_list
(binary_operator
(integer_2) integer_2
(call
(attribute
(identifier_St) identifier_St
(identifier_imag) identifier_imag
)attribute
(argument_list
)argument_list
)call
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dAf_dVa) identifier_dAf_dVa
(binary_operator
(binary_operator
(identifier_dAf_dPf) identifier_dAf_dPf
(call
(attribute
(identifier_dSf_dVa) identifier_dSf_dVa
(identifier_real) identifier_real
)attribute
(argument_list
)argument_list
)call
)binary_operator
(binary_operator
(identifier_dAf_dQf) identifier_dAf_dQf
(call
(attribute
(identifier_dSf_dVa) identifier_dSf_dVa
(identifier_imag) identifier_imag
)attribute
(argument_list
)argument_list
)call
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dAt_dVa) identifier_dAt_dVa
(binary_operator
(binary_operator
(identifier_dAt_dPt) identifier_dAt_dPt
(call
(attribute
(identifier_dSt_dVa) identifier_dSt_dVa
(identifier_real) identifier_real
)attribute
(argument_list
)argument_list
)call
)binary_operator
(binary_operator
(identifier_dAt_dQt) identifier_dAt_dQt
(call
(attribute
(identifier_dSt_dVa) identifier_dSt_dVa
(identifier_imag) identifier_imag
)attribute
(argument_list
)argument_list
)call
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dAf_dVm) identifier_dAf_dVm
(binary_operator
(binary_operator
(identifier_dAf_dPf) identifier_dAf_dPf
(call
(attribute
(identifier_dSf_dVm) identifier_dSf_dVm
(identifier_real) identifier_real
)attribute
(argument_list
)argument_list
)call
)binary_operator
(binary_operator
(identifier_dAf_dQf) identifier_dAf_dQf
(call
(attribute
(identifier_dSf_dVm) identifier_dSf_dVm
(identifier_imag) identifier_imag
)attribute
(argument_list
)argument_list
)call
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dAt_dVm) identifier_dAt_dVm
(binary_operator
(binary_operator
(identifier_dAt_dPt) identifier_dAt_dPt
(call
(attribute
(identifier_dSt_dVm) identifier_dSt_dVm
(identifier_real) identifier_real
)attribute
(argument_list
)argument_list
)call
)binary_operator
(binary_operator
(identifier_dAt_dQt) identifier_dAt_dQt
(call
(attribute
(identifier_dSt_dVm) identifier_dSt_dVm
(identifier_imag) identifier_imag
)attribute
(argument_list
)argument_list
)call
)binary_operator
)binary_operator
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_dAf_dVa) identifier_dAf_dVa
(identifier_dAf_dVm) identifier_dAf_dVm
(identifier_dAt_dVa) identifier_dAt_dVa
(identifier_dAt_dVm) identifier_dAt_dVm
)expression_list
)return_statement
)block
)function_definition
)module | Partial derivatives of squared flow magnitudes w.r.t voltage.
Computes partial derivatives of apparent power w.r.t active and
reactive power flows. Partial derivative must equal 1 for lines
with zero flow to avoid division by zero errors (1 comes from
L'Hopital). |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_url) identifier_url
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_url) identifier_url
)attribute
(identifier_path) identifier_path
)binary_operator
)keyword_argument
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(attribute
(identifier_self) identifier_self
(identifier_timeout) identifier_timeout
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_r) identifier_r
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_r) identifier_r
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Perform GET request |
(module
(function_definition
(function_name_block) function_name_block
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(parenthesized_expression
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_is_actinoid) identifier_is_actinoid
)attribute
(attribute
(identifier_self) identifier_self
(identifier_is_lanthanoid) identifier_is_lanthanoid
)attribute
)boolean_operator
)parenthesized_expression
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_Z) identifier_Z
)attribute
(list
(integer_71) integer_71
(integer_103) integer_103
)list
)comparison_operator
)boolean_operator
(block
(return_statement
(string_"f") string_"f"
)return_statement
)block
(elif_clause
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_is_actinoid) identifier_is_actinoid
)attribute
(attribute
(identifier_self) identifier_self
(identifier_is_lanthanoid) identifier_is_lanthanoid
)attribute
)boolean_operator
(block
(return_statement
(string_"d") string_"d"
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_group) identifier_group
)attribute
(list
(integer_1) integer_1
(integer_2) integer_2
)list
)comparison_operator
(block
(return_statement
(string_"s") string_"s"
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_group) identifier_group
)attribute
(call
(identifier_range) identifier_range
(argument_list
(integer_13) integer_13
(integer_19) integer_19
)argument_list
)call
)comparison_operator
(block
(return_statement
(string_"p") string_"p"
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_group) identifier_group
)attribute
(call
(identifier_range) identifier_range
(argument_list
(integer_3) integer_3
(integer_13) integer_13
)argument_list
)call
)comparison_operator
(block
(return_statement
(string_"d") string_"d"
)return_statement
)block
)elif_clause
)if_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"unable to determine block") string_"unable to determine block"
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Return the block character "s,p,d,f" |
(module
(function_definition
(function_name_detect_timezone) function_name_detect_timezone
(parameters
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_sys) identifier_sys
(identifier_platform) identifier_platform
)attribute
(string_"win32") string_"win32"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_tz) identifier_tz
(call
(identifier__detect_timezone_windows) identifier__detect_timezone_windows
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_tz) identifier_tz
(None) None
)comparison_operator
(block
(return_statement
(identifier_tz) identifier_tz
)return_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_tz) identifier_tz
(call
(identifier__detect_timezone_environ) identifier__detect_timezone_environ
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_tz) identifier_tz
(None) None
)comparison_operator
(block
(return_statement
(identifier_tz) identifier_tz
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_tz) identifier_tz
(call
(identifier__detect_timezone_etc_timezone) identifier__detect_timezone_etc_timezone
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_tz) identifier_tz
(None) None
)comparison_operator
(block
(return_statement
(identifier_tz) identifier_tz
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_tz) identifier_tz
(call
(identifier__detect_timezone_etc_localtime) identifier__detect_timezone_etc_localtime
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_tz) identifier_tz
(None) None
)comparison_operator
(block
(return_statement
(identifier_tz) identifier_tz
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(concatenated_string
(string_"Had to fall back to worst detection method (the 'PHP' ") string_"Had to fall back to worst detection method (the 'PHP' "
(string_"method).") string_"method)."
)concatenated_string
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_tz) identifier_tz
(call
(identifier__detect_timezone_php) identifier__detect_timezone_php
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_tz) identifier_tz
(None) None
)comparison_operator
(block
(return_statement
(identifier_tz) identifier_tz
)return_statement
)block
)if_statement
(raise_statement
(call
(attribute
(identifier_pytz) identifier_pytz
(identifier_UnknownTimeZoneError) identifier_UnknownTimeZoneError
)attribute
(argument_list
(string_"Unable to detect your timezone!") string_"Unable to detect your timezone!"
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Try and detect the timezone that Python is currently running in.
We have a bunch of different methods for trying to figure this out (listed in
order they are attempted).
* In windows, use win32timezone.TimeZoneInfo.local()
* Try TZ environment variable.
* Try and find /etc/timezone file (with timezone name).
* Try and find /etc/localtime file (with timezone data).
* Try and match a TZ to the current dst/offset/shortname.
Returns:
The detected local timezone as a tzinfo object
Raises:
pytz.UnknownTimeZoneError: If it was unable to detect a timezone. |
(module
(function_definition
(function_name_loadImageData) function_name_loadImageData
(parameters
(identifier_filename) identifier_filename
(default_parameter
(identifier_spacing) identifier_spacing
(tuple
)tuple
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_colors) identifier_colors
(identifier_printc) identifier_printc
)attribute
(argument_list
(string_"~noentry File not found:") string_"~noentry File not found:"
(identifier_filename) identifier_filename
(keyword_argument
(identifier_c) identifier_c
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_".tif") string_".tif"
(call
(attribute
(identifier_filename) identifier_filename
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_reader) identifier_reader
(call
(attribute
(identifier_vtk) identifier_vtk
(identifier_vtkTIFFReader) identifier_vtkTIFFReader
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(string_".slc") string_".slc"
(call
(attribute
(identifier_filename) identifier_filename
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_reader) identifier_reader
(call
(attribute
(identifier_vtk) identifier_vtk
(identifier_vtkSLCReader) identifier_vtkSLCReader
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_reader) identifier_reader
(identifier_CanReadFile) identifier_CanReadFile
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_colors) identifier_colors
(identifier_printc) identifier_printc
)attribute
(argument_list
(binary_operator
(string_"~prohibited Sorry bad slc file ") string_"~prohibited Sorry bad slc file "
(identifier_filename) identifier_filename
)binary_operator
(keyword_argument
(identifier_c) identifier_c
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_exit) identifier_exit
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(string_".vti") string_".vti"
(call
(attribute
(identifier_filename) identifier_filename
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_reader) identifier_reader
(call
(attribute
(identifier_vtk) identifier_vtk
(identifier_vtkXMLImageDataReader) identifier_vtkXMLImageDataReader
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(string_".mhd") string_".mhd"
(call
(attribute
(identifier_filename) identifier_filename
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_reader) identifier_reader
(call
(attribute
(identifier_vtk) identifier_vtk
(identifier_vtkMetaImageReader) identifier_vtkMetaImageReader
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_reader) identifier_reader
(identifier_SetFileName) identifier_SetFileName
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_reader) identifier_reader
(identifier_Update) identifier_Update
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_image) identifier_image
(call
(attribute
(identifier_reader) identifier_reader
(identifier_GetOutput) identifier_GetOutput
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_spacing) identifier_spacing
)argument_list
)call
(integer_3) integer_3
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_image) identifier_image
(identifier_SetSpacing) identifier_SetSpacing
)attribute
(argument_list
(subscript
(identifier_spacing) identifier_spacing
(integer_0) integer_0
)subscript
(subscript
(identifier_spacing) identifier_spacing
(integer_1) integer_1
)subscript
(subscript
(identifier_spacing) identifier_spacing
(integer_2) integer_2
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_image) identifier_image
)return_statement
)block
)function_definition
)module | Read and return a ``vtkImageData`` object from file. |
(module
(function_definition
(function_name_get_avatar_metadata) function_name_get_avatar_metadata
(parameters
(identifier_self) identifier_self
(identifier_jid) identifier_jid
(keyword_separator
)keyword_separator
(default_parameter
(identifier_require_fresh) identifier_require_fresh
(False) False
)default_parameter
(default_parameter
(identifier_disable_pep) identifier_disable_pep
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_require_fresh) identifier_require_fresh
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__metadata_cache) identifier__metadata_cache
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_jid) identifier_jid
(None) None
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(try_statement
(block
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__metadata_cache) identifier__metadata_cache
)attribute
(identifier_jid) identifier_jid
)subscript
)return_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_disable_pep) identifier_disable_pep
(block
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(list
)list
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier__get_avatar_metadata_pep) identifier__get_avatar_metadata_pep
)attribute
(argument_list
(identifier_jid) identifier_jid
)argument_list
)call
)yield
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(boolean_operator
(not_operator
(identifier_metadata) identifier_metadata
)not_operator
(comparison_operator
(identifier_jid) identifier_jid
(attribute
(identifier_self) identifier_self
(identifier__has_pep_avatar) identifier__has_pep_avatar
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier__get_avatar_metadata_vcard) identifier__get_avatar_metadata_vcard
)attribute
(argument_list
(identifier_jid) identifier_jid
)argument_list
)call
)yield
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_jid) identifier_jid
(attribute
(identifier_self) identifier_self
(identifier__metadata_cache) identifier__metadata_cache
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__update_metadata) identifier__update_metadata
)attribute
(argument_list
(identifier_jid) identifier_jid
(identifier_metadata) identifier_metadata
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__metadata_cache) identifier__metadata_cache
)attribute
(identifier_jid) identifier_jid
)subscript
)return_statement
)block
)function_definition
)module | Retrieve a list of avatar descriptors.
:param jid: the JID for which to retrieve the avatar metadata.
:type jid: :class:`aioxmpp.JID`
:param require_fresh: if true, do not return results from the
avatar metadata chache, but retrieve them again from the server.
:type require_fresh: :class:`bool`
:param disable_pep: if true, do not try to retrieve the avatar
via pep, only try the vCard fallback. This usually only
useful when querying avatars via MUC, where the PEP request
would be invalid (since it would be for a full jid).
:type disable_pep: :class:`bool`
:returns: an iterable of avatar descriptors.
:rtype: a :class:`list` of
:class:`~aioxmpp.avatar.service.AbstractAvatarDescriptor`
instances
Returning an empty list means that the avatar not set.
We mask a :class:`XMPPCancelError` in the case that it is
``feature-not-implemented`` or ``item-not-found`` and return
an empty list of avatar descriptors, since this is
semantically equivalent to not having an avatar.
.. note::
It is usually an error to get the avatar for a full jid,
normally, the avatar is set for the bare jid of a user. The
exception are vCard avatars over MUC, where the IQ requests
for the vCard may be translated by the MUC server. It is
recommended to use the `disable_pep` option in that case. |
(module
(function_definition
(function_name_is_unclaimed) function_name_is_unclaimed
(parameters
(identifier_work) identifier_work
)parameters
(block
(if_statement
(subscript
(identifier_work) identifier_work
(string_'is_completed') string_'is_completed'
)subscript
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cutoff_time) identifier_cutoff_time
(binary_operator
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
(identifier_MAX_PROCESSING_TIME) identifier_MAX_PROCESSING_TIME
)binary_operator
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(subscript
(identifier_work) identifier_work
(string_'claimed_worker_id') string_'claimed_worker_id'
)subscript
(comparison_operator
(subscript
(identifier_work) identifier_work
(string_'claimed_worker_start_time') string_'claimed_worker_start_time'
)subscript
(None) None
)comparison_operator
)boolean_operator
(comparison_operator
(subscript
(identifier_work) identifier_work
(string_'claimed_worker_start_time') string_'claimed_worker_start_time'
)subscript
(identifier_cutoff_time) identifier_cutoff_time
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Returns True if work piece is unclaimed. |
(module
(function_definition
(function_name_smart_reroot) function_name_smart_reroot
(parameters
(identifier_treefile) identifier_treefile
(identifier_outgroupfile) identifier_outgroupfile
(identifier_outfile) identifier_outfile
(default_parameter
(identifier_format) identifier_format
(integer_0) integer_0
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_tree) identifier_tree
(call
(identifier_Tree) identifier_Tree
(argument_list
(identifier_treefile) identifier_treefile
(keyword_argument
(identifier_format) identifier_format
(identifier_format) identifier_format
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_leaves) identifier_leaves
(subscript
(list_comprehension
(attribute
(identifier_t) identifier_t
(identifier_name) identifier_name
)attribute
(for_in_clause
(identifier_t) identifier_t
(call
(attribute
(identifier_tree) identifier_tree
(identifier_get_leaves) identifier_get_leaves
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
(slice
(colon) colon
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_outgroup) identifier_outgroup
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_o) identifier_o
(call
(identifier_must_open) identifier_must_open
(argument_list
(identifier_outgroupfile) identifier_outgroupfile
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_o) identifier_o
(call
(attribute
(identifier_o) identifier_o
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_leaf) identifier_leaf
(identifier_leaves) identifier_leaves
(block
(if_statement
(comparison_operator
(subscript
(identifier_leaf) identifier_leaf
(slice
(colon) colon
(call
(identifier_len) identifier_len
(argument_list
(identifier_o) identifier_o
)argument_list
)call
)slice
)subscript
(identifier_o) identifier_o
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_outgroup) identifier_outgroup
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_leaf) identifier_leaf
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_outgroup) identifier_outgroup
(block
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(if_statement
(not_operator
(identifier_outgroup) identifier_outgroup
)not_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_"Outgroup not found. Tree {0} cannot be rerooted.") string_"Outgroup not found. Tree {0} cannot be rerooted."
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_treefile) identifier_treefile
)argument_list
)call
(keyword_argument
(identifier_file) identifier_file
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_treefile) identifier_treefile
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_tree) identifier_tree
(identifier_set_outgroup) identifier_set_outgroup
)attribute
(argument_list
(call
(attribute
(identifier_tree) identifier_tree
(identifier_get_common_ancestor) identifier_get_common_ancestor
)attribute
(argument_list
(list_splat
(identifier_outgroup) identifier_outgroup
)list_splat
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(assert_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_outgroup) identifier_outgroup
)argument_list
)call
(identifier_list) identifier_list
)comparison_operator
)assert_statement
(expression_statement
(assignment
(identifier_outgroup) identifier_outgroup
(subscript
(identifier_outgroup) identifier_outgroup
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_tree) identifier_tree
(identifier_set_outgroup) identifier_set_outgroup
)attribute
(argument_list
(identifier_outgroup) identifier_outgroup
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(identifier_tree) identifier_tree
(identifier_write) identifier_write
)attribute
(argument_list
(keyword_argument
(identifier_outfile) identifier_outfile
(identifier_outfile) identifier_outfile
)keyword_argument
(keyword_argument
(identifier_format) identifier_format
(identifier_format) identifier_format
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_"Rerooted tree printed to {0}") string_"Rerooted tree printed to {0}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_outfile) identifier_outfile
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_outfile) identifier_outfile
)return_statement
)block
)function_definition
)module | simple function to reroot Newick format tree using ete2
Tree reading format options see here:
http://packages.python.org/ete2/tutorial/tutorial_trees.html#reading-newick-trees |
(module
(function_definition
(function_name_start_cluster_server) function_name_start_cluster_server
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_num_gpus) identifier_num_gpus
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_rdma) identifier_rdma
(False) False
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_TFNode) identifier_TFNode
(identifier_start_cluster_server) identifier_start_cluster_server
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_num_gpus) identifier_num_gpus
(identifier_rdma) identifier_rdma
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convenience function to access ``TFNode.start_cluster_server`` directly from this object instance. |
(module
(function_definition
(function_name_tkvrsn) function_name_tkvrsn
(parameters
(identifier_item) identifier_item
)parameters
(block
(expression_statement
(assignment
(identifier_item) identifier_item
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_stringToCharP) identifier_stringToCharP
)attribute
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_toPythonString) identifier_toPythonString
)attribute
(argument_list
(call
(attribute
(identifier_libspice) identifier_libspice
(identifier_tkvrsn_c) identifier_tkvrsn_c
)attribute
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Given an item such as the Toolkit or an entry point name, return
the latest version string.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/tkvrsn_c.html
:param item: Item for which a version string is desired.
:type item: str
:return: the latest version string.
:rtype: str |
(module
(function_definition
(function_name__load_image) function_name__load_image
(parameters
(identifier_cls) identifier_cls
(identifier_rkey) identifier_rkey
)parameters
(block
(expression_statement
(assignment
(identifier_v) identifier_v
(subscript
(attribute
(identifier_cls) identifier_cls
(identifier__stock) identifier__stock
)attribute
(identifier_rkey) identifier_rkey
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_img) identifier_img
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_itype) identifier_itype
(subscript
(identifier_v) identifier_v
(string_'type') string_'type'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_itype) identifier_itype
(tuple
(string_'stock') string_'stock'
(string_'data') string_'data'
)tuple
)comparison_operator
(block
(expression_statement
(assignment
(identifier_img) identifier_img
(call
(attribute
(identifier_tk) identifier_tk
(identifier_PhotoImage) identifier_PhotoImage
)attribute
(argument_list
(keyword_argument
(identifier_format) identifier_format
(subscript
(identifier_v) identifier_v
(string_'format') string_'format'
)subscript
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(subscript
(identifier_v) identifier_v
(string_'data') string_'data'
)subscript
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_itype) identifier_itype
(string_'created') string_'created'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_img) identifier_img
(subscript
(identifier_v) identifier_v
(string_'image') string_'image'
)subscript
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_img) identifier_img
(call
(attribute
(identifier_tk) identifier_tk
(identifier_PhotoImage) identifier_PhotoImage
)attribute
(argument_list
(keyword_argument
(identifier_file) identifier_file
(subscript
(identifier_v) identifier_v
(string_'filename') string_'filename'
)subscript
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_cls) identifier_cls
(identifier__cached) identifier__cached
)attribute
(identifier_rkey) identifier_rkey
)subscript
(identifier_img) identifier_img
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_'Loaded resource %s.') string_'Loaded resource %s.'
(identifier_rkey) identifier_rkey
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(identifier_img) identifier_img
)return_statement
)block
)function_definition
)module | Load image from file or return the cached instance. |
(module
(function_definition
(function_name_get_data) function_name_get_data
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(string_"Return one SNMP response list for all status OIDs, and one list for all metric OIDs.") string_"Return one SNMP response list for all status OIDs, and one list for all metric OIDs."
)expression_statement
(expression_statement
(assignment
(identifier_alarm_oids) identifier_alarm_oids
(list_comprehension
(call
(attribute
(identifier_netsnmp) identifier_netsnmp
(identifier_Varbind) identifier_Varbind
)attribute
(argument_list
(subscript
(subscript
(identifier_status_mib) identifier_status_mib
(identifier_alarm_id) identifier_alarm_id
)subscript
(string_'oid') string_'oid'
)subscript
)argument_list
)call
(for_in_clause
(identifier_alarm_id) identifier_alarm_id
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_models) identifier_models
)attribute
(attribute
(identifier_self) identifier_self
(identifier_modem_type) identifier_modem_type
)attribute
)subscript
(string_'alarms') string_'alarms'
)subscript
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_metric_oids) identifier_metric_oids
(list_comprehension
(call
(attribute
(identifier_netsnmp) identifier_netsnmp
(identifier_Varbind) identifier_Varbind
)attribute
(argument_list
(subscript
(subscript
(identifier_metric_mib) identifier_metric_mib
(identifier_metric_id) identifier_metric_id
)subscript
(string_'oid') string_'oid'
)subscript
)argument_list
)call
(for_in_clause
(identifier_metric_id) identifier_metric_id
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_models) identifier_models
)attribute
(attribute
(identifier_self) identifier_self
(identifier_modem_type) identifier_modem_type
)attribute
)subscript
(string_'metrics') string_'metrics'
)subscript
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_snmp_session) identifier_snmp_session
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(identifier_netsnmp) identifier_netsnmp
(identifier_VarList) identifier_VarList
)attribute
(argument_list
(list_splat
(binary_operator
(identifier_alarm_oids) identifier_alarm_oids
(identifier_metric_oids) identifier_metric_oids
)binary_operator
)list_splat
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(tuple
(subscript
(identifier_response) identifier_response
(slice
(integer_0) integer_0
(colon) colon
(call
(identifier_len) identifier_len
(argument_list
(identifier_alarm_oids) identifier_alarm_oids
)argument_list
)call
)slice
)subscript
(subscript
(identifier_response) identifier_response
(slice
(call
(identifier_len) identifier_len
(argument_list
(identifier_alarm_oids) identifier_alarm_oids
)argument_list
)call
(colon) colon
)slice
)subscript
)tuple
)return_statement
)block
)function_definition
)module | Return one SNMP response list for all status OIDs, and one list for all metric OIDs. |
(module
(function_definition
(function_name_get_bookmarks) function_name_get_bookmarks
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_folder) identifier_folder
(string_'unread') string_'unread'
)default_parameter
(default_parameter
(identifier_limit) identifier_limit
(integer_25) integer_25
)default_parameter
(default_parameter
(identifier_have) identifier_have
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(string_'bookmarks/list') string_'bookmarks/list'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'folder_id') string_'folder_id'
(identifier_folder) identifier_folder
)pair
(pair
(string_'limit') string_'limit'
(identifier_limit) identifier_limit
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_have) identifier_have
(block
(expression_statement
(assignment
(identifier_have_concat) identifier_have_concat
(call
(attribute
(string_',') string_','
(identifier_join) identifier_join
)attribute
(generator_expression
(call
(identifier_str) identifier_str
(argument_list
(identifier_id_) identifier_id_
)argument_list
)call
(for_in_clause
(identifier_id_) identifier_id_
(identifier_have) identifier_have
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'have') string_'have'
)subscript
(identifier_have_concat) identifier_have_concat
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_params) identifier_params
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_items) identifier_items
(subscript
(identifier_response) identifier_response
(string_'data') string_'data'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bookmarks) identifier_bookmarks
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_items) identifier_items
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_item) identifier_item
(identifier_get) identifier_get
)attribute
(argument_list
(string_'type') string_'type'
)argument_list
)call
(string_'error') string_'error'
)comparison_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(call
(attribute
(identifier_item) identifier_item
(identifier_get) identifier_get
)attribute
(argument_list
(string_'message') string_'message'
)argument_list
)call
)argument_list
)call
)raise_statement
)block
(elif_clause
(comparison_operator
(call
(attribute
(identifier_item) identifier_item
(identifier_get) identifier_get
)attribute
(argument_list
(string_'type') string_'type'
)argument_list
)call
(string_'bookmark') string_'bookmark'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_bookmarks) identifier_bookmarks
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_Bookmark) identifier_Bookmark
(argument_list
(identifier_self) identifier_self
(dictionary_splat
(identifier_item) identifier_item
)dictionary_splat
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_bookmarks) identifier_bookmarks
)return_statement
)block
)function_definition
)module | Return list of user's bookmarks.
:param str folder: Optional. Possible values are unread (default),
starred, archive, or a folder_id value.
:param int limit: Optional. A number between 1 and 500, default 25.
:param list have: Optional. A list of IDs to exclude from results
:returns: List of user's bookmarks
:rtype: list |
(module
(function_definition
(function_name_exists) function_name_exists
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
(default_parameter
(identifier_keyid) identifier_keyid
(None) None
)default_parameter
(default_parameter
(identifier_profile) identifier_profile
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_conn) identifier_conn
(call
(identifier__get_conn) identifier__get_conn
(argument_list
(keyword_argument
(identifier_region) identifier_region
(identifier_region) identifier_region
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
(keyword_argument
(identifier_keyid) identifier_keyid
(identifier_keyid) identifier_keyid
)keyword_argument
(keyword_argument
(identifier_profile) identifier_profile
(identifier_profile) identifier_profile
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_exists) identifier_exists
(call
(attribute
(identifier_conn) identifier_conn
(identifier_describe_stacks) identifier_describe_stacks
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Stack %s exists.') string_'Stack %s exists.'
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(except_clause
(as_pattern
(identifier_BotoServerError) identifier_BotoServerError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'boto_cfn.exists raised an exception') string_'boto_cfn.exists raised an exception'
(keyword_argument
(identifier_exc_info) identifier_exc_info
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Check to see if a stack exists.
CLI Example:
.. code-block:: bash
salt myminion boto_cfn.exists mystack region=us-east-1 |
(module
(function_definition
(function_name_build_groups) function_name_build_groups
(parameters
(identifier_self) identifier_self
(identifier_tokens) identifier_tokens
)parameters
(block
(expression_statement
(assignment
(identifier_groups) identifier_groups
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_token) identifier_token
(identifier_tokens) identifier_tokens
(block
(expression_statement
(assignment
(identifier_match_type) identifier_match_type
(conditional_expression
(attribute
(identifier_MatchType) identifier_MatchType
(identifier_start) identifier_start
)attribute
(attribute
(identifier_token) identifier_token
(identifier_group_end) identifier_group_end
)attribute
(attribute
(identifier_MatchType) identifier_MatchType
(identifier_single) identifier_single
)attribute
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_groups) identifier_groups
(attribute
(identifier_token) identifier_token
(identifier_group_start) identifier_group_start
)attribute
)subscript
(tuple
(identifier_token) identifier_token
(identifier_match_type) identifier_match_type
)tuple
)assignment
)expression_statement
(if_statement
(attribute
(identifier_token) identifier_token
(identifier_group_end) identifier_group_end
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_groups) identifier_groups
(attribute
(identifier_token) identifier_token
(identifier_group_end) identifier_group_end
)attribute
)subscript
(tuple
(identifier_token) identifier_token
(attribute
(identifier_MatchType) identifier_MatchType
(identifier_end) identifier_end
)attribute
)tuple
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_groups) identifier_groups
)return_statement
)block
)function_definition
)module | Build dict of groups from list of tokens |
(module
(function_definition
(function_name_find_files) function_name_find_files
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_all_files) identifier_all_files
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__invoke) identifier__invoke
)attribute
(argument_list
(string_'locate') string_'locate'
(string_'-I') string_'-I'
(string_'.') string_'.'
)argument_list
)call
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_from_root) identifier_from_root
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_relpath) identifier_relpath
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_location) identifier_location
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_find_root) identifier_find_root
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_loc_rel_paths) identifier_loc_rel_paths
(list_comprehension
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_relpath) identifier_relpath
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_from_root) identifier_from_root
)argument_list
)call
(for_in_clause
(identifier_path) identifier_path
(identifier_all_files) identifier_all_files
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(identifier_loc_rel_paths) identifier_loc_rel_paths
)return_statement
)block
)function_definition
)module | Find versioned files in self.location |
(module
(function_definition
(function_name_parse_magmoms) function_name_parse_magmoms
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_lattice) identifier_lattice
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_lattice) identifier_lattice
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_'Magmoms given in terms of crystal axes in magCIF spec.') string_'Magmoms given in terms of crystal axes in magCIF spec.'
)argument_list
)call
)raise_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_magmoms) identifier_magmoms
(dictionary_comprehension
(pair
(subscript
(subscript
(identifier_data) identifier_data
(string_"_atom_site_moment_label") string_"_atom_site_moment_label"
)subscript
(identifier_i) identifier_i
)subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(list
(call
(identifier_str2float) identifier_str2float
(argument_list
(subscript
(subscript
(identifier_data) identifier_data
(string_"_atom_site_moment_crystalaxis_x") string_"_atom_site_moment_crystalaxis_x"
)subscript
(identifier_i) identifier_i
)subscript
)argument_list
)call
(call
(identifier_str2float) identifier_str2float
(argument_list
(subscript
(subscript
(identifier_data) identifier_data
(string_"_atom_site_moment_crystalaxis_y") string_"_atom_site_moment_crystalaxis_y"
)subscript
(identifier_i) identifier_i
)subscript
)argument_list
)call
(call
(identifier_str2float) identifier_str2float
(argument_list
(subscript
(subscript
(identifier_data) identifier_data
(string_"_atom_site_moment_crystalaxis_z") string_"_atom_site_moment_crystalaxis_z"
)subscript
(identifier_i) identifier_i
)subscript
)argument_list
)call
)list
)argument_list
)call
)pair
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_data) identifier_data
(string_"_atom_site_moment_label") string_"_atom_site_moment_label"
)subscript
)argument_list
)call
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
)block
(except_clause
(tuple
(identifier_ValueError) identifier_ValueError
(identifier_KeyError) identifier_KeyError
)tuple
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_magmoms) identifier_magmoms
)return_statement
)block
)function_definition
)module | Parse atomic magnetic moments from data dictionary |
(module
(function_definition
(function_name_data_url) function_name_data_url
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_image_format) identifier_image_format
(string_'png') string_'png'
)default_parameter
(default_parameter
(identifier_add_quiet_zone) identifier_add_quiet_zone
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_memory_file) identifier_memory_file
(call
(attribute
(identifier_io) identifier_io
(identifier_BytesIO) identifier_BytesIO
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pil_image) identifier_pil_image
(call
(attribute
(identifier_self) identifier_self
(identifier_image) identifier_image
)attribute
(argument_list
(keyword_argument
(identifier_add_quiet_zone) identifier_add_quiet_zone
(identifier_add_quiet_zone) identifier_add_quiet_zone
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_image_format) identifier_image_format
(string_'png') string_'png'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_pil_image) identifier_pil_image
(identifier_save) identifier_save
)attribute
(argument_list
(identifier_memory_file) identifier_memory_file
(keyword_argument
(identifier_format) identifier_format
(string_'png') string_'png'
)keyword_argument
(keyword_argument
(identifier_compress_level) identifier_compress_level
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_image_format) identifier_image_format
(string_'bmp') string_'bmp'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_pil_image) identifier_pil_image
(identifier_save) identifier_save
)attribute
(argument_list
(identifier_memory_file) identifier_memory_file
(keyword_argument
(identifier_format) identifier_format
(string_'bmp') string_'bmp'
)keyword_argument
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(attribute
(identifier_Code128) identifier_Code128
(identifier_UnknownFormatError) identifier_UnknownFormatError
)attribute
(argument_list
(string_'Only png and bmp are supported.') string_'Only png and bmp are supported.'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_base64_image) identifier_base64_image
(call
(attribute
(call
(attribute
(identifier_base64) identifier_base64
(identifier_b64encode) identifier_b64encode
)attribute
(argument_list
(call
(attribute
(identifier_memory_file) identifier_memory_file
(identifier_getvalue) identifier_getvalue
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'ascii') string_'ascii'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data_url) identifier_data_url
(call
(attribute
(string_'data:image/{format};base64,{base64_data}') string_'data:image/{format};base64,{base64_data}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_format) identifier_format
(identifier_image_format) identifier_image_format
)keyword_argument
(keyword_argument
(identifier_base64_data) identifier_base64_data
(identifier_base64_image) identifier_base64_image
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_data_url) identifier_data_url
)return_statement
)block
)function_definition
)module | Get a data URL representing the barcode.
>>> barcode = Code128('Hello!', charset='B')
>>> barcode.data_url() # doctest: +ELLIPSIS
'data:image/png;base64,...'
:param image_format: Either 'png' or 'bmp'.
:param add_quiet_zone: Add a 10 white pixels on either side of the barcode.
:raises: Code128.UnknownFormatError
:raises: Code128.MissingDependencyError
:rtype: str
:returns: A data URL with the barcode as an image. |
(module
(function_definition
(function_name_app_score) function_name_app_score
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_precisions) identifier_precisions
(identifier_pct_pred_pos) identifier_pct_pred_pos
(identifier_taus) identifier_taus
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_precision_pct_pred_pos_curve) identifier_precision_pct_pred_pos_curve
)attribute
(argument_list
(keyword_argument
(identifier_interval) identifier_interval
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_app) identifier_app
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_total) identifier_total
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_k) identifier_k
(call
(identifier_range) identifier_range
(argument_list
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_precisions) identifier_precisions
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_cur_prec) identifier_cur_prec
(subscript
(identifier_precisions) identifier_precisions
(identifier_k) identifier_k
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cur_pp) identifier_cur_pp
(subscript
(identifier_pct_pred_pos) identifier_pct_pred_pos
(identifier_k) identifier_k
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cur_tau) identifier_cur_tau
(subscript
(identifier_taus) identifier_taus
(identifier_k) identifier_k
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_next_prec) identifier_next_prec
(subscript
(identifier_precisions) identifier_precisions
(binary_operator
(identifier_k) identifier_k
(integer_1) integer_1
)binary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_next_pp) identifier_next_pp
(subscript
(identifier_pct_pred_pos) identifier_pct_pred_pos
(binary_operator
(identifier_k) identifier_k
(integer_1) integer_1
)binary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_next_tau) identifier_next_tau
(subscript
(identifier_taus) identifier_taus
(binary_operator
(identifier_k) identifier_k
(integer_1) integer_1
)binary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mid_prec) identifier_mid_prec
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_cur_prec) identifier_cur_prec
(identifier_next_prec) identifier_next_prec
)binary_operator
)parenthesized_expression
(float_2.0) float_2.0
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_width_pp) identifier_width_pp
(call
(attribute
(identifier_np) identifier_np
(identifier_abs) identifier_abs
)attribute
(argument_list
(binary_operator
(identifier_next_pp) identifier_next_pp
(identifier_cur_pp) identifier_cur_pp
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_app) identifier_app
(binary_operator
(identifier_mid_prec) identifier_mid_prec
(identifier_width_pp) identifier_width_pp
)binary_operator
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_total) identifier_total
(identifier_width_pp) identifier_width_pp
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_app) identifier_app
)return_statement
)block
)function_definition
)module | Computes the area under the app curve. |
(module
(function_definition
(function_name_load_all_yamls) function_name_load_all_yamls
(parameters
(identifier_cls) identifier_cls
(identifier_directories) identifier_directories
)parameters
(block
(expression_statement
(assignment
(identifier_yaml_files) identifier_yaml_files
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_loaded_yamls) identifier_loaded_yamls
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_d) identifier_d
(identifier_directories) identifier_directories
(block
(if_statement
(boolean_operator
(call
(attribute
(identifier_d) identifier_d
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'/home') string_'/home'
)argument_list
)call
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)expression_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_dirname) identifier_dirname
(identifier_subdirs) identifier_subdirs
(identifier_files) identifier_files
)pattern_list
(call
(attribute
(identifier_os) identifier_os
(identifier_walk) identifier_walk
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_yaml_files) identifier_yaml_files
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_dirname) identifier_dirname
(identifier_x) identifier_x
)argument_list
)call
)lambda
(call
(identifier_filter) identifier_filter
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(attribute
(identifier_x) identifier_x
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.yaml') string_'.yaml'
)argument_list
)call
)lambda
(identifier_files) identifier_files
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(for_statement
(identifier_f) identifier_f
(identifier_yaml_files) identifier_yaml_files
(block
(expression_statement
(assignment
(subscript
(identifier_loaded_yamls) identifier_loaded_yamls
(identifier_f) identifier_f
)subscript
(call
(attribute
(identifier_cls) identifier_cls
(identifier_load_yaml_by_path) identifier_load_yaml_by_path
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_loaded_yamls) identifier_loaded_yamls
)return_statement
)block
)function_definition
)module | Loads yaml files from all given directories.
Args:
directories: list of directories to search
Returns:
dict of {fullpath: loaded_yaml_structure} |
(module
(function_definition
(function_name_is_client) function_name_is_client
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(boolean_operator
(parenthesized_expression
(boolean_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_args) identifier_args
)attribute
(identifier_client) identifier_client
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_args) identifier_args
)attribute
(identifier_browser) identifier_browser
)attribute
)boolean_operator
)parenthesized_expression
(not_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_args) identifier_args
)attribute
(identifier_server) identifier_server
)attribute
)not_operator
)boolean_operator
)return_statement
)block
)function_definition
)module | Return True if Glances is running in client mode. |
(module
(function_definition
(function_name_count_lines) function_name_count_lines
(parameters
(identifier_fname) identifier_fname
(default_parameter
(identifier_mode) identifier_mode
(string_'rU') string_'rU'
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_fname) identifier_fname
(identifier_mode) identifier_mode
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_l) identifier_l
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_f) identifier_f
)argument_list
)call
(block
(pass_statement
)pass_statement
)block
)for_statement
)block
)with_statement
(return_statement
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)return_statement
)block
)function_definition
)module | Count the number of lines in a file
Only faster way would be to utilize multiple processor cores to perform parallel reads.
http://stackoverflow.com/q/845058/623735 |
(module
(function_definition
(function_name_timeit) function_name_timeit
(parameters
(identifier_method) identifier_method
)parameters
(block
(import_statement
(dotted_name
(identifier_datetime) identifier_datetime
)dotted_name
)import_statement
(decorated_definition
(decorator
(call
(attribute
(identifier_functools) identifier_functools
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier_method) identifier_method
)argument_list
)call
)decorator
(function_definition
(function_name_timed_method) function_name_timed_method
(parameters
(identifier_self) identifier_self
(identifier_rinput) identifier_rinput
)parameters
(block
(expression_statement
(assignment
(identifier_time_start) identifier_time_start
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_utcnow) identifier_utcnow
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_method) identifier_method
(argument_list
(identifier_self) identifier_self
(identifier_rinput) identifier_rinput
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_time_end) identifier_time_end
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_utcnow) identifier_utcnow
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_time_it) identifier_time_it
)attribute
(argument_list
(identifier_time_start) identifier_time_start
(identifier_time_end) identifier_time_end
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(string_'total time measured') string_'total time measured'
)argument_list
)call
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_timed_method) identifier_timed_method
)return_statement
)block
)function_definition
)module | Decorator to measure the time used by the recipe |
(module
(function_definition
(function_name_all) function_name_all
(parameters
)parameters
(block
(return_statement
(list_comprehension
(identifier_goal) identifier_goal
(for_in_clause
(pattern_list
(identifier__) identifier__
(identifier_goal) identifier_goal
)pattern_list
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(attribute
(identifier_Goal) identifier_Goal
(identifier__goal_by_name) identifier__goal_by_name
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)for_in_clause
(if_clause
(attribute
(identifier_goal) identifier_goal
(identifier_active) identifier_active
)attribute
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Returns all active registered goals, sorted alphabetically by name.
:API: public |
(module
(function_definition
(function_name_url_to_image) function_name_url_to_image
(parameters
(identifier_url) identifier_url
(default_parameter
(identifier_flag) identifier_flag
(attribute
(identifier_cv2) identifier_cv2
(identifier_IMREAD_COLOR) identifier_IMREAD_COLOR
)attribute
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(identifier_urlopen) identifier_urlopen
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_image) identifier_image
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(call
(identifier_bytearray) identifier_bytearray
(argument_list
(call
(attribute
(identifier_resp) identifier_resp
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(keyword_argument
(identifier_dtype) identifier_dtype
(string_"uint8") string_"uint8"
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_image) identifier_image
(call
(attribute
(identifier_cv2) identifier_cv2
(identifier_imdecode) identifier_imdecode
)attribute
(argument_list
(identifier_image) identifier_image
(identifier_flag) identifier_flag
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_image) identifier_image
)return_statement
)block
)function_definition
)module | download the image, convert it to a NumPy array, and then read
it into OpenCV format |
(module
(function_definition
(function_name__reset_suffix_links) function_name__reset_suffix_links
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__suffix_links_set) identifier__suffix_links_set
)attribute
(False) False
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_current) identifier_current
(identifier__parent) identifier__parent
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_dfs) identifier_dfs
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_current) identifier_current
(identifier_suffix) identifier_suffix
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_current) identifier_current
(identifier_dict_suffix) identifier_dict_suffix
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_current) identifier_current
(identifier_longest_prefix) identifier_longest_prefix
)attribute
(None) None
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Reset all suffix links in all nodes in this trie. |
(module
(function_definition
(function_name_edit_dataset_metadata) function_name_edit_dataset_metadata
(parameters
(identifier_request) identifier_request
(default_parameter
(identifier_dataset_id) identifier_dataset_id
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_request) identifier_request
(identifier_method) identifier_method
)attribute
(string_'POST') string_'POST'
)comparison_operator
(block
(return_statement
(call
(identifier_add_dataset) identifier_add_dataset
(argument_list
(identifier_request) identifier_request
(identifier_dataset_id) identifier_dataset_id
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_request) identifier_request
(identifier_method) identifier_method
)attribute
(string_'GET') string_'GET'
)comparison_operator
(block
(if_statement
(identifier_dataset_id) identifier_dataset_id
(block
(expression_statement
(assignment
(identifier_metadata_form) identifier_metadata_form
(call
(identifier_DatasetUploadForm) identifier_DatasetUploadForm
(argument_list
(keyword_argument
(identifier_instance) identifier_instance
(call
(identifier_get_object_or_404) identifier_get_object_or_404
(argument_list
(identifier_Dataset) identifier_Dataset
(keyword_argument
(identifier_pk) identifier_pk
(identifier_dataset_id) identifier_dataset_id
)keyword_argument
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_metadata_form) identifier_metadata_form
(call
(identifier_DatasetUploadForm) identifier_DatasetUploadForm
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_render) identifier_render
(argument_list
(identifier_request) identifier_request
(string_'datafreezer/upload.html') string_'datafreezer/upload.html'
(dictionary
(pair
(string_'fileUploadForm') string_'fileUploadForm'
(identifier_metadata_form) identifier_metadata_form
)pair
)dictionary
)argument_list
)call
)return_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Renders a template to upload or edit a Dataset.
Most of the heavy lifting is done by add_dataset(...). |
(module
(function_definition
(function_name_rssi_bars) function_name_rssi_bars
(parameters
(identifier_self) identifier_self
)parameters
(type
(identifier_int) identifier_int
)type
(block
(expression_statement
(assignment
(identifier_rssi_db) identifier_rssi_db
(attribute
(identifier_self) identifier_self
(identifier_rssi_db) identifier_rssi_db
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_rssi_db) identifier_rssi_db
(integer_45) integer_45
)comparison_operator
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_rssi_db) identifier_rssi_db
(integer_60) integer_60
)comparison_operator
(block
(return_statement
(integer_1) integer_1
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_rssi_db) identifier_rssi_db
(integer_75) integer_75
)comparison_operator
(block
(return_statement
(integer_2) integer_2
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_rssi_db) identifier_rssi_db
(integer_90) integer_90
)comparison_operator
(block
(return_statement
(integer_3) integer_3
)return_statement
)block
)elif_clause
)if_statement
(return_statement
(integer_4) integer_4
)return_statement
)block
)function_definition
)module | Received Signal Strength Indication, from 0 to 4 bars. |
(module
(function_definition
(function_name_add_feature) function_name_add_feature
(parameters
(identifier_feature) identifier_feature
(default_parameter
(identifier_package) identifier_package
(None) None
)default_parameter
(default_parameter
(identifier_source) identifier_source
(None) None
)default_parameter
(default_parameter
(identifier_limit_access) identifier_limit_access
(False) False
)default_parameter
(default_parameter
(identifier_enable_parent) identifier_enable_parent
(False) False
)default_parameter
(default_parameter
(identifier_image) identifier_image
(None) None
)default_parameter
(default_parameter
(identifier_restart) identifier_restart
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(list
(string_'DISM') string_'DISM'
(string_'/Quiet') string_'/Quiet'
(conditional_expression
(call
(attribute
(string_'/Image:{0}') string_'/Image:{0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_image) identifier_image
)argument_list
)call
(identifier_image) identifier_image
(string_'/Online') string_'/Online'
)conditional_expression
(string_'/Enable-Feature') string_'/Enable-Feature'
(call
(attribute
(string_'/FeatureName:{0}') string_'/FeatureName:{0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_feature) identifier_feature
)argument_list
)call
)list
)assignment
)expression_statement
(if_statement
(identifier_package) identifier_package
(block
(expression_statement
(call
(attribute
(identifier_cmd) identifier_cmd
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_'/PackageName:{0}') string_'/PackageName:{0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_package) identifier_package
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_source) identifier_source
(block
(expression_statement
(call
(attribute
(identifier_cmd) identifier_cmd
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_'/Source:{0}') string_'/Source:{0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_source) identifier_source
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_limit_access) identifier_limit_access
(block
(expression_statement
(call
(attribute
(identifier_cmd) identifier_cmd
(identifier_append) identifier_append
)attribute
(argument_list
(string_'/LimitAccess') string_'/LimitAccess'
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_enable_parent) identifier_enable_parent
(block
(expression_statement
(call
(attribute
(identifier_cmd) identifier_cmd
(identifier_append) identifier_append
)attribute
(argument_list
(string_'/All') string_'/All'
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_restart) identifier_restart
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_cmd) identifier_cmd
(identifier_append) identifier_append
)attribute
(argument_list
(string_'/NoRestart') string_'/NoRestart'
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'cmd.run_all') string_'cmd.run_all'
)subscript
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
)return_statement
)block
)function_definition
)module | Install a feature using DISM
Args:
feature (str): The feature to install
package (Optional[str]): The parent package for the feature. You do not
have to specify the package if it is the Windows Foundation Package.
Otherwise, use package to specify the parent package of the feature
source (Optional[str]): The optional source of the capability. Default
is set by group policy and can be Windows Update
limit_access (Optional[bool]): Prevent DISM from contacting Windows
Update for the source package
enable_parent (Optional[bool]): True will enable all parent features of
the specified feature
image (Optional[str]): The path to the root directory of an offline
Windows image. If `None` is passed, the running operating system is
targeted. Default is None.
restart (Optional[bool]): Reboot the machine if required by the install
Returns:
dict: A dictionary containing the results of the command
CLI Example:
.. code-block:: bash
salt '*' dism.add_feature NetFx3 |
(module
(function_definition
(function_name_sort) function_name_sort
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(default_parameter
(identifier_reverse) identifier_reverse
(False) False
)default_parameter
(default_parameter
(identifier_none_greater) identifier_none_greater
(False) False
)default_parameter
)parameters
(block
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_0) integer_0
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_table) identifier_table
)attribute
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_min) identifier_min
(identifier_i) identifier_i
)assignment
)expression_statement
(for_statement
(identifier_j) identifier_j
(call
(identifier_range) identifier_range
(argument_list
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_table) identifier_table
)attribute
)argument_list
)call
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_internal) identifier_internal
(identifier_is_first_lessor) identifier_is_first_lessor
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_table) identifier_table
)attribute
(identifier_j) identifier_j
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_table) identifier_table
)attribute
(identifier_min) identifier_min
)subscript
(identifier_key) identifier_key
(keyword_argument
(identifier_none_greater) identifier_none_greater
(identifier_none_greater) identifier_none_greater
)keyword_argument
(keyword_argument
(identifier_reverse) identifier_reverse
(identifier_reverse) identifier_reverse
)keyword_argument
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_min) identifier_min
(identifier_j) identifier_j
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_i) identifier_i
(identifier_min) identifier_min
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_table) identifier_table
)attribute
(identifier_i) identifier_i
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_table) identifier_table
)attribute
(identifier_min) identifier_min
)subscript
)pattern_list
(expression_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_table) identifier_table
)attribute
(identifier_min) identifier_min
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_table) identifier_table
)attribute
(identifier_i) identifier_i
)subscript
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_index_track) identifier_index_track
)attribute
(identifier_i) identifier_i
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_index_track) identifier_index_track
)attribute
(identifier_min) identifier_min
)subscript
)pattern_list
(expression_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_index_track) identifier_index_track
)attribute
(identifier_min) identifier_min
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_index_track) identifier_index_track
)attribute
(identifier_i) identifier_i
)subscript
)expression_list
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Sort the list in the order of the dictionary key.
Example of use:
>>> test = [
... {"name": "Jim", "age": 18, "income": 93000, "wigs": 68 },
... {"name": "Larry", "age": 18, "wigs": [3, 2, 9]},
... {"name": "Joe", "age": 20, "income": 15000, "wigs": [1, 2, 3]},
... {"name": "Bill", "age": 19, "income": 29000 },
... ]
>>> print PLOD(test).sort("name").returnString()
[
{age: 19, income: 29000, name: 'Bill' , wigs: None },
{age: 18, income: 93000, name: 'Jim' , wigs: 68},
{age: 20, income: 15000, name: 'Joe' , wigs: [1, 2, 3]},
{age: 18, income: None , name: 'Larry', wigs: [3, 2, 9]}
]
>>> print PLOD(test).sort("income").returnString()
[
{age: 18, income: None , name: 'Larry', wigs: [3, 2, 9]},
{age: 20, income: 15000, name: 'Joe' , wigs: [1, 2, 3]},
{age: 19, income: 29000, name: 'Bill' , wigs: None },
{age: 18, income: 93000, name: 'Jim' , wigs: 68}
]
>>> print PLOD(test).sort(["age", "income"]).returnString()
[
{age: 18, income: None , name: 'Larry', wigs: [3, 2, 9]},
{age: 18, income: 93000, name: 'Jim' , wigs: 68},
{age: 19, income: 29000, name: 'Bill' , wigs: None },
{age: 20, income: 15000, name: 'Joe' , wigs: [1, 2, 3]}
]
.. versionadded:: 0.0.2
:param key:
A dictionary key (or a list of keys) that should be the
basis of the sorting.
:param reverse:
Defaults to False. If True, then list is sorted decrementally.
:param none_greater:
Defaults to False. If True, then entries missing the key/value
pair are considered be of greater value than the non-missing values.
:returns: self |
(module
(function_definition
(function_name_gammaVectorRDD) function_name_gammaVectorRDD
(parameters
(identifier_sc) identifier_sc
(identifier_shape) identifier_shape
(identifier_scale) identifier_scale
(identifier_numRows) identifier_numRows
(identifier_numCols) identifier_numCols
(default_parameter
(identifier_numPartitions) identifier_numPartitions
(None) None
)default_parameter
(default_parameter
(identifier_seed) identifier_seed
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_callMLlibFunc) identifier_callMLlibFunc
(argument_list
(string_"gammaVectorRDD") string_"gammaVectorRDD"
(attribute
(identifier_sc) identifier_sc
(identifier__jsc) identifier__jsc
)attribute
(call
(identifier_float) identifier_float
(argument_list
(identifier_shape) identifier_shape
)argument_list
)call
(call
(identifier_float) identifier_float
(argument_list
(identifier_scale) identifier_scale
)argument_list
)call
(identifier_numRows) identifier_numRows
(identifier_numCols) identifier_numCols
(identifier_numPartitions) identifier_numPartitions
(identifier_seed) identifier_seed
)argument_list
)call
)return_statement
)block
)function_definition
)module | Generates an RDD comprised of vectors containing i.i.d. samples drawn
from the Gamma distribution.
:param sc: SparkContext used to create the RDD.
:param shape: Shape (> 0) of the Gamma distribution
:param scale: Scale (> 0) of the Gamma distribution
:param numRows: Number of Vectors in the RDD.
:param numCols: Number of elements in each Vector.
:param numPartitions: Number of partitions in the RDD (default: `sc.defaultParallelism`).
:param seed: Random seed (default: a random long integer).
:return: RDD of Vector with vectors containing i.i.d. samples ~ Gamma(shape, scale).
>>> import numpy as np
>>> from math import sqrt
>>> shape = 1.0
>>> scale = 2.0
>>> expMean = shape * scale
>>> expStd = sqrt(shape * scale * scale)
>>> mat = np.matrix(RandomRDDs.gammaVectorRDD(sc, shape, scale, 100, 100, seed=1).collect())
>>> mat.shape
(100, 100)
>>> abs(mat.mean() - expMean) < 0.1
True
>>> abs(mat.std() - expStd) < 0.1
True |
(module
(function_definition
(function_name_unicode_urlencode) function_name_unicode_urlencode
(parameters
(identifier_query) identifier_query
(default_parameter
(identifier_doseq) identifier_doseq
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_pairs) identifier_pairs
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_query) identifier_query
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_list) identifier_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(identifier_to_utf8) identifier_to_utf8
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_to_utf8) identifier_to_utf8
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_pairs) identifier_pairs
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(call
(identifier_to_utf8) identifier_to_utf8
(argument_list
(identifier_key) identifier_key
)argument_list
)call
(identifier_value) identifier_value
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_encoded_query) identifier_encoded_query
(call
(identifier_dict) identifier_dict
(argument_list
(identifier_pairs) identifier_pairs
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_xx) identifier_xx
(call
(identifier_urlencode) identifier_urlencode
(argument_list
(identifier_encoded_query) identifier_encoded_query
(identifier_doseq) identifier_doseq
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_xx) identifier_xx
)return_statement
)block
)function_definition
)module | Custom wrapper around urlencode to support unicode
Python urlencode doesn't handle unicode well so we need to convert to
bytestrings before using it:
http://stackoverflow.com/questions/6480723/urllib-urlencode-doesnt-like-unicode-values-how-about-this-workaround |
(module
(function_definition
(function_name_append_sint32) function_name_append_sint32
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_zigzag_value) identifier_zigzag_value
(call
(attribute
(identifier_wire_format) identifier_wire_format
(identifier_zig_zag_encode) identifier_zig_zag_encode
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__stream) identifier__stream
)attribute
(identifier_append_var_uint32) identifier_append_var_uint32
)attribute
(argument_list
(identifier_zigzag_value) identifier_zigzag_value
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Appends a 32-bit integer to our buffer, zigzag-encoded and then
varint-encoded. |
(module
(function_definition
(function_name_describe_cache_parameters) function_name_describe_cache_parameters
(parameters
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_conn) identifier_conn
(None) None
)default_parameter
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
(default_parameter
(identifier_keyid) identifier_keyid
(None) None
)default_parameter
(default_parameter
(identifier_profile) identifier_profile
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_args) identifier_args
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_generic) identifier_generic
(call
(identifier__describe_resource) identifier__describe_resource
(argument_list
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_name_param) identifier_name_param
(string_'CacheParameterGroupName') string_'CacheParameterGroupName'
)keyword_argument
(keyword_argument
(identifier_res_type) identifier_res_type
(string_'cache_parameter') string_'cache_parameter'
)keyword_argument
(keyword_argument
(identifier_info_node) identifier_info_node
(string_'Parameters') string_'Parameters'
)keyword_argument
(keyword_argument
(identifier_conn) identifier_conn
(identifier_conn) identifier_conn
)keyword_argument
(keyword_argument
(identifier_region) identifier_region
(identifier_region) identifier_region
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
(keyword_argument
(identifier_keyid) identifier_keyid
(identifier_keyid) identifier_keyid
)keyword_argument
(keyword_argument
(identifier_profile) identifier_profile
(identifier_profile) identifier_profile
)keyword_argument
(dictionary_splat
(identifier_args) identifier_args
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_specific) identifier_specific
(call
(identifier__describe_resource) identifier__describe_resource
(argument_list
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_name_param) identifier_name_param
(string_'CacheParameterGroupName') string_'CacheParameterGroupName'
)keyword_argument
(keyword_argument
(identifier_res_type) identifier_res_type
(string_'cache_parameter') string_'cache_parameter'
)keyword_argument
(keyword_argument
(identifier_info_node) identifier_info_node
(string_'CacheNodeTypeSpecificParameters') string_'CacheNodeTypeSpecificParameters'
)keyword_argument
(keyword_argument
(identifier_conn) identifier_conn
(identifier_conn) identifier_conn
)keyword_argument
(keyword_argument
(identifier_region) identifier_region
(identifier_region) identifier_region
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
(keyword_argument
(identifier_keyid) identifier_keyid
(identifier_keyid) identifier_keyid
)keyword_argument
(keyword_argument
(identifier_profile) identifier_profile
(identifier_profile) identifier_profile
)keyword_argument
(dictionary_splat
(identifier_args) identifier_args
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(conditional_expression
(call
(attribute
(identifier_ret) identifier_ret
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'Parameters') string_'Parameters'
(identifier_generic) identifier_generic
)pair
)dictionary
)argument_list
)call
(identifier_generic) identifier_generic
(None) None
)conditional_expression
)expression_statement
(expression_statement
(conditional_expression
(call
(attribute
(identifier_ret) identifier_ret
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'CacheNodeTypeSpecificParameters') string_'CacheNodeTypeSpecificParameters'
(identifier_specific) identifier_specific
)pair
)dictionary
)argument_list
)call
(identifier_specific) identifier_specific
(None) None
)conditional_expression
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Returns the detailed parameter list for a particular cache parameter group.
name
The name of a specific cache parameter group to return details for.
CacheParameterGroupName
The name of a specific cache parameter group to return details for. Generally not
required, as `name` will be used if not provided.
Source
Optionally, limit the parameter types to return.
Valid values:
- user
- system
- engine-default
Example:
.. code-block:: bash
salt myminion boto3_elasticache.describe_cache_parameters name=myParamGroup Source=user |
(module
(function_definition
(function_name_fetch_data) function_name_fetch_data
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_choices) identifier_choices
(attribute
(identifier_self) identifier_self
(identifier_available_data) identifier_available_data
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_choices) identifier_choices
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_0) integer_0
(string_'All') string_'All'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_selected_data_type) identifier_selected_data_type
(call
(attribute
(identifier_utils) identifier_utils
(identifier_select_item) identifier_select_item
)attribute
(argument_list
(identifier_choices) identifier_choices
(string_'Please select what data to fetch:') string_'Please select what data to fetch:'
(string_'Available data:') string_'Available data:'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_selected_data_type) identifier_selected_data_type
(string_'All') string_'All'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_selected_data_type) identifier_selected_data_type
(call
(attribute
(string_',') string_','
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_available_data) identifier_available_data
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_utils) identifier_utils
(identifier_pending_message) identifier_pending_message
)attribute
(argument_list
(string_'Performing fetch data task...') string_'Performing fetch data task...'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_fetch_data_task) identifier_fetch_data_task
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_data) identifier_data
)attribute
(argument_list
(keyword_argument
(identifier_account) identifier_account
(attribute
(identifier_self) identifier_self
(identifier_account) identifier_account
)attribute
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_selected_data_type) identifier_selected_data_type
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_fetch_data_task) identifier_fetch_data_task
(identifier_wait_for_result) identifier_wait_for_result
)attribute
(argument_list
(keyword_argument
(identifier_timeout) identifier_timeout
(attribute
(identifier_self) identifier_self
(identifier_timeout) identifier_timeout
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_fetch_data_result) identifier_fetch_data_result
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(attribute
(identifier_fetch_data_task) identifier_fetch_data_task
(identifier_result) identifier_result
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_task_id) identifier_task_id
(attribute
(identifier_fetch_data_task) identifier_fetch_data_task
(identifier_uuid) identifier_uuid
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_filepath) identifier_filepath
(call
(attribute
(identifier_utils) identifier_utils
(identifier_get_or_create_filepath) identifier_get_or_create_filepath
)attribute
(argument_list
(binary_operator
(string_'%s.json') string_'%s.json'
(identifier_task_id) identifier_task_id
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_filepath) identifier_filepath
(string_'w') string_'w'
)argument_list
)call
(as_pattern_target
(identifier_out) identifier_out
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_dump) identifier_dump
)attribute
(argument_list
(identifier_fetch_data_result) identifier_fetch_data_result
(identifier_out) identifier_out
(keyword_argument
(identifier_indent) identifier_indent
(integer_2) integer_2
)keyword_argument
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(call
(attribute
(identifier_utils) identifier_utils
(identifier_info_message) identifier_info_message
)attribute
(argument_list
(binary_operator
(string_'Fetch data successful. Output file: %s.json') string_'Fetch data successful. Output file: %s.json'
(identifier_task_id) identifier_task_id
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(identifier_fetch_data_result) identifier_fetch_data_result
)return_statement
)block
)function_definition
)module | Prompt for a data type choice and execute the `fetch_data` task.
The results are saved to a file in json format. |
(module
(function_definition
(function_name_Unequal) function_name_Unequal
(parameters
(list_splat_pattern
(identifier_xs) identifier_xs
)list_splat_pattern
(default_parameter
(identifier_simplify) identifier_simplify
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_xs) identifier_xs
(list_comprehension
(attribute
(call
(attribute
(identifier_Expression) identifier_Expression
(identifier_box) identifier_box
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(identifier_node) identifier_node
)attribute
(for_in_clause
(identifier_x) identifier_x
(identifier_xs) identifier_xs
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_y) identifier_y
(call
(attribute
(identifier_exprnode) identifier_exprnode
(identifier_not_) identifier_not_
)attribute
(argument_list
(call
(attribute
(identifier_exprnode) identifier_exprnode
(identifier_eq) identifier_eq
)attribute
(argument_list
(list_splat
(identifier_xs) identifier_xs
)list_splat
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_simplify) identifier_simplify
(block
(expression_statement
(assignment
(identifier_y) identifier_y
(call
(attribute
(identifier_y) identifier_y
(identifier_simplify) identifier_simplify
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier__expr) identifier__expr
(argument_list
(identifier_y) identifier_y
)argument_list
)call
)return_statement
)block
)function_definition
)module | Expression inequality operator
If *simplify* is ``True``, return a simplified expression. |
(module
(function_definition
(function_name__encode_dict_as_string) function_name__encode_dict_as_string
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"{\n") string_"{\n"
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(binary_operator
(string_"{") string_"{"
(subscript
(identifier_value) identifier_value
(slice
(integer_2) integer_2
(colon) colon
)slice
)subscript
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_"\n}") string_"\n}"
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(binary_operator
(subscript
(identifier_value) identifier_value
(slice
(colon) colon
(unary_operator
(integer_2) integer_2
)unary_operator
)slice
)subscript
(string_"}") string_"}"
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_value) identifier_value
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'"') string_'"'
(string_'\\"') string_'\\"'
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"\\n") string_"\\n"
(string_"\\\\n") string_"\\\\n"
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"\n") string_"\n"
(string_"\\n") string_"\\n"
)argument_list
)call
)return_statement
)block
)function_definition
)module | Takes the PLIST string of a dict, and returns the same string
encoded such that it can be included in the string representation
of a GSNode. |
(module
(function_definition
(function_name_handle_login_failure) function_name_handle_login_failure
(parameters
(identifier_self) identifier_self
(identifier_provider) identifier_provider
(identifier_reason) identifier_reason
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_error) identifier_error
)attribute
(argument_list
(call
(attribute
(string_'Authenication Failure: {0}') string_'Authenication Failure: {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_reason) identifier_reason
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_messages) identifier_messages
(identifier_error) identifier_error
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(string_'Authenication Failed. Please try again') string_'Authenication Failed. Please try again'
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_redirect) identifier_redirect
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_error_redirect) identifier_get_error_redirect
)attribute
(argument_list
(identifier_provider) identifier_provider
(identifier_reason) identifier_reason
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Message user and redirect on error. |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(identifier_cont) identifier_cont
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_max_time) identifier_max_time
)attribute
(call
(identifier_max) identifier_max
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_max_time) identifier_max_time
)attribute
(attribute
(identifier_cont) identifier_cont
(identifier_max_time) identifier_max_time
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_cont) identifier_cont
(identifier_items) identifier_items
)attribute
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_items) identifier_items
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_items) identifier_items
)attribute
(attribute
(identifier_cont) identifier_cont
(identifier_items) identifier_items
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_items) identifier_items
)attribute
(identifier_update) identifier_update
)attribute
(argument_list
(attribute
(identifier_cont) identifier_cont
(identifier_items) identifier_items
)attribute
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)function_definition
)module | Update this instance with the contextualize passed. |
(module
(function_definition
(function_name_reverse_iter) function_name_reverse_iter
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_start) identifier_start
(None) None
)default_parameter
(default_parameter
(identifier_stop) identifier_stop
(None) None
)default_parameter
(default_parameter
(identifier_count) identifier_count
(integer_2000) integer_2000
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_cursor) identifier_cursor
(string_'0') string_'0'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_count) identifier_count
(integer_1000) integer_1000
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_start) identifier_start
(conditional_expression
(identifier_start) identifier_start
(comparison_operator
(identifier_start) identifier_start
(None) None
)comparison_operator
(parenthesized_expression
(binary_operator
(unary_operator
(integer_1) integer_1
)unary_operator
(identifier_count) identifier_count
)binary_operator
)parenthesized_expression
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stop) identifier_stop
(conditional_expression
(identifier_stop) identifier_stop
(comparison_operator
(identifier_stop) identifier_stop
(None) None
)comparison_operator
(unary_operator
(integer_1) integer_1
)unary_operator
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__loads) identifier__loads
(attribute
(identifier_self) identifier_self
(identifier__loads) identifier__loads
)attribute
)assignment
)expression_statement
(while_statement
(identifier_cursor) identifier_cursor
(block
(expression_statement
(assignment
(identifier_cursor) identifier_cursor
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_lrange) identifier_lrange
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_key_prefix) identifier_key_prefix
)attribute
(identifier_start) identifier_start
(identifier_stop) identifier_stop
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_x) identifier_x
(call
(identifier_reversed) identifier_reversed
(argument_list
(boolean_operator
(identifier_cursor) identifier_cursor
(list
)list
)boolean_operator
)argument_list
)call
(block
(expression_statement
(yield
(call
(identifier__loads) identifier__loads
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
(expression_statement
(augmented_assignment
(identifier_start) identifier_start
(identifier_count) identifier_count
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_stop) identifier_stop
(identifier_count) identifier_count
)augmented_assignment
)expression_statement
)block
)while_statement
)block
)function_definition
)module | -> yields items of the list in reverse |
(module
(function_definition
(function_name_make_query) function_name_make_query
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kw) identifier_kw
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_query) identifier_query
(call
(attribute
(identifier_kw) identifier_kw
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_"query") string_"query"
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_query) identifier_query
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_request_query) identifier_get_request_query
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_query) identifier_query
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_custom_query) identifier_get_custom_query
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_query) identifier_query
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_keyword_query) identifier_get_keyword_query
)attribute
(argument_list
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_sort_on) identifier_sort_on
(identifier_sort_order) identifier_sort_order
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_sort_spec) identifier_get_sort_spec
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_sort_on) identifier_sort_on
(comparison_operator
(string_"sort_on") string_"sort_on"
(identifier_query) identifier_query
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_query) identifier_query
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_"sort_on") string_"sort_on"
(identifier_sort_on) identifier_sort_on
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_sort_order) identifier_sort_order
(comparison_operator
(string_"sort_order") string_"sort_order"
(identifier_query) identifier_query
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_query) identifier_query
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_"sort_order") string_"sort_order"
(identifier_sort_order) identifier_sort_order
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_"make_query:: query={} | catalog={}") string_"make_query:: query={} | catalog={}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_query) identifier_query
(attribute
(identifier_self) identifier_self
(identifier_catalog) identifier_catalog
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_query) identifier_query
)return_statement
)block
)function_definition
)module | create a query suitable for the catalog |
(module
(function_definition
(function_name_load_config_from_cli_arguments) function_name_load_config_from_cli_arguments
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__load_config_from_cli_argument) identifier__load_config_from_cli_argument
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(string_'handlers_package') string_'handlers_package'
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__load_config_from_cli_argument) identifier__load_config_from_cli_argument
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(string_'auth') string_'auth'
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__load_config_from_cli_argument) identifier__load_config_from_cli_argument
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(string_'user_stream') string_'user_stream'
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__load_config_from_cli_argument) identifier__load_config_from_cli_argument
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(string_'min_seconds_between_errors') string_'min_seconds_between_errors'
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__load_config_from_cli_argument) identifier__load_config_from_cli_argument
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(string_'sleep_seconds_on_consecutive_errors') string_'sleep_seconds_on_consecutive_errors'
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Get config values of passed in CLI options.
:param dict kwargs: CLI options |
(module
(function_definition
(function_name__save) function_name__save
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_content) identifier_content
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(identifier_self) identifier_self
(identifier_clean_name) identifier_clean_name
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier__exists_with_etag) identifier__exists_with_etag
)attribute
(argument_list
(identifier_name) identifier_name
(identifier_content) identifier_content
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_content) identifier_content
(identifier_seek) identifier_seek
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_StaticCloudinaryStorage) identifier_StaticCloudinaryStorage
(identifier_self) identifier_self
)argument_list
)call
(identifier__save) identifier__save
)attribute
(argument_list
(identifier_name) identifier_name
(identifier_content) identifier_content
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__prepend_prefix) identifier__prepend_prefix
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)return_statement
)block
)function_definition
)module | Saves only when a file with a name and a content is not already uploaded to Cloudinary. |
(module
(function_definition
(function_name_list_clusters) function_name_list_clusters
(parameters
(default_parameter
(identifier_kwargs) identifier_kwargs
(None) None
)default_parameter
(default_parameter
(identifier_call) identifier_call
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_call) identifier_call
(string_'function') string_'function'
)comparison_operator
(block
(raise_statement
(call
(identifier_SaltCloudSystemExit) identifier_SaltCloudSystemExit
(argument_list
(concatenated_string
(string_'The list_clusters function must be called with ') string_'The list_clusters function must be called with '
(string_'-f or --function.') string_'-f or --function.'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(dictionary
(pair
(string_'Clusters') string_'Clusters'
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_vmware) identifier_vmware
)attribute
(identifier_list_clusters) identifier_list_clusters
)attribute
(argument_list
(call
(identifier__get_si) identifier__get_si
(argument_list
)argument_list
)call
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)function_definition
)module | List all the clusters for this VMware environment
CLI Example:
.. code-block:: bash
salt-cloud -f list_clusters my-vmware-config |
(module
(function_definition
(function_name_numeric) function_name_numeric
(parameters
(identifier_self) identifier_self
(identifier_code) identifier_code
(default_parameter
(identifier_padded) identifier_padded
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_code) identifier_code
(call
(attribute
(identifier_self) identifier_self
(identifier_alpha2) identifier_alpha2
)attribute
(argument_list
(identifier_code) identifier_code
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_num) identifier_num
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_alt_codes) identifier_alt_codes
)attribute
(identifier_code) identifier_code
)subscript
(integer_1) integer_1
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
(if_statement
(identifier_padded) identifier_padded
(block
(return_statement
(binary_operator
(string_"%03d") string_"%03d"
(identifier_num) identifier_num
)binary_operator
)return_statement
)block
)if_statement
(return_statement
(identifier_num) identifier_num
)return_statement
)block
)function_definition
)module | Return the ISO 3166-1 numeric country code matching the provided
country code.
If no match is found, returns ``None``.
:param padded: Pass ``True`` to return a 0-padded three character
string, otherwise an integer will be returned. |
(module
(function_definition
(function_name_contracts_source_path_with_stem) function_name_contracts_source_path_with_stem
(parameters
(identifier_stem) identifier_stem
)parameters
(block
(return_statement
(dictionary
(pair
(string_'lib') string_'lib'
(call
(attribute
(identifier__BASE) identifier__BASE
(identifier_joinpath) identifier_joinpath
)attribute
(argument_list
(identifier_stem) identifier_stem
(string_'lib') string_'lib'
)argument_list
)call
)pair
(pair
(string_'raiden') string_'raiden'
(call
(attribute
(identifier__BASE) identifier__BASE
(identifier_joinpath) identifier_joinpath
)attribute
(argument_list
(identifier_stem) identifier_stem
(string_'raiden') string_'raiden'
)argument_list
)call
)pair
(pair
(string_'test') string_'test'
(call
(attribute
(identifier__BASE) identifier__BASE
(identifier_joinpath) identifier_joinpath
)attribute
(argument_list
(identifier_stem) identifier_stem
(string_'test') string_'test'
)argument_list
)call
)pair
(pair
(string_'services') string_'services'
(call
(attribute
(identifier__BASE) identifier__BASE
(identifier_joinpath) identifier_joinpath
)attribute
(argument_list
(identifier_stem) identifier_stem
(string_'services') string_'services'
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)function_definition
)module | The directory remapping given to the Solidity compiler. |
(module
(function_definition
(function_name_load_image) function_name_load_image
(parameters
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_image) identifier_image
(attribute
(call
(attribute
(attribute
(identifier_pyglet) identifier_pyglet
(identifier_image) identifier_image
)attribute
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
(identifier_texture) identifier_texture
)attribute
)assignment
)expression_statement
(expression_statement
(call
(identifier_verify_dimensions) identifier_verify_dimensions
(argument_list
(identifier_image) identifier_image
)argument_list
)call
)expression_statement
(return_statement
(identifier_image) identifier_image
)return_statement
)block
)function_definition
)module | Load an image |
(module
(function_definition
(function_name_get_mapping_format) function_name_get_mapping_format
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_format) identifier_format
)attribute
(attribute
(identifier_DataFormat) identifier_DataFormat
(identifier_json) identifier_json
)attribute
)comparison_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_format) identifier_format
)attribute
(attribute
(identifier_DataFormat) identifier_DataFormat
(identifier_avro) identifier_avro
)attribute
)comparison_operator
)boolean_operator
(block
(return_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier_format) identifier_format
)attribute
(identifier_name) identifier_name
)attribute
)return_statement
)block
(else_clause
(block
(return_statement
(attribute
(attribute
(identifier_DataFormat) identifier_DataFormat
(identifier_csv) identifier_csv
)attribute
(identifier_name) identifier_name
)attribute
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Dictating the corresponding mapping to the format. |
(module
(function_definition
(function_name_get_farthest_node) function_name_get_farthest_node
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_topology_only) identifier_topology_only
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_farthest_node) identifier_farthest_node
(identifier_farthest_dist) identifier_farthest_dist
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_farthest_leaf) identifier_get_farthest_leaf
)attribute
(argument_list
(keyword_argument
(identifier_topology_only) identifier_topology_only
(identifier_topology_only) identifier_topology_only
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prev) identifier_prev
(identifier_self) identifier_self
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cdist) identifier_cdist
(conditional_expression
(float_0.0) float_0.0
(identifier_topology_only) identifier_topology_only
(attribute
(identifier_prev) identifier_prev
(identifier_dist) identifier_dist
)attribute
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_current) identifier_current
(attribute
(identifier_prev) identifier_prev
(identifier_up) identifier_up
)attribute
)assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_current) identifier_current
(None) None
)comparison_operator
(block
(for_statement
(identifier_ch) identifier_ch
(attribute
(identifier_current) identifier_current
(identifier_children) identifier_children
)attribute
(block
(if_statement
(comparison_operator
(identifier_ch) identifier_ch
(identifier_prev) identifier_prev
)comparison_operator
(block
(if_statement
(not_operator
(call
(attribute
(identifier_ch) identifier_ch
(identifier_is_leaf) identifier_is_leaf
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_fnode) identifier_fnode
(identifier_fdist) identifier_fdist
)pattern_list
(call
(attribute
(identifier_ch) identifier_ch
(identifier_get_farthest_leaf) identifier_get_farthest_leaf
)attribute
(argument_list
(keyword_argument
(identifier_topology_only) identifier_topology_only
(identifier_topology_only) identifier_topology_only
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_fnode) identifier_fnode
(identifier_ch) identifier_ch
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fdist) identifier_fdist
(integer_0) integer_0
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_topology_only) identifier_topology_only
(block
(expression_statement
(augmented_assignment
(identifier_fdist) identifier_fdist
(float_1.0) float_1.0
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_fdist) identifier_fdist
(attribute
(identifier_ch) identifier_ch
(identifier_dist) identifier_dist
)attribute
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(binary_operator
(identifier_cdist) identifier_cdist
(identifier_fdist) identifier_fdist
)binary_operator
(identifier_farthest_dist) identifier_farthest_dist
)comparison_operator
(block
(expression_statement
(assignment
(identifier_farthest_dist) identifier_farthest_dist
(binary_operator
(identifier_cdist) identifier_cdist
(identifier_fdist) identifier_fdist
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_farthest_node) identifier_farthest_node
(identifier_fnode) identifier_fnode
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_prev) identifier_prev
(identifier_current) identifier_current
)assignment
)expression_statement
(if_statement
(identifier_topology_only) identifier_topology_only
(block
(expression_statement
(augmented_assignment
(identifier_cdist) identifier_cdist
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_cdist) identifier_cdist
(attribute
(identifier_prev) identifier_prev
(identifier_dist) identifier_dist
)attribute
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_current) identifier_current
(attribute
(identifier_prev) identifier_prev
(identifier_up) identifier_up
)attribute
)assignment
)expression_statement
)block
)while_statement
(return_statement
(expression_list
(identifier_farthest_node) identifier_farthest_node
(identifier_farthest_dist) identifier_farthest_dist
)expression_list
)return_statement
)block
)function_definition
)module | Returns the node's farthest descendant or ancestor node, and the
distance to it.
:argument False topology_only: If set to True, distance
between nodes will be referred to the number of nodes
between them. In other words, topological distance will be
used instead of branch length distances.
:return: A tuple containing the farthest node referred to the
current node and the distance to it. |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_context) identifier_context
(identifier_mip_config) identifier_mip_config
(identifier_email) identifier_email
(identifier_priority) identifier_priority
(identifier_dryrun) identifier_dryrun
(identifier_command) identifier_command
(identifier_start_with) identifier_start_with
(identifier_family) identifier_family
)parameters
(block
(expression_statement
(assignment
(identifier_mip_cli) identifier_mip_cli
(call
(identifier_MipCli) identifier_MipCli
(argument_list
(subscript
(attribute
(identifier_context) identifier_context
(identifier_obj) identifier_obj
)attribute
(string_'script') string_'script'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mip_config) identifier_mip_config
(boolean_operator
(identifier_mip_config) identifier_mip_config
(subscript
(attribute
(identifier_context) identifier_context
(identifier_obj) identifier_obj
)attribute
(string_'mip_config') string_'mip_config'
)subscript
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_email) identifier_email
(boolean_operator
(identifier_email) identifier_email
(call
(identifier_environ_email) identifier_environ_email
(argument_list
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_config) identifier_config
(identifier_mip_config) identifier_mip_config
)keyword_argument
(keyword_argument
(identifier_family) identifier_family
(identifier_family) identifier_family
)keyword_argument
(keyword_argument
(identifier_priority) identifier_priority
(identifier_priority) identifier_priority
)keyword_argument
(keyword_argument
(identifier_email) identifier_email
(identifier_email) identifier_email
)keyword_argument
(keyword_argument
(identifier_dryrun) identifier_dryrun
(identifier_dryrun) identifier_dryrun
)keyword_argument
(keyword_argument
(identifier_start_with) identifier_start_with
(identifier_start_with) identifier_start_with
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_command) identifier_command
(block
(expression_statement
(assignment
(identifier_mip_command) identifier_mip_command
(call
(attribute
(identifier_mip_cli) identifier_mip_cli
(identifier_build_command) identifier_build_command
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(call
(attribute
(string_' ') string_' '
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_mip_command) identifier_mip_command
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(try_statement
(block
(expression_statement
(call
(identifier_mip_cli) identifier_mip_cli
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(identifier_dryrun) identifier_dryrun
)not_operator
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_context) identifier_context
(identifier_obj) identifier_obj
)attribute
(string_'store') string_'store'
)subscript
(identifier_add_pending) identifier_add_pending
)attribute
(argument_list
(identifier_family) identifier_family
(keyword_argument
(identifier_email) identifier_email
(identifier_email) identifier_email
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
(except_clause
(as_pattern
(identifier_MipStartError) identifier_MipStartError
(as_pattern_target
(identifier_error) identifier_error
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(call
(attribute
(identifier_click) identifier_click
(identifier_style) identifier_style
)attribute
(argument_list
(attribute
(identifier_error) identifier_error
(identifier_message) identifier_message
)attribute
(keyword_argument
(identifier_fg) identifier_fg
(string_'red') string_'red'
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Start a new analysis. |
(module
(function_definition
(function_name_weed) function_name_weed
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier__ext) identifier__ext
(list_comprehension
(identifier_k) identifier_k
(for_in_clause
(identifier_k) identifier_k
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__dict) identifier__dict
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_k) identifier_k
(attribute
(identifier_self) identifier_self
(identifier_c_param) identifier_c_param
)attribute
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(for_statement
(identifier_k) identifier_k
(identifier__ext) identifier__ext
(block
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__dict) identifier__dict
)attribute
(identifier_k) identifier_k
)subscript
)delete_statement
)block
)for_statement
)block
)function_definition
)module | Get rid of key value pairs that are not standard |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__wake_up) identifier__wake_up
)attribute
(argument_list
)argument_list
)call
)expression_statement
(while_statement
(not_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__q) identifier__q
)attribute
(identifier_empty) identifier_empty
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__config) identifier__config
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__q) identifier__q
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)while_statement
(while_statement
(not_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_exit) identifier_exit
)attribute
(identifier_is_set) identifier_is_set
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_settings) identifier_settings
(call
(attribute
(identifier_self) identifier_self
(identifier__read_settings) identifier__read_settings
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_settings) identifier_settings
(string_'valid') string_'valid'
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier__valid_config) identifier__valid_config
)attribute
(argument_list
(identifier_settings) identifier_settings
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__cb) identifier__cb
)attribute
(argument_list
(identifier_settings) identifier_settings
)argument_list
)call
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cooldown) identifier_cooldown
)attribute
(identifier_is_set) identifier_is_set
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__log) identifier__log
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Cool down process triggered") string_"Cool down process triggered"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__config) identifier__config
)attribute
(string_'drum_motor') string_'drum_motor'
)subscript
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__config) identifier__config
)attribute
(string_'heater') string_'heater'
)subscript
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__config) identifier__config
)attribute
(string_'solenoid') string_'solenoid'
)subscript
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__config) identifier__config
)attribute
(string_'cooling_motor') string_'cooling_motor'
)subscript
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__config) identifier__config
)attribute
(string_'main_fan') string_'main_fan'
)subscript
(integer_10) integer_10
)assignment
)expression_statement
)block
)if_statement
(if_statement
(subscript
(identifier_settings) identifier_settings
(string_'valid') string_'valid'
)subscript
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__log) identifier__log
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Settings were valid, sending...") string_"Settings were valid, sending..."
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__send_config) identifier__send_config
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier__config) identifier__config
)attribute
(string_'interval') string_'interval'
)subscript
)argument_list
)call
)expression_statement
)block
)while_statement
)block
)function_definition
)module | Run the core loop of reading and writing configurations.
This is where all the roaster magic occurs. On the initial run, we
prime the roaster with some data to wake it up. Once awoke, we check
our shared queue to identify if the user has passed any updated
configuration. Once checked, start to read and write to the Hottop
roaster as long as the exit signal has not been set. All steps are
repeated after waiting for a specific time interval.
There are also specialized routines built into this function that are
controlled via events. These events are unique to the roasting process
and pre-configure the system with a configuration, so the user doesn't
need to do it themselves.
:returns: None |
(module
(function_definition
(function_name_simple_separated_format) function_name_simple_separated_format
(parameters
(identifier_separator) identifier_separator
)parameters
(block
(return_statement
(call
(identifier_TableFormat) identifier_TableFormat
(argument_list
(None) None
(None) None
(None) None
(None) None
(keyword_argument
(identifier_headerrow) identifier_headerrow
(call
(identifier_DataRow) identifier_DataRow
(argument_list
(string_'') string_''
(identifier_separator) identifier_separator
(string_'') string_''
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_datarow) identifier_datarow
(call
(identifier_DataRow) identifier_DataRow
(argument_list
(string_'') string_''
(identifier_separator) identifier_separator
(string_'') string_''
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_padding) identifier_padding
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_with_header_hide) identifier_with_header_hide
(None) None
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Construct a simple TableFormat with columns separated by a separator.
>>> tsv = simple_separated_format("\\t") ; \
tabulate([["foo", 1], ["spam", 23]], tablefmt=tsv) == 'foo \\t 1\\nspam\\t23'
True |
(module
(function_definition
(function_name__has_tag) function_name__has_tag
(parameters
(identifier_version) identifier_version
(default_parameter
(identifier_debug) identifier_debug
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(call
(attribute
(attribute
(identifier_sh) identifier_sh
(identifier_git) identifier_git
)attribute
(identifier_bake) identifier_bake
)attribute
(argument_list
(string_'show-ref') string_'show-ref'
(string_'--verify') string_'--verify'
(string_'--quiet') string_'--quiet'
(call
(attribute
(string_"refs/tags/{}") string_"refs/tags/{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_version) identifier_version
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_util) identifier_util
(identifier_run_command) identifier_run_command
)attribute
(argument_list
(identifier_cmd) identifier_cmd
(keyword_argument
(identifier_debug) identifier_debug
(identifier_debug) identifier_debug
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(except_clause
(attribute
(identifier_sh) identifier_sh
(identifier_ErrorReturnCode) identifier_ErrorReturnCode
)attribute
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Determine a version is a local git tag name or not.
:param version: A string containing the branch/tag/sha to be determined.
:param debug: An optional bool to toggle debug output.
:return: bool |
(module
(function_definition
(function_name_create_db) function_name_create_db
(parameters
(identifier_name) identifier_name
(dictionary_splat_pattern
(identifier_client_args) identifier_client_args
)dictionary_splat_pattern
)parameters
(block
(if_statement
(call
(identifier_db_exists) identifier_db_exists
(argument_list
(identifier_name) identifier_name
(dictionary_splat
(identifier_client_args) identifier_client_args
)dictionary_splat
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(string_'DB \'%s\' already exists') string_'DB \'%s\' already exists'
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_client) identifier_client
(call
(identifier__client) identifier__client
(argument_list
(dictionary_splat
(identifier_client_args) identifier_client_args
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_client) identifier_client
(identifier_create_database) identifier_create_database
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Create a database.
name
Name of the database to create.
CLI Example:
.. code-block:: bash
salt '*' influxdb.create_db <name> |
(module
(function_definition
(function_name__get_filesystem_path) function_name__get_filesystem_path
(parameters
(identifier_self) identifier_self
(identifier_url_path) identifier_url_path
(default_parameter
(identifier_basedir) identifier_basedir
(attribute
(identifier_settings) identifier_settings
(identifier_MEDIA_ROOT) identifier_MEDIA_ROOT
)attribute
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(identifier_url_path) identifier_url_path
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(attribute
(identifier_settings) identifier_settings
(identifier_MEDIA_URL) identifier_MEDIA_URL
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_url_path) identifier_url_path
(subscript
(identifier_url_path) identifier_url_path
(slice
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_settings) identifier_settings
(identifier_MEDIA_URL) identifier_MEDIA_URL
)attribute
)argument_list
)call
(colon) colon
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_normpath) identifier_normpath
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_basedir) identifier_basedir
(call
(identifier_url2pathname) identifier_url2pathname
(argument_list
(identifier_url_path) identifier_url_path
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Makes a filesystem path from the specified URL path |
(module
(function_definition
(function_name__write_plain_json) function_name__write_plain_json
(parameters
(identifier_file_path) identifier_file_path
(identifier_js) identifier_js
)parameters
(block
(if_statement
(call
(attribute
(identifier_file_path) identifier_file_path
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.bz2') string_'.bz2'
)argument_list
)call
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_bz2) identifier_bz2
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_file_path) identifier_file_path
(string_'wt') string_'wt'
(keyword_argument
(identifier_encoding) identifier_encoding
(identifier__default_encoding) identifier__default_encoding
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_dump) identifier_dump
)attribute
(argument_list
(identifier_js) identifier_js
(identifier_f) identifier_f
(keyword_argument
(identifier_indent) identifier_indent
(integer_2) integer_2
)keyword_argument
(keyword_argument
(identifier_ensure_ascii) identifier_ensure_ascii
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)with_statement
)block
(else_clause
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_file_path) identifier_file_path
(string_'w') string_'w'
(keyword_argument
(identifier_encoding) identifier_encoding
(identifier__default_encoding) identifier__default_encoding
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_dump) identifier_dump
)attribute
(argument_list
(identifier_js) identifier_js
(identifier_f) identifier_f
(keyword_argument
(identifier_indent) identifier_indent
(integer_2) integer_2
)keyword_argument
(keyword_argument
(identifier_ensure_ascii) identifier_ensure_ascii
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Write information to a JSON file
This makes sure files are created with the proper encoding and consistent indenting
Parameters
----------
file_path : str
Full path to the file to write to. It will be overwritten if it exists
js : dict
JSON information to write |
(module
(function_definition
(function_name_GetCompressedStreamTypeIndicators) function_name_GetCompressedStreamTypeIndicators
(parameters
(identifier_cls) identifier_cls
(identifier_path_spec) identifier_path_spec
(default_parameter
(identifier_resolver_context) identifier_resolver_context
(None) None
)default_parameter
)parameters
(block
(if_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(attribute
(identifier_cls) identifier_cls
(identifier__compressed_stream_remainder_list) identifier__compressed_stream_remainder_list
)attribute
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_cls) identifier_cls
(identifier__compressed_stream_store) identifier__compressed_stream_store
)attribute
(None) None
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(pattern_list
(identifier_specification_store) identifier_specification_store
(identifier_remainder_list) identifier_remainder_list
)pattern_list
(call
(attribute
(identifier_cls) identifier_cls
(identifier__GetSpecificationStore) identifier__GetSpecificationStore
)attribute
(argument_list
(attribute
(identifier_definitions) identifier_definitions
(identifier_FORMAT_CATEGORY_COMPRESSED_STREAM) identifier_FORMAT_CATEGORY_COMPRESSED_STREAM
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_cls) identifier_cls
(identifier__compressed_stream_remainder_list) identifier__compressed_stream_remainder_list
)attribute
(identifier_remainder_list) identifier_remainder_list
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_cls) identifier_cls
(identifier__compressed_stream_store) identifier__compressed_stream_store
)attribute
(identifier_specification_store) identifier_specification_store
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_cls) identifier_cls
(identifier__compressed_stream_scanner) identifier__compressed_stream_scanner
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_cls) identifier_cls
(identifier__compressed_stream_scanner) identifier__compressed_stream_scanner
)attribute
(call
(attribute
(identifier_cls) identifier_cls
(identifier__GetSignatureScanner) identifier__GetSignatureScanner
)attribute
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier__compressed_stream_store) identifier__compressed_stream_store
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier__GetTypeIndicators) identifier__GetTypeIndicators
)attribute
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier__compressed_stream_scanner) identifier__compressed_stream_scanner
)attribute
(attribute
(identifier_cls) identifier_cls
(identifier__compressed_stream_store) identifier__compressed_stream_store
)attribute
(attribute
(identifier_cls) identifier_cls
(identifier__compressed_stream_remainder_list) identifier__compressed_stream_remainder_list
)attribute
(identifier_path_spec) identifier_path_spec
(keyword_argument
(identifier_resolver_context) identifier_resolver_context
(identifier_resolver_context) identifier_resolver_context
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Determines if a file contains a supported compressed stream types.
Args:
path_spec (PathSpec): path specification.
resolver_context (Optional[Context]): resolver context, where None
represents the built-in context which is not multi process safe.
Returns:
list[str]: supported format type indicators. |
(module
(function_definition
(function_name_allow_pgcodes) function_name_allow_pgcodes
(parameters
(identifier_cr) identifier_cr
(list_splat_pattern
(identifier_codes) identifier_codes
)list_splat_pattern
)parameters
(block
(try_statement
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_cr) identifier_cr
(identifier_savepoint) identifier_savepoint
)attribute
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(attribute
(identifier_core) identifier_core
(identifier_tools) identifier_tools
)attribute
(identifier_mute_logger) identifier_mute_logger
)attribute
(argument_list
(string_'odoo.sql_db') string_'odoo.sql_db'
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(yield
)yield
)expression_statement
)block
)with_statement
)block
)with_statement
)block
(except_clause
(as_pattern
(tuple
(identifier_ProgrammingError) identifier_ProgrammingError
(identifier_IntegrityError) identifier_IntegrityError
)tuple
(as_pattern_target
(identifier_error) identifier_error
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(string_"Code: {code}. Class: {class_}. Error: {error}.") string_"Code: {code}. Class: {class_}. Error: {error}."
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_code) identifier_code
(attribute
(identifier_error) identifier_error
(identifier_pgcode) identifier_pgcode
)attribute
)keyword_argument
(keyword_argument
(identifier_class_) identifier_class_
(call
(attribute
(identifier_errorcodes) identifier_errorcodes
(identifier_lookup) identifier_lookup
)attribute
(argument_list
(subscript
(attribute
(identifier_error) identifier_error
(identifier_pgcode) identifier_pgcode
)attribute
(slice
(colon) colon
(integer_2) integer_2
)slice
)subscript
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_error) identifier_error
(call
(attribute
(identifier_errorcodes) identifier_errorcodes
(identifier_lookup) identifier_lookup
)attribute
(argument_list
(attribute
(identifier_error) identifier_error
(identifier_pgcode) identifier_pgcode
)attribute
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_error) identifier_error
(identifier_pgcode) identifier_pgcode
)attribute
(identifier_codes) identifier_codes
)comparison_operator
(comparison_operator
(subscript
(attribute
(identifier_error) identifier_error
(identifier_pgcode) identifier_pgcode
)attribute
(slice
(colon) colon
(integer_2) integer_2
)slice
)subscript
(identifier_codes) identifier_codes
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_exception) identifier_exception
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)expression_statement
(raise_statement
)raise_statement
)block
)else_clause
)if_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Context manager that will omit specified error codes.
E.g., suppose you expect a migration to produce unique constraint
violations and you want to ignore them. Then you could just do::
with allow_pgcodes(cr, psycopg2.errorcodes.UNIQUE_VIOLATION):
cr.execute("INSERT INTO me (name) SELECT name FROM you")
.. warning::
**All** sentences inside this context will be rolled back if **a single
error** is raised, so the above example would insert **nothing** if a
single row violates a unique constraint.
This would ignore duplicate files but insert the others::
cr.execute("SELECT name FROM you")
for row in cr.fetchall():
with allow_pgcodes(cr, psycopg2.errorcodes.UNIQUE_VIOLATION):
cr.execute("INSERT INTO me (name) VALUES (%s)", row[0])
:param *str codes:
Undefined amount of error codes found in :mod:`psycopg2.errorcodes`
that are allowed. Codes can have either 2 characters (indicating an
error class) or 5 (indicating a concrete error). Any other errors
will be raised. |
(module
(function_definition
(function_name_delete_api_stage) function_name_delete_api_stage
(parameters
(identifier_restApiId) identifier_restApiId
(identifier_stageName) identifier_stageName
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
(default_parameter
(identifier_keyid) identifier_keyid
(None) None
)default_parameter
(default_parameter
(identifier_profile) identifier_profile
(None) None
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_conn) identifier_conn
(call
(identifier__get_conn) identifier__get_conn
(argument_list
(keyword_argument
(identifier_region) identifier_region
(identifier_region) identifier_region
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
(keyword_argument
(identifier_keyid) identifier_keyid
(identifier_keyid) identifier_keyid
)keyword_argument
(keyword_argument
(identifier_profile) identifier_profile
(identifier_profile) identifier_profile
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_conn) identifier_conn
(identifier_delete_stage) identifier_delete_stage
)attribute
(argument_list
(keyword_argument
(identifier_restApiId) identifier_restApiId
(identifier_restApiId) identifier_restApiId
)keyword_argument
(keyword_argument
(identifier_stageName) identifier_stageName
(identifier_stageName) identifier_stageName
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(dictionary
(pair
(string_'deleted') string_'deleted'
(True) True
)pair
)dictionary
)return_statement
)block
(except_clause
(as_pattern
(identifier_ClientError) identifier_ClientError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(return_statement
(dictionary
(pair
(string_'deleted') string_'deleted'
(False) False
)pair
(pair
(string_'error') string_'error'
(call
(subscript
(identifier___utils__) identifier___utils__
(string_'boto3.get_error') string_'boto3.get_error'
)subscript
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Deletes stage identified by stageName from API identified by restApiId
CLI Example:
.. code-block:: bash
salt myminion boto_apigateway.delete_api_stage restApiId stageName |
(module
(function_definition
(function_name_show_bgp_speaker) function_name_show_bgp_speaker
(parameters
(identifier_self) identifier_self
(identifier_bgp_speaker_id) identifier_bgp_speaker_id
(dictionary_splat_pattern
(identifier__params) identifier__params
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_bgp_speaker_path) identifier_bgp_speaker_path
)attribute
(parenthesized_expression
(identifier_bgp_speaker_id) identifier_bgp_speaker_id
)parenthesized_expression
)binary_operator
(keyword_argument
(identifier_params) identifier_params
(identifier__params) identifier__params
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Fetches information of a certain BGP speaker. |
(module
(function_definition
(function_name_render_template) function_name_render_template
(parameters
(typed_parameter
(identifier_template_name_or_list) identifier_template_name_or_list
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(dictionary_splat_pattern
(identifier_context) identifier_context
)dictionary_splat_pattern
(type
(identifier_Any) identifier_Any
)type
)typed_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(await
(call
(attribute
(identifier_current_app) identifier_current_app
(identifier_update_template_context) identifier_update_template_context
)attribute
(argument_list
(identifier_context) identifier_context
)argument_list
)call
)await
)expression_statement
(expression_statement
(assignment
(identifier_template) identifier_template
(call
(attribute
(attribute
(identifier_current_app) identifier_current_app
(identifier_jinja_env) identifier_jinja_env
)attribute
(identifier_get_or_select_template) identifier_get_or_select_template
)attribute
(argument_list
(identifier_template_name_or_list) identifier_template_name_or_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(await
(call
(identifier__render) identifier__render
(argument_list
(identifier_template) identifier_template
(identifier_context) identifier_context
)argument_list
)call
)await
)return_statement
)block
)function_definition
)module | Render the template with the context given.
Arguments:
template_name_or_list: Template name to render of a list of
possible template names.
context: The variables to pass to the template. |
(module
(function_definition
(function_name_title_has_tag) function_name_title_has_tag
(parameters
(identifier_page) identifier_page
(identifier_lang) identifier_lang
(identifier_tag) identifier_tag
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_models) identifier_models
)dotted_name
)relative_import
(dotted_name
(identifier_TitleTags) identifier_TitleTags
)dotted_name
)import_from_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_tag) identifier_tag
(string_'slug') string_'slug'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_slug) identifier_slug
(attribute
(identifier_tag) identifier_tag
(identifier_slug) identifier_slug
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_slug) identifier_slug
(identifier_tag) identifier_tag
)assignment
)expression_statement
)block
)else_clause
)if_statement
(try_statement
(block
(return_statement
(call
(attribute
(call
(attribute
(attribute
(attribute
(call
(attribute
(identifier_page) identifier_page
(identifier_get_title_obj) identifier_get_title_obj
)attribute
(argument_list
(keyword_argument
(identifier_language) identifier_language
(identifier_lang) identifier_lang
)keyword_argument
(keyword_argument
(identifier_fallback) identifier_fallback
(False) False
)keyword_argument
)argument_list
)call
(identifier_titletags) identifier_titletags
)attribute
(identifier_tags) identifier_tags
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_slug) identifier_slug
(identifier_slug) identifier_slug
)keyword_argument
)argument_list
)call
(identifier_exists) identifier_exists
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(except_clause
(attribute
(identifier_TitleTags) identifier_TitleTags
(identifier_DoesNotExist) identifier_DoesNotExist
)attribute
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Check if a Title object is associated with the given tag.
This function does not use fallbacks to retrieve title object.
:param page: a Page instance
:param lang: a language code
:param tag: a Tag instance or a slug string.
:return: whether the Title instance has the given tag attached (False if no Title or no
attached TitleTags exists)
:type: Boolean |
(module
(function_definition
(function_name_stop_capture) function_name_stop_capture
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__capture_node) identifier__capture_node
)attribute
(block
(expression_statement
(yield
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__capture_node) identifier__capture_node
)attribute
(string_"node") string_"node"
)subscript
(identifier_post) identifier_post
)attribute
(argument_list
(call
(attribute
(string_"/adapters/{adapter_number}/ports/{port_number}/stop_capture") string_"/adapters/{adapter_number}/ports/{port_number}/stop_capture"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_adapter_number) identifier_adapter_number
(subscript
(attribute
(identifier_self) identifier_self
(identifier__capture_node) identifier__capture_node
)attribute
(string_"adapter_number") string_"adapter_number"
)subscript
)keyword_argument
(keyword_argument
(identifier_port_number) identifier_port_number
(subscript
(attribute
(identifier_self) identifier_self
(identifier__capture_node) identifier__capture_node
)attribute
(string_"port_number") string_"port_number"
)subscript
)keyword_argument
)argument_list
)call
)argument_list
)call
)yield
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__capture_node) identifier__capture_node
)attribute
(None) None
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(yield
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
)argument_list
)call
(identifier_stop_capture) identifier_stop_capture
)attribute
(argument_list
)argument_list
)call
)yield
)expression_statement
)block
)function_definition
)module | Stop capture on a link |
(module
(function_definition
(function_name_get_mate_center) function_name_get_mate_center
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_angle) identifier_angle
(integer_0) integer_0
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_Mate) identifier_Mate
(argument_list
(identifier_self) identifier_self
(call
(attribute
(identifier_CoordSystem) identifier_CoordSystem
(identifier_from_plane) identifier_from_plane
)attribute
(argument_list
(call
(attribute
(call
(attribute
(identifier_cadquery) identifier_cadquery
(identifier_Plane) identifier_Plane
)attribute
(argument_list
(keyword_argument
(identifier_origin) identifier_origin
(tuple
(integer_0) integer_0
(integer_0) integer_0
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_width) identifier_width
)attribute
(integer_2) integer_2
)binary_operator
)tuple
)keyword_argument
(keyword_argument
(identifier_xDir) identifier_xDir
(tuple
(integer_1) integer_1
(integer_0) integer_0
(integer_0) integer_0
)tuple
)keyword_argument
(keyword_argument
(identifier_normal) identifier_normal
(tuple
(integer_0) integer_0
(integer_0) integer_0
(integer_1) integer_1
)tuple
)keyword_argument
)argument_list
)call
(identifier_rotated) identifier_rotated
)attribute
(argument_list
(tuple
(integer_0) integer_0
(integer_0) integer_0
(identifier_angle) identifier_angle
)tuple
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Mate at ring's center rotated ``angle`` degrees.
:param angle: rotation around z-axis (unit: deg)
:type angle: :class:`float`
:return: mate in ring's center rotated about z-axis
:rtype: :class:`Mate <cqparts.constraint.Mate>` |
(module
(function_definition
(function_name_get_incidents) function_name_get_incidents
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_CRIME_URL) identifier_CRIME_URL
(keyword_argument
(identifier_params) identifier_params
(call
(attribute
(identifier_self) identifier_self
(identifier__get_params) identifier__get_params
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(identifier_self) identifier_self
(identifier_headers) identifier_headers
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_incidents) identifier_incidents
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_resp) identifier_resp
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ATTR_CRIMES) identifier_ATTR_CRIMES
(identifier_data) identifier_data
)comparison_operator
(block
(return_statement
(identifier_incidents) identifier_incidents
)return_statement
)block
)if_statement
(for_statement
(identifier_incident) identifier_incident
(call
(attribute
(identifier_data) identifier_data
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_ATTR_CRIMES) identifier_ATTR_CRIMES
)argument_list
)call
(block
(if_statement
(call
(identifier__validate_incident_date_range) identifier__validate_incident_date_range
(argument_list
(identifier_incident) identifier_incident
(attribute
(identifier_self) identifier_self
(identifier_days) identifier_days
)attribute
)argument_list
)call
(block
(if_statement
(call
(identifier__incident_in_types) identifier__incident_in_types
(argument_list
(identifier_incident) identifier_incident
(attribute
(identifier_self) identifier_self
(identifier_incident_types) identifier_incident_types
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_incidents) identifier_incidents
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier__incident_transform) identifier__incident_transform
(argument_list
(identifier_incident) identifier_incident
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_incidents) identifier_incidents
)return_statement
)block
)function_definition
)module | Get incidents. |
(module
(function_definition
(function_name_update_user_label) function_name_update_user_label
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__user_label) identifier__user_label
)attribute
(call
(identifier__uniqueid_to_uniquetwig) identifier__uniqueid_to_uniquetwig
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__bundle) identifier__bundle
)attribute
(attribute
(identifier_self) identifier_self
(identifier_unique_label) identifier_unique_label
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__set_curly_label) identifier__set_curly_label
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | finds this parameter and gets the least_unique_twig from the bundle |
(module
(function_definition
(function_name_update_frequency) function_name_update_frequency
(parameters
(identifier_shell_ctx) identifier_shell_ctx
)parameters
(block
(expression_statement
(assignment
(identifier_frequency_path) identifier_frequency_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_shell_ctx) identifier_shell_ctx
(identifier_config) identifier_config
)attribute
(identifier_get_config_dir) identifier_get_config_dir
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(attribute
(identifier_shell_ctx) identifier_shell_ctx
(identifier_config) identifier_config
)attribute
(identifier_get_frequency) identifier_get_frequency
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_frequency_path) identifier_frequency_path
)argument_list
)call
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_frequency_path) identifier_frequency_path
(string_'r') string_'r'
)argument_list
)call
(as_pattern_target
(identifier_freq) identifier_freq
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_frequency) identifier_frequency
(call
(attribute
(identifier_json) identifier_json
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_freq) identifier_freq
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(identifier_frequency) identifier_frequency
(dictionary
)dictionary
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)with_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_frequency) identifier_frequency
(dictionary
)dictionary
)assignment
)expression_statement
)block
)else_clause
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_frequency_path) identifier_frequency_path
(string_'w') string_'w'
)argument_list
)call
(as_pattern_target
(identifier_freq) identifier_freq
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_now) identifier_now
(call
(identifier_day_format) identifier_day_format
(argument_list
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_utcnow) identifier_utcnow
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_val) identifier_val
(call
(attribute
(identifier_frequency) identifier_frequency
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_now) identifier_now
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_frequency) identifier_frequency
(identifier_now) identifier_now
)subscript
(conditional_expression
(binary_operator
(identifier_val) identifier_val
(integer_1) integer_1
)binary_operator
(identifier_val) identifier_val
(integer_1) integer_1
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_dump) identifier_dump
)attribute
(argument_list
(identifier_frequency) identifier_frequency
(identifier_freq) identifier_freq
)argument_list
)call
)expression_statement
)block
)with_statement
(return_statement
(identifier_frequency) identifier_frequency
)return_statement
)block
)function_definition
)module | updates the frequency from files |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(boolean_operator
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_start) identifier_start
)attribute
(comparison_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_start) identifier_start
)attribute
(identifier_state) identifier_state
)attribute
(string_'done') string_'done'
)comparison_operator
)boolean_operator
(comparison_operator
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'log_action') string_'log_action'
)argument_list
)call
(string_'done') string_'done'
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ProgressLoggingError) identifier_ProgressLoggingError
(argument_list
(string_"Can't add -- process section is done") string_"Can't add -- process section is done"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_augment_args) identifier_augment_args
)attribute
(argument_list
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'log_action') string_'log_action'
)subscript
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'log_action') string_'log_action'
(string_'add') string_'add'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rec) identifier_rec
(call
(identifier_Process) identifier_Process
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__session) identifier__session
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_rec) identifier_rec
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_rec) identifier_rec
)attribute
(identifier_rec) identifier_rec
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_rec) identifier_rec
)attribute
(identifier_log_str) identifier_log_str
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__session) identifier__session
)attribute
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__ai_rec_id) identifier__ai_rec_id
)attribute
(None) None
)assignment
)expression_statement
(return_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier_rec) identifier_rec
)attribute
(identifier_id) identifier_id
)attribute
)return_statement
)block
)function_definition
)module | Add a new record to the section |
(module
(function_definition
(function_name_FilterArgsFromSemanticProtobuf) function_name_FilterArgsFromSemanticProtobuf
(parameters
(identifier_protobuf) identifier_protobuf
(identifier_kwargs) identifier_kwargs
)parameters
(block
(for_statement
(identifier_descriptor) identifier_descriptor
(attribute
(identifier_protobuf) identifier_protobuf
(identifier_type_infos) identifier_type_infos
)attribute
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(attribute
(identifier_descriptor) identifier_descriptor
(identifier_name) identifier_name
)attribute
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_protobuf) identifier_protobuf
(attribute
(identifier_descriptor) identifier_descriptor
(identifier_name) identifier_name
)attribute
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Assign kwargs to the protobuf, and remove them from the kwargs dict. |
(module
(function_definition
(function_name_clistream) function_name_clistream
(parameters
(identifier_reporter) identifier_reporter
(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_files) identifier_files
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'files') string_'files'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_encoding) identifier_encoding
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'input_encoding') string_'input_encoding'
(identifier_DEFAULT_ENCODING) identifier_DEFAULT_ENCODING
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_processes) identifier_processes
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'processes') string_'processes'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_chunksize) identifier_chunksize
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'chunksize') string_'chunksize'
)argument_list
)call
)assignment
)expression_statement
(import_from_statement
(dotted_name
(identifier_clitool) identifier_clitool
(identifier_processor) identifier_processor
)dotted_name
(dotted_name
(identifier_CliHandler) identifier_CliHandler
)dotted_name
(dotted_name
(identifier_Streamer) identifier_Streamer
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_Handler) identifier_Handler
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'Handler') string_'Handler'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_Handler) identifier_Handler
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(string_'"Handler" keyword will be removed from next release.') string_'"Handler" keyword will be removed from next release.'
(identifier_DeprecationWarning) identifier_DeprecationWarning
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_Handler) identifier_Handler
(identifier_CliHandler) identifier_CliHandler
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(identifier_Streamer) identifier_Streamer
(argument_list
(identifier_reporter) identifier_reporter
(keyword_argument
(identifier_processes) identifier_processes
(identifier_processes) identifier_processes
)keyword_argument
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_handler) identifier_handler
(call
(identifier_Handler) identifier_Handler
(argument_list
(identifier_s) identifier_s
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'delimiter') string_'delimiter'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_handler) identifier_handler
(identifier_handle) identifier_handle
)attribute
(argument_list
(identifier_files) identifier_files
(identifier_encoding) identifier_encoding
(identifier_chunksize) identifier_chunksize
)argument_list
)call
)return_statement
)block
)function_definition
)module | Handle stream data on command line interface,
and returns statistics of success, error, and total amount.
More detailed information is available on underlying feature,
:mod:`clitool.processor`.
:param Handler: [DEPRECATED] Handler for file-like streams.
(default: :class:`clitool.processor.CliHandler`)
:type Handler: object which supports `handle` method.
:param reporter: callback to report processed value
:type reporter: callable
:param delimiter: line delimiter [optional]
:type delimiter: string
:param args: functions to parse each item in the stream.
:param kwargs: keywords, including ``files`` and ``input_encoding``.
:rtype: list |
(module
(function_definition
(function_name_kill_all) function_name_kill_all
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_'Job {0} killing all currently running tasks') string_'Job {0} killing all currently running tasks'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(for_statement
(identifier_task) identifier_task
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tasks) identifier_tasks
)attribute
(identifier_itervalues) identifier_itervalues
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(attribute
(identifier_task) identifier_task
(identifier_started_at) identifier_started_at
)attribute
(not_operator
(attribute
(identifier_task) identifier_task
(identifier_completed_at) identifier_completed_at
)attribute
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_task) identifier_task
(identifier_kill) identifier_kill
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Kill all currently running jobs. |
(module
(function_definition
(function_name_SensorMetatagsGet) function_name_SensorMetatagsGet
(parameters
(identifier_self) identifier_self
(identifier_sensor_id) identifier_sensor_id
(default_parameter
(identifier_namespace) identifier_namespace
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_ns) identifier_ns
(conditional_expression
(string_"default") string_"default"
(comparison_operator
(identifier_namespace) identifier_namespace
(None) None
)comparison_operator
(identifier_namespace) identifier_namespace
)conditional_expression
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___SenseApiCall__) identifier___SenseApiCall__
)attribute
(argument_list
(call
(attribute
(string_'/sensors/{0}/metatags.json') string_'/sensors/{0}/metatags.json'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_sensor_id) identifier_sensor_id
)argument_list
)call
(string_'GET') string_'GET'
(keyword_argument
(identifier_parameters) identifier_parameters
(dictionary
(pair
(string_'namespace') string_'namespace'
(identifier_ns) identifier_ns
)pair
)dictionary
)keyword_argument
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___error__) identifier___error__
)attribute
(string_"api call unsuccessful") string_"api call unsuccessful"
)assignment
)expression_statement
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Retrieve the metatags of a sensor.
@param sensor_id (int) - Id of the sensor to retrieve metatags from
@param namespace (stirng) - Namespace for which to retrieve metatags.
@return (bool) - Boolean indicating whether SensorMetatagsGet was successful |
(module
(function_definition
(function_name_output_notebook) function_name_output_notebook
(parameters
(default_parameter
(identifier_d3js_url) identifier_d3js_url
(string_"//d3js.org/d3.v3.min") string_"//d3js.org/d3.v3.min"
)default_parameter
(default_parameter
(identifier_requirejs_url) identifier_requirejs_url
(string_"//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js") string_"//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"
)default_parameter
(default_parameter
(identifier_html_template) identifier_html_template
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_html_template) identifier_html_template
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_html_template) identifier_html_template
(call
(identifier_read_lib) identifier_read_lib
(argument_list
(string_'html') string_'html'
(string_'setup') string_'setup'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_setup_html) identifier_setup_html
(call
(identifier_populate_template) identifier_populate_template
(argument_list
(identifier_html_template) identifier_html_template
(keyword_argument
(identifier_d3js) identifier_d3js
(identifier_d3js_url) identifier_d3js_url
)keyword_argument
(keyword_argument
(identifier_requirejs) identifier_requirejs
(identifier_requirejs_url) identifier_requirejs_url
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_display_html) identifier_display_html
(argument_list
(identifier_setup_html) identifier_setup_html
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)function_definition
)module | Import required Javascript libraries to Jupyter Notebook. |
(module
(function_definition
(function_name_make_message) function_name_make_message
(parameters
(default_parameter
(identifier_subject) identifier_subject
(string_"") string_""
)default_parameter
(default_parameter
(identifier_body) identifier_body
(string_"") string_""
)default_parameter
(default_parameter
(identifier_from_email) identifier_from_email
(None) None
)default_parameter
(default_parameter
(identifier_to) identifier_to
(None) None
)default_parameter
(default_parameter
(identifier_bcc) identifier_bcc
(None) None
)default_parameter
(default_parameter
(identifier_attachments) identifier_attachments
(None) None
)default_parameter
(default_parameter
(identifier_headers) identifier_headers
(None) None
)default_parameter
(default_parameter
(identifier_priority) identifier_priority
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_to) identifier_to
(call
(identifier_filter_recipient_list) identifier_filter_recipient_list
(argument_list
(identifier_to) identifier_to
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bcc) identifier_bcc
(call
(identifier_filter_recipient_list) identifier_filter_recipient_list
(argument_list
(identifier_bcc) identifier_bcc
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_core_msg) identifier_core_msg
(call
(identifier_EmailMessage) identifier_EmailMessage
(argument_list
(keyword_argument
(identifier_subject) identifier_subject
(identifier_subject) identifier_subject
)keyword_argument
(keyword_argument
(identifier_body) identifier_body
(identifier_body) identifier_body
)keyword_argument
(keyword_argument
(identifier_from_email) identifier_from_email
(identifier_from_email) identifier_from_email
)keyword_argument
(keyword_argument
(identifier_to) identifier_to
(identifier_to) identifier_to
)keyword_argument
(keyword_argument
(identifier_bcc) identifier_bcc
(identifier_bcc) identifier_bcc
)keyword_argument
(keyword_argument
(identifier_attachments) identifier_attachments
(identifier_attachments) identifier_attachments
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_db_msg) identifier_db_msg
(call
(identifier_Message) identifier_Message
(argument_list
(keyword_argument
(identifier_priority) identifier_priority
(identifier_priority) identifier_priority
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_db_msg) identifier_db_msg
(identifier_email) identifier_email
)attribute
(identifier_core_msg) identifier_core_msg
)assignment
)expression_statement
(return_statement
(identifier_db_msg) identifier_db_msg
)return_statement
)block
)function_definition
)module | Creates a simple message for the email parameters supplied.
The 'to' and 'bcc' lists are filtered using DontSendEntry.
If needed, the 'email' attribute can be set to any instance of EmailMessage
if e-mails with attachments etc. need to be supported.
Call 'save()' on the result when it is ready to be sent, and not before. |
(module
(function_definition
(function_name__indent) function_name__indent
(parameters
(identifier_x) identifier_x
)parameters
(block
(expression_statement
(assignment
(identifier_lines) identifier_lines
(call
(attribute
(identifier_x) identifier_x
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_line) identifier_line
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_lines) identifier_lines
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_lines) identifier_lines
(identifier_i) identifier_i
)subscript
(binary_operator
(string_' ') string_' '
(identifier_line) identifier_line
)binary_operator
)assignment
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(string_'\n') string_'\n'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_lines) identifier_lines
)argument_list
)call
)return_statement
)block
)function_definition
)module | Indent a string by 4 characters. |
(module
(function_definition
(function_name_next) function_name_next
(parameters
(identifier_self) identifier_self
)parameters
(block
(while_statement
(True) True
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_cur_idx) identifier_cur_idx
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___datasource) identifier___datasource
)attribute
(identifier_populate_iteration) identifier_populate_iteration
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(block
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)if_statement
)block
)while_statement
(raise_statement
(identifier_StopIteration) identifier_StopIteration
)raise_statement
)block
)function_definition
)module | Move to the next valid locus.
Will only return valid loci or exit via StopIteration exception |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.