sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_to_utc_date) function_name_to_utc_date
(parameters
(identifier_date) identifier_date
)parameters
(block
(return_statement
(conditional_expression
(call
(attribute
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_utcfromtimestamp) identifier_utcfromtimestamp
)attribute
(argument_list
(call
(identifier_float) identifier_float
(argument_list
(call
(attribute
(identifier_date) identifier_date
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(string_'%s') string_'%s'
)argument_list
)call
)argument_list
)call
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(keyword_argument
(identifier_tzinfo) identifier_tzinfo
(None) None
)keyword_argument
)argument_list
)call
(identifier_date) identifier_date
(None) None
)conditional_expression
)return_statement
)block
)function_definition
)module | Convert a datetime object from local to UTC format
>>> import datetime
>>> d = datetime.datetime(2017, 8, 15, 18, 24, 31)
>>> to_utc_date(d)
datetime.datetime(2017, 8, 16, 1, 24, 31)
Args:
date (`datetime`): Input datetime object
Returns:
`datetime` |
(module
(function_definition
(function_name_add_matplotlib_cmaps) function_name_add_matplotlib_cmaps
(parameters
(default_parameter
(identifier_fail_on_import_error) identifier_fail_on_import_error
(True) True
)default_parameter
)parameters
(block
(try_statement
(block
(import_from_statement
(dotted_name
(identifier_matplotlib) identifier_matplotlib
)dotted_name
(aliased_import
(dotted_name
(identifier_cm) identifier_cm
)dotted_name
(identifier__cm) identifier__cm
)aliased_import
)import_from_statement
(import_from_statement
(dotted_name
(identifier_matplotlib) identifier_matplotlib
(identifier_cbook) identifier_cbook
)dotted_name
(dotted_name
(identifier_mplDeprecation) identifier_mplDeprecation
)dotted_name
)import_from_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(if_statement
(identifier_fail_on_import_error) identifier_fail_on_import_error
(block
(raise_statement
)raise_statement
)block
)if_statement
(return_statement
)return_statement
)block
)except_clause
)try_statement
(for_statement
(identifier_name) identifier_name
(attribute
(identifier__cm) identifier__cm
(identifier_cmap_d) identifier_cmap_d
)attribute
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_name) identifier_name
(identifier_str) identifier_str
)argument_list
)call
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(try_statement
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_catch_warnings) identifier_catch_warnings
)attribute
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_simplefilter) identifier_simplefilter
)attribute
(argument_list
(string_'error') string_'error'
(identifier_mplDeprecation) identifier_mplDeprecation
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_cm) identifier_cm
(call
(attribute
(identifier__cm) identifier__cm
(identifier_get_cmap) identifier_get_cmap
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_add_matplotlib_cmap) identifier_add_matplotlib_cmap
(argument_list
(identifier_cm) identifier_cm
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
)argument_list
)call
)expression_statement
)block
)with_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(if_statement
(identifier_fail_on_import_error) identifier_fail_on_import_error
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_"Error adding colormap '%s': %s") string_"Error adding colormap '%s': %s"
(tuple
(identifier_name) identifier_name
(call
(identifier_str) identifier_str
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)except_clause
)try_statement
)block
)for_statement
)block
)function_definition
)module | Add all matplotlib colormaps. |
(module
(function_definition
(function_name_fit) function_name_fit
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_debug) identifier_debug
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_util) identifier_util
(identifier_apply_filter_query) identifier_apply_filter_query
)attribute
(argument_list
(identifier_data) identifier_data
(attribute
(identifier_self) identifier_self
(identifier_fit_filters) identifier_fit_filters
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_unique) identifier_unique
(call
(attribute
(subscript
(identifier_data) identifier_data
(attribute
(identifier_self) identifier_self
(identifier_segmentation_col) identifier_segmentation_col
)attribute
)subscript
(identifier_unique) identifier_unique
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value_counts) identifier_value_counts
(call
(attribute
(subscript
(identifier_data) identifier_data
(attribute
(identifier_self) identifier_self
(identifier_segmentation_col) identifier_segmentation_col
)attribute
)subscript
(identifier_value_counts) identifier_value_counts
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_gone) identifier_gone
(binary_operator
(call
(identifier_set) identifier_set
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__group) identifier__group
)attribute
(identifier_models) identifier_models
)attribute
)argument_list
)call
(call
(identifier_set) identifier_set
(argument_list
(identifier_unique) identifier_unique
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(for_statement
(identifier_g) identifier_g
(identifier_gone) identifier_gone
(block
(delete_statement
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier__group) identifier__group
)attribute
(identifier_models) identifier_models
)attribute
(identifier_g) identifier_g
)subscript
)delete_statement
)block
)for_statement
(for_statement
(identifier_x) identifier_x
(identifier_unique) identifier_unique
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_x) identifier_x
(attribute
(attribute
(identifier_self) identifier_self
(identifier__group) identifier__group
)attribute
(identifier_models) identifier_models
)attribute
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(subscript
(identifier_value_counts) identifier_value_counts
(identifier_x) identifier_x
)subscript
(attribute
(identifier_self) identifier_self
(identifier_min_segment_size) identifier_min_segment_size
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_segment) identifier_add_segment
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(with_statement
(with_clause
(with_item
(call
(identifier_log_start_finish) identifier_log_start_finish
(argument_list
(call
(attribute
(string_'fitting models in segmented model {}') string_'fitting models in segmented model {}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)argument_list
)call
(identifier_logger) identifier_logger
)argument_list
)call
)with_item
)with_clause
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__group) identifier__group
)attribute
(identifier_fit) identifier_fit
)attribute
(argument_list
(identifier_data) identifier_data
(keyword_argument
(identifier_debug) identifier_debug
(identifier_debug) identifier_debug
)keyword_argument
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Fit each segment. Segments that have not already been explicitly
added will be automatically added with default model and ytransform.
Parameters
----------
data : pandas.DataFrame
Must have a column with the same name as `segmentation_col`.
debug : bool
If set to true will pass debug to the fit method of each model.
Returns
-------
fits : dict of statsmodels.regression.linear_model.OLSResults
Keys are the segment names. |
(module
(function_definition
(function_name_assign) function_name_assign
(parameters
(identifier_self) identifier_self
(identifier_pm) identifier_pm
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_pm) identifier_pm
(identifier_QPixmap) identifier_QPixmap
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__pm) identifier__pm
)attribute
(identifier_pm) identifier_pm
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__xpmstr) identifier__xpmstr
)attribute
(identifier_pm) identifier_pm
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__pm) identifier__pm
)attribute
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__icon) identifier__icon
)attribute
(None) None
)assignment
)expression_statement
)block
)function_definition
)module | Reassign pixmap or xpm string array to wrapper |
(module
(function_definition
(function_name__get_deleted_at_column) function_name__get_deleted_at_column
(parameters
(identifier_self) identifier_self
(identifier_builder) identifier_builder
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(call
(attribute
(identifier_builder) identifier_builder
(identifier_get_query) identifier_get_query
)attribute
(argument_list
)argument_list
)call
(identifier_joins) identifier_joins
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(call
(attribute
(call
(attribute
(identifier_builder) identifier_builder
(identifier_get_model) identifier_get_model
)attribute
(argument_list
)argument_list
)call
(identifier_get_qualified_deleted_at_column) identifier_get_qualified_deleted_at_column
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(call
(attribute
(identifier_builder) identifier_builder
(identifier_get_model) identifier_get_model
)attribute
(argument_list
)argument_list
)call
(identifier_get_deleted_at_column) identifier_get_deleted_at_column
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Get the "deleted at" column for the builder.
:param builder: The query builder
:type builder: orator.orm.builder.Builder
:rtype: str |
(module
(function_definition
(function_name_pause) function_name_pause
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_message) identifier_message
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_Message_T) identifier_Message_T
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(type
(None) None
)type
(block
(if_statement
(identifier_message) identifier_message
(block
(expression_statement
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_ensure_future) identifier_ensure_future
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_send) identifier_send
)attribute
(argument_list
(identifier_message) identifier_message
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(raise_statement
(identifier__PauseException) identifier__PauseException
)raise_statement
)block
)function_definition
)module | Pause the session for further interaction. |
(module
(function_definition
(function_name__resolve_key) function_name__resolve_key
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_self) identifier_self
(identifier__reserve) identifier__reserve
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_factory) identifier_factory
(call
(attribute
(identifier_self) identifier_self
(identifier_factory_for) identifier_factory_for
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_self) identifier_self
(identifier__profiler) identifier__profiler
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_component) identifier_component
(call
(identifier_factory) identifier_factory
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(call
(identifier_invoke_resolve_hook) identifier_invoke_resolve_hook
(argument_list
(identifier_component) identifier_component
)argument_list
)call
)expression_statement
)block
)with_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_assign) identifier_assign
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_component) identifier_component
)argument_list
)call
)return_statement
)block
)function_definition
)module | Attempt to lazily create a component.
:raises NotBoundError: if the component does not have a bound factory
:raises CyclicGraphError: if the factory function requires a cycle
:raises LockedGraphError: if the graph is locked |
(module
(function_definition
(function_name__recursive_merged_items) function_name__recursive_merged_items
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(assignment
(identifier_subdirs) identifier_subdirs
(list_comprehension
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_d) identifier_d
(string_"parts") string_"parts"
(call
(identifier_str) identifier_str
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)argument_list
)call
(for_in_clause
(identifier_d) identifier_d
(attribute
(identifier_self) identifier_self
(identifier_localdirs) identifier_localdirs
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(identifier_ExternalMerger) identifier_ExternalMerger
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_agg) identifier_agg
)attribute
(attribute
(identifier_self) identifier_self
(identifier_memory_limit) identifier_memory_limit
)attribute
(attribute
(identifier_self) identifier_self
(identifier_serializer) identifier_serializer
)attribute
(identifier_subdirs) identifier_subdirs
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_scale) identifier_scale
)attribute
(attribute
(identifier_self) identifier_self
(identifier_partitions) identifier_partitions
)attribute
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_partitions) identifier_partitions
)attribute
(attribute
(identifier_self) identifier_self
(identifier_batch) identifier_batch
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_m) identifier_m
(identifier_pdata) identifier_pdata
)attribute
(list_comprehension
(dictionary
)dictionary
(for_in_clause
(identifier__) identifier__
(call
(identifier_range) identifier_range
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_partitions) identifier_partitions
)attribute
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_limit) identifier_limit
(call
(attribute
(identifier_self) identifier_self
(identifier__next_limit) identifier__next_limit
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_j) identifier_j
(call
(identifier_range) identifier_range
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_spills) identifier_spills
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(identifier_self) identifier_self
(identifier__get_spill_dir) identifier__get_spill_dir
)attribute
(argument_list
(identifier_j) identifier_j
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_path) identifier_path
(call
(identifier_str) identifier_str
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_p) identifier_p
(string_'rb') string_'rb'
)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_m) identifier_m
(identifier_mergeCombiners) identifier_mergeCombiners
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_serializer) identifier_serializer
)attribute
(identifier_load_stream) identifier_load_stream
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
(integer_0) integer_0
)argument_list
)call
)expression_statement
)block
)with_statement
(if_statement
(comparison_operator
(call
(identifier_get_used_memory) identifier_get_used_memory
(argument_list
)argument_list
)call
(identifier_limit) identifier_limit
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_m) identifier_m
(identifier__spill) identifier__spill
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_limit) identifier_limit
(call
(attribute
(identifier_self) identifier_self
(identifier__next_limit) identifier__next_limit
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_m) identifier_m
(identifier__external_items) identifier__external_items
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | merge the partitioned items and return the as iterator
If one partition can not be fit in memory, then them will be
partitioned and merged recursively. |
(module
(function_definition
(function_name_create_alarm_subscription) function_name_create_alarm_subscription
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_on_data) identifier_on_data
(None) None
)default_parameter
(default_parameter
(identifier_timeout) identifier_timeout
(integer_60) integer_60
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_manager) identifier_manager
(call
(identifier_WebSocketSubscriptionManager) identifier_WebSocketSubscriptionManager
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(keyword_argument
(identifier_resource) identifier_resource
(string_'alarms') string_'alarms'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_subscription) identifier_subscription
(call
(identifier_AlarmSubscription) identifier_AlarmSubscription
(argument_list
(identifier_manager) identifier_manager
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_wrapped_callback) identifier_wrapped_callback
(call
(attribute
(identifier_functools) identifier_functools
(identifier_partial) identifier_partial
)attribute
(argument_list
(identifier__wrap_callback_parse_alarm_data) identifier__wrap_callback_parse_alarm_data
(identifier_subscription) identifier_subscription
(identifier_on_data) identifier_on_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_manager) identifier_manager
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_wrapped_callback) identifier_wrapped_callback
(keyword_argument
(identifier_instance) identifier_instance
(attribute
(identifier_self) identifier_self
(identifier__instance) identifier__instance
)attribute
)keyword_argument
(keyword_argument
(identifier_processor) identifier_processor
(attribute
(identifier_self) identifier_self
(identifier__processor) identifier__processor
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_subscription) identifier_subscription
(identifier_reply) identifier_reply
)attribute
(argument_list
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_subscription) identifier_subscription
)return_statement
)block
)function_definition
)module | Create a new alarm subscription.
:param on_data: Function that gets called with :class:`.AlarmEvent`
updates.
:param float timeout: The amount of seconds to wait for the request
to complete.
:return: A Future that can be used to manage the background websocket
subscription.
:rtype: .AlarmSubscription |
(module
(function_definition
(function_name_from_file) function_name_from_file
(parameters
(identifier_cls) identifier_cls
(identifier_h5_file) identifier_h5_file
)parameters
(block
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(dictionary_comprehension
(pair
(identifier_country) identifier_country
(call
(attribute
(identifier_HDF5DailyBarReader) identifier_HDF5DailyBarReader
(identifier_from_file) identifier_from_file
)attribute
(argument_list
(identifier_h5_file) identifier_h5_file
(identifier_country) identifier_country
)argument_list
)call
)pair
(for_in_clause
(identifier_country) identifier_country
(call
(attribute
(identifier_h5_file) identifier_h5_file
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Construct from an h5py.File.
Parameters
----------
h5_file : h5py.File
An HDF5 daily pricing file. |
(module
(function_definition
(function_name_geometricBar) function_name_geometricBar
(parameters
(identifier_weights) identifier_weights
(identifier_alldistribT) identifier_alldistribT
)parameters
(block
(assert_statement
(parenthesized_expression
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_weights) identifier_weights
)argument_list
)call
(subscript
(attribute
(identifier_alldistribT) identifier_alldistribT
(identifier_shape) identifier_shape
)attribute
(integer_1) integer_1
)subscript
)comparison_operator
)parenthesized_expression
)assert_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_exp) identifier_exp
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_dot) identifier_dot
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_log) identifier_log
)attribute
(argument_list
(identifier_alldistribT) identifier_alldistribT
)argument_list
)call
(attribute
(identifier_weights) identifier_weights
(identifier_T) identifier_T
)attribute
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | return the weighted geometric mean of distributions |
(module
(function_definition
(function_name_read_plugin_config) function_name_read_plugin_config
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_folders) identifier_folders
(subscript
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(string_"pluginfolders") string_"pluginfolders"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_modules) identifier_modules
(call
(attribute
(identifier_plugins) identifier_plugins
(identifier_get_plugin_modules) identifier_get_plugin_modules
)attribute
(argument_list
(identifier_folders) identifier_folders
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_pluginclass) identifier_pluginclass
(call
(attribute
(identifier_plugins) identifier_plugins
(identifier_get_plugin_classes) identifier_get_plugin_classes
)attribute
(argument_list
(identifier_modules) identifier_modules
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_section) identifier_section
(attribute
(identifier_pluginclass) identifier_pluginclass
(identifier___name__) identifier___name__
)attribute
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_has_section) identifier_has_section
)attribute
(argument_list
(identifier_section) identifier_section
)argument_list
)call
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(string_"enabledplugins") string_"enabledplugins"
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_section) identifier_section
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_section) identifier_section
)subscript
(call
(attribute
(identifier_pluginclass) identifier_pluginclass
(identifier_read_config) identifier_read_config
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Read plugin-specific configuration values. |
(module
(function_definition
(function_name_download) function_name_download
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_streamed) identifier_streamed
(False) False
)default_parameter
(default_parameter
(identifier_action) identifier_action
(None) None
)default_parameter
(default_parameter
(identifier_chunk_size) identifier_chunk_size
(integer_1024) integer_1024
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(binary_operator
(string_'/projects/%s/export/download') string_'/projects/%s/export/download'
(attribute
(identifier_self) identifier_self
(identifier_project_id) identifier_project_id
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_manager) identifier_manager
)attribute
(identifier_gitlab) identifier_gitlab
)attribute
(identifier_http_get) identifier_http_get
)attribute
(argument_list
(identifier_path) identifier_path
(keyword_argument
(identifier_streamed) identifier_streamed
(identifier_streamed) identifier_streamed
)keyword_argument
(keyword_argument
(identifier_raw) identifier_raw
(True) True
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_utils) identifier_utils
(identifier_response_content) identifier_response_content
)attribute
(argument_list
(identifier_result) identifier_result
(identifier_streamed) identifier_streamed
(identifier_action) identifier_action
(identifier_chunk_size) identifier_chunk_size
)argument_list
)call
)return_statement
)block
)function_definition
)module | Download the archive of a project export.
Args:
streamed (bool): If True the data will be processed by chunks of
`chunk_size` and each chunk is passed to `action` for
reatment
action (callable): Callable responsible of dealing with chunk of
data
chunk_size (int): Size of each chunk
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
GitlabAuthenticationError: If authentication is not correct
GitlabGetError: If the server failed to perform the request
Returns:
str: The blob content if streamed is False, None otherwise |
(module
(function_definition
(function_name__build_idp_config_endpoints) function_name__build_idp_config_endpoints
(parameters
(identifier_self) identifier_self
(identifier_config) identifier_config
(identifier_providers) identifier_providers
)parameters
(block
(expression_statement
(assignment
(identifier_idp_endpoints) identifier_idp_endpoints
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_endp_category) identifier_endp_category
(attribute
(identifier_self) identifier_self
(identifier_endpoints) identifier_endpoints
)attribute
(block
(for_statement
(pattern_list
(identifier_func) identifier_func
(identifier_endpoint) identifier_endpoint
)pattern_list
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_endpoints) identifier_endpoints
)attribute
(identifier_endp_category) identifier_endp_category
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(for_statement
(identifier_provider) identifier_provider
(identifier_providers) identifier_providers
(block
(expression_statement
(assignment
(identifier__endpoint) identifier__endpoint
(call
(attribute
(string_"{base}/{provider}/{endpoint}") string_"{base}/{provider}/{endpoint}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_base) identifier_base
(attribute
(identifier_self) identifier_self
(identifier_base_url) identifier_base_url
)attribute
)keyword_argument
(keyword_argument
(identifier_provider) identifier_provider
(identifier_provider) identifier_provider
)keyword_argument
(keyword_argument
(identifier_endpoint) identifier_endpoint
(identifier_endpoint) identifier_endpoint
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_idp_endpoints) identifier_idp_endpoints
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier__endpoint) identifier__endpoint
(identifier_func) identifier_func
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(subscript
(subscript
(subscript
(identifier_config) identifier_config
(string_"service") string_"service"
)subscript
(string_"idp") string_"idp"
)subscript
(string_"endpoints") string_"endpoints"
)subscript
(identifier_endp_category) identifier_endp_category
)subscript
(identifier_idp_endpoints) identifier_idp_endpoints
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_config) identifier_config
)return_statement
)block
)function_definition
)module | Builds the final frontend module config
:type config: dict[str, Any]
:type providers: list[str]
:rtype: dict[str, Any]
:param config: The module config
:param providers: A list of backend names
:return: The final config |
(module
(function_definition
(function_name_handle) function_name_handle
(parameters
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_cli) identifier_cli
(call
(identifier_ZappaCLI) identifier_ZappaCLI
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(call
(attribute
(identifier_cli) identifier_cli
(identifier_handle) identifier_handle
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_SystemExit) identifier_SystemExit
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_cli) identifier_cli
(identifier_on_exit) identifier_on_exit
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(attribute
(identifier_e) identifier_e
(identifier_code) identifier_code
)attribute
)argument_list
)call
)expression_statement
)block
)except_clause
(except_clause
(identifier_KeyboardInterrupt) identifier_KeyboardInterrupt
(block
(expression_statement
(call
(attribute
(identifier_cli) identifier_cli
(identifier_on_exit) identifier_on_exit
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(integer_130) integer_130
)argument_list
)call
)expression_statement
)block
)except_clause
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_cli) identifier_cli
(identifier_on_exit) identifier_on_exit
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(binary_operator
(binary_operator
(string_"Oh no! An ") string_"Oh no! An "
(call
(attribute
(identifier_click) identifier_click
(identifier_style) identifier_style
)attribute
(argument_list
(string_"error occurred") string_"error occurred"
(keyword_argument
(identifier_fg) identifier_fg
(string_'red') string_'red'
)keyword_argument
(keyword_argument
(identifier_bold) identifier_bold
(True) True
)keyword_argument
)argument_list
)call
)binary_operator
(string_"! :(") string_"! :("
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(string_"\n==============\n") string_"\n==============\n"
)argument_list
)call
)expression_statement
(import_statement
(dotted_name
(identifier_traceback) identifier_traceback
)dotted_name
)import_statement
(expression_statement
(call
(attribute
(identifier_traceback) identifier_traceback
(identifier_print_exc) identifier_print_exc
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(string_"\n==============\n") string_"\n==============\n"
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_shamelessly_promote) identifier_shamelessly_promote
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Main program execution handler. |
(module
(function_definition
(function_name_get_instance) function_name_get_instance
(parameters
(identifier_self) identifier_self
(identifier_payload) identifier_payload
)parameters
(block
(return_statement
(call
(identifier_AuthCallsCredentialListMappingInstance) identifier_AuthCallsCredentialListMappingInstance
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__version) identifier__version
)attribute
(identifier_payload) identifier_payload
(keyword_argument
(identifier_account_sid) identifier_account_sid
(subscript
(attribute
(identifier_self) identifier_self
(identifier__solution) identifier__solution
)attribute
(string_'account_sid') string_'account_sid'
)subscript
)keyword_argument
(keyword_argument
(identifier_domain_sid) identifier_domain_sid
(subscript
(attribute
(identifier_self) identifier_self
(identifier__solution) identifier__solution
)attribute
(string_'domain_sid') string_'domain_sid'
)subscript
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Build an instance of AuthCallsCredentialListMappingInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.api.v2010.account.sip.domain.auth_types.auth_calls_mapping.auth_calls_credential_list_mapping.AuthCallsCredentialListMappingInstance
:rtype: twilio.rest.api.v2010.account.sip.domain.auth_types.auth_calls_mapping.auth_calls_credential_list_mapping.AuthCallsCredentialListMappingInstance |
(module
(function_definition
(function_name_build_cycle_time) function_name_build_cycle_time
(parameters
(identifier_self) identifier_self
(identifier_build_id) identifier_build_id
)parameters
(block
(expression_statement
(assignment
(identifier_json_form) identifier_json_form
(call
(attribute
(identifier_self) identifier_self
(identifier___retrieve_as_json) identifier___retrieve_as_json
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_builds_path) identifier_builds_path
)attribute
(identifier_build_id) identifier_build_id
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_BuildCycleTime) identifier_BuildCycleTime
(argument_list
(identifier_build_id) identifier_build_id
(subscript
(identifier_json_form) identifier_json_form
(string_u'buildTypeId') string_u'buildTypeId'
)subscript
(call
(identifier_as_date) identifier_as_date
(argument_list
(identifier_json_form) identifier_json_form
(string_u'startDate') string_u'startDate'
)argument_list
)call
(binary_operator
(attribute
(parenthesized_expression
(binary_operator
(call
(identifier_as_date) identifier_as_date
(argument_list
(identifier_json_form) identifier_json_form
(string_u'finishDate') string_u'finishDate'
)argument_list
)call
(call
(identifier_as_date) identifier_as_date
(argument_list
(identifier_json_form) identifier_json_form
(string_u'queuedDate') string_u'queuedDate'
)argument_list
)call
)binary_operator
)parenthesized_expression
(identifier_seconds) identifier_seconds
)attribute
(integer_1000) integer_1000
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a BuildCycleTime object for the given build |
(module
(function_definition
(function_name__get_cmd) function_name__get_cmd
(parameters
(identifier_cmd) identifier_cmd
)parameters
(block
(expression_statement
(assignment
(identifier_check_cmd) identifier_check_cmd
(string_"RunTHetA.py") string_"RunTHetA.py"
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_local_cmd) identifier_local_cmd
(call
(attribute
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_output) identifier_check_output
)attribute
(argument_list
(list
(string_"which") string_"which"
(identifier_check_cmd) identifier_check_cmd
)list
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_CalledProcessError) identifier_CalledProcessError
)attribute
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
(return_statement
(list
(attribute
(identifier_sys) identifier_sys
(identifier_executable) identifier_executable
)attribute
(binary_operator
(string_"%s/%s") string_"%s/%s"
(tuple
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_realpath) identifier_realpath
)attribute
(argument_list
(identifier_local_cmd) identifier_local_cmd
)argument_list
)call
)argument_list
)call
(identifier_cmd) identifier_cmd
)tuple
)binary_operator
)list
)return_statement
)block
)function_definition
)module | Retrieve required commands for running THetA with our local bcbio python. |
(module
(function_definition
(function_name_process_wildcard) function_name_process_wildcard
(parameters
(identifier_fractions) identifier_fractions
)parameters
(block
(expression_statement
(assignment
(identifier_wildcard_zs) identifier_wildcard_zs
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_total_fraction) identifier_total_fraction
(float_0.0) float_0.0
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_z) identifier_z
(identifier_fraction) identifier_fraction
)pattern_list
(call
(attribute
(identifier_fractions) identifier_fractions
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_fraction) identifier_fraction
(string_'?') string_'?'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_wildcard_zs) identifier_wildcard_zs
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_z) identifier_z
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_total_fraction) identifier_total_fraction
(identifier_fraction) identifier_fraction
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(if_statement
(not_operator
(identifier_wildcard_zs) identifier_wildcard_zs
)not_operator
(block
(return_statement
(identifier_fractions) identifier_fractions
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_balance_fraction) identifier_balance_fraction
(binary_operator
(parenthesized_expression
(binary_operator
(float_1.0) float_1.0
(identifier_total_fraction) identifier_total_fraction
)binary_operator
)parenthesized_expression
(call
(identifier_len) identifier_len
(argument_list
(identifier_wildcard_zs) identifier_wildcard_zs
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(for_statement
(identifier_z) identifier_z
(identifier_wildcard_zs) identifier_wildcard_zs
(block
(expression_statement
(assignment
(subscript
(identifier_fractions) identifier_fractions
(identifier_z) identifier_z
)subscript
(identifier_balance_fraction) identifier_balance_fraction
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_fractions) identifier_fractions
)return_statement
)block
)function_definition
)module | Processes element with a wildcard ``?`` weight fraction and returns
composition balanced to 1.0. |
(module
(function_definition
(function_name_download_file) function_name_download_file
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(identifier_local_path) identifier_local_path
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_stream) identifier_stream
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_local_path) identifier_local_path
(string_'wb') string_'wb'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_chunk) identifier_chunk
(call
(identifier_tqdm) identifier_tqdm
(argument_list
(call
(attribute
(identifier_response) identifier_response
(identifier_iter_content) identifier_iter_content
)attribute
(argument_list
(keyword_argument
(identifier_chunk_size) identifier_chunk_size
(integer_1024) integer_1024
)keyword_argument
)argument_list
)call
(keyword_argument
(identifier_unit) identifier_unit
(string_'KB') string_'KB'
)keyword_argument
)argument_list
)call
(block
(if_statement
(identifier_chunk) identifier_chunk
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_chunk) identifier_chunk
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)with_statement
)block
)function_definition
)module | Download a file from a remote host. |
(module
(function_definition
(function_name_list_values) function_name_list_values
(parameters
(identifier_hive) identifier_hive
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
(default_parameter
(identifier_use_32bit_registry) identifier_use_32bit_registry
(False) False
)default_parameter
(default_parameter
(identifier_include_default) identifier_include_default
(True) True
)default_parameter
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(return_statement
(call
(subscript
(identifier___utils__) identifier___utils__
(string_'reg.list_values') string_'reg.list_values'
)subscript
(argument_list
(keyword_argument
(identifier_hive) identifier_hive
(identifier_hive) identifier_hive
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
(keyword_argument
(identifier_use_32bit_registry) identifier_use_32bit_registry
(identifier_use_32bit_registry) identifier_use_32bit_registry
)keyword_argument
(keyword_argument
(identifier_include_default) identifier_include_default
(identifier_include_default) identifier_include_default
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | r'''
Enumerates the values in a registry key or hive.
Args:
hive (str):
The name of the hive. Can be one of the following:
- HKEY_LOCAL_MACHINE or HKLM
- HKEY_CURRENT_USER or HKCU
- HKEY_USER or HKU
- HKEY_CLASSES_ROOT or HKCR
- HKEY_CURRENT_CONFIG or HKCC
key (str):
The key (looks like a path) to the value name. If a key is not
passed, the values under the hive will be returned.
use_32bit_registry (bool):
Accesses the 32bit portion of the registry on 64 bit installations.
On 32bit machines this is ignored.
include_default (bool):
Toggle whether to include the '(Default)' value.
Returns:
list: A list of values under the hive or key.
CLI Example:
.. code-block:: bash
salt '*' reg.list_values HKLM 'SYSTEM\\CurrentControlSet\\Services\\Tcpip' |
(module
(function_definition
(function_name_lazy_property) function_name_lazy_property
(parameters
(identifier_fn) identifier_fn
)parameters
(block
(expression_statement
(assignment
(identifier_attr_name) identifier_attr_name
(binary_operator
(string_'_lazy_') string_'_lazy_'
(attribute
(identifier_fn) identifier_fn
(identifier___name__) identifier___name__
)attribute
)binary_operator
)assignment
)expression_statement
(decorated_definition
(decorator
(identifier_property) identifier_property
)decorator
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
)decorator
(function_definition
(function_name__lazy_property) function_name__lazy_property
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(identifier_attr_name) identifier_attr_name
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_self) identifier_self
(identifier_attr_name) identifier_attr_name
(call
(identifier_fn) identifier_fn
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_attr_name) identifier_attr_name
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier__lazy_property) identifier__lazy_property
)return_statement
)block
)function_definition
)module | Decorator that makes a property lazy-evaluated whilst preserving
docstrings.
Args:
fn (function): the property in question
Returns:
evaluated version of the property. |
(module
(function_definition
(function_name_get_opener) function_name_get_opener
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier_registry) identifier_registry
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_NoOpenerError) identifier_NoOpenerError
(argument_list
(binary_operator
(string_"No opener for %s") string_"No opener for %s"
(identifier_name) identifier_name
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_index) identifier_index
(subscript
(attribute
(identifier_self) identifier_self
(identifier_registry) identifier_registry
)attribute
(identifier_name) identifier_name
)subscript
)assignment
)expression_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_openers) identifier_openers
)attribute
(identifier_index) identifier_index
)subscript
)return_statement
)block
)function_definition
)module | Retrieve an opener for the given protocol
:param name: name of the opener to open
:type name: string
:raises NoOpenerError: if no opener has been registered of that name |
(module
(function_definition
(function_name_connect) function_name_connect
(parameters
(identifier_self) identifier_self
(identifier_nice_quit_ev) identifier_nice_quit_ev
)parameters
(block
(expression_statement
(call
(attribute
(identifier__logger) identifier__logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Connecting to explicit server node: [%s]") string_"Connecting to explicit server node: [%s]"
(attribute
(identifier_self) identifier_self
(identifier_server_host) identifier_server_host
)attribute
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_c) identifier_c
(call
(attribute
(identifier_self) identifier_self
(identifier_primitive_connect) identifier_primitive_connect
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(attribute
(identifier_gevent) identifier_gevent
(identifier_socket) identifier_socket
)attribute
(identifier_error) identifier_error
)attribute
(block
(expression_statement
(call
(attribute
(identifier__logger) identifier__logger
(identifier_exception) identifier_exception
)attribute
(argument_list
(string_"Could not connect to explicit server: [%s]") string_"Could not connect to explicit server: [%s]"
(attribute
(identifier_self) identifier_self
(identifier_server_host) identifier_server_host
)attribute
)argument_list
)call
)expression_statement
(raise_statement
(call
(attribute
(attribute
(identifier_nsq) identifier_nsq
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_NsqConnectGiveUpError) identifier_NsqConnectGiveUpError
)attribute
(argument_list
(binary_operator
(string_"Could not connect to the nsqd server: [%s]") string_"Could not connect to the nsqd server: [%s]"
(tuple
(attribute
(identifier_self) identifier_self
(identifier_server_host) identifier_server_host
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(identifier__logger) identifier__logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Explicit server-node connected: [%s]") string_"Explicit server-node connected: [%s]"
(attribute
(identifier_self) identifier_self
(identifier_server_host) identifier_server_host
)attribute
)argument_list
)call
)expression_statement
(return_statement
(identifier_c) identifier_c
)return_statement
)block
)function_definition
)module | Connect the server. We expect this to implement connection logistics
for servers that were explicitly prescribed to us. |
(module
(function_definition
(function_name_iterate_schema) function_name_iterate_schema
(parameters
(identifier_fields) identifier_fields
(identifier_schema) identifier_schema
(default_parameter
(identifier_path_prefix) identifier_path_prefix
(string_'') string_''
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(identifier_path_prefix) identifier_path_prefix
(comparison_operator
(subscript
(identifier_path_prefix) identifier_path_prefix
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(string_'.') string_'.'
)comparison_operator
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_path_prefix) identifier_path_prefix
(string_'.') string_'.'
)augmented_assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_field_schema) identifier_field_schema
(identifier_schema) identifier_schema
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(subscript
(identifier_field_schema) identifier_field_schema
(string_'name') string_'name'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'group') string_'group'
(identifier_field_schema) identifier_field_schema
)comparison_operator
(block
(for_statement
(identifier_rvals) identifier_rvals
(call
(identifier_iterate_schema) identifier_iterate_schema
(argument_list
(conditional_expression
(subscript
(identifier_fields) identifier_fields
(identifier_name) identifier_name
)subscript
(comparison_operator
(identifier_name) identifier_name
(identifier_fields) identifier_fields
)comparison_operator
(dictionary
)dictionary
)conditional_expression
(subscript
(identifier_field_schema) identifier_field_schema
(string_'group') string_'group'
)subscript
(call
(attribute
(string_'{}{}') string_'{}{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_path_prefix) identifier_path_prefix
(identifier_name) identifier_name
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(yield
(identifier_rvals) identifier_rvals
)yield
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(yield
(tuple
(identifier_field_schema) identifier_field_schema
(identifier_fields) identifier_fields
(call
(attribute
(string_'{}{}') string_'{}{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_path_prefix) identifier_path_prefix
(identifier_name) identifier_name
)argument_list
)call
)tuple
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module | Iterate over all schema sub-fields.
This will iterate over all field definitions in the schema. Some field v
alues might be None.
:param fields: field values to iterate over
:type fields: dict
:param schema: schema to iterate over
:type schema: dict
:param path_prefix: dot separated path prefix
:type path_prefix: str
:return: (field schema, field value, field path)
:rtype: tuple |
(module
(function_definition
(function_name_add_ds_ids_from_files) function_name_add_ds_ids_from_files
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_file_handlers) identifier_file_handlers
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_file_handlers) identifier_file_handlers
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_fh) identifier_fh
(subscript
(identifier_file_handlers) identifier_file_handlers
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_avail_ids) identifier_avail_ids
(call
(attribute
(identifier_fh) identifier_fh
(identifier_available_datasets) identifier_available_datasets
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_NotImplementedError) identifier_NotImplementedError
(block
(continue_statement
)continue_statement
)block
)except_clause
)try_statement
(for_statement
(pattern_list
(identifier_ds_id) identifier_ds_id
(identifier_ds_info) identifier_ds_info
)pattern_list
(identifier_avail_ids) identifier_avail_ids
(block
(expression_statement
(assignment
(identifier_coordinates) identifier_coordinates
(call
(attribute
(identifier_ds_info) identifier_ds_info
(identifier_get) identifier_get
)attribute
(argument_list
(string_'coordinates') string_'coordinates'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_coordinates) identifier_coordinates
(identifier_list) identifier_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_ds_info) identifier_ds_info
(string_'coordinates') string_'coordinates'
)subscript
(call
(identifier_tuple) identifier_tuple
(argument_list
(subscript
(identifier_ds_info) identifier_ds_info
(string_'coordinates') string_'coordinates'
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ids) identifier_ids
)attribute
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(identifier_ds_id) identifier_ds_id
(identifier_ds_info) identifier_ds_info
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Check files for more dynamically discovered datasets. |
(module
(function_definition
(function_name_case_sensitive_name) function_name_case_sensitive_name
(parameters
(identifier_self) identifier_self
(identifier_package_name) identifier_package_name
)parameters
(block
(if_statement
(call
(identifier_len) identifier_len
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_environment) identifier_environment
)attribute
(identifier_package_name) identifier_package_name
)subscript
)argument_list
)call
(block
(return_statement
(attribute
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_environment) identifier_environment
)attribute
(identifier_package_name) identifier_package_name
)subscript
(integer_0) integer_0
)subscript
(identifier_project_name) identifier_project_name
)attribute
)return_statement
)block
)if_statement
)block
)function_definition
)module | Return case-sensitive package name given any-case package name
@param project_name: PyPI project name
@type project_name: string |
(module
(function_definition
(function_name_download_if_not_exists) function_name_download_if_not_exists
(parameters
(typed_parameter
(identifier_url) identifier_url
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_filename) identifier_filename
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_default_parameter
(identifier_skip_cert_verify) identifier_skip_cert_verify
(type
(identifier_bool) identifier_bool
)type
(True) True
)typed_default_parameter
(typed_default_parameter
(identifier_mkdir) identifier_mkdir
(type
(identifier_bool) identifier_bool
)type
(True) True
)typed_default_parameter
)parameters
(type
(None) None
)type
(block
(if_statement
(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
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(string_"No need to download, already have: {}") string_"No need to download, already have: {}"
(identifier_filename) identifier_filename
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(if_statement
(identifier_mkdir) identifier_mkdir
(block
(expression_statement
(assignment
(pattern_list
(identifier_directory) identifier_directory
(identifier_basename) identifier_basename
)pattern_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_mkdir_p) identifier_mkdir_p
(argument_list
(identifier_directory) identifier_directory
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_download) identifier_download
(argument_list
(keyword_argument
(identifier_url) identifier_url
(identifier_url) identifier_url
)keyword_argument
(keyword_argument
(identifier_filename) identifier_filename
(identifier_filename) identifier_filename
)keyword_argument
(keyword_argument
(identifier_skip_cert_verify) identifier_skip_cert_verify
(identifier_skip_cert_verify) identifier_skip_cert_verify
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Downloads a URL to a file, unless the file already exists. |
(module
(function_definition
(function_name_is_valid) function_name_is_valid
(parameters
(typed_parameter
(identifier_obj) identifier_obj
(type
(identifier_JSGValidateable) identifier_JSGValidateable
)type
)typed_parameter
(typed_default_parameter
(identifier_log) identifier_log
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(identifier_TextIO) identifier_TextIO
)type
(type
(identifier_Logger) identifier_Logger
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(return_statement
(call
(attribute
(identifier_obj) identifier_obj
(identifier__is_valid) identifier__is_valid
)attribute
(argument_list
(identifier_log) identifier_log
)argument_list
)call
)return_statement
)block
)function_definition
)module | Determine whether obj is valid
:param obj: Object to validate
:param log: Logger to record validation failures. If absent, no information is recorded |
(module
(function_definition
(function_name_reset) function_name_reset
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__current_index) identifier__current_index
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__current_value) identifier__current_value
)attribute
(attribute
(identifier_self) identifier_self
(identifier__default_value) identifier__default_value
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__current_rendered) identifier__current_rendered
)attribute
(attribute
(identifier_self) identifier_self
(identifier__default_rendered) identifier__default_rendered
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
(None) None
)assignment
)expression_statement
)block
)function_definition
)module | Reset the field to its default state |
(module
(function_definition
(function_name__create_scaling_policies) function_name__create_scaling_policies
(parameters
(identifier_conn) identifier_conn
(identifier_as_name) identifier_as_name
(identifier_scaling_policies) identifier_scaling_policies
)parameters
(block
(expression_statement
(string_'helper function to create scaling policies') string_'helper function to create scaling policies'
)expression_statement
(if_statement
(identifier_scaling_policies) identifier_scaling_policies
(block
(for_statement
(identifier_policy) identifier_policy
(identifier_scaling_policies) identifier_scaling_policies
(block
(expression_statement
(assignment
(identifier_policy) identifier_policy
(call
(attribute
(attribute
(identifier_autoscale) identifier_autoscale
(identifier_policy) identifier_policy
)attribute
(identifier_ScalingPolicy) identifier_ScalingPolicy
)attribute
(argument_list
(keyword_argument
(identifier_name) identifier_name
(subscript
(identifier_policy) identifier_policy
(string_"name") string_"name"
)subscript
)keyword_argument
(keyword_argument
(identifier_as_name) identifier_as_name
(identifier_as_name) identifier_as_name
)keyword_argument
(keyword_argument
(identifier_adjustment_type) identifier_adjustment_type
(subscript
(identifier_policy) identifier_policy
(string_"adjustment_type") string_"adjustment_type"
)subscript
)keyword_argument
(keyword_argument
(identifier_scaling_adjustment) identifier_scaling_adjustment
(subscript
(identifier_policy) identifier_policy
(string_"scaling_adjustment") string_"scaling_adjustment"
)subscript
)keyword_argument
(keyword_argument
(identifier_min_adjustment_step) identifier_min_adjustment_step
(call
(attribute
(identifier_policy) identifier_policy
(identifier_get) identifier_get
)attribute
(argument_list
(string_"min_adjustment_step") string_"min_adjustment_step"
(None) None
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_cooldown) identifier_cooldown
(subscript
(identifier_policy) identifier_policy
(string_"cooldown") string_"cooldown"
)subscript
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_conn) identifier_conn
(identifier_create_scaling_policy) identifier_create_scaling_policy
)attribute
(argument_list
(identifier_policy) identifier_policy
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)function_definition
)module | helper function to create scaling policies |
(module
(function_definition
(function_name_load_xml) function_name_load_xml
(parameters
(identifier_self) identifier_self
(identifier_xmlfile) identifier_xmlfile
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Loading XML') string_'Loading XML'
)argument_list
)call
)expression_statement
(for_statement
(identifier_c) identifier_c
(attribute
(identifier_self) identifier_self
(identifier_components) identifier_components
)attribute
(block
(expression_statement
(call
(attribute
(identifier_c) identifier_c
(identifier_load_xml) identifier_load_xml
)attribute
(argument_list
(identifier_xmlfile) identifier_xmlfile
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(identifier_name) identifier_name
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_like) identifier_like
)attribute
(identifier_sourceNames) identifier_sourceNames
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_update_source) identifier_update_source
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__fitcache) identifier__fitcache
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Finished Loading XML') string_'Finished Loading XML'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Load model definition from XML.
Parameters
----------
xmlfile : str
Name of the input XML file. |
(module
(function_definition
(function_name_blocks) function_name_blocks
(parameters
(identifier_self) identifier_self
(identifier_lines) identifier_lines
)parameters
(block
(expression_statement
(assignment
(identifier_state) identifier_state
(call
(attribute
(attribute
(identifier_markdown) identifier_markdown
(identifier_blockparser) identifier_blockparser
)attribute
(identifier_State) identifier_State
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_blocks) identifier_blocks
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_state) identifier_state
(identifier_set) identifier_set
)attribute
(argument_list
(string_'start') string_'start'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_currblock) identifier_currblock
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(identifier_lines) identifier_lines
(block
(expression_statement
(augmented_assignment
(identifier_line) identifier_line
(string_'\n') string_'\n'
)augmented_assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_state) identifier_state
(identifier_isstate) identifier_isstate
)attribute
(argument_list
(string_'start') string_'start'
)argument_list
)call
(block
(if_statement
(comparison_operator
(subscript
(identifier_line) identifier_line
(slice
(colon) colon
(integer_3) integer_3
)slice
)subscript
(string_'```') string_'```'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_state) identifier_state
(identifier_set) identifier_set
)attribute
(argument_list
(string_'```') string_'```'
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_state) identifier_state
(identifier_set) identifier_set
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_blocks) identifier_blocks
(identifier_append) identifier_append
)attribute
(argument_list
(string_'') string_''
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_currblock) identifier_currblock
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_blocks) identifier_blocks
)argument_list
)call
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_marker) identifier_marker
(subscript
(identifier_line) identifier_line
(slice
(colon) colon
(integer_3) integer_3
)slice
)subscript
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_state) identifier_state
(identifier_isstate) identifier_isstate
)attribute
(argument_list
(identifier_marker) identifier_marker
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_state) identifier_state
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)else_clause
)if_statement
(expression_statement
(augmented_assignment
(subscript
(identifier_blocks) identifier_blocks
(identifier_currblock) identifier_currblock
)subscript
(identifier_line) identifier_line
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_blocks) identifier_blocks
)return_statement
)block
)function_definition
)module | Groups lines into markdown blocks |
(module
(function_definition
(function_name_graph_edges) function_name_graph_edges
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_edges) identifier_edges
(call
(attribute
(call
(attribute
(identifier_nx) identifier_nx
(identifier_get_edge_attributes) identifier_get_edge_attributes
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__graph) identifier__graph
)attribute
(string_'branch') string_'branch'
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_edges_sorted) identifier_edges_sorted
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(identifier_edges) identifier_edges
)argument_list
)call
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier__) identifier__
)lambda_parameters
(parenthesized_expression
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier_sorted) identifier_sorted
(argument_list
(list
(call
(identifier_repr) identifier_repr
(argument_list
(subscript
(subscript
(identifier__) identifier__
(integer_0) integer_0
)subscript
(integer_0) integer_0
)subscript
)argument_list
)call
(call
(identifier_repr) identifier_repr
(argument_list
(subscript
(subscript
(identifier__) identifier__
(integer_0) integer_0
)subscript
(integer_1) integer_1
)subscript
)argument_list
)call
)list
)argument_list
)call
)argument_list
)call
)parenthesized_expression
)lambda
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_edge) identifier_edge
(identifier_edges_sorted) identifier_edges_sorted
(block
(expression_statement
(yield
(dictionary
(pair
(string_'adj_nodes') string_'adj_nodes'
(subscript
(identifier_edge) identifier_edge
(integer_0) integer_0
)subscript
)pair
(pair
(string_'branch') string_'branch'
(subscript
(identifier_edge) identifier_edge
(integer_1) integer_1
)subscript
)pair
)dictionary
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Returns a generator for iterating over graph edges
The edge of a graph is described by the two adjacent node and the branch
object itself. Whereas the branch object is used to hold all relevant
power system parameters.
Yields
------
int
Description #TODO check
Note
----
There are generator functions for nodes (`Graph.nodes()`) and edges
(`Graph.edges()`) in NetworkX but unlike graph nodes, which can be
represented by objects, branch objects can only be accessed by using an
edge attribute ('branch' is used here)
To make access to attributes of the branch objects simpler and more
intuitive for the user, this generator yields a dictionary for each edge
that contains information about adjacent nodes and the branch object.
Note, the construction of the dictionary highly depends on the structure
of the in-going tuple (which is defined by the needs of networkX). If
this changes, the code will break. |
(module
(function_definition
(function_name_incr) function_name_incr
(parameters
(identifier_self) identifier_self
(identifier_att) identifier_att
(default_parameter
(identifier_val) identifier_val
(integer_1) integer_1
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_att) identifier_att
(attribute
(identifier_self) identifier_self
(identifier_counters) identifier_counters
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"%s is not a counter.") string_"%s is not a counter."
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_db) identifier_db
)attribute
(identifier_hincrby) identifier_hincrby
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_key) identifier_key
)attribute
(argument_list
)argument_list
)call
(identifier_att) identifier_att
(identifier_val) identifier_val
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Increments a counter. |
(module
(function_definition
(function_name__write_scalar) function_name__write_scalar
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_name) identifier_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
(identifier_scalar_value) identifier_scalar_value
(typed_parameter
(identifier_iteration) identifier_iteration
(type
(identifier_int) identifier_int
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(string_"Writes single scalar value to Tensorboard.") string_"Writes single scalar value to Tensorboard."
)expression_statement
(expression_statement
(assignment
(identifier_tag) identifier_tag
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_metrics_root) identifier_metrics_root
)attribute
(identifier_name) identifier_name
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tbwriter) identifier_tbwriter
)attribute
(identifier_add_scalar) identifier_add_scalar
)attribute
(argument_list
(keyword_argument
(identifier_tag) identifier_tag
(identifier_tag) identifier_tag
)keyword_argument
(keyword_argument
(identifier_scalar_value) identifier_scalar_value
(identifier_scalar_value) identifier_scalar_value
)keyword_argument
(keyword_argument
(identifier_global_step) identifier_global_step
(identifier_iteration) identifier_iteration
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Writes single scalar value to Tensorboard. |
(module
(function_definition
(function_name_GetClientOs) function_name_GetClientOs
(parameters
(identifier_client_id) identifier_client_id
(default_parameter
(identifier_token) identifier_token
(None) None
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(identifier_data_store) identifier_data_store
(identifier_RelationalDBEnabled) identifier_RelationalDBEnabled
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_kb) identifier_kb
(attribute
(call
(attribute
(attribute
(identifier_data_store) identifier_data_store
(identifier_REL_DB) identifier_REL_DB
)attribute
(identifier_ReadClientSnapshot) identifier_ReadClientSnapshot
)attribute
(argument_list
(identifier_client_id) identifier_client_id
)argument_list
)call
(identifier_knowledge_base) identifier_knowledge_base
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(attribute
(identifier_aff4) identifier_aff4
(identifier_FACTORY) identifier_FACTORY
)attribute
(identifier_Open) identifier_Open
)attribute
(argument_list
(identifier_client_id) identifier_client_id
(keyword_argument
(identifier_token) identifier_token
(identifier_token) identifier_token
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_client) identifier_client
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_kb) identifier_kb
(call
(attribute
(identifier_client) identifier_client
(identifier_Get) identifier_Get
)attribute
(argument_list
(attribute
(attribute
(identifier_client) identifier_client
(identifier_Schema) identifier_Schema
)attribute
(identifier_KNOWLEDGE_BASE) identifier_KNOWLEDGE_BASE
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
)block
)else_clause
)if_statement
(return_statement
(attribute
(identifier_kb) identifier_kb
(identifier_os) identifier_os
)attribute
)return_statement
)block
)function_definition
)module | Returns last known operating system name that the client used. |
(module
(function_definition
(function_name__resize) function_name__resize
(parameters
(identifier_self) identifier_self
(identifier_ratio_x) identifier_ratio_x
(identifier_ratio_y) identifier_ratio_y
(identifier_resampling) identifier_resampling
)parameters
(block
(expression_statement
(assignment
(identifier_new_width) identifier_new_width
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_ceil) identifier_ceil
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_width) identifier_width
)attribute
(identifier_ratio_x) identifier_ratio_x
)binary_operator
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_height) identifier_new_height
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_ceil) identifier_ceil
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_height) identifier_height
)attribute
(identifier_ratio_y) identifier_ratio_y
)binary_operator
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dest_affine) identifier_dest_affine
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_affine) identifier_affine
)attribute
(call
(attribute
(identifier_Affine) identifier_Affine
(identifier_scale) identifier_scale
)attribute
(argument_list
(binary_operator
(integer_1) integer_1
(identifier_ratio_x) identifier_ratio_x
)binary_operator
(binary_operator
(integer_1) integer_1
(identifier_ratio_y) identifier_ratio_y
)binary_operator
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_not_loaded) identifier_not_loaded
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_window) identifier_window
(call
(attribute
(attribute
(identifier_rasterio) identifier_rasterio
(identifier_windows) identifier_windows
)attribute
(identifier_Window) identifier_Window
)attribute
(argument_list
(integer_0) integer_0
(integer_0) integer_0
(attribute
(identifier_self) identifier_self
(identifier_width) identifier_width
)attribute
(attribute
(identifier_self) identifier_self
(identifier_height) identifier_height
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resized_raster) identifier_resized_raster
(call
(attribute
(identifier_self) identifier_self
(identifier_get_window) identifier_get_window
)attribute
(argument_list
(identifier_window) identifier_window
(keyword_argument
(identifier_xsize) identifier_xsize
(identifier_new_width) identifier_new_width
)keyword_argument
(keyword_argument
(identifier_ysize) identifier_ysize
(identifier_new_height) identifier_new_height
)keyword_argument
(keyword_argument
(identifier_resampling) identifier_resampling
(identifier_resampling) identifier_resampling
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_resized_raster) identifier_resized_raster
(call
(attribute
(identifier_self) identifier_self
(identifier__reproject) identifier__reproject
)attribute
(argument_list
(identifier_new_width) identifier_new_width
(identifier_new_height) identifier_new_height
(identifier_dest_affine) identifier_dest_affine
(keyword_argument
(identifier_resampling) identifier_resampling
(identifier_resampling) identifier_resampling
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_resized_raster) identifier_resized_raster
)return_statement
)block
)function_definition
)module | Return raster resized by ratio. |
(module
(function_definition
(function_name_listen_tta) function_name_listen_tta
(parameters
(identifier_self) identifier_self
(identifier_target) identifier_target
(identifier_timeout) identifier_timeout
)parameters
(block
(expression_statement
(assignment
(identifier_info) identifier_info
(string_"{device} does not support listen as Type A Target") string_"{device} does not support listen as Type A Target"
)assignment
)expression_statement
(raise_statement
(call
(attribute
(attribute
(identifier_nfc) identifier_nfc
(identifier_clf) identifier_clf
)attribute
(identifier_UnsupportedTargetError) identifier_UnsupportedTargetError
)attribute
(argument_list
(call
(attribute
(identifier_info) identifier_info
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_device) identifier_device
(identifier_self) identifier_self
)keyword_argument
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Listen as Type A Target is not supported. |
(module
(function_definition
(function_name_deprecated) function_name_deprecated
(parameters
(identifier_instructions) identifier_instructions
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_func) identifier_func
)parameters
(block
(decorated_definition
(decorator
(call
(attribute
(identifier_functools) identifier_functools
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)decorator
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(call
(attribute
(string_'Call to deprecated function {}. {}') string_'Call to deprecated function {}. {}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_func) identifier_func
(identifier___name__) identifier___name__
)attribute
(identifier_instructions) identifier_instructions
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_frame) identifier_frame
(attribute
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_currentframe) identifier_currentframe
)attribute
(argument_list
)argument_list
)call
(identifier_f_back) identifier_f_back
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn_explicit) identifier_warn_explicit
)attribute
(argument_list
(identifier_message) identifier_message
(keyword_argument
(identifier_category) identifier_category
(identifier_DeprecatedWarning) identifier_DeprecatedWarning
)keyword_argument
(keyword_argument
(identifier_filename) identifier_filename
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_getfile) identifier_getfile
)attribute
(argument_list
(attribute
(identifier_frame) identifier_frame
(identifier_f_code) identifier_f_code
)attribute
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_lineno) identifier_lineno
(attribute
(identifier_frame) identifier_frame
(identifier_f_lineno) identifier_f_lineno
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_func) identifier_func
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
(return_statement
(identifier_decorator) identifier_decorator
)return_statement
)block
)function_definition
)module | Flags a method as deprecated.
:param instructions: A human-friendly string of instructions, such as: 'Please migrate to add_proxy() ASAP.'
:return: DeprecatedWarning |
(module
(function_definition
(function_name_get_app_content_types) function_name_get_app_content_types
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_from_statement
(dotted_name
(identifier_django) identifier_django
(identifier_contrib) identifier_contrib
(identifier_contenttypes) identifier_contenttypes
(identifier_models) identifier_models
)dotted_name
(dotted_name
(identifier_ContentType) identifier_ContentType
)dotted_name
)import_from_statement
(return_statement
(list_comprehension
(call
(attribute
(attribute
(identifier_ContentType) identifier_ContentType
(identifier_objects) identifier_objects
)attribute
(identifier_get_for_model) identifier_get_for_model
)attribute
(argument_list
(identifier_c) identifier_c
)argument_list
)call
(for_in_clause
(identifier_c) identifier_c
(call
(attribute
(identifier_self) identifier_self
(identifier_get_app_model_classes) identifier_get_app_model_classes
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Return a list of all content_types for this app. |
(module
(function_definition
(function_name_setup_rabbitmq) function_name_setup_rabbitmq
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_rabbitmq_key) identifier_rabbitmq_key
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_rabbitmq_key) identifier_rabbitmq_key
)attribute
(call
(attribute
(string_'{}:start_urls') string_'{}:start_urls'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
(call
(attribute
(identifier_connection) identifier_connection
(identifier_from_settings) identifier_from_settings
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_crawler) identifier_crawler
)attribute
(identifier_settings) identifier_settings
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_crawler) identifier_crawler
)attribute
(identifier_signals) identifier_signals
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_spider_idle) identifier_spider_idle
)attribute
(keyword_argument
(identifier_signal) identifier_signal
(attribute
(identifier_signals) identifier_signals
(identifier_spider_idle) identifier_spider_idle
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_crawler) identifier_crawler
)attribute
(identifier_signals) identifier_signals
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_item_scraped) identifier_item_scraped
)attribute
(keyword_argument
(identifier_signal) identifier_signal
(attribute
(identifier_signals) identifier_signals
(identifier_item_scraped) identifier_item_scraped
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Setup RabbitMQ connection.
Call this method after spider has set its crawler object.
:return: None |
(module
(function_definition
(function_name_format_exc_skip) function_name_format_exc_skip
(parameters
(identifier_skip) identifier_skip
(default_parameter
(identifier_limit) identifier_limit
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_etype) identifier_etype
(identifier_val) identifier_val
(identifier_tb) identifier_tb
)pattern_list
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exc_info) identifier_exc_info
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_skip) identifier_skip
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_tb) identifier_tb
(attribute
(identifier_tb) identifier_tb
(identifier_tb_next) identifier_tb_next
)attribute
)assignment
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(parenthesized_expression
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier_format_exception) identifier_format_exception
(argument_list
(identifier_etype) identifier_etype
(identifier_val) identifier_val
(identifier_tb) identifier_tb
(identifier_limit) identifier_limit
)argument_list
)call
)argument_list
)call
)parenthesized_expression
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Like traceback.format_exc but allow skipping the first frames. |
(module
(function_definition
(function_name__add_variable_proxy_methods) function_name__add_variable_proxy_methods
(parameters
(identifier_var) identifier_var
(identifier_proxy_tensor) identifier_proxy_tensor
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_proxy_tensor) identifier_proxy_tensor
(identifier_read_value) identifier_read_value
)attribute
(lambda
(call
(attribute
(identifier_tf) identifier_tf
(identifier_identity) identifier_identity
)attribute
(argument_list
(identifier_proxy_tensor) identifier_proxy_tensor
)argument_list
)call
)lambda
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_proxy_tensor) identifier_proxy_tensor
(identifier_assign_sub) identifier_assign_sub
)attribute
(attribute
(identifier_var) identifier_var
(identifier_assign_sub) identifier_assign_sub
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_proxy_tensor) identifier_proxy_tensor
(identifier_assign) identifier_assign
)attribute
(attribute
(identifier_var) identifier_var
(identifier_assign) identifier_assign
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_proxy_tensor) identifier_proxy_tensor
(identifier_initialized_value) identifier_initialized_value
)attribute
(attribute
(identifier_var) identifier_var
(identifier_initialized_value) identifier_initialized_value
)attribute
)assignment
)expression_statement
)block
)function_definition
)module | Proxy methods of underlying variable.
This enables our custom getters to still work with, e.g., batch norm.
Args:
var: Variable to proxy
proxy_tensor: Tensor that is identity of var |
(module
(function_definition
(function_name_has_cwd) function_name_has_cwd
(parameters
(identifier_state) identifier_state
(identifier_dir) identifier_dir
(default_parameter
(identifier_incorrect_msg) identifier_incorrect_msg
(string_"Your current working directory should be `{{dir}}`. Use `cd {{dir}}` to navigate there.") string_"Your current working directory should be `{{dir}}`. Use `cd {{dir}}` to navigate there."
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_expr) identifier_expr
(call
(attribute
(string_"[[ $PWD == '{}' ]]") string_"[[ $PWD == '{}' ]]"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_dir) identifier_dir
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__msg) identifier__msg
(call
(attribute
(identifier_state) identifier_state
(identifier_build_message) identifier_build_message
)attribute
(argument_list
(identifier_incorrect_msg) identifier_incorrect_msg
(keyword_argument
(identifier_fmt_kwargs) identifier_fmt_kwargs
(dictionary
(pair
(string_'dir') string_'dir'
(identifier_dir) identifier_dir
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_has_expr_exit_code) identifier_has_expr_exit_code
(argument_list
(identifier_state) identifier_state
(identifier_expr) identifier_expr
(keyword_argument
(identifier_output) identifier_output
(string_"0") string_"0"
)keyword_argument
(keyword_argument
(identifier_incorrect_msg) identifier_incorrect_msg
(identifier__msg) identifier__msg
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_state) identifier_state
)return_statement
)block
)function_definition
)module | Check whether the student is in the expected directory.
This check is typically used before using ``has_expr_output()``
to make sure the student didn't navigate somewhere else.
Args:
state: State instance describing student and solution code. Can be omitted if used with ``Ex()``.
dir: Directory that the student should be in. Always use the absolute path.
incorrect_msg: If specified, this overrides the automatically generated message in
case the student is not in the expected directory.
:Example:
If you want to be sure that the student is in ``/home/repl/my_dir``: ::
Ex().has_cwd('/home/repl/my_dir') |
(module
(function_definition
(function_name_timed) function_name_timed
(parameters
(identifier_function) identifier_function
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_function) identifier_function
)argument_list
)call
)decorator
(function_definition
(function_name_function_wrapper) function_name_function_wrapper
(parameters
(identifier_obj) identifier_obj
(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_name) identifier_name
(binary_operator
(binary_operator
(attribute
(attribute
(identifier_obj) identifier_obj
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
(string_'.') string_'.'
)binary_operator
(attribute
(identifier_function) identifier_function
(identifier___name__) identifier___name__
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_start) identifier_start
(call
(attribute
(identifier_time) identifier_time
(identifier_clock) identifier_clock
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_function) identifier_function
(argument_list
(identifier_obj) identifier_obj
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'{}: {:.4f} seconds') string_'{}: {:.4f} seconds'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
(binary_operator
(call
(attribute
(identifier_time) identifier_time
(identifier_clock) identifier_clock
)attribute
(argument_list
)argument_list
)call
(identifier_start) identifier_start
)binary_operator
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_function_wrapper) identifier_function_wrapper
)return_statement
)block
)function_definition
)module | Decorator timing the method call and printing the result to `stdout` |
(module
(function_definition
(function_name_create_datasource) function_name_create_datasource
(parameters
(identifier_jboss_config) identifier_jboss_config
(identifier_name) identifier_name
(identifier_datasource_properties) identifier_datasource_properties
(default_parameter
(identifier_profile) identifier_profile
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"======================== MODULE FUNCTION: jboss7.create_datasource, name=%s, profile=%s") string_"======================== MODULE FUNCTION: jboss7.create_datasource, name=%s, profile=%s"
(identifier_name) identifier_name
(identifier_profile) identifier_profile
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_ds_resource_description) identifier_ds_resource_description
(call
(identifier___get_datasource_resource_description) identifier___get_datasource_resource_description
(argument_list
(identifier_jboss_config) identifier_jboss_config
(identifier_name) identifier_name
(identifier_profile) identifier_profile
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_operation) identifier_operation
(call
(attribute
(string_'/subsystem=datasources/data-source="{name}":add({properties})') string_'/subsystem=datasources/data-source="{name}":add({properties})'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_properties) identifier_properties
(call
(identifier___get_properties_assignment_string) identifier___get_properties_assignment_string
(argument_list
(identifier_datasource_properties) identifier_datasource_properties
(identifier_ds_resource_description) identifier_ds_resource_description
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_profile) identifier_profile
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_operation) identifier_operation
(binary_operator
(call
(attribute
(string_'/profile="{profile}"') string_'/profile="{profile}"'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_profile) identifier_profile
(identifier_profile) identifier_profile
)keyword_argument
)argument_list
)call
(identifier_operation) identifier_operation
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'jboss7_cli.run_operation') string_'jboss7_cli.run_operation'
)subscript
(argument_list
(identifier_jboss_config) identifier_jboss_config
(identifier_operation) identifier_operation
(keyword_argument
(identifier_fail_on_error) identifier_fail_on_error
(False) False
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create datasource in running jboss instance
jboss_config
Configuration dictionary with properties specified above.
name
Datasource name
datasource_properties
A dictionary of datasource properties to be created:
- driver-name: mysql
- connection-url: 'jdbc:mysql://localhost:3306/sampleDatabase'
- jndi-name: 'java:jboss/datasources/sampleDS'
- user-name: sampleuser
- password: secret
- min-pool-size: 3
- use-java-context: True
profile
The profile name (JBoss domain mode only)
CLI Example:
.. code-block:: bash
salt '*' jboss7.create_datasource '{"cli_path": "integration.modules.sysmod.SysModuleTest.test_valid_docs", "controller": "10.11.12.13:9999", "cli_user": "jbossadm", "cli_password": "jbossadm"}' 'my_datasource' '{"driver-name": "mysql", "connection-url": "jdbc:mysql://localhost:3306/sampleDatabase", "jndi-name": "java:jboss/datasources/sampleDS", "user-name": "sampleuser", "password": "secret", "min-pool-size": 3, "use-java-context": True}' |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_scheduler_threads) identifier_scheduler_threads
(list
(call
(identifier_Thread) identifier_Thread
(argument_list
(keyword_argument
(identifier_target) identifier_target
(attribute
(identifier_self) identifier_self
(identifier__monitor_events) identifier__monitor_events
)attribute
)keyword_argument
(keyword_argument
(identifier_daemon) identifier_daemon
(True) True
)keyword_argument
)argument_list
)call
(call
(identifier_Thread) identifier_Thread
(argument_list
(keyword_argument
(identifier_target) identifier_target
(attribute
(identifier_self) identifier_self
(identifier__processing_controller_status) identifier__processing_controller_status
)attribute
)keyword_argument
(keyword_argument
(identifier_daemon) identifier_daemon
(True) True
)keyword_argument
)argument_list
)call
(call
(identifier_Thread) identifier_Thread
(argument_list
(keyword_argument
(identifier_target) identifier_target
(attribute
(identifier_self) identifier_self
(identifier__schedule_processing_blocks) identifier__schedule_processing_blocks
)attribute
)keyword_argument
(keyword_argument
(identifier_daemon) identifier_daemon
(True) True
)keyword_argument
)argument_list
)call
(call
(identifier_Thread) identifier_Thread
(argument_list
(keyword_argument
(identifier_target) identifier_target
(attribute
(identifier_self) identifier_self
(identifier__monitor_pbc_status) identifier__monitor_pbc_status
)attribute
)keyword_argument
(keyword_argument
(identifier_daemon) identifier_daemon
(True) True
)keyword_argument
)argument_list
)call
)list
)assignment
)expression_statement
(for_statement
(identifier_thread) identifier_thread
(identifier_scheduler_threads) identifier_scheduler_threads
(block
(expression_statement
(call
(attribute
(identifier_thread) identifier_thread
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)for_statement
(try_statement
(block
(for_statement
(identifier_thread) identifier_thread
(identifier_scheduler_threads) identifier_scheduler_threads
(block
(expression_statement
(call
(attribute
(identifier_thread) identifier_thread
(identifier_join) identifier_join
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(except_clause
(identifier_KeyboardInterrupt) identifier_KeyboardInterrupt
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Keyboard interrupt!') string_'Keyboard interrupt!'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
)block
)except_clause
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Finally!') string_'Finally!'
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Start the scheduler threads. |
(module
(function_definition
(function_name_newAddress) function_name_newAddress
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_currency) identifier_currency
(string_'btc') string_'btc'
)default_parameter
(default_parameter
(identifier_label) identifier_label
(string_'') string_''
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_request) identifier_request
(binary_operator
(binary_operator
(string_'/v1/deposit/') string_'/v1/deposit/'
(identifier_currency) identifier_currency
)binary_operator
(string_'/newAddress') string_'/newAddress'
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_base_url) identifier_base_url
)attribute
(identifier_request) identifier_request
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'request') string_'request'
(identifier_request) identifier_request
)pair
(pair
(string_'nonce') string_'nonce'
(call
(attribute
(identifier_self) identifier_self
(identifier_get_nonce) identifier_get_nonce
)attribute
(argument_list
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_label) identifier_label
(string_'') string_''
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'label') string_'label'
)subscript
(identifier_label) identifier_label
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_requests) identifier_requests
(identifier_post) identifier_post
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_headers) identifier_headers
(call
(attribute
(identifier_self) identifier_self
(identifier_prepare) identifier_prepare
)attribute
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Send a request for a new cryptocurrency deposit address
with an optional label. Return the response.
Arguements:
currency -- a Gemini supported cryptocurrency (btc, eth)
label -- optional label for the deposit address |
(module
(function_definition
(function_name_import_address) function_name_import_address
(parameters
(identifier_self) identifier_self
(identifier_address) identifier_address
(default_parameter
(identifier_account) identifier_account
(string_"*") string_"*"
)default_parameter
(default_parameter
(identifier_rescan) identifier_rescan
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier_make_request) identifier_make_request
)attribute
(argument_list
(string_"importaddress") string_"importaddress"
(list
(identifier_address) identifier_address
(identifier_account) identifier_account
(identifier_rescan) identifier_rescan
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_error) identifier_error
(call
(attribute
(identifier_response) identifier_response
(identifier_get) identifier_get
)attribute
(argument_list
(string_'error') string_'error'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_error) identifier_error
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(identifier_error) identifier_error
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | param address = address to import
param label= account name to use |
(module
(function_definition
(function_name__wrap_ws) function_name__wrap_ws
(parameters
(identifier_self) identifier_self
(identifier_handler) identifier_handler
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_method) identifier_method
(call
(attribute
(identifier_self) identifier_self
(identifier_request_method) identifier_request_method
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(await
(call
(identifier_handler) identifier_handler
(argument_list
(identifier_self) identifier_self
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_status) identifier_status
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_responses) identifier_responses
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_method) identifier_method
(identifier_OK) identifier_OK
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(dictionary
(pair
(string_'type') string_'type'
(string_'response') string_'response'
)pair
(pair
(string_'key') string_'key'
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(string_'key') string_'key'
(None) None
)argument_list
)call
)pair
(pair
(string_'status') string_'status'
(identifier_status) identifier_status
)pair
(pair
(string_'payload') string_'payload'
(identifier_data) identifier_data
)pair
)dictionary
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_ex) identifier_ex
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(dictionary
(pair
(string_'type') string_'type'
(string_'response') string_'response'
)pair
(pair
(string_'key') string_'key'
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(string_'key') string_'key'
(None) None
)argument_list
)call
)pair
(pair
(string_'status') string_'status'
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_ex) identifier_ex
(string_'status') string_'status'
(integer_500) integer_500
)argument_list
)call
)pair
(pair
(string_'payload') string_'payload'
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_ex) identifier_ex
(string_'msg') string_'msg'
(string_'general error') string_'general error'
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_method) identifier_method
(identifier_response) identifier_response
)argument_list
)call
)return_statement
)block
)function_definition
)module | wraps a handler by receiving a websocket request and returning a websocket response |
(module
(function_definition
(function_name_deinstall) function_name_deinstall
(parameters
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_portpath) identifier_portpath
(call
(identifier__check_portname) identifier__check_portname
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_old) identifier_old
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'pkg.list_pkgs') string_'pkg.list_pkgs'
)subscript
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'cmd.run_all') string_'cmd.run_all'
)subscript
(argument_list
(list
(string_'make') string_'make'
(string_'deinstall') string_'deinstall'
(string_'BATCH=yes') string_'BATCH=yes'
)list
(keyword_argument
(identifier_cwd) identifier_cwd
(identifier_portpath) identifier_portpath
)keyword_argument
(keyword_argument
(identifier_python_shell) identifier_python_shell
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier___context__) identifier___context__
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'pkg.list_pkgs') string_'pkg.list_pkgs'
(None) None
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_new) identifier_new
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'pkg.list_pkgs') string_'pkg.list_pkgs'
)subscript
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_data) identifier_data
)attribute
(identifier_compare_dicts) identifier_compare_dicts
)attribute
(argument_list
(identifier_old) identifier_old
(identifier_new) identifier_new
)argument_list
)call
)return_statement
)block
)function_definition
)module | De-install a port.
CLI Example:
.. code-block:: bash
salt '*' ports.deinstall security/nmap |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
)parameters
(block
(assert_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_called) identifier_called
)attribute
)not_operator
)assert_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_klass) identifier_klass
)attribute
(argument_list
(list_splat
(attribute
(identifier_self) identifier_self
(identifier_args) identifier_args
)attribute
)list_splat
(dictionary_splat
(attribute
(identifier_self) identifier_self
(identifier_kw) identifier_kw
)attribute
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a normal field from the lazy field |
(module
(function_definition
(function_name_bisine_wave) function_name_bisine_wave
(parameters
(identifier_frequency) identifier_frequency
)parameters
(block
(expression_statement
(assignment
(identifier_f_hi) identifier_f_hi
(identifier_frequency) identifier_frequency
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_f_lo) identifier_f_lo
(binary_operator
(identifier_frequency) identifier_frequency
(float_2.0) float_2.0
)binary_operator
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_tf) identifier_tf
(identifier_name_scope) identifier_name_scope
)attribute
(argument_list
(string_'hi') string_'hi'
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_sine_hi) identifier_sine_hi
(call
(identifier_sine_wave) identifier_sine_wave
(argument_list
(identifier_f_hi) identifier_f_hi
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_tf) identifier_tf
(identifier_name_scope) identifier_name_scope
)attribute
(argument_list
(string_'lo') string_'lo'
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_sine_lo) identifier_sine_lo
(call
(identifier_sine_wave) identifier_sine_wave
(argument_list
(identifier_f_lo) identifier_f_lo
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(return_statement
(call
(attribute
(identifier_tf) identifier_tf
(identifier_concat) identifier_concat
)attribute
(argument_list
(list
(identifier_sine_lo) identifier_sine_lo
(identifier_sine_hi) identifier_sine_hi
)list
(keyword_argument
(identifier_axis) identifier_axis
(integer_2) integer_2
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Emit two sine waves, in stereo at different octaves. |
(module
(function_definition
(function_name_column) function_name_column
(parameters
(identifier_self) identifier_self
(identifier_column) identifier_column
(default_parameter
(identifier_option) identifier_option
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kw) identifier_kw
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_config) identifier_config
(False) False
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_option) identifier_option
(string_'type') string_'type'
)comparison_operator
(block
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__column_types) identifier__column_types
)attribute
(identifier_column) identifier_column
)subscript
)return_statement
)block
(elif_clause
(comparison_operator
(string_'type') string_'type'
(identifier_kw) identifier_kw
)comparison_operator
(block
(expression_statement
(assignment
(identifier_config) identifier_config
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__column_types) identifier__column_types
)attribute
(identifier_column) identifier_column
)subscript
(call
(attribute
(identifier_kw) identifier_kw
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'type') string_'type'
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(if_statement
(identifier_kw) identifier_kw
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__visual_drag) identifier__visual_drag
)attribute
(identifier_column) identifier_column
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_ttk) identifier_ttk
(identifier_Treeview) identifier_Treeview
)attribute
(identifier_column) identifier_column
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_column) identifier_column
(string_'id') string_'id'
)argument_list
)call
(identifier_option) identifier_option
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_kw) identifier_kw
(identifier_option) identifier_option
)boolean_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_ttk) identifier_ttk
(identifier_Treeview) identifier_Treeview
)attribute
(identifier_column) identifier_column
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_column) identifier_column
(identifier_option) identifier_option
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
)return_statement
)block
(elif_clause
(not_operator
(identifier_config) identifier_config
)not_operator
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(attribute
(identifier_ttk) identifier_ttk
(identifier_Treeview) identifier_Treeview
)attribute
(identifier_column) identifier_column
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_column) identifier_column
(identifier_option) identifier_option
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_res) identifier_res
(string_'type') string_'type'
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__column_types) identifier__column_types
)attribute
(identifier_column) identifier_column
)subscript
)assignment
)expression_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Query or modify the options for the specified column.
If `kw` is not given, returns a dict of the column option values. If
`option` is specified then the value for that option is returned.
Otherwise, sets the options to the corresponding values.
:param id: the column's identifier (read-only option)
:param anchor: "n", "ne", "e", "se", "s", "sw", "w", "nw", or "center":
alignment of the text in this column with respect to the cell
:param minwidth: minimum width of the column in pixels
:type minwidth: int
:param stretch: whether the column's width should be adjusted when the widget is resized
:type stretch: bool
:param width: width of the column in pixels
:type width: int
:param type: column's content type (for sorting), default type is `str`
:type type: type |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_jlink) identifier_jlink
(call
(attribute
(identifier_self) identifier_self
(identifier_create_jlink) identifier_create_jlink
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mcu) identifier_mcu
(call
(attribute
(subscript
(attribute
(identifier_args) identifier_args
(identifier_name) identifier_name
)attribute
(integer_0) integer_0
)subscript
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_pylink) identifier_pylink
(identifier_unlock) identifier_unlock
)attribute
(argument_list
(identifier_jlink) identifier_jlink
(identifier_mcu) identifier_mcu
)argument_list
)call
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Successfully unlocked device!') string_'Successfully unlocked device!'
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Failed to unlock device!') string_'Failed to unlock device!'
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Unlocks the target device.
Args:
self (UnlockCommand): the ``UnlockCommand`` instance
args (Namespace): the arguments passed on the command-line
Returns:
``None`` |
(module
(function_definition
(function_name_create_send_message) function_name_create_send_message
(parameters
(identifier_self) identifier_self
(identifier_string_message) identifier_string_message
(identifier_controller) identifier_controller
(default_parameter
(identifier_zone) identifier_zone
(None) None
)default_parameter
(default_parameter
(identifier_parameter) identifier_parameter
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_cc) identifier_cc
(call
(attribute
(call
(identifier_hex) identifier_hex
(argument_list
(binary_operator
(call
(identifier_int) identifier_int
(argument_list
(identifier_controller) identifier_controller
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'0x') string_'0x'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_zone) identifier_zone
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_zz) identifier_zz
(call
(attribute
(call
(identifier_hex) identifier_hex
(argument_list
(binary_operator
(call
(identifier_int) identifier_int
(argument_list
(identifier_zone) identifier_zone
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'0x') string_'0x'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_zz) identifier_zz
(string_'') string_''
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_parameter) identifier_parameter
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_pr) identifier_pr
(call
(attribute
(call
(identifier_hex) identifier_hex
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(identifier_parameter) identifier_parameter
)argument_list
)call
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'0x') string_'0x'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_pr) identifier_pr
(string_'') string_''
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_string_message) identifier_string_message
(call
(attribute
(identifier_string_message) identifier_string_message
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'@cc') string_'@cc'
(identifier_cc) identifier_cc
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_string_message) identifier_string_message
(call
(attribute
(identifier_string_message) identifier_string_message
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'@zz') string_'@zz'
(identifier_zz) identifier_zz
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_string_message) identifier_string_message
(call
(attribute
(identifier_string_message) identifier_string_message
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'@kk') string_'@kk'
(identifier_KEYPAD_CODE) identifier_KEYPAD_CODE
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_string_message) identifier_string_message
(call
(attribute
(identifier_string_message) identifier_string_message
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'@pr') string_'@pr'
(identifier_pr) identifier_pr
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_send_msg) identifier_send_msg
(call
(attribute
(identifier_string_message) identifier_string_message
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_send_msg) identifier_send_msg
(call
(attribute
(identifier_self) identifier_self
(identifier_calc_checksum) identifier_calc_checksum
)attribute
(argument_list
(identifier_send_msg) identifier_send_msg
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_send_msg) identifier_send_msg
)return_statement
)block
)function_definition
)module | Creates a message from a string, substituting the necessary parameters,
that is ready to send to the socket |
(module
(function_definition
(function_name_update_firmware) function_name_update_firmware
(parameters
(identifier_self) identifier_self
(identifier_file) identifier_file
(default_parameter
(identifier_data) identifier_data
(None) None
)default_parameter
(default_parameter
(identifier_progress) identifier_progress
(None) None
)default_parameter
(default_parameter
(identifier_bank) identifier_bank
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_oem_init) identifier_oem_init
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_progress) identifier_progress
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_progress) identifier_progress
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(True) True
)lambda
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__oem) identifier__oem
)attribute
(identifier_update_firmware) identifier_update_firmware
)attribute
(argument_list
(identifier_file) identifier_file
(identifier_data) identifier_data
(identifier_progress) identifier_progress
(identifier_bank) identifier_bank
)argument_list
)call
)return_statement
)block
)function_definition
)module | Send file to BMC to perform firmware update
:param filename: The filename to upload to the target BMC
:param data: The payload of the firmware. Default is to read from
specified filename.
:param progress: A callback that will be given a dict describing
update process. Provide if
:param bank: Indicate a target 'bank' of firmware if supported |
(module
(function_definition
(function_name__get_snmp) function_name__get_snmp
(parameters
(identifier_self) identifier_self
(identifier_oid) identifier_oid
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_snmp_version) identifier_snmp_version
)attribute
(list
(string_"v1") string_"v1"
(string_"v2c") string_"v2c"
)list
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__get_snmpv2c) identifier__get_snmpv2c
)attribute
(argument_list
(identifier_oid) identifier_oid
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__get_snmpv3) identifier__get_snmpv3
)attribute
(argument_list
(identifier_oid) identifier_oid
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Wrapper for generic SNMP call. |
(module
(function_definition
(function_name_extern_store_i64) function_name_extern_store_i64
(parameters
(identifier_self) identifier_self
(identifier_context_handle) identifier_context_handle
(identifier_i64) identifier_i64
)parameters
(block
(expression_statement
(assignment
(identifier_c) identifier_c
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__ffi) identifier__ffi
)attribute
(identifier_from_handle) identifier_from_handle
)attribute
(argument_list
(identifier_context_handle) identifier_context_handle
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_c) identifier_c
(identifier_to_value) identifier_to_value
)attribute
(argument_list
(identifier_i64) identifier_i64
)argument_list
)call
)return_statement
)block
)function_definition
)module | Given a context and int32_t, return a new Handle to represent the int32_t. |
(module
(function_definition
(function_name_pypi) function_name_pypi
(parameters
(identifier_click_ctx) identifier_click_ctx
(identifier_requirements) identifier_requirements
(default_parameter
(identifier_index) identifier_index
(None) None
)default_parameter
(default_parameter
(identifier_python_version) identifier_python_version
(integer_3) integer_3
)default_parameter
(default_parameter
(identifier_exclude_packages) identifier_exclude_packages
(None) None
)default_parameter
(default_parameter
(identifier_output) identifier_output
(None) None
)default_parameter
(default_parameter
(identifier_subgraph_check_api) identifier_subgraph_check_api
(None) None
)default_parameter
(default_parameter
(identifier_no_transitive) identifier_no_transitive
(True) True
)default_parameter
(default_parameter
(identifier_no_pretty) identifier_no_pretty
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_requirements) identifier_requirements
(list_comprehension
(call
(attribute
(identifier_requirement) identifier_requirement
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_requirement) identifier_requirement
(call
(attribute
(identifier_requirements) identifier_requirements
(identifier_split) identifier_split
)attribute
(argument_list
(string_"\\n") string_"\\n"
)argument_list
)call
)for_in_clause
(if_clause
(identifier_requirement) identifier_requirement
)if_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_requirements) identifier_requirements
)not_operator
(block
(expression_statement
(call
(attribute
(identifier__LOG) identifier__LOG
(identifier_error) identifier_error
)attribute
(argument_list
(string_"No requirements specified, exiting") string_"No requirements specified, exiting"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_subgraph_check_api) identifier_subgraph_check_api
)not_operator
(block
(expression_statement
(call
(attribute
(identifier__LOG) identifier__LOG
(identifier_info) identifier_info
)attribute
(argument_list
(string_"No subgraph check API provided, no queries will be done for dependency subgraphs that should be avoided") string_"No subgraph check API provided, no queries will be done for dependency subgraphs that should be avoided"
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_resolve_python) identifier_resolve_python
(argument_list
(identifier_requirements) identifier_requirements
(keyword_argument
(identifier_index_urls) identifier_index_urls
(conditional_expression
(call
(attribute
(identifier_index) identifier_index
(identifier_split) identifier_split
)attribute
(argument_list
(string_",") string_","
)argument_list
)call
(identifier_index) identifier_index
(tuple
(string_"https://pypi.org/simple") string_"https://pypi.org/simple"
)tuple
)conditional_expression
)keyword_argument
(keyword_argument
(identifier_python_version) identifier_python_version
(call
(identifier_int) identifier_int
(argument_list
(identifier_python_version) identifier_python_version
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_transitive) identifier_transitive
(not_operator
(identifier_no_transitive) identifier_no_transitive
)not_operator
)keyword_argument
(keyword_argument
(identifier_exclude_packages) identifier_exclude_packages
(call
(identifier_set) identifier_set
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(attribute
(identifier_str) identifier_str
(identifier_strip) identifier_strip
)attribute
(call
(attribute
(parenthesized_expression
(boolean_operator
(identifier_exclude_packages) identifier_exclude_packages
(string_"") string_""
)boolean_operator
)parenthesized_expression
(identifier_split) identifier_split
)attribute
(argument_list
(string_",") string_","
)argument_list
)call
)argument_list
)call
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_subgraph_check_api) identifier_subgraph_check_api
(identifier_subgraph_check_api) identifier_subgraph_check_api
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_print_command_result) identifier_print_command_result
(argument_list
(identifier_click_ctx) identifier_click_ctx
(identifier_result) identifier_result
(keyword_argument
(identifier_analyzer) identifier_analyzer
(identifier_analyzer_name) identifier_analyzer_name
)keyword_argument
(keyword_argument
(identifier_analyzer_version) identifier_analyzer_version
(identifier_analyzer_version) identifier_analyzer_version
)keyword_argument
(keyword_argument
(identifier_output) identifier_output
(boolean_operator
(identifier_output) identifier_output
(string_"-") string_"-"
)boolean_operator
)keyword_argument
(keyword_argument
(identifier_pretty) identifier_pretty
(not_operator
(identifier_no_pretty) identifier_no_pretty
)not_operator
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Manipulate with dependency requirements using PyPI. |
(module
(function_definition
(function_name_analyze) function_name_analyze
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_using) identifier_using
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__get_connection) identifier__get_connection
)attribute
(argument_list
(identifier_using) identifier_using
)argument_list
)call
(identifier_indices) identifier_indices
)attribute
(identifier_analyze) identifier_analyze
)attribute
(argument_list
(keyword_argument
(identifier_index) identifier_index
(attribute
(identifier_self) identifier_self
(identifier__name) identifier__name
)attribute
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Perform the analysis process on a text and return the tokens breakdown
of the text.
Any additional keyword arguments will be passed to
``Elasticsearch.indices.analyze`` unchanged. |
(module
(function_definition
(function_name__normalize_server_settings) function_name__normalize_server_settings
(parameters
(dictionary_splat_pattern
(identifier_settings) identifier_settings
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_settings) identifier_settings
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_args) identifier_args
)attribute
(identifier_clean_kwargs) identifier_clean_kwargs
)attribute
(argument_list
(dictionary_splat
(identifier_settings) identifier_settings
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_setting) identifier_setting
(identifier_settings) identifier_settings
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_settings) identifier_settings
(identifier_setting) identifier_setting
)subscript
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_value_from_key) identifier_value_from_key
(call
(identifier_next) identifier_next
(argument_list
(call
(attribute
(identifier_six) identifier_six
(identifier_iterkeys) identifier_iterkeys
)attribute
(argument_list
(subscript
(identifier_settings) identifier_settings
(identifier_setting) identifier_setting
)subscript
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(identifier_setting) identifier_setting
)subscript
(call
(attribute
(string_"{{{0}}}") string_"{{{0}}}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_value_from_key) identifier_value_from_key
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(identifier_setting) identifier_setting
)subscript
(subscript
(identifier_settings) identifier_settings
(identifier_setting) identifier_setting
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Convert setting values that has been improperly converted to a dict back to a string. |
(module
(function_definition
(function_name_filename) function_name_filename
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__filename) identifier__filename
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__filename) identifier__filename
)attribute
(call
(attribute
(identifier_storage) identifier_storage
(identifier_get_file) identifier_get_file
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_basename) identifier_basename
)attribute
(attribute
(identifier_self) identifier_self
(identifier_ccd) identifier_ccd
)attribute
(keyword_argument
(identifier_ext) identifier_ext
(attribute
(identifier_self) identifier_self
(identifier_extension) identifier_extension
)attribute
)keyword_argument
(keyword_argument
(identifier_version) identifier_version
(attribute
(identifier_self) identifier_self
(identifier_type) identifier_type
)attribute
)keyword_argument
(keyword_argument
(identifier_prefix) identifier_prefix
(attribute
(identifier_self) identifier_self
(identifier_prefix) identifier_prefix
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__filename) identifier__filename
)attribute
)return_statement
)block
)function_definition
)module | Name if the MOP formatted file to parse.
@rtype: basestring
@return: filename |
(module
(function_definition
(function_name__should_resolve_subgraph) function_name__should_resolve_subgraph
(parameters
(typed_parameter
(identifier_subgraph_check_api) identifier_subgraph_check_api
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_package_name) identifier_package_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_package_version) identifier_package_version
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_index_url) identifier_index_url
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Checking if the given dependency subgraph for package %r in version %r from index %r should be resolved") string_"Checking if the given dependency subgraph for package %r in version %r from index %r should be resolved"
(identifier_package_name) identifier_package_name
(identifier_package_version) identifier_package_version
(identifier_index_url) identifier_index_url
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_subgraph_check_api) identifier_subgraph_check_api
(keyword_argument
(identifier_params) identifier_params
(dictionary
(pair
(string_"package_name") string_"package_name"
(identifier_package_name) identifier_package_name
)pair
(pair
(string_"package_version") string_"package_version"
(identifier_package_version) identifier_package_version
)pair
(pair
(string_"index_url") string_"index_url"
(identifier_index_url) identifier_index_url
)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
(True) True
)return_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
(integer_208) integer_208
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)elif_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(concatenated_string
(string_"Unreachable code - subgraph check API responded with unknown HTTP status ") string_"Unreachable code - subgraph check API responded with unknown HTTP status "
(string_"code %s for package %r in version %r from index %r") string_"code %s for package %r in version %r from index %r"
)concatenated_string
(identifier_package_name) identifier_package_name
(identifier_package_version) identifier_package_version
(identifier_index_url) identifier_index_url
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Ask the given subgraph check API if the given package in the given version should be included in the resolution.
This subgraph resolving avoidence serves two purposes - we don't need to
resolve dependency subgraphs that were already analyzed and we also avoid
analyzing of "core" packages (like setuptools) where not needed as they
can break installation environment. |
(module
(function_definition
(function_name_render_build_args) function_name_render_build_args
(parameters
(identifier_options) identifier_options
(identifier_ns) identifier_ns
)parameters
(block
(expression_statement
(assignment
(identifier_build_args) identifier_build_args
(call
(attribute
(identifier_options) identifier_options
(identifier_get) identifier_get
)attribute
(argument_list
(string_'buildArgs') string_'buildArgs'
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_build_args) identifier_build_args
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_build_args) identifier_build_args
(identifier_key) identifier_key
)subscript
(call
(attribute
(identifier_value) identifier_value
(identifier_format) identifier_format
)attribute
(argument_list
(dictionary_splat
(identifier_ns) identifier_ns
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_build_args) identifier_build_args
)return_statement
)block
)function_definition
)module | Get docker build args dict, rendering any templated args.
Args:
options (dict):
The dictionary for a given image from chartpress.yaml.
Fields in `options['buildArgs']` will be rendered and returned,
if defined.
ns (dict): the namespace used when rendering templated arguments |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(keyword_separator
)keyword_separator
(default_parameter
(identifier_auto_commit) identifier_auto_commit
(False) False
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
(identifier_delete) identifier_delete
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_resource) identifier_resource
)attribute
)argument_list
)call
)expression_statement
(if_statement
(identifier_auto_commit) identifier_auto_commit
(block
(expression_statement
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
(except_clause
(identifier_SQLAlchemyError) identifier_SQLAlchemyError
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(identifier_exception) identifier_exception
)attribute
(argument_list
(call
(attribute
(string_'Failed deleting resource: {}') string_'Failed deleting resource: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_id) identifier_id
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
(identifier_rollback) identifier_rollback
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Removes a resource from the database
Args:
auto_commit (bool): Automatically commit the transaction. Default: `False`
Returns:
`None` |
(module
(function_definition
(function_name__get_lt_from_user_by_id) function_name__get_lt_from_user_by_id
(parameters
(identifier_self) identifier_self
(identifier_user) identifier_user
(identifier_lt_id) identifier_lt_id
)parameters
(block
(expression_statement
(assignment
(identifier_req) identifier_req
(call
(attribute
(call
(attribute
(attribute
(identifier_meta) identifier_meta
(identifier_Session) identifier_Session
)attribute
(identifier_query) identifier_query
)attribute
(argument_list
(identifier_LayerTemplate) identifier_LayerTemplate
)argument_list
)call
(identifier_select_from) identifier_select_from
)attribute
(argument_list
(call
(identifier_join) identifier_join
(argument_list
(identifier_LayerTemplate) identifier_LayerTemplate
(identifier_User) identifier_User
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(return_statement
(call
(attribute
(call
(attribute
(identifier_req) identifier_req
(identifier_filter) identifier_filter
)attribute
(argument_list
(call
(identifier_and_) identifier_and_
(argument_list
(comparison_operator
(attribute
(identifier_User) identifier_User
(identifier_login) identifier_login
)attribute
(identifier_user) identifier_user
)comparison_operator
(comparison_operator
(attribute
(identifier_LayerTemplate) identifier_LayerTemplate
(identifier_id) identifier_id
)attribute
(identifier_lt_id) identifier_lt_id
)comparison_operator
)argument_list
)call
)argument_list
)call
(identifier_one) identifier_one
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(identifier_e) identifier_e
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Get a layertemplate owned by a user from the database by lt_id. |
(module
(function_definition
(function_name__notify_listeners) function_name__notify_listeners
(parameters
(identifier_self) identifier_self
(identifier_sender) identifier_sender
(identifier_message) identifier_message
)parameters
(block
(expression_statement
(assignment
(identifier_uid) identifier_uid
(subscript
(identifier_message) identifier_message
(string_'uid') string_'uid'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_msg_topic) identifier_msg_topic
(subscript
(identifier_message) identifier_message
(string_'topic') string_'topic'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__ack) identifier__ack
)attribute
(argument_list
(identifier_sender) identifier_sender
(identifier_uid) identifier_uid
(string_'fire') string_'fire'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_all_listeners) identifier_all_listeners
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_lst_topic) identifier_lst_topic
(identifier_listeners) identifier_listeners
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___listeners) identifier___listeners
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_fnmatch) identifier_fnmatch
(identifier_fnmatch) identifier_fnmatch
)attribute
(argument_list
(identifier_msg_topic) identifier_msg_topic
(identifier_lst_topic) identifier_lst_topic
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_all_listeners) identifier_all_listeners
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_listeners) identifier_listeners
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__ack) identifier__ack
)attribute
(argument_list
(identifier_sender) identifier_sender
(identifier_uid) identifier_uid
(string_'notice') string_'notice'
(conditional_expression
(string_'ok') string_'ok'
(identifier_all_listeners) identifier_all_listeners
(string_'none') string_'none'
)conditional_expression
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_results) identifier_results
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_listener) identifier_listener
(identifier_all_listeners) identifier_all_listeners
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_listener) identifier_listener
(identifier_handle_message) identifier_handle_message
)attribute
(argument_list
(identifier_sender) identifier_sender
(subscript
(identifier_message) identifier_message
(string_'topic') string_'topic'
)subscript
(subscript
(identifier_message) identifier_message
(string_'content') string_'content'
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_result) identifier_result
(block
(expression_statement
(call
(attribute
(identifier_results) identifier_results
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__ack) identifier__ack
)attribute
(argument_list
(identifier_sender) identifier_sender
(identifier_uid) identifier_uid
(string_'send') string_'send'
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_results) identifier_results
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__ack) identifier__ack
)attribute
(argument_list
(identifier_sender) identifier_sender
(identifier_uid) identifier_uid
(string_'send') string_'send'
(string_"Error") string_"Error"
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Notifies listeners of a new message |
(module
(function_definition
(function_name_get_partial_DOS) function_name_get_partial_DOS
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(concatenated_string
(string_"Phonopy.get_partial_DOS is deprecated. ") string_"Phonopy.get_partial_DOS is deprecated. "
(string_"Use Phonopy.get_projected_dos_dict.") string_"Use Phonopy.get_projected_dos_dict."
)concatenated_string
(identifier_DeprecationWarning) identifier_DeprecationWarning
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_pdos) identifier_pdos
(call
(attribute
(identifier_self) identifier_self
(identifier_get_projected_dos_dict) identifier_get_projected_dos_dict
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(subscript
(identifier_pdos) identifier_pdos
(string_'frequency_points') string_'frequency_points'
)subscript
(subscript
(identifier_pdos) identifier_pdos
(string_'projected_dos') string_'projected_dos'
)subscript
)expression_list
)return_statement
)block
)function_definition
)module | Return frequency points and partial DOS as a tuple.
Projection is done to atoms and may be also done along directions
depending on the parameters at run_partial_dos.
Returns
-------
A tuple with (frequency_points, partial_dos).
frequency_points: ndarray
shape=(frequency_sampling_points, ), dtype='double'
partial_dos:
shape=(frequency_sampling_points, projections), dtype='double' |
(module
(function_definition
(function_name_confirm_login_allowed) function_name_confirm_login_allowed
(parameters
(identifier_self) identifier_self
(identifier_user) identifier_user
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_user) identifier_user
(identifier_is_active) identifier_is_active
)attribute
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_forms) identifier_forms
(identifier_ValidationError) identifier_ValidationError
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_error_messages) identifier_error_messages
)attribute
(string_'inactive') string_'inactive'
)subscript
(keyword_argument
(identifier_code) identifier_code
(string_'inactive') string_'inactive'
)keyword_argument
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Controls whether the given User may log in. This is a policy setting,
independent of end-user authentication. This default behavior is to
allow login by active users, and reject login by inactive users.
If the given user cannot log in, this method should raise a
``forms.ValidationError``.
If the given user may log in, this method should return None. |
(module
(function_definition
(function_name_verify_registration) function_name_verify_registration
(parameters
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(identifier_process_verify_registration_data) identifier_process_verify_registration_data
(argument_list
(attribute
(identifier_request) identifier_request
(identifier_data) identifier_data
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_extra_data) identifier_extra_data
(None) None
)assignment
)expression_statement
(if_statement
(attribute
(identifier_registration_settings) identifier_registration_settings
(identifier_REGISTER_VERIFICATION_AUTO_LOGIN) identifier_REGISTER_VERIFICATION_AUTO_LOGIN
)attribute
(block
(expression_statement
(assignment
(identifier_extra_data) identifier_extra_data
(call
(identifier_perform_login) identifier_perform_login
(argument_list
(identifier_request) identifier_request
(identifier_user) identifier_user
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_get_ok_response) identifier_get_ok_response
(argument_list
(string_'User verified successfully') string_'User verified successfully'
(keyword_argument
(identifier_extra_data) identifier_extra_data
(identifier_extra_data) identifier_extra_data
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Verify registration via signature. |
(module
(function_definition
(function_name_calc_temperature_stats) function_name_calc_temperature_stats
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_temp) identifier_temp
)attribute
(identifier_max_delta) identifier_max_delta
)attribute
(call
(attribute
(identifier_melodist) identifier_melodist
(identifier_get_shift_by_data) identifier_get_shift_by_data
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_temp) identifier_temp
)attribute
(attribute
(identifier_self) identifier_self
(identifier__lon) identifier__lon
)attribute
(attribute
(identifier_self) identifier_self
(identifier__lat) identifier__lat
)attribute
(attribute
(identifier_self) identifier_self
(identifier__timezone) identifier__timezone
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_temp) identifier_temp
)attribute
(identifier_mean_course) identifier_mean_course
)attribute
(call
(attribute
(attribute
(identifier_melodist) identifier_melodist
(identifier_util) identifier_util
)attribute
(identifier_calculate_mean_daily_course_by_month) identifier_calculate_mean_daily_course_by_month
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_temp) identifier_temp
)attribute
(keyword_argument
(identifier_normalize) identifier_normalize
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Calculates statistics in order to derive diurnal patterns of temperature |
(module
(function_definition
(function_name__get_data_from_bigquery) function_name__get_data_from_bigquery
(parameters
(identifier_self) identifier_self
(identifier_queries) identifier_queries
)parameters
(block
(expression_statement
(assignment
(identifier_all_df) identifier_all_df
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_query) identifier_query
(identifier_queries) identifier_queries
(block
(expression_statement
(call
(attribute
(identifier_all_df) identifier_all_df
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_query) identifier_query
(identifier_execute) identifier_execute
)attribute
(argument_list
)argument_list
)call
(identifier_result) identifier_result
)attribute
(argument_list
)argument_list
)call
(identifier_to_dataframe) identifier_to_dataframe
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_df) identifier_df
(call
(attribute
(identifier_pd) identifier_pd
(identifier_concat) identifier_concat
)attribute
(argument_list
(identifier_all_df) identifier_all_df
(keyword_argument
(identifier_ignore_index) identifier_ignore_index
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_df) identifier_df
)return_statement
)block
)function_definition
)module | Get data from bigquery table or query. |
(module
(function_definition
(function_name_create_directory) function_name_create_directory
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_path) identifier_path
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(identifier_self) identifier_self
(identifier_get_path) identifier_get_path
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Create the directory for the given path. If path is None use the path of this instance
:param path: the path to create
:type path: str
:returns: None
:rtype: None
:raises: OSError |
(module
(function_definition
(function_name_writeline) function_name_writeline
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_line) identifier_line
(string_b'') string_b''
)default_parameter
(default_parameter
(identifier_sep) identifier_sep
(string_b'\n') string_b'\n'
)default_parameter
(default_parameter
(identifier_echo) identifier_echo
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_writelines) identifier_writelines
)attribute
(argument_list
(list
(identifier_line) identifier_line
)list
(identifier_sep) identifier_sep
(identifier_echo) identifier_echo
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Write a byte sequences to the channel and terminate it with carriage
return and line feed.
Args:
line(bytes): The line to send.
sep(bytes): The separator to use after each line.
echo(bool): Whether to echo the written data to stdout.
Raises:
EOFError: If the channel was closed before all data was sent. |
(module
(function_definition
(function_name__fail_if_contains_errors) function_name__fail_if_contains_errors
(parameters
(identifier_response) identifier_response
(default_parameter
(identifier_sync_uuid) identifier_sync_uuid
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
(identifier__HTTP_OK) identifier__HTTP_OK
)comparison_operator
(block
(raise_statement
(call
(identifier_RequestError) identifier_RequestError
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_response_json) identifier_response_json
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_sync_uuid) identifier_sync_uuid
(comparison_operator
(string_'sync_status') string_'sync_status'
(identifier_response_json) identifier_response_json
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_status) identifier_status
(subscript
(identifier_response_json) identifier_response_json
(string_'sync_status') string_'sync_status'
)subscript
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_sync_uuid) identifier_sync_uuid
(identifier_status) identifier_status
)comparison_operator
(comparison_operator
(string_'error') string_'error'
(subscript
(identifier_status) identifier_status
(identifier_sync_uuid) identifier_sync_uuid
)subscript
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_RequestError) identifier_RequestError
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Raise a RequestError Exception if a given response
does not denote a successful request. |
(module
(function_definition
(function_name_auth_from_hass_config) function_name_auth_from_hass_config
(parameters
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_path) identifier_path
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(identifier_config) identifier_config
(identifier_find_hass_config) identifier_find_hass_config
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_Auth) identifier_Auth
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_path) identifier_path
(string_".storage/auth") string_".storage/auth"
)argument_list
)call
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Initialize auth from HASS config. |
(module
(function_definition
(function_name_merge_data) function_name_merge_data
(parameters
(identifier_path_data) identifier_path_data
(identifier_request_data) identifier_request_data
)parameters
(block
(expression_statement
(assignment
(identifier_merged) identifier_merged
(conditional_expression
(call
(attribute
(identifier_request_data) identifier_request_data
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
(identifier_request_data) identifier_request_data
(dictionary
)dictionary
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_merged) identifier_merged
(identifier_update) identifier_update
)attribute
(argument_list
(boolean_operator
(identifier_path_data) identifier_path_data
(dictionary
)dictionary
)boolean_operator
)argument_list
)call
)expression_statement
(return_statement
(identifier_merged) identifier_merged
)return_statement
)block
)function_definition
)module | Merge data from the URI path and the request.
Path data wins. |
(module
(function_definition
(function_name_num_inputs) function_name_num_inputs
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_num) identifier_num
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_walker) identifier_walker
(identifier__) identifier__
)pattern_list
(attribute
(identifier_self) identifier_self
(identifier_inputs) identifier_inputs
)attribute
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_walker) identifier_walker
(identifier_InvalidStreamWalker) identifier_InvalidStreamWalker
)argument_list
)call
)not_operator
(block
(expression_statement
(augmented_assignment
(identifier_num) identifier_num
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_num) identifier_num
)return_statement
)block
)function_definition
)module | Return the number of connected inputs.
Returns:
int: The number of connected inputs |
(module
(function_definition
(function_name_incident_exists) function_name_incident_exists
(parameters
(identifier_name) identifier_name
(identifier_message) identifier_message
(identifier_status) identifier_status
)parameters
(block
(expression_statement
(assignment
(identifier_incidents) identifier_incidents
(call
(attribute
(identifier_cachet) identifier_cachet
(identifier_Incidents) identifier_Incidents
)attribute
(argument_list
(keyword_argument
(identifier_endpoint) identifier_endpoint
(identifier_ENDPOINT) identifier_ENDPOINT
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_all_incidents) identifier_all_incidents
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(call
(attribute
(identifier_incidents) identifier_incidents
(identifier_get) identifier_get
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_incident) identifier_incident
(subscript
(identifier_all_incidents) identifier_all_incidents
(string_'data') string_'data'
)subscript
(block
(if_statement
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_name) identifier_name
(subscript
(identifier_incident) identifier_incident
(string_'name') string_'name'
)subscript
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_status) identifier_status
(subscript
(identifier_incident) identifier_incident
(string_'status') string_'status'
)subscript
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(call
(attribute
(identifier_message) identifier_message
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(subscript
(identifier_incident) identifier_incident
(string_'message') string_'message'
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)boolean_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Check if an incident with these attributes already exists |
(module
(function_definition
(function_name_secondary_xi) function_name_secondary_xi
(parameters
(identifier_mass1) identifier_mass1
(identifier_mass2) identifier_mass2
(identifier_spin1x) identifier_spin1x
(identifier_spin1y) identifier_spin1y
(identifier_spin2x) identifier_spin2x
(identifier_spin2y) identifier_spin2y
)parameters
(block
(expression_statement
(assignment
(identifier_spinx) identifier_spinx
(call
(identifier_secondary_spin) identifier_secondary_spin
(argument_list
(identifier_mass1) identifier_mass1
(identifier_mass2) identifier_mass2
(identifier_spin1x) identifier_spin1x
(identifier_spin2x) identifier_spin2x
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_spiny) identifier_spiny
(call
(identifier_secondary_spin) identifier_secondary_spin
(argument_list
(identifier_mass1) identifier_mass1
(identifier_mass2) identifier_mass2
(identifier_spin1y) identifier_spin1y
(identifier_spin2y) identifier_spin2y
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_xi2_from_mass1_mass2_spin2x_spin2y) identifier_xi2_from_mass1_mass2_spin2x_spin2y
(argument_list
(identifier_mass1) identifier_mass1
(identifier_mass2) identifier_mass2
(identifier_spinx) identifier_spinx
(identifier_spiny) identifier_spiny
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the effective precession spin argument for the smaller mass. |
(module
(function_definition
(function_name_remove) function_name_remove
(parameters
(identifier_self) identifier_self
(identifier_bw) identifier_bw
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___ranges) identifier___ranges
)attribute
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_bw) identifier_bw
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(if_statement
(not_operator
(attribute
(identifier_bw) identifier_bw
(identifier_oneshot) identifier_oneshot
)attribute
)not_operator
(block
(raise_statement
)raise_statement
)block
)if_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Removes a buffer watch identifier.
@type bw: L{BufferWatch}
@param bw:
Buffer watch identifier.
@raise KeyError: The buffer watch identifier was already removed. |
(module
(function_definition
(function_name_parse_type) function_name_parse_type
(parameters
(identifier_field) identifier_field
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_field) identifier_field
(identifier_type_id) identifier_type_id
)attribute
(string_'string') string_'string'
)comparison_operator
(block
(if_statement
(comparison_operator
(string_'size') string_'size'
(attribute
(identifier_field) identifier_field
(identifier_options) identifier_options
)attribute
)comparison_operator
(block
(return_statement
(binary_operator
(string_"parser.getString(%d)") string_"parser.getString(%d)"
(attribute
(subscript
(attribute
(identifier_field) identifier_field
(identifier_options) identifier_options
)attribute
(string_'size') string_'size'
)subscript
(identifier_value) identifier_value
)attribute
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(string_"parser.getString()") string_"parser.getString()"
)return_statement
)block
)else_clause
)if_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_field) identifier_field
(identifier_type_id) identifier_type_id
)attribute
(identifier_JAVA_TYPE_MAP) identifier_JAVA_TYPE_MAP
)comparison_operator
(block
(return_statement
(binary_operator
(binary_operator
(string_"parser.get") string_"parser.get"
(call
(attribute
(attribute
(identifier_field) identifier_field
(identifier_type_id) identifier_type_id
)attribute
(identifier_capitalize) identifier_capitalize
)attribute
(argument_list
)argument_list
)call
)binary_operator
(string_"()") string_"()"
)binary_operator
)return_statement
)block
)elif_clause
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_field) identifier_field
(identifier_type_id) identifier_type_id
)attribute
(string_'array') string_'array'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(attribute
(subscript
(attribute
(identifier_field) identifier_field
(identifier_options) identifier_options
)attribute
(string_'fill') string_'fill'
)subscript
(identifier_value) identifier_value
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_t) identifier_t
(identifier_JAVA_TYPE_MAP) identifier_JAVA_TYPE_MAP
)comparison_operator
(block
(if_statement
(comparison_operator
(string_'size') string_'size'
(attribute
(identifier_field) identifier_field
(identifier_options) identifier_options
)attribute
)comparison_operator
(block
(return_statement
(binary_operator
(string_"parser.getArrayof%s(%d)") string_"parser.getArrayof%s(%d)"
(tuple
(call
(attribute
(identifier_t) identifier_t
(identifier_capitalize) identifier_capitalize
)attribute
(argument_list
)argument_list
)call
(attribute
(subscript
(attribute
(identifier_field) identifier_field
(identifier_options) identifier_options
)attribute
(string_'size') string_'size'
)subscript
(identifier_value) identifier_value
)attribute
)tuple
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(binary_operator
(string_"parser.getArrayof%s()") string_"parser.getArrayof%s()"
(call
(attribute
(identifier_t) identifier_t
(identifier_capitalize) identifier_capitalize
)attribute
(argument_list
)argument_list
)call
)binary_operator
)return_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(string_'size') string_'size'
(attribute
(identifier_field) identifier_field
(identifier_options) identifier_options
)attribute
)comparison_operator
(block
(return_statement
(binary_operator
(string_"parser.getArray(%s.class, %d)") string_"parser.getArray(%s.class, %d)"
(tuple
(identifier_t) identifier_t
(attribute
(subscript
(attribute
(identifier_field) identifier_field
(identifier_options) identifier_options
)attribute
(string_'size') string_'size'
)subscript
(identifier_value) identifier_value
)attribute
)tuple
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(binary_operator
(string_"parser.getArray(%s.class)") string_"parser.getArray(%s.class)"
(identifier_t) identifier_t
)binary_operator
)return_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(return_statement
(binary_operator
(string_"new %s().parse(parser)") string_"new %s().parse(parser)"
(attribute
(identifier_field) identifier_field
(identifier_type_id) identifier_type_id
)attribute
)binary_operator
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Function to pull a type from the binary payload. |
(module
(function_definition
(function_name_write_hyper_response) function_name_write_hyper_response
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_links) identifier_links
(list
)list
)default_parameter
(default_parameter
(identifier_meta) identifier_meta
(dictionary
)dictionary
)default_parameter
(default_parameter
(identifier_entity_name) identifier_entity_name
(None) None
)default_parameter
(default_parameter
(identifier_entity) identifier_entity
(None) None
)default_parameter
(default_parameter
(identifier_notifications) identifier_notifications
(list
)list
)default_parameter
(default_parameter
(identifier_actions) identifier_actions
(list
)list
)default_parameter
)parameters
(block
(assert_statement
(comparison_operator
(identifier_entity_name) identifier_entity_name
(None) None
)comparison_operator
)assert_statement
(assert_statement
(comparison_operator
(identifier_entity) identifier_entity
(None) None
)comparison_operator
)assert_statement
(expression_statement
(call
(attribute
(identifier_meta) identifier_meta
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_"status") string_"status"
(call
(attribute
(identifier_self) identifier_self
(identifier_get_status) identifier_get_status
)attribute
(argument_list
)argument_list
)call
)pair
)dictionary
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_write) identifier_write
)attribute
(argument_list
(dictionary
(pair
(string_"links") string_"links"
(identifier_links) identifier_links
)pair
(pair
(string_"meta") string_"meta"
(identifier_meta) identifier_meta
)pair
(pair
(identifier_entity_name) identifier_entity_name
(identifier_entity) identifier_entity
)pair
(pair
(string_"notifications") string_"notifications"
(identifier_notifications) identifier_notifications
)pair
(pair
(string_"actions") string_"actions"
(identifier_actions) identifier_actions
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Writes a hyper media response object
:param list links: A list of links to the resources
:param dict meta: The meta data for this response
:param str entity_name: The entity name
:param object entity: The Entity itself
:param list notifications: List of notifications
:param list actions: List of actions |
(module
(function_definition
(function_name_broadcast_identifier) function_name_broadcast_identifier
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_handler_type) identifier_handler_type
)attribute
(identifier_BROADCAST) identifier_BROADCAST
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_reliable_delivery) identifier_reliable_delivery
)attribute
(block
(raise_statement
(call
(identifier_EventHandlerConfigurationError) identifier_EventHandlerConfigurationError
(argument_list
(concatenated_string
(string_"You are using the default broadcast identifier ") string_"You are using the default broadcast identifier "
(string_"which is not compatible with reliable delivery. See ") string_"which is not compatible with reliable delivery. See "
(string_":meth:`nameko.events.EventHandler.broadcast_identifier` ") string_":meth:`nameko.events.EventHandler.broadcast_identifier` "
(string_"for details.") string_"for details."
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(attribute
(call
(attribute
(identifier_uuid) identifier_uuid
(identifier_uuid4) identifier_uuid4
)attribute
(argument_list
)argument_list
)call
(identifier_hex) identifier_hex
)attribute
)return_statement
)block
)function_definition
)module | A unique string to identify a service instance for `BROADCAST`
type handlers.
The `broadcast_identifier` is appended to the queue name when the
`BROADCAST` handler type is used. It must uniquely identify service
instances that receive broadcasts.
The default `broadcast_identifier` is a uuid that is set when the
service starts. It will change when the service restarts, meaning
that any unconsumed messages that were broadcast to the 'old' service
instance will not be received by the 'new' one. ::
@property
def broadcast_identifier(self):
# use a uuid as the identifier.
# the identifier will change when the service restarts and
# any unconsumed messages will be lost
return uuid.uuid4().hex
The default behaviour is therefore incompatible with reliable delivery.
An alternative `broadcast_identifier` that would survive service
restarts is ::
@property
def broadcast_identifier(self):
# use the machine hostname as the identifier.
# this assumes that only one instance of a service runs on
# any given machine
return socket.gethostname()
If neither of these approaches are appropriate, you could read the
value out of a configuration file ::
@property
def broadcast_identifier(self):
return self.config['SERVICE_IDENTIFIER'] # or similar
Broadcast queues are exclusive to ensure that `broadcast_identifier`
values are unique.
Because this method is a descriptor, it will be called during
container creation, regardless of the configured `handler_type`.
See :class:`nameko.extensions.Extension` for more details. |
(module
(function_definition
(function_name_pastdate) function_name_pastdate
(parameters
(identifier_self) identifier_self
(identifier_prompt) identifier_prompt
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_prompt) identifier_prompt
(conditional_expression
(identifier_prompt) identifier_prompt
(comparison_operator
(identifier_prompt) identifier_prompt
(None) None
)comparison_operator
(string_"Enter a past date") string_"Enter a past date"
)conditional_expression
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_default) identifier_default
(None) None
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_prompt) identifier_prompt
(binary_operator
(binary_operator
(string_" [") string_" ["
(call
(attribute
(identifier_default) identifier_default
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(string_'%d %m %Y') string_'%d %m %Y'
)argument_list
)call
)binary_operator
(string_"]") string_"]"
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_prompt) identifier_prompt
(string_': ') string_': '
)augmented_assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_input) identifier_input
)attribute
(argument_list
(call
(identifier_curry) identifier_curry
(argument_list
(identifier_filter_pastdate) identifier_filter_pastdate
(keyword_argument
(identifier_default) identifier_default
(identifier_default) identifier_default
)keyword_argument
)argument_list
)call
(identifier_prompt) identifier_prompt
)argument_list
)call
)return_statement
)block
)function_definition
)module | Prompts user to input a date in the past. |
(module
(function_definition
(function_name_add_photometry) function_name_add_photometry
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_compare_to_existing) identifier_compare_to_existing
(True) True
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__add_cat_dict) identifier__add_cat_dict
)attribute
(argument_list
(identifier_Photometry) identifier_Photometry
(attribute
(attribute
(identifier_self) identifier_self
(identifier__KEYS) identifier__KEYS
)attribute
(identifier_PHOTOMETRY) identifier_PHOTOMETRY
)attribute
(keyword_argument
(identifier_compare_to_existing) identifier_compare_to_existing
(identifier_compare_to_existing) identifier_compare_to_existing
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)function_definition
)module | Add a `Photometry` instance to this entry. |
(module
(function_definition
(function_name_get_paginated_response) function_name_get_paginated_response
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(dictionary
(pair
(string_'next') string_'next'
(call
(attribute
(identifier_self) identifier_self
(identifier_get_next_link) identifier_get_next_link
)attribute
(argument_list
)argument_list
)call
)pair
(pair
(string_'previous') string_'previous'
(call
(attribute
(identifier_self) identifier_self
(identifier_get_previous_link) identifier_get_previous_link
)attribute
(argument_list
)argument_list
)call
)pair
(pair
(string_'count') string_'count'
(call
(attribute
(identifier_self) identifier_self
(identifier_get_result_count) identifier_get_result_count
)attribute
(argument_list
)argument_list
)call
)pair
(pair
(string_'num_pages') string_'num_pages'
(call
(attribute
(identifier_self) identifier_self
(identifier_get_num_pages) identifier_get_num_pages
)attribute
(argument_list
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_data) identifier_data
(identifier_dict) identifier_dict
)argument_list
)call
(block
(if_statement
(comparison_operator
(string_'results') string_'results'
(identifier_data) identifier_data
)comparison_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_u'Malformed result dict') string_u'Malformed result dict'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_'pagination') string_'pagination'
)subscript
(identifier_metadata) identifier_metadata
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'results') string_'results'
(identifier_data) identifier_data
)pair
(pair
(string_'pagination') string_'pagination'
(identifier_metadata) identifier_metadata
)pair
)dictionary
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_Response) identifier_Response
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)return_statement
)block
)function_definition
)module | Annotate the response with pagination information |
(module
(function_definition
(function_name_input_option) function_name_input_option
(parameters
(identifier_message) identifier_message
(default_parameter
(identifier_options) identifier_options
(string_"yn") string_"yn"
)default_parameter
(default_parameter
(identifier_error_message) identifier_error_message
(None) None
)default_parameter
)parameters
(block
(function_definition
(function_name__valid) function_name__valid
(parameters
(identifier_character) identifier_character
)parameters
(block
(if_statement
(comparison_operator
(identifier_character) identifier_character
(identifier_options) identifier_options
)comparison_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(identifier_error_message) identifier_error_message
(identifier_character) identifier_character
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
(return_statement
(call
(identifier_input) identifier_input
(argument_list
(binary_operator
(string_"%s [%s]") string_"%s [%s]"
(tuple
(identifier_message) identifier_message
(identifier_options) identifier_options
)tuple
)binary_operator
(identifier__valid) identifier__valid
(True) True
(lambda
(lambda_parameters
(identifier_a) identifier_a
)lambda_parameters
(call
(attribute
(identifier_a) identifier_a
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)lambda
)argument_list
)call
)return_statement
)block
)function_definition
)module | Reads an option from the screen, with a specified prompt.
Keeps asking until a valid option is sent by the user. |
(module
(function_definition
(function_name_guess_content_type_and_encoding) function_name_guess_content_type_and_encoding
(parameters
(identifier_path) identifier_path
)parameters
(block
(for_statement
(pattern_list
(identifier_ext) identifier_ext
(identifier_content_type) identifier_content_type
)pattern_list
(call
(attribute
(identifier__EXTENSION_TO_MIME_TYPE) identifier__EXTENSION_TO_MIME_TYPE
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_path) identifier_path
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(identifier_ext) identifier_ext
)argument_list
)call
(block
(return_statement
(identifier_content_type) identifier_content_type
)return_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(pattern_list
(identifier_content_type) identifier_content_type
(identifier_encoding) identifier_encoding
)pattern_list
(call
(attribute
(identifier_mimetypes) identifier_mimetypes
(identifier_guess_type) identifier_guess_type
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content_type) identifier_content_type
(boolean_operator
(identifier_content_type) identifier_content_type
(string_"application/binary") string_"application/binary"
)boolean_operator
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_content_type) identifier_content_type
(identifier_encoding) identifier_encoding
)expression_list
)return_statement
)block
)function_definition
)module | Guess the content type of a path, using ``mimetypes``.
Falls back to "application/binary" if no content type is found.
Args:
path (str): the path to guess the mimetype of
Returns:
str: the content type of the file |
(module
(function_definition
(function_name_delete_network) function_name_delete_network
(parameters
(identifier_self) identifier_self
(identifier_network) identifier_network
)parameters
(block
(expression_statement
(assignment
(identifier_net_id) identifier_net_id
(call
(attribute
(identifier_self) identifier_self
(identifier__find_network_id) identifier__find_network_id
)attribute
(argument_list
(identifier_network) identifier_network
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_network_conn) identifier_network_conn
)attribute
(identifier_delete_network) identifier_delete_network
)attribute
(argument_list
(keyword_argument
(identifier_network) identifier_network
(identifier_net_id) identifier_net_id
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(conditional_expression
(identifier_ret) identifier_ret
(identifier_ret) identifier_ret
(True) True
)conditional_expression
)return_statement
)block
)function_definition
)module | Deletes the specified network |
(module
(function_definition
(function_name_update_extent_from_rectangle) function_name_update_extent_from_rectangle
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_show) identifier_show
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_canvas) identifier_canvas
)attribute
(identifier_unsetMapTool) identifier_unsetMapTool
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_rectangle_map_tool) identifier_rectangle_map_tool
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_canvas) identifier_canvas
)attribute
(identifier_setMapTool) identifier_setMapTool
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pan_tool) identifier_pan_tool
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_rectangle) identifier_rectangle
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_rectangle_map_tool) identifier_rectangle_map_tool
)attribute
(identifier_rectangle) identifier_rectangle
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_rectangle) identifier_rectangle
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bounding_box_group) identifier_bounding_box_group
)attribute
(identifier_setTitle) identifier_setTitle
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_tr) identifier_tr
)attribute
(argument_list
(string_'Bounding box from rectangle') string_'Bounding box from rectangle'
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_extent) identifier_extent
(call
(identifier_rectangle_geo_array) identifier_rectangle_geo_array
(argument_list
(identifier_rectangle) identifier_rectangle
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_iface) identifier_iface
)attribute
(identifier_mapCanvas) identifier_mapCanvas
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_update_extent) identifier_update_extent
)attribute
(argument_list
(identifier_extent) identifier_extent
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Update extent value in GUI based from the QgsMapTool rectangle.
.. note:: Delegates to update_extent() |
(module
(function_definition
(function_name_to_representation) function_name_to_representation
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(expression_statement
(assignment
(identifier_representation) identifier_representation
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_field) identifier_field
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_fields) identifier_fields
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(attribute
(identifier_field) identifier_field
(identifier_write_only) identifier_write_only
)attribute
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_attribute) identifier_attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_attribute) identifier_get_attribute
)attribute
(argument_list
(identifier_obj) identifier_obj
(boolean_operator
(attribute
(identifier_field) identifier_field
(identifier_source) identifier_source
)attribute
(identifier_name) identifier_name
)boolean_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_attribute) identifier_attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_representation) identifier_representation
(identifier_name) identifier_name
)subscript
(conditional_expression
(list
)list
(attribute
(identifier_field) identifier_field
(identifier_many) identifier_many
)attribute
(None) None
)conditional_expression
)assignment
)expression_statement
)block
(elif_clause
(attribute
(identifier_field) identifier_field
(identifier_many) identifier_many
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_representation) identifier_representation
(identifier_name) identifier_name
)subscript
(list_comprehension
(call
(attribute
(identifier_field) identifier_field
(identifier_to_representation) identifier_to_representation
)attribute
(argument_list
(identifier_item) identifier_item
)argument_list
)call
(for_in_clause
(identifier_item) identifier_item
(identifier_attribute) identifier_attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_representation) identifier_representation
(identifier_name) identifier_name
)subscript
(call
(attribute
(identifier_field) identifier_field
(identifier_to_representation) identifier_to_representation
)attribute
(argument_list
(identifier_attribute) identifier_attribute
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_representation) identifier_representation
)return_statement
)block
)function_definition
)module | Convert given internal object instance into representation dict.
Representation dict may be later serialized to the content-type
of choice in the resource HTTP method handler.
This loops over all fields and retrieves source keys/attributes as
field values with respect to optional field sources and converts each
one using ``field.to_representation()`` method.
Args:
obj (object): internal object that needs to be represented
Returns:
dict: representation dictionary |
(module
(function_definition
(function_name_config) function_name_config
(parameters
(identifier_name) identifier_name
(identifier_config) identifier_config
(default_parameter
(identifier_write) identifier_write
(True) True
)default_parameter
)parameters
(block
(expression_statement
(call
(identifier__build_config_tree) identifier__build_config_tree
(argument_list
(identifier_name) identifier_name
(identifier_config) identifier_config
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_configs) identifier_configs
(call
(identifier__render_configuration) identifier__render_configuration
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier___opts__) identifier___opts__
(identifier_get) identifier_get
)attribute
(argument_list
(string_'test') string_'test'
(False) False
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_comment) identifier_comment
(call
(attribute
(string_'State syslog_ng will write \'{0}\' into {1}') string_'State syslog_ng will write \'{0}\' into {1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_configs) identifier_configs
(identifier___SYSLOG_NG_CONFIG_FILE) identifier___SYSLOG_NG_CONFIG_FILE
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier__format_state_result) identifier__format_state_result
(argument_list
(identifier_name) identifier_name
(keyword_argument
(identifier_result) identifier_result
(None) None
)keyword_argument
(keyword_argument
(identifier_comment) identifier_comment
(identifier_comment) identifier_comment
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_succ) identifier_succ
(identifier_write) identifier_write
)assignment
)expression_statement
(if_statement
(identifier_write) identifier_write
(block
(expression_statement
(assignment
(identifier_succ) identifier_succ
(call
(identifier__write_config) identifier__write_config
(argument_list
(keyword_argument
(identifier_config) identifier_config
(identifier_configs) identifier_configs
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier__format_state_result) identifier__format_state_result
(argument_list
(identifier_name) identifier_name
(keyword_argument
(identifier_result) identifier_result
(identifier_succ) identifier_succ
)keyword_argument
(keyword_argument
(identifier_changes) identifier_changes
(dictionary
(pair
(string_'new') string_'new'
(identifier_configs) identifier_configs
)pair
(pair
(string_'old') string_'old'
(string_'') string_''
)pair
)dictionary
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Builds syslog-ng configuration. This function is intended to be used from
the state module, users should not use it directly!
name : the id of the Salt document or it is the format of <statement name>.id
config : the parsed YAML code
write : if True, it writes the config into the configuration file,
otherwise just returns it
CLI Example:
.. code-block:: bash
salt '*' syslog_ng.config name='s_local' config="[{'tcp':[{'ip':'127.0.0.1'},{'port':1233}]}]" |
(module
(function_definition
(function_name_mach2tas) function_name_mach2tas
(parameters
(identifier_Mach) identifier_Mach
(identifier_H) identifier_H
)parameters
(block
(expression_statement
(assignment
(identifier_a) identifier_a
(call
(identifier_vsound) identifier_vsound
(argument_list
(identifier_H) identifier_H
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_Vtas) identifier_Vtas
(binary_operator
(identifier_Mach) identifier_Mach
(identifier_a) identifier_a
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_Vtas) identifier_Vtas
)return_statement
)block
)function_definition
)module | Mach number to True Airspeed |
(module
(function_definition
(function_name_add_child_book) function_name_add_child_book
(parameters
(identifier_self) identifier_self
(identifier_book_id) identifier_book_id
(identifier_child_id) identifier_child_id
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__catalog_session) identifier__catalog_session
)attribute
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__catalog_session) identifier__catalog_session
)attribute
(identifier_add_child_catalog) identifier_add_child_catalog
)attribute
(argument_list
(keyword_argument
(identifier_catalog_id) identifier_catalog_id
(identifier_book_id) identifier_book_id
)keyword_argument
(keyword_argument
(identifier_child_id) identifier_child_id
(identifier_child_id) identifier_child_id
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__hierarchy_session) identifier__hierarchy_session
)attribute
(identifier_add_child) identifier_add_child
)attribute
(argument_list
(keyword_argument
(identifier_id_) identifier_id_
(identifier_book_id) identifier_book_id
)keyword_argument
(keyword_argument
(identifier_child_id) identifier_child_id
(identifier_child_id) identifier_child_id
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Adds a child to a book.
arg: book_id (osid.id.Id): the ``Id`` of a book
arg: child_id (osid.id.Id): the ``Id`` of the new child
raise: AlreadyExists - ``book_id`` is already a parent of
``child_id``
raise: NotFound - ``book_id`` or ``child_id`` not found
raise: NullArgument - ``book_id`` or ``child_id`` is ``null``
raise: OperationFailed - unable to complete request
raise: PermissionDenied - authorization failure
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name_progress_status) function_name_progress_status
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_line) identifier_line
)attribute
(attribute
(identifier_self) identifier_self
(identifier_freq) identifier_freq
)attribute
)binary_operator
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_statustext) identifier_statustext
)attribute
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_nele) identifier_nele
(attribute
(identifier_self) identifier_self
(identifier_line) identifier_line
)attribute
)keyword_argument
(keyword_argument
(identifier_totalele) identifier_totalele
(attribute
(identifier_self) identifier_self
(identifier_total_lines) identifier_total_lines
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_main_window) identifier_main_window
)attribute
(identifier_grid) identifier_grid
)attribute
(identifier_actions) identifier_actions
)attribute
(identifier_pasting) identifier_pasting
)attribute
(block
(try_statement
(block
(expression_statement
(call
(identifier_post_command_event) identifier_post_command_event
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_main_window) identifier_main_window
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_main_window) identifier_main_window
)attribute
(identifier_StatusBarMsg) identifier_StatusBarMsg
)attribute
(keyword_argument
(identifier_text) identifier_text
(identifier_text) identifier_text
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_main_window) identifier_main_window
)attribute
(identifier_GetStatusBar) identifier_GetStatusBar
)attribute
(argument_list
)argument_list
)call
(identifier_SetStatusText) identifier_SetStatusText
)attribute
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(call
(identifier_is_gtk) identifier_is_gtk
(argument_list
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_wx) identifier_wx
(identifier_Yield) identifier_Yield
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_line) identifier_line
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)function_definition
)module | Displays progress in statusbar |
(module
(function_definition
(function_name_generate_ppi_network) function_name_generate_ppi_network
(parameters
(typed_parameter
(identifier_ppi_graph_path) identifier_ppi_graph_path
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_dge_list) identifier_dge_list
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_Gene) identifier_Gene
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_max_adj_p) identifier_max_adj_p
(type
(identifier_float) identifier_float
)type
)typed_parameter
(typed_parameter
(identifier_max_log2_fold_change) identifier_max_log2_fold_change
(type
(identifier_float) identifier_float
)type
)typed_parameter
(typed_parameter
(identifier_min_log2_fold_change) identifier_min_log2_fold_change
(type
(identifier_float) identifier_float
)type
)typed_parameter
(typed_default_parameter
(identifier_ppi_edge_min_confidence) identifier_ppi_edge_min_confidence
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_float) identifier_float
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_current_disease_ids_path) identifier_current_disease_ids_path
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_disease_associations_path) identifier_disease_associations_path
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
)parameters
(type
(identifier_Network) identifier_Network
)type
(block
(expression_statement
(assignment
(identifier_protein_interactions) identifier_protein_interactions
(call
(attribute
(identifier_parsers) identifier_parsers
(identifier_parse_ppi_graph) identifier_parse_ppi_graph
)attribute
(argument_list
(identifier_ppi_graph_path) identifier_ppi_graph_path
(identifier_ppi_edge_min_confidence) identifier_ppi_edge_min_confidence
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_protein_interactions) identifier_protein_interactions
(call
(attribute
(identifier_protein_interactions) identifier_protein_interactions
(identifier_simplify) identifier_simplify
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_disease_associations_path) identifier_disease_associations_path
(None) None
)comparison_operator
(comparison_operator
(identifier_current_disease_ids_path) identifier_current_disease_ids_path
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_current_disease_ids) identifier_current_disease_ids
(call
(attribute
(identifier_parsers) identifier_parsers
(identifier_parse_disease_ids) identifier_parse_disease_ids
)attribute
(argument_list
(identifier_current_disease_ids_path) identifier_current_disease_ids_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_disease_associations) identifier_disease_associations
(call
(attribute
(identifier_parsers) identifier_parsers
(identifier_parse_disease_associations) identifier_parse_disease_associations
)attribute
(argument_list
(identifier_disease_associations_path) identifier_disease_associations_path
(identifier_current_disease_ids) identifier_current_disease_ids
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_disease_associations) identifier_disease_associations
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_network) identifier_network
(call
(identifier_Network) identifier_Network
(argument_list
(identifier_protein_interactions) identifier_protein_interactions
(keyword_argument
(identifier_max_adj_p) identifier_max_adj_p
(identifier_max_adj_p) identifier_max_adj_p
)keyword_argument
(keyword_argument
(identifier_max_l2fc) identifier_max_l2fc
(identifier_max_log2_fold_change) identifier_max_log2_fold_change
)keyword_argument
(keyword_argument
(identifier_min_l2fc) identifier_min_l2fc
(identifier_min_log2_fold_change) identifier_min_log2_fold_change
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_network) identifier_network
(identifier_set_up_network) identifier_set_up_network
)attribute
(argument_list
(identifier_dge_list) identifier_dge_list
(keyword_argument
(identifier_disease_associations) identifier_disease_associations
(identifier_disease_associations) identifier_disease_associations
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_network) identifier_network
)return_statement
)block
)function_definition
)module | Generate the protein-protein interaction network.
:return Network: Protein-protein interaction network with information on differential expression. |
(module
(function_definition
(function_name_read_float) function_name_read_float
(parameters
(identifier_self) identifier_self
(identifier_registeraddress) identifier_registeraddress
(default_parameter
(identifier_functioncode) identifier_functioncode
(integer_3) integer_3
)default_parameter
(default_parameter
(identifier_numberOfRegisters) identifier_numberOfRegisters
(integer_2) integer_2
)default_parameter
)parameters
(block
(expression_statement
(call
(identifier__checkFunctioncode) identifier__checkFunctioncode
(argument_list
(identifier_functioncode) identifier_functioncode
(list
(integer_3) integer_3
(integer_4) integer_4
)list
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier__checkInt) identifier__checkInt
(argument_list
(identifier_numberOfRegisters) identifier_numberOfRegisters
(keyword_argument
(identifier_minvalue) identifier_minvalue
(integer_2) integer_2
)keyword_argument
(keyword_argument
(identifier_maxvalue) identifier_maxvalue
(integer_4) integer_4
)keyword_argument
(keyword_argument
(identifier_description) identifier_description
(string_'number of registers') string_'number of registers'
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__genericCommand) identifier__genericCommand
)attribute
(argument_list
(identifier_functioncode) identifier_functioncode
(identifier_registeraddress) identifier_registeraddress
(keyword_argument
(identifier_numberOfRegisters) identifier_numberOfRegisters
(identifier_numberOfRegisters) identifier_numberOfRegisters
)keyword_argument
(keyword_argument
(identifier_payloadformat) identifier_payloadformat
(string_'float') string_'float'
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Read a floating point number from the slave.
Floats are stored in two or more consecutive 16-bit registers in the slave. The
encoding is according to the standard IEEE 754.
There are differences in the byte order used by different manufacturers. A floating
point value of 1.0 is encoded (in single precision) as 3f800000 (hex). In this
implementation the data will be sent as ``'\\x3f\\x80'`` and ``'\\x00\\x00'``
to two consecutetive registers . Make sure to test that it makes sense for your instrument.
It is pretty straight-forward to change this code if some other byte order is
required by anyone (see support section).
Args:
* registeraddress (int): The slave register start address (use decimal numbers, not hex).
* functioncode (int): Modbus function code. Can be 3 or 4.
* numberOfRegisters (int): The number of registers allocated for the float. Can be 2 or 4.
====================================== ================= =========== =================
Type of floating point number in slave Size Registers Range
====================================== ================= =========== =================
Single precision (binary32) 32 bits (4 bytes) 2 registers 1.4E-45 to 3.4E38
Double precision (binary64) 64 bits (8 bytes) 4 registers 5E-324 to 1.8E308
====================================== ================= =========== =================
Returns:
The numerical value (float).
Raises:
ValueError, TypeError, IOError |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.