hexsha
string | size
int64 | ext
string | lang
string | max_stars_repo_path
string | max_stars_repo_name
string | max_stars_repo_head_hexsha
string | max_stars_repo_licenses
list | max_stars_count
int64 | max_stars_repo_stars_event_min_datetime
string | max_stars_repo_stars_event_max_datetime
string | max_issues_repo_path
string | max_issues_repo_name
string | max_issues_repo_head_hexsha
string | max_issues_repo_licenses
list | max_issues_count
int64 | max_issues_repo_issues_event_min_datetime
string | max_issues_repo_issues_event_max_datetime
string | max_forks_repo_path
string | max_forks_repo_name
string | max_forks_repo_head_hexsha
string | max_forks_repo_licenses
list | max_forks_count
int64 | max_forks_repo_forks_event_min_datetime
string | max_forks_repo_forks_event_max_datetime
string | content
string | avg_line_length
float64 | max_line_length
int64 | alphanum_fraction
float64 | qsc_code_num_words_quality_signal
int64 | qsc_code_num_chars_quality_signal
float64 | qsc_code_mean_word_length_quality_signal
float64 | qsc_code_frac_words_unique_quality_signal
float64 | qsc_code_frac_chars_top_2grams_quality_signal
float64 | qsc_code_frac_chars_top_3grams_quality_signal
float64 | qsc_code_frac_chars_top_4grams_quality_signal
float64 | qsc_code_frac_chars_dupe_5grams_quality_signal
float64 | qsc_code_frac_chars_dupe_6grams_quality_signal
float64 | qsc_code_frac_chars_dupe_7grams_quality_signal
float64 | qsc_code_frac_chars_dupe_8grams_quality_signal
float64 | qsc_code_frac_chars_dupe_9grams_quality_signal
float64 | qsc_code_frac_chars_dupe_10grams_quality_signal
float64 | qsc_code_frac_chars_replacement_symbols_quality_signal
float64 | qsc_code_frac_chars_digital_quality_signal
float64 | qsc_code_frac_chars_whitespace_quality_signal
float64 | qsc_code_size_file_byte_quality_signal
float64 | qsc_code_num_lines_quality_signal
float64 | qsc_code_num_chars_line_max_quality_signal
float64 | qsc_code_num_chars_line_mean_quality_signal
float64 | qsc_code_frac_chars_alphabet_quality_signal
float64 | qsc_code_frac_chars_comments_quality_signal
float64 | qsc_code_cate_xml_start_quality_signal
float64 | qsc_code_frac_lines_dupe_lines_quality_signal
float64 | qsc_code_cate_autogen_quality_signal
float64 | qsc_code_frac_lines_long_string_quality_signal
float64 | qsc_code_frac_chars_string_length_quality_signal
float64 | qsc_code_frac_chars_long_word_length_quality_signal
float64 | qsc_code_frac_lines_string_concat_quality_signal
float64 | qsc_code_cate_encoded_data_quality_signal
float64 | qsc_code_frac_chars_hex_words_quality_signal
float64 | qsc_code_frac_lines_prompt_comments_quality_signal
float64 | qsc_code_frac_lines_assert_quality_signal
float64 | qsc_codepython_cate_ast_quality_signal
float64 | qsc_codepython_frac_lines_func_ratio_quality_signal
float64 | qsc_codepython_cate_var_zero_quality_signal
bool | qsc_codepython_frac_lines_pass_quality_signal
float64 | qsc_codepython_frac_lines_import_quality_signal
float64 | qsc_codepython_frac_lines_simplefunc_quality_signal
float64 | qsc_codepython_score_lines_no_logic_quality_signal
float64 | qsc_codepython_frac_lines_print_quality_signal
float64 | qsc_code_num_words
int64 | qsc_code_num_chars
int64 | qsc_code_mean_word_length
int64 | qsc_code_frac_words_unique
null | qsc_code_frac_chars_top_2grams
int64 | qsc_code_frac_chars_top_3grams
int64 | qsc_code_frac_chars_top_4grams
int64 | qsc_code_frac_chars_dupe_5grams
int64 | qsc_code_frac_chars_dupe_6grams
int64 | qsc_code_frac_chars_dupe_7grams
int64 | qsc_code_frac_chars_dupe_8grams
int64 | qsc_code_frac_chars_dupe_9grams
int64 | qsc_code_frac_chars_dupe_10grams
int64 | qsc_code_frac_chars_replacement_symbols
int64 | qsc_code_frac_chars_digital
int64 | qsc_code_frac_chars_whitespace
int64 | qsc_code_size_file_byte
int64 | qsc_code_num_lines
int64 | qsc_code_num_chars_line_max
int64 | qsc_code_num_chars_line_mean
int64 | qsc_code_frac_chars_alphabet
int64 | qsc_code_frac_chars_comments
int64 | qsc_code_cate_xml_start
int64 | qsc_code_frac_lines_dupe_lines
int64 | qsc_code_cate_autogen
int64 | qsc_code_frac_lines_long_string
int64 | qsc_code_frac_chars_string_length
int64 | qsc_code_frac_chars_long_word_length
int64 | qsc_code_frac_lines_string_concat
null | qsc_code_cate_encoded_data
int64 | qsc_code_frac_chars_hex_words
int64 | qsc_code_frac_lines_prompt_comments
int64 | qsc_code_frac_lines_assert
int64 | qsc_codepython_cate_ast
int64 | qsc_codepython_frac_lines_func_ratio
int64 | qsc_codepython_cate_var_zero
int64 | qsc_codepython_frac_lines_pass
int64 | qsc_codepython_frac_lines_import
int64 | qsc_codepython_frac_lines_simplefunc
int64 | qsc_codepython_score_lines_no_logic
int64 | qsc_codepython_frac_lines_print
int64 | effective
string | hits
int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3350ba8aa0a8e35fe443f8aca1b8aaa4c12af55c
| 8,065
|
py
|
Python
|
datasets/script/ds_print_cleaned.py
|
PoCInnovation/SmartShark
|
2cf5eb32306fb5bd88972f44331322ae58d4bb2c
|
[
"MIT"
] | 26
|
2020-11-26T13:05:31.000Z
|
2022-03-22T11:04:41.000Z
|
datasets/script/ds_print_cleaned.py
|
PoCFrance/SmartShark
|
2cf5eb32306fb5bd88972f44331322ae58d4bb2c
|
[
"MIT"
] | 4
|
2020-09-26T16:30:47.000Z
|
2022-03-06T18:02:52.000Z
|
datasets/script/ds_print_cleaned.py
|
PoCFrance/SmartShark
|
2cf5eb32306fb5bd88972f44331322ae58d4bb2c
|
[
"MIT"
] | 9
|
2021-01-19T16:44:23.000Z
|
2022-02-15T21:06:29.000Z
|
###############################################
# #
# PoC: Smartshark #
# #
# USAGE: #
# #
# Script to clean datasets #
# #
# #
# Put in row every Label and redirect #
# output to your new file #
# #
# #
# You can use 'ds_create_row_label.py' #
# to create your row variable #
# #
###############################################
#Choose your file
fichier = open("save/temp.pcap_Flow.csv", "r")
#FOR DDOS
row = dict([('FlowID', False), ('SrcIP', True), ('SrcPort', False), ('DstIP', False), ('DstPort', True), ('Protocol', True), ('Timestamp', False), ('FlowDuration', False), ('TotalFwdPacket', True), ('TotalBwdpackets', True), ('TotalLengthofFwdPacket', True), ('TotalLengthofBwdPacket', True), ('FwdPacketLengthMax', False), ('FwdPacketLengthMin', False), ('FwdPacketLengthMean', True), ('FwdPacketLengthStd', True), ('BwdPacketLengthMax', False), ('BwdPacketLengthMin', False), ('BwdPacketLengthMean', True), ('BwdPacketLengthStd', True), ('FlowBytes/s', True), ('FlowPackets/s', True), ('FlowIATMean', False), ('FlowIATStd', False), ('FlowIATMax', False), ('FlowIATMin', False), ('FwdIATTotal', False), ('FwdIATMean', False), ('FwdIATStd', False), ('FwdIATMax', False), ('FwdIATMin', False), ('BwdIATTotal', False), ('BwdIATMean', False), ('BwdIATStd', False), ('BwdIATMax', False), ('BwdIATMin', False), ('FwdPSHFlags', False), ('BwdPSHFlags', False), ('FwdURGFlags', False), ('BwdURGFlags', False), ('FwdHeaderLength', False), ('BwdHeaderLength', False), ('FwdPackets/s', False), ('BwdPackets/s', False), ('PacketLengthMin', False), ('PacketLengthMax', False), ('PacketLengthMean', True), ('PacketLengthStd', True), ('PacketLengthVariance', True), ('FINFlagCount', False), ('SYNFlagCount', False), ('RSTFlagCount', False), ('PSHFlagCount', False), ('ACKFlagCount', False), ('URGFlagCount', False), ('CWEFlagCount', False), ('ECEFlagCount', False), ('Down/UpRatio', False), ('AveragePacketSize', True), ('FwdSegmentSizeAvg', False), ('BwdSegmentSizeAvg', False), ('FwdBytes/BulkAvg', False), ('FwdPacket/BulkAvg', False), ('FwdBulkRateAvg', False), ('BwdBytes/BulkAvg', False), ('BwdPacket/BulkAvg', False), ('BwdBulkRateAvg', False), ('SubflowFwdPackets', False), ('SubflowFwdBytes', False), ('SubflowBwdPackets', False), ('SubflowBwdBytes', False), ('FWDInitWinBytes', False), ('BwdInitWinBytes', False), ('FwdActDataPkts', False), ('FwdSegSizeMin', False), ('ActiveMean', False), ('ActiveStd', False), ('ActiveMax', False), ('ActiveMin', False), ('IdleMean', False), ('IdleStd', False), ('IdleMax', False), ('IdleMin', False), ('Label', False)])
#row = dict([('Unamed', False), ('FlowID', False), ('SourceIP', False), ('SourcePort', True), ('DestinationIP', False), ('DestinationPort', True), ('Protocol', True), ('Timestamp', False), ('FlowDuration', True), ('TotalFwdPackets', True), ('TotalBackwardPackets', True), ('TotalLengthofFwdPackets', True), ('TotalLengthofBwdPackets', True), ('FwdPacketLengthMax', False), ('FwdPacketLengthMin', False), ('FwdPacketLengthMean', True), ('FwdPacketLengthStd', True), ('BwdPacketLengthMax', False), ('BwdPacketLengthMin', False), ('BwdPacketLengthMean', True), ('BwdPacketLengthStd', True), ('FlowBytes/s', True), ('FlowPackets/s', True), ('FlowIATMean', False), ('FlowIATStd', False), ('FlowIATMax', False), ('FlowIATMin', False), ('FwdIATTotal', False), ('FwdIATMean', False), ('FwdIATStd', False), ('FwdIATMax', False), ('FwdIATMin', False), ('BwdIATTotal', False), ('BwdIATMean', False), ('BwdIATStd', False), ('BwdIATMax', False), ('BwdIATMin', False), ('FwdPSHFlags', False), ('BwdPSHFlags', False), ('FwdURGFlags', False), ('BwdURGFlags', False), ('FwdHeaderLength', False), ('BwdHeaderLength', False), ('FwdPackets/s', False), ('BwdPackets/s', False), ('MinPacketLength', False), ('MaxPacketLength', False), ('PacketLengthMean', True), ('PacketLengthStd', True), ('PacketLengthVariance', True), ('FINFlagCount', False), ('SYNFlagCount', False), ('RSTFlagCount', False), ('PSHFlagCount', False), ('ACKFlagCount', False), ('URGFlagCount', False), ('CWEFlagCount', False), ('ECEFlagCount', False), ('Down/UpRatio', False), ('AveragePacketSize', True), ('AvgFwdSegmentSize', False), ('AvgBwdSegmentSize', False), ('FwdHeaderLength.1', False), ('FwdAvgBytes/Bulk', False), ('FwdAvgPackets/Bulk', False), ('FwdAvgBulkRate', False), ('BwdAvgBytes/Bulk', False), ('BwdAvgPackets/Bulk', False), ('BwdAvgBulkRate', False), ('SubflowFwdPackets', False), ('SubflowFwdBytes', False), ('SubflowBwdPackets', False), ('SubflowBwdBytes', False), ('Init_Win_bytes_forward', False), ('Init_Win_bytes_backward', False), ('act_data_pkt_fwd', False), ('min_seg_size_forward', False), ('ActiveMean', False), ('ActiveStd', False), ('ActiveMax', False), ('ActiveMin', False), ('IdleMean', False), ('IdleStd', False), ('IdleMax', False), ('IdleMin', False), ('Label', False)])
"""
#FOR CLEANED
row = dict([('FlowID', False), ('SrcIP', False), ('SrcPort', True), ('DstIP', False), ('DstPort', True), ('Protocol', True), ('Timestamp', False), ('FlowDuration', True), ('TotalFwdPacket', True), ('TotalBwdpackets', True), ('TotalLengthofFwdPacket', True), ('TotalLengthofBwdPacket', True), ('FwdPacketLengthMax', False), ('FwdPacketLengthMin', False), ('FwdPacketLengthMean', True), ('FwdPacketLengthStd', True), ('BwdPacketLengthMax', False), ('BwdPacketLengthMin', False), ('BwdPacketLengthMean', True), ('BwdPacketLengthStd', True), ('FlowBytes/s', True), ('FlowPackets/s', True), ('FlowIATMean', False), ('FlowIATStd', False), ('FlowIATMax', False), ('FlowIATMin', False), ('FwdIATTotal', False), ('FwdIATMean', False), ('FwdIATStd', False), ('FwdIATMax', False), ('FwdIATMin', False), ('BwdIATTotal', False), ('BwdIATMean', False), ('BwdIATStd', False), ('BwdIATMax', False), ('BwdIATMin', False), ('FwdPSHFlags', False), ('BwdPSHFlags', False), ('FwdURGFlags', False), ('BwdURGFlags', False), ('FwdHeaderLength', False), ('BwdHeaderLength', False), ('FwdPackets/s', False), ('BwdPackets/s', False), ('PacketLengthMin', False), ('PacketLengthMax', False), ('PacketLengthMean', True), ('PacketLengthStd', True), ('PacketLengthVariance', True), ('FINFlagCount', False), ('SYNFlagCount', False), ('RSTFlagCount', False), ('PSHFlagCount', False), ('ACKFlagCount', False), ('URGFlagCount', False), ('CWEFlagCount', False), ('ECEFlagCount', False), ('Down/UpRatio', False), ('AveragePacketSize', True), ('FwdSegmentSizeAvg', False), ('BwdSegmentSizeAvg', False), ('FwdBytes/BulkAvg', False), ('FwdPacket/BulkAvg', False), ('FwdBulkRateAvg', False), ('BwdBytes/BulkAvg', False), ('BwdPacket/BulkAvg', False), ('BwdBulkRateAvg', False), ('SubflowFwdPackets', False), ('SubflowFwdBytes', False), ('SubflowBwdPackets', False), ('SubflowBwdBytes', False), ('FWDInitWinBytes', False), ('BwdInitWinBytes', False), ('FwdActDataPkts', False), ('FwdSegSizeMin', False), ('ActiveMean', False), ('ActiveStd', False), ('ActiveMax', False), ('ActiveMin', False), ('IdleMean', False), ('IdleStd', False), ('IdleMax', False), ('IdleMin', False), ('Label', False)])
"""
def get_next_value(i, str, first):
if first:
result = ""
else:
result = ","
while (str[i] != ',' and str[i] != '\n'):
result = result + str[i]
i += 1
return (i, result)
result = ""
tmp = ""
for line in fichier:
first = True
index = 0
for i in row:
index, tmp = get_next_value(index, line, first)
if row.get(i):
first = False
result += tmp
index += 1
if (len(result) > 0 and result[len(result) - 1] != '\n'):
result += '\n'
print(result, end="", sep="")
fichier.close()
| 141.491228
| 2,255
| 0.615623
| 679
| 8,065
| 7.282769
| 0.266568
| 0.019414
| 0.009707
| 0.015167
| 0.797978
| 0.788675
| 0.788675
| 0.778564
| 0.778564
| 0.736704
| 0
| 0.000885
| 0.159578
| 8,065
| 56
| 2,256
| 144.017857
| 0.728681
| 0.358834
| 0
| 0.076923
| 0
| 0
| 0.388988
| 0.023801
| 0
| 0
| 0
| 0
| 0
| 1
| 0.038462
| false
| 0
| 0
| 0
| 0.076923
| 0.038462
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
682a064d6c88d8756165c64674557482e7b37ff4
| 1,477
|
py
|
Python
|
tests/test_order.py
|
neurophysik/jitcode
|
cbc815da01974597057c8d78f74d16169bdad580
|
[
"BSD-3-Clause"
] | 56
|
2016-06-17T15:53:01.000Z
|
2022-03-17T16:47:00.000Z
|
tests/test_order.py
|
neurophysik/jitcode
|
cbc815da01974597057c8d78f74d16169bdad580
|
[
"BSD-3-Clause"
] | 33
|
2016-08-16T11:41:42.000Z
|
2022-03-05T16:09:41.000Z
|
tests/test_order.py
|
neurophysik/jitcode
|
cbc815da01974597057c8d78f74d16169bdad580
|
[
"BSD-3-Clause"
] | 9
|
2016-07-19T19:00:27.000Z
|
2019-11-19T00:36:38.000Z
|
from jitcode import jitcode
from symengine import Symbol
from itertools import permutations
p = Symbol('p')
f = [1/p]
for integrator in ["dopri5","RK45"]:
def set_integrator(ODE):
ODE.set_integrator(integrator)
def set_parameters(ODE):
ODE.set_parameters(1)
def set_initial_value(ODE):
ODE.set_initial_value([0], 0)
at_east_one_working_order = False
for functions in permutations([set_integrator,set_parameters,set_initial_value]):
ODE = jitcode(f, control_pars=[p], verbose=False)
try:
for function in functions:
function(ODE)
except RuntimeError as exception:
assert str(exception).startswith("Something needs parameters to be set")
else:
assert abs(ODE.integrate(1.)-1) < 1e-8
at_east_one_working_order = True
print( ".", end="", flush=True )
assert at_east_one_working_order
f_2 = [1]
for integrator in ["dopri5","RK45"]:
def set_integrator(ODE):
ODE.set_integrator(integrator)
def set_initial_value(ODE):
ODE.set_initial_value([0], 0)
at_east_one_working_order = False
for functions in permutations([set_integrator,set_initial_value]):
ODE = jitcode(f_2, verbose=False)
try:
for function in functions:
function(ODE)
except RuntimeError as exception:
assert str(exception).startswith("Something needs parameters to be set")
else:
assert abs(ODE.integrate(1.)-1) < 1e-8
at_east_one_working_order = True
print( ".", end="", flush=True )
assert at_east_one_working_order
print("")
| 25.033898
| 82
| 0.733243
| 216
| 1,477
| 4.791667
| 0.25463
| 0.075362
| 0.086957
| 0.092754
| 0.85314
| 0.85314
| 0.805797
| 0.805797
| 0.805797
| 0.805797
| 0
| 0.018429
| 0.155044
| 1,477
| 58
| 83
| 25.465517
| 0.810897
| 0
| 0
| 0.711111
| 0
| 0
| 0.06432
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 1
| 0.111111
| false
| 0
| 0.066667
| 0
| 0.177778
| 0.066667
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
6834d917ce849992415e1e7e669c40456961d7a7
| 156,633
|
py
|
Python
|
dlkit/abstract_osid/installation/sessions.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 2
|
2018-02-23T12:16:11.000Z
|
2020-10-08T17:54:24.000Z
|
dlkit/abstract_osid/installation/sessions.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 87
|
2017-04-21T18:57:15.000Z
|
2021-12-13T19:43:57.000Z
|
dlkit/abstract_osid/installation/sessions.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 1
|
2018-03-01T16:44:25.000Z
|
2018-03-01T16:44:25.000Z
|
"""Implementations of installation abstract base class sessions."""
# pylint: disable=invalid-name
# Method names comply with OSID specification.
# pylint: disable=no-init
# Abstract classes do not define __init__.
# pylint: disable=too-few-public-methods
# Some interfaces are specified as 'markers' and include no methods.
# pylint: disable=too-many-public-methods
# Number of methods are defined in specification
# pylint: disable=too-many-ancestors
# Inheritance defined in specification
# pylint: disable=too-many-arguments
# Argument signature defined in specification.
# pylint: disable=duplicate-code
# All apparent duplicates have been inspected. They aren't.
import abc
class InstallationLookupSession:
"""The session defines methods for retrieving ``Installations`` from installation ``Sites``.
An ``Installation`` represents a ``Package`` installed on a
``Site``.
Two views are defined in this session:
* comparative view: elements may be silently omitted or re-ordered
* plenary view: provides a complete set or is an error condition
* normalized version view: multiple versions of the same package
are suppressed
* denormalized version vew: all versions of an installation are
returned
Installations may have an additional records indicated by their
respective record types. The record may not be accessed through a
cast of the ``Installation``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_site_id(self):
"""Gets the ``Site`` ``Id`` associated with this session.
:return: the ``Site Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
site_id = property(fget=get_site_id)
@abc.abstractmethod
def get_site(self):
"""Gets the ``Site`` associated with this session.
:return: the ``Site`` associated with this session
:rtype: ``osid.installation.Site``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.Site
site = property(fget=get_site)
@abc.abstractmethod
def can_lookup_installations(self):
"""Tests if this user can perform ``Installation`` lookups.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer lookup
operations to unauthorized users.
:return: ``false`` if lookup methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_comparative_installation_view(self):
"""The returns from the lookup methods may omit or translate elements based on this session, such as
authorization, and not result in an error.
This view is used when greater interoperability is desired at
the expense of precision.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_plenary_installation_view(self):
"""A complete view of the ``Installation`` returns is desired.
Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the
expense of interoperability.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_normalized_version_view(self):
"""The returns from the lookup methods may omit multiple versions of the same installation.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_denormalized_version_view(self):
"""All versions of the same installation are returned.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_installation(self, installation_id):
"""Gets the ``Installation`` specified by its ``Id``.
In plenary mode, the exact ``Id`` is found or a ``NotFound``
results. Otherwise, the returned ``Installation`` may have a
different ``Id`` than requested, such as the case where a
duplicate ``Id`` was assigned to an ``Installation`` and
retained for compatibility.
:param installation_id: ``Id`` of the ``Installation``
:type installation_id: ``osid.id.Id``
:return: the installation
:rtype: ``osid.installation.Installation``
:raise: ``NotFound`` -- ``installation_id`` not found
:raise: ``NullArgument`` -- ``installation_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method is must be implemented.*
"""
return # osid.installation.Installation
@abc.abstractmethod
def get_installations_by_ids(self, installation_ids):
"""Gets an ``InstallationList`` corresponding to the given ``IdList``.
In plenary mode, the returned list contains all of the
installations specified in the ``Id`` list, in the order of the
list, including duplicates, or an error results if an ``Id`` in
the supplied list is not found or inaccessible. Otherwise,
inaccessible ``Installations`` may be omitted from the list and
may present the elements in any order including returning a
unique set.
:param installation_ids: the list of ``Ids`` to retrieve
:type installation_ids: ``osid.id.IdList``
:return: the returned ``Installation`` list
:rtype: ``osid.installation.InstallationList``
:raise: ``NotFound`` -- an ``Id`` was not found
:raise: ``NullArgument`` -- ``installation_ids`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationList
@abc.abstractmethod
def get_installations_by_genus_type(self, installation_genus_type):
"""Gets an ``InstallationList`` corresponding to the given installation genus ``Type`` which does not include
installations of genus types derived from the specified ``Type``.
In plenary mode, the returned list contains all known
installations or an error results. Otherwise, the returned list
may contain only those installations that are accessible through
this session.
:param installation_genus_type: an installation genus type
:type installation_genus_type: ``osid.type.Type``
:return: the returned ``Installation`` list
:rtype: ``osid.installation.InstallationList``
:raise: ``NullArgument`` -- ``installation_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationList
@abc.abstractmethod
def get_installations_by_parent_genus_type(self, installation_genus_type):
"""Gets an ``InstallationList`` corresponding to the given installation genus ``Type`` and include any
additional installations with genus types derived from the specified ``Type``.
In plenary mode, the returned list contains all known
installations or an error results. Otherwise, the returned list
may contain only those installations that are accessible through
this session.
:param installation_genus_type: an installation genus type
:type installation_genus_type: ``osid.type.Type``
:return: the returned ``Installation`` list
:rtype: ``osid.installation.InstallationList``
:raise: ``NullArgument`` -- ``installation_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationList
@abc.abstractmethod
def get_installations_by_record_type(self, installation_record_type):
"""Gets an ``InstallationList`` containing the given installation record ``Type``.
In plenary mode, the returned list contains all known
installations or an error results. Otherwise, the returned list
may contain only those installations that are accessible through
this session.
:param installation_record_type: an installation record type
:type installation_record_type: ``osid.type.Type``
:return: the returned ``Installation`` list
:rtype: ``osid.installation.InstallationList``
:raise: ``NullArgument`` -- ``installation_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationList
@abc.abstractmethod
def get_installations_by_package(self, package_id):
"""Gets an ``InstallationList`` corresponding to the given ``Package``.
In plenary mode, the returned list contains all of the
installations for the specified package, in the order of the
list, including duplicates, or an error results if an ``Id`` in
the supplied list is not found or inaccessible. Otherwise,
inaccessible ``Installations`` may be omitted from the list and
may present the elements in any order including returning a
unique set.
:param package_id: ``Id`` of a ``Package``
:type package_id: ``osid.id.Id``
:return: the returned ``Installation`` list
:rtype: ``osid.installation.InstallationList``
:raise: ``NullArgument`` -- ``package_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationList
@abc.abstractmethod
def get_installations(self):
"""Gets all ``Installations``.
In plenary mode, the returned list contains all known
installations or an error results. Otherwise, the returned list
may contain only those installations that are accessible through
this session. In both cases, the order of the set is not
specified.
:return: an ``InstallationList``
:rtype: ``osid.installation.InstallationList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationList
installations = property(fget=get_installations)
class InstallationQuerySession:
"""This session provides methods for searching ``Installations``.
The search query is constructed using the ``InstallationQuery``. The
installation record ``Type`` also specifies the record for the
installation query.
Installations may have a query record indicated by their respective
record types. The query record is accessed via the
``InstallationQuery``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_site_id(self):
"""Gets the ``Site`` ``Id`` associated with this session.
:return: the ``Site Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
site_id = property(fget=get_site_id)
@abc.abstractmethod
def get_site(self):
"""Gets the ``Site`` associated with this session.
:return: the ``Site`` associated with this session
:rtype: ``osid.installation.Site``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.Site
site = property(fget=get_site)
@abc.abstractmethod
def can_search_installations(self):
"""Tests if this user can perform ``Installation`` searches.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer search
operations to unauthorized users.
:return: ``false`` if search methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_normalized_version_view(self):
"""The returns from the lookup methods may omit multiple versions of the same installation.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_denormalized_version_view(self):
"""All versions of the same installation are returned.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_normalized_dependency_view(self):
"""A normalized view uses a single ``Installation`` to represent a set of package dependencies.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_denormalized_dependency_view(self):
"""A denormalized view returns all dependencies.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_installation_query(self):
"""Gets an installation query.
:return: the installation query
:rtype: ``osid.installation.InstallationQuery``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationQuery
installation_query = property(fget=get_installation_query)
@abc.abstractmethod
def get_installations_by_query(self, installation_query):
"""Gets a list of ``Installations`` matching the given installation query.
:param installation_query: the installation query
:type installation_query: ``osid.installation.InstallationQuery``
:return: the returned ``InstallationList``
:rtype: ``osid.installation.InstallationList``
:raise: ``NullArgument`` -- ``installation_query`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``installation_query`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationList
class InstallationSearchSession:
"""This session provides methods for searching ``Installations``.
The search query is constructed using the ``InstallationQuery``. The
installation record ``Type`` also specifies the record for the
installation query.
``get_installations_by_query()`` is the basic search method and
returns a list of ``Installations``. A more advanced search may be
performed with ``getInstallationsBySearch()``. It accepts an
``InstallationSearch`` in addition to the query for the purpose of
specifying additional options affecting the entire search, such as
ordering. ``get_installations_by_search()`` returns an
``InstallationSearchResults`` that can be used to access the
resulting ``InstallationList`` or be used to perform a search within
the result set through ``InstallationSearch``.
Installations may have a query record indicated by their respective
record types. The query record is accessed via the
``InstallationQuery``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_installation_search(self):
"""Gets an installation search.
:return: the installation search
:rtype: ``osid.installation.InstallationSearch``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationSearch
installation_search = property(fget=get_installation_search)
@abc.abstractmethod
def get_installation_search_order(self):
"""Gets an installation search order.
The ``InstallationSearchOrder`` is supplied to an
``InstallationSearch`` to specify the ordering of results.
:return: the installation search order
:rtype: ``osid.installation.InstallationSearchOrder``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationSearchOrder
installation_search_order = property(fget=get_installation_search_order)
@abc.abstractmethod
def get_installations_by_search(self, installation_query, installation_search):
"""Gets the search results matching the given search query using the given search.
:param installation_query: the installation query
:type installation_query: ``osid.installation.InstallationQuery``
:param installation_search: the installation search
:type installation_search: ``osid.installation.InstallationSearch``
:return: the returned search results
:rtype: ``osid.installation.InstallationSearchResults``
:raise: ``NullArgument`` -- ``installation_query`` or ``installation_search`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``installation_search`` or ``installation_query`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationSearchResults
@abc.abstractmethod
def get_installations_query_from_inspector(self, installaton_query_inspector):
"""Gets a installation query from an inspector.
The inspector is available from a ``InstallationSearchResults``.
:param installaton_query_inspector: a installation query inspector
:type installaton_query_inspector: ``osid.installation.InstallationQueryInspector``
:return: the installaton query
:rtype: ``osid.installation.InstallationQuery``
:raise: ``NullArgument`` -- ``installation_query_inspector`` is ``null``
:raise: ``Unsupported`` -- ``installation_query_inspector`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationQuery
class InstallationManagementSession:
"""This session defines methods to manage installations."""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_site_id(self):
"""Gets the ``Site`` ``Id`` associated with this session.
:return: the ``Site Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
site_id = property(fget=get_site_id)
@abc.abstractmethod
def get_site(self):
"""Gets the ``Site`` associated with this session.
:return: the ``Site`` associated with this session
:rtype: ``osid.installation.Site``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.Site
site = property(fget=get_site)
@abc.abstractmethod
def can_manage_installations(self):
"""Tests if this user can manage installations A return of true does not guarantee successful authorization.
A return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer management
operations to unauthorized users.
:return: ``false`` if ``Package`` installation is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def install_package(self, package_id):
"""Installs a package at a default site.
:param package_id: an ``Id`` of a ``Package``
:type package_id: ``osid.id.Id``
:return: the resulting ``Installation``
:rtype: ``osid.installation.Installation``
:raise: ``AlreadyExists`` -- package is already installed
:raise: ``NotFound`` -- ``package_id`` is not found
:raise: ``NullArgument`` -- ``package_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.Installation
@abc.abstractmethod
def remove_installation(self, installation_id):
"""Removes an installation.
:param installation_id: an ``Id`` of an ``Installation``
:type installation_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``installation_id`` is not found
:raise: ``NullArgument`` -- ``installation_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def remove_installations(self):
"""Removes all installations at the site.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class InstallationUpdateSession:
"""This session defines methods to manage installations."""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_site_id(self):
"""Gets the ``Site`` ``Id`` associated with this session.
:return: the ``Site Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
site_id = property(fget=get_site_id)
@abc.abstractmethod
def get_site(self):
"""Gets the ``Site`` associated with this session.
:return: the ``Site`` associated with this session
:rtype: ``osid.installation.Site``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.Site
site = property(fget=get_site)
@abc.abstractmethod
def can_get_installation_updates(self):
"""Tests if this user can get installation updates.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may wish not to offer update
operations to unauthorized users.
:return: ``false`` if package updates are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def is_installation_current(self):
"""Tests if the given installation is current.
:return: ``true`` if the installation is up to date, ``false`` otherwise
:rtype: ``boolean``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_installations_to_update(self):
"""Gets a list of installations requiring update.
This just returns installations that are out of date.
``get_packages_to_update()`` or
``get_packages_to_update_for_installation()`` should be used to
acquire the packages to install.
:return: the resulting ``InstallationList``
:rtype: ``osid.installation.InstallationList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationList
installations_to_update = property(fget=get_installations_to_update)
@abc.abstractmethod
def get_current_packages(self):
"""Gets the packages to install to bring the site up to date.
:return: the next packages to install
:rtype: ``osid.installation.PackageList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageList
current_packages = property(fget=get_current_packages)
@abc.abstractmethod
def get_current_packages_for_installation(self, installation_id):
"""Gets the packages to install to bring the specified installation up to date.
:param installation_id: an ``Id`` of an ``Installation``
:type installation_id: ``osid.id.Id``
:return: the next packages to install
:rtype: ``osid.installation.PackageList``
:raise: ``NotFound`` -- ``installation_id`` is not found
:raise: ``NullArgument`` -- ``installation_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageList
@abc.abstractmethod
def is_installation_obsolete(self):
"""Tests if the given installation is obsolete.
:return: ``true`` if the installation is obsolete, ``false`` otherwise
:rtype: ``boolean``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_obsolete_installations(self):
"""Gets the installations whose packages are obsolete.
:return: the obsolete installations
:rtype: ``osid.installation.InstallationList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationList
obsolete_installations = property(fget=get_obsolete_installations)
@abc.abstractmethod
def update_installation(self, installation_id):
"""Updates a single installation.
:param installation_id: an ``Id`` of an ``Installation``
:type installation_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``installation_id`` is not found
:raise: ``NullArgument`` -- ``installation_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def synchronize_installations(self):
"""Performs an auto-update by adding all new updated installations and removing of all obsolete installations on
the site.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class InstallationNotificationSession:
"""This session defines methods to receive asynchronous notifications on adds/changes to ``Installation`` objects.
This session is intended for consumers needing to synchronize their
state with this service without the use of polling. Notifications
are cancelled when this session is closed.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_site_id(self):
"""Gets the ``Site`` ``Id`` associated with this session.
:return: the ``Site Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
site_id = property(fget=get_site_id)
@abc.abstractmethod
def get_site(self):
"""Gets the ``Site`` associated with this session.
:return: the ``Site`` associated with this session
:rtype: ``osid.installation.Site``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.Site
site = property(fget=get_site)
@abc.abstractmethod
def can_register_for_installation_notifications(self):
"""Tests if this user can register for ``Installation`` notifications.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may not offer notification
functions to unauthorized users.
:return: ``false`` if notification methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def register_for_new_installations(self):
"""Register for notifications of new installations.
``InstallationReceiver.newInstallations()`` is invoked when a
new installation is installed.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_deleted_installations(self):
"""Registers for notification of deleted installations.
``InstallationReceiver.deletedInstallations()`` is invoked when
a installation is removed.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_deleted_installation(self, installation_id):
"""Registers for notification of a deleted installation.
``InstallationReceiver.deletedInstallations()`` is invoked when
the specified installation is removed.
:param installation_id: the ``Id`` of the ``Installation`` to monitor
:type installation_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``installation_id is null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class SiteLookupSession:
"""This session provides methods for retrieving ``Site`` objects.
The ``Site`` represents a collection of ``Installations``.
This session defines views that offer differing behaviors when
retrieving multiple objects.
* comparative view: elements may be silently omitted or re-ordered
* plenary view: provides a complete set or is an error condition
Sites may have an additional records indicated by their respective
record types. The record may not be accessed through a cast of the
``Site``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def can_lookup_sites(self):
"""Tests if this user can perform ``Site`` lookups.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer lookup
operations to unauthorized users.
:return: ``false`` if lookup methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_comparative_site_view(self):
"""The returns from the lookup methods may omit or translate elements based on this session, such as
authorization, and not result in an error.
This view is used when greater interoperability is desired at
the expense of precision.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_plenary_site_view(self):
"""A complete view of the ``Site`` returns is desired.
Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the
expense of interoperability.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_site(self, site_id):
"""Gets the ``Site`` specified by its ``Id``.
In plenary mode, the exact ``Id`` is found or a ``NotFound``
results. Otherwise, the returned ``Site`` may have a different
``Id`` than requested, such as the case where a duplicate ``Id``
was assigned to a ``Site`` and retained for compatibility.
:param site_id: ``Id`` of the ``Site``
:type site_id: ``osid.id.Id``
:return: the site
:rtype: ``osid.installation.Site``
:raise: ``NotFound`` -- ``site_id`` not found
:raise: ``NullArgument`` -- ``site_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method is must be implemented.*
"""
return # osid.installation.Site
@abc.abstractmethod
def get_sites(self):
"""Gets all ``Sites``.
In plenary mode, the returned list contains all known sites or
an error results. Otherwise, the returned list may contain only
those sites that are accessible through this session.
:return: a ``SiteList``
:rtype: ``osid.installation.SiteList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.SiteList
sites = property(fget=get_sites)
class PackageLookupSession:
"""This session provides methods for retrieving ``Package`` s from remote ``Depots``."""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_depot_id(self):
"""Gets the ``Depot`` ``Id`` associated with this session.
:return: the ``Depot Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
depot_id = property(fget=get_depot_id)
@abc.abstractmethod
def get_depot(self):
"""Gets the ``Depot`` associated with this session.
:return: the ``Depot`` associated with this session
:rtype: ``osid.installation.Depot``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.Depot
depot = property(fget=get_depot)
@abc.abstractmethod
def can_lookup_packages(self):
"""Tests if this user can perform ``Package`` lookups.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer lookup
operations to unauthorized users.
:return: ``false`` if lookup methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_comparative_package_view(self):
"""The returns from the lookup methods may omit or translate elements based on this session, such as
authorization, and not result in an error.
This view is used when greater interoperability is desired at
the expense of precision.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_plenary_package_view(self):
"""A complete view of the ``Package`` returns is desired.
Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the
expense of interoperability.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_federated_depot_view(self):
"""Federates the view for methods in this session.
A federated view will include packages in depots which are
children of this depot in the depot hierarchy.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_isolated_depot_view(self):
"""Isolates the view for methods in this session.
An isolated view restricts lookups to this depot only.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_normalized_version_view(self):
"""The returns from the lookup methods may omit multiple versions of the same package.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_denormalized_version_view(self):
"""All versions of the same package are returned.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_package(self, package_id):
"""Gets the ``Package`` specified by its ``Id``.
In plenary mode, the exact ``Id`` is found or a ``NotFound``
results. Otherwise, the returned ``Package`` may have a
different ``Id`` than requested, such as the case where a
duplicate ``Id`` was assigned to a ``Package`` and retained for
compatibility.
:param package_id: ``Id`` of the ``Package``
:type package_id: ``osid.id.Id``
:return: the package
:rtype: ``osid.installation.Package``
:raise: ``NotFound`` -- ``package_id`` not found
:raise: ``NullArgument`` -- ``package_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method is must be implemented.*
"""
return # osid.installation.Package
@abc.abstractmethod
def get_packages_by_ids(self, package_ids):
"""Gets a ``PackageList`` corresponding to the given ``IdList``.
In plenary mode, the returned list contains all of the packages
specified in the ``Id`` list, in the order of the list,
including duplicates, or an error results if an ``Id`` in the
supplied list is not found or inaccessible. Otherwise,
inaccessible ``Packages`` may be omitted from the list and may
present the elements in any order including returning a unique
set.
:param package_ids: the list of ``Ids`` to retrieve
:type package_ids: ``osid.id.IdList``
:return: the returned ``Package`` list
:rtype: ``osid.installation.PackageList``
:raise: ``NotFound`` -- an ``Id`` was not found
:raise: ``NullArgument`` -- ``package_ids`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageList
@abc.abstractmethod
def get_packages_by_genus_type(self, package_genus_type):
"""Gets a ``PackageList`` corresponding to the given package genus ``Type`` which does not include packages of
genus types derived from the specified ``Type``.
In plenary mode, the returned list contains all known packages
or an error results. Otherwise, the returned list may contain
only those packages that are accessible through this session.
:param package_genus_type: a package genus type
:type package_genus_type: ``osid.type.Type``
:return: the returned ``Package`` list
:rtype: ``osid.installation.PackageList``
:raise: ``NullArgument`` -- ``package_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageList
@abc.abstractmethod
def get_packages_by_parent_genus_type(self, package_genus_type):
"""Gets a ``PackageList`` corresponding to the given package genus ``Type`` and include any additional package
with genus types derived from the specified ``Type``.
In plenary mode, the returned list contains all known packages
or an error results. Otherwise, the returned list may contain
only those packages that are accessible through this session.
:param package_genus_type: a package genus type
:type package_genus_type: ``osid.type.Type``
:return: the returned ``Package`` list
:rtype: ``osid.installation.PackageList``
:raise: ``NullArgument`` -- ``package_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageList
@abc.abstractmethod
def get_packages_by_record_type(self, package_record_type):
"""Gets a ``PackageList`` containing the given package record ``Type``.
In plenary mode, the returned list contains all known packages
or an error results. Otherwise, the returned list may contain
only those packages that are accessible through this session.
:param package_record_type: a package record type
:type package_record_type: ``osid.type.Type``
:return: the returned ``Package`` list
:rtype: ``osid.installation.PackageList``
:raise: ``NullArgument`` -- ``package_record_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageList
@abc.abstractmethod
def get_packages_by_provider(self, resource_id):
"""Gets a ``PackageList`` for the given provider.
In plenary mode, the returned list contains all known packages
or an error results. Otherwise, the returned list may contain
only those packages that are accessible through this session.
:param resource_id: a resource ``Id``
:type resource_id: ``osid.id.Id``
:return: the returned ``Package`` list
:rtype: ``osid.installation.PackageList``
:raise: ``NullArgument`` -- ``resource_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageList
@abc.abstractmethod
def get_dependent_packages(self, package_id):
"""Gets a list of packages depending on the given package.
:param package_id: an ``Id`` of a ``Package``
:type package_id: ``osid.id.Id``
:return: list of package dependents
:rtype: ``osid.installation.PackageList``
:raise: ``NotFound`` -- ``package_id`` is not found
:raise: ``NullArgument`` -- ``package_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageList
@abc.abstractmethod
def get_package_versions(self, package_id):
"""Gets a list of packages in the specified package version chain.
:param package_id: an ``Id`` of a ``Package``
:type package_id: ``osid.id.Id``
:return: list of dependencies
:rtype: ``osid.installation.PackageList``
:raise: ``NotFound`` -- ``package_id`` is not found
:raise: ``NullArgument`` -- ``package_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageList
@abc.abstractmethod
def get_packages(self):
"""Gets all ``Packages``.
In plenary mode, the returned list contains all known packages
or an error results. Otherwise, the returned list may contain
only those packages that are accessible through this session.
:return: a ``PackageList``
:rtype: ``osid.installation.PackageList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageList
packages = property(fget=get_packages)
class PackageQuerySession:
"""This session provides methods for searching ``Package`` objects.
The search query is constructed using the ``PackageQuery``. The
package record ``Type`` also specifies the record for the package
query.
This session defines views that offer differing behaviors for
searching.
* federated depot view: searches include packages in depots of
which this depot is a ancestor in the depot hierarchy
* isolated depot view: searches are restricted to packages in this
depot
* normalized version view: multiple versions of the same package
are suppressed
* denormalized version vew: all versions of an installation are
returned
* normalized dependency view: supporting installations upon which
other installations depend are suppressed
* denormalized dependency view: all dependencies are returned
Packages may have a query record indicated by their respective
record types. The query record is accessed via the ``PackageQuery``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_depot_id(self):
"""Gets the ``Depot`` ``Id`` associated with this session.
:return: the ``Depot Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
depot_id = property(fget=get_depot_id)
@abc.abstractmethod
def get_depot(self):
"""Gets the ``Depot`` associated with this session.
:return: the ``Depot`` associated with this session
:rtype: ``osid.installation.Depot``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.Depot
depot = property(fget=get_depot)
@abc.abstractmethod
def can_search_packages(self):
"""Tests if this user can perform ``Package`` searches.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer search
operations to unauthorized users.
:return: ``false`` if search methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_federated_depot_view(self):
"""Federates the view for methods in this session.
A federated view will include packages in depots which are
children of this depot in the depot hierarchy.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_isolated_depot_view(self):
"""Isolates the view for methods in this session.
An isolated view restricts searches to this depot only.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_normalized_version_view(self):
"""The returns from the lookup methods may omit multiple versions of the same package.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_denormalized_version_view(self):
"""All versions of the same package are returned.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_normalized_dependency_view(self):
"""A normalized view uses a single ``Package`` to represent a set of package dependencies.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_denormalized_dependency_view(self):
"""A denormalized view returns all dependencies.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_package_query(self):
"""Gets a package query.
:return: the package query
:rtype: ``osid.installation.PackageQuery``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageQuery
package_query = property(fget=get_package_query)
@abc.abstractmethod
def get_packages_by_query(self, package_query):
"""Gets a list of ``Packages`` matching the given package query.
:param package_query: the package query
:type package_query: ``osid.installation.PackageQuery``
:return: the returned ``PackageList``
:rtype: ``osid.installation.PackageList``
:raise: ``NullArgument`` -- ``package_query`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``package_query`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageList
class PackageSearchSession:
"""This session provides methods for searching ``Package`` objects.
The search query is constructed using the ``PackageQuery``. The
package record ``Type`` also specifies the record for the package
query.
``get_packages_by_query()`` is the basic search method and returns a
list of ``Packages``. A more advanced search may be performed with
``getPackagesBySearch()``. It accepts a ``PackageSearch`` in
addition to the query for the purpose of specifying additional
options affecting the entire search, such as ordering.
``get_packages_by_search()`` returns a ``PackageSearchResults`` that
can be used to access the resulting ``PackageList`` or be used to
perform a search within the result set through ``PackageSearch``.
This session defines views that offer differing behaviors for
searching.
* federated depot view: searches include packages in depots of
which this depot is a ancestor in the depot hierarchy
* isolated depot view: searches are restricted to packages in this
depot
* normalized version view: multiple versions of the same package
are suppressed
* denormalized version vew: all versions of an installation are
returned
* normalized dependency view: supporting installations upon which
other installations depend are suppressed
* denormalized dependency view: all dependencies are returned
Packages may have a query record indicated by their respective
record types. The query record is accessed via the ``PackageQuery``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_package_search(self):
"""Gets a package search.
:return: the package search
:rtype: ``osid.installation.PackageSearch``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageSearch
package_search = property(fget=get_package_search)
@abc.abstractmethod
def get_package_search_order(self):
"""Gets a package search order.
The ``PackageSearchOrder`` is supplied to a ``PackageSearch`` to
specify the ordering of results.
:return: the package search order
:rtype: ``osid.installation.PackageSearchOrder``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageSearchOrder
package_search_order = property(fget=get_package_search_order)
@abc.abstractmethod
def get_packages_by_search(self, package_query, package_search):
"""Gets the search results matching the given search query using the given search.
:param package_query: the package query
:type package_query: ``osid.installation.PackageQuery``
:param package_search: the package search
:type package_search: ``osid.installation.PackageSearch``
:return: the returned search results
:rtype: ``osid.installation.PackageSearchResults``
:raise: ``NullArgument`` -- ``package_query`` or ``package_search`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``package_search`` or ``package_query`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageSearchResults
@abc.abstractmethod
def get_package_query_from_inspector(self, package_query_inspector):
"""Gets a package query from an inspector.
The inspector is available from a ``PackageeSearchResults``.
:param package_query_inspector: a package query inspector
:type package_query_inspector: ``osid.installation.PackageQueryInspector``
:return: the package query
:rtype: ``osid.installation.PackageQuery``
:raise: ``NullArgument`` -- ``package_query_inspector`` is ``null``
:raise: ``Unsupported`` -- ``package_query_inspector`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageQuery
class PackageAdminSession:
"""This session creates, updates, and deletes ``Packages``.
The data for create and update is provided by the consumer via the
form object. ``OsidForms`` are requested for each create or update
and may not be reused.
Create and update operations differ in their usage. To create a
``Package,`` a ``PackagetForm`` is requested using
``get_package_form_for_create()`` specifying the desired record
``Types`` or none if no record ``Types`` are needed. The returned
``PackageForm`` will indicate that it is to be used with a create
operation and can be used to examine metdata or validate data prior
to creation. Once the ``PackageForm`` is submiited to a create
operation, it cannot be reused with another create operation unless
the first operation was unsuccessful. Each ``PackageForm``
corresponds to an attempted transaction.
For updates, ``PackageForms`` are requested to the ``Package``
``Id`` that is to be updated using ``getPackageFormForUpdate()``.
Similarly, the ``PackageForm`` has metadata about the data that can
be updated and it can perform validation before submitting the
update. The ``PackageForm`` can only be used once for a successful
update and cannot be reused.
The delete operations delete ``Packages``. To unmap a ``Package``
from the current ``Depot,`` the ``PackageDepotAssignmentSession``
should be used. These delete operations attempt to remove the
``Package`` itself thus removing it from all known ``Depot``
catalogs.
This session includes an ``Id`` aliasing mechanism to assign an
external ``Id`` to an internally assigned Id.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_depot_id(self):
"""Gets the ``Depot`` ``Id`` associated with this session.
:return: the ``Depot Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
depot_id = property(fget=get_depot_id)
@abc.abstractmethod
def get_depot(self):
"""Gets the ``Depot`` associated with this session.
:return: the ``Depot`` associated with this session
:rtype: ``osid.installation.Depot``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.Depot
depot = property(fget=get_depot)
@abc.abstractmethod
def can_create_packages(self):
"""Tests if this user can create ``Packages``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known creating a
``Package`` will result in a ``PermissionDenied``. This is
intended as a hint to an application that may opt not to offer
create operations to an unauthorized user.
:return: ``false`` if ``Package`` creation is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def can_create_package_with_record_types(self, package_record_types):
"""Tests if this user can create a single ``Package`` using the desired record types.
While ``InstallationManager.getPackageRecordTypes()`` can be
used to examine which records are supported, this method tests
which record(s) are required for creating a specific
``Package``. Providing an empty array tests if a ``Package`` can
be created with no records.
:param package_record_types: array of package record types
:type package_record_types: ``osid.type.Type[]``
:return: ``true`` if ``Package`` creation using the specified record ``Types`` is supported, ``false`` otherwise
:rtype: ``boolean``
:raise: ``NullArgument`` -- ``package_record_types`` is ``null``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_package_form_for_create(self, package_record_types):
"""Gets the package form for creating new packages.
A new form should be requested for each create transaction.
:param package_record_types: array of package record types
:type package_record_types: ``osid.type.Type[]``
:return: the package form
:rtype: ``osid.installation.PackageForm``
:raise: ``NullArgument`` -- ``package_record_types`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- unable to get form for requested record types
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageForm
@abc.abstractmethod
def create_package(self, package_form):
"""Creates a new ``Package``.
:param package_form: the form for this ``Package``
:type package_form: ``osid.installation.PackageForm``
:return: the new ``Package``
:rtype: ``osid.installation.Package``
:raise: ``IllegalState`` -- ``package_form`` already used in a create transaction
:raise: ``InvalidArgument`` -- one or more of the form elements is invalid
:raise: ``NullArgument`` -- ``package_form`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``package_form`` did not originate from ``get_package_form_for_create()``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.Package
@abc.abstractmethod
def can_update_packages(self):
"""Tests if this user can update ``Packages``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known updating a
``Package`` will result in a ``PermissionDenied``. This is
intended as a hint to an application that may opt not to offer
update operations to an unauthorized user.
:return: ``false`` if package modification is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def can_update_package(self, package_id):
"""Tests if this user can update a specified package.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known updating the package
will result in a ``PermissionDenied``. This is intended as a
hint to an application that may opt not to offer an update
operation to an unauthorized user for this function.
:param package_id: the ``Id`` of the ``Package``
:type package_id: ``osid.id.Id``
:return: ``false`` if package modification is not authorized, ``true`` otherwise
:rtype: ``boolean``
:raise: ``NullArgument`` -- ``package_id`` is ``null``
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If the ``package_id`` is not found, then
it is acceptable to return false to indicate the lack of an
update available.
"""
return # boolean
@abc.abstractmethod
def get_package_form_for_update(self, package_id):
"""Gets the package form for updating an existing package.
A new package form should be requested for each update
transaction.
:param package_id: the ``Id`` of the ``Package``
:type package_id: ``osid.id.Id``
:return: the package form
:rtype: ``osid.installation.PackageForm``
:raise: ``NotFound`` -- ``package_id`` is not found
:raise: ``NullArgument`` -- ``package_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageForm
@abc.abstractmethod
def update_package(self, package_form):
"""Updates an existing package.
:param package_form: the form containing the elements to be updated
:type package_form: ``osid.installation.PackageForm``
:raise: ``InvalidArgument`` -- the form contains an invalid value
:raise: ``NullArgument`` -- ``package_form`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``package_form`` did not originate from ``get_package_form_for_update()``
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def can_delete_packages(self):
"""Tests if this user can delete ``Packages``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known deleting a
``Package`` will result in a ``PermissionDenied``. This is
intended as a hint to an application that may opt not to offer
delete operations to an unauthorized user.
:return: ``false`` if ``Package`` deletion is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def can_delete_package(self, package_id):
"""Tests if this user can delete a specified ``Package``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known deleting the
``Package`` will result in a ``PermissionDenied``. This is
intended as a hint to an application that may opt not to offer a
delete operation to an unauthorized user for this function.
:param package_id: the ``Id`` of the ``Package``
:type package_id: ``osid.id.Id``
:return: ``false`` if ``Package`` deletion is not authorized, ``true`` otherwise
:rtype: ``boolean``
:raise: ``NullArgument`` -- ``package_id`` is ``null``
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If the ``package_id`` is not found, then
it is acceptable to return false to indicate the lack of a
delete available.
"""
return # boolean
@abc.abstractmethod
def delete_package(self, package_id):
"""Deletes the ``Package`` identified by the given ``Id``.
:param package_id: the ``Id`` of the ``Package`` to delete
:type package_id: ``osid.id.Id``
:raise: ``NotFound`` -- a ``Package`` was not found identified by the given ``Id``
:raise: ``NullArgument`` -- ``package_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def can_manage_package_aliases(self):
"""Tests if this user can manage ``Id`` aliases for ``Packages``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known changing an alias
will result in a ``PermissionDenied``. This is intended as a
hint to an application that may opt not to offer alias
operations to an unauthorized user.
:return: ``false`` if ``Package`` aliasing is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def alias_package(self, package_id, alias_id):
"""Adds an ``Id`` to a ``Package`` for the purpose of creating compatibility.
The primary ``Id`` of the ``Package`` is determined by the
provider. The new ``Id`` performs as an alias to the primary
``Id``. If the alias is a pointer to another package it is
reassigned to the given package ``Id``.
:param package_id: the ``Id`` of a ``Package``
:type package_id: ``osid.id.Id``
:param alias_id: the alias ``Id``
:type alias_id: ``osid.id.Id``
:raise: ``AlreadyExists`` -- ``alias_id`` is already assigned
:raise: ``NotFound`` -- ``package_id`` not found
:raise: ``NullArgument`` -- ``package_id`` or ``alias_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def can_create_installation_content(self):
"""Tests if this user can create content for ``Packages``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known creating an
``InstallationContent`` will result in a ``PermissionDenied``.
This is intended as a hint to an application that may opt not to
offer create operations to an unauthorized user.
:return: ``false`` if ``installation`` content creation is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def can_create_installation_content_with_record_types(self, installation_content_record_types):
"""Tests if this user can create an ``InstallationContent`` using the desired record types.
While
``InstallationManager.getInstallationContentRecordTypes()`` can
be used to test which records are supported, this method tests
which records are required for creating a specific
``InstallationContent``. Providing an empty array tests if an
``InstallationContent`` can be created with no records.
:param installation_content_record_types: array of installation content record types
:type installation_content_record_types: ``osid.type.Type[]``
:return: ``true`` if ``InstallationContent`` creation using the specified ``Types`` is supported, ``false``
otherwise
:rtype: ``boolean``
:raise: ``NullArgument`` -- ``installation_content_record_types`` is ``null``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_installation_content_form_for_create(self, package_id, installation_content_record_types):
"""Gets an installation content form for creating new installation contents.
:param package_id: the ``Id`` of a ``Package``
:type package_id: ``osid.id.Id``
:param installation_content_record_types: array of installation content record types
:type installation_content_record_types: ``osid.type.Type[]``
:return: the installation content form
:rtype: ``osid.installation.InstallationContentForm``
:raise: ``NotFound`` -- ``package_id`` is not found
:raise: ``NullArgument`` -- ``package_id`` or ``installation_content_record_types`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- unable to get form for requested record types
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationContentForm
@abc.abstractmethod
def create_installation_content(self, installation_content_form):
"""Creates new ``InstallationContent`` for a given package.
:param installation_content_form: the form for this ``InstallationContent``
:type installation_content_form: ``osid.installation.InstallationContentForm``
:return: the new ``InstallationContent``
:rtype: ``osid.installation.InstallationContent``
:raise: ``IllegalState`` -- ``installation_content_form`` already used in a create transaction
:raise: ``InvalidArgument`` -- one or more of the form elements is invalid
:raise: ``NullArgument`` -- ``installation_content_form`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``installation_content_form`` did not originate from
``get_installation_content_form_for_create()``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationContent
@abc.abstractmethod
def can_update_installation_contents(self):
"""Tests if this user can update ``InstallationContent``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known updating an
``InstallationContent`` will result in a ``PermissionDenied``.
This is intended as a hint to an application that may opt not to
offer update operations to an unauthorized user.
:return: ``false`` if ``InstallationContent`` modification is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_installation_content_form_for_update(self, installation_content_id):
"""Gets the installation content form for updating an existing installation content.
A new installation content form should be requested for each
update transaction.
:param installation_content_id: the ``Id`` of the ``InstallationContent``
:type installation_content_id: ``osid.id.Id``
:return: the v content form
:rtype: ``osid.installation.InstallationContentForm``
:raise: ``NotFound`` -- ``installation_content_id`` is not found
:raise: ``NullArgument`` -- ``installation_content_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.InstallationContentForm
@abc.abstractmethod
def update_installation_content(self, installation_content_form):
"""Updates an existing installation content.
:param installation_content_form: the form containing the elements to be updated
:type installation_content_form: ``osid.installation.InstallationContentForm``
:raise: ``IllegalState`` -- ``installation_content_form`` already used in an update transaction
:raise: ``InvalidArgument`` -- the form contains an invalid value
:raise: ``NullArgument`` -- ``installation_form`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``installation_content_form`` did not originate from
``get_installation_content_form_for_update()``
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def can_delete_installation_contents(self):
"""Tests if this user can delete ``InstallationContents``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known deleting an
``InstallationContent`` will result in a ``PermissionDenied``.
This is intended as a hint to an application that may opt not to
offer delete operations to an unauthorized user.
:return: ``false`` if ``InstallationContent`` deletion is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def delete_installation_content(self, installation_content_id):
"""Deletes content from a package.
:param installation_content_id: the ``Id`` of the ``InstallationContent``
:type installation_content_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``installation_content_id`` is not found
:raise: ``NullArgument`` -- ``installation_content_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def can_manage_package_versions(self):
"""Tests if this user can manage package versions.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known version methods will
result in a ``PermissionDenied``. This is intended as a hint to
an application that may opt not to offer delete operations to an
unauthorized user.
:return: ``false`` if package versioning is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def add_package_version(self, package_id, next_package_id):
"""Sets the given package to be the next version of another package.
:param package_id: the ``Id`` of a ``Package``
:type package_id: ``osid.id.Id``
:param next_package_id: the ``Id`` of the net package version
:type next_package_id: ``osid.id.Id``
:raise: ``AlreadyExists`` -- ``next_package_id`` or ``package_id`` already part of a version chain
:raise: ``NotFound`` -- ``package_id`` or ``next_package_id`` not found
:raise: ``NullArgument`` -- ``package_id`` or ``next_package_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def remove_package_version(self, package_id, next_package_id):
"""Removes a package from being the next version of another package.
:param package_id: the ``Id`` of a ``Package``
:type package_id: ``osid.id.Id``
:param next_package_id: the ``Id`` of the net package version
:type next_package_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``next_package_id`` does not follow ``package_id``
:raise: ``NullArgument`` -- ``package_id`` or ``dependency_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class PackageNotificationSession:
"""This session defines methods to receive asynchronous notifications on adds/changes to ``Package`` objects.
This session is intended for consumers needing to synchronize their
state with this service without the use of polling. Notifications
are cancelled when this session is closed.
The views defined in this session correspond to the views in the
``PackageLookupSession``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_depot_id(self):
"""Gets the ``Depot`` ``Id`` associated with this session.
:return: the ``Depot Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
depot_id = property(fget=get_depot_id)
@abc.abstractmethod
def get_depot(self):
"""Gets the ``Depot`` associated with this session.
:return: the ``Depot`` associated with this session
:rtype: ``osid.installation.Depot``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.Depot
depot = property(fget=get_depot)
@abc.abstractmethod
def can_register_for_package_notifications(self):
"""Tests if this user can register for ``Package`` notifications.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer
notification operations.
:return: ``false`` if notification methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_federated_depot_view(self):
"""Federates the view for methods in this session.
A federated view will include notifications for packages in
depots which are children of this depot in the depot hierarchy.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_isolated_depot_view(self):
"""Isolates the view for methods in this session.
An isolated view restricts notifications to this depot only.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_new_packages(self):
"""Register for notifications of new packages.
``PackageReceiver.newPackages()`` is invoked when a new package
is created.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_changed_packages(self):
"""Registers for notification of updated packages.
``PackageReceiver.changedPackages()`` is invoked when a package
is changed.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_changed_package(self, package_id):
"""Registers for notification of an updated package.
``PackageReceiver.changedPackages()`` is invoked when the
specified package is changed.
:param package_id: the ``Id`` of the ``Package`` to monitor
:type package_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``package_id is null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_deleted_packages(self):
"""Registers for notification of deleted packages.
``PackageReceiver.deletedPackages()`` is invoked when a package
is removed from this depot.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_deleted_package(self, package_id):
"""Registers for notification of a deleted package.
``PackageReceiver.deletedPackages()`` is invoked when the
specified package is removed from this depot.
:param package_id: the ``Id`` of the ``Package`` to monitor
:type package_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``package_id is null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class PackageDepotSession:
"""This session provides methods to retrieve ``Package`` to ``Depot`` mappings.
A ``Package`` may appear in multiple ``Depots``. Each ``Depot`` may
have its own authorizations governing who is allowed to look at it.
This lookup session defines two views:
* comparative view: elements may be silently omitted or re-ordered
* plenary view: provides a complete result set or is an error
condition
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def can_lookup_package_depot_mappings(self):
"""Tests if this user can perform lookups of package/depot mappings.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known lookup methods in
this session will result in a ``PermissionDenied``. This is
intended as a hint to an application that may opt not to offer
lookup operations to unauthorized users.
:return: ``false`` if looking up mappings is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_comparative_depot_view(self):
"""The returns from the lookup methods may omit or translate elements based on this session, such as
authorization, and not result in an error.
This view is used when greater interoperability is desired at
the expense of precision.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_plenary_depot_view(self):
"""A complete view of the ``Package`` and ``Depot`` returns is desired.
Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the
expense of interoperability.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_normalized_version_view(self):
"""The returns from the lookup methods may omit multiple versions of the same package.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_denormalized_version_view(self):
"""All versions of the same package are returned.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_normalized_dependency_view(self):
"""A normalized view uses a single ``Package`` to represent a set of package dependencies.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_denormalized_dependency_view(self):
"""A denormalized view returns all dependencies.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_package_ids_by_depot(self, depot_id):
"""Gets the list of ``Package`` ``Ids`` associated with a ``Depot``.
:param depot_id: ``Id`` of the ``Depot``
:type depot_id: ``osid.id.Id``
:return: list of related package ``Ids``
:rtype: ``osid.id.IdList``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def get_packages_by_depot(self, depot_id):
"""Gets the list of ``Packages`` associated with a ``Depot``.
:param depot_id: ``Id`` of the ``Depot``
:type depot_id: ``osid.id.Id``
:return: list of related packages
:rtype: ``osid.installation.PackageList``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageList
@abc.abstractmethod
def get_package_ids_by_depots(self, depot_ids):
"""Gets the list of ``Package Ids`` corresponding to a list of ``Depots``.
:param depot_ids: list of depot ``Ids``
:type depot_ids: ``osid.id.IdList``
:return: list of package ``Ids``
:rtype: ``osid.id.IdList``
:raise: ``NullArgument`` -- ``depot_ids`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def get_packages_by_depots(self, depot_ids):
"""Gets the list of ``Packages`` corresponding to a list of ``Depots``.
:param depot_ids: list of depot ``Ids``
:type depot_ids: ``osid.id.IdList``
:return: list of packages
:rtype: ``osid.installation.PackageList``
:raise: ``NullArgument`` -- ``depot_ids`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageList
@abc.abstractmethod
def get_depot_ids_by_package(self, package_id):
"""Gets the list of ``Depot`` ``Ids`` mapped to a ``Package``.
:param package_id: ``Id`` of a ``Package``
:type package_id: ``osid.id.Id``
:return: list of depot ``Ids``
:rtype: ``osid.id.IdList``
:raise: ``NotFound`` -- ``package_id`` is not found
:raise: ``NullArgument`` -- ``package_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def get_depots_by_package(self, package_id):
"""Gets the list of ``Depots`` mapped to a ``Package``.
:param package_id: ``Id`` of a ``Package``
:type package_id: ``osid.id.Id``
:return: list of depots
:rtype: ``osid.installation.DepotList``
:raise: ``NotFound`` -- ``package_id`` is not found
:raise: ``NullArgument`` -- ``package_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotList
class PackageDepotAssignmentSession:
"""This session provides methods to re-assign ``Packages`` to ``Depots``.
A ``Package`` may map to multiple ``Depots`` and removing the last
reference to an ``Package`` is the equivalent of deleting it. Each
``Depot`` may have its own authorizations governing who is allowed
to operate on it.
Moving or adding a reference of a ``Package`` to another ``Depot``
is not a copy operation (eg: does not change its ``Id`` ).
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def can_assign_packages(self):
"""Tests if this user can alter package/depot mappings.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known mapping methods in
this session will result in a ``PermissionDenied``. This is
intended as a hint to an application that may opt not to offer
assignment operations to unauthorized users.
:return: ``false`` if mapping is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def can_assign_packages_to_depot(self, depot_id):
"""Tests if this user can alter package/depot mappings.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known mapping methods in
this session will result in a ``PermissionDenied``. This is
intended as a hint to an application that may opt not to offer
assignment operations to unauthorized users.
:param depot_id: the ``Id`` of the ``Depot``
:type depot_id: ``osid.id.Id``
:return: ``false`` if mapping is not authorized, ``true`` otherwise
:rtype: ``boolean``
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_assignable_depot_ids(self, depot_id):
"""Gets a list of depot including and under the given depot node in which any package can be assigned.
:param depot_id: the ``Id`` of the ``Depot``
:type depot_id: ``osid.id.Id``
:return: list of assignable depot ``Ids``
:rtype: ``osid.id.IdList``
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def get_assignable_depot_ids_for_package(self, depot_id, package_id):
"""Gets a list of depot including and under the given depot node in which a specific package can be assigned.
:param depot_id: the ``Id`` of the ``Depot``
:type depot_id: ``osid.id.Id``
:param package_id: the ``Id`` of the ``Package``
:type package_id: ``osid.id.Id``
:return: list of assignable depot ``Ids``
:rtype: ``osid.id.IdList``
:raise: ``NullArgument`` -- ``depot_id`` or ``package_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def assign_package_to_depot(self, package_id, depot_id):
"""Adds an existing ``Package`` to a ``Depot``.
:param package_id: the ``Id`` of the ``Package``
:type package_id: ``osid.id.Id``
:param depot_id: the ``Id`` of the ``Depot``
:type depot_id: ``osid.id.Id``
:raise: ``AlreadyExists`` -- ``package_id`` is already assigned to ``depot_id``
:raise: ``NotFound`` -- ``package_id`` or ``depot_id`` not found
:raise: ``NullArgument`` -- ``package_id`` or ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def unassign_package_from_depot(self, package_id, depot_id):
"""Removes a ``Package`` from a ``Depot``.
:param package_id: the ``Id`` of the ``Package``
:type package_id: ``osid.id.Id``
:param depot_id: the ``Id`` of the ``Depot``
:type depot_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``package_id`` or ``depot_id`` not found or ``package_id`` not assigned to ``depot_id``
:raise: ``NullArgument`` -- ``package_id`` or ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class PackageSmartDepotSession:
"""This session manages queries and sequencing to create "smart" dynamic catalogs.
A ``PackageQuery`` can be retrieved from this session and mapped to
this ``Depot`` to create a virtual collection of ``Packages``. The
packages may be sequenced using the ``PackageSearchOrder`` from this
session.
This ``Depot`` has a default query that matches any package and a
default search order that specifies no sequencing. The queries may
be examined using a ``PackageQueryInspector``. The query may be
modified by converting the inspector back to a ``PackageQuery``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_depot_id(self):
"""Gets the ``Depot`` ``Id`` associated with this session.
:return: the ``Depot Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
depot_id = property(fget=get_depot_id)
@abc.abstractmethod
def get_depot(self):
"""Gets the ``Depot`` associated with this session.
:return: the ``Depot`` associated with this session
:rtype: ``osid.installation.Depot``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.Depot
depot = property(fget=get_depot)
@abc.abstractmethod
def can_manage_smart_depot(self):
"""Tests if this user can manage smart depot.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer operations
to unauthorized users.
:return: ``false`` if smart depot management is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_package_query(self):
"""Gets a package query.
:return: the package query
:rtype: ``osid.installation.PackageQuery``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageQuery
package_query = property(fget=get_package_query)
@abc.abstractmethod
def get_package_search_order(self):
"""Gets a package search order.
:return: the package search order
:rtype: ``osid.installation.PackageSearchOrder``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageSearchOrder
package_search_order = property(fget=get_package_search_order)
@abc.abstractmethod
def apply_package_query(self, package_query):
"""Applies a package query to this depot.
:param package_query: the package query
:type package_query: ``osid.installation.PackageQuery``
:raise: ``NullArgument`` -- ``package_query`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure occurred
:raise: ``Unsupported`` -- ``package_query`` not of this service
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def inspect_package_query(self):
"""Gets a package query inspector for this depot.
:return: the package query inspector
:rtype: ``osid.installation.PackageQueryInspector``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure occurred
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageQueryInspector
@abc.abstractmethod
def apply_package_sequencing(self, package_search_order):
"""Applies a package search order to this depot.
:param package_search_order: the package search order
:type package_search_order: ``osid.installation.PackageSearchOrder``
:raise: ``NullArgument`` -- ``package_search_order`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure occurred
:raise: ``Unsupported`` -- ``package_search_order`` not of this service
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def get_package_query_from_inspector(self, package_query_inspector):
"""Gets a package query from an inspector.
:param package_query_inspector: a package query inspector
:type package_query_inspector: ``osid.installation.PackageQueryInspector``
:return: the package query
:rtype: ``osid.installation.PackageQuery``
:raise: ``NullArgument`` -- ``package_query_inspector`` is ``null``
:raise: ``Unsupported`` -- ``package_query_inspector`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.PackageQuery
class DepotLookupSession:
"""This session provides methods for retrieving ``Depot`` objects.
The ``Depot`` represents a collection of ``Packages``.
This session defines views that offer differing behaviors when
retrieving multiple objects.
* comparative view: elements may be silently omitted or re-ordered
* plenary view: provides a complete set or is an error condition
Generally, the comparative view should be used for most applications
as it permits operation even if there is data that cannot be
accessed. For example, a browsing application may only need to
examine the ``Depots`` it can access, without breaking execution.
However, an administrative application may require all ``Depot``
elements to be available.
Depots may have an additional records indicated by their respective
record types. The record may not be accessed through a cast of the
``Depot``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def can_lookup_depots(self):
"""Tests if this user can perform ``Depot`` lookups.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer lookup
operations to unauthorized users.
:return: ``false`` if lookup methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_comparative_depot_view(self):
"""The returns from the lookup methods may omit or translate elements based on this session, such as
authorization, and not result in an error.
This view is used when greater interoperability is desired at
the expense of precision.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_plenary_depot_view(self):
"""A complete view of the ``Depot`` returns is desired.
Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the
expense of interoperability.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_depot(self, depot_id):
"""Gets the ``Depot`` specified by its ``Id``.
In plenary mode, the exact ``Id`` is found or a ``NotFound``
results. Otherwise, the returned ``Depot`` may have a different
``Id`` than requested, such as the case where a duplicate ``Id``
was assigned to a ``Depot`` and retained for compatility.
:param depot_id: ``Id`` of the ``Depot``
:type depot_id: ``osid.id.Id``
:return: the depot
:rtype: ``osid.installation.Depot``
:raise: ``NotFound`` -- ``depot_id`` not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method is must be implemented.*
"""
return # osid.installation.Depot
@abc.abstractmethod
def get_depots_by_ids(self, depot_ids):
"""Gets a ``DepotList`` corresponding to the given ``IdList``.
In plenary mode, the returned list contains all of the depots
specified in the ``Id`` list, in the order of the list,
including duplicates, or an error results if an ``Id`` in the
supplied list is not found or inaccessible. Otherwise,
inaccessible ``Depot`` objects may be omitted from the list and
may present the elements in any order including returning a
unique set.
:param depot_ids: the list of ``Ids`` to retrieve
:type depot_ids: ``osid.id.IdList``
:return: the returned ``Depot`` list
:rtype: ``osid.installation.DepotList``
:raise: ``NotFound`` -- an ``Id was`` not found
:raise: ``NullArgument`` -- ``depot_ids`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotList
@abc.abstractmethod
def get_depots_by_genus_type(self, depot_genus_type):
"""Gets a ``DepotList`` corresponding to the given depot genus ``Type`` which does not include depots of types
derived from the specified ``Type``.
In plenary mode, the returned list contains all known depots or
an error results. Otherwise, the returned list may contain only
those depots that are accessible through this session.
:param depot_genus_type: a depot genus type
:type depot_genus_type: ``osid.type.Type``
:return: the returned ``Depot`` list
:rtype: ``osid.installation.DepotList``
:raise: ``NullArgument`` -- ``depot_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotList
@abc.abstractmethod
def get_depots_by_parent_genus_type(self, depot_genus_type):
"""Gets a ``DepotList`` corresponding to the given depot genus ``Type`` and include any additional depots with
genus types derived from the specified ``Type``.
In plenary mode, the returned list contains all known depots or
an error results. Otherwise, the returned list may contain only
those depots that are accessible through this session.
:param depot_genus_type: a depot genus type
:type depot_genus_type: ``osid.type.Type``
:return: the returned ``Depot`` list
:rtype: ``osid.installation.DepotList``
:raise: ``NullArgument`` -- ``depot_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotList
@abc.abstractmethod
def get_depots_by_record_type(self, depot_record_type):
"""Gets a ``DepotList`` containing the given depot record ``Type``.
In plenary mode, the returned list contains all known depots or
an error results. Otherwise, the returned list may contain only
those depots that are accessible through this session.
:param depot_record_type: a depot record type
:type depot_record_type: ``osid.type.Type``
:return: the returned ``Depot`` list
:rtype: ``osid.installation.DepotList``
:raise: ``NullArgument`` -- ``depot_record_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotList
@abc.abstractmethod
def get_depots_by_provider(self, resource_id):
"""Gets a ``DepotList`` for the given provider ````.
In plenary mode, the returned list contains all known depots or
an error results. Otherwise, the returned list may contain only
those depots that are accessible through this session.
:param resource_id: a resource ``Id``
:type resource_id: ``osid.id.Id``
:return: the returned ``Depot`` list
:rtype: ``osid.installation.DepotList``
:raise: ``NullArgument`` -- ``resource_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotList
@abc.abstractmethod
def get_depots(self):
"""Gets all ``Depots``.
In plenary mode, the returned list contains all known depots or
an error results. Otherwise, the returned list may contain only
those depots that are accessible through this session.
:return: a ``DepotList``
:rtype: ``osid.installation.DepotList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotList
depots = property(fget=get_depots)
class DepotQuerySession:
"""This session provides methods for searching among ``Depot`` objects.
The search query is constructed using the ``DepotQuery``.
Depots may have a query record indicated by their respective record
types. The query record is accessed via the ``DepotQuery``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def can_search_depots(self):
"""Tests if this user can perform ``Depot`` searches.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer search
operations to unauthorized users.
:return: ``false`` if search methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_depot_query(self):
"""Gets a depot query.
:return: a depot query
:rtype: ``osid.installation.DepotQuery``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotQuery
depot_query = property(fget=get_depot_query)
@abc.abstractmethod
def get_depots_by_query(self, depot_query):
"""Gets a list of ``Depot`` objects matching the given depot query.
:param depot_query: the depot query
:type depot_query: ``osid.installation.DepotQuery``
:return: the returned ``DepotList``
:rtype: ``osid.installation.DepotList``
:raise: ``NullArgument`` -- ``depot_query`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``depot_query`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotList
class DepotSearchSession:
"""This session provides methods for searching among ``Depot`` objects.
The search query is constructed using the ``DepotQuery``.
``get_depots_by_query()`` is the basic search method and returns a
list of ``Depot`` objects.A more advanced search may be performed
with ``getDepotsBySearch()``. It accepts a ``DepotSearch`` in
addition to the query for the purpose of specifying additional
options affecting the entire search, such as ordering.
``get_depots_by_search()`` returns a ``DepotSearchResults`` that can
be used to access the resulting ``DepotList`` or be used to perform
a search within the result set through ``DepotSearch``.
Depots may have a query record indicated by their respective record
types. The query record is accessed via the ``DepotQuery``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_depot_search(self):
"""Gets a depot search.
:return: a depot search
:rtype: ``osid.installation.DepotSearch``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotSearch
depot_search = property(fget=get_depot_search)
@abc.abstractmethod
def get_depot_search_order(self):
"""Gets a depot search order.
The ``DepotSearchOrder`` is supplied to a ``DepotSearch`` to
specify the ordering of results.
:return: the depot search order
:rtype: ``osid.installation.DepotSearchOrder``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotSearchOrder
depot_search_order = property(fget=get_depot_search_order)
@abc.abstractmethod
def get_depots_by_search(self, depot_query, depot_search):
"""Gets the search results matching the given search query using the given search.
:param depot_query: the depot query
:type depot_query: ``osid.installation.DepotQuery``
:param depot_search: the depot search
:type depot_search: ``osid.installation.DepotSearch``
:return: the depot search results
:rtype: ``osid.installation.DepotSearchResults``
:raise: ``NullArgument`` -- ``depot_query`` or ``depot_search`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``depot_query`` or ``depot_search`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotSearchResults
@abc.abstractmethod
def get_depot_query_from_inspector(self, depot_query_inspector):
"""Gets a depot query from an inspector.
The inspector is available from a ``DepotSearchResults``.
:param depot_query_inspector: a depot query inspector
:type depot_query_inspector: ``osid.installation.DepotQueryInspector``
:return: the depot query
:rtype: ``osid.installation.DepotQuery``
:raise: ``NullArgument`` -- ``depot_query_inspector`` is ``null``
:raise: ``Unsupported`` -- ``depot_query_inspector`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotQuery
class DepotAdminSession:
"""This session creates, updates, and deletes ``Depots``.
The data for create and update is provided by the consumer via the
form object. ``OsidForms`` are requested for each create or update
and may not be reused.
Create and update operations differ in their usage. To create a
``Depot,`` a ``DepotForm`` is requested using
``get_depot_form_for_create()`` specifying the desired record
``Types`` or none if no record ``Types`` are needed. The returned
``DepotForm`` will indicate that it is to be used with a create
operation and can be used to examine metdata or validate data prior
to creation. Once the ``DepotForm`` is submiited to a create
operation, it cannot be reused with another create operation unless
the first operation was unsuccessful. Each ``DepotForm`` corresponds
to an attempted transaction.
For updates, ``DepotForms`` are requested to the ``Depot`` ``Id``
that is to be updated using ``getDepotFormForUpdate()``. Similarly,
the ``DepotForm`` has metadata about the data that can be updated
and it can perform validation before submitting the update. The
``Depot`` can only be used once for a successful update and cannot
be reused.
The delete operations delete ``Depots``. This session also includes
an ``Id`` aliasing mechanism to assign an external ``Id`` to an
internally assigned Id.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def can_create_depots(self):
"""Tests if this user can create ``Depots``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known creating a ``Depot``
will result in a ``PermissionDenied``. This is intended as a
hint to an application that may not wish to offer create
operations to unauthorized users.
:return: ``false`` if ``Depot`` creation is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def can_create_depot_with_record_types(self, depot_record_types):
"""Tests if this user can create a single ``Depot`` using the desired record types.
While ``InstallationManager.getDepotRecordTypes()`` can be used
to examine which records are supported, this method tests which
record(s) are required for creating a specific ``Depot``.
Providing an empty array tests if a ``Depot`` can be created
with no records.
:param depot_record_types: array of depot record types
:type depot_record_types: ``osid.type.Type[]``
:return: ``true`` if ``Depot`` creation using the specified ``Types`` is supported, ``false`` otherwise
:rtype: ``boolean``
:raise: ``NullArgument`` -- ``depot_record_types`` is ``null``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_depot_form_for_create(self, depot_record_types):
"""Gets the depot form for creating new depots.
A new form should be requested for each create transaction.
:param depot_record_types: array of depot record types
:type depot_record_types: ``osid.type.Type[]``
:return: the depot form
:rtype: ``osid.installation.DepotForm``
:raise: ``NullArgument`` -- ``depot_record_types`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- unable to get form for requested record types
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotForm
@abc.abstractmethod
def create_depot(self, depot_form):
"""Creates a new ``Depot``.
:param depot_form: the form for this ``Depot``
:type depot_form: ``osid.installation.DepotForm``
:return: the new ``Depot``
:rtype: ``osid.installation.Depot``
:raise: ``IllegalState`` -- ``depot_form`` already used for a create transaction
:raise: ``InvalidArgument`` -- one or more of the form elements is invalid
:raise: ``NullArgument`` -- ``depot_form`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``depot_form`` did not originate from ``get_depot_form_for_create()``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.Depot
@abc.abstractmethod
def can_update_depots(self):
"""Tests if this user can update ``Depots``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known updating a ``Depot``
will result in a ``PermissionDenied``. This is intended as a
hint to an application that may not wish to offer update
operations to unauthorized users.
:return: ``false`` if ``Depot`` modification is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def can_update_depot(self, depot_id):
"""Tests if this user can update a specified ``Depot``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known updating the
``Depot`` will result in a ``PermissionDenied``. This is
intended as a hint to an application that may not wish to offer
update operations to unauthorized users.
:param depot_id: the ``Id`` of the ``Depot``
:type depot_id: ``osid.id.Id``
:return: ``false`` if depot modification is not authorized, ``true`` otherwise
:rtype: ``boolean``
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If the ``depot_id`` is not found, then
it is acceptable to return false to indicate the lack of an
update available.
"""
return # boolean
@abc.abstractmethod
def get_depot_form_for_update(self, depot_id):
"""Gets the depot form for updating an existing depot.
A new depot form should be requested for each update
transaction.
:param depot_id: the ``Id`` of the ``Depot``
:type depot_id: ``osid.id.Id``
:return: the depot form
:rtype: ``osid.installation.DepotForm``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotForm
@abc.abstractmethod
def update_depot(self, depot_form):
"""Updates an existing depot.
:param depot_form: the form containing the elements to be updated
:type depot_form: ``osid.installation.DepotForm``
:raise: ``InvalidArgument`` -- the form contains an invalid value
:raise: ``NullArgument`` -- ``depot_form`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``depot_form`` did not originate from ``get_depot_form_for_update()``
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def can_delete_depots(self):
"""Tests if this user can delete depots.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known deleting a ``Depot``
will result in a ``PermissionDenied``. This is intended as a
hint to an application that may not wish to offer delete
operations to unauthorized users.
:return: ``false`` if ``Depot`` deletion is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def can_delete_depot(self, depot_id):
"""Tests if this user can delete a specified ``Depot``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known deleting the
``Depot`` will result in a ``PermissionDenied``. This is
intended as a hint to an application that may not wish to offer
delete operations to unauthorized users.
:param depot_id: the ``Id`` of the ``Depot``
:type depot_id: ``osid.id.Id``
:return: ``false`` if deletion of this ``Depot`` is not authorized, ``true`` otherwise
:rtype: ``boolean``
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If the ``depot_id`` is not found, then
it is acceptable to return false to indicate the lack of a
delete available.
"""
return # boolean
@abc.abstractmethod
def delete_depot(self, depot_id):
"""Deletes a ``Depot``.
:param depot_id: the ``Id`` of the ``Depot`` to remove
:type depot_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``depot_id`` not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def can_manage_depot_aliases(self):
"""Tests if this user can manage ``Id`` aliases for ``Depots``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known changing an alias
will result in a ``PermissionDenied``. This is intended as a
hint to an application that may opt not to offer alias
operations to an unauthorized user.
:return: ``false`` if ``Depot`` aliasing is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def alias_depot(self, depot_id, alias_id):
"""Adds an ``Id`` to a ``Depot`` for the purpose of creating compatibility.
The primary ``Id`` of the ``Depot`` is determined by the
provider. The new ``Id`` performs as an alias to the primary
``Id``. If the alias is a pointer to another depot it is
reassigned to the given depot ``Id``.
:param depot_id: the ``Id`` of a ``Depot``
:type depot_id: ``osid.id.Id``
:param alias_id: the alias ``Id``
:type alias_id: ``osid.id.Id``
:raise: ``AlreadyExists`` -- ``alias_id`` is already assigned
:raise: ``NotFound`` -- ``depot_id`` not found
:raise: ``NullArgument`` -- ``depot_id`` or ``alias_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class DepotNotificationSession:
"""This session defines methods to receive notifications on adds/changes to ``Depot`` objects.
This session is intended for consumers needing to synchronize their
state with this service without the use of polling. Notifications
are cancelled when this session is closed.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def can_register_for_depot_notifications(self):
"""Tests if this user can register for ``Depot`` notifications.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer
notification operations.
:return: ``false`` if notification methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def register_for_new_depots(self):
"""Register for notifications of new depots.
``DepotReceiver.newDepots()`` is invoked when a new ``Depot`` is
created.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_new_depot_ancestors(self, depot_id):
"""Registers for notification if an ancestor is added to the specified depot in the depot hierarchy.
``DepotReceiver.newDepotAncestor()`` is invoked when the
specified depot experiences an addition in ancestry.
:param depot_id: the ``Id`` of the depot to monitor
:type depot_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``depot_id is null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_new_depot_descendants(self, depot_id):
"""Registers for notification if a descendant is added to the specified depot in the depot hierarchy.
``DepotReceiver.newDepotDescendant()`` is invoked when the
specified depot experiences an addition in descendants.
:param depot_id: the ``Id`` of the depot to monitor
:type depot_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``depot_id is null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_changed_depots(self):
"""Registers for notification of updated depots.
``DepotReceiver.changedDepots()`` is invoked when a depot is
changed.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_changed_depot(self, depot_id):
"""Registers for notification of an updated depot.
``DepotReceiver.changedDepots()`` is invoked when the specified
depot is changed.
:param depot_id: the ``Id`` of the depot to monitor
:type depot_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``depot_id is null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_deleted_depots(self):
"""Registers for notification of deleted depots.
``DepotReceiver.deletedDepots()`` is invoked when a depot is
deleted.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_deleted_depot(self, depot_id):
"""Registers for notification of a deleted depot.
``DepotReceiver.deletedDepots()`` is invoked when the specified
depot is deleted.
:param depot_id: the ``Id`` of the depot to monitor
:type depot_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``depot_id is null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_deleted_depot_ancestors(self, depot_id):
"""Registers for notification if an ancestor is removed from the specified depot in the depot hierarchy.
``DepotReceiver.deletedDepotAncestor()`` is invoked when the
specified depot experiences a removal of an ancestor.
:param depot_id: the ``Id`` of the depot to monitor
:type depot_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``depot_id is null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_deleted_depot_descendants(self, depot_id):
"""Registers for notification if a descendant is removed from fthe specified depot in the depot hierarchy.
``DepotReceiver.deletedDepotDescednant()`` is invoked when the
specified depot experiences a removal of one of its descendants.
:param depot_id: the ``Id`` of the depot to monitor
:type depot_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``depot_id is null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class DepotHierarchySession:
"""This session defines methods for traversing a hierarchy of ``Depot`` objects.
Each node in the hierarchy is a unique ``Depot``. The hierarchy may
be traversed recursively to establish the tree structure through
``get_parent_depots()`` and ``getChildDepots()``. To relate these
``Ids`` to another OSID, ``get_depot_nodes()`` can be used for
retrievals that can be used for bulk lookups in other OSIDs. Any
``Depot`` available in the Depoting OSID is known to this hierarchy
but does not appear in the hierarchy traversal until added as a root
node or a child of another node.
A user may not be authorized to traverse the entire hierarchy. Parts
of the hierarchy may be made invisible through omission from the
returns of ``get_parent_depots()`` or ``get_child_depots()`` in lieu
of a ``PermissionDenied`` error that may disrupt the traversal
through authorized pathways.
This session defines views that offer differing behaviors when
retrieving multiple objects.
* comparative view: depot elements may be silently omitted or re-
ordered
* plenary view: provides a complete set or is an error condition
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_depot_hierarchy_id(self):
"""Gets the hierarchy ``Id`` associated with this session.
:return: the hierarchy ``Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
depot_hierarchy_id = property(fget=get_depot_hierarchy_id)
@abc.abstractmethod
def get_depot_hierarchy(self):
"""Gets the hierarchy associated with this session.
:return: the hierarchy associated with this session
:rtype: ``osid.hierarchy.Hierarchy``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.hierarchy.Hierarchy
depot_hierarchy = property(fget=get_depot_hierarchy)
@abc.abstractmethod
def can_access_depot_hierarchy(self):
"""Tests if this user can perform hierarchy queries.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an an application that may not offer hierrachy
traversal operations to unauthorized users.
:return: ``false`` if hierarchy traversal methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_comparative_depot_view(self):
"""The returns from the depot methods may omit or translate elements based on this session, such as
authorization, and not result in an error.
This view is used when greater interoperability is desired at
the expense of precision.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_plenary_depot_view(self):
"""A complete view of the ``Hierarchy`` returns is desired.
Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the
expense of interoperability.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_root_depot_ids(self):
"""Gets the root depot ``Ids`` in this hierarchy.
:return: the root depot ``Ids``
:rtype: ``osid.id.IdList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
root_depot_ids = property(fget=get_root_depot_ids)
@abc.abstractmethod
def get_root_depots(self):
"""Gets the root depots in this depot hierarchy.
:return: the root depots
:rtype: ``osid.installation.DepotList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method is must be implemented.*
"""
return # osid.installation.DepotList
root_depots = property(fget=get_root_depots)
@abc.abstractmethod
def has_parent_depots(self, depot_id):
"""Tests if the ``Depot`` has any parents.
:param depot_id: the ``Id`` of a depot
:type depot_id: ``osid.id.Id``
:return: ``true`` if the depot has parents, ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def is_parent_of_depot(self, id_, depot_id):
"""Tests if an ``Id`` is a direct parent of a depot.
:param id: an ``Id``
:type id: ``osid.id.Id``
:param depot_id: the ``Id`` of a depot
:type depot_id: ``osid.id.Id``
:return: ``true`` if this ``id`` is a parent of ``depot_id,`` ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``id`` or ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If ``id`` not found return ``false``.
"""
return # boolean
@abc.abstractmethod
def get_parent_depot_ids(self, depot_id):
"""Gets the parent ``Ids`` of the given depot.
:param depot_id: the ``Id`` of a depot
:type depot_id: ``osid.id.Id``
:return: the parent ``Ids`` of the depot
:rtype: ``osid.id.IdList``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def get_parent_depots(self, depot_id):
"""Gets the parents of the given depot.
:param depot_id: the ``Id`` of a depot
:type depot_id: ``osid.id.Id``
:return: the parents of the depot
:rtype: ``osid.installation.DepotList``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotList
@abc.abstractmethod
def is_ancestor_of_depot(self, id_, depot_id):
"""Tests if an ``Id`` is an ancestor of a depot.
:param id: an ``Id``
:type id: ``osid.id.Id``
:param depot_id: the ``Id`` of a depot
:type depot_id: ``osid.id.Id``
:return: ``true`` if this ``id`` is an ancestor of ``depot_id,`` ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``id`` or ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If ``id`` not found return ``false``.
"""
return # boolean
@abc.abstractmethod
def has_child_depots(self, depot_id):
"""Tests if a depot has any children.
:param depot_id: the ``Id`` of a depot
:type depot_id: ``osid.id.Id``
:return: ``true`` if the ``depot_id`` has children, ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def is_child_of_depot(self, id_, depot_id):
"""Tests if a depot is a direct child of another.
:param id: an ``Id``
:type id: ``osid.id.Id``
:param depot_id: the ``Id`` of a depot
:type depot_id: ``osid.id.Id``
:return: ``true`` if the ``id`` is a child of ``depot_id,`` ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``id`` or ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If ``id`` not found return ``false``.
"""
return # boolean
@abc.abstractmethod
def get_child_depot_ids(self, depot_id):
"""Gets the child ``Ids`` of the given depot.
:param depot_id: the ``Id`` to query
:type depot_id: ``osid.id.Id``
:return: the children of the depot
:rtype: ``osid.id.IdList``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def get_child_depots(self, depot_id):
"""Gets the children of the given depot.
:param depot_id: the ``Id`` to query
:type depot_id: ``osid.id.Id``
:return: the children of the depot
:rtype: ``osid.installation.DepotList``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotList
@abc.abstractmethod
def is_descendant_of_depot(self, id_, depot_id):
"""Tests if an ``Id`` is a descendant of a depot.
:param id: an ``Id``
:type id: ``osid.id.Id``
:param depot_id: the ``Id`` of a depot
:type depot_id: ``osid.id.Id``
:return: ``true`` if the ``id`` is a descendant of the ``depot_id,`` ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``id`` or ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If ``id`` is not found return ``false``.
"""
return # boolean
@abc.abstractmethod
def get_depot_node_ids(self, depot_id, ancestor_levels, descendant_levels, include_siblings):
"""Gets a portion of the hierarchy for the given depot.
:param depot_id: the ``Id`` to query
:type depot_id: ``osid.id.Id``
:param ancestor_levels: the maximum number of ancestor levels to include. A value of 0 returns no parents in the
node.
:type ancestor_levels: ``cardinal``
:param descendant_levels: the maximum number of descendant levels to include. A value of 0 returns no children
in the node.
:type descendant_levels: ``cardinal``
:param include_siblings: ``true`` to include the siblings of the given node, ``false`` to omit the siblings
:type include_siblings: ``boolean``
:return: a depot node
:rtype: ``osid.hierarchy.Node``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.hierarchy.Node
@abc.abstractmethod
def get_depot_nodes(self, depot_id, ancestor_levels, descendant_levels, include_siblings):
"""Gets a portion of the hierarchy for the given depot.
:param depot_id: the ``Id`` to query
:type depot_id: ``osid.id.Id``
:param ancestor_levels: the maximum number of ancestor levels to include. A value of 0 returns no parents in the
node.
:type ancestor_levels: ``cardinal``
:param descendant_levels: the maximum number of descendant levels to include. A value of 0 returns no children
in the node.
:type descendant_levels: ``cardinal``
:param include_siblings: ``true`` to include the siblings of the given node, ``false`` to omit the siblings
:type include_siblings: ``boolean``
:return: a depot node
:rtype: ``osid.installation.DepotNode``
:raise: ``NotFound`` -- ``depot_id`` is not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.installation.DepotNode
class DepotHierarchyDesignSession:
"""This session defines methods for managing a hierarchy of ``Depot`` objects.
Each node in the hierarchy is a unique ``Depot``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_depot_hierarchy_id(self):
"""Gets the hierarchy ``Id`` associated with this session.
:return: the hierarchy ``Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
depot_hierarchy_id = property(fget=get_depot_hierarchy_id)
@abc.abstractmethod
def get_depot_hierarchy(self):
"""Gets the hierarchy associated with this session.
:return: the hierarchy associated with this session
:rtype: ``osid.hierarchy.Hierarchy``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.hierarchy.Hierarchy
depot_hierarchy = property(fget=get_depot_hierarchy)
@abc.abstractmethod
def can_modify_depot_hierarchy(self):
"""Tests if this user can change the hierarchy.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known performing any update
will result in a ``PermissionDenied``. This is intended as a
hint to an application that may opt not to offer these
operations to an unauthorized user.
:return: ``false`` if changing this hierarchy is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def add_root_depot(self, depot_id):
"""Adds a root depot.
:param depot_id: the ``Id`` of a depot
:type depot_id: ``osid.id.Id``
:raise: ``AlreadyExists`` -- ``depot_id`` is already in hierarchy
:raise: ``NotFound`` -- ``depot_id`` not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def remove_root_depot(self, depot_id):
"""Removes a root depot.
:param depot_id: the ``Id`` of a depot
:type depot_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``depot_id`` is not a root
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def add_child_depot(self, depot_id, child_id):
"""Adds a child to a depot.
:param depot_id: the ``Id`` of a depot
:type depot_id: ``osid.id.Id``
:param child_id: the ``Id`` of the new child
:type child_id: ``osid.id.Id``
:raise: ``AlreadyExists`` -- ``depot_id`` is already a parent of ``child_id``
:raise: ``NotFound`` -- ``depot_id`` or ``child_id`` not found
:raise: ``NullArgument`` -- ``depot_id`` or ``child_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def remove_child_depot(self, depot_id, child_id):
"""Removes a child from a depot.
:param depot_id: the ``Id`` of a depot
:type depot_id: ``osid.id.Id``
:param child_id: the ``Id`` of the new child
:type child_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``depot_id`` not a parent of ``child_id``
:raise: ``NullArgument`` -- ``depot_id`` or ``child_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def remove_child_depots(self, depot_id):
"""Removes all children from a depot.
:param depot_id: the ``Id`` of a depot
:type depot_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``depot_id`` not found
:raise: ``NullArgument`` -- ``depot_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
| 36.392426
| 120
| 0.650265
| 17,900
| 156,633
| 5.603352
| 0.034693
| 0.022233
| 0.043868
| 0.063609
| 0.884497
| 0.860768
| 0.83004
| 0.807119
| 0.787886
| 0.772084
| 0
| 0.000034
| 0.24906
| 156,633
| 4,303
| 121
| 36.400883
| 0.852698
| 0.729987
| 0
| 0.731642
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.293725
| false
| 0.098798
| 0.001335
| 0
| 0.607477
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 10
|
68591867aa84d64fb565fcb3371c92ab03be8e61
| 70
|
py
|
Python
|
examples/test_sample_1.py
|
MateuszG/django_auth
|
4cda699c1b6516ffaa26329f545a674a7c849a16
|
[
"MIT"
] | 2
|
2015-01-12T09:43:59.000Z
|
2015-01-12T10:39:31.000Z
|
examples/test_sample_1.py
|
MateuszG/django_auth
|
4cda699c1b6516ffaa26329f545a674a7c849a16
|
[
"MIT"
] | null | null | null |
examples/test_sample_1.py
|
MateuszG/django_auth
|
4cda699c1b6516ffaa26329f545a674a7c849a16
|
[
"MIT"
] | null | null | null |
def test_ok():
assert 1 == 1
def test_fail():
assert 1 != 1
| 10
| 17
| 0.542857
| 12
| 70
| 3
| 0.5
| 0.388889
| 0.444444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 0.314286
| 70
| 6
| 18
| 11.666667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0.5
| true
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0bda36c60ff32605a95b06e23c8d626dd1353cb0
| 236
|
bzl
|
Python
|
lib/docs.bzl
|
alexeagle/bazel-lib
|
02be4c5f47b476e686943f53ddd47a672a51a265
|
[
"Apache-2.0"
] | 16
|
2021-11-08T15:03:49.000Z
|
2022-03-23T19:38:32.000Z
|
lib/docs.bzl
|
alexeagle/bazel-lib
|
02be4c5f47b476e686943f53ddd47a672a51a265
|
[
"Apache-2.0"
] | 29
|
2021-11-15T16:27:25.000Z
|
2022-03-31T04:03:16.000Z
|
lib/docs.bzl
|
alexeagle/bazel-lib
|
02be4c5f47b476e686943f53ddd47a672a51a265
|
[
"Apache-2.0"
] | 3
|
2021-12-09T00:27:42.000Z
|
2022-03-30T20:14:00.000Z
|
"Public API for docs helpers"
load(
"//lib/private:docs.bzl",
_stardoc_with_diff_test = "stardoc_with_diff_test",
_update_docs = "update_docs",
)
stardoc_with_diff_test = _stardoc_with_diff_test
update_docs = _update_docs
| 21.454545
| 55
| 0.762712
| 34
| 236
| 4.705882
| 0.411765
| 0.275
| 0.375
| 0.475
| 0.725
| 0.725
| 0.725
| 0.725
| 0.725
| 0.725
| 0
| 0
| 0.144068
| 236
| 10
| 56
| 23.6
| 0.792079
| 0.114407
| 0
| 0
| 0
| 0
| 0.347458
| 0.186441
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
0bf3a7c46b024e81d6506f6908c281532da75bb3
| 23,217
|
py
|
Python
|
tests/test_scripts/features/test_html_feature.py
|
chakki-works/elephant-sense
|
ba7c95e557d8b5a2bdce699fb473de3183a7ca6f
|
[
"Apache-2.0"
] | 14
|
2017-04-07T10:46:49.000Z
|
2019-08-07T09:58:54.000Z
|
tests/test_scripts/features/test_html_feature.py
|
chakki-works/elephant-sense
|
ba7c95e557d8b5a2bdce699fb473de3183a7ca6f
|
[
"Apache-2.0"
] | null | null | null |
tests/test_scripts/features/test_html_feature.py
|
chakki-works/elephant-sense
|
ba7c95e557d8b5a2bdce699fb473de3183a7ca6f
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), "../../../"))
import json
import unittest
from scripts.features.post import Post
from scripts.features.post_feature import PostFeature
import scripts.features.html_feature_extractor as hExt
class TestHtmlFeature(unittest.TestCase):
def test_html_feature(self):
post_json = json.loads(TEST_JSON)
post = Post(post_json)
post_f = PostFeature(post)
fd = post_f \
.add(hExt.HeaderCountExtractor()) \
.to_dict()
self.checkAttribute("header_count", fd)
def checkAttribute(self, name, features):
self.assertTrue(name in features)
print(features[name])
TEST_JSON = r"""
{
"created_at": "2016-09-23T13:27:44+09:00",
"annotations":[
{
"annotator-id": "A",
"quality": 0
},
{
"annotator-id": "B",
"quality": 0
},
{
"annotator-id": "C",
"quality": 1
}
],
"user": {
"profile_image_url": "https://qiita-image-store.s3.amazonaws.com/0/62264/profile-images/1473695899",
"permanent_id": 62264,
"github_login_name": null,
"followers_count": 24,
"twitter_screen_name": "htht_",
"id": "hththt",
"followees_count": 36,
"organization": "",
"location": "東京",
"website_url": "",
"facebook_id": "",
"items_count": 75,
"description": "",
"name": "hththt",
"linkedin_id": ""
},
"id": "0a0d29de9a2785d00ca0",
"rendered_body": "\n<h1>\n<span id=\"gulpspritesmith\" class=\"fragment\"></span><a href=\"#gulpspritesmith\"><i class=\"fa fa-link\"></i></a>gulp.spritesmith</h1>\n\n<ul>\n<li>CSS Spriteとそれに対応した scssファイルを生成する。</li>\n</ul>\n\n<p><a href=\"https://github.com/twolfson/gulp.spritesmith\" class=\"autolink\" rel=\"nofollow noopener\" target=\"_blank\">https://github.com/twolfson/gulp.spritesmith</a></p>\n\n<h3>\n<span id=\"サンプル表示\" class=\"fragment\"></span><a href=\"#%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E8%A1%A8%E7%A4%BA\"><i class=\"fa fa-link\"></i></a>サンプル表示</h3>\n\n<p><a href=\"https://qiita-image-store.s3.amazonaws.com/0/62264/e88862bc-2486-b3cd-e4d0-e26385816b6f.png\" target=\"_blank\" rel=\"nofollow noopener\"><img src=\"https://qiita-image-store.s3.amazonaws.com/0/62264/e88862bc-2486-b3cd-e4d0-e26385816b6f.png\" alt=\"スクリーンショット 2016-09-23 15.54.30.png\"></a></p>\n\n<h1>\n<span id=\"手順\" class=\"fragment\"></span><a href=\"#%E6%89%8B%E9%A0%86\"><i class=\"fa fa-link\"></i></a>手順</h1>\n\n<h3>\n<span id=\"パッケージをインストール\" class=\"fragment\"></span><a href=\"#%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><i class=\"fa fa-link\"></i></a>パッケージをインストール</h3>\n\n<div class=\"code-frame\" data-lang=\"text\"><div class=\"highlight\"><pre>\n$ npm install\n</pre></div></div>\n\n<h3>\n<span id=\"sprite画像の生成\" class=\"fragment\"></span><a href=\"#sprite%E7%94%BB%E5%83%8F%E3%81%AE%E7%94%9F%E6%88%90\"><i class=\"fa fa-link\"></i></a>sprite画像の生成</h3>\n\n<ul>\n<li>spriteにしたい画像をimagesの中に入れる</li>\n</ul>\n\n<div class=\"code-frame\" data-lang=\"text\"><div class=\"highlight\"><pre>\n$ gulp sprite\n</pre></div></div>\n\n<ul>\n<li>sprite.pngが生成される</li>\n<li>_sprite.scssが生成される</li>\n</ul>\n\n<p><a href=\"https://qiita-image-store.s3.amazonaws.com/0/62264/50c96bff-9e35-43a9-19df-7f5916a0ed6e.png\" target=\"_blank\" rel=\"nofollow noopener\"><img src=\"https://qiita-image-store.s3.amazonaws.com/0/62264/50c96bff-9e35-43a9-19df-7f5916a0ed6e.png\" alt=\"スクリーンショット 2016-09-23 15.56.00.png\"></a></p>\n\n<h3>\n<span id=\"gulpの実行\" class=\"fragment\"></span><a href=\"#gulp%E3%81%AE%E5%AE%9F%E8%A1%8C\"><i class=\"fa fa-link\"></i></a>gulpの実行</h3>\n\n<div class=\"code-frame\" data-lang=\"text\"><div class=\"highlight\"><pre>\n$ gulp\n</pre></div></div>\n\n<h3>\n<span id=\"stylesassを編集保存\" class=\"fragment\"></span><a href=\"#stylesass%E3%82%92%E7%B7%A8%E9%9B%86%E4%BF%9D%E5%AD%98\"><i class=\"fa fa-link\"></i></a>style.sassを編集・保存</h3>\n\n<div class=\"code-frame\" data-lang=\"sass\">\n<div class=\"code-lang\"><span class=\"bold\">style.sass</span></div>\n<div class=\"highlight\"><pre>\n<span class=\"c1\">//生成されたspriteを読み込む指定</span>\n<span class=\"k\">@import</span> <span class=\"s\">\"sprite\";</span>\n\n<span class=\"c1\">//使いたい画像を読み込む指定(ここでは、引数に、「$sprite-」+画像のファイル名を書く)</span>\n\n<span class=\"nc\">.</span><span class=\"err\">使いたいクラス名{</span>\n <span class=\"k\">@include</span><span class=\"nd\"> sprite</span><span class=\"p\">(</span><span class=\"nv\">$sprite-cat</span><span class=\"p\">)</span><span class=\"err\">;</span>\n<span class=\"err\">}</span>\n</pre></div>\n</div>\n\n<ul>\n<li>style.css.mapが生成</li>\n<li>style.cssが生成</li>\n</ul>\n\n<p><a href=\"https://qiita-image-store.s3.amazonaws.com/0/62264/cc58f250-7ad2-92c8-1bcf-c38f5b9a4396.png\" target=\"_blank\" rel=\"nofollow noopener\"><img src=\"https://qiita-image-store.s3.amazonaws.com/0/62264/cc58f250-7ad2-92c8-1bcf-c38f5b9a4396.png\" alt=\"スクリーンショット 2016-09-23 16.01.01.png\"></a></p>\n\n<h3>\n<span id=\"gulpfileサンプル\" class=\"fragment\"></span><a href=\"#gulpfile%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB\"><i class=\"fa fa-link\"></i></a>gulpfileサンプル</h3>\n\n<div class=\"code-frame\" data-lang=\"javascript\">\n<div class=\"code-lang\"><span class=\"bold\">gulpfile.js</span></div>\n<div class=\"highlight\"><pre>\n\n<span class=\"kd\">var</span> <span class=\"nx\">gulp</span> <span class=\"o\">=</span> <span class=\"nx\">require</span><span class=\"p\">(</span><span class=\"s1\">'gulp'</span><span class=\"p\">);</span>\n<span class=\"kd\">var</span> <span class=\"nx\">spritesmith</span> <span class=\"o\">=</span> <span class=\"nx\">require</span><span class=\"p\">(</span><span class=\"s1\">'gulp.spritesmith'</span><span class=\"p\">);</span>\n<span class=\"kd\">var</span> <span class=\"nx\">sass</span> <span class=\"o\">=</span> <span class=\"nx\">require</span><span class=\"p\">(</span><span class=\"s1\">'gulp-sass'</span><span class=\"p\">);</span>\n<span class=\"kd\">var</span> <span class=\"nx\">browser</span> <span class=\"o\">=</span> <span class=\"nx\">require</span><span class=\"p\">(</span><span class=\"s2\">\"browser-sync\"</span><span class=\"p\">);</span>\n<span class=\"kd\">var</span> <span class=\"nx\">autoprefixer</span> <span class=\"o\">=</span> <span class=\"nx\">require</span><span class=\"p\">(</span><span class=\"s1\">'gulp-autoprefixer'</span><span class=\"p\">);</span>\n<span class=\"kd\">var</span> <span class=\"nx\">sourcemaps</span> <span class=\"o\">=</span> <span class=\"nx\">require</span><span class=\"p\">(</span><span class=\"s1\">'gulp-sourcemaps'</span><span class=\"p\">);</span>\n\n<span class=\"nx\">gulp</span><span class=\"p\">.</span><span class=\"nx\">task</span><span class=\"p\">(</span><span class=\"s1\">'default'</span><span class=\"p\">,[</span><span class=\"s1\">'server'</span><span class=\"p\">],</span><span class=\"kd\">function</span><span class=\"p\">()</span> <span class=\"p\">{</span>\n <span class=\"nx\">gulp</span><span class=\"p\">.</span><span class=\"nx\">watch</span><span class=\"p\">(</span><span class=\"s1\">'htdocs/sass/*.scss'</span><span class=\"p\">,</span> <span class=\"p\">[</span><span class=\"s1\">'sass'</span><span class=\"p\">]);</span>\n<span class=\"p\">});</span>\n<span class=\"nx\">gulp</span><span class=\"p\">.</span><span class=\"nx\">task</span><span class=\"p\">(</span><span class=\"s1\">'sass'</span><span class=\"p\">,</span><span class=\"kd\">function</span> <span class=\"p\">()</span> <span class=\"p\">{</span>\n <span class=\"nx\">gulp</span><span class=\"p\">.</span><span class=\"nx\">src</span><span class=\"p\">(</span><span class=\"s1\">'htdocs/sass/*.scss'</span><span class=\"p\">)</span>\n <span class=\"p\">.</span><span class=\"nx\">pipe</span><span class=\"p\">(</span><span class=\"nx\">sourcemaps</span><span class=\"p\">.</span><span class=\"nx\">init</span><span class=\"p\">())</span>\n <span class=\"p\">.</span><span class=\"nx\">pipe</span><span class=\"p\">(</span><span class=\"nx\">sass</span><span class=\"p\">())</span>\n <span class=\"p\">.</span><span class=\"nx\">pipe</span><span class=\"p\">(</span><span class=\"nx\">autoprefixer</span><span class=\"p\">(</span><span class=\"s2\">\"last 2 version\"</span><span class=\"p\">,</span> <span class=\"s2\">\"ie 8\"</span><span class=\"p\">,</span> <span class=\"s2\">\"ie 7\"</span><span class=\"p\">))</span>\n <span class=\"p\">.</span><span class=\"nx\">pipe</span><span class=\"p\">(</span><span class=\"nx\">sourcemaps</span><span class=\"p\">.</span><span class=\"nx\">write</span><span class=\"p\">(</span><span class=\"s1\">'../maps'</span><span class=\"p\">))</span>\n <span class=\"p\">.</span><span class=\"nx\">pipe</span><span class=\"p\">(</span><span class=\"nx\">gulp</span><span class=\"p\">.</span><span class=\"nx\">dest</span><span class=\"p\">(</span><span class=\"s1\">'htdocs/css/'</span><span class=\"p\">))</span>\n <span class=\"p\">.</span><span class=\"nx\">pipe</span><span class=\"p\">(</span><span class=\"nx\">browser</span><span class=\"p\">.</span><span class=\"nx\">reload</span><span class=\"p\">({</span><span class=\"nx\">stream</span><span class=\"o\">:</span><span class=\"kc\">true</span><span class=\"p\">}));</span>\n<span class=\"p\">});</span>\n\n<span class=\"nx\">gulp</span><span class=\"p\">.</span><span class=\"nx\">task</span><span class=\"p\">(</span><span class=\"s2\">\"server\"</span><span class=\"p\">,</span> <span class=\"kd\">function</span><span class=\"p\">()</span> <span class=\"p\">{</span>\n <span class=\"nx\">browser</span><span class=\"p\">({</span>\n <span class=\"nx\">server</span><span class=\"o\">:</span> <span class=\"p\">{</span>\n <span class=\"nx\">baseDir</span><span class=\"o\">:</span> <span class=\"s2\">\"htdocs/\"</span>\n <span class=\"p\">}</span>\n <span class=\"p\">});</span>\n<span class=\"p\">});</span>\n\n<span class=\"nx\">gulp</span><span class=\"p\">.</span><span class=\"nx\">task</span><span class=\"p\">(</span><span class=\"s1\">'sprite'</span><span class=\"p\">,</span> <span class=\"kd\">function</span> <span class=\"p\">()</span> <span class=\"p\">{</span>\n <span class=\"kd\">var</span> <span class=\"nx\">spriteData</span> <span class=\"o\">=</span> <span class=\"nx\">gulp</span><span class=\"p\">.</span><span class=\"nx\">src</span><span class=\"p\">(</span><span class=\"s1\">'htdocs/images/*.png'</span><span class=\"p\">).</span><span class=\"nx\">pipe</span><span class=\"p\">(</span><span class=\"nx\">spritesmith</span><span class=\"p\">({</span>\n <span class=\"nx\">imgName</span><span class=\"o\">:</span> <span class=\"s1\">'sprite.png'</span><span class=\"p\">,</span>\n <span class=\"nx\">cssName</span><span class=\"o\">:</span> <span class=\"s1\">'_sprite.scss'</span><span class=\"p\">,</span>\n <span class=\"nx\">imgPath</span><span class=\"o\">:</span> <span class=\"s1\">'../images/sprite/sprite.png'</span><span class=\"p\">,</span>\n <span class=\"nx\">cssFormat</span><span class=\"o\">:</span> <span class=\"s1\">'scss'</span><span class=\"p\">,</span>\n <span class=\"nx\">cssVarMap</span><span class=\"o\">:</span> <span class=\"kd\">function</span> <span class=\"p\">(</span><span class=\"nx\">sprite</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n <span class=\"nx\">sprite</span><span class=\"p\">.</span><span class=\"nx\">name</span> <span class=\"o\">=</span> <span class=\"s1\">'sprite-'</span> <span class=\"o\">+</span> <span class=\"nx\">sprite</span><span class=\"p\">.</span><span class=\"nx\">name</span><span class=\"p\">;</span>\n <span class=\"p\">}</span>\n <span class=\"p\">}));</span>\n <span class=\"nx\">spriteData</span><span class=\"p\">.</span><span class=\"nx\">img</span>\n <span class=\"p\">.</span><span class=\"nx\">pipe</span><span class=\"p\">(</span><span class=\"nx\">gulp</span><span class=\"p\">.</span><span class=\"nx\">dest</span><span class=\"p\">(</span><span class=\"s1\">'htdocs/images/sprite/'</span><span class=\"p\">));</span>\n <span class=\"nx\">spriteData</span><span class=\"p\">.</span><span class=\"nx\">css</span>\n <span class=\"p\">.</span><span class=\"nx\">pipe</span><span class=\"p\">(</span><span class=\"nx\">gulp</span><span class=\"p\">.</span><span class=\"nx\">dest</span><span class=\"p\">(</span><span class=\"s1\">'htdocs/sass/'</span><span class=\"p\">));</span>\n<span class=\"p\">});</span>\n</pre></div>\n</div>\n\n<div class=\"code-frame\" data-lang=\"scss\">\n<div class=\"code-lang\"><span class=\"bold\">style.scss</span></div>\n<div class=\"highlight\"><pre>\n\n<span class=\"k\">@import</span> <span class=\"s2\">\"sprite\"</span><span class=\"p\">;</span>\n\n<span class=\"nt\">body</span><span class=\"p\">{</span>\n <span class=\"na\">padding</span><span class=\"o\">:</span><span class=\"mi\">50</span><span class=\"kt\">px</span> <span class=\"mi\">0</span> <span class=\"mi\">0</span> <span class=\"mi\">50</span><span class=\"kt\">px</span><span class=\"p\">;</span>\n<span class=\"p\">}</span>\n<span class=\"nt\">div</span><span class=\"p\">{</span>\n <span class=\"na\">margin-bottom</span><span class=\"o\">:</span><span class=\"mi\">20</span><span class=\"kt\">px</span><span class=\"p\">;</span>\n<span class=\"p\">}</span>\n<span class=\"nt\">h1</span><span class=\"p\">{</span>\n <span class=\"na\">font-size</span><span class=\"o\">:</span><span class=\"mi\">30</span><span class=\"kt\">px</span><span class=\"p\">;</span>\n <span class=\"na\">margin</span><span class=\"o\">:</span><span class=\"mi\">0</span> <span class=\"mi\">0</span> <span class=\"mi\">50</span><span class=\"kt\">px</span> <span class=\"mi\">0</span><span class=\"p\">;</span>\n<span class=\"p\">}</span>\n\n<span class=\"na\">.icon1</span><span class=\"o\">::</span><span class=\"n\">before</span><span class=\"p\">{</span>\n <span class=\"k\">@include</span><span class=\"nd\"> sprite</span><span class=\"p\">(</span><span class=\"nv\">$sprite-icon1</span><span class=\"p\">);</span>\n <span class=\"na\">content</span><span class=\"o\">:</span> <span class=\"s2\">\"\"</span><span class=\"p\">;</span>\n <span class=\"na\">margin</span><span class=\"o\">:</span><span class=\"mi\">-3</span><span class=\"kt\">px</span> <span class=\"mi\">10</span><span class=\"kt\">px</span> <span class=\"mi\">0</span> <span class=\"mi\">0</span><span class=\"p\">;</span>\n <span class=\"na\">display</span><span class=\"o\">:</span> <span class=\"no\">inline</span><span class=\"o\">-</span><span class=\"no\">block</span><span class=\"p\">;</span>\n <span class=\"na\">vertical-align</span><span class=\"o\">:</span> <span class=\"no\">middle</span><span class=\"p\">;</span>\n<span class=\"p\">}</span>\n<span class=\"na\">.icon2</span><span class=\"o\">::</span><span class=\"n\">before</span><span class=\"p\">{</span>\n <span class=\"k\">@include</span><span class=\"nd\"> sprite</span><span class=\"p\">(</span><span class=\"nv\">$sprite-icon2</span><span class=\"p\">);</span>\n <span class=\"na\">content</span><span class=\"o\">:</span> <span class=\"s2\">\"\"</span><span class=\"p\">;</span>\n <span class=\"na\">margin</span><span class=\"o\">:</span><span class=\"mi\">-3</span><span class=\"kt\">px</span> <span class=\"mi\">10</span><span class=\"kt\">px</span> <span class=\"mi\">0</span> <span class=\"mi\">0</span><span class=\"p\">;</span>\n <span class=\"na\">display</span><span class=\"o\">:</span> <span class=\"no\">inline</span><span class=\"o\">-</span><span class=\"no\">block</span><span class=\"p\">;</span>\n <span class=\"na\">vertical-align</span><span class=\"o\">:</span> <span class=\"no\">middle</span><span class=\"p\">;</span>\n<span class=\"p\">}</span>\n<span class=\"na\">.icon3</span><span class=\"o\">::</span><span class=\"n\">before</span><span class=\"p\">{</span>\n <span class=\"k\">@include</span><span class=\"nd\"> sprite</span><span class=\"p\">(</span><span class=\"nv\">$sprite-icon3</span><span class=\"p\">);</span>\n <span class=\"na\">content</span><span class=\"o\">:</span> <span class=\"s2\">\"\"</span><span class=\"p\">;</span>\n <span class=\"na\">margin</span><span class=\"o\">:</span><span class=\"mi\">-3</span><span class=\"kt\">px</span> <span class=\"mi\">10</span><span class=\"kt\">px</span> <span class=\"mi\">0</span> <span class=\"mi\">0</span><span class=\"p\">;</span>\n <span class=\"na\">display</span><span class=\"o\">:</span> <span class=\"no\">inline</span><span class=\"o\">-</span><span class=\"no\">block</span><span class=\"p\">;</span>\n <span class=\"na\">vertical-align</span><span class=\"o\">:</span> <span class=\"no\">middle</span><span class=\"p\">;</span>\n<span class=\"p\">}</span>\n<span class=\"nc\">.cat</span><span class=\"p\">{</span>\n <span class=\"k\">@include</span><span class=\"nd\"> sprite</span><span class=\"p\">(</span><span class=\"nv\">$sprite-cat</span><span class=\"p\">);</span>\n<span class=\"p\">}</span>\n</pre></div>\n</div>\n\n<div class=\"code-frame\" data-lang=\"html\">\n<div class=\"code-lang\"><span class=\"bold\">index.html</span></div>\n<div class=\"highlight\"><pre>\n\n<span class=\"cp\"><!DOCTYPE html></span>\n<span class=\"nt\"><html</span> <span class=\"na\">lang=</span><span class=\"s\">\"ja\"</span><span class=\"nt\">></span>\n<span class=\"nt\"><head></span>\n<span class=\"nt\"><meta</span> <span class=\"na\">charset=</span><span class=\"s\">\"utf-8\"</span><span class=\"nt\">></span>\n<span class=\"nt\"><title></span>gulp.spritesmithテスト<span class=\"nt\"></title></span>\n<span class=\"nt\"><link</span> <span class=\"na\">rel=</span><span class=\"s\">\"stylesheet\"</span> <span class=\"na\">type=</span><span class=\"s\">\"text/css\"</span> <span class=\"na\">href=</span><span class=\"s\">\"http://yui.yahooapis.com/3.18.1/build/cssreset/cssreset-min.css\"</span><span class=\"nt\">></span>\n<span class=\"nt\"><link</span> <span class=\"na\">rel=</span><span class=\"s\">\"stylesheet\"</span> <span class=\"na\">href=</span><span class=\"s\">\"css/style.css\"</span><span class=\"nt\">></span>\n<span class=\"nt\"></head></span>\n<span class=\"nt\"><body></span>\n<span class=\"nt\"><h1></span>gulp.spritesmithテスト<span class=\"nt\"></h1></span>\n\n<span class=\"nt\"><div</span> <span class=\"na\">class=</span><span class=\"s\">\"icon1\"</span><span class=\"nt\">></span>アイコン1<span class=\"nt\"></div></span>\n<span class=\"nt\"><div</span> <span class=\"na\">class=</span><span class=\"s\">\"icon2\"</span><span class=\"nt\">></span>アイコン2<span class=\"nt\"></div></span>\n<span class=\"nt\"><div</span> <span class=\"na\">class=</span><span class=\"s\">\"icon3\"</span><span class=\"nt\">></span>アイコン3<span class=\"nt\"></div></span>\n<span class=\"nt\"><div</span> <span class=\"na\">class=</span><span class=\"s\">\"cat\"</span><span class=\"nt\">></div></span>\n<span class=\"nt\"></body></span>\n<span class=\"nt\"></html></span>\n</pre></div>\n</div>\n",
"updated_at": "2016-09-27T18:26:03+09:00",
"tags": [
{
"name": "gulp",
"versions": []
}
],
"private": false,
"coediting": false,
"url": "http://qiita.com/hththt/items/0a0d29de9a2785d00ca0",
"group": null,
"body": "#gulp.spritesmith\n- CSS Spriteとそれに対応した scssファイルを生成する。\n\nhttps://github.com/twolfson/gulp.spritesmith\n\n\n###サンプル表示\n\n\n\n\n#手順\n\n###パッケージをインストール\n\n```\n$ npm install\n```\n\n###sprite画像の生成\n\n- spriteにしたい画像をimagesの中に入れる\n\n```\n$ gulp sprite\n```\n\n- sprite.pngが生成される\n- _sprite.scssが生成される\n\n\n\n\n###gulpの実行\n\n```\n$ gulp\n```\n\n###style.sassを編集・保存\n\n```style.sass\n//生成されたspriteを読み込む指定\n@import \"sprite\";\n\n//使いたい画像を読み込む指定(ここでは、引数に、「$sprite-」+画像のファイル名を書く)\n\n.使いたいクラス名{\n @include sprite($sprite-cat);\n}\n```\n\n- style.css.mapが生成\n- style.cssが生成\n\n\n\n\n###gulpfileサンプル\n\n```gulpfile.js\n\nvar gulp = require('gulp');\nvar spritesmith = require('gulp.spritesmith');\nvar sass = require('gulp-sass');\nvar browser = require(\"browser-sync\");\nvar autoprefixer = require('gulp-autoprefixer');\nvar sourcemaps = require('gulp-sourcemaps');\n\ngulp.task('default',['server'],function() {\n gulp.watch('htdocs/sass/*.scss', ['sass']);\n});\ngulp.task('sass',function () {\n gulp.src('htdocs/sass/*.scss')\n .pipe(sourcemaps.init())\n .pipe(sass())\n .pipe(autoprefixer(\"last 2 version\", \"ie 8\", \"ie 7\"))\n .pipe(sourcemaps.write('../maps'))\n .pipe(gulp.dest('htdocs/css/'))\n .pipe(browser.reload({stream:true}));\n});\n\ngulp.task(\"server\", function() {\n browser({\n server: {\n baseDir: \"htdocs/\"\n }\n });\n});\n\ngulp.task('sprite', function () {\n var spriteData = gulp.src('htdocs/images/*.png').pipe(spritesmith({\n imgName: 'sprite.png',\n cssName: '_sprite.scss',\n imgPath: '../images/sprite/sprite.png',\n cssFormat: 'scss',\n cssVarMap: function (sprite) {\n sprite.name = 'sprite-' + sprite.name;\n }\n }));\n spriteData.img\n .pipe(gulp.dest('htdocs/images/sprite/'));\n spriteData.css\n .pipe(gulp.dest('htdocs/sass/'));\n});\n```\n\n```style.scss\n\n@import \"sprite\";\n\nbody{\n padding:50px 0 0 50px;\n}\ndiv{\n margin-bottom:20px;\n}\nh1{\n font-size:30px;\n margin:0 0 50px 0;\n}\n\n.icon1::before{\n @include sprite($sprite-icon1);\n content: \"\";\n margin:-3px 10px 0 0;\n display: inline-block;\n vertical-align: middle;\n}\n.icon2::before{\n @include sprite($sprite-icon2);\n content: \"\";\n margin:-3px 10px 0 0;\n display: inline-block;\n vertical-align: middle;\n}\n.icon3::before{\n @include sprite($sprite-icon3);\n content: \"\";\n margin:-3px 10px 0 0;\n display: inline-block;\n vertical-align: middle;\n}\n.cat{\n @include sprite($sprite-cat);\n}\n```\n\n```index.html\n\n<!DOCTYPE html>\n<html lang=\"ja\">\n<head>\n<meta charset=\"utf-8\">\n<title>gulp.spritesmithテスト</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"http://yui.yahooapis.com/3.18.1/build/cssreset/cssreset-min.css\">\n<link rel=\"stylesheet\" href=\"css/style.css\">\n</head>\n<body>\n<h1>gulp.spritesmithテスト</h1>\n\n<div class=\"icon1\">アイコン1</div>\n<div class=\"icon2\">アイコン2</div>\n<div class=\"icon3\">アイコン3</div>\n<div class=\"cat\"></div>\n</body>\n</html>\n```\n",
"title": "CSS Sprite自動生成(gulp.spritesmith)"
}
"""
if __name__ == "__main__":
unittest.main()
| 279.722892
| 17,748
| 0.60249
| 3,707
| 23,217
| 3.760453
| 0.094955
| 0.288594
| 0.318006
| 0.147633
| 0.747131
| 0.711263
| 0.693759
| 0.677403
| 0.620014
| 0.566643
| 0
| 0.033031
| 0.07417
| 23,217
| 82
| 17,749
| 283.134146
| 0.615399
| 0.000905
| 0
| 0.054795
| 0
| 0.041096
| 0.967578
| 0.679271
| 0
| 0
| 0
| 0
| 0.013699
| 1
| 0.027397
| false
| 0
| 0.123288
| 0
| 0.164384
| 0.013699
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0406ab02c7fba61c7f542161084649674e283153
| 2,807
|
py
|
Python
|
rx/operators/observable/filter.py
|
yutiansut/RxPY
|
c3bbba77f9ebd7706c949141725e220096deabd4
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
rx/operators/observable/filter.py
|
yutiansut/RxPY
|
c3bbba77f9ebd7706c949141725e220096deabd4
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
rx/operators/observable/filter.py
|
yutiansut/RxPY
|
c3bbba77f9ebd7706c949141725e220096deabd4
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
from typing import Callable
from rx.core import AnonymousObservable, ObservableBase as Observable
from rx.core.typing import Predicate, PredicateIndexed, Scheduler, Observer, Disposable
# pylint: disable=W0622
def filter(predicate: Predicate) -> Callable[[Observable], Observable]:
"""Filters the elements of an observable sequence based on a
predicate by incorporating the element's index.
Example:
>>> filter(lambda value: value < 10)(source)
Args:
predicate -- A function to test each source element for a
condition.
Returns:
A function that takes an observable source and returns an
observable sequence that contains elements from the input
sequence that satisfy the condition.
"""
def partial(source: Observable) -> Observable:
def subscribe(observer: Observer, scheduler: Scheduler) -> Disposable:
def on_next(value):
try:
should_run = predicate(value)
except Exception as ex: # By design. pylint: disable=W0703
observer.on_error(ex)
return
if should_run:
observer.on_next(value)
return source.subscribe_(on_next, observer.on_error, observer.on_completed, scheduler)
return AnonymousObservable(subscribe)
return partial
def filteri(predicate_indexed: PredicateIndexed = None) -> Callable[[Observable], Observable]:
"""Filters the elements of an observable sequence based on a
predicate by incorporating the element's index.
Example:
>>> filter(lambda value, index: (value + index) < 10)(source)
Args:
predicate -- A function to test each source element for a
condition; the second parameter of the function represents the
index of the source element.
Returns:
A function that takes an observable source and returns an
observable sequence that contains elements from the input
sequence that satisfy the condition.
"""
def partial(source: Observable) -> Observable:
def subscribe(observer: Observer, scheduler: Scheduler):
count = 0
def on_next(value):
nonlocal count
try:
should_run = predicate_indexed(value, count)
except Exception as ex: # By design. pylint: disable=W0703
observer.on_error(ex)
return
else:
count += 1
if should_run:
observer.on_next(value)
return source.subscribe_(on_next, observer.on_error, observer.on_completed, scheduler)
return AnonymousObservable(subscribe)
return partial
| 35.0875
| 98
| 0.629141
| 302
| 2,807
| 5.781457
| 0.261589
| 0.045819
| 0.045819
| 0.040092
| 0.731959
| 0.731959
| 0.731959
| 0.731959
| 0.731959
| 0.731959
| 0
| 0.009269
| 0.308158
| 2,807
| 79
| 99
| 35.531646
| 0.889804
| 0.374421
| 0
| 0.628571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.228571
| false
| 0
| 0.085714
| 0
| 0.542857
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
0458a84e1a9dd4b7c093bd93fc143c5d25b9fac6
| 2,283
|
py
|
Python
|
tests/test_executemany.py
|
jim-obrien-orig/gino
|
5977d79ff12b5e3ab6a598b5d6dba6b140811c2c
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_executemany.py
|
jim-obrien-orig/gino
|
5977d79ff12b5e3ab6a598b5d6dba6b140811c2c
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_executemany.py
|
jim-obrien-orig/gino
|
5977d79ff12b5e3ab6a598b5d6dba6b140811c2c
|
[
"BSD-3-Clause"
] | null | null | null |
import pytest
from .models import db, User
pytestmark = pytest.mark.asyncio
# noinspection PyUnusedLocal
async def test_status(bind):
statement, params = db.compile(User.insert(),
[dict(name='1'), dict(name='2')])
assert statement == ('INSERT INTO gino_users (name, type) '
'VALUES ($1, $2)')
assert params == (('1', 'USER'), ('2', 'USER'))
result = await User.insert().gino.status(dict(name='1'), dict(name='2'))
assert result is None
assert len(await User.query.gino.all()) == 2
# noinspection PyUnusedLocal
async def test_all(bind):
result = await User.insert().returning(User.nickname).gino.all(
dict(name='1'), dict(name='2'))
assert result is None
rows = await User.query.gino.all()
assert len(rows) == 2
assert set(u.nickname for u in rows) == {'1', '2'}
result = await User.insert().gino.all(
dict(name='3'), dict(name='4'))
assert result is None
rows = await User.query.gino.all()
assert len(rows) == 4
assert set(u.nickname for u in rows) == {'1', '2', '3', '4'}
# noinspection PyUnusedLocal
async def test_first(bind):
result = await User.insert().returning(User.nickname).gino.first(
dict(name='1'), dict(name='2'))
assert result is None
rows = await User.query.gino.all()
assert len(await User.query.gino.all()) == 2
assert set(u.nickname for u in rows) == {'1', '2'}
result = await User.insert().gino.first(
dict(name='3'), dict(name='4'))
assert result is None
rows = await User.query.gino.all()
assert len(rows) == 4
assert set(u.nickname for u in rows) == {'1', '2', '3', '4'}
# noinspection PyUnusedLocal
async def test_scalar(bind):
result = await User.insert().returning(User.nickname).gino.scalar(
dict(name='1'), dict(name='2'))
assert result is None
rows = await User.query.gino.all()
assert len(await User.query.gino.all()) == 2
assert set(u.nickname for u in rows) == {'1', '2'}
result = await User.insert().gino.scalar(
dict(name='3'), dict(name='4'))
assert result is None
rows = await User.query.gino.all()
assert len(rows) == 4
assert set(u.nickname for u in rows) == {'1', '2', '3', '4'}
| 33.086957
| 76
| 0.605782
| 331
| 2,283
| 4.163142
| 0.145015
| 0.092888
| 0.091437
| 0.117562
| 0.841074
| 0.769231
| 0.769231
| 0.751814
| 0.729318
| 0.620464
| 0
| 0.025352
| 0.222514
| 2,283
| 68
| 77
| 33.573529
| 0.750986
| 0.046868
| 0
| 0.607843
| 0
| 0
| 0.043759
| 0
| 0
| 0
| 0
| 0
| 0.431373
| 1
| 0
| false
| 0
| 0.039216
| 0
| 0.039216
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f0b8e29adaeb976cecc1d4a2ade701f2be7b139c
| 6,275
|
py
|
Python
|
gpposts/spiders/media_spider.py
|
stefanduerrenberger/p3-export
|
9862600c8cbb59bc98db980d03d802003a581728
|
[
"MIT"
] | 1
|
2017-01-10T12:51:49.000Z
|
2017-01-10T12:51:49.000Z
|
gpposts/spiders/media_spider.py
|
stefanduerrenberger/p3-export
|
9862600c8cbb59bc98db980d03d802003a581728
|
[
"MIT"
] | null | null | null |
gpposts/spiders/media_spider.py
|
stefanduerrenberger/p3-export
|
9862600c8cbb59bc98db980d03d802003a581728
|
[
"MIT"
] | null | null | null |
import scrapy
import logging
import locale
locale.setlocale(locale.LC_ALL, 'de_CH.utf8')
class PressReleasesSpider(scrapy.Spider):
name = 'pressreleases'
custom_settings = {
'ROBOTSTXT_OBEY': 0,
'FEED_URI': 'pressreleases_de.xml',
'FEED_FORMAT': 'xml',
'FEED_EXPORT_ENCODING': 'utf-8',
}
def start_requests(self):
start_urls = ['http://www.greenpeace.org/switzerland/de/?tab=3']
for url in start_urls:
yield scrapy.Request(url=url, callback=self.parse)
def parse(self, response):
# follow links to blog pages
for href in response.css('div.news-content h3 a::attr(href)').extract():
yield scrapy.Request(response.urljoin(href), callback=self.parse_publication)
# follow pagination links
url_part = response.css('a.next::attr("href")').extract_first()
next_page = 'http://www.greenpeace.org/switzerland/de/' + url_part;
logging.info("url_part: " + url_part)
logging.info("Next page link: " + next_page)
if url_part is not None:
next_page = response.urljoin(next_page)
yield scrapy.Request(next_page, callback=self.parse)
def parse_publication(self, response):
def extract_with_css(query):
return response.css(query).extract_first()
yield {
'type': 'PressRelease',
'language': 'de',
'supertitle': extract_with_css('div.article h1 span::text'),
'title': response.css('div.article h2 span::text').extract_first(),
'author': '',
'date': response.css('div.article div.text span.author::text').re_first(r' - \s*(.*)'),
#'lead': response.css('div.article div.text div.leader').extract(),
'lead': response.xpath("string(//div[contains(concat(' ', normalize-space(@class), ' '), ' article ')]/*/*/div[@class='leader'])").extract()[0],
'categories': response.xpath('string(//div[@class="tags"][1]/ul)').extract()[0],
'tags': response.xpath('string(//div[@class="tags"][2]/ul)').extract_first(),
'text': response.xpath('//div[@class="text"]/div[not(@id) and not(@class)]').extract_first(),
'remove': response.css('div.img-view.galleria_container').extract_first(),
'remove2': response.xpath('//span[@class="btn-open"]').extract_first(),
'remove3': response.css('div.gallery div.navi').extract_first(),
'imagesA': response.xpath('//div[@class="text"]/div[not(@id) and not(@class)]//a[img]/@href').extract(),
#'imagesB': response.xpath('//div[@class="text"]/div[not(@id) and not(@class)]//img[not(ancestor::a)]/@src').extract(), #don't import image if there's an a tag around it
'imagesB': response.xpath('//div[@class="text"]/div[not(@id) and not(@class)]//img/@src').extract(),
'imagesC': response.xpath('//div[@class="gallery"]//div[@class="img-nav"]//a/@rel').extract(), # Galleries (horrible html)
'pdfFiles': response.css('div.article a[href$=".pdf"]::attr(href)').extract(),
'url': response.url,
}
class PressReleasesFrSpider(scrapy.Spider):
name = 'pressreleases_fr'
custom_settings = {
'ROBOTSTXT_OBEY': 0,
'FEED_URI': 'pressreleases_fr.xml',
'FEED_FORMAT': 'xml',
'FEED_EXPORT_ENCODING': 'utf-8',
}
def start_requests(self):
start_urls = ['http://www.greenpeace.org/switzerland/fr/?tab=3']
for url in start_urls:
yield scrapy.Request(url=url, callback=self.parse)
def parse(self, response):
# follow links to blog pages
for href in response.css('div.news-content h3 a::attr(href)').extract():
yield scrapy.Request(response.urljoin(href), callback=self.parse_publication)
# follow pagination links
url_part = response.css('a.next::attr("href")').extract_first()
next_page = 'http://www.greenpeace.org/switzerland/fr/' + url_part;
logging.info("url_part: " + url_part)
logging.info("Next page link: " + next_page)
if url_part is not None:
next_page = response.urljoin(next_page)
yield scrapy.Request(next_page, callback=self.parse)
def parse_publication(self, response):
def extract_with_css(query):
return response.css(query).extract_first()
yield {
'type': 'PressRelease',
'language': 'fr',
'supertitle': extract_with_css('div.article h1 span::text'),
'title': response.css('div.article h2 span::text').extract_first(),
'author': '',
'date': response.css('div.article div.text span.author::text').re_first(r' - \s*(.*)'),
#'lead': response.css('div.article div.text div.leader').extract(),
'lead': response.xpath("string(//div[contains(concat(' ', normalize-space(@class), ' '), ' article ')]/*/*/div[@class='leader'])").extract()[0],
'categories': response.xpath('string(//div[@class="tags"][1]/ul)').extract()[0],
'tags': response.xpath('string(//div[@class="tags"][2]/ul)').extract_first(),
'text': response.xpath('//div[@class="text"]/div[not(@id) and not(@class)]').extract_first(),
'remove': response.css('div.img-view.galleria_container').extract_first(),
'remove2': response.xpath('//span[@class="btn-open"]').extract_first(),
'remove3': response.css('div.gallery div.navi').extract_first(),
'imagesA': response.xpath('//div[@class="text"]/div[not(@id) and not(@class)]//a[img]/@href').extract(),
#'imagesB': response.xpath('//div[@class="text"]/div[not(@id) and not(@class)]//img[not(ancestor::a)]/@src').extract(), #don't import image if there's an a tag around it
'imagesB': response.xpath('//div[@class="text"]/div[not(@id) and not(@class)]//img/@src').extract(),
'imagesC': response.xpath('//div[@class="gallery"]//div[@class="img-nav"]//a/@rel').extract(), # Galleries (horrible html)
'pdfFiles': response.css('div.article a[href$=".pdf"]::attr(href)').extract(),
'url': response.url,
}
| 49.409449
| 181
| 0.595697
| 765
| 6,275
| 4.788235
| 0.184314
| 0.054054
| 0.053508
| 0.05733
| 0.948403
| 0.948403
| 0.946219
| 0.946219
| 0.920011
| 0.920011
| 0
| 0.005055
| 0.211793
| 6,275
| 126
| 182
| 49.801587
| 0.735544
| 0.098645
| 0
| 0.787234
| 0
| 0.06383
| 0.356434
| 0.154201
| 0
| 0
| 0
| 0
| 0
| 1
| 0.085106
| false
| 0
| 0.031915
| 0.021277
| 0.202128
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9bd205a70744cbffb93d41dac906b74434fdd66d
| 688
|
py
|
Python
|
make_data/shopping/shopping_templates.py
|
ricosr/travel_consult_chatbot
|
cb258d65672ae1d8e2035ed0d7c0703e9d77eae9
|
[
"MIT"
] | null | null | null |
make_data/shopping/shopping_templates.py
|
ricosr/travel_consult_chatbot
|
cb258d65672ae1d8e2035ed0d7c0703e9d77eae9
|
[
"MIT"
] | 4
|
2020-01-28T23:02:29.000Z
|
2022-02-10T00:46:45.000Z
|
make_data/shopping/shopping_templates.py
|
ricosr/travel_consult_chatbot
|
cb258d65672ae1d8e2035ed0d7c0703e9d77eae9
|
[
"MIT"
] | 1
|
2019-10-10T04:15:24.000Z
|
2019-10-10T04:15:24.000Z
|
# -*- coding: utf-8 -*-
commodity_template = """
- 我想买个[{commodity}](commodity)啊
- 哪里有卖[{commodity}](commodity)的店
- 找一个卖[{commodity}](commodity)的地方
- 帮我找有卖[{commodity}](commodity)的商店
- 哪里有商场可以买[{commodity}](commodity)
- 哪能买到[{commodity}](commodity)
- 去哪买[{commodity}](commodity)
- 附近有什么买东西地方吗
- 我想买一些好玩的东西
"""
commodity_template_ls1 = [
"- 我想买个[{commodity}](commodity)啊",
"- 哪里有卖[{commodity}](commodity)的店",
"- 找一个卖[{commodity}](commodity)的地方",
"- 帮我找有卖[{commodity}](commodity)的商店",
"- 哪里有商场可以买[{commodity}](commodity)",
"- 哪能买到[{commodity}](commodity)",
"- 去哪买[{commodity}](commodity)"
]
commodity_template_ls2 = [
"- 附近有什么买东西地方吗",
"- 我想买一些好玩的东西"
]
| 24.571429
| 41
| 0.651163
| 65
| 688
| 6.815385
| 0.307692
| 0.609481
| 0.099323
| 0.103837
| 0.75395
| 0.75395
| 0.75395
| 0.75395
| 0.75395
| 0.75395
| 0
| 0.005025
| 0.132267
| 688
| 28
| 42
| 24.571429
| 0.737018
| 0.030523
| 0
| 0
| 0
| 0
| 0.75976
| 0.627628
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
9bec6258bee5099be162b8d88e8e87b78b47a786
| 1,306
|
py
|
Python
|
deep_utils/dummy_objects/vision/face_detection/__init__.py
|
pooya-mohammadi/deep_utils
|
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
|
[
"MIT"
] | 36
|
2021-11-10T05:17:18.000Z
|
2022-03-27T18:25:10.000Z
|
deep_utils/dummy_objects/vision/face_detection/__init__.py
|
pooya-mohammadi/deep_utils
|
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
|
[
"MIT"
] | 1
|
2021-12-03T07:07:18.000Z
|
2022-03-08T09:29:03.000Z
|
deep_utils/dummy_objects/vision/face_detection/__init__.py
|
pooya-mohammadi/deep_utils
|
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
|
[
"MIT"
] | 4
|
2021-11-28T07:39:57.000Z
|
2022-03-30T05:46:10.000Z
|
from deep_utils.dummy_objects import DummyObject, requires_backends
class HaarcascadeCV2FaceDetector(metaclass=DummyObject):
_backend = ["cv2"]
def __init__(self, *args, **kwargs):
requires_backends(self, self._backend)
class MTCNNTFFaceDetector(metaclass=DummyObject):
_backend = ["tensorflow", "cv2"]
def __init__(self, *args, **kwargs):
requires_backends(self, self._backend)
class MTCNNTorchFaceDetector(metaclass=DummyObject):
_backend = ["torch", "cv2"]
def __init__(self, *args, **kwargs):
requires_backends(self, self._backend)
class RetinaFaceTorchFaceDetector(metaclass=DummyObject):
_backend = ["torch", "cv2"]
def __init__(self, *args, **kwargs):
requires_backends(self, self._backend)
class SSDCV2CaffeFaceDetector(metaclass=DummyObject):
_backend = ["cv2"]
def __init__(self, *args, **kwargs):
requires_backends(self, self._backend)
class UltralightTFFaceDetector(metaclass=DummyObject):
_backend = ["tensorflow", "cv2"]
def __init__(self, *args, **kwargs):
requires_backends(self, self._backend)
class UltralightTorchFaceDetector(metaclass=DummyObject):
_backend = ["torch", "cv2"]
def __init__(self, *args, **kwargs):
requires_backends(self, self._backend)
| 25.607843
| 67
| 0.705972
| 126
| 1,306
| 6.904762
| 0.214286
| 0.147126
| 0.217241
| 0.112644
| 0.734483
| 0.734483
| 0.734483
| 0.734483
| 0.734483
| 0.734483
| 0
| 0.008287
| 0.168453
| 1,306
| 50
| 68
| 26.12
| 0.792818
| 0
| 0
| 0.724138
| 0
| 0
| 0.042879
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.241379
| false
| 0
| 0.034483
| 0
| 0.758621
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
5026d952778dda319685b6323d7aab7117a07265
| 16,739
|
py
|
Python
|
redpandas/tests/test_redpd_build_station.py
|
RedVoxInc/redpandas
|
197aa164829a495d118117f2d3de28bd0af2accc
|
[
"Apache-2.0"
] | 1
|
2021-07-08T00:39:45.000Z
|
2021-07-08T00:39:45.000Z
|
redpandas/tests/test_redpd_build_station.py
|
RedVoxInc/redpandas
|
197aa164829a495d118117f2d3de28bd0af2accc
|
[
"Apache-2.0"
] | 1
|
2022-03-18T20:35:48.000Z
|
2022-03-23T20:43:10.000Z
|
redpandas/tests/test_redpd_build_station.py
|
RedVoxInc/redpandas
|
197aa164829a495d118117f2d3de28bd0af2accc
|
[
"Apache-2.0"
] | null | null | null |
import unittest
import numpy as np
import redpandas.redpd_build_station as rpd_build_sta
from redvox.common.data_window import DataWindow
# # Load data once for speed
# rdvx_data: DataWindow = DataWindow.from_json_file(base_dir="test_data",
# file_name="aud_bar_acc_mag_gyr_loc_soh_clock_sync")
# example_station = rdvx_data.get_station("1637610021")[0]
# TODO:
# - Datasets with no: barometer, accelerometer, gyroscope, magnetometer, location, best location, clock, synch, health
# - Datasets with: image, luminosity
# - Write tests accordingly
# class TestUnevenSensor(unittest.TestCase):
# def setUp(self) -> None:
# self.example_station = example_station
# sensor_sample_rate_hz, sensor_epoch_s, sensor_raw, sensor_nans = \
# rpd_build_sta.sensor_uneven(station=self.example_station,
# sensor_label="barometer")
# self.sensor_sample_rate_hz = sensor_sample_rate_hz
# self.sensor_epoch_s = sensor_epoch_s
# self.sensor_raw = sensor_raw
# self.sensor_nans = sensor_nans
#
# def test_results_is_not_None(self):
# # Should not be None as there is data
# self.assertIsNotNone(self.sensor_sample_rate_hz)
# self.assertIsNotNone(self.sensor_epoch_s)
# self.assertIsNotNone(self.sensor_raw)
# self.assertIsNotNone(self.sensor_nans)
#
# def test_results_type(self):
# # Check return type is what it should be
# self.assertTrue(type(self.sensor_sample_rate_hz) is float)
# self.assertTrue(type(self.sensor_epoch_s) is np.ndarray)
# self.assertTrue(type(self.sensor_raw) is np.ndarray)
# self.assertTrue(type(self.sensor_nans) is np.ndarray)
#
# def test_no_data(self):
# # Should return None cause there is no data
# sensor_sample_rate_hz, sensor_epoch_s, sensor_raw, sensor_nans = \
# rpd_build_sta.sensor_uneven(station=example_station,
# sensor_label="light")
# self.assertIsNone(sensor_sample_rate_hz)
# self.assertIsNone(sensor_epoch_s)
# self.assertIsNone(sensor_raw)
# self.assertIsNone(sensor_nans)
#
# def tearDown(self):
# self.example_station = None
# self.sensor_sample_rate_hz = None
# self.sensor_epoch_s = None
# self.sensor_raw = None
# self.sensor_nans = None
#
#
# class TestAudioWfTimeBuildStation(unittest.TestCase):
# def setUp(self) -> None:
# self.example_station = rdvx_data.get_station("1637610021")[0]
#
# def test_result_type_simple(self):
# # Should return dictionary
# returned_dict = rpd_build_sta.audio_wf_time_build_station(station=self.example_station,
# mean_type="simple",
# raw=False)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_lin(self):
# returned_dict = rpd_build_sta.audio_wf_time_build_station(station=self.example_station,
# mean_type="lin",
# raw=False)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_raw(self):
# returned_dict = rpd_build_sta.audio_wf_time_build_station(station=self.example_station,
# mean_type="simple",
# raw=True)
# self.assertTrue(type(returned_dict) is dict)
#
# def tearDown(self):
# self.example_station = None
#
#
# class TestLocationBuildStation(unittest.TestCase):
# def setUp(self) -> None:
# self.example_station = rdvx_data.get_station("1637610021")[0]
#
# def test_result_type(self):
# # Should return dictionary
# returned_dict = rpd_build_sta.location_build_station(station=self.example_station)
# self.assertTrue(type(returned_dict) is dict)
#
# def tearDown(self):
# self.example_station = None
#
#
# class TestBestLocationBuildStation(unittest.TestCase):
# def setUp(self) -> None:
# self.example_station = rdvx_data.get_station("1637610021")[0]
#
# def test_result_type(self):
# # Should return dictionary
# returned_dict = rpd_build_sta.best_location_build_station(station=self.example_station)
# self.assertTrue(type(returned_dict) is dict)
#
# def tearDown(self):
# self.example_station = None
#
#
# class TestStateOfHealthBuildStation(unittest.TestCase):
# def setUp(self) -> None:
# self.example_station = rdvx_data.get_station("1637610021")[0]
#
# def test_result_type(self):
# # Should return dictionary
# returned_dict = rpd_build_sta.state_of_health_build_station(station=self.example_station)
# self.assertTrue(type(returned_dict) is dict)
#
# def tearDown(self):
# self.example_station = None
#
#
# class TestImageBuildStation(unittest.TestCase):
# def setUp(self) -> None:
# self.example_station = rdvx_data.get_station("1637610021")[0]
#
# def test_result_type(self):
# # Should return dictionary
# returned_dict = rpd_build_sta.image_build_station(station=self.example_station)
# self.assertTrue(type(returned_dict) is dict)
#
# def tearDown(self):
# self.example_station = None
#
#
# class TestSynchronizationBuildStation(unittest.TestCase):
# def setUp(self) -> None:
# self.example_station = rdvx_data.get_station("1637610021")[0]
#
# def test_result_type(self):
# # Should return dictionary
# returned_dict = rpd_build_sta.synchronization_build_station(station=self.example_station)
# self.assertTrue(type(returned_dict) is dict)
#
# def tearDown(self):
# self.example_station = None
#
#
# class TestClockBuildStation(unittest.TestCase):
# def setUp(self) -> None:
# self.example_station = rdvx_data.get_station("1637610021")[0]
#
# def test_result_type(self):
# # Should return dictionary
# returned_dict = rpd_build_sta.clock_build_station(station=self.example_station)
# self.assertTrue(type(returned_dict) is dict)
#
# def tearDown(self):
# self.example_station = None
#
#
# class TestLightBuildStation(unittest.TestCase):
# def setUp(self) -> None:
# self.example_station = rdvx_data.get_station("1637610021")[0]
#
# def test_result_type(self):
# # Should return dictionary
# returned_dict = rpd_build_sta.light_build_station(station=self.example_station)
# self.assertTrue(type(returned_dict) is dict)
#
# def tearDown(self):
# self.example_station = None
#
#
# class TestBuildStation(unittest.TestCase):
#
# def setUp(self) -> None:
# self.example_station = rdvx_data.get_station("1637610021")[0]
#
# def test_result_type_audio_obspy(self):
# returned_dict = rpd_build_sta.build_station(station=self.example_station,
# sensor_label="audio",
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_audio_butter(self):
# returned_dict = rpd_build_sta.build_station(station=self.example_station,
# sensor_label="audio",
# highpass_type="butter",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_audio_rc(self):
# returned_dict = rpd_build_sta.build_station(station=self.example_station,
# sensor_label="audio",
# highpass_type="rc",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_barometer_obspy(self):
# returned_dict = rpd_build_sta.build_station(station=self.example_station,
# sensor_label="barometer",
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_accelerometer_obspy(self):
# returned_dict = rpd_build_sta.build_station(station=self.example_station,
# sensor_label="accelerometer",
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_gyroscope_obspy(self):
# returned_dict = rpd_build_sta.build_station(station=self.example_station,
# sensor_label="gyroscope",
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_magnetometer_obspy(self):
# returned_dict = rpd_build_sta.build_station(station=self.example_station,
# sensor_label="magnetometer",
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_health(self):
# returned_dict = rpd_build_sta.build_station(station=self.example_station,
# sensor_label="magnetometer",
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_location(self):
# returned_dict = rpd_build_sta.build_station(station=self.example_station,
# sensor_label="location",
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_best_location(self):
# returned_dict = rpd_build_sta.build_station(station=self.example_station,
# sensor_label="best_location",
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_image(self):
# returned_dict = rpd_build_sta.build_station(station=self.example_station,
# sensor_label="image",
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def tearDown(self):
# self.example_station = None
#
#
# class TestStationToDictFromDw(unittest.TestCase):
#
# def setUp(self) -> None:
# self.example_station = rdvx_data.get_station("1637610021")[0]
#
# def test_result_type_audio_only(self):
# returned_dict = rpd_build_sta.station_to_dict_from_dw(station=self.example_station,
# sdk_version="3.0",
# sensor_labels=["audio"],
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_barometer_only(self):
# returned_dict = rpd_build_sta.station_to_dict_from_dw(station=self.example_station,
# sdk_version="3.0",
# sensor_labels=["barometer"],
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_acceleration_only(self):
# returned_dict = rpd_build_sta.station_to_dict_from_dw(station=self.example_station,
# sdk_version="3.0",
# sensor_labels=["accelerometer"],
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_magnetometer_only(self):
# returned_dict = rpd_build_sta.station_to_dict_from_dw(station=self.example_station,
# sdk_version="3.0",
# sensor_labels=["magnetometer"],
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_gyroscope_only(self):
# returned_dict = rpd_build_sta.station_to_dict_from_dw(station=self.example_station,
# sdk_version="3.0",
# sensor_labels=["gyroscope"],
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def test_result_type_multiple(self):
# returned_dict = rpd_build_sta.station_to_dict_from_dw(station=self.example_station,
# sdk_version="3.0",
# sensor_labels=["audio", "barometer"],
# highpass_type="obspy",
# frequency_filter_low=1/100,
# filter_order=4)
# self.assertTrue(type(returned_dict) is dict)
#
# def tearDown(self):
# self.example_station = None
#
#
# if __name__ == '__main__':
# unittest.main()
| 49.232353
| 119
| 0.512695
| 1,548
| 16,739
| 5.202842
| 0.091085
| 0.080457
| 0.111746
| 0.086913
| 0.835734
| 0.807177
| 0.807177
| 0.797864
| 0.782841
| 0.773405
| 0
| 0.021831
| 0.403429
| 16,739
| 339
| 120
| 49.377581
| 0.784699
| 0.951132
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00295
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 10
|
acd154773cc75e002b5cd55d706238050b27d67c
| 9,941
|
py
|
Python
|
utils/metrics.py
|
badulion/code-2021-soilnet
|
2a20f30707a7d9d121c32a18eb72e04895d7b458
|
[
"MIT"
] | null | null | null |
utils/metrics.py
|
badulion/code-2021-soilnet
|
2a20f30707a7d9d121c32a18eb72e04895d7b458
|
[
"MIT"
] | null | null | null |
utils/metrics.py
|
badulion/code-2021-soilnet
|
2a20f30707a7d9d121c32a18eb72e04895d7b458
|
[
"MIT"
] | null | null | null |
import numpy as np
from scipy.spatial.distance import jensenshannon
from scipy.stats import entropy
class Metric:
def __init__(self):
super().__init__()
def reset(self):
raise NotImplementedError
def update(self, pred, target):
raise NotImplementedError
def calculate(self):
raise NotImplementedError
class MSE(Metric):
def __init__(self):
super().__init__()
self.length = 0
self.sum = 0
def reset(self):
self.__init__()
def update(self, pred, target):
self.length += target.shape[0]
self.sum += np.square(pred - target).sum()
def calculate(self):
return self.sum / self.length
class MAE(Metric):
def __init__(self):
super().__init__()
self.length = 0
self.sum = 0
def reset(self):
self.__init__()
def update(self, pred, target):
self.length += target.shape[0]
self.sum += np.abs(pred - target).sum()
def calculate(self):
return self.sum / self.length
class MAEClass(Metric):
def __init__(self, index=0):
super().__init__()
self.length = 0
self.sum = 0
self.index = index
def reset(self):
self.__init__()
def update(self, pred, target):
self.length += target.shape[0]
self.sum += np.abs(pred[:, self.index] - target[:, self.index]).sum()
def calculate(self):
return self.sum / self.length
class MSEClass(Metric):
def __init__(self, index=0):
super().__init__()
self.length = 0
self.sum = 0
self.index = index
def reset(self):
self.__init__()
def update(self, pred, target):
self.length += target.shape[0]
self.sum += np.square(pred[:, self.index] - target[:, self.index]).sum()
def calculate(self):
return self.sum / self.length
class JSDivergence(Metric):
"""Jensen-Shannon Divergence"""
def __init__(self):
super().__init__()
self.length = 0
self.sum = 0
def reset(self):
self.__init__()
def update(self, pred, target):
self.length += target.shape[0]
self.sum += np.sum([np.square(jensenshannon(p, t)) for p, t in zip(pred, target)])
def calculate(self):
return self.sum / self.length
class KLDivergence(Metric):
"""Kullback-Leibler Divergence"""
def __init__(self):
super().__init__()
self.length = 0
self.sum = 0
def reset(self):
self.__init__()
def update(self, pred, target):
self.length += target.shape[0]
self.sum += np.sum(entropy(target, pred, axis=1))
def calculate(self):
return self.sum / self.length
class Accuracy(Metric):
"""Accuracy"""
def __init__(self):
super().__init__()
self.total = 0
self.correct = 0
def reset(self):
self.__init__()
def update(self, pred, target):
self.total += target.shape[0]
pred_class = soil_classification(pred)
target_class = soil_classification(target)
self.correct += np.sum(target_class == pred_class)
def calculate(self):
return self.correct / self.total
class Recall(Metric):
"""Accuracy"""
def __init__(self):
super().__init__()
self.true_positives = 0
self.false_negatives = 0
self.total = 0
self.num_classes = 12
def reset(self):
self.__init__()
def update(self, pred, target):
pred_class = soil_classification(pred)
target_class = soil_classification(target)
pred_onehot = np.eye(self.num_classes)[pred_class]
target_onehot = np.eye(self.num_classes)[target_class]
self.true_positives += np.sum(pred_onehot*target_onehot == 1, axis=0)
self.false_negatives += np.sum((pred_onehot == 0)*(target_onehot == 1), axis=0)
self.total += np.sum(target_onehot, axis=0)
def calculate(self):
denominator = self.true_positives+self.false_negatives
denominator = np.maximum(denominator, 1e-1)
return np.mean(self.true_positives / denominator)
class Precision(Metric):
"""Accuracy"""
def __init__(self):
super().__init__()
self.true_positives = 0
self.false_positives = 0
self.total = 0
self.num_classes = 12
def reset(self):
self.__init__()
def update(self, pred, target):
pred_class = soil_classification(pred)
target_class = soil_classification(target)
pred_onehot = np.eye(self.num_classes)[pred_class]
target_onehot = np.eye(self.num_classes)[target_class]
self.true_positives += np.sum(pred_onehot*target_onehot == 1, axis=0)
self.false_positives += np.sum((pred_onehot == 1)*(target_onehot == 0), axis=0)
self.total += np.sum(target_onehot, axis=0)
def calculate(self):
denominator = self.true_positives+self.false_positives
denominator = np.maximum(denominator, 1e-1)
return np.mean(self.true_positives / denominator)
class F1(Metric):
"""Accuracy"""
def __init__(self):
super().__init__()
self.true_positives = 0
self.false_negatives = 0
self.false_positives = 0
self.total = 0
self.num_classes = 12
def reset(self):
self.__init__()
def update(self, pred, target):
pred_class = soil_classification(pred)
target_class = soil_classification(target)
pred_onehot = np.eye(self.num_classes)[pred_class]
target_onehot = np.eye(self.num_classes)[target_class]
self.true_positives += np.sum(pred_onehot*target_onehot == 1, axis=0)
self.false_negatives += np.sum((pred_onehot == 0)*(target_onehot == 1), axis=0)
self.false_positives += np.sum((pred_onehot == 1)*(target_onehot == 0), axis=0)
self.total += np.sum(target_onehot, axis=0)
def calculate(self):
denominator = self.true_positives+0.5*(self.false_negatives+self.false_positives)
denominator = np.maximum(denominator, 1e-1)
return np.mean(self.true_positives / denominator)
class AllMetrics(Metric):
def __init__(self):
super().__init__()
self.metrics = {
"mae": MAE(),
"mse": MSE(),
"mae_sand": MAEClass(index=0),
"mae_silt": MAEClass(index=1),
"mae_clay": MAEClass(index=2),
"mse_sand": MSEClass(index=0),
"mse_silt": MSEClass(index=1),
"mse_clay": MSEClass(index=2),
"js_divergence": JSDivergence(),
"kl_divergence": KLDivergence(),
"accuracy": Accuracy(),
"recall": Recall(),
"precision": Precision(),
"f1": F1(),
}
def reset(self):
for _, metric in self.metrics.items():
metric.reset()
def update(self, pred, target):
for _, metric in self.metrics.items():
metric.update(pred, target)
def calculate(self, prefix=""):
output = {}
for name, metric in self.metrics.items():
output[prefix + name] = metric.calculate()
return output
def calculate_string(self):
output = ""
for name, metric in self.metrics.items():
output += f"{name}: {metric.calculate()}\n"
return output
def soil_classification(grain_distribution, sand_idx=0, silt_idx=1, clay_idx=2):
soil_class = np.zeros(len(grain_distribution), dtype=np.int)
soil_class[(grain_distribution[:, clay_idx] > 0.4) & (grain_distribution[:, sand_idx] <= 0.45)
& (grain_distribution[:, silt_idx] <= 0.4)] = 0 # clay
soil_class[(grain_distribution[:, clay_idx] > 0.4) & (grain_distribution[:, silt_idx] > 0.4)] = 1 # silty clay
soil_class[(grain_distribution[:, clay_idx] > 0.35) & (grain_distribution[:, sand_idx] > 0.45)] = 2 # sandy clay
soil_class[(grain_distribution[:, clay_idx] > 0.275) & (grain_distribution[:, clay_idx] <= 0.4) & (
grain_distribution[:, sand_idx] <= 0.45) & (grain_distribution[:, sand_idx] > 0.2)] = 3 # clay loam
soil_class[(grain_distribution[:, clay_idx] > 0.275) & (grain_distribution[:, clay_idx] <= 0.4)
& (grain_distribution[:, sand_idx] <= 0.2)] = 4 # silty clay loam
soil_class[(grain_distribution[:, clay_idx] > 0.2) & (grain_distribution[:, clay_idx] <= 0.35) & (
grain_distribution[:, sand_idx] > 0.45) & (grain_distribution[:, silt_idx] <= 0.275)] = 5 # sandy clay loam
soil_class[(grain_distribution[:, clay_idx] > 0.075) & (grain_distribution[:, clay_idx] <= 0.275) & (grain_distribution[:,
sand_idx] <= 0.525) & (grain_distribution[:, silt_idx] > 0.275) & (grain_distribution[:, silt_idx] <= 0.5)] = 6 # loam
soil_class[(grain_distribution[:, clay_idx] <= 0.275) & (grain_distribution[:, silt_idx] > 0.5) & (
(grain_distribution[:, silt_idx] <= 0.8) | (grain_distribution[:, clay_idx] > 0.125))] = 7 # silt loam
soil_class[(grain_distribution[:, silt_idx] > 0.8) & (grain_distribution[:, clay_idx] <= 0.125)] = 8 # silt
soil_class[(grain_distribution[:, sand_idx]-grain_distribution[:, clay_idx] <= 0.7) & (grain_distribution[:, clay_idx] <= 0.2)
& (grain_distribution[:, silt_idx] <= 0.5) & ((grain_distribution[:, sand_idx] > 0.525) | (grain_distribution[:, clay_idx] <= 0.075))] = 9 # sandy loam
soil_class[(grain_distribution[:, sand_idx]-0.5*grain_distribution[:, clay_idx] <= 0.85)
& (grain_distribution[:, sand_idx]-grain_distribution[:, clay_idx] > 0.7)] = 10 # loamy sand
soil_class[(grain_distribution[:, sand_idx]-0.5*grain_distribution[:, clay_idx] > 0.85)] = 11 # sand
return soil_class
| 31.065625
| 243
| 0.60004
| 1,220
| 9,941
| 4.619672
| 0.092623
| 0.129702
| 0.074521
| 0.085167
| 0.820263
| 0.793648
| 0.780163
| 0.76313
| 0.722321
| 0.668382
| 0
| 0.027876
| 0.260235
| 9,941
| 319
| 244
| 31.163009
| 0.73851
| 0.020722
| 0
| 0.663677
| 0
| 0
| 0.013928
| 0.00227
| 0
| 0
| 0
| 0
| 0
| 1
| 0.224215
| false
| 0
| 0.013453
| 0.03139
| 0.349776
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c57a60bb8ebfe7117201b714ae1e628b3a5e9cc1
| 186
|
py
|
Python
|
rubicon/domain/utils/uuid.py
|
gforsyth/rubicon
|
b77c0bdfc73d3f5666f76c83240706c10cd2e88c
|
[
"Apache-2.0"
] | 42
|
2021-02-23T23:30:49.000Z
|
2021-05-01T02:54:03.000Z
|
rubicon/domain/utils/uuid.py
|
gforsyth/rubicon
|
b77c0bdfc73d3f5666f76c83240706c10cd2e88c
|
[
"Apache-2.0"
] | 56
|
2021-05-13T13:47:50.000Z
|
2022-03-24T13:46:49.000Z
|
rubicon/domain/utils/uuid.py
|
gforsyth/rubicon
|
b77c0bdfc73d3f5666f76c83240706c10cd2e88c
|
[
"Apache-2.0"
] | 9
|
2021-02-23T23:30:51.000Z
|
2021-04-24T16:42:28.000Z
|
import uuid
def uuid4():
"""Generate a UUID as a string in a single function.
To be used as a default factory within `dataclasses.field`.
"""
return str(uuid.uuid4())
| 18.6
| 63
| 0.655914
| 28
| 186
| 4.357143
| 0.75
| 0.04918
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014184
| 0.241935
| 186
| 9
| 64
| 20.666667
| 0.851064
| 0.591398
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
c59e7d67c773eb0754aad329c6dccbe5f1e7056d
| 8,214
|
py
|
Python
|
LiveObjects/hal.py
|
tomekmalek/LiveObjects_SDK_for_Python
|
1c95ffe2d1296aeef90815755632cf4abfa02cba
|
[
"MIT"
] | null | null | null |
LiveObjects/hal.py
|
tomekmalek/LiveObjects_SDK_for_Python
|
1c95ffe2d1296aeef90815755632cf4abfa02cba
|
[
"MIT"
] | null | null | null |
LiveObjects/hal.py
|
tomekmalek/LiveObjects_SDK_for_Python
|
1c95ffe2d1296aeef90815755632cf4abfa02cba
|
[
"MIT"
] | null | null | null |
#
# Copyright (C) Orange
#
# This software is distributed under the terms and conditions of the 'MIT'
# license which can be found in the file 'LICENSE.md' in this package distribution
import sys
import LiveObjects
class BoardsInterface:
DEFAULT_CARRIER = 1
EXISTING_NETWORK = 2
WIFI = 3
LTE = 4
PYTHON = 1
MICROPYTHON = 2
@staticmethod
def create_credentials(net_type):
return LiveObjects.Credentials(net_type)
def get_apikey(self):
return self._credentials.get_apikey()
def get_client_id(self):
pass
def get_lang_str(self):
lang_dict = {BoardsInterface.PYTHON: 'urn:lo:nsid:Python',
BoardsInterface.MICROPYTHON: 'urn:lo:nsid:microPython'}
return lang_dict[self._lang_id]
def get_lang_id(self):
return self._lang_id
def get_security_level(self):
pass
def get_store_cert_filename(self):
pass
def check_network_capabilities(self, net_type):
if net_type not in self._carrier_capability:
print('Carrier not supported.')
sys.exit()
def connect(self):
pass
def network_disconnect(self):
pass
class LoPy(BoardsInterface):
def __init__(self, net_type):
self._lang_id = BoardsInterface.MICROPYTHON
self._net_type = BoardsInterface.WIFI if net_type == BoardsInterface.DEFAULT_CARRIER else net_type
self._carrier_capability = (BoardsInterface.WIFI,)
self._wifi_tls_capability = False
self._credentials = super().create_credentials(self._net_type)
self._hostname = 'LoPy'
def connect(self):
super().check_network_capabilities(self._net_type)
if self._net_type == BoardsInterface.WIFI:
from LiveObjects.services import pycom_wifi_connect
pycom_wifi_connect(self._credentials.get_creds()['ssid'], self._credentials.get_creds()['password'],
self._hostname)
def get_security_level(self):
if self._net_type == BoardsInterface.WIFI:
return LiveObjects.SSL if self._wifi_tls_capability else LiveObjects.NONE
def get_client_id(self):
from LiveObjects.services import get_pycom_mac
return self.get_lang_str() + ':' + get_pycom_mac()
class GPy(BoardsInterface):
def __init__(self, net_type):
self._lang_id = BoardsInterface.MICROPYTHON
self._net_type = BoardsInterface.WIFI if net_type == BoardsInterface.DEFAULT_CARRIER else net_type
self._carrier_capability = (BoardsInterface.WIFI, BoardsInterface.LTE)
self._wifi_tls_capability = False
self._lte_tls_capability = False
self._credentials = super().create_credentials(self._net_type)
self._hostname = 'GPy'
def connect(self):
super().check_network_capabilities(self._net_type)
if self._net_type == BoardsInterface.WIFI:
from LiveObjects.services import pycom_wifi_connect
pycom_wifi_connect(self._credentials.get_creds()['ssid'], self._credentials.get_creds()['password'],
self._hostname)
elif self._net_type == BoardsInterface.LTE:
from LiveObjects.services import lte_connect
lte_connect(self._credentials.get_creds()['pin'])
def get_security_level(self):
if self._net_type == BoardsInterface.WIFI:
return LiveObjects.SSL if self._wifi_tls_capability else LiveObjects.NONE
elif self._net_type == BoardsInterface.LTE:
return LiveObjects.SSL if self._lte_tls_capability else LiveObjects.NONE
def get_client_id(self):
if self._net_type == BoardsInterface.WIFI:
from LiveObjects.services import get_pycom_mac
return self.get_lang_str() + ':' + get_pycom_mac()
elif self._net_type == BoardsInterface.LTE:
from LiveObjects.services import get_pycom_imei
return self.get_lang_str() + ':' + get_pycom_imei()
class Esp8266(BoardsInterface):
def __init__(self, net_type):
self._lang_id = BoardsInterface.MICROPYTHON
self._net_type = BoardsInterface.WIFI if net_type == BoardsInterface.DEFAULT_CARRIER else net_type
self._carrier_capability = (BoardsInterface.WIFI,)
self._wifi_tls_capability = False
self._credentials = super().create_credentials(self._net_type)
def connect(self):
from LiveObjects.services import wifi_connect
super().check_network_capabilities(self._net_type)
wifi_connect(self._credentials.get_creds()['ssid'], self._credentials.get_creds()['password'])
def get_security_level(self):
return LiveObjects.SSL if self._wifi_tls_capability else LiveObjects.NONE
def get_client_id(self):
from LiveObjects.services import get_esp_mac
return self.get_lang_str() + ':' + get_esp_mac()
class Win32(BoardsInterface):
def __init__(self, net_type):
self._lang_id = BoardsInterface.PYTHON
self._net_type = BoardsInterface.EXISTING_NETWORK if net_type == BoardsInterface.DEFAULT_CARRIER else net_type
self._carrier_capability = (BoardsInterface.EXISTING_NETWORK,)
self._existing_network_tls_capability = True
self._credentials = super().create_credentials(self._net_type)
def connect(self):
from LiveObjects.services import use_existing_network_connection
super().check_network_capabilities(self._net_type)
use_existing_network_connection()
def get_security_level(self):
return LiveObjects.SSL if self._existing_network_tls_capability else LiveObjects.NONE
def get_store_cert_filename(self):
try:
import certifi
return certifi.where()
except ImportError:
print("[ERROR] U have missing library 'python-certifi-win32'")
sys.exit()
def get_client_id(self):
from LiveObjects.services import get_mac
return self.get_lang_str() + ':' + get_mac()
class Esp32(BoardsInterface):
def __init__(self, net_type):
self._lang_id = BoardsInterface.MICROPYTHON
self._net_type = BoardsInterface.WIFI if net_type == BoardsInterface.DEFAULT_CARRIER else net_type
self._carrier_capability = (BoardsInterface.WIFI,)
self._wifi_tls_capability = True
self._credentials = super().create_credentials(self._net_type)
def connect(self):
from LiveObjects.services import wifi_connect
super().check_network_capabilities(self._net_type)
wifi_connect(self._credentials.get_creds()['ssid'], self._credentials.get_creds()['password'])
def get_security_level(self):
return LiveObjects.SSL if self._wifi_tls_capability else LiveObjects.NONE
def get_client_id(self):
from LiveObjects.services import get_esp_mac
return self.get_lang_str() + ':' + get_esp_mac()
class Linux(BoardsInterface):
def __init__(self, net_type):
self._lang_id = BoardsInterface.PYTHON
self._net_type = BoardsInterface.EXISTING_NETWORK if net_type == BoardsInterface.DEFAULT_CARRIER else net_type
self._carrier_capability = (BoardsInterface.EXISTING_NETWORK,)
self._existing_network_tls_capability = True
self._credentials = super().create_credentials(self._net_type)
self._cert_store_filename = "/etc/ssl/certs/ca-certificates.crt"
def connect(self):
from LiveObjects.services import use_existing_network_connection
super().check_network_capabilities(self._net_type)
use_existing_network_connection()
def get_security_level(self):
return LiveObjects.SSL if self._existing_network_tls_capability else LiveObjects.NONE
def get_store_cert_filename(self):
return self._cert_store_filename
def get_client_id(self):
from LiveObjects.services import get_mac
return self.get_lang_str() + ':' + get_mac()
class BoardsFactory:
def __new__(cls, net_type):
s = sys.platform
sn = s[0].upper() + s[1:] # capitalize first letter
board = eval(sn)(net_type) # instance of board w/ net type: WiFi, LTE, etc.
return board
| 37.336364
| 118
| 0.697468
| 987
| 8,214
| 5.441743
| 0.134752
| 0.066468
| 0.067585
| 0.067771
| 0.80674
| 0.783839
| 0.765593
| 0.753491
| 0.753491
| 0.752746
| 0
| 0.002806
| 0.219016
| 8,214
| 219
| 119
| 37.506849
| 0.834451
| 0.029827
| 0
| 0.676829
| 0
| 0
| 0.027007
| 0.009923
| 0
| 0
| 0
| 0
| 0
| 1
| 0.22561
| false
| 0.054878
| 0.109756
| 0.04878
| 0.54878
| 0.012195
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 9
|
c5d67f3b0c261f2e216e3138e3da5671b090b01e
| 74,464
|
py
|
Python
|
tests/dependencies/test_limiters.py
|
thesadru/Tanjun
|
977eacbd2b0eeafd14a30450aceeb9e329703edd
|
[
"BSD-3-Clause"
] | null | null | null |
tests/dependencies/test_limiters.py
|
thesadru/Tanjun
|
977eacbd2b0eeafd14a30450aceeb9e329703edd
|
[
"BSD-3-Clause"
] | null | null | null |
tests/dependencies/test_limiters.py
|
thesadru/Tanjun
|
977eacbd2b0eeafd14a30450aceeb9e329703edd
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
# cython: language_level=3
# BSD 3-Clause License
#
# Copyright (c) 2020-2022, Faster Speeding
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of the copyright holder nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# pyright: reportUnknownMemberType=none
# pyright: reportPrivateUsage=none
# This leads to too many false-positives around mocks.
import asyncio
import contextlib
import datetime
import time
import typing
from unittest import mock
import hikari
import pytest
import tanjun
from tanjun.context import base as base_context
@pytest.mark.parametrize(
("resource_type", "mock_ctx", "expected"),
[
(tanjun.BucketResource.USER, mock.Mock(author=mock.Mock(id=123321)), 123321),
(tanjun.BucketResource.CHANNEL, mock.Mock(channel_id=43433123), 43433123),
(tanjun.BucketResource.GUILD, mock.Mock(guild_id=65123), 65123),
(tanjun.BucketResource.GUILD, mock.Mock(guild_id=None, channel_id=611223), 611223),
],
)
@pytest.mark.asyncio()
async def test__get_ctx_target(resource_type: tanjun.BucketResource, mock_ctx: tanjun.abc.Context, expected: int):
assert await tanjun.dependencies.limiters._get_ctx_target(mock_ctx, resource_type) == expected
@pytest.mark.parametrize(
("channel", "result"),
[(mock.Mock(parent_id=None, id=123), 123), (mock.Mock(parent_id=54123123, id=123321), 123321)],
)
@pytest.mark.asyncio()
async def test__get_ctx_target_when_parent_channel_and_cache_result(channel: mock.Mock, result: int):
mock_context = mock.Mock()
mock_context.get_channel.return_value = channel
result = await tanjun.dependencies.limiters._get_ctx_target(mock_context, tanjun.BucketResource.PARENT_CHANNEL)
assert result == result
mock_context.get_channel.assert_called_once_with()
mock_context.fetch_channel.assert_not_called()
mock_context.get_type_dependency.assert_not_called()
@pytest.mark.parametrize(
("channel", "result"),
[(mock.Mock(parent_id=None, id=123), 123), (mock.Mock(parent_id=54123123, id=123321), 123321)],
)
@pytest.mark.asyncio()
async def test__get_ctx_target_when_parent_channel_when_async_cache_returns_channel(channel: mock.Mock, result: int):
mock_cache = mock.AsyncMock()
mock_cache.get.return_value = channel
mock_context = mock.Mock(base_context.BaseContext)
mock_context.get_channel.return_value = None
mock_context.get_type_dependency.return_value = mock_cache
result = await tanjun.dependencies.limiters._get_ctx_target(mock_context, tanjun.BucketResource.PARENT_CHANNEL)
assert result == result
mock_context.get_channel.assert_called_once_with()
mock_cache.get.assert_awaited_once_with(mock_context.channel_id, default=None)
mock_context.fetch_channel.assert_not_called()
mock_context.get_type_dependency.assert_called_once_with(tanjun.dependencies.SfCache[hikari.GuildChannel])
@pytest.mark.parametrize(
("channel", "result"),
[
(mock.Mock(hikari.TextableGuildChannel, parent_id=None, id=123), 123),
(mock.Mock(hikari.TextableGuildChannel, parent_id=54123123, id=123321), 123321),
],
)
@pytest.mark.asyncio()
async def test__get_ctx_target_when_parent_channel_when_async_cache_returns_none_falls_back_to_rest(
channel: mock.Mock, result: int
):
mock_context = mock.Mock(base_context.BaseContext)
mock_context.get_channel.return_value = None
mock_context.fetch_channel = mock.AsyncMock(return_value=channel)
mock_cache = mock.AsyncMock()
mock_cache.get.return_value = None
mock_context.get_type_dependency.return_value = mock_cache
result = await tanjun.dependencies.limiters._get_ctx_target(mock_context, tanjun.BucketResource.PARENT_CHANNEL)
assert result == result
mock_context.get_channel.assert_called_once_with()
mock_context.fetch_channel.assert_awaited_once()
mock_context.get_type_dependency.assert_called_once_with(tanjun.dependencies.SfCache[hikari.GuildChannel])
mock_cache.get.assert_awaited_once_with(mock_context.channel_id, default=None)
@pytest.mark.parametrize(
("channel", "result"),
[
(mock.Mock(hikari.TextableGuildChannel, parent_id=None, id=123), 123),
(mock.Mock(hikari.TextableGuildChannel, parent_id=54123123, id=123321), 123321),
],
)
@pytest.mark.asyncio()
async def test__get_ctx_target_when_parent_channel_and_no_async_cache_falls_back_to_rest(
channel: mock.Mock, result: int
):
mock_context = mock.Mock(base_context.BaseContext)
mock_context.get_channel.return_value = None
mock_context.fetch_channel = mock.AsyncMock(return_value=channel)
mock_context.get_type_dependency.return_value = tanjun.injecting.UNDEFINED
result = await tanjun.dependencies.limiters._get_ctx_target(mock_context, tanjun.BucketResource.PARENT_CHANNEL)
assert result == result
mock_context.get_channel.assert_called_once_with()
mock_context.fetch_channel.assert_awaited_once()
mock_context.get_type_dependency.assert_called_once_with(tanjun.dependencies.SfCache[hikari.GuildChannel])
@pytest.mark.asyncio()
async def test__get_ctx_target_when_parent_channel_and_dm_bound():
mock_context = mock.Mock(guild_id=None)
result = await tanjun.dependencies.limiters._get_ctx_target(mock_context, tanjun.BucketResource.PARENT_CHANNEL)
assert result is mock_context.channel_id
@pytest.mark.asyncio()
async def test__get_ctx_target_when_top_role():
mock_roles = [
mock.Mock(id=123321, position=555),
mock.Mock(id=42123, position=56),
mock.Mock(id=4234, position=333),
mock.Mock(id=4354, position=0),
mock.Mock(id=4123, position=11),
]
mock_context = mock.Mock(base_context.BaseContext)
mock_context.member.role_ids = [123, 312]
mock_context.member.get_roles = mock.Mock(return_value=mock_roles)
mock_context.member.fetch_roles = mock.AsyncMock()
assert await tanjun.dependencies.limiters._get_ctx_target(mock_context, tanjun.BucketResource.TOP_ROLE) == 123321
mock_context.member.get_roles.assert_called_once_with()
mock_context.member.fetch_roles.assert_not_called()
mock_context.get_type_dependency.assert_not_called()
@pytest.mark.asyncio()
async def test__get_ctx_target_when_top_role_and_async_cache():
mock_context = mock.Mock(base_context.BaseContext)
mock_context.member.role_ids = [674345, 123876, 7643, 9999999]
mock_context.member.get_roles = mock.Mock(return_value=[])
mock_cache = mock.AsyncMock()
mock_cache.get.side_effect = [
mock.Mock(position=42),
mock.Mock(id=994949, position=7634),
tanjun.dependencies.EntryNotFound,
mock.Mock(position=23),
]
mock_context.get_type_dependency.return_value = mock_cache
assert await tanjun.dependencies.limiters._get_ctx_target(mock_context, tanjun.BucketResource.TOP_ROLE) == 994949
mock_context.member.get_roles.assert_called_once_with()
mock_context.member.fetch_roles.assert_not_called()
mock_context.get_type_dependency.assert_called_once_with(tanjun.dependencies.SfCache[hikari.Role])
mock_cache.get.assert_has_awaits([mock.call(674345), mock.call(123876), mock.call(7643), mock.call(9999999)])
@pytest.mark.asyncio()
async def test__get_ctx_target_when_top_role_falls_back_to_rest_when_async_cache_raises_cache_miss():
mock_roles = [
mock.Mock(id=123321, position=42),
mock.Mock(id=123322, position=43),
mock.Mock(id=431, position=6969),
mock.Mock(id=111, position=0),
mock.Mock(id=4123, position=6959),
]
mock_context = mock.Mock(base_context.BaseContext)
mock_context.member.role_ids = [123, 312, 654]
mock_context.member.get_roles = mock.Mock(return_value=[])
mock_context.member.fetch_roles = mock.AsyncMock(return_value=mock_roles)
mock_cache = mock.AsyncMock()
mock_cache.get.side_effect = [mock.Mock(), tanjun.dependencies.CacheMissError]
mock_context.get_type_dependency.return_value = mock_cache
assert await tanjun.dependencies.limiters._get_ctx_target(mock_context, tanjun.BucketResource.TOP_ROLE) == 431
mock_context.member.get_roles.assert_called_once_with()
mock_context.member.fetch_roles.assert_awaited_once_with()
mock_context.get_type_dependency.assert_called_once_with(tanjun.dependencies.SfCache[hikari.Role])
mock_cache.get.assert_has_awaits([mock.call(123), mock.call(312)])
@pytest.mark.asyncio()
async def test__get_ctx_target_when_top_role_falls_back_to_rest():
mock_roles = [
mock.Mock(id=123321, position=42),
mock.Mock(id=123322, position=43),
mock.Mock(id=431, position=6969),
mock.Mock(id=111, position=0),
mock.Mock(id=4123, position=6959),
]
mock_context = mock.Mock(base_context.BaseContext)
mock_context.member.role_ids = [123, 312]
mock_context.member.get_roles = mock.Mock(return_value=[])
mock_context.member.fetch_roles = mock.AsyncMock(return_value=mock_roles)
mock_context.get_type_dependency.return_value = tanjun.injecting.UNDEFINED
assert await tanjun.dependencies.limiters._get_ctx_target(mock_context, tanjun.BucketResource.TOP_ROLE) == 431
mock_context.member.get_roles.assert_called_once_with()
mock_context.member.fetch_roles.assert_awaited_once_with()
mock_context.get_type_dependency.assert_called_once_with(tanjun.dependencies.SfCache[hikari.Role])
@pytest.mark.asyncio()
async def test__get_ctx_target_when_top_role_when_dm_bound():
mock_context = mock.Mock(guild_id=None)
result = await tanjun.dependencies.limiters._get_ctx_target(mock_context, tanjun.BucketResource.TOP_ROLE)
assert result is mock_context.channel_id
@pytest.mark.asyncio()
async def test__get_ctx_target_when_top_role_when_no_member_in_guild():
mock_context = mock.Mock(guild_id=654124, member=None)
result = await tanjun.dependencies.limiters._get_ctx_target(mock_context, tanjun.BucketResource.TOP_ROLE)
assert result == 654124
mock_context.get_type_dependency.assert_not_called()
@pytest.mark.parametrize("role_ids", [[123321], []])
@pytest.mark.asyncio()
async def test__get_ctx_target_when_top_role_when_no_roles_or_only_1_role(role_ids: list[int]):
mock_context = mock.Mock(guild_id=123312)
mock_context.member.role_ids = role_ids
result = await tanjun.dependencies.limiters._get_ctx_target(mock_context, tanjun.BucketResource.TOP_ROLE)
assert result == 123312
mock_context.get_type_dependency.assert_not_called()
@pytest.mark.asyncio()
async def test__get_ctx_target_when_unexpected_type():
with pytest.raises(ValueError, match="Unexpected type 1"):
await tanjun.dependencies.limiters._get_ctx_target(mock.Mock(), tanjun.BucketResource.MEMBER)
class Test_Cooldown:
def test_has_expired_property(self):
with mock.patch.object(time, "monotonic", side_effect=[69.0, 72.0]):
cooldown = tanjun.dependencies.limiters._Cooldown(limit=1, reset_after=60.0)
assert cooldown.has_expired() is False
def test_has_expired_property_when_has_expired(self):
with mock.patch.object(time, "monotonic", side_effect=[69.0, 96.0]):
cooldown = tanjun.dependencies.limiters._Cooldown(limit=1, reset_after=26.5)
assert cooldown.has_expired() is True
def test_increment(self):
with mock.patch.object(time, "monotonic", side_effect=[50.0, 55.0]):
cooldown = tanjun.dependencies.limiters._Cooldown(limit=5, reset_after=69.420)
cooldown.counter = 2
cooldown.increment()
assert cooldown.counter == 3
assert cooldown.resets_at == 119.420
def test_increment_when_counter_is_0(self):
with mock.patch.object(time, "monotonic", side_effect=[419.0, 420.0]):
cooldown = tanjun.dependencies.limiters._Cooldown(limit=5, reset_after=69.00)
cooldown.increment()
assert cooldown.counter == 1
assert cooldown.resets_at == 489.00
def test_increment_when_counter_is_at_limit(self):
with mock.patch.object(time, "monotonic", side_effect=[419.0, 420.0]):
cooldown = tanjun.dependencies.limiters._Cooldown(limit=5, reset_after=69.00)
cooldown.counter = 5
cooldown.increment()
assert cooldown.counter == 5
assert cooldown.resets_at == 488.00
def test_increment_when_passed_reset_after(self):
with mock.patch.object(time, "monotonic", side_effect=[419.0, 422.5]):
cooldown = tanjun.dependencies.limiters._Cooldown(limit=5, reset_after=2.0)
cooldown.counter = 2
cooldown.increment()
assert cooldown.counter == 1
assert cooldown.resets_at == 424.5
def test_increment_when_limit_is_negeative_1(self):
cooldown = tanjun.dependencies.limiters._Cooldown(limit=-1, reset_after=-1)
cooldown.resets_at = 54345543
cooldown.counter = 123
with mock.patch.object(time, "monotonic") as monotonic:
result = cooldown.increment()
monotonic.assert_not_called()
assert result is cooldown
assert cooldown.counter == 123
assert cooldown.resets_at == 54345543
def test_must_wait_for(self):
with mock.patch.object(time, "monotonic", side_effect=[419.0, 422.0]):
cooldown = tanjun.dependencies.limiters._Cooldown(reset_after=10.5, limit=3)
cooldown.counter = 3
assert cooldown.must_wait_for() == 7.5
def test_must_wait_for_when_resource_limit_not_hit(self):
cooldown = tanjun.dependencies.limiters._Cooldown(reset_after=2.0, limit=3)
cooldown.counter = 2
assert cooldown.must_wait_for() is None
def test_must_wait_for_when_reset_after_reached(self):
with mock.patch.object(time, "monotonic", side_effect=[419.0, 425.5]):
cooldown = tanjun.dependencies.limiters._Cooldown(reset_after=5.0, limit=3)
cooldown.counter = 3
assert cooldown.must_wait_for() is None
def test_must_wait_for_when_limit_is_negative_1(self):
cooldown = tanjun.dependencies.limiters._Cooldown(reset_after=64, limit=-1)
cooldown.counter = 55
with mock.patch.object(time, "monotonic") as monotonic:
assert cooldown.must_wait_for() is None
monotonic.assert_not_called()
class Test_FlatResource:
@pytest.mark.asyncio()
async def test_try_into_inner(self):
mock_resource_maker = mock.Mock()
mock_resource = mock.Mock()
bucket = tanjun.dependencies.limiters._FlatResource(tanjun.BucketResource.USER, mock_resource_maker)
bucket.mapping[hikari.Snowflake(321123)] = mock_resource
mock_context = mock.Mock()
mock_context.author.id = hikari.Snowflake(321123)
result = await bucket.try_into_inner(mock_context)
assert result is mock_resource
mock_resource_maker.assert_not_called()
assert bucket.mapping[hikari.Snowflake(321123)] is mock_resource
@pytest.mark.asyncio()
async def test_try_into_inner_when_resource_doesnt_exist(self):
mock_resource_maker = mock.Mock()
bucket = tanjun.dependencies.limiters._FlatResource(tanjun.BucketResource.USER, mock_resource_maker)
mock_context = mock.Mock()
mock_context.author.id = hikari.Snowflake(123321)
result = await bucket.try_into_inner(mock_context)
assert result is None
mock_resource_maker.assert_not_called()
assert hikari.Snowflake(123321) not in bucket.mapping
@pytest.mark.asyncio()
async def test_into_inner(self):
mock_resource_maker = mock.Mock()
mock_resource = mock.Mock()
bucket = tanjun.dependencies.limiters._FlatResource(tanjun.BucketResource.USER, mock_resource_maker)
bucket.mapping[hikari.Snowflake(3333)] = mock_resource
mock_context = mock.Mock()
mock_context.author.id = hikari.Snowflake(3333)
result = await bucket.into_inner(mock_context)
assert result is mock_resource
mock_resource_maker.assert_not_called()
assert bucket.mapping[hikari.Snowflake(3333)] is mock_resource
@pytest.mark.asyncio()
async def test_into_inner_creates_new_resource(self):
mock_resource_maker = mock.Mock()
bucket = tanjun.dependencies.limiters._FlatResource(tanjun.BucketResource.USER, mock_resource_maker)
mock_context = mock.Mock()
mock_context.author.id = hikari.Snowflake(123)
result = await bucket.into_inner(mock_context)
assert result is mock_resource_maker.return_value
mock_resource_maker.assert_called_once_with()
assert bucket.mapping[hikari.Snowflake(123)] is mock_resource_maker.return_value
def test_cleanup(self):
mock_cooldown_1 = mock.Mock(has_expired=mock.Mock(return_value=False))
mock_cooldown_2 = mock.Mock(has_expired=mock.Mock(return_value=False))
mock_cooldown_3 = mock.Mock(has_expired=mock.Mock(return_value=False))
bucket = tanjun.dependencies.limiters._FlatResource(tanjun.BucketResource.USER, mock.Mock())
bucket.mapping = {
hikari.Snowflake(123312): mock_cooldown_1,
hikari.Snowflake(4321123): mock.Mock(has_expired=mock.Mock(return_value=True)),
hikari.Snowflake(54123): mock_cooldown_2,
hikari.Snowflake(222): mock.Mock(has_expired=mock.Mock(return_value=True)),
hikari.Snowflake(654124): mock_cooldown_3,
hikari.Snowflake(123321): mock.Mock(has_expired=mock.Mock(return_value=True)),
}
bucket.cleanup()
assert bucket.mapping == {
hikari.Snowflake(123312): mock_cooldown_1,
hikari.Snowflake(54123): mock_cooldown_2,
hikari.Snowflake(654124): mock_cooldown_3,
}
def test_copy(self):
mock_resource_maker = mock.Mock()
bucket = tanjun.dependencies.limiters._FlatResource(tanjun.BucketResource.PARENT_CHANNEL, mock_resource_maker)
bucket.mapping[hikari.Snowflake(321123)] = mock.Mock()
new_bucket = bucket.copy()
assert new_bucket is not bucket
assert new_bucket.resource is bucket.resource
assert new_bucket.make_resource is mock_resource_maker
assert new_bucket.mapping == {}
class Test_MemberResource:
@pytest.mark.asyncio()
async def test_into_inner(self) -> None:
mock_resource_maker = mock.Mock()
mock_resource = mock.Mock()
bucket = tanjun.dependencies.limiters._MemberResource(mock_resource_maker)
bucket.mapping[hikari.Snowflake(654123)] = {hikari.Snowflake(3333): mock_resource}
mock_context = mock.Mock(guild_id=hikari.Snowflake(654123))
mock_context.author.id = hikari.Snowflake(3333)
result = await bucket.into_inner(mock_context)
assert result is mock_resource
mock_resource_maker.assert_not_called()
assert bucket.mapping[hikari.Snowflake(654123)] == {hikari.Snowflake(3333): mock_resource}
@pytest.mark.asyncio()
async def test_into_inner_when_member_not_found(self) -> None:
mock_resource_maker = mock.Mock()
bucket = tanjun.dependencies.limiters._MemberResource(mock_resource_maker)
bucket.mapping[hikari.Snowflake(65234234)] = {hikari.Snowflake(123321): mock.Mock()}
mock_context = mock.Mock(guild_id=hikari.Snowflake(65234234))
mock_context.author.id = hikari.Snowflake(123542)
result = await bucket.into_inner(mock_context)
assert result is mock_resource_maker.return_value
mock_resource_maker.assert_called_once_with()
assert bucket.mapping[hikari.Snowflake(65234234)][hikari.Snowflake(123542)] is mock_resource_maker.return_value
@pytest.mark.asyncio()
async def test_into_inner_when_guild_not_found(self) -> None:
mock_resource_maker = mock.Mock()
bucket = tanjun.dependencies.limiters._MemberResource(mock_resource_maker)
mock_context = mock.Mock(guild_id=hikari.Snowflake(123123))
mock_context.author.id = hikari.Snowflake(32212)
result = await bucket.into_inner(mock_context)
assert result is mock_resource_maker.return_value
mock_resource_maker.assert_called_once_with()
assert bucket.mapping[hikari.Snowflake(123123)] == {hikari.Snowflake(32212): mock_resource_maker.return_value}
@pytest.mark.asyncio()
async def test_into_inner_when_dm_bound(self) -> None:
mock_resource_maker = mock.Mock()
mock_resource = mock.Mock()
bucket = tanjun.dependencies.limiters._MemberResource(mock_resource_maker)
bucket.dm_fallback[hikari.Snowflake(1233214)] = mock_resource
mock_context = mock.Mock(guild_id=None, channel_id=hikari.Snowflake(1233214))
result = await bucket.into_inner(mock_context)
assert result is mock_resource
mock_resource_maker.assert_not_called()
assert bucket.dm_fallback[hikari.Snowflake(1233214)] is mock_resource
@pytest.mark.asyncio()
async def test_into_inner_when_dm_bound_and_user_not_found(self) -> None:
mock_resource_maker = mock.Mock()
bucket = tanjun.dependencies.limiters._MemberResource(mock_resource_maker)
mock_context = mock.Mock(guild_id=None, channel_id=hikari.Snowflake(123312))
result = await bucket.into_inner(mock_context)
assert result is mock_resource_maker.return_value
mock_resource_maker.assert_called_once_with()
assert bucket.dm_fallback[hikari.Snowflake(123312)] is mock_resource_maker.return_value
@pytest.mark.asyncio()
async def test_try_into_inner(self) -> None:
mock_resource_maker = mock.Mock()
mock_resource = mock.Mock()
bucket = tanjun.dependencies.limiters._MemberResource(mock_resource_maker)
bucket.mapping[hikari.Snowflake(222222)] = {hikari.Snowflake(666666): mock_resource}
mock_context = mock.Mock(guild_id=hikari.Snowflake(222222))
mock_context.author.id = hikari.Snowflake(666666)
result = await bucket.try_into_inner(mock_context)
assert result is mock_resource
mock_resource_maker.assert_not_called()
assert bucket.mapping[hikari.Snowflake(222222)] == {hikari.Snowflake(666666): mock_resource}
@pytest.mark.asyncio()
async def test_try_into_inner_when_member_not_found(self) -> None:
mock_resource_maker = mock.Mock()
bucket = tanjun.dependencies.limiters._MemberResource(mock_resource_maker)
bucket.mapping[hikari.Snowflake(652134)] = {hikari.Snowflake(123321): mock.Mock()}
mock_context = mock.Mock(guild_id=hikari.Snowflake(652134))
mock_context.author.id = hikari.Snowflake(43213)
result = await bucket.try_into_inner(mock_context)
assert result is None
mock_resource_maker.assert_not_called()
assert hikari.Snowflake(43213) not in bucket.mapping[hikari.Snowflake(652134)]
@pytest.mark.asyncio()
async def test_try_into_inner_when_guild_not_found(self) -> None:
mock_resource_maker = mock.Mock()
bucket = tanjun.dependencies.limiters._MemberResource(mock_resource_maker)
mock_context = mock.Mock(guild_id=hikari.Snowflake(4234))
mock_context.author.id = hikari.Snowflake(123321)
result = await bucket.try_into_inner(mock_context)
assert result is None
mock_resource_maker.assert_not_called()
assert hikari.Snowflake(4234) not in bucket.mapping
@pytest.mark.asyncio()
async def test_try_into_inner_when_dm_bound(self) -> None:
mock_resource_maker = mock.Mock()
mock_resource = mock.Mock()
bucket = tanjun.dependencies.limiters._MemberResource(mock_resource_maker)
bucket.dm_fallback[hikari.Snowflake(76345)] = mock_resource
mock_context = mock.Mock(guild_id=None, channel_id=hikari.Snowflake(76345))
result = await bucket.try_into_inner(mock_context)
assert result is mock_resource
mock_resource_maker.assert_not_called()
assert bucket.dm_fallback[hikari.Snowflake(76345)] is mock_resource
@pytest.mark.asyncio()
async def test_try_into_inner_when_dm_bound_and_user_not_found(self) -> None:
mock_resource_maker = mock.Mock()
bucket = tanjun.dependencies.limiters._MemberResource(mock_resource_maker)
mock_context = mock.Mock(guild_id=None, channel_id=hikari.Snowflake(555555))
result = await bucket.try_into_inner(mock_context)
assert result is None
mock_resource_maker.assert_not_called()
assert hikari.Snowflake(555555) not in bucket.dm_fallback
def test_cleanup(self):
mock_cooldown_1 = mock.Mock(has_expired=mock.Mock(return_value=False))
mock_cooldown_2 = mock.Mock(has_expired=mock.Mock(return_value=False))
mock_cooldown_3 = mock.Mock(has_expired=mock.Mock(return_value=False))
mock_dm_cooldown_1 = mock.Mock(has_expired=mock.Mock(return_value=False))
mock_dm_cooldown_2 = mock.Mock(has_expired=mock.Mock(return_value=False))
mock_dm_cooldown_3 = mock.Mock(has_expired=mock.Mock(return_value=False))
bucket = tanjun.dependencies.limiters._MemberResource(mock.Mock())
bucket.mapping = {
hikari.Snowflake(54123): {
hikari.Snowflake(123312): mock_cooldown_1,
hikari.Snowflake(4321123): mock.Mock(has_expired=mock.Mock(return_value=True)),
hikari.Snowflake(54123): mock_cooldown_2,
},
hikari.Snowflake(666): {
hikari.Snowflake(4321123): mock.Mock(has_expired=mock.Mock(return_value=True)),
},
hikari.Snowflake(6512312): {
hikari.Snowflake(222): mock.Mock(has_expired=mock.Mock(return_value=True)),
hikari.Snowflake(654124): mock_cooldown_3,
hikari.Snowflake(123321): mock.Mock(has_expired=mock.Mock(return_value=True)),
},
}
bucket.dm_fallback = {
hikari.Snowflake(231123): mock.Mock(has_expired=mock.Mock(return_value=True)),
hikari.Snowflake(696969): mock_dm_cooldown_1,
hikari.Snowflake(3214312): mock.Mock(has_expired=mock.Mock(return_value=True)),
hikari.Snowflake(969696): mock_dm_cooldown_2,
hikari.Snowflake(123321123): mock.Mock(has_expired=mock.Mock(return_value=True)),
hikari.Snowflake(42069): mock_dm_cooldown_3,
}
bucket.cleanup()
assert bucket.mapping == {
hikari.Snowflake(54123): {
hikari.Snowflake(123312): mock_cooldown_1,
hikari.Snowflake(54123): mock_cooldown_2,
},
hikari.Snowflake(6512312): {hikari.Snowflake(654124): mock_cooldown_3},
}
assert bucket.dm_fallback == {
hikari.Snowflake(696969): mock_dm_cooldown_1,
hikari.Snowflake(969696): mock_dm_cooldown_2,
hikari.Snowflake(42069): mock_dm_cooldown_3,
}
def test_copy(self):
mock_resource_maker = mock.Mock()
bucket = tanjun.dependencies.limiters._MemberResource(mock_resource_maker)
bucket.mapping[hikari.Snowflake(321123)] = mock.Mock()
bucket.dm_fallback[hikari.Snowflake(541123)] = mock.Mock()
new_bucket = bucket.copy()
assert new_bucket is not bucket
assert new_bucket.make_resource is mock_resource_maker
assert new_bucket.mapping == {}
assert new_bucket.dm_fallback == {}
class Test_GlobalResource:
@pytest.mark.asyncio()
async def test_into_inner(self):
mock_resource_maker = mock.Mock()
bucket = tanjun.dependencies.limiters._GlobalResource(mock_resource_maker)
assert await bucket.into_inner(mock.Mock()) is mock_resource_maker.return_value
assert await bucket.into_inner(mock.Mock()) is mock_resource_maker.return_value
mock_resource_maker.assert_called_once_with()
@pytest.mark.asyncio()
async def test_try_into_inner(self):
mock_resource_maker = mock.Mock()
bucket = tanjun.dependencies.limiters._GlobalResource(mock_resource_maker)
assert await bucket.try_into_inner(mock.Mock()) is mock_resource_maker.return_value
assert await bucket.try_into_inner(mock.Mock()) is mock_resource_maker.return_value
mock_resource_maker.assert_called_once_with()
def test_cleanup(self):
tanjun.dependencies.limiters._GlobalResource(mock.Mock()).cleanup()
def test_copy(self):
mock_resource_1 = mock.Mock()
mock_resource_2 = mock.Mock()
mock_resource_maker = mock.Mock(side_effect=[mock_resource_1, mock_resource_2])
bucket = tanjun.dependencies.limiters._GlobalResource(mock_resource_maker)
bucket.bucket.increment()
new_bucket = bucket.copy()
assert new_bucket is not bucket
assert new_bucket.make_resource is mock_resource_maker
assert new_bucket.bucket is mock_resource_2
assert new_bucket.make_resource is mock_resource_maker
mock_resource_maker.assert_has_calls([mock.call(), mock.call()])
assert bucket.bucket is mock_resource_1
class TestInMemoryCooldownManager:
@pytest.mark.asyncio()
async def test__gc(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
mock_bucket_1 = mock.Mock()
mock_bucket_2 = mock.Mock()
mock_bucket_3 = mock.Mock()
manager._buckets = {"e": mock_bucket_1, "a": mock_bucket_2, "f": mock_bucket_3}
mock_error = Exception("test")
with mock.patch.object(asyncio, "sleep", side_effect=[None, None, mock_error]) as sleep:
with pytest.raises(Exception) as exc_info: # noqa: PT011, PT012
await asyncio.wait_for(manager._gc(), timeout=0.5)
assert exc_info.value is mock_error
sleep.assert_has_awaits([mock.call(10), mock.call(10), mock.call(10)])
mock_bucket_1.cleanup.assert_has_calls([mock.call(), mock.call()])
mock_bucket_2.cleanup.assert_has_calls([mock.call(), mock.call()])
mock_bucket_3.cleanup.assert_has_calls([mock.call(), mock.call()])
def test_add_to_client(self):
mock_client = mock.Mock(tanjun.Client, is_alive=False)
mock_open = mock.Mock()
class StubManager(tanjun.dependencies.InMemoryCooldownManager):
open = mock_open
manager = StubManager()
manager.add_to_client(mock_client)
mock_client.add_client_callback.assert_has_calls(
[
mock.call(tanjun.abc.ClientCallbackNames.STARTING, manager.open),
mock.call(tanjun.abc.ClientCallbackNames.CLOSING, manager.close),
]
)
mock_open.assert_not_called()
def test_add_to_client_when_client_is_active(self):
mock_client = mock.Mock(tanjun.Client, is_alive=True)
mock_open = mock.Mock()
class StubManager(tanjun.dependencies.InMemoryCooldownManager):
open = mock_open
manager = StubManager()
manager.add_to_client(mock_client)
mock_client.add_client_callback.assert_has_calls(
[
mock.call(tanjun.abc.ClientCallbackNames.STARTING, manager.open),
mock.call(tanjun.abc.ClientCallbackNames.CLOSING, manager.close),
]
)
mock_open.assert_called_once_with(_loop=mock_client.loop)
@pytest.mark.asyncio()
async def test_check_cooldown(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
mock_context = mock.Mock()
mock_bucket = mock.Mock(try_into_inner=mock.AsyncMock(return_value=mock.Mock()))
mock_inner: typing.Any = mock_bucket.try_into_inner.return_value
manager._buckets["ok"] = mock_bucket
result = await manager.check_cooldown("ok", mock_context, increment=False)
assert result is mock_bucket.try_into_inner.return_value.must_wait_for.return_value
mock_bucket.try_into_inner.assert_awaited_once_with(mock_context)
mock_inner.must_wait_for.assert_called_once_with()
@pytest.mark.asyncio()
async def test_check_cooldown_when_try_into_inner_returns_none(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
mock_context = mock.Mock()
mock_bucket = mock.Mock(try_into_inner=mock.AsyncMock(return_value=None))
manager._buckets["ok"] = mock_bucket
result = await manager.check_cooldown("ok", mock_context, increment=False)
assert result is None
mock_bucket.try_into_inner.assert_awaited_once_with(mock_context)
@pytest.mark.asyncio()
async def test_check_cooldown_when_increment(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
mock_context = mock.Mock()
mock_bucket = mock.Mock(into_inner=mock.AsyncMock(return_value=mock.Mock()))
mock_inner: typing.Any = mock_bucket.into_inner.return_value
mock_inner.increment.return_value = mock_bucket.into_inner.return_value
mock_inner.must_wait_for.return_value = None
manager._buckets["ok"] = mock_bucket
result = await manager.check_cooldown("ok", mock_context, increment=True)
assert result is None
mock_bucket.into_inner.assert_awaited_once_with(mock_context)
mock_inner.increment.assert_called_once_with()
mock_inner.must_wait_for.assert_called_once_with()
@pytest.mark.asyncio()
async def test_check_cooldown_when_increment_and_must_wait_for_returns_time(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
mock_context = mock.Mock()
mock_bucket = mock.Mock(into_inner=mock.AsyncMock(return_value=mock.Mock()))
mock_inner: typing.Any = mock_bucket.into_inner.return_value
mock_inner.increment.return_value = mock_inner
manager._buckets["ok"] = mock_bucket
result = await manager.check_cooldown("ok", mock_context, increment=True)
assert result is mock_inner.must_wait_for.return_value
mock_bucket.into_inner.assert_awaited_once_with(mock_context)
mock_inner.increment.assert_not_called()
mock_inner.must_wait_for.assert_called_once_with()
@pytest.mark.asyncio()
async def test_check_cooldown_falls_back_to_default_when_increment_creates_new_bucket(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
mock_context = mock.Mock()
mock_bucket = mock.Mock()
mock_bucket.copy.return_value = mock.Mock(into_inner=mock.AsyncMock(return_value=mock.Mock()))
mock_inner: typing.Any = mock_bucket.copy.return_value.into_inner.return_value
mock_inner.increment.return_value = mock_inner
mock_inner.must_wait_for.return_value = None
manager._default_bucket_template = mock_bucket
result = await manager.check_cooldown("ok", mock_context, increment=True)
assert result is None
assert manager._buckets["ok"] is mock_bucket.copy.return_value
mock_bucket.copy.assert_called_once_with()
mock_bucket.copy.return_value.into_inner.assert_awaited_once_with(mock_context)
mock_inner.increment.assert_called_once_with()
mock_inner.must_wait_for.assert_called_once_with()
@pytest.mark.asyncio()
async def test_check_cooldown_falls_back_to_default_when_increment_creates_new_bucket_when_wait_for_returns_time(
self,
):
manager = tanjun.dependencies.InMemoryCooldownManager()
mock_context = mock.Mock()
mock_bucket = mock.Mock()
mock_bucket.copy.return_value = mock.Mock(into_inner=mock.AsyncMock(return_value=mock.Mock()))
mock_inner: typing.Any = mock_bucket.copy.return_value.into_inner.return_value
mock_inner.increment.return_value = mock_inner
manager._default_bucket_template = mock_bucket
result = await manager.check_cooldown("ok", mock_context, increment=True)
assert result is mock_inner.must_wait_for.return_value
assert manager._buckets["ok"] is mock_bucket.copy.return_value
mock_bucket.copy.assert_called_once_with()
mock_bucket.copy.return_value.into_inner.assert_awaited_once_with(mock_context)
mock_inner.increment.assert_not_called()
mock_inner.must_wait_for.assert_called_once_with()
@pytest.mark.asyncio()
async def test_increment_cooldown(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
mock_context = mock.Mock()
mock_bucket = mock.Mock(into_inner=mock.AsyncMock(return_value=mock.Mock()))
mock_inner: typing.Any = mock_bucket.into_inner.return_value
manager._buckets["catgirl neko"] = mock_bucket
result = await manager.increment_cooldown("catgirl neko", mock_context)
assert result is None
mock_bucket.into_inner.assert_awaited_once_with(mock_context)
mock_inner.increment.assert_called_once_with()
@pytest.mark.asyncio()
async def test_increment_cooldown_falls_back_to_default(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
mock_context = mock.Mock()
mock_bucket = mock.Mock()
mock_bucket.copy.return_value.into_inner = mock.AsyncMock(return_value=mock.Mock())
mock_inner = mock_bucket.copy.return_value.into_inner.return_value
manager._default_bucket_template = mock_bucket
result = await manager.increment_cooldown("69", mock_context)
assert result is None
assert manager._buckets["69"] is mock_bucket.copy.return_value
mock_bucket.copy.assert_called_once_with()
mock_bucket.copy.return_value.into_inner.assert_awaited_once_with(mock_context)
mock_inner.increment.assert_called_once_with()
def test_close(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
mock_gc_task = mock.Mock()
manager._gc_task = mock_gc_task
manager.close()
mock_gc_task.cancel.assert_called_once_with()
def test_close_when_not_active(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
with pytest.raises(RuntimeError, match="Cooldown manager is not active"):
manager.close()
def test_open(self):
mock_gc = mock.Mock()
class StubManager(tanjun.dependencies.InMemoryCooldownManager):
_gc = mock_gc
manager = StubManager()
with mock.patch.object(asyncio, "get_running_loop") as get_running_loop:
manager.open()
assert manager._gc_task is get_running_loop.return_value.create_task.return_value
get_running_loop.assert_called_once_with()
get_running_loop.return_value.create_task.assert_called_once_with(mock_gc.return_value)
mock_gc.assert_called_once_with()
def test_open_with_passed_through_loop(self):
mock_gc = mock.Mock()
mock_loop = mock.Mock()
class StubManager(tanjun.dependencies.InMemoryCooldownManager):
_gc = mock_gc
manager = StubManager()
manager.open(_loop=mock_loop)
assert manager._gc_task is mock_loop.create_task.return_value
mock_loop.create_task.assert_called_once_with(mock_gc.return_value)
mock_gc.assert_called_once_with()
def test_open_when_already_active(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
manager._gc_task = mock.Mock()
with pytest.raises(RuntimeError, match="Cooldown manager is already running"):
manager.open()
def test_disable_bucket(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
default_bucket = manager._default_bucket_template
with mock.patch.object(tanjun.dependencies.limiters, "_GlobalResource") as cooldown_bucket:
result = manager.disable_bucket("kitten")
assert result is manager
assert manager._buckets["kitten"] is cooldown_bucket.return_value
assert manager._default_bucket_template is default_bucket
cooldown_bucket.return_value.copy.assert_not_called()
assert cooldown_bucket.call_count == 1
assert len(cooldown_bucket.call_args.args) == 1
assert len(cooldown_bucket.call_args.kwargs) == 0
cooldown_maker = cooldown_bucket.call_args.args[0]
cooldown = cooldown_maker()
assert isinstance(cooldown, tanjun.dependencies.limiters._Cooldown)
assert cooldown.limit == -1
assert cooldown.reset_after == -1
def test_disable_bucket_when_is_default(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
with mock.patch.object(tanjun.dependencies.limiters, "_GlobalResource") as cooldown_bucket:
result = manager.disable_bucket("default")
assert result is manager
assert manager._buckets["default"] is cooldown_bucket.return_value
assert manager._default_bucket_template is cooldown_bucket.return_value.copy.return_value
cooldown_bucket.return_value.copy.assert_called_once_with()
assert cooldown_bucket.call_count == 1
assert len(cooldown_bucket.call_args.args) == 1
assert len(cooldown_bucket.call_args.kwargs) == 0
cooldown_maker = cooldown_bucket.call_args.args[0]
cooldown = cooldown_maker()
assert isinstance(cooldown, tanjun.dependencies.limiters._Cooldown)
assert cooldown.limit == -1
assert cooldown.reset_after == -1
@pytest.mark.parametrize(
"resource_type",
[
tanjun.BucketResource.USER,
tanjun.BucketResource.CHANNEL,
tanjun.BucketResource.PARENT_CHANNEL,
tanjun.BucketResource.TOP_ROLE,
tanjun.BucketResource.GUILD,
],
)
def test_set_bucket(self, resource_type: tanjun.BucketResource):
manager = tanjun.dependencies.InMemoryCooldownManager()
default_bucket = manager._default_bucket_template
with mock.patch.object(tanjun.dependencies.limiters, "_FlatResource") as cooldown_bucket:
result = manager.set_bucket("gay catgirl", resource_type, 123, 43.123)
assert result is manager
assert manager._buckets["gay catgirl"] is cooldown_bucket.return_value
assert manager._default_bucket_template is default_bucket
cooldown_bucket.return_value.copy.assert_not_called()
assert cooldown_bucket.call_count == 1
assert len(cooldown_bucket.call_args.args) == 2
assert len(cooldown_bucket.call_args.kwargs) == 0
assert cooldown_bucket.call_args.args[0] is resource_type
cooldown_maker = cooldown_bucket.call_args.args[1]
cooldown = cooldown_maker()
assert isinstance(cooldown, tanjun.dependencies.limiters._Cooldown)
assert cooldown.limit == 123
assert cooldown.reset_after == 43.123
@pytest.mark.parametrize("reset_after", [datetime.timedelta(seconds=69), 69, 69.0])
def test_set_bucket_handles_different_reset_after_types(
self, reset_after: typing.Union[datetime.timedelta, int, float]
):
manager = tanjun.dependencies.InMemoryCooldownManager()
with mock.patch.object(tanjun.dependencies.limiters, "_FlatResource") as cooldown_bucket:
result = manager.set_bucket("gay catgirl", tanjun.BucketResource.USER, 444, reset_after)
assert result is manager
assert manager._buckets["gay catgirl"] is cooldown_bucket.return_value
assert cooldown_bucket.call_count == 1
assert len(cooldown_bucket.call_args.args) == 2
assert len(cooldown_bucket.call_args.kwargs) == 0
assert cooldown_bucket.call_args.args[0] is tanjun.BucketResource.USER
cooldown_maker = cooldown_bucket.call_args.args[1]
cooldown = cooldown_maker()
assert isinstance(cooldown, tanjun.dependencies.limiters._Cooldown)
assert cooldown.limit == 444
assert cooldown.reset_after == 69
def test_set_bucket_for_member_resource(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
with mock.patch.object(tanjun.dependencies.limiters, "_MemberResource") as cooldown_bucket:
result = manager.set_bucket("meowth", tanjun.BucketResource.MEMBER, 64, 42.0)
assert result is manager
assert manager._buckets["meowth"] is cooldown_bucket.return_value
assert cooldown_bucket.call_count == 1
assert len(cooldown_bucket.call_args.args) == 1
assert len(cooldown_bucket.call_args.kwargs) == 0
cooldown_maker = cooldown_bucket.call_args.args[0]
cooldown = cooldown_maker()
assert isinstance(cooldown, tanjun.dependencies.limiters._Cooldown)
assert cooldown.limit == 64
assert cooldown.reset_after == 42.0
def test_set_bucket_for_global_resource(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
with mock.patch.object(tanjun.dependencies.limiters, "_GlobalResource") as cooldown_bucket:
result = manager.set_bucket("meow", tanjun.BucketResource.GLOBAL, 420, 69.420)
assert result is manager
assert manager._buckets["meow"] is cooldown_bucket.return_value
assert cooldown_bucket.call_count == 1
assert len(cooldown_bucket.call_args.args) == 1
assert len(cooldown_bucket.call_args.kwargs) == 0
cooldown_maker = cooldown_bucket.call_args.args[0]
cooldown = cooldown_maker()
assert isinstance(cooldown, tanjun.dependencies.limiters._Cooldown)
assert cooldown.limit == 420
assert cooldown.reset_after == 69.420
def test_set_bucket_when_is_default(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
with mock.patch.object(tanjun.dependencies.limiters, "_FlatResource") as cooldown_bucket:
result = manager.set_bucket("default", tanjun.BucketResource.USER, 777, 666.0)
assert result is manager
assert manager._buckets["default"] is cooldown_bucket.return_value
assert manager._default_bucket_template is cooldown_bucket.return_value.copy.return_value
cooldown_bucket.return_value.copy.assert_called_once_with()
assert cooldown_bucket.call_count == 1
assert len(cooldown_bucket.call_args.args) == 2
assert len(cooldown_bucket.call_args.kwargs) == 0
assert cooldown_bucket.call_args.args[0] is tanjun.BucketResource.USER
cooldown_maker = cooldown_bucket.call_args.args[1]
cooldown = cooldown_maker()
assert isinstance(cooldown, tanjun.dependencies.limiters._Cooldown)
assert cooldown.limit == 777
assert cooldown.reset_after == 666.0
@pytest.mark.parametrize("reset_after", [datetime.timedelta(seconds=-42), -431, -0.123])
def test_set_bucket_when_reset_after_is_negative(self, reset_after: typing.Union[datetime.timedelta, float, int]):
manager = tanjun.dependencies.InMemoryCooldownManager()
with pytest.raises(ValueError, match="reset_after must be greater than 0 seconds"):
manager.set_bucket("gay catgirl", tanjun.BucketResource.USER, 123, reset_after)
def test_set_bucket_when_limit_is_negative(self):
manager = tanjun.dependencies.InMemoryCooldownManager()
with pytest.raises(ValueError, match="limit must be greater than 0"):
manager.set_bucket("gay catgirl", tanjun.BucketResource.USER, -123, 43.123)
class TestCooldownPreExecution:
@pytest.mark.asyncio()
async def test_call(self):
pre_execution = tanjun.dependencies.CooldownPreExecution("yuri catgirls", owners_exempt=False)
mock_context = mock.Mock()
mock_cooldown_manager = mock.AsyncMock()
mock_cooldown_manager.check_cooldown.return_value = None
mock_owner_check = mock.AsyncMock()
await pre_execution(mock_context, cooldowns=mock_cooldown_manager, owner_check=mock_owner_check)
mock_cooldown_manager.check_cooldown.assert_awaited_once_with("yuri catgirls", mock_context, increment=True)
mock_owner_check.check_ownership.assert_not_called()
@pytest.mark.asyncio()
async def test_call_when_owners_exempt(self):
pre_execution = tanjun.dependencies.CooldownPreExecution("yuri catgirls", owners_exempt=True)
mock_context = mock.Mock()
mock_cooldown_manager = mock.AsyncMock()
mock_owner_check = mock.AsyncMock()
mock_owner_check.check_ownership.return_value = True
await pre_execution(mock_context, cooldowns=mock_cooldown_manager, owner_check=mock_owner_check)
mock_cooldown_manager.check_cooldown.assert_not_called()
mock_owner_check.check_ownership.assert_awaited_once_with(mock_context.client, mock_context.author)
@pytest.mark.asyncio()
async def test_call_when_owners_exempt_but_owner_check_is_none(self):
pre_execution = tanjun.dependencies.CooldownPreExecution("yuri catgirls", owners_exempt=True)
mock_context = mock.Mock()
mock_cooldown_manager = mock.AsyncMock()
mock_cooldown_manager.check_cooldown.return_value = None
await pre_execution(mock_context, cooldowns=mock_cooldown_manager, owner_check=None)
mock_cooldown_manager.check_cooldown.assert_called_once_with("yuri catgirls", mock_context, increment=True)
assert pre_execution._owners_exempt is False
@pytest.mark.asyncio()
async def test_call_when_owners_exempt_and_not_owner(self):
pre_execution = tanjun.dependencies.CooldownPreExecution("catgirls", owners_exempt=True)
mock_context = mock.Mock()
mock_cooldown_manager = mock.AsyncMock()
mock_cooldown_manager.check_cooldown.return_value = None
mock_owner_check = mock.AsyncMock()
mock_owner_check.check_ownership.return_value = False
await pre_execution(mock_context, cooldowns=mock_cooldown_manager, owner_check=mock_owner_check)
mock_cooldown_manager.check_cooldown.assert_awaited_once_with("catgirls", mock_context, increment=True)
mock_owner_check.check_ownership.assert_awaited_once_with(mock_context.client, mock_context.author)
@pytest.mark.asyncio()
async def test_call_when_owners_exempt_still_leads_to_wait_for(self):
pre_execution = tanjun.dependencies.CooldownPreExecution("yuri", owners_exempt=True)
mock_context = mock.Mock()
mock_cooldown_manager = mock.AsyncMock()
mock_cooldown_manager.check_cooldown.return_value = 69.420
mock_owner_check = mock.AsyncMock()
mock_owner_check.check_ownership.return_value = False
with pytest.raises(tanjun.CommandError, match="Please wait 69.42 seconds before using this command again."):
await pre_execution(mock_context, cooldowns=mock_cooldown_manager, owner_check=mock_owner_check)
mock_cooldown_manager.check_cooldown.assert_awaited_once_with("yuri", mock_context, increment=True)
mock_owner_check.check_ownership.assert_awaited_once_with(mock_context.client, mock_context.author)
@pytest.mark.asyncio()
async def test_call_when_wait_for(self):
pre_execution = tanjun.dependencies.CooldownPreExecution("catgirls yuri", owners_exempt=False)
mock_context = mock.Mock()
mock_cooldown_manager = mock.AsyncMock()
mock_cooldown_manager.check_cooldown.return_value = 420.69420
mock_owner_check = mock.AsyncMock()
with pytest.raises(tanjun.CommandError, match="Please wait 420.69 seconds before using this command again."):
await pre_execution(mock_context, cooldowns=mock_cooldown_manager, owner_check=mock_owner_check)
mock_cooldown_manager.check_cooldown.assert_awaited_once_with("catgirls yuri", mock_context, increment=True)
mock_owner_check.check_ownership.assert_not_called()
def test_with_cooldown():
mock_command = mock.Mock()
with mock.patch.object(tanjun.dependencies.limiters, "CooldownPreExecution") as mock_pre_execution:
tanjun.with_cooldown("catgirl x catgirl", error_message="pussy cat pussy cat", owners_exempt=False)(
mock_command
)
mock_pre_execution.assert_called_once_with(
"catgirl x catgirl", error_message="pussy cat pussy cat", owners_exempt=False
)
mock_command.hooks.add_pre_execution.assert_called_once_with(mock_pre_execution.return_value)
def test_with_cooldown_when_no_set_hooks():
mock_command = mock.Mock(hooks=None)
stack = contextlib.ExitStack()
mock_pre_execution = stack.enter_context(mock.patch.object(tanjun.dependencies.limiters, "CooldownPreExecution"))
any_hooks = stack.enter_context(mock.patch.object(tanjun.hooks, "AnyHooks"))
with stack:
tanjun.with_cooldown("catgirl x catgirl", error_message="pussy cat pussy cat", owners_exempt=False)(
mock_command
)
mock_pre_execution.assert_called_once_with(
"catgirl x catgirl", error_message="pussy cat pussy cat", owners_exempt=False
)
mock_command.set_hooks.assert_called_once_with(any_hooks.return_value)
any_hooks.return_value.add_pre_execution.assert_called_once_with(mock_pre_execution.return_value)
any_hooks.assert_called_once_with()
class Test_ConcurrencyLimit:
def test_acquire(self):
limit = tanjun.dependencies.limiters._ConcurrencyLimit(2)
result = limit.acquire()
assert result is True
assert limit.counter == 1
def test_acquire_when_couldnt_acquire(self):
limit = tanjun.dependencies.limiters._ConcurrencyLimit(2)
limit.counter = 2
result = limit.acquire()
assert result is False
assert limit.counter == 2
def test_acquire_when_limit_is_negative_1(self):
limit = tanjun.dependencies.limiters._ConcurrencyLimit(-1)
limit.counter = 2
result = limit.acquire()
assert result is True
assert limit.counter == 2
def test_release(self):
limit = tanjun.dependencies.limiters._ConcurrencyLimit(2)
limit.counter = 2
limit.release()
assert limit.counter == 1
def test_release_when_not_acquired(self):
limit = tanjun.dependencies.limiters._ConcurrencyLimit(2)
with pytest.raises(RuntimeError, match="Cannot release a limit that has not been acquired"):
limit.release()
def test_release_when_limit_is_negative_1(self):
limit = tanjun.dependencies.limiters._ConcurrencyLimit(-1)
limit.counter = 0
limit.release()
assert limit.counter == 0
def test_has_expired(self):
limit = tanjun.dependencies.limiters._ConcurrencyLimit(2)
limit.counter = 1
assert limit.has_expired() is False
def test_has_expired_when_has_expired(self):
limit = tanjun.dependencies.limiters._ConcurrencyLimit(2)
limit.counter = 0
assert limit.has_expired() is True
class TestInMemoryConcurrencyLimiter:
@pytest.mark.asyncio()
async def test__gc(self):
manager = tanjun.dependencies.InMemoryConcurrencyLimiter()
mock_bucket_1 = mock.Mock()
mock_bucket_2 = mock.Mock()
mock_bucket_3 = mock.Mock()
manager._buckets = {"e": mock_bucket_1, "a": mock_bucket_2, "f": mock_bucket_3}
mock_error = Exception("test")
with mock.patch.object(asyncio, "sleep", side_effect=[None, None, mock_error]) as sleep:
with pytest.raises(Exception) as exc_info: # noqa: PT011, PT012
await asyncio.wait_for(manager._gc(), timeout=0.5)
assert exc_info.value is mock_error
sleep.assert_has_awaits([mock.call(10), mock.call(10), mock.call(10)])
mock_bucket_1.cleanup.assert_has_calls([mock.call(), mock.call()])
mock_bucket_2.cleanup.assert_has_calls([mock.call(), mock.call()])
mock_bucket_3.cleanup.assert_has_calls([mock.call(), mock.call()])
def test_add_to_client(self):
mock_client = mock.Mock(tanjun.Client, is_alive=False)
mock_open = mock.Mock()
class StubManager(tanjun.dependencies.InMemoryConcurrencyLimiter):
open = mock_open
manager = StubManager()
manager.add_to_client(mock_client)
mock_client.add_client_callback.assert_has_calls(
[
mock.call(tanjun.abc.ClientCallbackNames.STARTING, manager.open),
mock.call(tanjun.abc.ClientCallbackNames.CLOSING, manager.close),
]
)
mock_open.assert_not_called()
def test_add_to_client_when_client_is_active(self):
mock_client = mock.Mock(tanjun.Client, is_alive=True)
mock_open = mock.Mock()
class StubManager(tanjun.dependencies.InMemoryConcurrencyLimiter):
open = mock_open
manager = StubManager()
manager.add_to_client(mock_client)
mock_client.add_client_callback.assert_has_calls(
[
mock.call(tanjun.abc.ClientCallbackNames.STARTING, manager.open),
mock.call(tanjun.abc.ClientCallbackNames.CLOSING, manager.close),
]
)
mock_open.assert_called_once_with(_loop=mock_client.loop)
def test_close(self):
manager = tanjun.dependencies.InMemoryConcurrencyLimiter()
mock_gc_task = mock.Mock()
manager._gc_task = mock_gc_task
manager.close()
mock_gc_task.cancel.assert_called_once_with()
def test_close_when_not_active(self):
manager = tanjun.dependencies.InMemoryConcurrencyLimiter()
with pytest.raises(RuntimeError, match="Concurrency manager is not active"):
manager.close()
def test_open(self):
mock_gc = mock.Mock()
class StubManager(tanjun.dependencies.InMemoryConcurrencyLimiter):
_gc = mock_gc
manager = StubManager()
with mock.patch.object(asyncio, "get_running_loop") as get_running_loop:
manager.open()
assert manager._gc_task is get_running_loop.return_value.create_task.return_value
get_running_loop.assert_called_once_with()
get_running_loop.return_value.create_task.assert_called_once_with(mock_gc.return_value)
mock_gc.assert_called_once_with()
def test_open_with_passed_through_loop(self):
mock_gc = mock.Mock()
mock_loop = mock.Mock()
class StubManager(tanjun.dependencies.InMemoryConcurrencyLimiter):
_gc = mock_gc
manager = StubManager()
manager.open(_loop=mock_loop)
assert manager._gc_task is mock_loop.create_task.return_value
mock_loop.create_task.assert_called_once_with(mock_gc.return_value)
mock_gc.assert_called_once_with()
def test_open_when_already_active(self):
manager = tanjun.dependencies.InMemoryConcurrencyLimiter()
manager._gc_task = mock.Mock()
with pytest.raises(RuntimeError, match="Concurrency manager is already running"):
manager.open()
@pytest.mark.asyncio()
async def test_try_acquire(self):
mock_bucket = mock.Mock(into_inner=mock.AsyncMock(return_value=mock.Mock()))
mock_inner: typing.Any = mock_bucket.into_inner.return_value
mock_inner.acquire.return_value = True
mock_context = mock.Mock()
manager = tanjun.InMemoryConcurrencyLimiter()
manager._buckets["aye"] = mock_bucket
result = await manager.try_acquire("aye", mock_context)
assert result is True
mock_bucket.into_inner.assert_called_once_with(mock_context)
mock_inner.acquire.assert_called_once_with()
assert manager._acquiring_ctxs[("aye", mock_context)] is mock_inner
@pytest.mark.asyncio()
async def test_try_acquire_when_failed_to_acquire(self):
mock_bucket = mock.Mock(into_inner=mock.AsyncMock(return_value=mock.Mock()))
mock_inner: typing.Any = mock_bucket.into_inner.return_value
mock_inner.acquire.return_value = False
mock_context = mock.Mock()
manager = tanjun.InMemoryConcurrencyLimiter()
manager._buckets["nya"] = mock_bucket
result = await manager.try_acquire("nya", mock_context)
assert result is False
mock_bucket.into_inner.assert_called_once_with(mock_context)
mock_inner.acquire.assert_called_once_with()
assert ("nya", mock_context) not in manager._acquiring_ctxs
@pytest.mark.asyncio()
async def test_try_acquire_for_already_acquired_context(self):
mock_bucket = mock.Mock()
mock_context = mock.Mock()
mock_limiter = mock.Mock()
manager = tanjun.InMemoryConcurrencyLimiter()
manager._buckets["ayee"] = mock_bucket
manager._acquiring_ctxs[("ayee", mock_context)] = mock_limiter
result = await manager.try_acquire("ayee", mock_context)
assert result is True
mock_bucket.into_inner.assert_not_called()
mock_limiter.acquire.assert_not_called()
assert manager._acquiring_ctxs[("ayee", mock_context)] is mock_limiter
@pytest.mark.asyncio()
async def test_try_acquire_falls_back_to_default_bucket(self):
mock_bucket = mock.Mock(into_inner=mock.AsyncMock(return_value=mock.Mock()))
mock_inner: typing.Any = mock_bucket.into_inner.return_value
mock_inner.acquire.return_value = True
mock_bucket_template = mock.Mock()
mock_bucket_template.copy.return_value = mock_bucket
mock_context = mock.Mock()
manager = tanjun.InMemoryConcurrencyLimiter()
manager._default_bucket_template = mock_bucket_template
result = await manager.try_acquire("yeet", mock_context)
assert result is True
mock_bucket_template.copy.assert_called_once_with()
mock_bucket.into_inner.assert_called_once_with(mock_context)
mock_inner.acquire.assert_called_once_with()
assert manager._acquiring_ctxs[("yeet", mock_context)] is mock_inner
assert manager._buckets["yeet"] is mock_bucket
@pytest.mark.asyncio()
async def test_release(self):
manager = tanjun.dependencies.InMemoryConcurrencyLimiter()
mock_context = mock.Mock()
mock_limiter = mock.Mock()
manager._acquiring_ctxs[("nya", mock_context)] = mock_limiter
await manager.release("nya", mock_context)
assert ("nya", mock_context) not in manager._acquiring_ctxs
mock_limiter.release.assert_called_once_with()
@pytest.mark.asyncio()
async def test_release_for_unknown_context(self):
manager = tanjun.dependencies.InMemoryConcurrencyLimiter()
mock_context = mock.Mock()
await manager.release("meow", mock_context)
def test_disable_bucket(self):
manager = tanjun.dependencies.InMemoryConcurrencyLimiter()
default_bucket = manager._default_bucket_template
with mock.patch.object(tanjun.dependencies.limiters, "_GlobalResource") as cooldown_bucket:
result = manager.disable_bucket("kitty cat")
assert result is manager
assert manager._buckets["kitty cat"] is cooldown_bucket.return_value
assert manager._default_bucket_template is default_bucket
cooldown_bucket.return_value.copy.assert_not_called()
assert cooldown_bucket.call_count == 1
assert len(cooldown_bucket.call_args.args) == 1
assert len(cooldown_bucket.call_args.kwargs) == 0
cooldown_maker = cooldown_bucket.call_args.args[0]
cooldown = cooldown_maker()
assert isinstance(cooldown, tanjun.dependencies.limiters._ConcurrencyLimit)
assert cooldown.limit == -1
def test_disable_bucket_when_is_default(self):
manager = tanjun.dependencies.InMemoryConcurrencyLimiter()
with mock.patch.object(tanjun.dependencies.limiters, "_GlobalResource") as cooldown_bucket:
result = manager.disable_bucket("default")
assert result is manager
assert manager._buckets["default"] is cooldown_bucket.return_value
assert manager._default_bucket_template is cooldown_bucket.return_value.copy.return_value
cooldown_bucket.return_value.copy.assert_called_once_with()
assert cooldown_bucket.call_count == 1
assert len(cooldown_bucket.call_args.args) == 1
assert len(cooldown_bucket.call_args.kwargs) == 0
cooldown_maker = cooldown_bucket.call_args.args[0]
cooldown = cooldown_maker()
assert isinstance(cooldown, tanjun.dependencies.limiters._ConcurrencyLimit)
assert cooldown.limit == -1
@pytest.mark.parametrize(
"resource_type",
[
tanjun.BucketResource.USER,
tanjun.BucketResource.CHANNEL,
tanjun.BucketResource.PARENT_CHANNEL,
tanjun.BucketResource.TOP_ROLE,
tanjun.BucketResource.GUILD,
],
)
def test_set_bucket(self, resource_type: tanjun.BucketResource):
manager = tanjun.dependencies.InMemoryConcurrencyLimiter()
default_bucket = manager._default_bucket_template
with mock.patch.object(tanjun.dependencies.limiters, "_FlatResource") as cooldown_bucket:
result = manager.set_bucket("gay catgirl", resource_type, 321)
assert result is manager
assert manager._buckets["gay catgirl"] is cooldown_bucket.return_value
assert manager._default_bucket_template is default_bucket
cooldown_bucket.return_value.copy.assert_not_called()
assert cooldown_bucket.call_count == 1
assert len(cooldown_bucket.call_args.args) == 2
assert len(cooldown_bucket.call_args.kwargs) == 0
assert cooldown_bucket.call_args.args[0] is resource_type
cooldown_maker = cooldown_bucket.call_args.args[1]
cooldown = cooldown_maker()
assert isinstance(cooldown, tanjun.dependencies.limiters._ConcurrencyLimit)
assert cooldown.limit == 321
def test_set_bucket_for_member_resource(self):
manager = tanjun.dependencies.InMemoryConcurrencyLimiter()
with mock.patch.object(tanjun.dependencies.limiters, "_MemberResource") as cooldown_bucket:
result = manager.set_bucket("meowth", tanjun.BucketResource.MEMBER, 69)
assert result is manager
assert manager._buckets["meowth"] is cooldown_bucket.return_value
assert cooldown_bucket.call_count == 1
assert len(cooldown_bucket.call_args.args) == 1
assert len(cooldown_bucket.call_args.kwargs) == 0
cooldown_maker = cooldown_bucket.call_args.args[0]
cooldown = cooldown_maker()
assert isinstance(cooldown, tanjun.dependencies.limiters._ConcurrencyLimit)
assert cooldown.limit == 69
def test_set_bucket_for_global_resource(self):
manager = tanjun.dependencies.InMemoryConcurrencyLimiter()
with mock.patch.object(tanjun.dependencies.limiters, "_GlobalResource") as cooldown_bucket:
result = manager.set_bucket("meow", tanjun.BucketResource.GLOBAL, 42069)
assert result is manager
assert manager._buckets["meow"] is cooldown_bucket.return_value
assert cooldown_bucket.call_count == 1
assert len(cooldown_bucket.call_args.args) == 1
assert len(cooldown_bucket.call_args.kwargs) == 0
cooldown_maker = cooldown_bucket.call_args.args[0]
cooldown = cooldown_maker()
assert isinstance(cooldown, tanjun.dependencies.limiters._ConcurrencyLimit)
assert cooldown.limit == 42069
def test_set_bucket_when_is_default(self):
manager = tanjun.dependencies.InMemoryConcurrencyLimiter()
with mock.patch.object(tanjun.dependencies.limiters, "_FlatResource") as cooldown_bucket:
result = manager.set_bucket("default", tanjun.BucketResource.USER, 697)
assert result is manager
assert manager._buckets["default"] is cooldown_bucket.return_value
assert manager._default_bucket_template is cooldown_bucket.return_value.copy.return_value
cooldown_bucket.return_value.copy.assert_called_once_with()
assert cooldown_bucket.call_count == 1
assert len(cooldown_bucket.call_args.args) == 2
assert len(cooldown_bucket.call_args.kwargs) == 0
assert cooldown_bucket.call_args.args[0] is tanjun.BucketResource.USER
cooldown_maker = cooldown_bucket.call_args.args[1]
cooldown = cooldown_maker()
assert isinstance(cooldown, tanjun.dependencies.limiters._ConcurrencyLimit)
assert cooldown.limit == 697
def test_set_bucket_when_limit_is_negative(self):
manager = tanjun.dependencies.InMemoryConcurrencyLimiter()
with pytest.raises(ValueError, match="limit must be greater than 0"):
manager.set_bucket("gay catgirl", tanjun.BucketResource.USER, -1)
class TestConcurrencyPreExecution:
@pytest.mark.asyncio()
async def test_call(self):
mock_context = mock.Mock()
mock_limiter = mock.AsyncMock()
mock_limiter.try_acquire.return_value = True
hook = tanjun.dependencies.ConcurrencyPreExecution("bucket boobs")
await hook(mock_context, mock_limiter)
mock_limiter.try_acquire.assert_awaited_once_with("bucket boobs", mock_context)
@pytest.mark.asyncio()
async def test_call_when_acquire_fails(self):
mock_context = mock.Mock()
mock_limiter = mock.AsyncMock()
mock_limiter.try_acquire.return_value = False
hook = tanjun.dependencies.ConcurrencyPreExecution("bucket catgirls", error_message="an error message")
with pytest.raises(tanjun.CommandError, match="an error message"):
await hook(mock_context, mock_limiter)
mock_limiter.try_acquire.assert_awaited_once_with("bucket catgirls", mock_context)
class TestConcurrencyPostExecution:
@pytest.mark.asyncio()
async def test_call(self):
mock_context = mock.Mock()
mock_limiter = mock.AsyncMock()
hook = tanjun.dependencies.ConcurrencyPostExecution("aye bucket")
await hook(mock_context, mock_limiter)
mock_limiter.release.assert_awaited_once_with("aye bucket", mock_context)
def test_with_concurrency_limit():
mock_command = mock.Mock()
mock_command.hooks.add_pre_execution.return_value = mock_command.hooks
mock_command.hooks.add_post_execution.return_value = mock_command.hooks
stack = contextlib.ExitStack()
pre_execution = stack.enter_context(mock.patch.object(tanjun.dependencies.limiters, "ConcurrencyPreExecution"))
post_execution = stack.enter_context(mock.patch.object(tanjun.dependencies.limiters, "ConcurrencyPostExecution"))
result = tanjun.with_concurrency_limit("bucket me", error_message="aye message")(mock_command)
assert result is mock_command
mock_command.hooks.add_pre_execution.assert_called_once_with(pre_execution.return_value)
mock_command.hooks.add_post_execution.assert_called_once_with(post_execution.return_value)
pre_execution.assert_called_once_with("bucket me", error_message="aye message")
post_execution.assert_called_once_with("bucket me")
def test_with_concurrency_limit_makes_new_hooks():
mock_command = mock.Mock(hooks=None)
stack = contextlib.ExitStack()
any_hooks = stack.enter_context(mock.patch.object(tanjun.hooks, "AnyHooks"))
pre_execution = stack.enter_context(mock.patch.object(tanjun.dependencies.limiters, "ConcurrencyPreExecution"))
post_execution = stack.enter_context(mock.patch.object(tanjun.dependencies.limiters, "ConcurrencyPostExecution"))
any_hooks.return_value.add_pre_execution.return_value = any_hooks.return_value
any_hooks.return_value.add_post_execution.return_value = any_hooks.return_value
result = tanjun.with_concurrency_limit("bucket me", error_message="aye message")(mock_command)
assert result is mock_command
any_hooks.assert_called_once_with()
mock_command.set_hooks.assert_called_once_with(any_hooks.return_value)
any_hooks.return_value.add_pre_execution.assert_called_once_with(pre_execution.return_value)
any_hooks.return_value.add_post_execution.assert_called_once_with(post_execution.return_value)
pre_execution.assert_called_once_with("bucket me", error_message="aye message")
post_execution.assert_called_once_with("bucket me")
| 43.520748
| 119
| 0.718173
| 9,188
| 74,464
| 5.503265
| 0.05148
| 0.043984
| 0.044735
| 0.029665
| 0.909184
| 0.885155
| 0.861878
| 0.83423
| 0.80229
| 0.772229
| 0
| 0.022772
| 0.192657
| 74,464
| 1,710
| 120
| 43.546199
| 0.818307
| 0.023125
| 0
| 0.703963
| 0
| 0
| 0.025225
| 0.001293
| 0
| 0
| 0
| 0
| 0.292152
| 1
| 0.045843
| false
| 0.002331
| 0.00777
| 0
| 0.067599
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a874779a5fa510957141f0bae7e117a21d0ad5f0
| 36,142
|
py
|
Python
|
faro/test/test_regex.py
|
cgiraldo/FARO
|
aa599fe8eebb489fe032549ec52771574a6d04bd
|
[
"MIT"
] | null | null | null |
faro/test/test_regex.py
|
cgiraldo/FARO
|
aa599fe8eebb489fe032549ec52771574a6d04bd
|
[
"MIT"
] | null | null | null |
faro/test/test_regex.py
|
cgiraldo/FARO
|
aa599fe8eebb489fe032549ec52771574a6d04bd
|
[
"MIT"
] | null | null | null |
# Copyright (c) 2019 by Gradiant. All rights reserved.
# This code cannot be used, copied, modified and/or distributed without
# the express permission of the authors.
'''
Created on 24th of April (2019)
@author: Hector Cerezo
'''
import unittest
from .. import ner_regex
from ..utils import clean_text
class RegexTest(unittest.TestCase):
def setUp(self):
""" Setting up for the test """
pass
def tearDown(self):
""" Cleaning up after the test """
pass
def test_regexinit(self):
""" Test the initialization of the regex detection class """
ner_regex.Regex_Ner()
def test_0_broad_phone_number_v0(self):
""" Test the detection of a phone number """
test = "Mi teléfono es 988 888 888 "
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "broad")
self.assertTrue("PHONE" in result,
"{} Phone was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["PHONE"]):
if _regexp[1] == "BROAD_REG_PHONE_NUMBER_APPROX_V3":
idx = i
break
self.assertEqual(clean_text(result["PHONE"][idx][0].strip()),
"988888888",
"{} phone was not detected. Extracted {}".format(
self.shortDescription(),
result["PHONE"][idx]))
def test_1_broad_phone_number_v0(self):
""" Test the detection of a phone number """
test = "Mi teléfono es +34 988 888 888 "
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "broad")
self.assertTrue("PHONE" in result,
"{} Phone was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["PHONE"]):
if _regexp[1] == "BROAD_REG_PHONE_NUMBER_APPROX_V3":
idx = i
break
self.assertEqual(clean_text(result["PHONE"][idx][0].strip()),
"34988888888",
"{} phone was not detected. Extracted {}".format(
self.shortDescription(),
result["PHONE"][idx]))
def test_2_broad_phone_number_v0(self):
""" Test the detection of a wrong phone number """
test = "Mi teléfono es +34 988 888 888 456"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "broad")
self.assertTrue("PHONE" in result,
"{} Phone was not detected {}".format(
self.shortDescription(),
result))
for i, _regexp in enumerate(result["PHONE"]):
if _regexp[1] == "BROAD_REG_PHONE_NUMBER_GEN_V3":
idx = i
break
self.assertEqual(clean_text(result["PHONE"][idx][0].strip()),
"34988888888",
"{} Phone was not detected. Extracted {}".format(
self.shortDescription(),
result["PHONE"][idx]))
def test_3_broad_phone_number_v0(self):
""" Test the detection of a wrong phone number """
test = "Mi teléfono es 45 988 888 888"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "broad")
self.assertTrue("PHONE" in result,
"{} Phone was detected {}".format(
self.shortDescription(),
result))
for i, _regexp in enumerate(result["PHONE"]):
if _regexp[1] == "BROAD_REG_PHONE_NUMBER_GEN_V3":
idx = i
break
self.assertEqual(clean_text(result["PHONE"][idx][0].strip()),
"988888888",
"{} Phone was not detected. Extracted {}".format(
self.shortDescription(),
result["PHONE"][idx]))
def test_0_CP_MOBILE_NUMBER_V0(self):
""" Test the detection of a phone number """
test = "Mi teléfono móvil es 688 888 888 "
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "broad")
self.assertTrue("MOBILE" in result,
"{} Mobile phone was not detected {}".format(
self.shortDescription(),
result))
print ("Result ", result)
for i, _regexp in enumerate(result["MOBILE"]):
if _regexp[1] == "BROAD_REG_MOBILE_NUMBER_GEN_V3":
idx = i
break
self.assertEqual(clean_text(result["MOBILE"][idx][0].strip()),
"688888888",
"{} Mobile phone was not detected. Extracted {}".format(
self.shortDescription(),
result["MOBILE"][idx]))
def test_1_broad_mobile_number_V0(self):
""" Test the detection of a mobile phone number """
test = "Mi teléfono es 45 688 888 888 "
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "broad")
self.assertTrue("MOBILE" in result,
"{} Mobile phone was not detected {}".format(
self.shortDescription(),
result))
for i, _regexp in enumerate(result["MOBILE"]):
if _regexp[1] == "BROAD_REG_MOBILE_NUMBER_GEN_V3":
idx = i
break
self.assertEqual(clean_text(result["MOBILE"][idx][0].strip()),
"688888888",
"{} Mobile phone was not detected. Extracted {}".format(
self.shortDescription(),
result["MOBILE"][idx]))
def test_2_broad_mobile_number_v0(self):
""" Test the detection of a mobile phone number """
test = "Mi teléfono es 45688 888 888 "
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "broad")
self.assertTrue("MOBILE" in result,
"{} Mobile phone was not detected {}".format(
self.shortDescription(),
result))
for i, _regexp in enumerate(result["MOBILE"]):
if _regexp[1] == "BROAD_REG_MOBILE_NUMBER_GEN_V3":
idx = i
break
self.assertEqual(clean_text(result["MOBILE"][idx][0].strip()),
"688888888",
"{} Mobile phone was not detected. Extracted {}".format(
self.shortDescription(),
result["MOBILE"][idx]))
def test_strict_iban_v0(self):
""" Test the detection of the IBAN account """
test = "This is the IBAN of the account ES91 2100 0418 4502 0005 1332 ."
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("FinancialData" in result,
"{} IBAN was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["FinancialData"]):
if _regexp[1] == "STRICT_REG_IBAN_V1":
idx = i
break
self.assertEqual(clean_text(result["FinancialData"][idx][0]),
"ES9121000418450200051332",
"{} wrong IBAN detected. Detected {}".format(
self.shortDescription(),
result["FinancialData"][idx]))
def test_broad_iban_V1(self):
""" Test the detection of the IBAN account """
test = "This is the IBAN of the account ES91 2100 4334471600021142."
proximity_dict = {"FinancialData": {"left_span_len": 20,
"right_span_len": 0,
"word_list": ["iban"]}}
ner = ner_regex.Regex_Ner(regexp_config_dict=proximity_dict)
result = ner._detect_regexp(test, "broad")
self.assertTrue("FinancialData" in result,
"{} IBAN was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["FinancialData"]):
if _regexp[1] == "BROAD_REG_IBAN_APPROX_V1":
idx = i
break
self.assertEqual(clean_text(result["FinancialData"][idx][0]),
"ES9121004334471600021142",
"{} wrong IBAN detected. Detected {}".format(
self.shortDescription(),
result["FinancialData"][idx]))
def test_complete_iban_V1(self):
""" Test the detection of the IBAN account """
test = "This is the IBAN of the account ES91 2100 4334471600021142P ."
proximity_dict = {"FinancialData": {"left_span_len": 20,
"right_span_len": 0,
"word_list": ["iban"]}}
ner = ner_regex.Regex_Ner(regexp_config_dict=proximity_dict)
result = ner.regex_detection(test, full_text=test)
self.assertTrue("FinancialData" in result,
"{} IBAN was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["FinancialData"]):
if _regexp[1] == "BROAD_REG_IBAN_APPROX_V1":
idx = i
break
self.assertEqual(clean_text(result["FinancialData"][idx][0]),
"ES9121004334471600021142",
"{} wrong IBAN detected. Detected {}".format(
self.shortDescription(),
result["FinancialData"][idx]))
def test_is_not_iban_V0(self):
""" Test IBAN is not detected """
test = "This is the IBAN of the account ES91 2100 0418 4502 0005 1332 4576 ."
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("FinancialData" in result,
"{} IBAN was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["FinancialData"]):
if _regexp[1] == "BROAD_REG_IBAN_APPROX_V1":
idx = i
break
self.assertEqual(clean_text(result["FinancialData"][idx][0]),
"ES9121000418450200051332",
"{} wrong IBAN detected. Detected {}".format(
self.shortDescription(),
result["FinancialData"][idx]))
def test_strict_email_v0(self):
""" Detection of email v0 rule """
test = "the email of John is deadbeaf@foo.bar"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("Email" in result,
"{} email was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["Email"]):
if _regexp[1] == "STRICT_REG_EMAIL_ADDRESS_V0":
idx = i
break
self.assertEqual(result["Email"][idx][0], "deadbeaf@foo.bar",
"{} wrong email detected. Detected {}".format(
self.shortDescription(),
result["Email"][idx]))
def test_strict_credit_card_v0(self):
""" Detection of card v0 rule """
test = "the visa card is 4111111111111111."
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("CreditCard" in result,
"{} credit card was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["CreditCard"]):
if _regexp[1] == "STRICT_REG_CREDIT_CARD_V0":
idx = i
break
self.assertEqual(result["CreditCard"][idx][0], "4111111111111111",
" {} wrong credit card detected. Detected {}".format(
self.shortDescription(),
result["CreditCard"][idx]))
def test_strict_dni_v0(self):
""" Detection of DNI v0 rule """
test = "el dni de Juan es 66666666Y."
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("DNI_SPAIN" in result,
"{} DNI_SPAIN was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["DNI_SPAIN"]):
if _regexp[1] == "STRICT_REG_DNI_V0":
idx = i
break
self.assertEqual(clean_text(result["DNI_SPAIN"][idx][0]), "66666666Y",
" {} wrong dni detected. Detected {}".format(
self.shortDescription(),
result["DNI_SPAIN"][idx]))
def test_dni_with_dash(self):
""" Detection of DNI v0 rule with letter separated by dash """
test = "el dni de Juan es 66666666-Y."
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("DNI_SPAIN" in result,
"{} DNI_SPAIN was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["DNI_SPAIN"]):
if _regexp[1] == "STRICT_REG_DNI_V0":
idx = i
break
self.assertEqual(clean_text(result["DNI_SPAIN"][idx][0]), "66666666Y",
" {} wrong dni detected. Detected {}".format(
self.shortDescription(),
result["DNI_SPAIN"][idx]))
def test_strict_niuk(self):
""" Detection of NI v0 rule """
test = "el ni de Juan es JG103759A."
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("NI_UK" in result,
"{} NI_UK was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["NI_UK"]):
if _regexp[1] == "STRICT_REG_NI_UK_V0":
idx = i
break
self.assertEqual(clean_text(result["NI_UK"][idx][0]), "JG103759A",
" {} wrong ni detected. Detected {}".format(
self.shortDescription(),
result["NI_UK"][idx]))
def test_strict_dni_v1(self):
""" Detection of DNI v0 rule with Nº stuck to the number """
test = "el N.I.F. Nº15373458B."
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("DNI_SPAIN" in result,
"{} DNI_SPAIN was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["DNI_SPAIN"]):
if _regexp[1] == "STRICT_REG_DNI_V0":
idx = i
break
self.assertEqual(clean_text(result["DNI_SPAIN"][idx][0]), "15373458B",
"{} wrong dni detected. Detected {}".format(
self.shortDescription(),
result["DNI_SPAIN"][idx]))
def test_strict_dni_v2(self):
""" Detection of DNI"""
test = "15373458B"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("DNI_SPAIN" in result,
"{} DNI_SPAIN was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["DNI_SPAIN"]):
if _regexp[1] == "STRICT_REG_DNI_V0":
idx = i
break
self.assertEqual(clean_text(result["DNI_SPAIN"][idx][0]), "15373458B",
"{} wrong dni detected. Detected {}".format(
self.shortDescription(),
result["DNI_SPAIN"][idx]))
def test_strict_dni_v3(self):
""" Detection of DNI"""
test = "15373458Bé"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("DNI_SPAIN" not in result,
"{} DNI_SPAIN was not detected {}".format(
self.shortDescription(),
result))
def test_broad_phone_number_v4(self):
""" Detection of phone number """
test = "el teléfono de Juan es +34 986 000000"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "broad")
self.assertTrue("PHONE" in result,
"{} PHONE was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["PHONE"]):
if _regexp[1] == "BROAD_REG_PHONE_NUMBER_GEN_V3":
idx = i
break
self.assertEqual(clean_text(result["PHONE"][idx][0]), "34986000000",
" {} wrong phone detected. Detected {}".format(
self.shortDescription(),
result["PHONE"][idx]))
def test_broad_phone_number_v5(self):
""" Detection of phone number """
test = "tfno.: ESP 980000001"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "broad")
self.assertTrue("PHONE" in result,
"{} PHONE was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["PHONE"]):
if _regexp[1] == "BROAD_REG_PHONE_NUMBER_GEN_V3":
idx = i
break
self.assertEqual(clean_text(result["PHONE"][idx][0]), "980000001",
" {} wrong phone detected. Detected {}".format(
self.shortDescription(),
result["PHONE"][idx]))
def test_broad_phone_number_v6(self):
""" Detection of phone number """
test = "teléfono: ESP 980000001A"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "broad")
self.assertTrue("PHONE" in result,
"{} PHONE was not detected {}".format(
self.shortDescription(),
result))
idx = -1
for i, _regexp in enumerate(result["PHONE"]):
if _regexp[1] == "BROAD_REG_PHONE_NUMBER_GEN_V3":
idx = i
break
self.assertEqual(clean_text(result["PHONE"][idx][0]), "980000001",
" {} wrong phone detected. Detected {}".format(
self.shortDescription(),
result["PHONE"][idx]))
def test_complete_phone_number(self):
""" Detection of phone number """
test = "tel.: ESP 980000007."
proximity_dict = {"PHONE": {
"left_span_len": 20,
"right_span_len": 0,
"word_list": ["tel."]}}
ner = ner_regex.Regex_Ner(regexp_config_dict=proximity_dict)
result = ner.regex_detection(test, full_text=test)
self.assertTrue("PHONE" in result,
"{} PHONE was not detected {}".format(
self.shortDescription(),
result))
self.assertEqual(clean_text(result["PHONE"][0][0]), "980000007",
" {} wrong phone detected. Detected {}".format(
self.shortDescription(),
result["PHONE"][0]))
def test_complete_phone_number_v1(self):
""" Detection of phone number """
test = "fax: ESP 98000000"
proximity_dict = {"PHONE": {
"left_span_len": 20,
"right_span_len": 0,
"word_list": ["tel."]}}
ner = ner_regex.Regex_Ner(regexp_config_dict=proximity_dict)
result = ner.regex_detection(test, full_text=test)
self.assertTrue("PHONE" not in result,
"{} PHONE was detected but it shouldn't{}".format(
self.shortDescription(),
result))
def test_complete_phone_number_v2(self):
""" Detection of phone number """
test = "tlf.: ESP 980000000"
proximity_dict = {"PHONE": {
"left_span_len": 20,
"right_span_len": 0,
"word_list": ["tlf."]}}
ner = ner_regex.Regex_Ner(regexp_config_dict=proximity_dict)
result = ner.regex_detection(test, full_text=test)
print ("Result ", result)
self.assertTrue("PHONE" in result,
"{} PHONE was detected {}".format(
self.shortDescription(),
result))
def test_complete_mobile_v0(self):
""" Detection of phone number """
test = "móvil: ESP 780000000"
proximity_dict = {"MOBILE": {
"left_span_len": 20,
"right_span_len": 0,
"word_list": ["movil"]}}
ner = ner_regex.Regex_Ner(regexp_config_dict=proximity_dict)
result = ner.regex_detection(test, full_text=test)
self.assertTrue("MOBILE" in result,
"{} Mobile phone was not detected {}".format(
self.shortDescription(),
result))
self.assertEqual(clean_text(result["MOBILE"][0][0]), "780000000",
" {} wrong mobile detected. Detected {}".format(
self.shortDescription(),
result["MOBILE"][0]))
def test_generic_money_v0(self):
""" Detection of money quantities """
test = "el total de la factura es 1,000."
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("PROB_CURRENCY" in result,
"{} MONEY was not detected {}".format(
self.shortDescription(),
result))
# search for the rule CP_MONEY_V1
for i in range(len(result["PROB_CURRENCY"])):
if result["PROB_CURRENCY"][i][1] == "STRICT_REG_MONEY_V1":
idx = i
self.assertEqual(result["PROB_CURRENCY"][idx][0], "1,000",
"{} wrong currency detected. Detected {}".format(
self.shortDescription(),
result["PROB_CURRENCY"]))
def test_generic_money_v1(self):
""" Detection of money quantities """
test = "el total de la factura es 1.000,000."
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("PROB_CURRENCY" in result,
"{} MONEY was not detected {}".format(
self.shortDescription(),
result))
# search for the rule CP_MONEY_V0
for i in range(len(result["PROB_CURRENCY"])):
if result["PROB_CURRENCY"][i][1] == "STRICT_REG_MONEY_V0":
idx = i
self.assertEqual(result["PROB_CURRENCY"][idx][0], "1.000,000",
"{} wrong currency detected. Detected {}".format(
self.shortDescription(),
result["PROB_CURRENCY"]))
def test_generic_money_v2(self):
""" Detection of money quantities """
test = "el total de la factura es 1.000,000,52."
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("PROB_CURRENCY" in result,
"{} PROB_CURRENCY was not detected {}".format(
self.shortDescription(),
result))
# search for the rule CP_MONEY_V0
for i in range(len(result["PROB_CURRENCY"])):
if result["PROB_CURRENCY"][i][1] == "STRICT_REG_MONEY_V0":
idx = i
self.assertEqual(result["PROB_CURRENCY"][idx][0], "1.000,000,52",
"{} wrong currency detected. Detected {}".format(
self.shortDescription(),
result["PROB_CURRENCY"]))
def test_generic_money_v3(self):
""" Detection of money quantities """
test = "el total de la factura es C42.333.333"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("PROB_CURRENCY" not in result,
"{} PROB_CURRENCY not detected {}".format(
self.shortDescription(),
result))
def test_generic_money_v4(self):
""" Detection of money quantities """
test = "el total de la factura es 1.000,000,52."
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("PROB_CURRENCY" in result,
"{} PROB_CURRENCY was not detected {}".format(
self.shortDescription(),
result))
idx = -1
# search for the rule CP_MONEY_V0
for i in range(len(result["PROB_CURRENCY"])):
if result["PROB_CURRENCY"][i][1] == "CP_MONEY_V1":
idx = i
self.assertEqual(idx, -1,
"{} Wrong quantity detected. Detected {}".format(
self.shortDescription(),
result["PROB_CURRENCY"]))
def test_strict_money_euro_v0(self):
""" Detection of euro currency """
test = "este aparato cuesta 1,000€"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("MONEY" in result,
"{} MONEY was not detected {}".format(
self.shortDescription(),
result))
# search where euro is rules matches the sentence
for i in range(len(result["MONEY"])):
if result["MONEY"][i][1] == "STRICT_REG_EURO_V0":
idx = i
self.assertEqual(result["MONEY"][idx][0], "1,000",
" {} wrong currency detected. Detected {}".format(
self.shortDescription(),
result["MONEY"]))
def test_strict_money_euros_v0(self):
""" Detection of euro currency using the word euro """
test = "este aparato cuesta 1,000 euros"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("MONEY" in result,
"{} MONEY was not detected {}".format(
self.shortDescription(),
result))
# search where euro is rules matches the sentence
for i in range(len(result["MONEY"])):
if result["MONEY"][i][1] == "STRICT_REG_EURO_V0":
idx = i
self.assertEqual(result["MONEY"][idx][0], "1,000",
" {} wrong currency detected. Detected {}".format(
self.shortDescription(),
result["MONEY"]))
def test_strict_money_euros_v1(self):
""" Detection of euro currency using the word euro """
test = "este aparato cuesta 1000 euros"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("MONEY" in result,
"{} MONEY was not detected {}".format(
self.shortDescription(),
result))
# search where euro is rules matches the sentence
for i in range(len(result["MONEY"])):
if result["MONEY"][i][1] == "STRICT_REG_EURO_V0":
idx = i
self.assertEqual(result["MONEY"][idx][0], "1000",
" {} wrong currency detected. Detected {}".format(
self.shortDescription(),
result["MONEY"]))
def test_strict_money_euros_v2(self):
""" Detection of euro currency using the word euro """
test = "este aparato cuesta 1,000.00 euros"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("MONEY" in result,
"{} MONEY was not detected {}".format(
self.shortDescription(),
result))
# search where euro is rules matches the sentence
for i in range(len(result["MONEY"])):
if result["MONEY"][i][1] == "STRICT_REG_EURO_V0":
idx = i
self.assertEqual(result["MONEY"][idx][0], "1,000.00",
" {} wrong currency detected. Detected {}".format(
self.shortDescription(),
result["MONEY"]))
def test_money_CP_EURO_V0_euros_v3(self):
""" Detection of euro currency using the word euro """
test = "este aparato cuesta 1,000.00 Euros"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("MONEY" in result,
"{} MONEY was not detected {}".format(
self.shortDescription(),
result))
# search where euro is rules matches the sentence
for i in range(len(result["MONEY"])):
if result["MONEY"][i][1] == "STRICT_REG_EURO_V0":
idx = i
self.assertEqual(result["MONEY"][idx][0], "1,000.00",
" {} wrong currency detected. Detected {}".format(
self.shortDescription(),
result["MONEY"]))
def test_strict_cif_company(self):
""" Test the detection of the CIF of the company """
test = "El CIF de la compañía es A99151276"
ner = ner_regex.Regex_Ner()
result = ner._detect_regexp(test, "strict")
self.assertTrue("DNI_SPAIN" in result,
"{} DNI_SPAIN was not detected {}".format(
self.shortDescription(),
result))
# search where euro is rules matches the sentence
for i in range(len(result["DNI_SPAIN"])):
if result["DNI_SPAIN"][i][1] == "STRICT_REG_CIF_V0":
idx = i
self.assertEqual(result["DNI_SPAIN"][idx][0], "A99151276",
" {} wrong NIF detected. Detected {}".format(
self.shortDescription(),
result["DNI_SPAIN"]))
def test_email_hack_regex(self):
""" Test the detection of mail hacks """
test = "Enviar todos vuestros datos a infoAThacktextDOTcom"
CP_EMAIL_HACK_V0 = r"[a-zA-Z0-9_.+-]+\s?(\(|-)?\s?(AT|at)\s?(\)|-)?\s?[a-zA-Z0-9-]+\s?(\(|-)?\s?(DOT|dot)\s?(\)|-)?\s?[a-zA-Z0-9-.]+"
HACK_REGEX = {"Email_Hack": [(CP_EMAIL_HACK_V0, "CP_EMAIL_HACK_V0")]}
ner = ner_regex.Regex_Ner(strict_regexp_dict=HACK_REGEX)
result = ner._detect_regexp(test, "strict")
print ("EMAIL HACK ", result)
self.assertTrue("Email_Hack" in result,
"{} Email Hack was not detected {}. Text {}".format(
self.shortDescription(),
result,
test))
test = "Enviar todos vuestros datos a info AT hacktext DOT com"
ner = ner_regex.Regex_Ner(strict_regexp_dict=HACK_REGEX)
result = ner._detect_regexp(test, "strict")
print ("EMAIL HACK ", result)
self.assertTrue("Email_Hack" in result,
"{} Email Hack was not detected {}. Text {}".format(
self.shortDescription(),
result,
test))
test = "Enviar todos vuestros datos a info (AT) hacktext (DOT) com"
ner = ner_regex.Regex_Ner(strict_regexp_dict=HACK_REGEX)
result = ner._detect_regexp(test, "strict")
print ("EMAIL HACK ", result)
self.assertTrue("Email_Hack" in result,
"{} Email Hack was not detected {}. Text {}".format(
self.shortDescription(),
result,
test))
test = "Enviar todos vuestros datos a info-AT-hacktext-DOT-com"
ner = ner_regex.Regex_Ner(strict_regexp_dict=HACK_REGEX)
result = ner._detect_regexp(test, "strict")
print ("EMAIL HACK ", result)
self.assertTrue("Email_Hack" in result,
"{} Email Hack was not detected {}. Text {}".format(
self.shortDescription(),
result,
test))
test = "Enviar todos vuestros datos a info-at-hacktext-dot-com"
ner = ner_regex.Regex_Ner(strict_regexp_dict=HACK_REGEX)
result = ner._detect_regexp(test, "strict")
print ("EMAIL HACK ", result)
self.assertTrue("Email_Hack" in result,
"{} Email Hack was not detected {}. Text {}".format(
self.shortDescription(),
result,
test))
test = "Enviar todos vuestros datos a at-dot"
ner = ner_regex.Regex_Ner(strict_regexp_dict=HACK_REGEX)
result = ner._detect_regexp(test, "strict")
print ("EMAIL HACK ", result)
self.assertTrue("Email_Hack" not in result,
"{} Wrong email Hack was detected {}. Text {}".format(
self.shortDescription(),
result,
test))
| 37.030738
| 141
| 0.490786
| 3,543
| 36,142
| 4.822467
| 0.068868
| 0.044481
| 0.11565
| 0.142339
| 0.896523
| 0.879843
| 0.840981
| 0.827286
| 0.819443
| 0.812771
| 0
| 0.040254
| 0.398567
| 36,142
| 975
| 142
| 37.068718
| 0.745733
| 0.057385
| 0
| 0.791225
| 0
| 0.001513
| 0.210383
| 0.020124
| 0
| 0
| 0
| 0
| 0.114977
| 1
| 0.062027
| false
| 0.003026
| 0.004539
| 0
| 0.068079
| 0.012103
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a884458c5f3523976ca4d06339541fd722f3cf42
| 29
|
py
|
Python
|
app/static/Neural/neural2.py
|
pbontrager/DeepInteractiveEvolution
|
aaa69e27f72ead4f99d03d963273779d143591f6
|
[
"MIT"
] | 1
|
2021-03-19T01:51:57.000Z
|
2021-03-19T01:51:57.000Z
|
app/static/Neural/neural2.py
|
pbontrager/DeepInteractiveEvolution
|
aaa69e27f72ead4f99d03d963273779d143591f6
|
[
"MIT"
] | null | null | null |
app/static/Neural/neural2.py
|
pbontrager/DeepInteractiveEvolution
|
aaa69e27f72ead4f99d03d963273779d143591f6
|
[
"MIT"
] | null | null | null |
def function():
return 2
| 9.666667
| 15
| 0.62069
| 4
| 29
| 4.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.047619
| 0.275862
| 29
| 2
| 16
| 14.5
| 0.809524
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
a89719778d87272a26b331dc6b873d99ad36ea42
| 14,777
|
py
|
Python
|
opennem/api/controllers.py
|
tourdownunder/opennem
|
deec3e2079db9d9d84171010fd0c239170d1e7ce
|
[
"MIT"
] | null | null | null |
opennem/api/controllers.py
|
tourdownunder/opennem
|
deec3e2079db9d9d84171010fd0c239170d1e7ce
|
[
"MIT"
] | 1
|
2020-09-06T04:17:59.000Z
|
2020-09-06T04:17:59.000Z
|
opennem/api/controllers.py
|
tourdownunder/opennem
|
deec3e2079db9d9d84171010fd0c239170d1e7ce
|
[
"MIT"
] | null | null | null |
import decimal
import json
from datetime import datetime
from sqlalchemy.orm import sessionmaker
from opennem.db import db_connect
from opennem.db.models.opennem import FuelTech
from opennem.db.models.wem import WemFacility, metadata
engine = db_connect()
session = sessionmaker(bind=engine)
PERIOD_MAP = {
"all": 0,
# current year
"year": "date_trunc('year', current_date))",
# current month
"month": "date_trunc('month', current_date))",
}
def bom_observation(station_id, region="wa"):
__query = """
SELECT
observation_time,
temp_air as value
FROM bom_observation
WHERE
station_id = '{station_id}'
AND observation_time > now() - interval '7 days'
order by 1 desc
"""
query = __query.format(station_id=station_id)
json_object = {
"id": f"{region}.temperature",
"history": {
"data": [],
"interval": "30m",
"last": None,
"start": None,
},
"bom.station": station_id,
"region": region,
"type": "temperature",
"units": "degreesC",
}
with engine.connect() as c:
rows = c.execute(query)
for row in rows:
if (
json_object["history"]["start"] == None
or row[0] < json_object["history"]["start"]
):
json_object["history"]["start"] = row[0]
if (
json_object["history"]["last"] == None
or row[0] > json_object["history"]["last"]
):
json_object["history"]["last"] = row[0]
json_object["history"]["data"].append(row[1])
return json_object
def wem_price(region="wa"):
__query = """
with intervals as (
select generate_series(
date_trunc('hour', now()) - '7 day'::interval,
date_trunc('hour', now()),
'30 minutes'::interval
) as interval
)
select
i.interval,
wbs.price,
case when wbs.price is null then 0 else wbs.price end as price_cast,
wbs.generation_total
from intervals i
left join wem_balancing_summary wbs on wbs.trading_interval = interval
order by i.interval desc
"""
query = __query.format()
json_object = {
"id": f"{region}.price",
"history": {
"data": [],
"interval": "30m",
"last": None,
"start": None,
},
"region": region,
"type": "price",
"units": "AUD/MWh",
}
with engine.connect() as c:
rows = c.execute(query)
for row in rows:
if (
json_object["history"]["start"] == None
or row[0] < json_object["history"]["start"]
):
json_object["history"]["start"] = row[0]
if (
json_object["history"]["last"] == None
or row[0] > json_object["history"]["last"]
):
json_object["history"]["last"] = row[0]
json_object["history"]["data"].append(row[1])
return json_object
def wem_demand(region="wa"):
__query = """
with intervals as (
select generate_series(
date_trunc('hour', now()) - '7 day'::interval,
date_trunc('hour', now()),
'30 minutes'::interval
) as interval
)
select
i.interval,
wbs.price,
wbs.generation_total
from intervals i
left join wem_balancing_summary wbs on wbs.trading_interval = interval
order by i.interval desc
"""
query = __query.format()
json_object = {
"id": f"{region}.demand",
"history": {
"data": [],
"interval": "30m",
"last": None,
"start": None,
},
"region": region,
"type": "demand",
"units": "MW",
}
with engine.connect() as c:
rows = c.execute(query)
for row in rows:
if (
json_object["history"]["start"] == None
or row[0] < json_object["history"]["start"]
):
json_object["history"]["start"] = row[0]
if (
json_object["history"]["last"] == None
or row[0] > json_object["history"]["last"]
):
json_object["history"]["last"] = row[0]
json_object["history"]["data"].append(row[2])
return json_object
def wem_power_groups(intervals_per_hour=2):
__query = """
with intervals as (
select generate_series(
date_trunc('hour', now()) - '7 day'::interval,
date_trunc('hour', now()),
'30 minutes'::interval
) as interval
)
select
i.interval,
coalesce(wf.fueltech_id, 'Unknown') as fueltech,
sum(wfs.generated) * {intervals_per_hour} as val
from intervals i
left join wem_facility_scada wfs on i.interval = wfs.trading_interval
left join wem_facility wf on wf.code = wfs.facility_id
group by 1, 2
order by 2 asc, 1 desc
"""
query = __query.format(intervals_per_hour=intervals_per_hour)
json_envelope = []
json_obj = None
with engine.connect() as c:
rows = c.execute(query)
current_tech = None
for row in rows:
if current_tech != row[1]:
if json_obj is not None:
json_envelope.append(json_obj)
current_tech = row[1]
json_obj = {
"id": f"wem.fuel_tech.{current_tech}.power",
"fuel_tech": current_tech,
"region": "wa",
"network": "wem",
"type": "power",
"units": "MWh",
"history": {
"interval": "30m",
"start": None,
"last": None,
"data": [],
},
}
if (
json_obj["history"]["start"] == None
or row[0] < json_obj["history"]["start"]
):
json_obj["history"]["start"] = row[0]
if (
json_obj["history"]["last"] == None
or row[0] > json_obj["history"]["last"]
):
json_obj["history"]["last"] = row[0]
value = row[2]
json_obj["history"]["data"].append(value)
json_envelope.append(json_obj)
return json_envelope
def wem_energy_year(year="2020"):
"""
WEM energy year
"""
__query = """
select
date_trunc('day', wfs.trading_interval) AS trading_day,
max(wfs.eoi_quantity) as energy_output,
wf.fueltech_id
from wem_facility_scada wfs
left join wem_facility wf on wfs.facility_id = wf.code
where
wf.fueltech_id is not null
and extract('year' from wfs.trading_interval) = {year}
group by 1, wf.fueltech_id
order by 1 desc, 2 asc
"""
query = __query.format(year=year)
json_envelope = {}
with engine.connect() as c:
rows = c.execute(query)
current_tech = None
for row in rows:
current_tech = row[2]
if current_tech not in json_envelope.keys():
json_envelope[current_tech] = {
"id": f"wem.fuel_tech.{current_tech}.energy",
"fuel_tech": current_tech,
"region": "wa",
"type": "energy",
"units": "MWh",
"history": {
"interval": "1d",
"start": None,
"last": None,
"data": [],
},
}
if (
json_envelope[current_tech]["history"]["start"] == None
or row[0] < json_envelope[current_tech]["history"]["start"]
):
json_envelope[current_tech]["history"]["start"] = row[0]
if (
json_envelope[current_tech]["history"]["last"] == None
or row[0] > json_envelope[current_tech]["history"]["last"]
):
json_envelope[current_tech]["history"]["last"] = row[0]
json_envelope[current_tech]["history"]["data"].append(row[1])
return [json_envelope[i] for i in json_envelope.keys()]
def wem_market_value_year(year="2020"):
"""
WEM market value year
"""
__query = """
select
date_trunc('day', wfs.trading_interval) AS trading_day,
sum(wfs.eoi_quantity * wbs.price) as energy_interval,
wf.fueltech_id
from wem_facility_scada wfs
left join wem_facility wf on wfs.facility_id = wf.code
join wem_balancing_summary wbs on wfs.trading_interval = wbs.trading_interval
where
wf.fueltech_id is not null
and extract('year' from wfs.trading_interval) = {year}
group by 1, wf.fueltech_id
order by 1 desc, 2 asc
"""
query = __query.format(year=year)
json_envelope = {}
with engine.connect() as c:
rows = c.execute(query)
current_tech = None
for row in rows:
current_tech = row[2]
if current_tech not in json_envelope.keys():
json_envelope[current_tech] = {
"id": f"wem.fuel_tech.{current_tech}.market_value",
"fuel_tech": current_tech,
"region": "wa",
"type": "market_value",
"units": "AUD",
"history": {
"interval": "1d",
"start": None,
"last": None,
"data": [],
},
}
if (
json_envelope[current_tech]["history"]["start"] == None
or row[0] < json_envelope[current_tech]["history"]["start"]
):
json_envelope[current_tech]["history"]["start"] = row[0]
if (
json_envelope[current_tech]["history"]["last"] == None
or row[0] > json_envelope[current_tech]["history"]["last"]
):
json_envelope[current_tech]["history"]["last"] = row[0]
json_envelope[current_tech]["history"]["data"].append(row[1])
return [json_envelope[i] for i in json_envelope.keys()]
def wem_energy_all():
"""
WEM energy year
"""
__query = """
select
date_trunc('month', wfs.trading_interval) AS trading_day,
max(wfs.eoi_quantity) as energy_output,
wf.fueltech_id
from wem_facility_scada wfs
left join wem_facility wf on wfs.facility_id = wf.code
where
wf.fueltech_id is not null
group by 1, wf.fueltech_id
order by 1 desc, 2 asc
"""
query = __query.format()
json_envelope = {}
with engine.connect() as c:
rows = c.execute(query)
current_tech = None
for row in rows:
current_tech = row[2]
if current_tech not in json_envelope.keys():
json_envelope[current_tech] = {
"id": f"wem.fuel_tech.{current_tech}.energy",
"fuel_tech": current_tech,
"region": "wa",
"type": "energy",
"units": "MWh",
"history": {
"interval": "1M",
"start": None,
"last": None,
"data": [],
},
}
if (
json_envelope[current_tech]["history"]["start"] == None
or row[0] < json_envelope[current_tech]["history"]["start"]
):
json_envelope[current_tech]["history"]["start"] = row[0]
if (
json_envelope[current_tech]["history"]["last"] == None
or row[0] > json_envelope[current_tech]["history"]["last"]
):
json_envelope[current_tech]["history"]["last"] = row[0]
json_envelope[current_tech]["history"]["data"].append(row[1])
return [json_envelope[i] for i in json_envelope.keys()]
def wem_market_value_all():
"""
WEM market value all
"""
__query = """
select
date_trunc('month', wfs.trading_interval) AS trading_day,
sum(wfs.eoi_quantity * wbs.price) as energy_interval,
wf.fueltech_id
from wem_facility_scada wfs
left join wem_facility wf on wfs.facility_id = wf.code
join wem_balancing_summary wbs on wfs.trading_interval = wbs.trading_interval
where
wf.fueltech_id is not null
group by 1, wf.fueltech_id
order by 1 desc, 2 asc
"""
query = __query.format()
json_envelope = {}
with engine.connect() as c:
rows = c.execute(query)
current_tech = None
for row in rows:
current_tech = row[2]
if current_tech not in json_envelope.keys():
json_envelope[current_tech] = {
"id": f"wem.fuel_tech.{current_tech}.market_value",
"fuel_tech": current_tech,
"region": "wa",
"type": "market_value",
"units": "AUD",
"history": {
"interval": "1M",
"start": None,
"last": None,
"data": [],
},
}
if (
json_envelope[current_tech]["history"]["start"] == None
or row[0] < json_envelope[current_tech]["history"]["start"]
):
json_envelope[current_tech]["history"]["start"] = row[0]
if (
json_envelope[current_tech]["history"]["last"] == None
or row[0] > json_envelope[current_tech]["history"]["last"]
):
json_envelope[current_tech]["history"]["last"] = row[0]
json_envelope[current_tech]["history"]["data"].append(row[1])
return [json_envelope[i] for i in json_envelope.keys()]
| 28.472062
| 85
| 0.487108
| 1,541
| 14,777
| 4.465931
| 0.090201
| 0.091107
| 0.088346
| 0.106946
| 0.824179
| 0.804563
| 0.790468
| 0.769398
| 0.763731
| 0.763731
| 0
| 0.010638
| 0.389321
| 14,777
| 518
| 86
| 28.527027
| 0.751995
| 0.006903
| 0
| 0.777494
| 0
| 0
| 0.364695
| 0.031659
| 0
| 0
| 0
| 0
| 0
| 1
| 0.02046
| false
| 0
| 0.017903
| 0
| 0.058824
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a89c899b1613788fe2af720f3a3af68d4b57cb96
| 21,470
|
py
|
Python
|
examples/uplink_booster_analyzer/lte_rlc_analyzer.py
|
lgs96/mobileinsight_core
|
02dd7a8e96610941163cc95a8f0ef00795ff847d
|
[
"Apache-2.0"
] | null | null | null |
examples/uplink_booster_analyzer/lte_rlc_analyzer.py
|
lgs96/mobileinsight_core
|
02dd7a8e96610941163cc95a8f0ef00795ff847d
|
[
"Apache-2.0"
] | null | null | null |
examples/uplink_booster_analyzer/lte_rlc_analyzer.py
|
lgs96/mobileinsight_core
|
02dd7a8e96610941163cc95a8f0ef00795ff847d
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python
# Filename: lte_rlc_analyzer.py
"""
A 4G RLC analyzer to get link layer information
Author: Haotian Deng
"""
from mobile_insight.analyzer.analyzer import *
from xml.dom import minidom
__all__ = ["LteRlcAnalyzer"]
class LteRlcAnalyzer(Analyzer):
def __init__(self):
Analyzer.__init__(self)
self.add_source_callback(self.__msg_callback)
self.startThrw = None
self.rbInfo = {}
self.total_data_pdu = 0
self.total_ctrl_pdu = 0
def set_source(self, source):
"""
Set the trace source. Enable the cellular signaling messages
:param source: the trace source (collector).
"""
Analyzer.set_source(self, source)
# Phy-layer logs
source.enable_log("LTE_RLC_UL_Config_Log_Packet")
source.enable_log("LTE_RLC_DL_Config_Log_Packet")
source.enable_log("LTE_RLC_UL_AM_All_PDU")
source.enable_log("LTE_RLC_DL_AM_All_PDU")
def __msg_callback(self, msg):
if msg.type_id == "LTE_RLC_UL_Config_Log_Packet" or msg.type_id == "LTE_RLC_DL_Config_Log_Packet":
log_item = msg.data.decode()
# print log_item
subPkt = log_item['Subpackets'][0]
if 'Released RBs' in subPkt:
for releasedRBItem in subPkt['Released RBs']:
rbConfigIdx = releasedRBItem['Released RB Cfg Index']
if rbConfigIdx in self.rbInfo:
self.rbInfo.pop(rbConfigIdx)
rb_num = 0
# print subPkt
for subpacket in subPkt['Active RBs']:
# print subpacket
rb_num += 1
lc_id = subpacket['LC ID']
ack_mode = subpacket['RB Mode']
rb_type = subpacket['RB Type']
bcast_dict = {}
bcast_dict['lcid'] = lc_id
bcast_dict['ack mode'] = ack_mode
bcast_dict['rb type'] = rb_type
bcast_dict['timstamp'] = str(log_item['timestamp'])
if msg.type_id == "LTE_RLC_UL_Config_Log_Packet":
self.broadcast_info('RLC_UL_RB_SETTING', bcast_dict)
self.log_info('RLC_UL_RB_SETTING: ' + str(bcast_dict))
else:
self.broadcast_info('RLC_DL_RB_SETTING', bcast_dict)
self.log_info('RLC_DL_RB_SETTING: ' + str(bcast_dict))
bcast_dict = {}
bcast_dict['number'] = str(rb_num)
bcast_dict['timstamp'] = str(log_item['timestamp'])
if msg.type_id == "LTE_RLC_UL_Config_Log_Packet":
self.broadcast_info('RLC_UL_RB_NUMBER', bcast_dict)
self.log_info('RLC_UL_RB_NUMBER: ' + str(bcast_dict))
else:
self.broadcast_info('RLC_DL_RB_NUMBER', bcast_dict)
self.log_info('RLC_DL_RB_NUMBER: ' + str(bcast_dict))
if msg.type_id == "LTE_RLC_UL_AM_All_PDU":
log_item = msg.data.decode()
# if not self.startThrw:
# self.startThrw = log_item['timestamp']
# timeWindow = (log_item['timestamp'] \
# - self.startThrw).total_seconds()
# if timeWindow > 1:
# # Update throughput information
# print "-------------------------------------------------------"
# print "Downlink received throughput"
# for k, v in self.rbInfo.iteritems():
# print "RB Cfg Idx: " + str(k) + ", " + str(v['cumulativeDLData'] / timeWindow) + " bytes/s"
# self.rbInfo[k]['cumulativeDLData'] = 0.0
# print "Uplink sent throughput"
# for k, v in self.rbInfo.iteritems():
# print "RB Cfg Idx: " + str(k) + ", " + str(v['cumulativeULData'] / timeWindow) + " bytes/s"
# self.rbInfo[k]['cumulativeULData'] = 0.0
# print "-------------------------------------------------------"
# self.startThrw = log_item['timestamp']
subPkt = log_item['Subpackets'][0]
rbConfigIdx = subPkt['RB Cfg Idx']
if rbConfigIdx not in self.rbInfo:
self.rbInfo[rbConfigIdx] = {}
self.rbInfo[rbConfigIdx]['cumulativeULData'] = 0
self.rbInfo[rbConfigIdx]['cumulativeDLData'] = 0
self.rbInfo[rbConfigIdx]['UL'] = {}
self.rbInfo[rbConfigIdx]['DL'] = {}
self.rbInfo[rbConfigIdx]['UL']['listSN'] = []
self.rbInfo[rbConfigIdx]['UL']['listAck'] = []
self.rbInfo[rbConfigIdx]['DL']['listSN'] = []
self.rbInfo[rbConfigIdx]['DL']['listAck'] = []
listPDU = subPkt['RLCUL PDUs']
maxSys_fn = 0
maxSub_fn = 0
minSys_fn = 1024
minSub_fn = 9
for pduItem in listPDU:
if pduItem['PDU TYPE'] == 'RLCUL DATA':
self.rbInfo[rbConfigIdx]['cumulativeULData'] += \
int(pduItem['pdu_bytes'])
self.total_data_pdu += int(pduItem['pdu_bytes'])
SN = int(pduItem['SN'])
sys_fn = int(pduItem['sys_fn'])
sub_fn = int(pduItem['sub_fn'])
#print('UL: ',sys_fn*10+sub_fn, ' ', int(pduItem['pdu_bytes']))
if sys_fn > maxSys_fn or (
sys_fn == maxSys_fn and sub_fn > maxSub_fn):
maxSys_fn = sys_fn
maxSub_fn = sub_fn
if sys_fn < minSys_fn or (
sys_fn == minSys_fn and sub_fn < minSub_fn):
minSys_fn = sys_fn
minSub_fn = sub_fn
alreadyAcked = False
for i, ackItem in enumerate(
self.rbInfo[rbConfigIdx]['UL']['listAck']):
if SN + 1 == ackItem['ack_sn']:
if sys_fn == ackItem['sys_fn']:
diff_ms = (ackItem['sub_fn'] - sub_fn) * 1
else:
diff_ms = (
ackItem['sys_fn'] - sys_fn - 1) * 10 + (10 - sub_fn) + (ackItem['sub_fn'])
if diff_ms > 0:
self.log_info("[Frame cost]\tUL Data PDU Ack (frame): " +
str(diff_ms) +
" ms\tRB Config Index: " +
str(rbConfigIdx) +
"\tAckSN: " +
str(ackItem['ack_sn']) +
"\tTime cost: " +
str((ackItem['time_stamp'] -
log_item['timestamp']).total_seconds()) +
"s\tData TimeStamp: " +
str(log_item['timestamp']) +
"\tAck TimeStamp: " +
str(ackItem['time_stamp']))
alreadyAcked = True
self.rbInfo[rbConfigIdx]['UL']['listAck'].pop(i)
break
if alreadyAcked:
self.rbInfo[rbConfigIdx]['UL']['listSN'] = []
else:
self.rbInfo[rbConfigIdx]['UL']['listSN'].append(
{
'sn': SN,
'sys_fn': pduItem['sys_fn'],
'sub_fn': pduItem['sub_fn'],
'time_stamp': log_item['timestamp']})
elif pduItem['PDU TYPE'] == 'RLCUL CTRL':
self.rbInfo[rbConfigIdx]['cumulativeULData'] += \
int(pduItem['pdu_bytes'])
self.total_ctrl_pdu += int(pduItem['pdu_bytes'])
AckSN = pduItem['SN']
AckSN = int(AckSN.split(" = ")[1])
sys_fn = int(pduItem['sys_fn'])
sub_fn = int(pduItem['sub_fn'])
if sys_fn > maxSys_fn or (
sys_fn == maxSys_fn and sub_fn > maxSub_fn):
maxSys_fn = sys_fn
maxSub_fn = sub_fn
if sys_fn < minSys_fn or (
sys_fn == minSys_fn and sub_fn < minSub_fn):
minSys_fn = sys_fn
minSub_fn = sub_fn
alreadyAcked = False
indexAcked = -1
for i, snItem in enumerate(
self.rbInfo[rbConfigIdx]['DL']['listSN']):
if AckSN == snItem['sn'] + 1:
if sys_fn == snItem['sys_fn']:
diff_ms = (sub_fn - snItem['sub_fn']) * 1
else:
diff_ms = (
sys_fn - snItem['sys_fn'] - 1) * 10 + (10 - snItem['sub_fn']) + (sub_fn)
if diff_ms > 0:
self.log_info("[Frame cost]\tDL Data PDU Ack (frame): " +
str(diff_ms) +
" ms\tRB Config Index: " +
str(rbConfigIdx) +
"\tAckSN: " +
str(AckSN) +
"\tTime cost: " +
str((log_item['timestamp'] -
snItem['time_stamp']).total_seconds()) +
"s\tData TimeStamp: " +
str(snItem['time_stamp']) +
"\tAck TimeStamp: " +
str(log_item['timestamp']))
alreadyAcked = True
indexAcked = i
break
if alreadyAcked:
if indexAcked + \
1 < len(self.rbInfo[rbConfigIdx]['DL']['listSN']):
self.rbInfo[rbConfigIdx]['DL']['listSN'] = self.rbInfo[rbConfigIdx]['DL']['listSN'][indexAcked + 1:]
else:
self.rbInfo[rbConfigIdx]['DL']['listSN'] = []
else:
self.rbInfo[rbConfigIdx]['DL']['listAck'].append(
{
'ack_sn': AckSN,
'sys_fn': pduItem['sys_fn'],
'sub_fn': pduItem['sub_fn'],
'time_stamp': log_item['timestamp']})
if minSys_fn == maxSys_fn:
diff_ms = (maxSub_fn - minSub_fn) * 1
else:
diff_ms = (maxSys_fn - minSys_fn - 1) * 10 + \
(10 - minSub_fn) + (maxSub_fn)
if diff_ms < 100 and diff_ms > 0:
self.log_info("[Intantaneous UL Throughput]\t" +
str(self.rbInfo[rbConfigIdx]['cumulativeULData'] /
(diff_ms *
1.0)) +
" Bytes/ms\tRB Config Index: " +
str(rbConfigIdx) +
"\tTime Stamp: " +
str(log_item['timestamp']))
self.rbInfo[rbConfigIdx]['cumulativeULData'] = 0
# s = msg.data.decode_xml().replace("\n", "")
# print minidom.parseString(s).toprettyxml(" ")
# log_item = msg.data.decode()
# print log_item
if msg.type_id == "LTE_RLC_DL_AM_All_PDU":
log_item = msg.data.decode()
# if not self.startThrw:
# self.startThrw = log_item['timestamp']
# timeWindow = (log_item['timestamp'] \
# - self.startThrw).total_seconds()
# if timeWindow > 1:
# # Update throughput information
# print "-------------------------------------------------------"
# print "Downlink received throughput"
# for k, v in self.rbInfo.iteritems():
# print "RB Cfg Idx: " + str(k) + ", " + str(v['cumulativeDLData'] / timeWindow) + " bytes/s"
# self.rbInfo[k]['cumulativeDLData'] = 0.0
# print "Uplink sent throughput"
# for k, v in self.rbInfo.iteritems():
# print "RB Cfg Idx: " + str(k) + ", " + str(v['cumulativeULData'] / timeWindow) + " bytes/s"
# self.rbInfo[k]['cumulativeULData'] = 0.0
# print "-------------------------------------------------------"
# self.startThrw = log_item['timestamp']
subPkt = log_item['Subpackets'][0]
rbConfigIdx = subPkt['RB Cfg Idx']
if rbConfigIdx not in self.rbInfo:
self.rbInfo[rbConfigIdx] = {}
self.rbInfo[rbConfigIdx]['cumulativeULData'] = 0
self.rbInfo[rbConfigIdx]['cumulativeDLData'] = 0
self.rbInfo[rbConfigIdx]['UL'] = {}
self.rbInfo[rbConfigIdx]['DL'] = {}
self.rbInfo[rbConfigIdx]['UL']['listSN'] = []
self.rbInfo[rbConfigIdx]['UL']['listAck'] = []
self.rbInfo[rbConfigIdx]['DL']['listSN'] = []
self.rbInfo[rbConfigIdx]['DL']['listAck'] = []
listPDU = subPkt['RLCDL PDUs']
maxSys_fn = 0
maxSub_fn = 0
minSys_fn = 1024
minSub_fn = 9
for pduItem in listPDU:
if pduItem['PDU TYPE'] == 'RLCDL DATA':
self.rbInfo[rbConfigIdx]['cumulativeDLData'] += \
int(pduItem['pdu_bytes'])
SN = int(pduItem['SN'])
sys_fn = int(pduItem['sys_fn'])
sub_fn = int(pduItem['sub_fn'])
#print('DL: ',sys_fn*10+sub_fn, ' ', int(pduItem['pdu_bytes']))
if sys_fn > maxSys_fn or (
sys_fn == maxSys_fn and sub_fn > maxSub_fn):
maxSys_fn = sys_fn
maxSub_fn = sub_fn
if sys_fn < minSys_fn or (
sys_fn == minSys_fn and sub_fn < minSub_fn):
minSys_fn = sys_fn
minSub_fn = sub_fn
alreadyAcked = False
for i, ackItem in enumerate(
self.rbInfo[rbConfigIdx]['DL']['listAck']):
if SN + 1 == ackItem['ack_sn']:
if sys_fn == ackItem['sys_fn']:
diff_ms = (ackItem['sub_fn'] - sub_fn) * 1
else:
diff_ms = (
ackItem['sys_fn'] - sys_fn - 1) * 10 + (10 - sub_fn) + (ackItem['sub_fn'])
if diff_ms > 0:
self.log_info("[Frame cost]\tDL Data PDU Ack (frame): " +
str(diff_ms) +
" ms\tRB Config Index: " +
str(rbConfigIdx) +
"\tAckSN: " +
str(ackItem['ack_sn']) +
"\tTime cost: " +
str((ackItem['time_stamp'] -
log_item['timestamp']).total_seconds()) +
"s\tData TimeStamp: " +
str(log_item['timestamp']) +
"\tAck TimeStamp: " +
str(ackItem['time_stamp']))
alreadyAcked = True
self.rbInfo[rbConfigIdx]['DL']['listAck'].pop(i)
break
if alreadyAcked:
self.rbInfo[rbConfigIdx]['DL']['listSN'] = []
else:
self.rbInfo[rbConfigIdx]['DL']['listSN'].append(
{
'sn': SN,
'sys_fn': pduItem['sys_fn'],
'sub_fn': pduItem['sub_fn'],
'time_stamp': log_item['timestamp']})
elif pduItem['PDU TYPE'] == 'RLCDL CTRL':
self.rbInfo[rbConfigIdx]['cumulativeDLData'] += int(
pduItem['pdu_bytes'])
AckSN = pduItem['SN']
AckSN = int(AckSN.split(" = ")[1])
sys_fn = int(pduItem['sys_fn'])
sub_fn = int(pduItem['sub_fn'])
if sys_fn > maxSys_fn or (
sys_fn == maxSys_fn and sub_fn > maxSub_fn):
maxSys_fn = sys_fn
maxSub_fn = sub_fn
if sys_fn < minSys_fn or (
sys_fn == minSys_fn and sub_fn < minSub_fn):
minSys_fn = sys_fn
minSub_fn = sub_fn
alreadyAcked = False
indexAcked = -1
for i, snItem in enumerate(
self.rbInfo[rbConfigIdx]['UL']['listSN']):
if AckSN == snItem['sn'] + 1:
if sys_fn == snItem['sys_fn']:
diff_ms = (sub_fn - snItem['sub_fn']) * 1
else:
diff_ms = (
sys_fn - snItem['sys_fn'] - 1) * 10 + (10 - snItem['sub_fn']) + (sub_fn)
if diff_ms > 0:
self.log_info("[Frame cost]\tUL Data PDU Ack (frame): " +
str(diff_ms) +
" ms\tRB Config Index: " +
str(rbConfigIdx) +
"\tAckSN: " +
str(AckSN) +
"\tTime cost: " +
str((log_item['timestamp'] -
snItem['time_stamp']).total_seconds()) +
"s\tData TimeStamp: " +
str(snItem['time_stamp']) +
"\tAck TimeStamp: " +
str(log_item['timestamp']))
alreadyAcked = True
indexAcked = i
break
if alreadyAcked:
if indexAcked + \
1 < len(self.rbInfo[rbConfigIdx]['UL']['listSN']):
self.rbInfo[rbConfigIdx]['UL']['listSN'] = self.rbInfo[rbConfigIdx]['UL']['listSN'][indexAcked + 1:]
else:
self.rbInfo[rbConfigIdx]['UL']['listSN'] = []
else:
self.rbInfo[rbConfigIdx]['UL']['listAck'].append(
{
'ack_sn': AckSN,
'sys_fn': pduItem['sys_fn'],
'sub_fn': pduItem['sub_fn'],
'time_stamp': log_item['timestamp']})
if minSys_fn == maxSys_fn:
diff_ms = (maxSub_fn - minSub_fn) * 1
else:
diff_ms = (maxSys_fn - minSys_fn - 1) * 10 + \
(10 - minSub_fn) + (maxSub_fn)
if diff_ms < 100 and diff_ms > 0:
self.log_info("[Intantaneous DL Throughput]\t" +
str(self.rbInfo[rbConfigIdx]['cumulativeDLData'] /
(diff_ms *
1.0)) +
" Bytes/ms\tRB Config Index: " +
str(rbConfigIdx) +
"\tTime Stamp: " +
str(log_item['timestamp']))
self.rbInfo[rbConfigIdx]['cumulativeDLData'] = 0
# s = msg.data.decode_xml().replace("\n", "")
# print minidom.parseString(s).toprettyxml(" ")
# log_item = msg.data.decode()
# print log_item
| 51.119048
| 128
| 0.396879
| 1,846
| 21,470
| 4.387866
| 0.091008
| 0.07284
| 0.119259
| 0.045432
| 0.883951
| 0.866914
| 0.84284
| 0.83679
| 0.798272
| 0.790864
| 0
| 0.009611
| 0.486306
| 21,470
| 419
| 129
| 51.24105
| 0.724816
| 0.108803
| 0
| 0.768072
| 0
| 0
| 0.122506
| 0.013233
| 0
| 0
| 0
| 0
| 0
| 1
| 0.009036
| false
| 0
| 0.006024
| 0
| 0.018072
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a8b7132ec16570c40202dc22c55ac12ee60b2b19
| 2,143
|
py
|
Python
|
home/models.py
|
codejay411/Wheeling_and_dealing
|
26b8133950094e7b65463c8418edd8f5cd1c544c
|
[
"MIT"
] | 1
|
2020-12-26T05:43:49.000Z
|
2020-12-26T05:43:49.000Z
|
home/models.py
|
codejay411/Wheeling_and_dealing
|
26b8133950094e7b65463c8418edd8f5cd1c544c
|
[
"MIT"
] | null | null | null |
home/models.py
|
codejay411/Wheeling_and_dealing
|
26b8133950094e7b65463c8418edd8f5cd1c544c
|
[
"MIT"
] | 2
|
2020-09-11T18:04:42.000Z
|
2021-06-08T17:31:32.000Z
|
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class ngodetail(models.Model):
user = models.OneToOneField(User, null=True, blank=True, on_delete=models.CASCADE)
name = models.CharField(max_length=200, null=True)
city = models.CharField(max_length=200, null=True)
state = models.CharField(max_length=200, null=True)
address = models.CharField(max_length=200, null=True)
phone = models.CharField(max_length=200, null=True)
authority = models.CharField(max_length=200, null=True)
registrationnum = models.CharField(max_length=200)
date_created = models.DateTimeField(auto_now_add=True, null=True)
def __str__(self):
return self.name
class donordetail(models.Model):
user = models.OneToOneField(User, null=True, blank=True, on_delete=models.CASCADE)
name = models.CharField(max_length=200, null=True)
city = models.CharField(max_length=200, null=True)
state = models.CharField(max_length=200, null=True)
address = models.CharField(max_length=200, null=True)
phone = models.CharField(max_length=200, null=True)
date_created = models.DateTimeField(auto_now_add=True, null=True)
def __str__(self):
return self.name
class medicine(models.Model):
medicinename = models.CharField(max_length=200, null=True)
companyname = models.CharField(max_length=200, null=True)
manufacturing =models.DateField()
expiry = models.DateField()
tablets = models.CharField(max_length=200, null=True)
def __str__(self):
return self.medicinename
# class post(models.Model):
# desc = models.CharField(max_length=200, null=True)
# user = models.OneToOneField(User, null=True, blank=True, on_delete=models.CASCADE)
# timestamp=models.DateTimeField(auto_now_add=True, blank=True)
# def __str__(self):
# return self.desc[:7]
# class postngo(models.Model):
# desc = models.CharField(max_length=200, null=True)
# user = models.OneToOneField(User, null=True, blank=True, on_delete=models.CASCADE)
# timestamp=models.DateTimeField(auto_now_add=True, blank=True)
# def __str__(self):
# return self.desc[:7]
| 33.484375
| 86
| 0.744284
| 294
| 2,143
| 5.251701
| 0.187075
| 0.11399
| 0.198187
| 0.264249
| 0.830959
| 0.813472
| 0.813472
| 0.709845
| 0.709845
| 0.709845
| 0
| 0.028556
| 0.133924
| 2,143
| 63
| 87
| 34.015873
| 0.803341
| 0.262716
| 0
| 0.59375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.09375
| false
| 0
| 0.0625
| 0.09375
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 9
|
a8c0597b4abb5d2e651134d4dac7cd8116f08196
| 336,926
|
py
|
Python
|
pysnmp-with-texts/DPS-MIB-NGD-V10.py
|
agustinhenze/mibs.snmplabs.com
|
1fc5c07860542b89212f4c8ab807057d9a9206c7
|
[
"Apache-2.0"
] | 8
|
2019-05-09T17:04:00.000Z
|
2021-06-09T06:50:51.000Z
|
pysnmp-with-texts/DPS-MIB-NGD-V10.py
|
agustinhenze/mibs.snmplabs.com
|
1fc5c07860542b89212f4c8ab807057d9a9206c7
|
[
"Apache-2.0"
] | 4
|
2019-05-31T16:42:59.000Z
|
2020-01-31T21:57:17.000Z
|
pysnmp-with-texts/DPS-MIB-NGD-V10.py
|
agustinhenze/mibs.snmplabs.com
|
1fc5c07860542b89212f4c8ab807057d9a9206c7
|
[
"Apache-2.0"
] | 10
|
2019-04-30T05:51:36.000Z
|
2022-02-16T03:33:41.000Z
|
#
# PySNMP MIB module DPS-MIB-NGD-V10 (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DPS-MIB-NGD-V10
# Produced by pysmi-0.3.4 at Wed May 1 12:54:11 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint")
dpsRTU, = mibBuilder.importSymbols("DPS-MIB-V38", "dpsRTU")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Gauge32, MibIdentifier, TimeTicks, Bits, Counter32, NotificationType, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, Unsigned32, Integer32, ModuleIdentity, Counter64, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "MibIdentifier", "TimeTicks", "Bits", "Counter32", "NotificationType", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "Unsigned32", "Integer32", "ModuleIdentity", "Counter64", "IpAddress")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
dpsRTUp8001Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8001)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8001Set.setDescription('Generated when discrete point 1 is set.')
dpsRTUp9001Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9001)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9001Clr.setDescription('Generated when discrete point 1 clears.')
dpsRTUp8002Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8002)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8002Set.setDescription('Generated when discrete point 2 is set.')
dpsRTUp9002Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9002)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9002Clr.setDescription('Generated when discrete point 2 clears.')
dpsRTUp8003Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8003)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8003Set.setDescription('Generated when discrete point 3 is set.')
dpsRTUp9003Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9003)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9003Clr.setDescription('Generated when discrete point 3 clears.')
dpsRTUp8004Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8004)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8004Set.setDescription('Generated when discrete point 4 is set.')
dpsRTUp9004Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9004)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9004Clr.setDescription('Generated when discrete point 4 clears.')
dpsRTUp8005Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8005)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8005Set.setDescription('Generated when discrete point 5 is set.')
dpsRTUp9005Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9005)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9005Clr.setDescription('Generated when discrete point 5 clears.')
dpsRTUp8006Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8006)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8006Set.setDescription('Generated when discrete point 6 is set.')
dpsRTUp9006Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9006)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9006Clr.setDescription('Generated when discrete point 6 clears.')
dpsRTUp8007Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8007)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8007Set.setDescription('Generated when discrete point 7 is set.')
dpsRTUp9007Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9007)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9007Clr.setDescription('Generated when discrete point 7 clears.')
dpsRTUp8008Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8008)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8008Set.setDescription('Generated when discrete point 8 is set.')
dpsRTUp9008Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9008)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9008Clr.setDescription('Generated when discrete point 8 clears.')
dpsRTUp8009Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8009)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8009Set.setDescription('Generated when discrete point 9 is set.')
dpsRTUp9009Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9009)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9009Clr.setDescription('Generated when discrete point 9 clears.')
dpsRTUp8010Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8010)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8010Set.setDescription('Generated when discrete point 10 is set.')
dpsRTUp9010Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9010)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9010Clr.setDescription('Generated when discrete point 10 clears.')
dpsRTUp8011Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8011)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8011Set.setDescription('Generated when discrete point 11 is set.')
dpsRTUp9011Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9011)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9011Clr.setDescription('Generated when discrete point 11 clears.')
dpsRTUp8012Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8012)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8012Set.setDescription('Generated when discrete point 12 is set.')
dpsRTUp9012Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9012)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9012Clr.setDescription('Generated when discrete point 12 clears.')
dpsRTUp8013Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8013)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8013Set.setDescription('Generated when discrete point 13 is set.')
dpsRTUp9013Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9013)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9013Clr.setDescription('Generated when discrete point 13 clears.')
dpsRTUp8014Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8014)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8014Set.setDescription('Generated when discrete point 14 is set.')
dpsRTUp9014Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9014)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9014Clr.setDescription('Generated when discrete point 14 clears.')
dpsRTUp8015Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8015)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8015Set.setDescription('Generated when discrete point 15 is set.')
dpsRTUp9015Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9015)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9015Clr.setDescription('Generated when discrete point 15 clears.')
dpsRTUp8016Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8016)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8016Set.setDescription('Generated when discrete point 16 is set.')
dpsRTUp9016Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9016)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9016Clr.setDescription('Generated when discrete point 16 clears.')
dpsRTUp8017Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8017)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8017Set.setDescription('Generated when discrete point 17 is set.')
dpsRTUp9017Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9017)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9017Clr.setDescription('Generated when discrete point 17 clears.')
dpsRTUp8018Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8018)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8018Set.setDescription('Generated when discrete point 18 is set.')
dpsRTUp9018Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9018)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9018Clr.setDescription('Generated when discrete point 18 clears.')
dpsRTUp8019Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8019)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8019Set.setDescription('Generated when discrete point 19 is set.')
dpsRTUp9019Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9019)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9019Clr.setDescription('Generated when discrete point 19 clears.')
dpsRTUp8020Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8020)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8020Set.setDescription('Generated when discrete point 20 is set.')
dpsRTUp9020Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9020)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9020Clr.setDescription('Generated when discrete point 20 clears.')
dpsRTUp8021Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8021)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8021Set.setDescription('Generated when discrete point 21 is set.')
dpsRTUp9021Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9021)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9021Clr.setDescription('Generated when discrete point 21 clears.')
dpsRTUp8022Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8022)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8022Set.setDescription('Generated when discrete point 22 is set.')
dpsRTUp9022Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9022)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9022Clr.setDescription('Generated when discrete point 22 clears.')
dpsRTUp8023Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8023)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8023Set.setDescription('Generated when discrete point 23 is set.')
dpsRTUp9023Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9023)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9023Clr.setDescription('Generated when discrete point 23 clears.')
dpsRTUp8024Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8024)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8024Set.setDescription('Generated when discrete point 24 is set.')
dpsRTUp9024Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9024)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9024Clr.setDescription('Generated when discrete point 24 clears.')
dpsRTUp8025Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8025)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8025Set.setDescription('Generated when discrete point 25 is set.')
dpsRTUp9025Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9025)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9025Clr.setDescription('Generated when discrete point 25 clears.')
dpsRTUp8026Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8026)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8026Set.setDescription('Generated when discrete point 26 is set.')
dpsRTUp9026Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9026)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9026Clr.setDescription('Generated when discrete point 26 clears.')
dpsRTUp8027Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8027)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8027Set.setDescription('Generated when discrete point 27 is set.')
dpsRTUp9027Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9027)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9027Clr.setDescription('Generated when discrete point 27 clears.')
dpsRTUp8028Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8028)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8028Set.setDescription('Generated when discrete point 28 is set.')
dpsRTUp9028Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9028)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9028Clr.setDescription('Generated when discrete point 28 clears.')
dpsRTUp8029Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8029)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8029Set.setDescription('Generated when discrete point 29 is set.')
dpsRTUp9029Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9029)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9029Clr.setDescription('Generated when discrete point 29 clears.')
dpsRTUp8030Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8030)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8030Set.setDescription('Generated when discrete point 30 is set.')
dpsRTUp9030Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9030)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9030Clr.setDescription('Generated when discrete point 30 clears.')
dpsRTUp8031Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8031)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8031Set.setDescription('Generated when discrete point 31 is set.')
dpsRTUp9031Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9031)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9031Clr.setDescription('Generated when discrete point 31 clears.')
dpsRTUp8032Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8032)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8032Set.setDescription('Generated when discrete point 32 is set.')
dpsRTUp9032Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9032)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9032Clr.setDescription('Generated when discrete point 32 clears.')
dpsRTUp8033Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8033)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8033Set.setDescription('Generated when discrete point 33 is set.')
dpsRTUp9033Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9033)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9033Clr.setDescription('Generated when discrete point 33 clears.')
dpsRTUp8034Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8034)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8034Set.setDescription('Generated when discrete point 34 is set.')
dpsRTUp9034Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9034)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9034Clr.setDescription('Generated when discrete point 34 clears.')
dpsRTUp8035Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8035)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8035Set.setDescription('Generated when discrete point 35 is set.')
dpsRTUp9035Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9035)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9035Clr.setDescription('Generated when discrete point 35 clears.')
dpsRTUp8036Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8036)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8036Set.setDescription('Generated when discrete point 36 is set.')
dpsRTUp9036Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9036)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9036Clr.setDescription('Generated when discrete point 36 clears.')
dpsRTUp8037Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8037)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8037Set.setDescription('Generated when discrete point 37 is set.')
dpsRTUp9037Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9037)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9037Clr.setDescription('Generated when discrete point 37 clears.')
dpsRTUp8038Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8038)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8038Set.setDescription('Generated when discrete point 38 is set.')
dpsRTUp9038Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9038)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9038Clr.setDescription('Generated when discrete point 38 clears.')
dpsRTUp8039Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8039)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8039Set.setDescription('Generated when discrete point 39 is set.')
dpsRTUp9039Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9039)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9039Clr.setDescription('Generated when discrete point 39 clears.')
dpsRTUp8040Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8040)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8040Set.setDescription('Generated when discrete point 40 is set.')
dpsRTUp9040Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9040)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9040Clr.setDescription('Generated when discrete point 40 clears.')
dpsRTUp8041Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8041)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8041Set.setDescription('Generated when discrete point 41 is set.')
dpsRTUp9041Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9041)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9041Clr.setDescription('Generated when discrete point 41 clears.')
dpsRTUp8042Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8042)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8042Set.setDescription('Generated when discrete point 42 is set.')
dpsRTUp9042Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9042)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9042Clr.setDescription('Generated when discrete point 42 clears.')
dpsRTUp8043Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8043)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8043Set.setDescription('Generated when discrete point 43 is set.')
dpsRTUp9043Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9043)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9043Clr.setDescription('Generated when discrete point 43 clears.')
dpsRTUp8044Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8044)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8044Set.setDescription('Generated when discrete point 44 is set.')
dpsRTUp9044Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9044)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9044Clr.setDescription('Generated when discrete point 44 clears.')
dpsRTUp8045Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8045)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8045Set.setDescription('Generated when discrete point 45 is set.')
dpsRTUp9045Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9045)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9045Clr.setDescription('Generated when discrete point 45 clears.')
dpsRTUp8046Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8046)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8046Set.setDescription('Generated when discrete point 46 is set.')
dpsRTUp9046Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9046)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9046Clr.setDescription('Generated when discrete point 46 clears.')
dpsRTUp8047Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8047)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8047Set.setDescription('Generated when discrete point 47 is set.')
dpsRTUp9047Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9047)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9047Clr.setDescription('Generated when discrete point 47 clears.')
dpsRTUp8048Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8048)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8048Set.setDescription('Generated when discrete point 48 is set.')
dpsRTUp9048Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9048)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9048Clr.setDescription('Generated when discrete point 48 clears.')
dpsRTUp8049Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8049)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8049Set.setDescription('Generated when discrete point 49 is set.')
dpsRTUp9049Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9049)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9049Clr.setDescription('Generated when discrete point 49 clears.')
dpsRTUp8050Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8050)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8050Set.setDescription('Generated when discrete point 50 is set.')
dpsRTUp9050Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9050)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9050Clr.setDescription('Generated when discrete point 50 clears.')
dpsRTUp8051Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8051)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8051Set.setDescription('Generated when discrete point 51 is set.')
dpsRTUp9051Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9051)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9051Clr.setDescription('Generated when discrete point 51 clears.')
dpsRTUp8052Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8052)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8052Set.setDescription('Generated when discrete point 52 is set.')
dpsRTUp9052Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9052)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9052Clr.setDescription('Generated when discrete point 52 clears.')
dpsRTUp8053Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8053)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8053Set.setDescription('Generated when discrete point 53 is set.')
dpsRTUp9053Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9053)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9053Clr.setDescription('Generated when discrete point 53 clears.')
dpsRTUp8054Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8054)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8054Set.setDescription('Generated when discrete point 54 is set.')
dpsRTUp9054Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9054)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9054Clr.setDescription('Generated when discrete point 54 clears.')
dpsRTUp8055Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8055)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8055Set.setDescription('Generated when discrete point 55 is set.')
dpsRTUp9055Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9055)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9055Clr.setDescription('Generated when discrete point 55 clears.')
dpsRTUp8056Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8056)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8056Set.setDescription('Generated when discrete point 56 is set.')
dpsRTUp9056Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9056)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9056Clr.setDescription('Generated when discrete point 56 clears.')
dpsRTUp8057Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8057)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8057Set.setDescription('Generated when discrete point 57 is set.')
dpsRTUp9057Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9057)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9057Clr.setDescription('Generated when discrete point 57 clears.')
dpsRTUp8058Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8058)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8058Set.setDescription('Generated when discrete point 58 is set.')
dpsRTUp9058Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9058)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9058Clr.setDescription('Generated when discrete point 58 clears.')
dpsRTUp8059Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8059)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8059Set.setDescription('Generated when discrete point 59 is set.')
dpsRTUp9059Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9059)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9059Clr.setDescription('Generated when discrete point 59 clears.')
dpsRTUp8060Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8060)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8060Set.setDescription('Generated when discrete point 60 is set.')
dpsRTUp9060Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9060)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9060Clr.setDescription('Generated when discrete point 60 clears.')
dpsRTUp8061Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8061)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8061Set.setDescription('Generated when discrete point 61 is set.')
dpsRTUp9061Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9061)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9061Clr.setDescription('Generated when discrete point 61 clears.')
dpsRTUp8062Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8062)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8062Set.setDescription('Generated when discrete point 62 is set.')
dpsRTUp9062Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9062)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9062Clr.setDescription('Generated when discrete point 62 clears.')
dpsRTUp8063Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8063)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8063Set.setDescription('Generated when discrete point 63 is set.')
dpsRTUp9063Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9063)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9063Clr.setDescription('Generated when discrete point 63 clears.')
dpsRTUp8064Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8064)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8064Set.setDescription('Generated when discrete point 64 is set.')
dpsRTUp9064Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9064)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9064Clr.setDescription('Generated when discrete point 64 clears.')
dpsRTUp8065Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8065)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8065Set.setDescription('Generated when ping target 1 fails.')
dpsRTUp9065Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9065)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9065Clr.setDescription('Generated when ping target 1 reappears.')
dpsRTUp8066Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8066)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8066Set.setDescription('Generated when ping target 2 fails.')
dpsRTUp9066Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9066)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9066Clr.setDescription('Generated when ping target 2 reappears.')
dpsRTUp8067Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8067)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8067Set.setDescription('Generated when ping target 3 fails.')
dpsRTUp9067Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9067)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9067Clr.setDescription('Generated when ping target 3 reappears.')
dpsRTUp8068Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8068)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8068Set.setDescription('Generated when ping target 4 fails.')
dpsRTUp9068Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9068)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9068Clr.setDescription('Generated when ping target 4 reappears.')
dpsRTUp8069Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8069)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8069Set.setDescription('Generated when ping target 5 fails.')
dpsRTUp9069Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9069)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9069Clr.setDescription('Generated when ping target 5 reappears.')
dpsRTUp8070Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8070)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8070Set.setDescription('Generated when ping target 6 fails.')
dpsRTUp9070Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9070)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9070Clr.setDescription('Generated when ping target 6 reappears.')
dpsRTUp8071Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8071)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8071Set.setDescription('Generated when ping target 7 fails.')
dpsRTUp9071Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9071)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9071Clr.setDescription('Generated when ping target 7 reappears.')
dpsRTUp8072Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8072)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8072Set.setDescription('Generated when ping target 8 fails.')
dpsRTUp9072Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9072)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9072Clr.setDescription('Generated when ping target 8 reappears.')
dpsRTUp8073Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8073)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8073Set.setDescription('Generated when ping target 9 fails.')
dpsRTUp9073Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9073)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9073Clr.setDescription('Generated when ping target 9 reappears.')
dpsRTUp8074Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8074)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8074Set.setDescription('Generated when ping target 10 fails.')
dpsRTUp9074Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9074)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9074Clr.setDescription('Generated when ping target 10 reappears.')
dpsRTUp8075Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8075)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8075Set.setDescription('Generated when ping target 11 fails.')
dpsRTUp9075Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9075)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9075Clr.setDescription('Generated when ping target 11 reappears.')
dpsRTUp8076Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8076)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8076Set.setDescription('Generated when ping target 12 fails.')
dpsRTUp9076Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9076)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9076Clr.setDescription('Generated when ping target 12 reappears.')
dpsRTUp8077Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8077)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8077Set.setDescription('Generated when ping target 13 fails.')
dpsRTUp9077Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9077)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9077Clr.setDescription('Generated when ping target 13 reappears.')
dpsRTUp8078Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8078)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8078Set.setDescription('Generated when ping target 14 fails.')
dpsRTUp9078Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9078)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9078Clr.setDescription('Generated when ping target 14 reappears.')
dpsRTUp8079Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8079)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8079Set.setDescription('Generated when ping target 15 fails.')
dpsRTUp9079Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9079)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9079Clr.setDescription('Generated when ping target 15 reappears.')
dpsRTUp8080Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8080)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8080Set.setDescription('Generated when ping target 16 fails.')
dpsRTUp9080Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9080)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9080Clr.setDescription('Generated when ping target 16 reappears.')
dpsRTUp8081Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8081)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8081Set.setDescription('Generated when ping target 17 fails.')
dpsRTUp9081Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9081)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9081Clr.setDescription('Generated when ping target 17 reappears.')
dpsRTUp8082Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8082)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8082Set.setDescription('Generated when ping target 18 fails.')
dpsRTUp9082Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9082)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9082Clr.setDescription('Generated when ping target 18 reappears.')
dpsRTUp8083Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8083)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8083Set.setDescription('Generated when ping target 19 fails.')
dpsRTUp9083Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9083)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9083Clr.setDescription('Generated when ping target 19 reappears.')
dpsRTUp8084Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8084)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8084Set.setDescription('Generated when ping target 20 fails.')
dpsRTUp9084Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9084)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9084Clr.setDescription('Generated when ping target 20 reappears.')
dpsRTUp8085Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8085)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8085Set.setDescription('Generated when ping target 21 fails.')
dpsRTUp9085Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9085)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9085Clr.setDescription('Generated when ping target 21 reappears.')
dpsRTUp8086Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8086)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8086Set.setDescription('Generated when ping target 22 fails.')
dpsRTUp9086Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9086)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9086Clr.setDescription('Generated when ping target 22 reappears.')
dpsRTUp8087Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8087)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8087Set.setDescription('Generated when ping target 23 fails.')
dpsRTUp9087Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9087)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9087Clr.setDescription('Generated when ping target 23 reappears.')
dpsRTUp8088Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8088)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8088Set.setDescription('Generated when ping target 24 fails.')
dpsRTUp9088Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9088)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9088Clr.setDescription('Generated when ping target 24 reappears.')
dpsRTUp8089Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8089)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8089Set.setDescription('Generated when ping target 25 fails.')
dpsRTUp9089Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9089)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9089Clr.setDescription('Generated when ping target 25 reappears.')
dpsRTUp8090Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8090)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8090Set.setDescription('Generated when ping target 26 fails.')
dpsRTUp9090Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9090)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9090Clr.setDescription('Generated when ping target 26 reappears.')
dpsRTUp8091Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8091)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8091Set.setDescription('Generated when ping target 27 fails.')
dpsRTUp9091Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9091)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9091Clr.setDescription('Generated when ping target 27 reappears.')
dpsRTUp8092Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8092)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8092Set.setDescription('Generated when ping target 28 fails.')
dpsRTUp9092Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9092)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9092Clr.setDescription('Generated when ping target 28 reappears.')
dpsRTUp8093Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8093)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8093Set.setDescription('Generated when ping target 29 fails.')
dpsRTUp9093Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9093)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9093Clr.setDescription('Generated when ping target 29 reappears.')
dpsRTUp8094Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8094)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8094Set.setDescription('Generated when ping target 30 fails.')
dpsRTUp9094Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9094)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9094Clr.setDescription('Generated when ping target 30 reappears.')
dpsRTUp8095Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8095)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8095Set.setDescription('Generated when ping target 31 fails.')
dpsRTUp9095Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9095)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9095Clr.setDescription('Generated when ping target 31 reappears.')
dpsRTUp8096Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8096)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8096Set.setDescription('Generated when ping target 32 fails.')
dpsRTUp9096Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9096)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9096Clr.setDescription('Generated when ping target 32 reappears.')
dpsRTUp8097Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8097)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8097Set.setDescription('Generated when discrete point 97 is set.')
dpsRTUp9097Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9097)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9097Clr.setDescription('Generated when discrete point 97 clears.')
dpsRTUp8098Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8098)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8098Set.setDescription('Generated when discrete point 98 is set.')
dpsRTUp9098Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9098)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9098Clr.setDescription('Generated when discrete point 98 clears.')
dpsRTUp8099Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8099)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8099Set.setDescription('Generated when discrete point 99 is set.')
dpsRTUp9099Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9099)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9099Clr.setDescription('Generated when discrete point 99 clears.')
dpsRTUp8100Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8100)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8100Set.setDescription('Generated when discrete point 64 is set.')
dpsRTUp9100Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9100)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9100Clr.setDescription('Generated when discrete point 64 clears.')
dpsRTUp8101Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8101)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8101Set.setDescription('Generated when discrete point 101 is set.')
dpsRTUp9101Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9101)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9101Clr.setDescription('Generated when discrete point 101 clears.')
dpsRTUp8102Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8102)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8102Set.setDescription('Generated when discrete point 102 is set.')
dpsRTUp9102Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9102)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9102Clr.setDescription('Generated when discrete point 102 clears.')
dpsRTUp8103Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8103)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8103Set.setDescription('Generated when discrete point 103 is set.')
dpsRTUp9103Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9103)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9103Clr.setDescription('Generated when discrete point 103 clears.')
dpsRTUp8104Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8104)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8104Set.setDescription('Generated when discrete point 104 is set.')
dpsRTUp9104Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9104)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9104Clr.setDescription('Generated when discrete point 104 clears.')
dpsRTUp8105Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8105)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8105Set.setDescription('Generated when discrete point 105 is set.')
dpsRTUp9105Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9105)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9105Clr.setDescription('Generated when discrete point 105 clears.')
dpsRTUp8106Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8106)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8106Set.setDescription('Generated when discrete point 106 is set.')
dpsRTUp9106Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9106)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9106Clr.setDescription('Generated when discrete point 106 clears.')
dpsRTUp8107Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8107)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8107Set.setDescription('Generated when discrete point 107 is set.')
dpsRTUp9107Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9107)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9107Clr.setDescription('Generated when discrete point 107 clears.')
dpsRTUp8108Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8108)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8108Set.setDescription('Generated when discrete point 108 is set.')
dpsRTUp9108Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9108)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9108Clr.setDescription('Generated when discrete point 108 clears.')
dpsRTUp8109Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8109)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8109Set.setDescription('Generated when discrete point 109 is set.')
dpsRTUp9109Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9109)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9109Clr.setDescription('Generated when discrete point 109 clears.')
dpsRTUp8110Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8110)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8110Set.setDescription('Generated when discrete point 110 is set.')
dpsRTUp9110Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9110)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9110Clr.setDescription('Generated when discrete point 110 clears.')
dpsRTUp8111Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8111)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8111Set.setDescription('Generated when discrete point 111 is set.')
dpsRTUp9111Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9111)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9111Clr.setDescription('Generated when discrete point 111 clears.')
dpsRTUp8112Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8112)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8112Set.setDescription('Generated when discrete point 112 is set.')
dpsRTUp9112Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9112)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9112Clr.setDescription('Generated when discrete point 112 clears.')
dpsRTUp8113Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8113)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8113Set.setDescription('Generated when discrete point 113 is set.')
dpsRTUp9113Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9113)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9113Clr.setDescription('Generated when discrete point 113 clears.')
dpsRTUp8114Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8114)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8114Set.setDescription('Generated when discrete point 114 is set.')
dpsRTUp9114Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9114)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9114Clr.setDescription('Generated when discrete point 114 clears.')
dpsRTUp8115Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8115)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8115Set.setDescription('Generated when discrete point 115 is set.')
dpsRTUp9115Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9115)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9115Clr.setDescription('Generated when discrete point 115 clears.')
dpsRTUp8116Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8116)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8116Set.setDescription('Generated when discrete point 116 is set.')
dpsRTUp9116Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9116)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9116Clr.setDescription('Generated when discrete point 116 clears.')
dpsRTUp8117Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8117)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8117Set.setDescription('Generated when discrete point 117 is set.')
dpsRTUp9117Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9117)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9117Clr.setDescription('Generated when discrete point 117 clears.')
dpsRTUp8118Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8118)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8118Set.setDescription('Generated when discrete point 118 is set.')
dpsRTUp9118Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9118)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9118Clr.setDescription('Generated when discrete point 118 clears.')
dpsRTUp8119Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8119)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8119Set.setDescription('Generated when discrete point 119 is set.')
dpsRTUp9119Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9119)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9119Clr.setDescription('Generated when discrete point 119 clears.')
dpsRTUp8120Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8120)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8120Set.setDescription('Generated when discrete point 120 is set.')
dpsRTUp9120Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9120)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9120Clr.setDescription('Generated when discrete point 120 clears.')
dpsRTUp8121Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8121)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8121Set.setDescription('Generated when discrete point 121 is set.')
dpsRTUp9121Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9121)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9121Clr.setDescription('Generated when discrete point 121 clears.')
dpsRTUp8122Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8122)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8122Set.setDescription('Generated when discrete point 122 is set.')
dpsRTUp9122Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9122)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9122Clr.setDescription('Generated when discrete point 122 clears.')
dpsRTUp8123Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8123)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8123Set.setDescription('Generated when discrete point 123 is set.')
dpsRTUp9123Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9123)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9123Clr.setDescription('Generated when discrete point 123 clears.')
dpsRTUp8124Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8124)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8124Set.setDescription('Generated when discrete point 124 is set.')
dpsRTUp9124Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9124)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9124Clr.setDescription('Generated when discrete point 124 clears.')
dpsRTUp8125Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8125)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8125Set.setDescription('Generated when discrete point 125 is set.')
dpsRTUp9125Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9125)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9125Clr.setDescription('Generated when discrete point 125 clears.')
dpsRTUp8126Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8126)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8126Set.setDescription('Generated when discrete point 126 is set.')
dpsRTUp9126Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9126)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9126Clr.setDescription('Generated when discrete point 126 clears.')
dpsRTUp8127Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8127)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8127Set.setDescription('Generated when discrete point 127 is set.')
dpsRTUp9127Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9127)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9127Clr.setDescription('Generated when discrete point 127 clears.')
dpsRTUp8128Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8128)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8128Set.setDescription('Generated when discrete point 128 is set.')
dpsRTUp9128Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9128)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9128Clr.setDescription('Generated when discrete point 128 clears.')
dpsRTUp8129Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8129)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8129Set.setDescription('Generated when channel 1 minor under threshold is violated')
dpsRTUp9129Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9129)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9129Clr.setDescription('Generated when channel 1 minor under threshold is restored')
dpsRTUp8130Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8130)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8130Set.setDescription('Generated when channel 1 minor over threshold is violated')
dpsRTUp9130Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9130)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9130Clr.setDescription('Generated when channel 1 minor over threshold is restored')
dpsRTUp8131Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8131)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8131Set.setDescription('Generated when channel 1 major under threshold is violated')
dpsRTUp9131Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9131)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9131Clr.setDescription('Generated when channel 1 major under threshold is restored')
dpsRTUp8132Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8132)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8132Set.setDescription('Generated when channel 1 major over threshold is violated')
dpsRTUp9132Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9132)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9132Clr.setDescription('Generated when channel 1 major over threshold is restored')
dpsRTUp8133Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8133)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8133Set.setDescription('Generated when discrete point 133 is set.')
dpsRTUp9133Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9133)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9133Clr.setDescription('Generated when discrete point 133 clears.')
dpsRTUp8134Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8134)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8134Set.setDescription('Generated when discrete point 134 is set.')
dpsRTUp9134Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9134)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9134Clr.setDescription('Generated when discrete point 134 clears.')
dpsRTUp8135Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8135)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8135Set.setDescription('Generated when discrete point 135 is set.')
dpsRTUp9135Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9135)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9135Clr.setDescription('Generated when discrete point 135 clears.')
dpsRTUp8136Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8136)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8136Set.setDescription('Generated when discrete point 136 is set.')
dpsRTUp9136Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9136)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9136Clr.setDescription('Generated when discrete point 136 clears.')
dpsRTUp8137Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8137)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8137Set.setDescription('Generated when discrete point 137 is set.')
dpsRTUp9137Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9137)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9137Clr.setDescription('Generated when discrete point 137 clears.')
dpsRTUp8138Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8138)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8138Set.setDescription('Generated when discrete point 138 is set.')
dpsRTUp9138Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9138)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9138Clr.setDescription('Generated when discrete point 138 clears.')
dpsRTUp8139Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8139)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8139Set.setDescription('Generated when discrete point 139 is set.')
dpsRTUp9139Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9139)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9139Clr.setDescription('Generated when discrete point 139 clears.')
dpsRTUp8140Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8140)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8140Set.setDescription('Generated when discrete point 140 is set.')
dpsRTUp9140Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9140)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9140Clr.setDescription('Generated when discrete point 140 clears.')
dpsRTUp8141Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8141)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8141Set.setDescription('Generated when discrete point 141 is set.')
dpsRTUp9141Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9141)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9141Clr.setDescription('Generated when discrete point 141 clears.')
dpsRTUp8142Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8142)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8142Set.setDescription('Generated when discrete point 142 is set.')
dpsRTUp9142Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9142)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9142Clr.setDescription('Generated when discrete point 142 clears.')
dpsRTUp8143Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8143)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8143Set.setDescription('Generated when discrete point 143 is set.')
dpsRTUp9143Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9143)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9143Clr.setDescription('Generated when discrete point 143 clears.')
dpsRTUp8144Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8144)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8144Set.setDescription('Generated when discrete point 144 is set.')
dpsRTUp9144Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9144)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9144Clr.setDescription('Generated when discrete point 144 clears.')
dpsRTUp8145Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8145)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8145Set.setDescription('Generated when discrete point 145 is set.')
dpsRTUp9145Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9145)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9145Clr.setDescription('Generated when discrete point 145 clears.')
dpsRTUp8146Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8146)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8146Set.setDescription('Generated when discrete point 146 is set.')
dpsRTUp9146Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9146)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9146Clr.setDescription('Generated when discrete point 146 clears.')
dpsRTUp8147Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8147)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8147Set.setDescription('Generated when discrete point 147 is set.')
dpsRTUp9147Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9147)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9147Clr.setDescription('Generated when discrete point 147 clears.')
dpsRTUp8148Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8148)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8148Set.setDescription('Generated when discrete point 148 is set.')
dpsRTUp9148Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9148)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9148Clr.setDescription('Generated when discrete point 148 clears.')
dpsRTUp8149Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8149)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8149Set.setDescription('Generated when discrete point 149 is set.')
dpsRTUp9149Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9149)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9149Clr.setDescription('Generated when discrete point 149 clears.')
dpsRTUp8150Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8150)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8150Set.setDescription('Generated when discrete point 150 is set.')
dpsRTUp9150Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9150)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9150Clr.setDescription('Generated when discrete point 150 clears.')
dpsRTUp8151Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8151)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8151Set.setDescription('Generated when discrete point 151 is set.')
dpsRTUp9151Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9151)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9151Clr.setDescription('Generated when discrete point 151 clears.')
dpsRTUp8152Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8152)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8152Set.setDescription('Generated when discrete point 152 is set.')
dpsRTUp9152Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9152)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9152Clr.setDescription('Generated when discrete point 152 clears.')
dpsRTUp8153Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8153)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8153Set.setDescription('Generated when discrete point 153 is set.')
dpsRTUp9153Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9153)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9153Clr.setDescription('Generated when discrete point 153 clears.')
dpsRTUp8154Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8154)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8154Set.setDescription('Generated when discrete point 154 is set.')
dpsRTUp9154Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9154)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9154Clr.setDescription('Generated when discrete point 154 clears.')
dpsRTUp8155Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8155)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8155Set.setDescription('Generated when discrete point 155 is set.')
dpsRTUp9155Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9155)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9155Clr.setDescription('Generated when discrete point 155 clears.')
dpsRTUp8156Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8156)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8156Set.setDescription('Generated when discrete point 156 is set.')
dpsRTUp9156Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9156)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9156Clr.setDescription('Generated when discrete point 156 clears.')
dpsRTUp8157Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8157)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8157Set.setDescription('Generated when discrete point 157 is set.')
dpsRTUp9157Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9157)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9157Clr.setDescription('Generated when discrete point 157 clears.')
dpsRTUp8158Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8158)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8158Set.setDescription('Generated when discrete point 158 is set.')
dpsRTUp9158Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9158)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9158Clr.setDescription('Generated when discrete point 158 clears.')
dpsRTUp8159Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8159)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8159Set.setDescription('Generated when discrete point 159 is set.')
dpsRTUp9159Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9159)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9159Clr.setDescription('Generated when discrete point 159 clears.')
dpsRTUp8160Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8160)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8160Set.setDescription('Generated when discrete point 160 is set.')
dpsRTUp9160Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9160)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9160Clr.setDescription('Generated when discrete point 160 clears.')
dpsRTUp8161Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8161)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8161Set.setDescription('Generated when discrete point 161 is set.')
dpsRTUp9161Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9161)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9161Clr.setDescription('Generated when discrete point 161 clears.')
dpsRTUp8162Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8162)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8162Set.setDescription('Generated when discrete point 162 is set.')
dpsRTUp9162Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9162)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9162Clr.setDescription('Generated when discrete point 162 clears.')
dpsRTUp8163Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8163)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8163Set.setDescription('Generated when discrete point 163 is set.')
dpsRTUp9163Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9163)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9163Clr.setDescription('Generated when discrete point 163 clears.')
dpsRTUp8164Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8164)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8164Set.setDescription('Generated when discrete point 164 is set.')
dpsRTUp9164Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9164)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9164Clr.setDescription('Generated when discrete point 164 clears.')
dpsRTUp8165Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8165)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8165Set.setDescription('Generated when discrete point 165 is set.')
dpsRTUp9165Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9165)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9165Clr.setDescription('Generated when discrete point 165 clears.')
dpsRTUp8166Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8166)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8166Set.setDescription('Generated when discrete point 166 is set.')
dpsRTUp9166Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9166)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9166Clr.setDescription('Generated when discrete point 166 clears.')
dpsRTUp8167Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8167)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8167Set.setDescription('Generated when discrete point 167 is set.')
dpsRTUp9167Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9167)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9167Clr.setDescription('Generated when discrete point 167 clears.')
dpsRTUp8168Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8168)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8168Set.setDescription('Generated when discrete point 168 is set.')
dpsRTUp9168Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9168)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9168Clr.setDescription('Generated when discrete point 168 clears.')
dpsRTUp8169Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8169)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8169Set.setDescription('Generated when discrete point 169 is set.')
dpsRTUp9169Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9169)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9169Clr.setDescription('Generated when discrete point 169 clears.')
dpsRTUp8170Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8170)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8170Set.setDescription('Generated when discrete point 170 is set.')
dpsRTUp9170Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9170)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9170Clr.setDescription('Generated when discrete point 170 clears.')
dpsRTUp8171Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8171)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8171Set.setDescription('Generated when discrete point 171 is set.')
dpsRTUp9171Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9171)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9171Clr.setDescription('Generated when discrete point 171 clears.')
dpsRTUp8172Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8172)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8172Set.setDescription('Generated when discrete point 172 is set.')
dpsRTUp9172Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9172)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9172Clr.setDescription('Generated when discrete point 172 clears.')
dpsRTUp8173Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8173)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8173Set.setDescription('Generated when discrete point 173 is set.')
dpsRTUp9173Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9173)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9173Clr.setDescription('Generated when discrete point 173 clears.')
dpsRTUp8174Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8174)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8174Set.setDescription('Generated when discrete point 174 is set.')
dpsRTUp9174Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9174)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9174Clr.setDescription('Generated when discrete point 174 clears.')
dpsRTUp8175Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8175)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8175Set.setDescription('Generated when discrete point 175 is set.')
dpsRTUp9175Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9175)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9175Clr.setDescription('Generated when discrete point 175 clears.')
dpsRTUp8176Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8176)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8176Set.setDescription('Generated when discrete point 176 is set.')
dpsRTUp9176Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9176)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9176Clr.setDescription('Generated when discrete point 176 clears.')
dpsRTUp8193Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8193)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8193Set.setDescription('Generated when channel 2 minor under threshold is violated')
dpsRTUp9193Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9193)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9193Clr.setDescription('Generated when channel 2 minor under threshold is restored')
dpsRTUp8194Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8194)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8194Set.setDescription('Generated when channel 2 minor over threshold is violated')
dpsRTUp9194Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9194)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9194Clr.setDescription('Generated when channel 2 minor over threshold is restored')
dpsRTUp8195Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8195)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8195Set.setDescription('Generated when channel 2 major under threshold is violated')
dpsRTUp9195Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9195)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9195Clr.setDescription('Generated when channel 2 major under threshold is restored')
dpsRTUp8196Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8196)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8196Set.setDescription('Generated when channel 2 major over threshold is violated')
dpsRTUp9196Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9196)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9196Clr.setDescription('Generated when channel 2 major over threshold is restored')
dpsRTUp8197Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8197)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8197Set.setDescription('Generated when discrete point 197 is set.')
dpsRTUp9197Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9197)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9197Clr.setDescription('Generated when discrete point 197 clears.')
dpsRTUp8198Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8198)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8198Set.setDescription('Generated when discrete point 198 is set.')
dpsRTUp9198Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9198)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9198Clr.setDescription('Generated when discrete point 198 clears.')
dpsRTUp8199Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8199)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8199Set.setDescription('Generated when discrete point 199 is set.')
dpsRTUp9199Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9199)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9199Clr.setDescription('Generated when discrete point 199 clears.')
dpsRTUp8200Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8200)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8200Set.setDescription('Generated when discrete point 200 is set.')
dpsRTUp9200Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9200)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9200Clr.setDescription('Generated when discrete point 200 clears.')
dpsRTUp8201Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8201)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8201Set.setDescription('Generated when discrete point 201 is set.')
dpsRTUp9201Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9201)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9201Clr.setDescription('Generated when discrete point 201 clears.')
dpsRTUp8202Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8202)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8202Set.setDescription('Generated when discrete point 202 is set.')
dpsRTUp9202Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9202)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9202Clr.setDescription('Generated when discrete point 202 clears.')
dpsRTUp8203Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8203)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8203Set.setDescription('Generated when discrete point 203 is set.')
dpsRTUp9203Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9203)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9203Clr.setDescription('Generated when discrete point 203 clears.')
dpsRTUp8204Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8204)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8204Set.setDescription('Generated when discrete point 204 is set.')
dpsRTUp9204Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9204)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9204Clr.setDescription('Generated when discrete point 204 clears.')
dpsRTUp8205Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8205)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8205Set.setDescription('Generated when discrete point 205 is set.')
dpsRTUp9205Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9205)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9205Clr.setDescription('Generated when discrete point 205 clears.')
dpsRTUp8206Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8206)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8206Set.setDescription('Generated when discrete point 206 is set.')
dpsRTUp9206Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9206)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9206Clr.setDescription('Generated when discrete point 206 clears.')
dpsRTUp8207Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8207)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8207Set.setDescription('Generated when discrete point 207 is set.')
dpsRTUp9207Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9207)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9207Clr.setDescription('Generated when discrete point 207 clears.')
dpsRTUp8208Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8208)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8208Set.setDescription('Generated when discrete point 208 is set.')
dpsRTUp9208Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9208)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9208Clr.setDescription('Generated when discrete point 208 clears.')
dpsRTUp8209Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8209)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8209Set.setDescription('Generated when discrete point 209 is set.')
dpsRTUp9209Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9209)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9209Clr.setDescription('Generated when discrete point 209 clears.')
dpsRTUp8210Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8210)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8210Set.setDescription('Generated when discrete point 210 is set.')
dpsRTUp9210Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9210)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9210Clr.setDescription('Generated when discrete point 210 clears.')
dpsRTUp8211Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8211)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8211Set.setDescription('Generated when discrete point 211 is set.')
dpsRTUp9211Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9211)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9211Clr.setDescription('Generated when discrete point 211 clears.')
dpsRTUp8212Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8212)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8212Set.setDescription('Generated when discrete point 212 is set.')
dpsRTUp9212Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9212)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9212Clr.setDescription('Generated when discrete point 212 clears.')
dpsRTUp8213Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8213)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8213Set.setDescription('Generated when discrete point 213 is set.')
dpsRTUp9213Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9213)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9213Clr.setDescription('Generated when discrete point 213 clears.')
dpsRTUp8214Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8214)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8214Set.setDescription('Generated when discrete point 214 is set.')
dpsRTUp9214Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9214)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9214Clr.setDescription('Generated when discrete point 214 clears.')
dpsRTUp8215Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8215)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8215Set.setDescription('Generated when discrete point 215 is set.')
dpsRTUp9215Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9215)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9215Clr.setDescription('Generated when discrete point 215 clears.')
dpsRTUp8216Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8216)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8216Set.setDescription('Generated when discrete point 216 is set.')
dpsRTUp9216Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9216)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9216Clr.setDescription('Generated when discrete point 216 clears.')
dpsRTUp8217Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8217)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8217Set.setDescription('Generated when discrete point 217 is set.')
dpsRTUp9217Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9217)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9217Clr.setDescription('Generated when discrete point 217 clears.')
dpsRTUp8218Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8218)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8218Set.setDescription('Generated when discrete point 218 is set.')
dpsRTUp9218Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9218)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9218Clr.setDescription('Generated when discrete point 218 clears.')
dpsRTUp8219Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8219)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8219Set.setDescription('Generated when discrete point 219 is set.')
dpsRTUp9219Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9219)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9219Clr.setDescription('Generated when discrete point 219 clears.')
dpsRTUp8220Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8220)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8220Set.setDescription('Generated when discrete point 220 is set.')
dpsRTUp9220Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9220)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9220Clr.setDescription('Generated when discrete point 220 clears.')
dpsRTUp8221Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8221)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8221Set.setDescription('Generated when discrete point 221 is set.')
dpsRTUp9221Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9221)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9221Clr.setDescription('Generated when discrete point 221 clears.')
dpsRTUp8222Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8222)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8222Set.setDescription('Generated when discrete point 222 is set.')
dpsRTUp9222Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9222)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9222Clr.setDescription('Generated when discrete point 222 clears.')
dpsRTUp8223Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8223)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8223Set.setDescription('Generated when discrete point 223 is set.')
dpsRTUp9223Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9223)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9223Clr.setDescription('Generated when discrete point 223 clears.')
dpsRTUp8224Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8224)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8224Set.setDescription('Generated when discrete point 224 is set.')
dpsRTUp9224Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9224)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9224Clr.setDescription('Generated when discrete point 224 clears.')
dpsRTUp8225Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8225)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8225Set.setDescription('Generated when discrete point 225 is set.')
dpsRTUp9225Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9225)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9225Clr.setDescription('Generated when discrete point 225 clears.')
dpsRTUp8226Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8226)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8226Set.setDescription('Generated when discrete point 226 is set.')
dpsRTUp9226Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9226)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9226Clr.setDescription('Generated when discrete point 226 clears.')
dpsRTUp8227Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8227)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8227Set.setDescription('Generated when discrete point 227 is set.')
dpsRTUp9227Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9227)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9227Clr.setDescription('Generated when discrete point 227 clears.')
dpsRTUp8228Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8228)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8228Set.setDescription('Generated when discrete point 228 is set.')
dpsRTUp9228Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9228)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9228Clr.setDescription('Generated when discrete point 228 clears.')
dpsRTUp8229Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8229)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8229Set.setDescription('Generated when discrete point 229 is set.')
dpsRTUp9229Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9229)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9229Clr.setDescription('Generated when discrete point 229 clears.')
dpsRTUp8230Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8230)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8230Set.setDescription('Generated when discrete point 230 is set.')
dpsRTUp9230Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9230)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9230Clr.setDescription('Generated when discrete point 230 clears.')
dpsRTUp8231Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8231)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8231Set.setDescription('Generated when discrete point 231 is set.')
dpsRTUp9231Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9231)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9231Clr.setDescription('Generated when discrete point 231 clears.')
dpsRTUp8232Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8232)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8232Set.setDescription('Generated when discrete point 232 is set.')
dpsRTUp9232Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9232)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9232Clr.setDescription('Generated when discrete point 232 clears.')
dpsRTUp8233Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8233)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8233Set.setDescription('Generated when discrete point 233 is set.')
dpsRTUp9233Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9233)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9233Clr.setDescription('Generated when discrete point 233 clears.')
dpsRTUp8234Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8234)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8234Set.setDescription('Generated when discrete point 234 is set.')
dpsRTUp9234Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9234)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9234Clr.setDescription('Generated when discrete point 234 clears.')
dpsRTUp8235Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8235)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8235Set.setDescription('Generated when discrete point 235 is set.')
dpsRTUp9235Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9235)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9235Clr.setDescription('Generated when discrete point 235 clears.')
dpsRTUp8236Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8236)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8236Set.setDescription('Generated when discrete point 236 is set.')
dpsRTUp9236Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9236)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9236Clr.setDescription('Generated when discrete point 236 clears.')
dpsRTUp8237Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8237)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8237Set.setDescription('Generated when discrete point 237 is set.')
dpsRTUp9237Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9237)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9237Clr.setDescription('Generated when discrete point 237 clears.')
dpsRTUp8238Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8238)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8238Set.setDescription('Generated when discrete point 238 is set.')
dpsRTUp9238Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9238)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9238Clr.setDescription('Generated when discrete point 238 clears.')
dpsRTUp8239Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8239)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8239Set.setDescription('Generated when discrete point 239 is set.')
dpsRTUp9239Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9239)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9239Clr.setDescription('Generated when discrete point 239 clears.')
dpsRTUp8240Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8240)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8240Set.setDescription('Generated when discrete point 240 is set.')
dpsRTUp9240Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9240)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9240Clr.setDescription('Generated when discrete point 240 clears.')
dpsRTUp8241Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8241)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8241Set.setDescription('Generated when discrete point 241 is set.')
dpsRTUp9241Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9241)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9241Clr.setDescription('Generated when discrete point 241 clears.')
dpsRTUp8242Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8242)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8242Set.setDescription('Generated when discrete point 242 is set.')
dpsRTUp9242Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9242)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9242Clr.setDescription('Generated when discrete point 242 clears.')
dpsRTUp8243Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8243)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8243Set.setDescription('Generated when discrete point 243 is set.')
dpsRTUp9243Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9243)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9243Clr.setDescription('Generated when discrete point 243 clears.')
dpsRTUp8244Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8244)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8244Set.setDescription('Generated when discrete point 244 is set.')
dpsRTUp9244Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9244)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9244Clr.setDescription('Generated when discrete point 244 clears.')
dpsRTUp8245Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8245)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8245Set.setDescription('Generated when discrete point 245 is set.')
dpsRTUp9245Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9245)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9245Clr.setDescription('Generated when discrete point 245 clears.')
dpsRTUp8246Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8246)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8246Set.setDescription('Generated when discrete point 246 is set.')
dpsRTUp9246Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9246)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9246Clr.setDescription('Generated when discrete point 246 clears.')
dpsRTUp8247Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8247)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8247Set.setDescription('Generated when discrete point 247 is set.')
dpsRTUp9247Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9247)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9247Clr.setDescription('Generated when discrete point 247 clears.')
dpsRTUp8248Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8248)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8248Set.setDescription('Generated when discrete point 248 is set.')
dpsRTUp9248Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9248)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9248Clr.setDescription('Generated when discrete point 248 clears.')
dpsRTUp8249Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8249)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8249Set.setDescription('Generated when discrete point 249 is set.')
dpsRTUp9249Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9249)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9249Clr.setDescription('Generated when discrete point 249 clears.')
dpsRTUp8250Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8250)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8250Set.setDescription('Generated when discrete point 250 is set.')
dpsRTUp9250Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9250)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9250Clr.setDescription('Generated when discrete point 250 clears.')
dpsRTUp8251Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8251)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8251Set.setDescription('Generated when discrete point 251 is set.')
dpsRTUp9251Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9251)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9251Clr.setDescription('Generated when discrete point 251 clears.')
dpsRTUp8252Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8252)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8252Set.setDescription('Generated when discrete point 252 is set.')
dpsRTUp9252Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9252)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9252Clr.setDescription('Generated when discrete point 252 clears.')
dpsRTUp8253Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8253)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8253Set.setDescription('Generated when discrete point 253 is set.')
dpsRTUp9253Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9253)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9253Clr.setDescription('Generated when discrete point 253 clears.')
dpsRTUp8254Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8254)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8254Set.setDescription('Generated when discrete point 254 is set.')
dpsRTUp9254Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9254)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9254Clr.setDescription('Generated when discrete point 254 clears.')
dpsRTUp8255Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8255)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8255Set.setDescription('Generated when discrete point 255 is set.')
dpsRTUp9255Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9255)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9255Clr.setDescription('Generated when discrete point 255 clears.')
dpsRTUp8256Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8256)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8256Set.setDescription('Generated when discrete point 256 is set.')
dpsRTUp9256Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9256)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9256Clr.setDescription('Generated when discrete point 256 clears.')
dpsRTUp8257Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8257)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8257Set.setDescription('Generated when channel 3 minor under threshold is violated')
dpsRTUp9257Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9257)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9257Clr.setDescription('Generated when channel 3 minor under threshold is restored')
dpsRTUp8258Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8258)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8258Set.setDescription('Generated when channel 3 minor over threshold is violated')
dpsRTUp9258Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9258)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9258Clr.setDescription('Generated when channel 3 minor over threshold is restored')
dpsRTUp8259Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8259)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8259Set.setDescription('Generated when channel 3 major under threshold is violated')
dpsRTUp9259Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9259)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9259Clr.setDescription('Generated when channel 3 major under threshold is restored')
dpsRTUp8260Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8260)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8260Set.setDescription('Generated when channel 3 major over threshold is violated')
dpsRTUp9260Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9260)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9260Clr.setDescription('Generated when channel 3 major over threshold is restored')
dpsRTUp8321Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8321)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8321Set.setDescription('Generated when channel 4 minor under threshold is violated')
dpsRTUp9321Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9321)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9321Clr.setDescription('Generated when channel 4 minor under threshold is restored')
dpsRTUp8322Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8322)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8322Set.setDescription('Generated when channel 4 minor over threshold is violated')
dpsRTUp9322Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9322)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9322Clr.setDescription('Generated when channel 4 minor over threshold is restored')
dpsRTUp8323Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8323)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8323Set.setDescription('Generated when channel 4 major under threshold is violated')
dpsRTUp9323Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9323)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9323Clr.setDescription('Generated when channel 4 major under threshold is restored')
dpsRTUp8324Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8324)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8324Set.setDescription('Generated when channel 4 major over threshold is violated')
dpsRTUp9324Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9324)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9324Clr.setDescription('Generated when channel 4 major over threshold is restored')
dpsRTUp8385Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8385)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8385Set.setDescription('Generated when channel 5 minor under threshold is violated')
dpsRTUp9385Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9385)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9385Clr.setDescription('Generated when channel 5 minor under threshold is restored')
dpsRTUp8386Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8386)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8386Set.setDescription('Generated when channel 5 minor over threshold is violated')
dpsRTUp9386Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9386)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9386Clr.setDescription('Generated when channel 5 minor over threshold is restored')
dpsRTUp8387Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8387)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8387Set.setDescription('Generated when channel 5 major under threshold is violated')
dpsRTUp9387Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9387)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9387Clr.setDescription('Generated when channel 5 major under threshold is restored')
dpsRTUp8388Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8388)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8388Set.setDescription('Generated when channel 5 major over threshold is violated')
dpsRTUp9388Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9388)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9388Clr.setDescription('Generated when channel 5 major over threshold is restored')
dpsRTUp8449Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8449)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8449Set.setDescription('Generated when channel 6 minor under threshold is violated')
dpsRTUp9449Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9449)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9449Clr.setDescription('Generated when channel 6 minor under threshold is restored')
dpsRTUp8450Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8450)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8450Set.setDescription('Generated when channel 6 minor over threshold is violated')
dpsRTUp9450Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9450)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9450Clr.setDescription('Generated when channel 6 minor over threshold is restored')
dpsRTUp8451Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8451)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8451Set.setDescription('Generated when channel 6 major under threshold is violated')
dpsRTUp9451Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9451)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9451Clr.setDescription('Generated when channel 6 major under threshold is restored')
dpsRTUp8452Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8452)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8452Set.setDescription('Generated when channel 6 major over threshold is violated')
dpsRTUp9452Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9452)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9452Clr.setDescription('Generated when channel 6 major over threshold is restored')
dpsRTUp8513Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8513)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8513Set.setDescription('Generated when channel 7 minor under threshold is violated')
dpsRTUp9513Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9513)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9513Clr.setDescription('Generated when channel 7 minor under threshold is restored')
dpsRTUp8514Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8514)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8514Set.setDescription('Generated when channel 7 minor over threshold is violated')
dpsRTUp9514Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9514)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9514Clr.setDescription('Generated when channel 7 minor over threshold is restored')
dpsRTUp8515Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8515)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8515Set.setDescription('Generated when channel 7 major under threshold is violated')
dpsRTUp9515Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9515)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9515Clr.setDescription('Generated when channel 7 major under threshold is restored')
dpsRTUp8516Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8516)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8516Set.setDescription('Generated when channel 7 major over threshold is violated')
dpsRTUp9516Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9516)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9516Clr.setDescription('Generated when channel 7 major over threshold is restored')
dpsRTUp8577Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8577)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8577Set.setDescription('Generated when channel 8 minor under threshold is violated')
dpsRTUp9577Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9577)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9577Clr.setDescription('Generated when channel 8 minor under threshold is restored')
dpsRTUp8578Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8578)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8578Set.setDescription('Generated when channel 8 minor over threshold is violated')
dpsRTUp9578Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9578)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9578Clr.setDescription('Generated when channel 8 minor over threshold is restored')
dpsRTUp8579Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8579)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8579Set.setDescription('Generated when channel 8 major under threshold is violated')
dpsRTUp9579Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9579)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9579Clr.setDescription('Generated when channel 8 major under threshold is restored')
dpsRTUp8580Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8580)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8580Set.setDescription('Generated when channel 8 major over threshold is violated')
dpsRTUp9580Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9580)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9580Clr.setDescription('Generated when channel 8 major over threshold is restored')
dpsRTUp8641Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8641)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8641Set.setDescription('Generated when control 1 is latched.')
dpsRTUp9641Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9641)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9641Clr.setDescription('Generated when control 1 is released.')
dpsRTUp8642Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8642)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8642Set.setDescription('Generated when control 2 is latched.')
dpsRTUp9642Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9642)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9642Clr.setDescription('Generated when control 2 is released.')
dpsRTUp8643Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8643)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8643Set.setDescription('Generated when control 3 is latched.')
dpsRTUp9643Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9643)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9643Clr.setDescription('Generated when control 3 is released.')
dpsRTUp8644Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8644)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8644Set.setDescription('Generated when control 4 is latched.')
dpsRTUp9644Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9644)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9644Clr.setDescription('Generated when control 4 is released.')
dpsRTUp8645Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8645)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8645Set.setDescription('Generated when control 5 is latched.')
dpsRTUp9645Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9645)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9645Clr.setDescription('Generated when control 5 is released.')
dpsRTUp8646Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8646)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8646Set.setDescription('Generated when control 6 is latched.')
dpsRTUp9646Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9646)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9646Clr.setDescription('Generated when control 6 is released.')
dpsRTUp8647Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8647)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8647Set.setDescription('Generated when control 7 is latched.')
dpsRTUp9647Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9647)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9647Clr.setDescription('Generated when control 7 is released.')
dpsRTUp8648Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8648)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8648Set.setDescription('Generated when control 8 is latched.')
dpsRTUp9648Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9648)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9648Clr.setDescription('Generated when control 8 is released.')
dpsRTUp8657Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8657)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8657Set.setDescription('Timed Tick: set.')
dpsRTUp9657Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9657)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9657Clr.setDescription('Timed Tick: cleared.')
dpsRTUp8658Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8658)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8658Set.setDescription('Exp.Module Callout: set.')
dpsRTUp9658Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9658)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9658Clr.setDescription('Exp.Module Callout: cleared.')
dpsRTUp8659Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8659)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8659Set.setDescription('Network Time Server: set.')
dpsRTUp9659Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9659)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9659Clr.setDescription('Network Time Server: cleared.')
dpsRTUp8673Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8673)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8673Set.setDescription('Power Up: set.')
dpsRTUp9673Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9673)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9673Clr.setDescription('Power Up: cleared.')
dpsRTUp8676Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8676)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8676Set.setDescription('Lost Provisioning: set.')
dpsRTUp9676Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9676)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9676Clr.setDescription('Lost Provisioning: cleared.')
dpsRTUp8677Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8677)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8677Set.setDescription('DCP Poller Inactive: set.')
dpsRTUp9677Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9677)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9677Clr.setDescription('DCP Poller Inactive: cleared.')
dpsRTUp8678Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8678)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8678Set.setDescription('LAN Not Active: set.')
dpsRTUp9678Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9678)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9678Clr.setDescription('LAN Not Active: cleared.')
dpsRTUp8681Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8681)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8681Set.setDescription('Modem Not Responding: set.')
dpsRTUp9681Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9681)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9681Clr.setDescription('Modem Not Responding: cleared.')
dpsRTUp8682Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8682)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8682Set.setDescription('No Dialtone: set.')
dpsRTUp9682Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9682)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9682Clr.setDescription('No Dialtone: cleared.')
dpsRTUp8683Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8683)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8683Set.setDescription('SNMP Trap not Sent: set.')
dpsRTUp9683Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9683)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9683Clr.setDescription('SNMP Trap not Sent: cleared.')
dpsRTUp8684Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8684)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8684Set.setDescription('Pager Que Overflow: set.')
dpsRTUp9684Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9684)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9684Clr.setDescription('Pager Que Overflow: cleared.')
dpsRTUp8685Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8685)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8685Set.setDescription('Notification Failed: set.')
dpsRTUp9685Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9685)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9685Clr.setDescription('Notification Failed: cleared.')
dpsRTUp8686Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8686)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8686Set.setDescription('Craft RcvQ full: set.')
dpsRTUp9686Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9686)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9686Clr.setDescription('Craft RcvQ full: cleared.')
dpsRTUp8687Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8687)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8687Set.setDescription('Modem RcvQ full: set.')
dpsRTUp9687Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9687)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9687Clr.setDescription('Modem RcvQ full: cleared.')
dpsRTUp8688Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8688)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8688Set.setDescription('Data 1 RcvQ full: set.')
dpsRTUp9688Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9688)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9688Clr.setDescription('Data 1 RcvQ full: cleared.')
dpsRTUp8689Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8689)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8689Set.setDescription('Data 2 RcvQ full: set.')
dpsRTUp9689Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9689)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9689Clr.setDescription('Data 2 RcvQ full: cleared.')
dpsRTUp8690Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8690)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8690Set.setDescription('Data 3 RcvQ full: set.')
dpsRTUp9690Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9690)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9690Clr.setDescription('Data 3 RcvQ full: cleared.')
dpsRTUp8691Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8691)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8691Set.setDescription('Data 4 RcvQ full: set.')
dpsRTUp9691Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9691)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9691Clr.setDescription('Data 4 RcvQ full: cleared.')
dpsRTUp8692Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8692)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8692Set.setDescription('Data 5 RcvQ full: set.')
dpsRTUp9692Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9692)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9692Clr.setDescription('Data 5 RcvQ full: cleared.')
dpsRTUp8693Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8693)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8693Set.setDescription('Data 6 RcvQ full: set.')
dpsRTUp9693Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9693)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9693Clr.setDescription('Data 6 RcvQ full: cleared.')
dpsRTUp8694Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8694)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8694Set.setDescription('Data 7 RcvQ full: set.')
dpsRTUp9694Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9694)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9694Clr.setDescription('Data 7 RcvQ full: cleared.')
dpsRTUp8695Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8695)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8695Set.setDescription('Data 8 RcvQ full: set.')
dpsRTUp9695Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9695)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9695Clr.setDescription('Data 8 RcvQ full: cleared.')
dpsRTUp8696Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8696)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8696Set.setDescription('NGDdx 1 Fail: set.')
dpsRTUp9696Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9696)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9696Clr.setDescription('NGDdx 1 Fail: cleared.')
dpsRTUp8697Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8697)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8697Set.setDescription('NGDdx 2 Fail: set.')
dpsRTUp9697Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9697)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9697Clr.setDescription('NGDdx 2 Fail: cleared.')
dpsRTUp8698Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8698)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8698Set.setDescription('NGDdx 3 Fail: set.')
dpsRTUp9698Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9698)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9698Clr.setDescription('NGDdx 3 Fail: cleared.')
dpsRTUp8699Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8699)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8699Set.setDescription('GLD 1 Fail: set.')
dpsRTUp9699Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9699)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9699Clr.setDescription('GLD 1 Fail: cleared.')
dpsRTUp8700Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8700)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8700Set.setDescription('GLD 2 Fail: set.')
dpsRTUp9700Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9700)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9700Clr.setDescription('GLD 2 Fail: cleared.')
dpsRTUp8701Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8701)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8701Set.setDescription('GLD 3 Fail: set.')
dpsRTUp9701Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9701)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9701Clr.setDescription('GLD 3 Fail: cleared.')
dpsRTUp8702Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8702)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8702Set.setDescription('Chan. Port Timeout: set.')
dpsRTUp9702Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9702)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9702Clr.setDescription('Chan. Port Timeout: cleared.')
dpsRTUp8703Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8703)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8703Set.setDescription('Craft Timeout: set.')
dpsRTUp9703Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9703)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9703Clr.setDescription('Craft Timeout: cleared.')
dpsRTUp8704Set = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,8704)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp8704Set.setDescription('Event Que Full: set.')
dpsRTUp9704Clr = NotificationType((1, 3, 6, 1, 4, 1, 2682, 1, 2) + (0,9704)).setObjects(("DPS-MIB-NGD-V10", "sysDescr"), ("DPS-MIB-NGD-V10", "sysLocation"), ("DPS-MIB-NGD-V10", "dpsRTUDateTime"), ("DPS-MIB-NGD-V10", "dpsRTUAPort"), ("DPS-MIB-NGD-V10", "dpsRTUCAddress"), ("DPS-MIB-NGD-V10", "dpsRTUADisplay"), ("DPS-MIB-NGD-V10", "dpsRTUAPoint"), ("DPS-MIB-NGD-V10", "dpsRTUAPntDesc"), ("DPS-MIB-NGD-V10", "dpsRTUAState"))
if mibBuilder.loadTexts: dpsRTUp9704Clr.setDescription('Event Que Full: cleared.')
mibBuilder.exportSymbols("DPS-MIB-NGD-V10", dpsRTUp8223Set=dpsRTUp8223Set, dpsRTUp9085Clr=dpsRTUp9085Clr, dpsRTUp9696Clr=dpsRTUp9696Clr, dpsRTUp9211Clr=dpsRTUp9211Clr, dpsRTUp8176Set=dpsRTUp8176Set, dpsRTUp8004Set=dpsRTUp8004Set, dpsRTUp9040Clr=dpsRTUp9040Clr, dpsRTUp8051Set=dpsRTUp8051Set, dpsRTUp9221Clr=dpsRTUp9221Clr, dpsRTUp8516Set=dpsRTUp8516Set, dpsRTUp8215Set=dpsRTUp8215Set, dpsRTUp8081Set=dpsRTUp8081Set, dpsRTUp9087Clr=dpsRTUp9087Clr, dpsRTUp8385Set=dpsRTUp8385Set, dpsRTUp9138Clr=dpsRTUp9138Clr, dpsRTUp8230Set=dpsRTUp8230Set, dpsRTUp8045Set=dpsRTUp8045Set, dpsRTUp9240Clr=dpsRTUp9240Clr, dpsRTUp8021Set=dpsRTUp8021Set, dpsRTUp9163Clr=dpsRTUp9163Clr, dpsRTUp9010Clr=dpsRTUp9010Clr, dpsRTUp9114Clr=dpsRTUp9114Clr, dpsRTUp8658Set=dpsRTUp8658Set, dpsRTUp8203Set=dpsRTUp8203Set, dpsRTUp9158Clr=dpsRTUp9158Clr, dpsRTUp8193Set=dpsRTUp8193Set, dpsRTUp9147Clr=dpsRTUp9147Clr, dpsRTUp8247Set=dpsRTUp8247Set, dpsRTUp8153Set=dpsRTUp8153Set, dpsRTUp8139Set=dpsRTUp8139Set, dpsRTUp9220Clr=dpsRTUp9220Clr, dpsRTUp9054Clr=dpsRTUp9054Clr, dpsRTUp9153Clr=dpsRTUp9153Clr, dpsRTUp9112Clr=dpsRTUp9112Clr, dpsRTUp8216Set=dpsRTUp8216Set, dpsRTUp8077Set=dpsRTUp8077Set, dpsRTUp9244Clr=dpsRTUp9244Clr, dpsRTUp8126Set=dpsRTUp8126Set, dpsRTUp9031Clr=dpsRTUp9031Clr, dpsRTUp9213Clr=dpsRTUp9213Clr, dpsRTUp9027Clr=dpsRTUp9027Clr, dpsRTUp9169Clr=dpsRTUp9169Clr, dpsRTUp9193Clr=dpsRTUp9193Clr, dpsRTUp8225Set=dpsRTUp8225Set, dpsRTUp8100Set=dpsRTUp8100Set, dpsRTUp8110Set=dpsRTUp8110Set, dpsRTUp8226Set=dpsRTUp8226Set, dpsRTUp8069Set=dpsRTUp8069Set, dpsRTUp9107Clr=dpsRTUp9107Clr, dpsRTUp8003Set=dpsRTUp8003Set, dpsRTUp8059Set=dpsRTUp8059Set, dpsRTUp8008Set=dpsRTUp8008Set, dpsRTUp8150Set=dpsRTUp8150Set, dpsRTUp8094Set=dpsRTUp8094Set, dpsRTUp9170Clr=dpsRTUp9170Clr, dpsRTUp8002Set=dpsRTUp8002Set, dpsRTUp9064Clr=dpsRTUp9064Clr, dpsRTUp8217Set=dpsRTUp8217Set, dpsRTUp8687Set=dpsRTUp8687Set, dpsRTUp9197Clr=dpsRTUp9197Clr, dpsRTUp8030Set=dpsRTUp8030Set, dpsRTUp9108Clr=dpsRTUp9108Clr, dpsRTUp9701Clr=dpsRTUp9701Clr, dpsRTUp9257Clr=dpsRTUp9257Clr, dpsRTUp9256Clr=dpsRTUp9256Clr, dpsRTUp9131Clr=dpsRTUp9131Clr, dpsRTUp9260Clr=dpsRTUp9260Clr, dpsRTUp9698Clr=dpsRTUp9698Clr, dpsRTUp9647Clr=dpsRTUp9647Clr, dpsRTUp8703Set=dpsRTUp8703Set, dpsRTUp9094Clr=dpsRTUp9094Clr, dpsRTUp8117Set=dpsRTUp8117Set, dpsRTUp8201Set=dpsRTUp8201Set, dpsRTUp8067Set=dpsRTUp8067Set, dpsRTUp9128Clr=dpsRTUp9128Clr, dpsRTUp8208Set=dpsRTUp8208Set, dpsRTUp9100Clr=dpsRTUp9100Clr, dpsRTUp8579Set=dpsRTUp8579Set, dpsRTUp8016Set=dpsRTUp8016Set, dpsRTUp8170Set=dpsRTUp8170Set, dpsRTUp8258Set=dpsRTUp8258Set, dpsRTUp9105Clr=dpsRTUp9105Clr, dpsRTUp8249Set=dpsRTUp8249Set, dpsRTUp8257Set=dpsRTUp8257Set, dpsRTUp8132Set=dpsRTUp8132Set, dpsRTUp9252Clr=dpsRTUp9252Clr, dpsRTUp9148Clr=dpsRTUp9148Clr, dpsRTUp8694Set=dpsRTUp8694Set, dpsRTUp9685Clr=dpsRTUp9685Clr, dpsRTUp8206Set=dpsRTUp8206Set, dpsRTUp9253Clr=dpsRTUp9253Clr, dpsRTUp9689Clr=dpsRTUp9689Clr, dpsRTUp8122Set=dpsRTUp8122Set, dpsRTUp9681Clr=dpsRTUp9681Clr, dpsRTUp9255Clr=dpsRTUp9255Clr, dpsRTUp9046Clr=dpsRTUp9046Clr, dpsRTUp9060Clr=dpsRTUp9060Clr, dpsRTUp9201Clr=dpsRTUp9201Clr, dpsRTUp8195Set=dpsRTUp8195Set, dpsRTUp8200Set=dpsRTUp8200Set, dpsRTUp8083Set=dpsRTUp8083Set, dpsRTUp8044Set=dpsRTUp8044Set, dpsRTUp8041Set=dpsRTUp8041Set, dpsRTUp9012Clr=dpsRTUp9012Clr, dpsRTUp9059Clr=dpsRTUp9059Clr, dpsRTUp9229Clr=dpsRTUp9229Clr, dpsRTUp8025Set=dpsRTUp8025Set, dpsRTUp9053Clr=dpsRTUp9053Clr, dpsRTUp9123Clr=dpsRTUp9123Clr, dpsRTUp9697Clr=dpsRTUp9697Clr, dpsRTUp9202Clr=dpsRTUp9202Clr, dpsRTUp9249Clr=dpsRTUp9249Clr, dpsRTUp9251Clr=dpsRTUp9251Clr, dpsRTUp9116Clr=dpsRTUp9116Clr, dpsRTUp8144Set=dpsRTUp8144Set, dpsRTUp8167Set=dpsRTUp8167Set, dpsRTUp8141Set=dpsRTUp8141Set, dpsRTUp9258Clr=dpsRTUp9258Clr, dpsRTUp9145Clr=dpsRTUp9145Clr, dpsRTUp8137Set=dpsRTUp8137Set, dpsRTUp8075Set=dpsRTUp8075Set, dpsRTUp9034Clr=dpsRTUp9034Clr, dpsRTUp9073Clr=dpsRTUp9073Clr, dpsRTUp8686Set=dpsRTUp8686Set, dpsRTUp8098Set=dpsRTUp8098Set, dpsRTUp9096Clr=dpsRTUp9096Clr, dpsRTUp9070Clr=dpsRTUp9070Clr, dpsRTUp8145Set=dpsRTUp8145Set, dpsRTUp8032Set=dpsRTUp8032Set, dpsRTUp9026Clr=dpsRTUp9026Clr, dpsRTUp9248Clr=dpsRTUp9248Clr, dpsRTUp8646Set=dpsRTUp8646Set, dpsRTUp8084Set=dpsRTUp8084Set, dpsRTUp9195Clr=dpsRTUp9195Clr, dpsRTUp8001Set=dpsRTUp8001Set, dpsRTUp8236Set=dpsRTUp8236Set, dpsRTUp9062Clr=dpsRTUp9062Clr, dpsRTUp8688Set=dpsRTUp8688Set, dpsRTUp8015Set=dpsRTUp8015Set, dpsRTUp9037Clr=dpsRTUp9037Clr, dpsRTUp8012Set=dpsRTUp8012Set, dpsRTUp9699Clr=dpsRTUp9699Clr, dpsRTUp8677Set=dpsRTUp8677Set, dpsRTUp8082Set=dpsRTUp8082Set, dpsRTUp8023Set=dpsRTUp8023Set, dpsRTUp8210Set=dpsRTUp8210Set, dpsRTUp8514Set=dpsRTUp8514Set, dpsRTUp8172Set=dpsRTUp8172Set, dpsRTUp9515Clr=dpsRTUp9515Clr, dpsRTUp8155Set=dpsRTUp8155Set, dpsRTUp9205Clr=dpsRTUp9205Clr, dpsRTUp9141Clr=dpsRTUp9141Clr, dpsRTUp8127Set=dpsRTUp8127Set, dpsRTUp8123Set=dpsRTUp8123Set, dpsRTUp9693Clr=dpsRTUp9693Clr, dpsRTUp9206Clr=dpsRTUp9206Clr, dpsRTUp9043Clr=dpsRTUp9043Clr, dpsRTUp8682Set=dpsRTUp8682Set, dpsRTUp8072Set=dpsRTUp8072Set, dpsRTUp8450Set=dpsRTUp8450Set, dpsRTUp9687Clr=dpsRTUp9687Clr, dpsRTUp8143Set=dpsRTUp8143Set, dpsRTUp9200Clr=dpsRTUp9200Clr, dpsRTUp9016Clr=dpsRTUp9016Clr, dpsRTUp9700Clr=dpsRTUp9700Clr, dpsRTUp9216Clr=dpsRTUp9216Clr, dpsRTUp8515Set=dpsRTUp8515Set, dpsRTUp8696Set=dpsRTUp8696Set, dpsRTUp9691Clr=dpsRTUp9691Clr, dpsRTUp9113Clr=dpsRTUp9113Clr, dpsRTUp8080Set=dpsRTUp8080Set, dpsRTUp8147Set=dpsRTUp8147Set, dpsRTUp8643Set=dpsRTUp8643Set, dpsRTUp9386Clr=dpsRTUp9386Clr, dpsRTUp9692Clr=dpsRTUp9692Clr, dpsRTUp8209Set=dpsRTUp8209Set, dpsRTUp8697Set=dpsRTUp8697Set, dpsRTUp8174Set=dpsRTUp8174Set, dpsRTUp8204Set=dpsRTUp8204Set, dpsRTUp8234Set=dpsRTUp8234Set, dpsRTUp8149Set=dpsRTUp8149Set, dpsRTUp9066Clr=dpsRTUp9066Clr, dpsRTUp8113Set=dpsRTUp8113Set, dpsRTUp9077Clr=dpsRTUp9077Clr, dpsRTUp8049Set=dpsRTUp8049Set, dpsRTUp9042Clr=dpsRTUp9042Clr, dpsRTUp8648Set=dpsRTUp8648Set, dpsRTUp8014Set=dpsRTUp8014Set, dpsRTUp9695Clr=dpsRTUp9695Clr, dpsRTUp9051Clr=dpsRTUp9051Clr, dpsRTUp8387Set=dpsRTUp8387Set, dpsRTUp9033Clr=dpsRTUp9033Clr, dpsRTUp9168Clr=dpsRTUp9168Clr, dpsRTUp9683Clr=dpsRTUp9683Clr, dpsRTUp8224Set=dpsRTUp8224Set, dpsRTUp9259Clr=dpsRTUp9259Clr, dpsRTUp9659Clr=dpsRTUp9659Clr, dpsRTUp9036Clr=dpsRTUp9036Clr, dpsRTUp9004Clr=dpsRTUp9004Clr, dpsRTUp9079Clr=dpsRTUp9079Clr, dpsRTUp9080Clr=dpsRTUp9080Clr, dpsRTUp8702Set=dpsRTUp8702Set, dpsRTUp9160Clr=dpsRTUp9160Clr, dpsRTUp8073Set=dpsRTUp8073Set, dpsRTUp9208Clr=dpsRTUp9208Clr, dpsRTUp8035Set=dpsRTUp8035Set, dpsRTUp9513Clr=dpsRTUp9513Clr, dpsRTUp9246Clr=dpsRTUp9246Clr, dpsRTUp9068Clr=dpsRTUp9068Clr, dpsRTUp8678Set=dpsRTUp8678Set, dpsRTUp8022Set=dpsRTUp8022Set, dpsRTUp8232Set=dpsRTUp8232Set, dpsRTUp8061Set=dpsRTUp8061Set, dpsRTUp9217Clr=dpsRTUp9217Clr, dpsRTUp8109Set=dpsRTUp8109Set, dpsRTUp8580Set=dpsRTUp8580Set, dpsRTUp9025Clr=dpsRTUp9025Clr, dpsRTUp8121Set=dpsRTUp8121Set, dpsRTUp8452Set=dpsRTUp8452Set, dpsRTUp8198Set=dpsRTUp8198Set, dpsRTUp8255Set=dpsRTUp8255Set, dpsRTUp8229Set=dpsRTUp8229Set, dpsRTUp9452Clr=dpsRTUp9452Clr, dpsRTUp9226Clr=dpsRTUp9226Clr, dpsRTUp9149Clr=dpsRTUp9149Clr, dpsRTUp9001Clr=dpsRTUp9001Clr, dpsRTUp9129Clr=dpsRTUp9129Clr, dpsRTUp9648Clr=dpsRTUp9648Clr, dpsRTUp8114Set=dpsRTUp8114Set, dpsRTUp8194Set=dpsRTUp8194Set, dpsRTUp8024Set=dpsRTUp8024Set, dpsRTUp9157Clr=dpsRTUp9157Clr, dpsRTUp8246Set=dpsRTUp8246Set, dpsRTUp8053Set=dpsRTUp8053Set, dpsRTUp8699Set=dpsRTUp8699Set, dpsRTUp9028Clr=dpsRTUp9028Clr, dpsRTUp9101Clr=dpsRTUp9101Clr, dpsRTUp8644Set=dpsRTUp8644Set, dpsRTUp8017Set=dpsRTUp8017Set, dpsRTUp9204Clr=dpsRTUp9204Clr, dpsRTUp8156Set=dpsRTUp8156Set, dpsRTUp9645Clr=dpsRTUp9645Clr, dpsRTUp9161Clr=dpsRTUp9161Clr, dpsRTUp8173Set=dpsRTUp8173Set, dpsRTUp9676Clr=dpsRTUp9676Clr, dpsRTUp9057Clr=dpsRTUp9057Clr, dpsRTUp9095Clr=dpsRTUp9095Clr, dpsRTUp8034Set=dpsRTUp8034Set, dpsRTUp9143Clr=dpsRTUp9143Clr, dpsRTUp9071Clr=dpsRTUp9071Clr, dpsRTUp9126Clr=dpsRTUp9126Clr, dpsRTUp8388Set=dpsRTUp8388Set, dpsRTUp8160Set=dpsRTUp8160Set, dpsRTUp9069Clr=dpsRTUp9069Clr)
mibBuilder.exportSymbols("DPS-MIB-NGD-V10", dpsRTUp9109Clr=dpsRTUp9109Clr, dpsRTUp8119Set=dpsRTUp8119Set, dpsRTUp8701Set=dpsRTUp8701Set, dpsRTUp9041Clr=dpsRTUp9041Clr, dpsRTUp9003Clr=dpsRTUp9003Clr, dpsRTUp9125Clr=dpsRTUp9125Clr, dpsRTUp8704Set=dpsRTUp8704Set, dpsRTUp8068Set=dpsRTUp8068Set, dpsRTUp9690Clr=dpsRTUp9690Clr, dpsRTUp9015Clr=dpsRTUp9015Clr, dpsRTUp8199Set=dpsRTUp8199Set, dpsRTUp8027Set=dpsRTUp8027Set, dpsRTUp8108Set=dpsRTUp8108Set, dpsRTUp8105Set=dpsRTUp8105Set, dpsRTUp8009Set=dpsRTUp8009Set, dpsRTUp8242Set=dpsRTUp8242Set, dpsRTUp8685Set=dpsRTUp8685Set, dpsRTUp8159Set=dpsRTUp8159Set, dpsRTUp9056Clr=dpsRTUp9056Clr, dpsRTUp8197Set=dpsRTUp8197Set, dpsRTUp9021Clr=dpsRTUp9021Clr, dpsRTUp8213Set=dpsRTUp8213Set, dpsRTUp9154Clr=dpsRTUp9154Clr, dpsRTUp9011Clr=dpsRTUp9011Clr, dpsRTUp8135Set=dpsRTUp8135Set, dpsRTUp9106Clr=dpsRTUp9106Clr, dpsRTUp9322Clr=dpsRTUp9322Clr, dpsRTUp8078Set=dpsRTUp8078Set, dpsRTUp9118Clr=dpsRTUp9118Clr, dpsRTUp8071Set=dpsRTUp8071Set, dpsRTUp9321Clr=dpsRTUp9321Clr, dpsRTUp8171Set=dpsRTUp8171Set, dpsRTUp8513Set=dpsRTUp8513Set, dpsRTUp8207Set=dpsRTUp8207Set, dpsRTUp9218Clr=dpsRTUp9218Clr, dpsRTUp8239Set=dpsRTUp8239Set, dpsRTUp9008Clr=dpsRTUp9008Clr, dpsRTUp8240Set=dpsRTUp8240Set, dpsRTUp8196Set=dpsRTUp8196Set, dpsRTUp8227Set=dpsRTUp8227Set, dpsRTUp9451Clr=dpsRTUp9451Clr, dpsRTUp9658Clr=dpsRTUp9658Clr, dpsRTUp8066Set=dpsRTUp8066Set, dpsRTUp9082Clr=dpsRTUp9082Clr, dpsRTUp8158Set=dpsRTUp8158Set, dpsRTUp9239Clr=dpsRTUp9239Clr, dpsRTUp8013Set=dpsRTUp8013Set, dpsRTUp9048Clr=dpsRTUp9048Clr, dpsRTUp8673Set=dpsRTUp8673Set, dpsRTUp8684Set=dpsRTUp8684Set, dpsRTUp8168Set=dpsRTUp8168Set, dpsRTUp8238Set=dpsRTUp8238Set, dpsRTUp8088Set=dpsRTUp8088Set, dpsRTUp9078Clr=dpsRTUp9078Clr, dpsRTUp8091Set=dpsRTUp8091Set, dpsRTUp8228Set=dpsRTUp8228Set, dpsRTUp8064Set=dpsRTUp8064Set, dpsRTUp8681Set=dpsRTUp8681Set, dpsRTUp8115Set=dpsRTUp8115Set, dpsRTUp8323Set=dpsRTUp8323Set, dpsRTUp9223Clr=dpsRTUp9223Clr, dpsRTUp9047Clr=dpsRTUp9047Clr, dpsRTUp9641Clr=dpsRTUp9641Clr, dpsRTUp8676Set=dpsRTUp8676Set, dpsRTUp8244Set=dpsRTUp8244Set, dpsRTUp9579Clr=dpsRTUp9579Clr, dpsRTUp9702Clr=dpsRTUp9702Clr, dpsRTUp8036Set=dpsRTUp8036Set, dpsRTUp8038Set=dpsRTUp8038Set, dpsRTUp9232Clr=dpsRTUp9232Clr, dpsRTUp9682Clr=dpsRTUp9682Clr, dpsRTUp9084Clr=dpsRTUp9084Clr, dpsRTUp9120Clr=dpsRTUp9120Clr, dpsRTUp8692Set=dpsRTUp8692Set, dpsRTUp8140Set=dpsRTUp8140Set, dpsRTUp8079Set=dpsRTUp8079Set, dpsRTUp8645Set=dpsRTUp8645Set, dpsRTUp9254Clr=dpsRTUp9254Clr, dpsRTUp8048Set=dpsRTUp8048Set, dpsRTUp8243Set=dpsRTUp8243Set, dpsRTUp8148Set=dpsRTUp8148Set, dpsRTUp9167Clr=dpsRTUp9167Clr, dpsRTUp9005Clr=dpsRTUp9005Clr, dpsRTUp9111Clr=dpsRTUp9111Clr, dpsRTUp8241Set=dpsRTUp8241Set, dpsRTUp8691Set=dpsRTUp8691Set, dpsRTUp8047Set=dpsRTUp8047Set, dpsRTUp8087Set=dpsRTUp8087Set, dpsRTUp8259Set=dpsRTUp8259Set, dpsRTUp8099Set=dpsRTUp8099Set, dpsRTUp8322Set=dpsRTUp8322Set, dpsRTUp9090Clr=dpsRTUp9090Clr, dpsRTUp8040Set=dpsRTUp8040Set, dpsRTUp8095Set=dpsRTUp8095Set, dpsRTUp9212Clr=dpsRTUp9212Clr, dpsRTUp9075Clr=dpsRTUp9075Clr, dpsRTUp9215Clr=dpsRTUp9215Clr, dpsRTUp8089Set=dpsRTUp8089Set, dpsRTUp8175Set=dpsRTUp8175Set, dpsRTUp8096Set=dpsRTUp8096Set, dpsRTUp8130Set=dpsRTUp8130Set, dpsRTUp9678Clr=dpsRTUp9678Clr, dpsRTUp9127Clr=dpsRTUp9127Clr, dpsRTUp9139Clr=dpsRTUp9139Clr, dpsRTUp8219Set=dpsRTUp8219Set, dpsRTUp8011Set=dpsRTUp8011Set, dpsRTUp9324Clr=dpsRTUp9324Clr, dpsRTUp8054Set=dpsRTUp8054Set, dpsRTUp9209Clr=dpsRTUp9209Clr, dpsRTUp8103Set=dpsRTUp8103Set, dpsRTUp9009Clr=dpsRTUp9009Clr, dpsRTUp9067Clr=dpsRTUp9067Clr, dpsRTUp9055Clr=dpsRTUp9055Clr, dpsRTUp9643Clr=dpsRTUp9643Clr, dpsRTUp9142Clr=dpsRTUp9142Clr, dpsRTUp9210Clr=dpsRTUp9210Clr, dpsRTUp8093Set=dpsRTUp8093Set, dpsRTUp9150Clr=dpsRTUp9150Clr, dpsRTUp9124Clr=dpsRTUp9124Clr, dpsRTUp8118Set=dpsRTUp8118Set, dpsRTUp8104Set=dpsRTUp8104Set, dpsRTUp8321Set=dpsRTUp8321Set, dpsRTUp8235Set=dpsRTUp8235Set, dpsRTUp8070Set=dpsRTUp8070Set, dpsRTUp9224Clr=dpsRTUp9224Clr, dpsRTUp8131Set=dpsRTUp8131Set, dpsRTUp9704Clr=dpsRTUp9704Clr, dpsRTUp9228Clr=dpsRTUp9228Clr, dpsRTUp8659Set=dpsRTUp8659Set, dpsRTUp9245Clr=dpsRTUp9245Clr, dpsRTUp8237Set=dpsRTUp8237Set, dpsRTUp9677Clr=dpsRTUp9677Clr, dpsRTUp9017Clr=dpsRTUp9017Clr, dpsRTUp9038Clr=dpsRTUp9038Clr, dpsRTUp9214Clr=dpsRTUp9214Clr, dpsRTUp8657Set=dpsRTUp8657Set, dpsRTUp8386Set=dpsRTUp8386Set, dpsRTUp9104Clr=dpsRTUp9104Clr, dpsRTUp9227Clr=dpsRTUp9227Clr, dpsRTUp8062Set=dpsRTUp8062Set, dpsRTUp9133Clr=dpsRTUp9133Clr, dpsRTUp8698Set=dpsRTUp8698Set, dpsRTUp9146Clr=dpsRTUp9146Clr, dpsRTUp8085Set=dpsRTUp8085Set, dpsRTUp8090Set=dpsRTUp8090Set, dpsRTUp8449Set=dpsRTUp8449Set, dpsRTUp9162Clr=dpsRTUp9162Clr, dpsRTUp8642Set=dpsRTUp8642Set, dpsRTUp8256Set=dpsRTUp8256Set, dpsRTUp8152Set=dpsRTUp8152Set, dpsRTUp9081Clr=dpsRTUp9081Clr, dpsRTUp8046Set=dpsRTUp8046Set, dpsRTUp8142Set=dpsRTUp8142Set, dpsRTUp9121Clr=dpsRTUp9121Clr, dpsRTUp9045Clr=dpsRTUp9045Clr, dpsRTUp8250Set=dpsRTUp8250Set, dpsRTUp9007Clr=dpsRTUp9007Clr, dpsRTUp8039Set=dpsRTUp8039Set, dpsRTUp8690Set=dpsRTUp8690Set, dpsRTUp8026Set=dpsRTUp8026Set, dpsRTUp9119Clr=dpsRTUp9119Clr, dpsRTUp9207Clr=dpsRTUp9207Clr, dpsRTUp9049Clr=dpsRTUp9049Clr, dpsRTUp9385Clr=dpsRTUp9385Clr, dpsRTUp8043Set=dpsRTUp8043Set, dpsRTUp9235Clr=dpsRTUp9235Clr, dpsRTUp8324Set=dpsRTUp8324Set, dpsRTUp8700Set=dpsRTUp8700Set, dpsRTUp8169Set=dpsRTUp8169Set, dpsRTUp8129Set=dpsRTUp8129Set, dpsRTUp8451Set=dpsRTUp8451Set, dpsRTUp9176Clr=dpsRTUp9176Clr, dpsRTUp9020Clr=dpsRTUp9020Clr, dpsRTUp9132Clr=dpsRTUp9132Clr, dpsRTUp9694Clr=dpsRTUp9694Clr, dpsRTUp8151Set=dpsRTUp8151Set, dpsRTUp8116Set=dpsRTUp8116Set, dpsRTUp9117Clr=dpsRTUp9117Clr, dpsRTUp8218Set=dpsRTUp8218Set, dpsRTUp8248Set=dpsRTUp8248Set, dpsRTUp9657Clr=dpsRTUp9657Clr, dpsRTUp9673Clr=dpsRTUp9673Clr, dpsRTUp9174Clr=dpsRTUp9174Clr, dpsRTUp9219Clr=dpsRTUp9219Clr, dpsRTUp9029Clr=dpsRTUp9029Clr, dpsRTUp8245Set=dpsRTUp8245Set, dpsRTUp9144Clr=dpsRTUp9144Clr, dpsRTUp8220Set=dpsRTUp8220Set, dpsRTUp8050Set=dpsRTUp8050Set, dpsRTUp9646Clr=dpsRTUp9646Clr, dpsRTUp9450Clr=dpsRTUp9450Clr, dpsRTUp9514Clr=dpsRTUp9514Clr, dpsRTUp8221Set=dpsRTUp8221Set, dpsRTUp8124Set=dpsRTUp8124Set, dpsRTUp8020Set=dpsRTUp8020Set, dpsRTUp8031Set=dpsRTUp8031Set, dpsRTUp8136Set=dpsRTUp8136Set, dpsRTUp8055Set=dpsRTUp8055Set, dpsRTUp8097Set=dpsRTUp8097Set, dpsRTUp8052Set=dpsRTUp8052Set, dpsRTUp9166Clr=dpsRTUp9166Clr, dpsRTUp9023Clr=dpsRTUp9023Clr, dpsRTUp8157Set=dpsRTUp8157Set, dpsRTUp9173Clr=dpsRTUp9173Clr, dpsRTUp9136Clr=dpsRTUp9136Clr, dpsRTUp9203Clr=dpsRTUp9203Clr, dpsRTUp9159Clr=dpsRTUp9159Clr, dpsRTUp9172Clr=dpsRTUp9172Clr, dpsRTUp9196Clr=dpsRTUp9196Clr, dpsRTUp9686Clr=dpsRTUp9686Clr, dpsRTUp8231Set=dpsRTUp8231Set, dpsRTUp9022Clr=dpsRTUp9022Clr, dpsRTUp8074Set=dpsRTUp8074Set, dpsRTUp8577Set=dpsRTUp8577Set, dpsRTUp8120Set=dpsRTUp8120Set, dpsRTUp9065Clr=dpsRTUp9065Clr, dpsRTUp9135Clr=dpsRTUp9135Clr, dpsRTUp9086Clr=dpsRTUp9086Clr, dpsRTUp8251Set=dpsRTUp8251Set, dpsRTUp8063Set=dpsRTUp8063Set, dpsRTUp9580Clr=dpsRTUp9580Clr, dpsRTUp9061Clr=dpsRTUp9061Clr, dpsRTUp9684Clr=dpsRTUp9684Clr, dpsRTUp8006Set=dpsRTUp8006Set, dpsRTUp8133Set=dpsRTUp8133Set, dpsRTUp8037Set=dpsRTUp8037Set, dpsRTUp9063Clr=dpsRTUp9063Clr, dpsRTUp8222Set=dpsRTUp8222Set, dpsRTUp9130Clr=dpsRTUp9130Clr, dpsRTUp9222Clr=dpsRTUp9222Clr, dpsRTUp9076Clr=dpsRTUp9076Clr, dpsRTUp8163Set=dpsRTUp8163Set, dpsRTUp9072Clr=dpsRTUp9072Clr, dpsRTUp9019Clr=dpsRTUp9019Clr, dpsRTUp9225Clr=dpsRTUp9225Clr, dpsRTUp8134Set=dpsRTUp8134Set, dpsRTUp9091Clr=dpsRTUp9091Clr, dpsRTUp9250Clr=dpsRTUp9250Clr, dpsRTUp8125Set=dpsRTUp8125Set, dpsRTUp8010Set=dpsRTUp8010Set, dpsRTUp8128Set=dpsRTUp8128Set, dpsRTUp9578Clr=dpsRTUp9578Clr, dpsRTUp9644Clr=dpsRTUp9644Clr, dpsRTUp8007Set=dpsRTUp8007Set, dpsRTUp9044Clr=dpsRTUp9044Clr, dpsRTUp9449Clr=dpsRTUp9449Clr, dpsRTUp9013Clr=dpsRTUp9013Clr, dpsRTUp8689Set=dpsRTUp8689Set, dpsRTUp9099Clr=dpsRTUp9099Clr, dpsRTUp8005Set=dpsRTUp8005Set, dpsRTUp9074Clr=dpsRTUp9074Clr, dpsRTUp9577Clr=dpsRTUp9577Clr, dpsRTUp9516Clr=dpsRTUp9516Clr, dpsRTUp8086Set=dpsRTUp8086Set)
mibBuilder.exportSymbols("DPS-MIB-NGD-V10", dpsRTUp9098Clr=dpsRTUp9098Clr, dpsRTUp8695Set=dpsRTUp8695Set, dpsRTUp9236Clr=dpsRTUp9236Clr, dpsRTUp9035Clr=dpsRTUp9035Clr, dpsRTUp9237Clr=dpsRTUp9237Clr, dpsRTUp8683Set=dpsRTUp8683Set, dpsRTUp8029Set=dpsRTUp8029Set, dpsRTUp9165Clr=dpsRTUp9165Clr, dpsRTUp9093Clr=dpsRTUp9093Clr, dpsRTUp8019Set=dpsRTUp8019Set, dpsRTUp8102Set=dpsRTUp8102Set, dpsRTUp9194Clr=dpsRTUp9194Clr, dpsRTUp8065Set=dpsRTUp8065Set, dpsRTUp9155Clr=dpsRTUp9155Clr, dpsRTUp9642Clr=dpsRTUp9642Clr, dpsRTUp9242Clr=dpsRTUp9242Clr, dpsRTUp8057Set=dpsRTUp8057Set, dpsRTUp8233Set=dpsRTUp8233Set, dpsRTUp8162Set=dpsRTUp8162Set, dpsRTUp9233Clr=dpsRTUp9233Clr, dpsRTUp9247Clr=dpsRTUp9247Clr, dpsRTUp8101Set=dpsRTUp8101Set, dpsRTUp9231Clr=dpsRTUp9231Clr, dpsRTUp9199Clr=dpsRTUp9199Clr, dpsRTUp8161Set=dpsRTUp8161Set, dpsRTUp8253Set=dpsRTUp8253Set, dpsRTUp9122Clr=dpsRTUp9122Clr, dpsRTUp8154Set=dpsRTUp8154Set, dpsRTUp8033Set=dpsRTUp8033Set, dpsRTUp8641Set=dpsRTUp8641Set, dpsRTUp9030Clr=dpsRTUp9030Clr, dpsRTUp9092Clr=dpsRTUp9092Clr, dpsRTUp8028Set=dpsRTUp8028Set, dpsRTUp8211Set=dpsRTUp8211Set, dpsRTUp9088Clr=dpsRTUp9088Clr, dpsRTUp8254Set=dpsRTUp8254Set, dpsRTUp9014Clr=dpsRTUp9014Clr, dpsRTUp9198Clr=dpsRTUp9198Clr, dpsRTUp9387Clr=dpsRTUp9387Clr, dpsRTUp9006Clr=dpsRTUp9006Clr, dpsRTUp9134Clr=dpsRTUp9134Clr, dpsRTUp9388Clr=dpsRTUp9388Clr, dpsRTUp9024Clr=dpsRTUp9024Clr, dpsRTUp8166Set=dpsRTUp8166Set, dpsRTUp8693Set=dpsRTUp8693Set, dpsRTUp9083Clr=dpsRTUp9083Clr, dpsRTUp9171Clr=dpsRTUp9171Clr, dpsRTUp8111Set=dpsRTUp8111Set, dpsRTUp8042Set=dpsRTUp8042Set, dpsRTUp8076Set=dpsRTUp8076Set, dpsRTUp9103Clr=dpsRTUp9103Clr, dpsRTUp8107Set=dpsRTUp8107Set, dpsRTUp8138Set=dpsRTUp8138Set, dpsRTUp9703Clr=dpsRTUp9703Clr, dpsRTUp9241Clr=dpsRTUp9241Clr, dpsRTUp8092Set=dpsRTUp8092Set, dpsRTUp8214Set=dpsRTUp8214Set, dpsRTUp8578Set=dpsRTUp8578Set, dpsRTUp8647Set=dpsRTUp8647Set, dpsRTUp9243Clr=dpsRTUp9243Clr, dpsRTUp8056Set=dpsRTUp8056Set, dpsRTUp8058Set=dpsRTUp8058Set, dpsRTUp9110Clr=dpsRTUp9110Clr, dpsRTUp9115Clr=dpsRTUp9115Clr, dpsRTUp9323Clr=dpsRTUp9323Clr, dpsRTUp9097Clr=dpsRTUp9097Clr, dpsRTUp8260Set=dpsRTUp8260Set, dpsRTUp8146Set=dpsRTUp8146Set, dpsRTUp9050Clr=dpsRTUp9050Clr, dpsRTUp8205Set=dpsRTUp8205Set, dpsRTUp9152Clr=dpsRTUp9152Clr, dpsRTUp9238Clr=dpsRTUp9238Clr, dpsRTUp9151Clr=dpsRTUp9151Clr, dpsRTUp9039Clr=dpsRTUp9039Clr, dpsRTUp9052Clr=dpsRTUp9052Clr, dpsRTUp9234Clr=dpsRTUp9234Clr, dpsRTUp9137Clr=dpsRTUp9137Clr, dpsRTUp8164Set=dpsRTUp8164Set, dpsRTUp8252Set=dpsRTUp8252Set, dpsRTUp8202Set=dpsRTUp8202Set, dpsRTUp9018Clr=dpsRTUp9018Clr, dpsRTUp9089Clr=dpsRTUp9089Clr, dpsRTUp8018Set=dpsRTUp8018Set, dpsRTUp9230Clr=dpsRTUp9230Clr, dpsRTUp9102Clr=dpsRTUp9102Clr, dpsRTUp9140Clr=dpsRTUp9140Clr, dpsRTUp8060Set=dpsRTUp8060Set, dpsRTUp9175Clr=dpsRTUp9175Clr, dpsRTUp8165Set=dpsRTUp8165Set, dpsRTUp8106Set=dpsRTUp8106Set, dpsRTUp9058Clr=dpsRTUp9058Clr, dpsRTUp8112Set=dpsRTUp8112Set, dpsRTUp9164Clr=dpsRTUp9164Clr, dpsRTUp9032Clr=dpsRTUp9032Clr, dpsRTUp8212Set=dpsRTUp8212Set, dpsRTUp9002Clr=dpsRTUp9002Clr, dpsRTUp9156Clr=dpsRTUp9156Clr, dpsRTUp9688Clr=dpsRTUp9688Clr)
| 273.923577
| 7,917
| 0.697735
| 44,081
| 336,926
| 5.333023
| 0.035548
| 0.139354
| 0.208992
| 0.278657
| 0.824378
| 0.819274
| 0.733973
| 0.733564
| 0.733165
| 0.718055
| 0
| 0.103069
| 0.071321
| 336,926
| 1,229
| 7,918
| 274.146461
| 0.648251
| 0.000962
| 0
| 0
| 0
| 0
| 0.514901
| 0.000131
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.005728
| 0
| 0.005728
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
a8cbe49511bb72012f2db914de168e771d9bb20c
| 6,050
|
py
|
Python
|
src/dnaSeq/VAPr/variantannotation/annotate_batch.py
|
AspirinCode/jupyter-genomics
|
d45526fab3de8fcc3d9fef005d4e39368ff3dfdc
|
[
"MIT"
] | 2
|
2019-01-04T08:17:27.000Z
|
2021-04-10T02:59:35.000Z
|
src/dnaSeq/VAPr/variantannotation/annotate_batch.py
|
AspirinCode/jupyter-genomics
|
d45526fab3de8fcc3d9fef005d4e39368ff3dfdc
|
[
"MIT"
] | null | null | null |
src/dnaSeq/VAPr/variantannotation/annotate_batch.py
|
AspirinCode/jupyter-genomics
|
d45526fab3de8fcc3d9fef005d4e39368ff3dfdc
|
[
"MIT"
] | 2
|
2021-09-10T02:57:51.000Z
|
2021-09-21T00:16:56.000Z
|
from utilities import convert
from utilities import final_joint
import myvariant_parsing_utils
from annovar_processing import get_list_from_annovar_csv
from mongo_DB_export import export
import csv_to_df
class AnnotationMethods(object):
@staticmethod
def by_chunks(variant_list, chunksize, step, file_name, collection_name, db_name):
"""
Export data to MongoDB by chunks, iteratively. It retrives annovar data from a csv file and myvariant data from
their web-server, joins it, and exports it.
This method is well-fitted for large files. Only the 1000 documents are held in memory and processed at a time,
instead of attempting to parse and process an entire csv file at once.
As soon as the method is run, the data will automatically be stored to it. Database and collection name should
be specified, and there must be a running MongoDB connection. The script will set up a client to communicate
between python (through pymongo) and the the database.
:param variant_list: list of HGVS variant ID's. Usually retrived beforehand using the method get_variants_from_vcf
from the class VariantParsing.
:param chunksize: set at 1000 usually for simplicity, since the queries to myvariant.info also have a cap of
1000 variants per query
:param step: just a counter object
:param file_name: name of the collection to which store the data
:param collection_name:
:param db_name: name of the database to which store the collection
:return: nothing, simply exports data to MongoDB
"""
while step*chunksize < len(variant_list):
chunk_ids = variant_list[chunksize*step:chunksize*(step+1)]
df = csv_to_df.parse_to_df(csv_to_df.open_and_parse_chunks(file_name, chunksize, step))
from_annovar = get_list_from_annovar_csv(df, chunk_ids)
open_file = myvariant_parsing_utils.VariantParsing()
from_myvariant = open_file.get_dict_myvariant(chunk_ids)
final_joint(from_annovar, from_myvariant)
joined_list = from_annovar
# From unicode to string
joined_list = convert(joined_list)
print 'Parsing to MongoDB ...'
export(joined_list, collection_name, db_name)
step = step + 1
print 'Step: {} of {}'.format(step, (len(variant_list)/chunksize)+1)
return 'Finished!'
@staticmethod
def full_file(variant_list, file_name):
"""
Retrives annovar data from a csv file and myvariant data from their web-server and return a list of documents
containing info from both services. All done at once.
This method is well-fitted for smaller files.
:param variant_list: list of HGVS variant ID's. Usually retrived beforehand using the method get_variants_from_vcf
from the class VariantParsing.
:param file_name: name of csv_file to be used (coming from annovar's output)
:return:
"""
df = csv_to_df.parse_to_df(csv_to_df.open_and_parse(file_name))
from_annovar = get_list_from_annovar_csv(df, variant_list)
open_file = myvariant_parsing_utils.VariantParsing()
from_myvariant = open_file.get_dict_myvariant(variant_list)
final_joint(from_annovar, from_myvariant)
joined_list = from_annovar
joined_list = convert(joined_list)
print 'Finished!'
return joined_list
@staticmethod
def myvariant_chunks(variant_list, chunksize, step, collection_name, db_name):
"""
Export data to MongoDB by chunks, iteratively. It retrives myvariant data from their web-server solely.
Annovar, and a processed csv file are not required.
This method is well-fitted for large files. Only the 1000 documents are held in memory and processed at a time,
instead of attempting to hold in memory data from all the variants at the same time.
As soon as the method is run, the data will automatically be stored to it. Database and collection name should
be specified, and there must be a running MongoDB connection. The script will set up a client to communicate
between python (through pymongo) and the the database.
:param variant_list: list of HGVS variant ID's. Usually retrived beforehand using the method get_variants_from_vcf
from the class VariantParsing.
:param chunksize: set at 1000 usually for simplicity, since the queries to myvariant.info also have a cap of
1000 variants per query
:param step: just a counter object
:param collection_name: name of the collection to which store the data
:param db_name: name of the database to which store the collection
:return: nothing, simply exports data to MongoDB
"""
while step * chunksize < len(variant_list):
chunk_ids = variant_list[chunksize * step:chunksize * (step + 1)]
open_file = myvariant_parsing_utils.VariantParsing()
from_myvariant = open_file.get_dict_myvariant(chunk_ids)
export(from_myvariant, collection_name, db_name)
step = step + 1
print 'Step: {} of {}'.format(step, (len(variant_list) / chunksize) + 1)
return 'Finished!'
@staticmethod
def my_variant_at_once(variant_list):
"""
Retrives myvariant data from their web-server and return a list of documents. All done at once.
This method is well-fitted for smaller files.
:param variant_list: list of HGVS variant ID's. Usually retrived beforehand using the method get_variants_from_vcf
from the class VariantParsing.
:return: list of documents containing the joint data, can be exporter easily later on
"""
open_file = myvariant_parsing_utils.VariantParsing()
from_myvariant = open_file.get_dict_myvariant(variant_list)
print 'Finished!'
return from_myvariant
| 45.488722
| 122
| 0.699008
| 836
| 6,050
| 4.886364
| 0.185407
| 0.045777
| 0.029376
| 0.023501
| 0.809547
| 0.785312
| 0.769645
| 0.760098
| 0.743452
| 0.743452
| 0
| 0.006599
| 0.248595
| 6,050
| 132
| 123
| 45.833333
| 0.891993
| 0.003636
| 0
| 0.6
| 0
| 0
| 0.033858
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.12
| null | null | 0.1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
76c221378b749f20773202bb073f7157ec224c49
| 2,522
|
py
|
Python
|
examples/flask/client.py
|
Varun-22/Validator
|
2c5caa9323aef35e2796813a357e5a7d6d4a80ba
|
[
"MIT"
] | 41
|
2020-05-07T15:35:12.000Z
|
2021-11-01T03:57:09.000Z
|
examples/flask/client.py
|
Varun-22/Validator
|
2c5caa9323aef35e2796813a357e5a7d6d4a80ba
|
[
"MIT"
] | 83
|
2020-05-09T22:11:26.000Z
|
2022-03-10T19:06:46.000Z
|
examples/flask/client.py
|
Varun-22/Validator
|
2c5caa9323aef35e2796813a357e5a7d6d4a80ba
|
[
"MIT"
] | 25
|
2020-05-27T22:46:01.000Z
|
2022-03-04T01:36:11.000Z
|
import requests as req
from pprint import pprint
import utils as U
import json
FLASK_SERVER_URL = "http://127.0.0.1:5000"
# Main Client Functions
def register_1_pass():
U._log_prompt("1. GET Request With Valid Data")
# Data to validate
data = {
"age": "23",
"first_name": "John",
"last_name": "Doe",
"mail": "john.doe@gmail.com",
}
# Create URL on specific route
URL = FLASK_SERVER_URL + "/register?"
params = "&".join(f"{key}={data[key]}" for key in data)
# Append URL and parameters
URL += params
# Do GET request
U._log_paragraph("Sent GET Request to:")
print(URL)
resp = req.get(URL)
U._log_pass("\nReceived Response:")
pprint(json.loads(resp.text))
def register_2_pass():
U._log_prompt("2. POST Request With Valid Data")
# Data to validate
data = {
"age": "23",
"first_name": "John",
"last_name": "Doe",
"mail": "john.doe@gmail.com",
}
# Create URL on specific route
URL = FLASK_SERVER_URL + "/register"
# Do POST request
U._log_paragraph("Sent GET Request to:")
print(URL)
U._log_paragraph("Sent Data: ")
pprint(data)
resp = req.post(URL, data=data)
U._log_pass("\nReceived Response:")
pprint(json.loads(resp.text))
def register_3_fail():
U._log_prompt("3. GET Request With Invalid Data")
# Data to validate
data = {
"age": "23",
"first_name": "",
"last_name": "Doe",
"mail": "",
}
# Create URL on specific route
URL = FLASK_SERVER_URL + "/register?"
params = "&".join(f"{key}={data[key]}" for key in data)
# Append URL and parameters
URL += params
# Do GET request
U._log_paragraph("Sent GET Request to:")
print(URL)
resp = req.get(URL)
U._log_fail("\nReceived Response:")
pprint(json.loads(resp.text))
def register_4_fail():
U._log_prompt("4. POST Request With Invalid Data")
# Data to validate
data = {
"age": "13",
"first_name": "John",
"last_name": "Doe",
"mail": "john.doe",
}
# Create URL on specific route
URL = FLASK_SERVER_URL + "/register"
# Do POST request
U._log_paragraph("Sent POST Request to:")
print(URL)
U._log_paragraph("Sent Data: ")
pprint(data)
resp = req.post(URL, data=data)
U._log_fail("\nReceived Response:")
pprint(json.loads(resp.text))
register_1_pass()
register_2_pass()
register_3_fail()
register_4_fail()
| 23.351852
| 59
| 0.60111
| 345
| 2,522
| 4.214493
| 0.205797
| 0.038514
| 0.053645
| 0.070151
| 0.811554
| 0.811554
| 0.811554
| 0.811554
| 0.811554
| 0.713205
| 0
| 0.015974
| 0.255353
| 2,522
| 107
| 60
| 23.570093
| 0.758253
| 0.126487
| 0
| 0.643836
| 0
| 0
| 0.267032
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.054795
| false
| 0.082192
| 0.054795
| 0
| 0.109589
| 0.150685
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
8c5faaf49be230949439e76d5b8439cde6d32711
| 3,624
|
py
|
Python
|
apps/profile/views.py
|
jamesj0918/sejongapi-v1
|
5945b959f7d4a97ec64ee40a28a797b30067421b
|
[
"MIT"
] | null | null | null |
apps/profile/views.py
|
jamesj0918/sejongapi-v1
|
5945b959f7d4a97ec64ee40a28a797b30067421b
|
[
"MIT"
] | 2
|
2020-02-11T23:35:52.000Z
|
2020-06-05T19:55:32.000Z
|
apps/profile/views.py
|
jamesj0918/sejongapi-v1
|
5945b959f7d4a97ec64ee40a28a797b30067421b
|
[
"MIT"
] | null | null | null |
from rest_framework.exceptions import NotFound
from rest_framework.permissions import IsAuthenticated
from rest_framework.generics import RetrieveAPIView, RetrieveUpdateAPIView, UpdateAPIView
from rest_framework.response import Response
from rest_framework import status
from .models import Profile
from .serializers import ProfileSerializer, FollowerSerializer
class ProfileRetrieveAPIView(RetrieveAPIView):
queryset = Profile.objects.all()
permission_classes = (IsAuthenticated, )
serializer_class = ProfileSerializer
def retrieve(self, request, user_pk=None, *args, **kwargs):
try:
profile = self.queryset.get(pk=user_pk)
except Profile.DoesNotExist:
raise NotFound('A profile with this username does not exist.')
serializer = self.get_serializer(profile)
return Response(serializer.data, status=status.HTTP_200_OK)
class ProfileRetrieveUpdateAPIView(RetrieveUpdateAPIView):
queryset = Profile.objects.all()
permission_classes = (IsAuthenticated, )
serializer_class = ProfileSerializer
def retrieve(self, request, *args, **kwargs):
try:
profile = self.queryset.get(user=request.user)
except Profile.DoesNotExist:
raise NotFound('This user does not have a profile.')
serializer = self.get_serializer(profile)
return Response(serializer.data, status=status.HTTP_200_OK)
def update(self, request, *args, **kwargs):
try:
profile = self.queryset.get(user=request.user)
except Profile.DoesNotExist:
raise NotFound('This user does not have a profile.')
serializer = self.get_serializer(profile, data=request.data, partial=True)
serializer.is_valid(raise_exception=True)
serializer.save()
return Response(serializer.data, status=status.HTTP_200_OK)
class FollowUpdateAPIView(UpdateAPIView):
serializer_class = FollowerSerializer
lookup_url_kwarg = 'user_pk'
def get_queryset(self):
user_pk = self.kwargs.get('user_pk')
queryset = Profile.objects.filter(user_id=user_pk)
return queryset
def update(self, request, *args, **kwargs):
serializer_instance = self.get_object()
for data in serializer_instance.get_followers().all():
if data == request.user.profile:
return Response('You are already following this user.')
serializer_instance.add_follower(request.user.profile)
serializer = self.get_serializer(serializer_instance, data=request.data, partial=True)
serializer.is_valid(raise_exception=True)
serializer.save()
return Response(serializer.data, status=status.HTTP_200_OK)
class UnfollowUpdateAPIView(UpdateAPIView):
serializer_class = FollowerSerializer
lookup_url_kwarg = 'user_pk'
def get_queryset(self):
user_pk = self.kwargs.get('user_pk')
queryset = Profile.objects.filter(user_id=user_pk)
return queryset
def update(self, request, *args, **kwargs):
serializer_instance = self.get_object()
for data in serializer_instance.get_followers().all():
if data == request.user.profile:
serializer_instance.remove_follower(request.user.profile)
serializer = self.get_serializer(serializer_instance, data=request.data, partial=True)
serializer.is_valid(raise_exception=True)
serializer.save()
return Response(serializer.data, status=status.HTTP_200_OK)
return Response('You are already unfollowing this user.')
| 39.391304
| 102
| 0.705022
| 401
| 3,624
| 6.21197
| 0.206983
| 0.024087
| 0.034123
| 0.054195
| 0.765957
| 0.729024
| 0.725411
| 0.711361
| 0.711361
| 0.711361
| 0
| 0.005236
| 0.209437
| 3,624
| 91
| 103
| 39.824176
| 0.864223
| 0
| 0
| 0.722222
| 0
| 0
| 0.059051
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.097222
| false
| 0
| 0.097222
| 0
| 0.513889
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
4fd9d308d314e16d37f8d0a8574b0a0de66073b5
| 94
|
py
|
Python
|
unknown.py
|
deepettas/intervention
|
6bf6e77c58abc66bc434a986a1dc18313cb5d3ba
|
[
"MIT"
] | 4
|
2015-05-07T16:04:49.000Z
|
2021-07-12T14:06:05.000Z
|
unknown.py
|
deepettas/intervention
|
6bf6e77c58abc66bc434a986a1dc18313cb5d3ba
|
[
"MIT"
] | 9
|
2015-03-21T07:24:54.000Z
|
2015-05-22T17:27:49.000Z
|
unknown.py
|
deepettas/intervention
|
6bf6e77c58abc66bc434a986a1dc18313cb5d3ba
|
[
"MIT"
] | 2
|
2015-05-08T11:47:51.000Z
|
2019-09-29T12:49:32.000Z
|
def hide_cursor():
pass
def show_cursor():
pass
def get_idle_time():
return 0
| 8.545455
| 20
| 0.62766
| 14
| 94
| 3.928571
| 0.714286
| 0.363636
| 0.472727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014706
| 0.276596
| 94
| 10
| 21
| 9.4
| 0.794118
| 0
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0.333333
| 0
| 0.166667
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 1
| 0
|
0
| 8
|
8b250c72f78f1143cee93a8399f2ccee6aae94b1
| 66
|
py
|
Python
|
bot/data/__init__.py
|
lookandhate/Bugtracker-Project
|
e2d5d5261b5549f2494e876de3fd928c60d47c42
|
[
"MIT"
] | 1
|
2022-02-15T12:26:36.000Z
|
2022-02-15T12:26:36.000Z
|
bot/data/__init__.py
|
lookandhate/Bugtracker-Project
|
e2d5d5261b5549f2494e876de3fd928c60d47c42
|
[
"MIT"
] | null | null | null |
bot/data/__init__.py
|
lookandhate/Bugtracker-Project
|
e2d5d5261b5549f2494e876de3fd928c60d47c42
|
[
"MIT"
] | 1
|
2020-04-08T16:30:43.000Z
|
2020-04-08T16:30:43.000Z
|
from .discord_db_models import *
from .discord_db_session import *
| 33
| 33
| 0.833333
| 10
| 66
| 5.1
| 0.6
| 0.431373
| 0.509804
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106061
| 66
| 2
| 33
| 33
| 0.864407
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
8b414449c53dc044ce65ac7b2d1e317921c7bb1c
| 80,086
|
py
|
Python
|
cnns/nnlib/pytorch_layers/conv1D_fft_test.py
|
anonymous-user-commits/perturb-net
|
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
|
[
"MIT"
] | 1
|
2018-03-25T13:19:46.000Z
|
2018-03-25T13:19:46.000Z
|
cnns/nnlib/pytorch_layers/conv1D_fft_test.py
|
anonymous-user-commits/perturb-net
|
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
|
[
"MIT"
] | null | null | null |
cnns/nnlib/pytorch_layers/conv1D_fft_test.py
|
anonymous-user-commits/perturb-net
|
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
|
[
"MIT"
] | null | null | null |
import logging
import unittest
import gc
import numpy as np
import torch
from scipy import stats
from torch import tensor
from cnns.nnlib.layers import conv_backward_naive_1D
from cnns.nnlib.layers import conv_forward_naive_1D
from cnns.nnlib.pytorch_layers.conv1D_fft \
import Conv1dfftFunction, Conv1dfftAutograd, Conv1dfft, Conv1dfftSimple, \
Conv1dfftCompressSignalOnly, Conv1dfftSimpleForLoop
from cnns.nnlib.pytorch_layers.pytorch_utils import MockContext
from cnns.nnlib.pytorch_layers.pytorch_utils import get_tensors
from cnns.nnlib.pytorch_layers.pytorch_utils import del_object
from cnns.nnlib.utils.log_utils import get_logger
from cnns.nnlib.utils.log_utils import set_up_logging
from cnns.nnlib.utils.arguments import Arguments
from cnns.nnlib.pytorch_layers.pytorch_utils import get_numpy
from cnns.nnlib.utils.general_utils import ConvExecType
from cnns.nnlib.utils.general_utils import CompressType
from cnns.nnlib.datasets.ucr.ucr_example import fifty_words
from cnns.nnlib.datasets.ucr.ucr_example import adiac_example
ERR_MSG = "Expected x is different from computed y."
# convTypes = [Conv1dfftAutograd, Conv1dfft, Conv1dfftSimple,
# Conv1dfftSimpleForLoop, Conv1dfftCompressSignalOnly]
convTypes = [Conv1dfft]
class TestPyTorchConv1d(unittest.TestCase):
def setUp(self):
log_file = "pytorch_conv1D_reuse_map_fft.log"
is_debug = True
set_up_logging(log_file=log_file, is_debug=is_debug)
self.logger = get_logger(name=__name__)
self.logger.setLevel(logging.DEBUG)
self.logger.info("Set up test")
seed = 31
if torch.cuda.is_available():
self.device = torch.device("cuda")
print("cuda is available")
torch.cuda.manual_seed_all(seed)
else:
self.device = torch.device("cpu")
print("cuda is not available")
torch.manual_seed(seed)
self.dtype = torch.float
self.ERR_MESSAGE_ALL_CLOSE = "The expected array desired and " \
"computed actual are not almost equal."
def test_FunctionForwardNoCompression(self):
x = np.array([[[1., 2., 3.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result = np.correlate(x[0, 0, :], y[0, 0, :], mode="valid")
for convType in convTypes:
print("Conv type: ", convType)
conv = convType(filter_value=torch.from_numpy(y).to(self.device),
bias_value=torch.from_numpy(b).to(self.device))
result = conv.forward(input=torch.from_numpy(x).to(self.device))
np.testing.assert_array_almost_equal(
get_numpy(result), np.array([[expected_result]]))
def test_FunctionForwardNoCompressionCUDA(self):
if torch.cuda.is_available():
args = Arguments(conv_exec_type=ConvExecType.CUDA)
x = np.array([[[1., 2., 3.]]])
y = np.array([[[2., 1.]]])
b = np.array([2.0])
# get the expected results from numpy correlate
# expected_result = np.correlate(x[0, 0, :], y[0, 0, :], mode="valid")
conv_param = {'pad': 0, 'stride': 1}
expected_result, _ = conv_forward_naive_1D(x, y, b, conv_param)
for convType in convTypes:
print("Conv type: ", convType)
conv = convType(
filter_value=torch.from_numpy(y).to(self.device),
bias_value=torch.from_numpy(b).to(self.device), args=args)
result = conv.forward(input=torch.from_numpy(x).to(self.device))
np.testing.assert_array_almost_equal(
result.cpu().detach().numpy(),
np.array(expected_result))
def test_FunctionForwardNoCompressionFFTForCompressSignalOnly(self):
x = np.array([[[1., 2., 3.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result = np.correlate(x[0, 0, :], y[0, 0, :], mode="valid")
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b))
result = conv.forward(input=torch.from_numpy(x))
np.testing.assert_array_almost_equal(
result, np.array([[expected_result]]))
def test_FunctionForwardNoCompressionLongInput(self):
x = np.array([[[1., 2., 3., 1., 4., 5., 10.]]])
y = np.array([[[2., 1., 3.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result = np.correlate(x[0, 0, :], y[0, 0, :], mode="valid")
for convType in convTypes:
print("Conv type: ", convType)
conv = convType(filter_value=torch.from_numpy(y).to(self.device),
bias_value=torch.from_numpy(b).to(self.device))
result = conv.forward(input=torch.from_numpy(x).to(self.device))
np.testing.assert_array_almost_equal(
result.cpu(), np.array([[expected_result]]))
def test_FunctionForwardNoCompressionLongInputLength6(self):
x = np.array([[[1., 2., 3., 1., 4., 5.]]])
y = np.array([[[2., 1., 3.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result = np.correlate(x[0, 0, :], y[0, 0, :], mode="valid")
conv = Conv1dfft(filter_value=torch.from_numpy(y).to(self.device),
bias_value=torch.from_numpy(b).to(self.device))
result = conv.forward(input=torch.from_numpy(x).to(self.device))
np.testing.assert_array_almost_equal(
result.cpu(), np.array([[expected_result]]))
def test_FunctionForwardNoCompressionLongInputLength7(self):
x = np.array([[[1., 2., 3., 1., 4., 5., 10.]]])
y = np.array([[[2., 1., 3.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result = np.correlate(x[0, 0, :], y[0, 0, :], mode="valid")
conv = Conv1dfft(filter_value=torch.from_numpy(y).to(self.device),
bias_value=torch.from_numpy(b).to(self.device))
result = conv.forward(input=torch.from_numpy(x).to(self.device))
np.testing.assert_array_almost_equal(
result.cpu(), np.array([[expected_result]]))
def test_FunctionForwardWithCompressionLongInputLength7(self):
x = np.array([[[1., 2., 3., 1., 4., 5., 10.]]])
y = np.array([[[2., 1., 3.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_full = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
print("\nexpected_result_full: ", expected_result_full)
# expected_result_compressed = np.array(
# [14.59893, 31.640892, 46.518675, 24.199734, 26.882395])
# expected_result_compressed = np.array(
# [9.742255, 13.940483, 14.548998, 25.766991, 38.12536])
expected_result_compressed = np.array(
[10.5, 12.5, 16.5, 23.5, 40.5])
print("\nexpected_result_compressed: ", expected_result_compressed)
conv = Conv1dfft(filter_value=torch.from_numpy(y).to(self.device),
bias_value=torch.from_numpy(b).to(self.device),
args=Arguments(compress_rate=5))
result = conv.forward(input=torch.from_numpy(x).to(self.device))
expected = np.array([[expected_result_compressed]])
np.testing.assert_array_almost_equal(
x=result.cpu(), y=expected, decimal=6,
err_msg=f"obtained x:{result} is different than "
f"expected: {expected}!")
def test_FunctionForwardWithCompressionPreserveEnergyLongInputLength7(self):
x = np.array([[[1., 2., 3., 1., 4., 5., 10.]]])
y = np.array([[[2., 1., 3.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_full = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
print("\nexpected_result_full: ", expected_result_full)
# expected_result_compressed = np.array(
# [14.59893, 31.640892, 46.518675, 24.199734, 26.882395])
# expected_result_compressed = np.array(
# [[[42.426593, 46.477607, 35.418644, 31.677156, 0.]]])
expected_result_compressed = np.array(
[[[10.560706, 11.467013, 16.909018, 26.97858, 33.50754]]])
print("\nexpected_result_compressed: ", expected_result_compressed)
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(preserved_energy=80))
result = conv.forward(input=torch.from_numpy(x))
np.testing.assert_array_almost_equal(
x=np.array(expected_result_compressed), y=result, decimal=6,
err_msg=ERR_MSG)
def test_FunctionForwardNoCompressionLongInputLength8(self):
x = np.array([[[1., 2., 3., 1., 4., 5., 10., 3.]]])
y = np.array([[[2., 1., 3.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result = np.correlate(x[0, 0, :], y[0, 0, :], mode="valid")
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b))
result = conv.forward(input=torch.from_numpy(x))
np.testing.assert_array_almost_equal(
result, np.array([[expected_result]]))
def test_FunctionForwardWithCompressionLongInputLength8(self):
x = np.array([[[1., 2., 3., 1., 4., 5., 10., 3.]]])
y = np.array([[[2., 1., 3.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_full = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
print("\nexpected_result_full: ", expected_result_full)
# expected_result_compressed = np.array(
# [[[12.576667, 18.381238, 31.209274, 45.34337,
# 28.775293, 21.985649]]])
expected_result_compressed = np.array(
[[[10.428204, 12.848331, 15.972131, 24.104296, 39.924989,
31.94101]]])
print("\nexpected_result_compressed: ", expected_result_compressed)
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(compress_rate=5))
result = conv.forward(input=torch.from_numpy(x))
np.testing.assert_array_almost_equal(
x=result, y=np.array(expected_result_compressed), decimal=6,
err_msg="Obtained result x is different than expected y."
)
def test_FunctionForwardNoCompressionSimpleConvFFT(self):
x = np.array([[[1., 2., 3.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result = np.correlate(x[0, 0, :], y[0, 0, :], mode="valid")
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b))
result = conv.forward(input=torch.from_numpy(x))
np.testing.assert_array_almost_equal(
result, np.array([[expected_result]]))
def test_FunctionForwardCompression(self):
x = np.array([[[1., 2., 3., 4., 5., 6., 7., 8.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
# expected_result = np.array(
# [[[4.25, 6.75, 10.25, 12.75, 16.25, 18.75, 22.25]]])
expected_result = np.array(
[[[4.125, 6.875, 10.125, 12.875, 16.125, 18.875, 22.125]]])
for convType in [Conv1dfft]:
print("Conv type: ", convType)
conv = convType(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(compress_rate=1))
result = conv.forward(input=torch.from_numpy(x))
np.testing.assert_array_almost_equal(
x=np.array(expected_result), y=result,
err_msg="Expected x is different from computed y.")
def test_FunctionForwardCompressionConvFFTSimple1PercentIndexBack(self):
x = np.array([[[1., 2., 3., 4., 5., 6., 7., 8.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_numpy = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
print("expected_result_numpy: ", expected_result_numpy)
# expected_result = np.array(
# [[[4.25, 6.75, 10.25, 12.75, 16.25, 18.75, 22.25]]])
# expected_result = np.array([[[2.893933, 7.958111, 9.305407, 13.347296,
# 16.041889, 18.573978, 22.75877]]])
# expected_result = np.array(
# [[[4.25, 6.75, 10.25, 12.75, 16.25, 18.75, 22.25]]])
expected_result = np.array(
[[[4.125, 6.875, 10.125, 12.875, 16.125, 18.875, 22.125]]]
)
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(compress_rate=1))
result = conv.forward(input=torch.from_numpy(x))
print("actual result: ", result)
np.testing.assert_array_almost_equal(
x=np.array(expected_result), y=result,
err_msg="Expected x is different from computed y.")
expected_result_tensor = tensor([[expected_result_numpy]],
dtype=torch.float32)
result_tensor = tensor(result, dtype=torch.float32)
print("absolute divergence: ",
torch.sum(torch.abs(result_tensor - expected_result_tensor),
dim=-1).item())
def test_FunctionForwardCompressionConvFFTSimple25PercentIndexBack(self):
x = np.array([[[1., 2., 3., 4., 5., 6., 7., 8.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_numpy = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
print("expected_result_numpy: ", expected_result_numpy)
# expected_result = np.array(
# [[[4.25, 6.75, 10.25, 12.75, 16.25, 18.75, 22.25]]])
# expected_result = np.array(
# [[[2.893933, 7.958111, 9.305407, 13.347296, 16.041889, 18.573978,
# 22.75877]]]
# )
expected_result = np.array([[[1.893933, 6.958111, 11.305407,
12.347296, 15.041889, 20.573978,
21.75877]]])
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(compress_rate=25))
result = conv.forward(input=torch.from_numpy(x))
print("actual result: ", result)
np.testing.assert_array_almost_equal(
x=np.array(expected_result), y=result,
err_msg="Expected x is different from computed y.")
expected_result_tensor = tensor([[expected_result_numpy]],
dtype=torch.float32)
result_tensor = tensor(result, dtype=torch.float32)
print("absolute divergence 1 index back: ",
torch.sum(torch.abs(result_tensor - expected_result_tensor),
dim=-1).item())
def test_FunctionForwardCompressionConvFFTSimple25PercentIndexBack(self):
x = np.array([[[1., 2., 3., 4., 5., 6., 7., 8.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_numpy = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
print("expected_result_numpy: ", expected_result_numpy)
# expected_result = np.array(
# [[[4.25, 6.75, 10.25, 12.75, 16.25, 18.75, 22.25]]])
# expected_result = np.array(
# [[[2.893933, 7.958111, 9.305407, 13.347296, 16.041889, 18.573978,
# 22.75877]]]
# )
expected_result = np.array([[[4.392661, 6.760233, 9.81906, 13.573233,
15.376577, 19.196887, 22.567054]]])
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(compress_rate=25))
result = conv.forward(input=torch.from_numpy(x))
print("actual result: ", result)
np.testing.assert_array_almost_equal(
x=np.array(expected_result), y=result,
err_msg="Expected x is different from computed y.")
expected_result_tensor = tensor([[expected_result_numpy]],
dtype=torch.float32)
result_tensor = tensor(result, dtype=torch.float32)
print("absolute divergence 2 indexes back: ",
torch.sum(torch.abs(result_tensor - expected_result_tensor),
dim=-1).item())
def test_FunctionForwardCompressionConvFFTSimple50PercentIndexBack(self):
x = np.array([[[1., 2., 3., 4., 5., 6., 7., 8.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_numpy = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
print("expected_result_numpy: ", expected_result_numpy)
# expected_result = np.array(
# [[[4.25, 6.75, 10.25, 12.75, 16.25, 18.75, 22.25]]])
# expected_result = np.array(
# [[[2.893933, 7.958111, 9.305407, 13.347296, 16.041889, 18.573978,
# 22.75877]]]
# )
# expected_result = np.array([[[1.893933, 6.958111, 11.305407,
# 12.347296, 15.041889, 20.573978,
# 21.75877]]])
# expected_result = np.array(
# [[[4.056437, 4.361844, 8.24123, 13.879385, 18.638156,
# 20.290859, 18.064178]]])
expected_result = np.array(
[[[4.642227, 7.571062, 9.331596, 11.987442, 16.695069, 20.921597,
20.311209]]])
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(compress_rate=50))
result = conv.forward(input=torch.from_numpy(x))
print("actual result: ", result)
np.testing.assert_array_almost_equal(
x=np.array(expected_result), y=result,
err_msg="Expected x is different from computed y.")
expected_result_tensor = tensor([[expected_result_numpy]],
dtype=torch.float32)
result_tensor = tensor(result, dtype=torch.float32)
print("absolute divergence 3 indexes back: ",
torch.sum(torch.abs(result_tensor - expected_result_tensor),
dim=-1).item())
def test_FunctionForwardCompressionConvFFTSimple70PercentIndexBack(self):
x = np.array([[[1., 2., 3., 4., 5., 6., 7., 8.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_numpy = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
print("expected_result_numpy: ", expected_result_numpy)
# expected_result = np.array(
# [[[4.25, 6.75, 10.25, 12.75, 16.25, 18.75, 22.25]]])
# expected_result = np.array(
# [[[2.893933, 7.958111, 9.305407, 13.347296, 16.041889, 18.573978,
# 22.75877]]]
# )
# expected_result = np.array([[[1.893933, 6.958111, 11.305407,
# 12.347296, 15.041889, 20.573978,
# 21.75877]]])
# expected_result = np.array(
# [[[12., 12., 12., 12., 12., 12., 12.]]])
expected_result = np.array(
[[[4.978448, 8.778, 12.268808, 14.919427, 16.326325, 16.275314,
14.774161]]])
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(compress_rate=70))
result = conv.forward(input=torch.from_numpy(x))
print("actual result: ", result)
np.testing.assert_array_almost_equal(
x=np.array(expected_result), y=result,
err_msg="Expected x is different from computed y.")
expected_result_tensor = tensor([[expected_result_numpy]],
dtype=torch.float32)
result_tensor = tensor(result, dtype=torch.float32)
print("absolute divergence 4 indexes back: ",
torch.sum(torch.abs(result_tensor - expected_result_tensor),
dim=-1).item())
def test_FunctionForwardCompressionConvFFTPreserveEnergy(self):
x = np.array([[[1., 2., 3., 4., 5., 6., 7., 8.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_numpy = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
expected_result_tensor = tensor([[expected_result_numpy]],
dtype=torch.float32)
print("expected_result_numpy: ", expected_result_numpy)
# preserved_energies = [100., 99.5, 99.1, 99.0, 97., 96., 95., 90.,
# 80., 10.]
preserved_energies = [95.]
for preserved_energy in preserved_energies:
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(preserved_energy=preserved_energy,
is_debug=True,
compress_type=CompressType.NO_FILTER))
result = conv.forward(input=torch.from_numpy(x))
print("actual result: ", result)
result_tensor = tensor(result, dtype=torch.float32)
print("absolute divergence for preserved energy {} is {}".format(
preserved_energy, torch.sum(
torch.abs(result_tensor - expected_result_tensor),
dim=-1).item()))
def test_FunctionForwardCompressionConvFFTPreserveEnergy50wordsBigCoeff(
self):
x = fifty_words
print("length of the input signal: ", x.shape[-1])
y = np.array(
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1])
y = stats.zscore(y)
y = np.array([[y]])
print("length of the filter: ", y.shape[-1])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_numpy = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
expected_result_tensor = tensor([[expected_result_numpy]],
dtype=torch.float32)
# print("expected_result_numpy: ", expected_result_numpy)
# preserved_energies = [100., 99.5, 99.1, 99.0, 97., 96., 95., 85.,
# 80., 70., 60., 50., 40., 10.]
preserved_energies = [95.]
# compress_rates = [1, 2, 4, 8, 16, 32, 64, 128, 256]
for preserved_energy in preserved_energies:
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(preserved_energy=preserved_energy,
is_debug=True,
next_power2=False,
compress_type=CompressType.BIG_COEFF))
result = conv.forward(input=torch.from_numpy(x))
# print("actual result: ", result)
result = result.float()
print(
"absolute divergence for preserved energy,{},is,{},stop".format(
preserved_energy, torch.sum(
torch.abs(result - expected_result_tensor),
dim=-1).item()))
def test_FunctionForwardCompressionConvFFTPreserveEnergy50wordsLowCoeff(
self):
x = fifty_words
print("length of the input signal: ", x.shape[-1])
y = np.array(
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1])
y = stats.zscore(y)
y = np.array([[y]])
print("length of the filter: ", y.shape[-1])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_numpy = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
expected_result_tensor = tensor([[expected_result_numpy]],
dtype=torch.float32)
# print("expected_result_numpy: ", expected_result_numpy)
# preserved_energies = [100., 99.5, 99.1, 99.0, 97., 96., 95., 85.,
# 80., 70., 60., 50., 40., 10.]
preserved_energies = [95.]
# compress_rates = [1, 2, 4, 8, 16, 32, 64, 128, 256]
for preserved_energy in preserved_energies:
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(preserved_energy=preserved_energy,
is_debug=True, next_power2=False,
compress_type=CompressType.LOW_COEFF))
result = conv.forward(input=torch.from_numpy(x))
# print("actual result: ", result)
result = result.float()
print(
"absolute divergence for preserved energy,{},is,{},stop".format(
preserved_energy, torch.sum(
torch.abs(result - expected_result_tensor),
dim=-1).item()))
def test_FunctionForwardCompressionConvFFTIndexBack50words(self):
x = fifty_words
print("length of the input signal: ", x.shape[-1])
y = np.array(
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1])
y = stats.zscore(y)
y = np.array([[y]])
print("length of the filter: ", y.shape[-1])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_numpy = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
expected_result_tensor = tensor([[expected_result_numpy]],
dtype=torch.float32)
# print("expected_result_numpy: ", expected_result_numpy)
# preserved_energies = [100., 99.5, 99.1, 99.0, 97., 96., 95., 85.,
# 80., 70., 60., 50., 40., 10.]
# preserved_energies = [95.]
# compress_rates = [1, 2, 4, 8, 16, 32, 64, 100] # percent
indexes_back = [8] # percent
for compress_rate in indexes_back:
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(compress_rate=compress_rate,
preserved_energy=None,
is_debug=True,
compress_type=CompressType.LOW_COEFF,
next_power2=False))
result = conv.forward(input=torch.from_numpy(x))
# print("actual result: ", result)
result_tensor = result.float()
print(
"absolute divergence for index back,{},is,{},stop".format(
compress_rate, torch.sum(
torch.abs(result_tensor - expected_result_tensor),
dim=-1).item()))
def test_FunctionForwardCompressionConvFFTIndexBackBigCoeff50words(self):
x = fifty_words
print("length of the input signal: ", x.shape[-1])
y = np.array(
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1])
y = stats.zscore(y)
y = np.array([[y]])
print("length of the filter: ", y.shape[-1])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_numpy = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
expected_result_tensor = tensor([[expected_result_numpy]],
dtype=torch.float32)
# print("expected_result_numpy: ", expected_result_numpy)
# preserved_energies = [100., 99.5, 99.1, 99.0, 97., 96., 95., 85.,
# 80., 70., 60., 50., 40., 10.]
# preserved_energies = [95.]
# compress_rates = [1, 2, 4, 8, 16, 32, 64, 100] # percent
indexes_back = [8]
for compress_rate in indexes_back:
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(compress_rate=compress_rate,
preserved_energy=None,
is_debug=True,
next_power2=False,
compress_type=CompressType.BIG_COEFF))
result = conv.forward(input=torch.from_numpy(x))
# print("actual result: ", result)
result_tensor = tensor(result, dtype=torch.float32)
print(
"absolute divergence for index back,{},is,{},stop".format(
compress_rate, torch.sum(
torch.abs(result_tensor - expected_result_tensor),
dim=-1).item()))
def test_FunctionForwardCompressionConvFFTPreserveEnergyAdiac(self):
x = adiac_example
print("length of the input signal: ", x.shape[-1])
y = np.array(
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1])
y = stats.zscore(y)
y = np.array([[y]])
print("length of the filter: ", y.shape[-1])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_numpy = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
expected_result_tensor = tensor([[expected_result_numpy]],
dtype=torch.float32)
# print("expected_result_numpy: ", expected_result_numpy)
# preserved_energies = [100., 99.5, 99.1, 99.0, 97., 96., 95., 85.,
# 80., 70., 60., 50., 40., 10.]
preserved_energies = [50.]
for preserved_energy in preserved_energies:
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(preserved_energy=preserved_energy,
is_debug=True, next_power2=False,
compress_type=CompressType.STANDARD))
result = conv.forward(input=torch.from_numpy(x))
# print("actual result: ", result)
result_tensor = tensor(result, dtype=torch.float32)
print(
"absolute divergence for preserved energy,{},is,{},stop".format(
preserved_energy, torch.sum(
torch.abs(result_tensor - expected_result_tensor),
dim=-1).item()))
def test_FunctionForwardCompressionSignalOnlyPreserveEnergy(self):
# x = np.array([[[1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12.,
# 13., 14., 15., 16., 17., 18., 19., 20.]]])
x = np.array([[[1., 2., 3., 4., 5., 6., 7., 8.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_numpy = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
expected_result_tensor = tensor([[expected_result_numpy]],
dtype=torch.float32)
print("expected_result_numpy: ", expected_result_numpy)
# preserve_energies = [100., 99.5, 99.1, 99.0, 97., 96., 95., 90., 80.,
# 10., 1.]
preserve_energies = [50.0]
for preserved_energy in preserve_energies:
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(preserved_energy=preserved_energy,
next_power2=False))
result = conv.forward(input=torch.from_numpy(x))
print("actual result: ", result)
result_tensor = tensor(result, dtype=torch.float32)
print("absolute divergence for preserved energy {} is {}".format(
preserved_energy, torch.sum(
torch.abs(result_tensor - expected_result_tensor),
dim=-1).item()))
def test_FunctionForwardCompressionConvSimpleForLoopPreserveEnergy(self):
x = np.array([[[1., 2., 3., 4., 5., 6., 7., 8.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result_numpy = np.correlate(x[0, 0, :], y[0, 0, :],
mode="valid")
expected_result_tensor = tensor([[expected_result_numpy]],
dtype=torch.float32)
print("expected_result_numpy: ", expected_result_numpy)
# preserve_energies = [100., 99.5, 99.1, 99.0, 97., 96., 95., 90.,
# 80., 10.]
preserve_energies = [50.0]
for preserved_energy in preserve_energies:
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(preserved_energy=preserved_energy,
next_power2=True))
result = conv.forward(input=torch.from_numpy(x))
print("actual result: ", result)
result_tensor = tensor(result, dtype=torch.float32)
print("absolute divergence for preserved energy {} is {}".format(
preserved_energy, torch.sum(
torch.abs(result_tensor - expected_result_tensor),
dim=-1).item()))
def test_FunctionForwardSpectralPooling(self):
x = np.array([[[1., 2., 3., 4., 5., 6., 7., 8.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
# expected_result = np.array(
# [[[2.771341, 5.15668, 9.354594, 14.419427]]])
expected_result = np.array(
[[[4.904259, 6.398284, 8.617751, 12.688923]]])
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
out_size=4)
result = conv.forward(input=torch.from_numpy(x))
np.testing.assert_array_almost_equal(
x=np.array(expected_result), y=result,
err_msg="Expected x is different from computed y.")
def test_FunctionForwardNoCompressionManySignalsOneChannel(self):
x = np.array([[[1., -1., 0.]], [[1., 2., 3.]]])
y = np.array([[[-2.0, 3.0]]])
b = np.array([0.0])
# get the expected result
conv_param = {'pad': 0, 'stride': 1}
expected_result, _ = conv_forward_naive_1D(x, y, b,
conv_param)
self.logger.debug("expected result: " + str(expected_result))
conv = Conv1dfftFunction()
result = conv.forward(ctx=None, input=torch.from_numpy(x),
filter=torch.from_numpy(y),
bias=torch.from_numpy(b))
self.logger.debug("obtained result: " + str(result))
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
def test_FunctionForwardNoCompressionManySignalsOneChannelConvSimpleFFT(
self):
x = np.array([[[1., -1., 0.]], [[1., 2., 3.]]])
y = np.array([[[-2.0, 3.0]]])
b = np.array([0.0])
# get the expected result
conv_param = {'pad': 0, 'stride': 1}
expected_result, _ = conv_forward_naive_1D(x, y, b,
conv_param)
self.logger.debug("expected result: " + str(expected_result))
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b))
result = conv.forward(input=torch.from_numpy(x))
self.logger.debug("obtained result: " + str(result))
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
def test_FunctionForwardNoCompressionManySignalsOneFilterTwoChannels(self):
x = np.array([[[1., 2., 3.], [4., 5., 6.]],
[[1., -1., 0.], [2., 5., 6.]]])
y = np.array([[[0.0, 1.0], [-1.0, -1.0]]])
b = np.array([0.0])
# get the expected result
conv_param = {'pad': 0, 'stride': 1}
expected_result, _ = conv_forward_naive_1D(x, y, b,
conv_param)
self.logger.debug("expected result: " + str(expected_result))
conv = Conv1dfftFunction()
result = conv.forward(ctx=None, input=torch.from_numpy(x),
filter=torch.from_numpy(y),
bias=torch.from_numpy(b))
self.logger.debug("obtained result: " + str(result))
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
def test_FunctionForwardNoCompressionManySignalsOneFilterTwoChannelsSimpleFFTConv(
self):
x = np.array([[[1., 2., 3.], [4., 5., 6.]],
[[1., -1., 0.], [2., 5., 6.]]])
y = np.array([[[0.0, 1.0], [-1.0, -1.0]]])
b = np.array([1.0])
# get the expected result
conv_param = {'pad': 0, 'stride': 1}
expected_result, _ = conv_forward_naive_1D(x, y, b,
conv_param)
self.logger.debug("expected result: " + str(expected_result))
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b))
result = conv.forward(input=torch.from_numpy(x))
self.logger.debug("obtained result: " + str(result))
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
def test_FunctionForwardNoCompression2Signals2Filters2Channels(self):
x = np.array(
[[[1., 2., 3.], [4., 5., 6.]], [[1., -1., 0.], [2., 5., 6.]]])
y = np.array([[[2., 1.], [1., 3.]], [[0.0, 1.0], [-1.0, -1.0]]])
b = np.array([1.0, 2.0])
# get the expected result
conv_param = {'pad': 0, 'stride': 1}
expected_result, _ = conv_forward_naive_1D(x, y, b,
conv_param)
self.logger.debug("expected result: " + str(expected_result))
conv = Conv1dfftFunction()
result = conv.forward(ctx=None, input=torch.from_numpy(x),
filter=torch.from_numpy(y),
bias=torch.from_numpy(b))
self.logger.debug("obtained result: " + str(result))
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
def test_FunctionForwardNoCompression2Signals2Filters2ChannelsSipleFFTConv(
self):
x = np.array(
[[[1., 2., 3.], [4., 5., 6.]], [[1., -1., 0.], [2., 5., 6.]]])
y = np.array([[[2., 1.], [1., 3.]], [[0.0, 1.0], [-1.0, -1.0]]])
b = np.array([1.0, 2.0])
# get the expected result
conv_param = {'pad': 0, 'stride': 1}
expected_result, _ = conv_forward_naive_1D(x, y, b,
conv_param)
self.logger.debug("expected result: " + str(expected_result))
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b))
result = conv.forward(input=torch.from_numpy(x))
self.logger.debug("obtained result: " + str(result))
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
def test_FunctionForwardRandom1(self):
num_channels = 3
num_data_points = 11
num_values_data = 21
num_values_filter = 5
num_filters = 3
# Input signal: 5 data points, 3 channels, 10 values.
x = np.random.rand(num_data_points, num_channels, num_values_data)
# Filters: 3 filters, 3 channels, 4 values.
y = np.random.rand(num_filters, num_channels, num_values_filter)
# Bias: one for each filter
b = np.random.rand(num_filters)
# get the expected result
conv_param = {'pad': 0, 'stride': 1}
expected_result, _ = conv_forward_naive_1D(x, y, b, conv_param)
self.logger.debug("expected result: " + str(expected_result))
conv = Conv1dfftFunction()
result = conv.forward(ctx=None, input=torch.from_numpy(x).to(self.device),
filter=torch.from_numpy(y).to(self.device),
bias=torch.from_numpy(b).to(self.device)).cpu()
self.logger.debug("obtained result: " + str(result))
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
def test_FunctionForwardRandomCUDA2(self):
if torch.cuda.is_available():
args = Arguments(conv_exec_type=ConvExecType.CUDA)
num_channels = 3
num_data_points = 11
num_values_data = 21
num_values_filter = 5
num_filters = 3
# Input signal: 5 data points, 3 channels, 10 values.
x = np.random.rand(num_data_points, num_channels, num_values_data)
# Filters: 3 filters, 3 channels, 4 values.
y = np.random.rand(num_filters, num_channels, num_values_filter)
# Bias: one for each filter
b = np.random.rand(num_filters)
# get the expected result
conv_param = {'pad': 0, 'stride': 1}
expected_result, _ = conv_forward_naive_1D(x, y, b, conv_param)
self.logger.debug("expected result: " + str(expected_result))
conv = Conv1dfftFunction()
result = conv.forward(ctx=None,
input=torch.from_numpy(x).to(self.device),
filter=torch.from_numpy(y).to(self.device),
bias=torch.from_numpy(b).to(self.device),
args=args).cpu()
self.logger.debug("obtained result: " + str(result))
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
def test_FunctionForwardRandomSipleFFTConv(self):
num_channels = 3
num_data_points = 11
num_values_data = 21
num_values_filter = 5
num_filters = 3
# Input signal: 5 data points, 3 channels, 10 values.
x = np.random.rand(num_data_points, num_channels, num_values_data)
# Filters: 3 filters, 3 channels, 4 values.
y = np.random.rand(num_filters, num_channels, num_values_filter)
# Bias: one for each filter
b = np.random.rand(num_filters)
# get the expected result
conv_param = {'pad': 0, 'stride': 1}
expected_result, _ = conv_forward_naive_1D(x, y, b, conv_param)
self.logger.debug("expected result: " + str(expected_result))
conv = Conv1dfft(filter_value=torch.from_numpy(y).to(self.device),
bias_value=torch.from_numpy(b).to(self.device))
result = conv.forward(input=torch.from_numpy(x).to(self.device))
result = get_numpy(result)
self.logger.debug("obtained result: " + str(result))
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
def test_FunctionForwardRandomFFTSimpleCompressSignalOnly(self):
num_channels = 3
num_data_points = 11
num_values_data = 21
num_values_filter = 5
num_filters = 3
# Input signal: 5 data points, 3 channels, 10 values.
x = np.random.rand(num_data_points, num_channels, num_values_data)
# Filters: 3 filters, 3 channels, 4 values.
y = np.random.rand(num_filters, num_channels, num_values_filter)
# Bias: one for each filter
b = np.random.rand(num_filters)
# get the expected result
conv_param = {'pad': 0, 'stride': 1}
expected_result, _ = conv_forward_naive_1D(x, y, b, conv_param)
self.logger.debug("expected result: " + str(expected_result))
conv = Conv1dfft(filter_value=torch.from_numpy(y).to(self.device),
bias_value=torch.from_numpy(b).to(self.device))
result = conv.forward(input=torch.from_numpy(x).to(self.device))
result = get_numpy(result)
self.logger.debug("obtained result: " + str(result))
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
def test_FunctionBackwardNoCompressionWithBias(self):
x = np.array([[[1.0, 2.0, 3.0]]])
y = np.array([[[2.0, 1.0]]])
b = np.array([2.0])
dtype = torch.float
x_torch = tensor(x, requires_grad=True, dtype=dtype, device=self.device)
y_torch = tensor(y, requires_grad=True, dtype=dtype, device=self.device)
b_torch = tensor(b, requires_grad=True, dtype=dtype, device=self.device)
conv_param = {'pad': 0, 'stride': 1}
expected_result, cache = conv_forward_naive_1D(x, y, b,
conv_param)
ctx = MockContext()
ctx.set_needs_input_grad(3)
result_torch = Conv1dfftFunction.forward(
ctx, input=x_torch, filter=y_torch, bias=b_torch)
result = result_torch.cpu().detach().numpy()
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
dout = tensor([[[0.1, -0.2]]], dtype=dtype, device=self.device)
# get the expected result from the backward pass
expected_dx, expected_dw, expected_db = \
conv_backward_naive_1D(dout.cpu().numpy(), cache)
dx, dw, db, _, _, _, _, _, _ = Conv1dfftFunction.backward(
ctx,
dout)
dx = dx.cpu()
dw = dw.cpu()
db = db.cpu()
self.logger.debug("expected dx: " + str(expected_dx))
self.logger.debug("computed dx: " + str(dx))
# are the gradients correct
np.testing.assert_array_almost_equal(dx.detach().numpy(),
expected_dx)
np.testing.assert_array_almost_equal(dw.detach().numpy(),
expected_dw)
np.testing.assert_array_almost_equal(db.detach().numpy(),
expected_db)
def test_FunctionNoCompressionWithBiasCUDA(self):
if torch.cuda.is_available():
args = Arguments(conv_exec_type=ConvExecType.CUDA)
x = np.array([[[1.0, 2.0, 3.0]]])
y = np.array([[[2.0, 1.0]]])
b = np.array([2.0])
dtype = torch.float
x_torch = tensor(x, requires_grad=True, dtype=dtype,
device=self.device)
y_torch = tensor(y, requires_grad=True, dtype=dtype,
device=self.device)
b_torch = tensor(b, requires_grad=True, dtype=dtype,
device=self.device)
conv_param = {'pad': 0, 'stride': 1}
expected_result, cache = conv_forward_naive_1D(x, y, b,
conv_param)
ctx = MockContext()
ctx.set_needs_input_grad(3)
result_torch = Conv1dfftFunction.forward(
ctx, input=x_torch, filter=y_torch, bias=b_torch, args=args)
dout = tensor([[[0.1, -0.2]]], dtype=dtype)
dx, dw, db, _, _, _, _, _, _ = Conv1dfftFunction.backward(
ctx, dout.to(self.device))
# get the expected result from the backward pass
expected_dx, expected_dw, expected_db = \
conv_backward_naive_1D(dout.numpy(), cache)
result = result_torch.cpu().detach().numpy()
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
self.logger.debug("expected dx: " + str(expected_dx))
self.logger.debug("computed dx: " + str(dx.cpu().detach().numpy()))
# are the gradients correct
np.testing.assert_array_almost_equal(dx.cpu().detach().numpy(),
expected_dx)
np.testing.assert_array_almost_equal(dw.cpu().detach().numpy(),
expected_dw)
np.testing.assert_array_almost_equal(db.cpu().detach().numpy(),
expected_db)
def test_FunctionBackwardNoCompressionWithBias2Inputs(self):
x = np.array([[[1.0, 2.0, 3.0]], [[2.0, -1.0, 3.0]]])
# Number of filters F, number of channels C, number of values WW.
y = np.array([[[2.0, 1.0]]])
b = np.array([2.0])
dtype = torch.float
x_torch = tensor(x, requires_grad=True, dtype=dtype, device=self.device)
y_torch = tensor(y, requires_grad=True, dtype=dtype, device=self.device)
b_torch = tensor(b, requires_grad=True, dtype=dtype, device=self.device)
conv_param = {'pad': 0, 'stride': 1}
expected_result, cache = conv_forward_naive_1D(x, y, b, conv_param)
ctx = MockContext()
ctx.set_needs_input_grad(3)
result_torch = Conv1dfftFunction.forward(
ctx, input=x_torch, filter=y_torch, bias=b_torch)
result = get_numpy(result_torch)
np.testing.assert_array_almost_equal(result, np.array(expected_result))
dout_numpy = np.array([[[0.1, -0.2]], [[0.2, -0.1]]])
# get the expected result from the backward pass
expected_dx, expected_dw, expected_db = \
conv_backward_naive_1D(dout_numpy, cache)
dout = tensor(dout_numpy, dtype=dtype, device=self.device)
print("expected_dx: ", expected_dx)
print("expected_dw: ", expected_dw)
print("expected_db: ", expected_db)
dx, dw, db, _, _, _, _, _, _ = Conv1dfftFunction.backward(
ctx, dout)
dx = get_numpy(dx)
dw = get_numpy(dw)
db = get_numpy(db)
# are the gradients correct
np.testing.assert_array_almost_equal(
x=expected_dx, y=dx,
err_msg="Expected x is different from computed y.")
np.testing.assert_array_almost_equal(
x=expected_dw, y=dw,
err_msg="Expected x is different from computed y.")
np.testing.assert_array_almost_equal(db, expected_db)
def test_FunctionBackwardNoCompressionWithBias2Filters(self):
x = np.array([[[1.0, 2.0, 3.0]]])
# Number of filters F, number of channels C, number of values WW.
y = np.array([[[2.0, 1.0]], [[-0.1, 0.3]]])
b = np.array([2.0, 1.0]) # 2 filters => 2 bias terms
dtype = torch.float
x_torch = tensor(x, requires_grad=True, dtype=dtype)
y_torch = tensor(y, requires_grad=True, dtype=dtype)
b_torch = tensor(b, requires_grad=True, dtype=dtype)
conv_param = {'pad': 0, 'stride': 1}
expected_result, cache = conv_forward_naive_1D(x, y, b, conv_param)
ctx = MockContext()
ctx.set_needs_input_grad(3)
result_torch = Conv1dfftFunction.forward(
ctx, input=x_torch, filter=y_torch, bias=b_torch)
result = result_torch.detach().numpy()
np.testing.assert_array_almost_equal(result, np.array(expected_result))
dout = tensor([[[0.1, -0.2], [0.2, -0.1]]], dtype=dtype)
# get the expected result from the backward pass
expected_dx, expected_dw, expected_db = \
conv_backward_naive_1D(dout.numpy(), cache)
print("expected_dx: ", expected_dx)
print("expected_dw: ", expected_dw)
print("expected_db: ", expected_db)
dx, dw, db, _, _, _, _, _, _ = Conv1dfftFunction.backward(
ctx,
dout)
# are the gradients correct
np.testing.assert_array_almost_equal(
x=expected_dx, y=dx.detach().numpy(),
err_msg="Expected x is different from computed y.")
np.testing.assert_array_almost_equal(
x=expected_dw, y=dw.detach().numpy(),
err_msg="Expected x is different from computed y.")
np.testing.assert_array_almost_equal(db.detach().numpy(),
expected_db)
def test_FunctionBackwardNoCompressionNoBias(self):
print()
print("Test forward and backward manual passes.")
x = np.array([[[1.0, 2.0, 3.0]]])
y = np.array([[[2.0, 1.0]]])
b = np.array([0.0])
dtype = torch.float
x_torch = tensor(x, requires_grad=True, dtype=dtype)
y_torch = tensor(y, requires_grad=True, dtype=dtype)
b_torch = tensor(b, requires_grad=True, dtype=dtype)
conv_param = {'pad': 0, 'stride': 1}
expected_result, cache = conv_forward_naive_1D(x=x, w=y, b=b,
conv_param=conv_param)
conv1dfft = Conv1dfft(filter_value=y_torch, bias_value=b_torch)
result_torch = conv1dfft.forward(input=x_torch)
result = result_torch.detach().numpy()
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
dout = tensor([[[0.1, -0.2]]], dtype=dtype)
# get the expected result from the backward pass
expected_dx, expected_dw, expected_db = \
conv_backward_naive_1D(dout.numpy(), cache)
result_torch.backward(dout)
# are the gradients correct
np.testing.assert_array_almost_equal(x_torch.grad,
expected_dx)
np.testing.assert_array_almost_equal(y_torch.grad,
expected_dw)
np.testing.assert_array_almost_equal(b_torch.grad,
expected_db)
def test_FunctionBackwardNoCompressionNoBiasLonger(self):
print()
print("Test forward and backward manual passes.")
x = np.array([[[1.0, 2.0, 3.0, 4.0, 5.0, -1.0, 3.0]]])
y = np.array([[[2.0, 1.0, -2.0]]])
b = np.array([0.0])
dtype = torch.float
x_torch = tensor(x, requires_grad=True, dtype=dtype)
y_torch = tensor(y, requires_grad=True, dtype=dtype)
b_torch = tensor(b, requires_grad=True, dtype=dtype)
conv_param = {'pad': 0, 'stride': 1}
expected_result, cache = conv_forward_naive_1D(x=x, w=y, b=b,
conv_param=conv_param)
print("expected result out for the forward pass: ", expected_result)
result_torch = Conv1dfftFunction.apply(x_torch, y_torch, b_torch)
result = result_torch.detach().numpy()
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
dout = tensor([[[0.1, -0.2, 0.3, -0.1, 0.4]]], dtype=dtype)
# get the expected result from the backward pass
expected_dx, expected_dw, expected_db = \
conv_backward_naive_1D(dout.numpy(), cache)
print("expected_dx: ", expected_dx)
print("expected_dw: ", expected_dw)
print("expected_db: ", expected_db)
result_torch.backward(dout)
# are the gradients correct
np.testing.assert_array_almost_equal(x=expected_dx, y=x_torch.grad,
err_msg=ERR_MSG)
np.testing.assert_array_almost_equal(x=expected_dw, y=y_torch.grad,
err_msg=ERR_MSG)
np.testing.assert_array_almost_equal(x=expected_db, y=b_torch.grad,
err_msg=ERR_MSG)
def test_FunctionBackwardWithPooling(self):
x = np.array([[[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, -2.0]]])
y = np.array([[[2.0, 1.0, 3.0, 1.0, -3.0]]])
b = np.array([0.0])
dtype = torch.float
x_torch = tensor(x, requires_grad=True, dtype=dtype)
y_torch = tensor(y, requires_grad=True, dtype=dtype)
b_torch = tensor(b, requires_grad=True, dtype=dtype)
conv_param = {'pad': 0, 'stride': 1}
accurate_expected_result, cache = conv_forward_naive_1D(
x=x, w=y, b=b, conv_param=conv_param)
print("Accurate expected result: ", accurate_expected_result)
# approximate_expected_result = np.array(
# [[[-2.105834, 0.457627, 8.501472, 20.74531]]])
approximate_expected_result = np.array(
[[[6.146684, 11.792807, 17.264324, 21.90055]]])
# approximate_expected_result = np.array(
# [[[-3.035742, 4.273538, 14.162642, 24.351469]]])
print("Approximate expected result: ", approximate_expected_result)
out_size = approximate_expected_result.shape[-1]
conv1dfft = Conv1dfft(out_size=out_size, filter_value=y_torch,
bias_value=b_torch, args=Arguments(
compress_type=CompressType.STANDARD))
result_torch = conv1dfft.forward(input=x_torch)
result = result_torch.detach().numpy()
print("Computed result: ", result)
np.testing.assert_array_almost_equal(
x=np.array(approximate_expected_result), y=result, decimal=4,
err_msg="Expected x is different from computed y.")
self._check_delta1D(actual_result=result,
accurate_expected_result=accurate_expected_result,
delta=11.1)
dout = tensor([[[0.1, -0.2, 0.3, -0.1]]], dtype=dtype)
# get the expected result from the backward pass
expected_dx, expected_dw, expected_db = \
conv_backward_naive_1D(dout.numpy(), cache)
result_torch.backward(dout)
# approximate_expected_dx = np.array(
# [[[0.052956, 0.120672, 0.161284, 0.150332, 0.089258,
# 0.005318, -0.063087, -0.087266, -0.063311, -0.012829]]])
approximate_expected_dx = np.array(
[[[0.086085, 0.11464, 0.122151, 0.105543, 0.069081, 0.023023,
-0.019728, -0.047839, -0.055165, -0.042567]]])
# are the gradients correct
np.testing.assert_array_almost_equal(
x=approximate_expected_dx, y=x_torch.grad,
err_msg="Expected x is different from computed y.")
self._check_delta1D(actual_result=x_torch.grad,
accurate_expected_result=expected_dx, delta=1.1)
# approximate_expected_dw = np.array(
# [[[0.129913, 0.249468, 0.429712, 0.620098, 0.748242]]])
approximate_expected_dw = np.array(
[[[0.162962, 0.323346, 0.492451, 0.629942, 0.7004]]])
np.testing.assert_array_almost_equal(
x=approximate_expected_dw, y=y_torch.grad,
err_msg="Expected x is different from computed y.")
self._check_delta1D(actual_result=y_torch.grad,
accurate_expected_result=expected_dw, delta=0.2)
np.testing.assert_array_almost_equal(b_torch.grad,
expected_db)
def _check_delta1D(self, actual_result, accurate_expected_result, delta):
"""
Compare if the difference between the two objects is more than the
given delta.
:param actual_result: the computed result
:param accurate_expected_result: the expected accurate result
:param delta: compare if that the difference between the two objects
is more than the given delta
"""
print("actual_result: {}".format(actual_result))
print("accurate_expected_result: {}".format(accurate_expected_result))
result_flat = actual_result[0][0]
accurate_expected_flat = accurate_expected_result[0][0]
for index, item in enumerate(result_flat):
self.assertAlmostEqual(
first=accurate_expected_flat[index], second=item, delta=delta,
msg="The approximate result is not within delta={} of the "
"accurate result!".format(delta))
def test_FunctionBackwardCompressionBias(self):
x = np.array([[[1.0, 2.0, 3.0, 4.0, 5.0, -1.0, 10.0]]])
y = np.array([[[2.0, 1.0, -3.0]]])
b = np.array([1.0])
dtype = torch.float
x_torch = tensor(x, requires_grad=True, dtype=dtype)
y_torch = tensor(y, requires_grad=True, dtype=dtype)
b_torch = tensor(b, requires_grad=True, dtype=dtype)
conv_param = {'pad': 0, 'stride': 1}
expected_result, cache = conv_forward_naive_1D(x=x, w=y, b=b,
conv_param=conv_param)
print("expected result: ", expected_result)
# 1 index back
conv_fft = Conv1dfft(filter_value=y_torch, bias_value=b_torch,
args=Arguments(compress_rate=1,
preserved_energy=None))
result_torch = conv_fft.forward(input=x_torch)
result = result_torch.detach().numpy()
compressed_expected_result = np.array(
[[[-2.25, -5.75, -2.25, 15.25, -18.25]]])
# compressed_expected_result = np.array(
# [[[-4., -3.999999, -4., 16.999998, -20.]]])
# compressed_expected_result = np.array(
# [[[-0.35, -7.95, 0.08, 12.97, -16.2]]])
np.testing.assert_array_almost_equal(
x=compressed_expected_result, y=result, decimal=2, err_msg=ERR_MSG)
dout = tensor([[[0.1, -0.2, -0.3, 0.3, 0.1]]], dtype=dtype)
# get the expected result from the backward pass
expected_dx, expected_dw, expected_db = \
conv_backward_naive_1D(dout.numpy(), cache)
result_torch.backward(dout)
assert conv_fft.is_manual[0] == 1
# are the gradients correct
print("accurate expected_dx: ", expected_dx)
approximate_dx = np.array(
[[[0.175, -0.275, -1.125, 0.925, 1.375, -0.775, -0.325]]])
# approximate_dx = np.array(
# [[[0.2, -0.3, -1.1, 0.9, 1.4, -0.8, -0.3]]])
# approximate_dx = np.array(
# [[[0.199, -0.285, -1.13, 0.942, 1.347, -0.738, -0.368]]])
np.testing.assert_array_almost_equal(
x=approximate_dx, y=x_torch.grad, decimal=3,
err_msg="Expected approximate x is different from computed y. The "
"exact x (that represents dx) is: {}".format(expected_dx))
print("accurate expected_dw: ", expected_dw)
approximate_dw = np.array([[[0.675, -0.375, -1.125]]])
# approximate_dw = np.array([[[0.5, -0.2, -1.3]]])
# approximate_dw = np.array([[[0.918, -0.635, -0.867]]])
np.testing.assert_array_almost_equal(
x=approximate_dw, y=y_torch.grad, decimal=3,
err_msg="Expected approximate x is different from computed y. The "
"exact x (that represents dw) is: {}".format(expected_dw))
np.testing.assert_array_almost_equal(
x=expected_db, y=b_torch.grad,
err_msg="Expected approximate x is different from computed y.")
def test_FunctionBackwardNoCompression2Channels(self):
x = np.array([[[1.0, 2.0, 3.0], [-1.0, -3.0, 2.0]]])
y = np.array([[[2.0, 1.0], [-2.0, 3.0]]])
# still it is only a single filter but with 2 channels
b = np.array([0.0])
dtype = torch.float
x_torch = tensor(x, requires_grad=True, dtype=dtype)
y_torch = tensor(y, requires_grad=True, dtype=dtype)
b_torch = tensor(b, requires_grad=True, dtype=dtype)
conv_param = {'pad': 0, 'stride': 1}
expected_result, cache = conv_forward_naive_1D(x=x, w=y, b=b,
conv_param=conv_param)
result_torch = Conv1dfftFunction.apply(x_torch, y_torch, b_torch)
dout = tensor([[[0.1, -0.2]]], dtype=dtype)
# get the expected result from the backward pass
expected_dx, expected_dw, expected_db = \
conv_backward_naive_1D(dout.numpy(), cache)
result_torch.backward(dout)
result = result_torch.detach().numpy()
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
print()
print("expected dx: " + str(expected_dx))
print("computed dx: {}".format(x_torch.grad))
print("expected dw: {}".format(expected_dw))
print("computed dw: {}".format(y_torch.grad))
# self.logger.debug("expected db: ", expected_db)
# self.logger.debug("computed db: ", b_torch.grad)
# Are the gradients correct?
np.testing.assert_array_almost_equal(x=expected_dx, y=x_torch.grad,
err_msg=ERR_MSG)
np.testing.assert_array_almost_equal(x=expected_dw, y=y_torch.grad,
err_msg=ERR_MSG)
np.testing.assert_array_almost_equal(x=expected_db, y=b_torch.grad,
err_msg=ERR_MSG)
def test_FunctionBackwardNoCompression2ChannelsWithPadding(self):
x = np.array([[[1.0, 2.0, 3.0], [-1.0, -3.0, 2.0]]])
y = np.array([[[2.0, 1.0], [-2.0, 3.0]]])
# still it is only a single filter but with 2 channels
b = np.array([0.0])
dtype = torch.float
x_torch = tensor(x, requires_grad=True, dtype=dtype)
y_torch = tensor(y, requires_grad=True, dtype=dtype)
b_torch = tensor(b, requires_grad=True, dtype=dtype)
padding = 1
conv_param = {'pad': padding, 'stride': 1}
expected_result, cache = conv_forward_naive_1D(x=x, w=y, b=b,
conv_param=conv_param)
result_torch = Conv1dfftFunction.apply(x_torch, y_torch, b_torch,
padding)
# out_W = W + 2 * pad - WW + 1
# dout = tensor([[[0.1, -0.2, 0.3, -0.1]]], dtype=dtype)
dout = torch.rand(x_torch.size(-1) + padding, dtype=dtype)
# get the expected result from the backward pass
expected_dx, expected_dw, expected_db = \
conv_backward_naive_1D(dout.numpy(), cache)
result_torch.backward(dout)
result = result_torch.detach().numpy()
np.testing.assert_array_almost_equal(
x=np.array(expected_result), y=result)
print()
print("expected dx: " + str(expected_dx))
print("computed dx: {}".format(x_torch.grad))
print("expected dw: {}".format(expected_dw))
print("computed dw: {}".format(y_torch.grad))
# self.logger.debug("expected db: ", expected_db)
# self.logger.debug("computed db: ", b_torch.grad)
# Are the gradients correct?
np.testing.assert_array_almost_equal(x=expected_dx, y=x_torch.grad,
err_msg=ERR_MSG)
np.testing.assert_array_almost_equal(x=expected_dw, y=y_torch.grad,
err_msg=ERR_MSG)
np.testing.assert_array_almost_equal(x=expected_db, y=b_torch.grad,
err_msg=ERR_MSG)
def test_FunctionForwardWithCompression(self):
# test with compression
x = np.array([[[1., 2., 3.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# expected_result = [[[3.75, 7.25]]]
expected_result = [[[3.666667, 7.333333]]]
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b),
args=Arguments(compress_rate=1))
result = conv.forward(input=torch.from_numpy(x))
np.testing.assert_array_almost_equal(result, np.array(expected_result))
def test_AutogradForwardNoCompression(self):
x = np.array([[[1., 2., 3.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
# get the expected results from numpy correlate
expected_result = np.correlate(x[0, 0, :], y[0, 0, :], mode="valid")
conv = Conv1dfft(filter_value=torch.from_numpy(y),
bias_value=torch.from_numpy(b))
result = conv.forward(input=torch.from_numpy(x))
np.testing.assert_array_almost_equal(
result, np.array([[expected_result]]))
def test_AutogradForwardWithCompression(self):
# test with compression
x = np.array([[[1., 2., 3.]]])
y = np.array([[[2., 1.]]])
b = np.array([0.0])
expected_result = [3.75, 7.25]
# expected_result = [3.666667, 7.333333]
conv = Conv1dfft(
filter_value=torch.from_numpy(y), bias_value=torch.from_numpy(b),
args=Arguments(compress_rate=1, preserved_energy=None))
result = conv.forward(input=torch.from_numpy(x))
np.testing.assert_array_almost_equal(
result, np.array([[expected_result]]))
def test_FunctionForwardBackwardRandomFull1(self):
print()
print("Test forward backward passes with random data.")
num_channels = 3
num_data_points = 11
num_values_data = 21
num_values_filter = 5
num_filters = 6
# Input signal: 5 data points, 3 channels, 10 values.
x = np.random.rand(num_data_points, num_channels, num_values_data)
# Filters: 3 filters, 3 channels, 4 values.
y = np.random.rand(num_filters, num_channels, num_values_filter)
# Bias: one for each filter
b = np.random.rand(num_filters)
# get the expected result
conv_param = {'pad': 0, 'stride': 1}
expected_result, _ = conv_forward_naive_1D(x=x, w=y, b=b,
conv_param=conv_param)
# self.logger.debug("expected result: " + str(expected_result))
dtype = torch.float
x_torch = tensor(x, requires_grad=True, dtype=dtype, device=self.device)
y_torch = tensor(y, requires_grad=True, dtype=dtype, device=self.device)
b_torch = tensor(b, requires_grad=True, dtype=dtype, device=self.device)
conv = Conv1dfft(filter_value=y_torch, bias_value=b_torch)
result_torch = conv.forward(input=x_torch)
# dout = tensor(result/100.0, dtype=dtype)
dout = torch.randn(result_torch.shape, dtype=dtype, device=self.device)
result_torch.backward(dout)
# compute the expected forward and backward values
conv_param = {'pad': 0, 'stride': 1}
expected_result, cache = conv_forward_naive_1D(x, y, b, conv_param)
dout_numpy = dout.clone()
dout_numpy = get_numpy(dout_numpy)
# get the expected result from the backward pass
expected_dx, expected_dw, expected_db = \
conv_backward_naive_1D(dout_numpy, cache)
# compare the results
result = get_numpy(result_torch)
# self.logger.debug("obtained result: " + str(result))
np.testing.assert_array_almost_equal(result, np.array(expected_result),
decimal=5)
# Assert that we executed the backward pass via PyTorch's AutoGrad
# (value is 0) and not manually (for manual grad the value is 1:
# conv.is_manual[0] == 1).
assert 1 == conv.is_manual[0]
# print()
# print("expected dx: " + str(expected_dx))
# print("computed dx: {}".format(x_torch.grad))
#
# print("expected dw: {}".format(expected_dw))
# print("computed dw: {}".format(y_torch.grad))
# self.logger.debug("expected db: ", expected_db)
# self.logger.debug("computed db: ", b_torch.grad)
dx = get_numpy(x_torch.grad)
dw = get_numpy(y_torch.grad)
db = get_numpy(b_torch.grad)
# are the gradients correct
np.testing.assert_array_almost_equal(
x=expected_dx, y=dx, decimal=5,
err_msg="Expected x is different from computed y.")
np.testing.assert_array_almost_equal(
x=expected_dw, y=dw, decimal=4,
err_msg="Expected x is different from computed y.")
np.testing.assert_array_almost_equal(
x=expected_db, y=db, decimal=5,
err_msg="Expected x is different from computed y.")
def test_FunctionForwardBackwardRandomManualBackprop(self):
print()
print("Test forward backward manual passes with random data.")
num_channels = 3
num_data_points = 11
num_values_data = 21
num_values_filter = 8
num_filters = 5
# Input signal: 5 data points, 3 channels, 10 values.
x = np.random.rand(num_data_points, num_channels, num_values_data)
# Filters: 3 filters, 3 channels, 4 values.
y = np.random.rand(num_filters, num_channels, num_values_filter)
# Bias: one for each filter
b = np.random.rand(num_filters)
dtype = torch.float
device = torch.device("cpu")
if torch.cuda.is_available():
device = torch.device("cuda")
x_torch = tensor(x, requires_grad=True, dtype=dtype, device=device)
y_torch = tensor(y, requires_grad=True, dtype=dtype, device=device)
b_torch = tensor(b, requires_grad=True, dtype=dtype, device=device)
conv = Conv1dfft(filter_value=y_torch, bias_value=b_torch)
result_torch = conv.forward(input=x_torch)
# dout = tensor(result/100.0, dtype=dtype)
dout = torch.randn(result_torch.shape, dtype=dtype, device=device)
result_torch.backward(dout)
# get expected results
conv_param = {'pad': 0, 'stride': 1}
expected_result, cache = conv_forward_naive_1D(x, y, b, conv_param)
# get the expected result from the backward pass
expected_dx, expected_dw, expected_db = \
conv_backward_naive_1D(dout.cpu().numpy(), cache)
result = get_numpy(result_torch)
# self.logger.debug("obtained result: " + str(result))
np.testing.assert_array_almost_equal(
np.array(expected_result), result, decimal=5)
# Assert that we executed the backward pass manually (value is 1) and
# not via PyTorch's autograd (for autograd: conv.is_manual[0] == 0).
assert 1 == conv.is_manual[0]
# print()
# print("expected dx: " + str(expected_dx))
# print("computed dx: {}".format(x_torch.grad))
#
# print("expected dw: {}".format(expected_dw))
# print("computed dw: {}".format(y_torch.grad))
# self.logger.debug("expected db: ", expected_db)
# self.logger.debug("computed db: ", b_torch.grad)
# are the gradients correct
np.testing.assert_array_almost_equal(
x=expected_dx, y=x_torch.grad.cpu().detach().numpy(),
decimal=5,
err_msg="Expected x is different from computed y.")
np.testing.assert_array_almost_equal(
x=expected_dw, y=y_torch.grad.cpu().detach().numpy(),
decimal=4,
err_msg="Expected x is different from computed y.")
np.testing.assert_array_almost_equal(
x=expected_db, y=b_torch.grad.cpu().detach().numpy(),
decimal=5,
err_msg="Expected x is different from computed y.")
def test_FunctionForwardBackwardCountTensors(self):
print()
print("Test forward manual pass and counting tensors within ctx.")
clean_gc_return = map((lambda obj: del_object(obj)), gc.get_objects())
device = "cuda" if torch.cuda.is_available() else "cpu"
device = torch.device(device)
only_cuda = True if torch.cuda.is_available() else False
x = np.array([[[1.0, 2.0, 3.0, 4.0, 5.0, -1.0, 3.0]]])
y = np.array([[[2.0, 1.0, -2.0]]])
b = np.array([0.0])
dtype = torch.float32
x_torch = tensor(x, requires_grad=True, dtype=dtype, device=device)
y_torch = tensor(y, requires_grad=True, dtype=dtype, device=device)
b_torch = tensor(b, requires_grad=True, dtype=dtype, device=device)
conv_param = {'pad': 0, 'stride': 1}
expected_result, cache = conv_forward_naive_1D(x=x, w=y, b=b,
conv_param=conv_param)
print("expected result out for the forward pass: ", expected_result)
conv = Conv1dfft(filter_value=y_torch, bias_value=b_torch)
result_torch = conv.forward(x_torch)
print("Get all tensors visible in the test case: ")
tensors = get_tensors(only_cuda=False)
print("tensors: ", ",".join([str(tensor) for tensor in tensors]))
"""The forward pass saves 11 tensors for backward pass,the local code
in the method created 3 tensors, the output result_torch is another
tensor, which gives 15 tensors in total. Additionally, the device,
dtype and the input to Conv1dfft constructor is the tensor is_manual."""
expect = 15 + 3
if len(tensors) != expect:
raise Exception(f"Expected {expect} tensors but got {len(tensors)}")
result = result_torch.cpu().detach().numpy()
np.testing.assert_array_almost_equal(
result, np.array(expected_result))
dout = torch.tensor([[[0.1, -0.2, 0.1, -0.1, 0.3]]], dtype=dtype,
device=device)
result_torch.backward(dout)
# get the expected result from the backward pass
expected_dx, expected_dw, expected_db = \
conv_backward_naive_1D(dout.cpu().numpy(), cache)
# are the gradients correct
np.testing.assert_array_almost_equal(
x_torch.grad.cpu().detach().numpy(),
expected_dx)
np.testing.assert_array_almost_equal(
y_torch.grad.cpu().detach().numpy(),
expected_dw)
np.testing.assert_array_almost_equal(
b_torch.grad.cpu().detach().numpy(),
expected_db)
if __name__ == '__main__':
unittest.main()
| 46.453596
| 86
| 0.563707
| 9,820
| 80,086
| 4.410285
| 0.050917
| 0.08825
| 0.037821
| 0.038329
| 0.851278
| 0.831605
| 0.814126
| 0.808262
| 0.798795
| 0.789282
| 0
| 0.061788
| 0.308056
| 80,086
| 1,723
| 87
| 46.480557
| 0.719751
| 0.130335
| 0
| 0.756431
| 0
| 0
| 0.062645
| 0.005634
| 0
| 0
| 0
| 0
| 0.069936
| 1
| 0.043408
| false
| 0.005627
| 0.016881
| 0
| 0.061093
| 0.073955
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
8b43bc3c7a2734799fe4a95b4cf159153c39c82c
| 1,846
|
py
|
Python
|
tests/test_add_images_weighted.py
|
elsandal/pyclesperanto_prototype
|
7bda828813b86b44b63d73d5e8f466d9769cded1
|
[
"BSD-3-Clause"
] | 64
|
2020-03-18T12:11:22.000Z
|
2022-03-31T08:19:18.000Z
|
tests/test_add_images_weighted.py
|
elsandal/pyclesperanto_prototype
|
7bda828813b86b44b63d73d5e8f466d9769cded1
|
[
"BSD-3-Clause"
] | 148
|
2020-05-14T06:14:11.000Z
|
2022-03-26T15:02:31.000Z
|
tests/test_add_images_weighted.py
|
elsandal/pyclesperanto_prototype
|
7bda828813b86b44b63d73d5e8f466d9769cded1
|
[
"BSD-3-Clause"
] | 16
|
2020-05-31T00:53:44.000Z
|
2022-03-23T13:20:57.000Z
|
import pyclesperanto_prototype as cle
import numpy as np
def test_add_images_weighted_missing_parameters():
input1 = np.asarray([[1, 2, 3]])
input2 = np.asarray([[4, 5, 6]])
reference = np.asarray([[5, 7, 9]])
output = cle.add_images_weighted(input1, input2)
result = cle.pull(output)
print(result)
print(reference)
assert(np.array_equal(result, reference))
def test_add_images_weighted_none_output():
input1 = np.asarray([[1, 2, 3]])
input2 = np.asarray([[4, 5, 6]])
reference = np.asarray([[9, 12, 15]])
output = cle.add_images_weighted(input1, input2, None, 1, 2)
result = cle.pull(output)
print(result)
print(reference)
assert(np.array_equal(result, reference))
def test_add_images_weighted_named_parameters():
input1 = np.asarray([[1, 2, 3]])
input2 = np.asarray([[4, 5, 6]])
reference = np.asarray([[9, 12, 15]])
output = cle.add_images_weighted(input1, input2, None, factor1=1, factor2=2)
result = cle.pull(output)
print(result)
print(reference)
assert(np.array_equal(result, reference))
def test_add_images_weighted_wrong_parameter_order():
input1 = np.asarray([[1, 2, 3]])
input2 = np.asarray([[4, 5, 6]])
reference = np.asarray([[9, 12, 15]])
output = cle.add_images_weighted(input1, input2, factor1=1, factor2=2)
result = cle.pull(output)
print(result)
print(reference)
assert(np.array_equal(result, reference))
def test_add_images_weighted_parameters_wrong_order_and_missing():
input1 = np.asarray([[1, 2, 3]])
input2 = np.asarray([[4, 5, 6]])
reference = np.asarray([[9, 12, 15]])
output = cle.add_images_weighted(input1, input2, factor2=2, factor1=1)
result = cle.pull(output)
print(result)
print(reference)
assert(np.array_equal(result, reference))
| 26.371429
| 80
| 0.666306
| 259
| 1,846
| 4.57529
| 0.166023
| 0.113924
| 0.14346
| 0.067511
| 0.8827
| 0.862447
| 0.862447
| 0.83038
| 0.83038
| 0.83038
| 0
| 0.057769
| 0.184182
| 1,846
| 69
| 81
| 26.753623
| 0.729084
| 0
| 0
| 0.723404
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106383
| 1
| 0.106383
| false
| 0
| 0.042553
| 0
| 0.148936
| 0.212766
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
8cf23ad0c9f2e439e8ce73c5122801e829d5eea9
| 57
|
py
|
Python
|
src/experiment_collection_core/__init__.py
|
AsciiShell/experiment_collection
|
86397cae1427c49f30e8af2d6dfb7a15c3f3494d
|
[
"MIT"
] | 2
|
2020-09-30T21:42:35.000Z
|
2020-11-21T17:58:40.000Z
|
src/experiment_collection_core/__init__.py
|
AsciiShell/experiment_collection
|
86397cae1427c49f30e8af2d6dfb7a15c3f3494d
|
[
"MIT"
] | null | null | null |
src/experiment_collection_core/__init__.py
|
AsciiShell/experiment_collection
|
86397cae1427c49f30e8af2d6dfb7a15c3f3494d
|
[
"MIT"
] | null | null | null |
from . import service_pb2
from . import service_pb2_grpc
| 19
| 30
| 0.824561
| 9
| 57
| 4.888889
| 0.555556
| 0.454545
| 0.772727
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.040816
| 0.140351
| 57
| 2
| 31
| 28.5
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
50ede8a2162d0d9f1f5f1f6750e14d85b83bb4b5
| 254
|
py
|
Python
|
particle_packing/ellipsoid/__init__.py
|
aluchies/particle_packing
|
127603a519ae25979de6c6197810a7ea38ec945b
|
[
"BSD-3-Clause"
] | null | null | null |
particle_packing/ellipsoid/__init__.py
|
aluchies/particle_packing
|
127603a519ae25979de6c6197810a7ea38ec945b
|
[
"BSD-3-Clause"
] | null | null | null |
particle_packing/ellipsoid/__init__.py
|
aluchies/particle_packing
|
127603a519ae25979de6c6197810a7ea38ec945b
|
[
"BSD-3-Clause"
] | null | null | null |
from ..ext.ellipsoid import overlap_potential, cube_container_potential
from Ellipsoid import Ellipsoid, overlap_potential_py, cube_container_potential_py
from Ellipsoid import _quaternion_to_rotation_matrix as quaternion_to_rotation_matrix
import pack
| 42.333333
| 85
| 0.897638
| 34
| 254
| 6.264706
| 0.441176
| 0.211268
| 0.206573
| 0.244131
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.07874
| 254
| 6
| 86
| 42.333333
| 0.910256
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
0f95d3ccac4997f1861e4fcf611409c142dbcdb2
| 1,984
|
py
|
Python
|
tests/console/test_record.py
|
adamghill/coltrane
|
73eb85f2468f10068691600a2a56f6a9b2717b5c
|
[
"MIT"
] | 28
|
2022-01-03T05:23:19.000Z
|
2022-02-25T18:17:08.000Z
|
tests/console/test_record.py
|
adamghill/coltrane
|
73eb85f2468f10068691600a2a56f6a9b2717b5c
|
[
"MIT"
] | 27
|
2022-01-04T04:01:46.000Z
|
2022-02-26T23:24:54.000Z
|
tests/console/test_record.py
|
adamghill/coltrane
|
73eb85f2468f10068691600a2a56f6a9b2717b5c
|
[
"MIT"
] | null | null | null |
from unittest.mock import patch
from click.testing import CliRunner
from coltrane.console import cli
def test_record():
runner = CliRunner()
with patch("coltrane.console._run_management_command") as _run_management_command:
result = runner.invoke(cli, ["record"])
assert result.exit_code == 0
_run_management_command.assert_called_once_with("build")
def test_build_alias():
runner = CliRunner()
with patch("coltrane.console._run_management_command") as _run_management_command:
result = runner.invoke(cli, ["build"])
assert result.exit_code == 0
_run_management_command.assert_called_once_with("build")
def test_rec_alias():
runner = CliRunner()
with patch("coltrane.console._run_management_command") as _run_management_command:
result = runner.invoke(cli, ["rec"])
assert result.exit_code == 0
_run_management_command.assert_called_once_with("build")
@patch("coltrane.console._run_management_command")
def test_record_force(_run_management_command):
runner = CliRunner()
runner.invoke(cli, ["record", "--force"])
_run_management_command.assert_called_once_with("build", "--force")
@patch("coltrane.console._run_management_command")
def test_record_output(_run_management_command):
runner = CliRunner()
runner.invoke(cli, ["record", "--output", "public"])
_run_management_command.assert_called_once_with("build", "--output", "public")
@patch("coltrane.console._run_management_command")
def test_record_threads(_run_management_command):
runner = CliRunner()
runner.invoke(cli, ["record", "--threads", "3"])
_run_management_command.assert_called_once_with("build", "--threads", "3")
@patch("coltrane.console._run_management_command")
def test_record_ignore(_run_management_command):
runner = CliRunner()
runner.invoke(cli, ["record", "--ignore"])
_run_management_command.assert_called_once_with("build", "--ignore")
| 29.176471
| 86
| 0.731351
| 239
| 1,984
| 5.65272
| 0.154812
| 0.202073
| 0.310881
| 0.119171
| 0.863064
| 0.84678
| 0.84678
| 0.84678
| 0.713546
| 0.390822
| 0
| 0.002941
| 0.143145
| 1,984
| 67
| 87
| 29.61194
| 0.791765
| 0
| 0
| 0.487805
| 0
| 0
| 0.217238
| 0.141129
| 0
| 0
| 0
| 0
| 0.243902
| 1
| 0.170732
| false
| 0
| 0.073171
| 0
| 0.243902
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0fef6d934e6ba1ffe762a5416128095d2e88d1b4
| 2,984
|
py
|
Python
|
bayesian-networks/bayesian-networks-master/temp.py
|
Shivvrat/Machine-Learning-Algorithms
|
f20503ee513dbd7e51470c464e47358dd6c1e133
|
[
"MIT"
] | null | null | null |
bayesian-networks/bayesian-networks-master/temp.py
|
Shivvrat/Machine-Learning-Algorithms
|
f20503ee513dbd7e51470c464e47358dd6c1e133
|
[
"MIT"
] | null | null | null |
bayesian-networks/bayesian-networks-master/temp.py
|
Shivvrat/Machine-Learning-Algorithms
|
f20503ee513dbd7e51470c464e47358dd6c1e133
|
[
"MIT"
] | null | null | null |
import import_data
import independent_bayesian_network
import numpy as np
train_dataset, test_dataset, valid_dataset = import_data.import_data("nltcs")
parameters = independent_bayesian_network.fit(train_dataset)
log_likelihood = independent_bayesian_network.predict(test_dataset, parameters)
print("nltcs " + str(log_likelihood))
train_dataset, test_dataset, valid_dataset = import_data.import_data("kdd")
parameters = independent_bayesian_network.fit(train_dataset)
log_likelihood = independent_bayesian_network.predict(test_dataset, parameters)
print("kdd " + str(log_likelihood))
train_dataset, test_dataset, valid_dataset = import_data.import_data("r52")
parameters = independent_bayesian_network.fit(train_dataset)
log_likelihood = independent_bayesian_network.predict(test_dataset, parameters)
print("r52 " + str(log_likelihood))
train_dataset, test_dataset, valid_dataset = import_data.import_data("msnbc")
parameters = independent_bayesian_network.fit(train_dataset)
log_likelihood = independent_bayesian_network.predict(test_dataset, parameters)
print("msnbc " + str(log_likelihood))
train_dataset, test_dataset, valid_dataset = import_data.import_data("baudio")
parameters = independent_bayesian_network.fit(train_dataset)
log_likelihood = independent_bayesian_network.predict(test_dataset, parameters)
print("baudio " + str(log_likelihood))
train_dataset, test_dataset, valid_dataset = import_data.import_data("bnetflix")
parameters = independent_bayesian_network.fit(train_dataset)
log_likelihood = independent_bayesian_network.predict(test_dataset, parameters)
print("bnetflix " + str(log_likelihood))
train_dataset, test_dataset, valid_dataset = import_data.import_data("accidents")
parameters = independent_bayesian_network.fit(train_dataset)
log_likelihood = independent_bayesian_network.predict(test_dataset, parameters)
print("accidents " + str(log_likelihood))
train_dataset, test_dataset, valid_dataset = import_data.import_data("plants")
parameters = independent_bayesian_network.fit(train_dataset)
log_likelihood = independent_bayesian_network.predict(test_dataset, parameters)
print("plants " + str(log_likelihood))
train_dataset, test_dataset, valid_dataset = import_data.import_data("jester")
parameters = independent_bayesian_network.fit(train_dataset)
log_likelihood = independent_bayesian_network.predict(test_dataset, parameters)
print("jester " + str(log_likelihood))
train_dataset, test_dataset, valid_dataset = import_data.import_data("dna")
parameters = independent_bayesian_network.fit(train_dataset)
log_likelihood = independent_bayesian_network.predict(test_dataset, parameters)
print("dna " + str(log_likelihood))
train_dataset, test_dataset, valid_dataset = import_data.import_data("nltcs")
parameters = independent_bayesian_network.fit(train_dataset)
log_likelihood = independent_bayesian_network.predict(test_dataset, parameters)
print("nltcs " + str(log_likelihood))
| 48.129032
| 82
| 0.824732
| 363
| 2,984
| 6.37741
| 0.07989
| 0.099352
| 0.258315
| 0.109287
| 0.930454
| 0.930454
| 0.930454
| 0.930454
| 0.930454
| 0.930454
| 0
| 0.001468
| 0.086796
| 2,984
| 61
| 83
| 48.918033
| 0.848073
| 0
| 0
| 0.553191
| 0
| 0
| 0.044148
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.297872
| 0
| 0.297872
| 0.234043
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0ff14385cfc85377c9a471a7ff24e175dbc7050e
| 2,178
|
py
|
Python
|
image_cleaner/cleaner.py
|
gganssle/demo-GANs
|
7e643653f5532abd03686b879cb9da0277bc243e
|
[
"MIT"
] | null | null | null |
image_cleaner/cleaner.py
|
gganssle/demo-GANs
|
7e643653f5532abd03686b879cb9da0277bc243e
|
[
"MIT"
] | null | null | null |
image_cleaner/cleaner.py
|
gganssle/demo-GANs
|
7e643653f5532abd03686b879cb9da0277bc243e
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
import matplotlib.image as im
import numpy as np
import glob
import scipy.misc
indir = '../dat/webpage_images/'
outdir = '../dat/webpage_images_clean/'
idx = 1
names = glob.glob(''.join((indir, '*')))
for name in names:
print(name)
pic = im.imread(name)
pic = np.asarray(pic)
# crop, rm alpha, and scale
pic = pic[:298, :417, 0:3]
pic = scipy.misc.imresize(pic, 25) # arg is %
# write
#im.imsave(''.join((outdir, str(idx), '.png')), pic)
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
# count
idx += 1
################################################
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
'''
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
scipy.misc.imsave(''.join((outdir, str(idx), '.png')), pic)
idx += 1
'''
| 27.225
| 60
| 0.576676
| 330
| 2,178
| 3.79697
| 0.148485
| 0.179569
| 0.306464
| 0.363927
| 0.77494
| 0.77494
| 0.77494
| 0.752594
| 0.752594
| 0.723065
| 0
| 0.018056
| 0.135445
| 2,178
| 79
| 61
| 27.56962
| 0.647371
| 0.054178
| 0
| 0.588235
| 0
| 0
| 0.084572
| 0.046468
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.117647
| 0
| 0.117647
| 0.029412
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e8421e70d21bb0367a7abe134f4087d317278f49
| 159
|
py
|
Python
|
ann_nmf/_utilities/__init__.py
|
mvinyard/ann_nmf
|
b15a7bd425186e2e4810c597e8a8459cbcd8fb1d
|
[
"MIT"
] | null | null | null |
ann_nmf/_utilities/__init__.py
|
mvinyard/ann_nmf
|
b15a7bd425186e2e4810c597e8a8459cbcd8fb1d
|
[
"MIT"
] | null | null | null |
ann_nmf/_utilities/__init__.py
|
mvinyard/ann_nmf
|
b15a7bd425186e2e4810c597e8a8459cbcd8fb1d
|
[
"MIT"
] | null | null | null |
# __init__.py
from ._quick_norm_log_raw import _quick_norm_log_raw as preprocess_raw_counts
from ._fetch_signature import _fetch_signature as fetch_signature
| 31.8
| 77
| 0.880503
| 25
| 159
| 4.84
| 0.52
| 0.347107
| 0.198347
| 0.247934
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09434
| 159
| 5
| 78
| 31.8
| 0.840278
| 0.069182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
e88e8b757bee5508196f27434049170d28026224
| 2,186
|
py
|
Python
|
test/env_test.py
|
eleurent/obstacle-env
|
282aa98c25002896868b8841c4e301851213a16c
|
[
"MIT"
] | 30
|
2018-05-16T15:06:17.000Z
|
2022-02-10T02:17:40.000Z
|
test/env_test.py
|
eleurent/obstacle-env
|
282aa98c25002896868b8841c4e301851213a16c
|
[
"MIT"
] | 2
|
2018-07-08T22:44:17.000Z
|
2021-02-26T14:42:40.000Z
|
test/env_test.py
|
eleurent/obstacle-env
|
282aa98c25002896868b8841c4e301851213a16c
|
[
"MIT"
] | 8
|
2018-09-29T03:18:19.000Z
|
2021-05-21T06:18:47.000Z
|
from __future__ import print_function, division
import gym
import obstacle_env
from obstacle_env.dynamics import Dynamics2D
from test.single_trajectory import SingleTrajectoryAgent
def test_random(episodes=1):
env = gym.make('obstacle-v0')
for i in range(episodes):
env.reset()
done = False
while not done:
action = env.action_space.sample()
observation, reward, done, info = env.step(action)
env.close()
def test_up(episodes=1):
env = gym.make('obstacle-v0')
agent = SingleTrajectoryAgent([], Dynamics2D.ACTIONS_INDEXES['UP'])
for i in range(episodes):
env.reset()
done = False
while not done:
action = agent.act()
observation, reward, done, info = env.step(action)
env.close()
def test_left(episodes=1):
env = gym.make('obstacle-v0')
agent = SingleTrajectoryAgent([], Dynamics2D.ACTIONS_INDEXES['LEFT'])
for i in range(episodes):
env.reset()
done = False
while not done:
action = agent.act()
observation, reward, done, info = env.step(action)
env.close()
def test_down(episodes=1):
env = gym.make('obstacle-v0')
agent = SingleTrajectoryAgent([], Dynamics2D.ACTIONS_INDEXES['DOWN'])
for i in range(episodes):
env.reset()
done = False
while not done:
action = agent.act()
observation, reward, done, info = env.step(action)
env.close()
def test_right(episodes=1):
env = gym.make('obstacle-v0')
agent = SingleTrajectoryAgent([], Dynamics2D.ACTIONS_INDEXES['RIGHT'])
for i in range(episodes):
env.reset()
done = False
while not done:
action = agent.act()
observation, reward, done, info = env.step(action)
env.close()
def test_idle(episodes=1):
env = gym.make('obstacle-v0')
agent = SingleTrajectoryAgent([], Dynamics2D.ACTIONS_INDEXES['IDLE'])
for i in range(episodes):
env.reset()
done = False
while not done:
action = agent.act()
observation, reward, done, info = env.step(action)
env.close()
| 28.025641
| 74
| 0.614364
| 259
| 2,186
| 5.108108
| 0.181467
| 0.047619
| 0.054422
| 0.068027
| 0.830688
| 0.830688
| 0.830688
| 0.808768
| 0.808768
| 0.808768
| 0
| 0.01125
| 0.26807
| 2,186
| 77
| 75
| 28.38961
| 0.815625
| 0
| 0
| 0.734375
| 0
| 0
| 0.038884
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.09375
| false
| 0
| 0.078125
| 0
| 0.171875
| 0.015625
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e895ee388579b1587ff1c33d7256e6363de2fc7e
| 29,886
|
py
|
Python
|
openstack/cdn/v1/domain.py
|
allenLew1991/huaweicloud-sdk-python
|
13d1931372ee096ac3065251c48db16ef6c045c9
|
[
"Apache-2.0"
] | 1
|
2019-11-12T07:44:16.000Z
|
2019-11-12T07:44:16.000Z
|
openstack/cdn/v1/domain.py
|
ArvinSong/huaweicloud-sdk-python
|
227cd7f68a07974b16794c371f110d1927571fd0
|
[
"Apache-2.0"
] | null | null | null |
openstack/cdn/v1/domain.py
|
ArvinSong/huaweicloud-sdk-python
|
227cd7f68a07974b16794c371f110d1927571fd0
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding:utf-8 -*-
# Copyright 2018 Huawei Technologies Co.,Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.
from openstack.cdn import cdn_resource
from openstack.cdn import cdn_service
from openstack.cdn import format
from openstack import resource2 as resource
from openstack import utils
class Domain(cdn_resource.Resource):
base_path = '/cdn/domains'
resource_key = 'domain'
resources_key = 'domains'
service = cdn_service.CDNService()
allow_create = True
allow_get = True
allow_delete = True
allow_list = True
_query_mapping = cdn_resource.QueryParameters('domain_name',
'business_type',
'domain_status',
'enterprise_project_id')
#: The acceleration domain name.
domain_name = resource.Body('domain_name')
#: The business type. Values include:
#: 'web' (the acceleration for static contents);
#: 'download' (the acceleration for downloads);
#: 'video' (the acceleration for media streaming).
business_type = resource.Body('business_type')
enterprise_project_id = resource.Body('enterprise_project_id')
#: The domain ID of the domain name's owner.
user_domain_id = resource.Body('user_domain_id')
#: The status of the acceleration domain name. Values include
#: 'online': CDN is enabled;
#: 'offline': CDN is disabled;
#: 'configuring': CDN is being configured;
#: 'configure_failed': the configuration failed;
#: 'checking': the configuration is being audited;
#: 'check_failed': the audit failed;
#: 'deleting': the acceleration domain name is being deleted.
domain_status = resource.Body('domain_status')
#: The CNAME of the acceleration domain name.
cname = resource.Body('cname')
#: The domain name or the IP address of the origin server.
sources = resource.Body('sources', type=list)
#: The configuration information of the retrieval host.
domain_origin_host = resource.Body('domain_origin_host', type=dict)
#: HTTPS status for the acceleration.
#: 0: disabled,
#: 1: enable HTTPS for acceleration and following the origin.
#: 2: enable HTTPS only for acceleration.
https_status = resource.Body('https_status')
#: The time when the domain name is modified.
created_at = resource.Body('create_time')
#: The time when the domain name is modified.
modified_at = resource.Body('modify_time')
#: Whether the acceleration domain name is disabled.
is_disabled = resource.Body('disabled', type=format.BoolInt)
#: Whether the status is locked.
is_locked = resource.Body('locked', type=format.BoolInt)
def get(self, session, requires_id=True):
"""Get a remote resource based on this instance.
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:param boolean requires_id: A boolean indicating whether resource ID
should be part of the requested URI.
:returns: This :class:`Domain` instance.
:rtype: :class:`~openstack.cdn.v1.domain.Domain`
"""
request = self._prepare_request(requires_id=requires_id)
# NOTE(samsong8610): The URL for GET is not standard.
request.uri = utils.urljoin(request.uri, 'detail')
endpoint_override = self.service.get_endpoint_override()
response = session.get(request.uri, endpoint_filter=self.service,
endpoint_override=endpoint_override)
self._translate_response(response)
return self
def set_sources(self, session, *sources):
"""Update information about the origin server
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:param \*sources: A list of dict which specifies the domain name
or the IP address of the origin server.
Available keys for each source dict include:
* ip_or_domain: The IP address or domain name of the origin server
Mandatory.
* origin_type: The origin type. The value can be 'ipaddr' or
'domain'. Mandatory.
* active_standby: Whether the source is active. 1: active,
0: standby. Mandatory.
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
body = {'origin': {'sources': list(sources)}}
url = utils.urljoin(self.base_path, self.id, 'origin')
endpoint_override = self.service.get_endpoint_override()
resp = session.put(url, endpoint_filter=self.service,
endpoint_override=endpoint_override,
json=body)
resp_json = resp.json()
self.check_error(resp_json)
self.sources = resp_json['origin']['sources']
return self
def enable(self, session):
"""Enables an acceleration domain name
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
url = utils.urljoin(self.base_path, self.id, 'enable')
endpoint_override = self.service.get_endpoint_override()
resp = session.put(url, endpoint_filter=self.service,
endpoint_override=endpoint_override)
self._translate_response(resp)
return self
def disable(self, session):
"""Disable an acceleration domain name
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
url = utils.urljoin(self.base_path, self.id, 'disable')
endpoint_override = self.service.get_endpoint_override()
resp = session.put(url, endpoint_filter=self.service,
endpoint_override=endpoint_override)
self._translate_response(resp)
return self
def set_origin_host(self, session, **attrs):
"""Modifies the configuration of the retrieval host
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:param dict attrs: Keyword arguments which contains origin host
configuration for :class:`~openstack.cdn.v1.domain.Domain`.
Available attributes include:
* origin_host_type: The type of the retrieval host.
'accelerate': the acceleration domain name is used as
the retrieval host address;
'customize': A custom domain name is used as the retrieval
host address;
'source': The origin domain name is used as the retrieval
host address.
* customize_domain: The custom domain name of the retrieval host.
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
body = {'origin_host': attrs}
url = utils.urljoin(self.base_path, self.id, 'originhost')
endpoint_override = self.service.get_endpoint_override()
resp = session.put(url, endpoint_filter=self.service,
endpoint_override=endpoint_override,
json=body)
resp_json = resp.json()
self.check_error(resp_json)
self.domain_origin_host = resp_json['origin_host']
return self
def get_origin_host(self, session):
"""Queries the configuration of the retrieval host
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:returns: The retrieval host configuration of this domain name
:rtype: dict
"""
url = utils.urljoin(self.base_path, self.id, 'originhost')
endpoint_override = self.service.get_endpoint_override()
resp = session.get(url, endpoint_filter=self.service,
endpoint_override=endpoint_override)
resp_json = resp.json()
self.check_error(resp_json)
return resp_json['origin_host']
def set_referer(self, session, **attrs):
"""Configures a referrer list
Self-define referrer whitelists and blacklists identify and filter
user identities, controlling access.
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:param dict attrs: Keyword arguments which contains origin host
configuration for :class:`~openstack.cdn.v1.domain.Domain`.
Available attributes include:
* referer_type: The referer type. The values include:
0: referer filter not set; 1: blacklist; 2: whitelist.
* referer_list: A list of domain names that are separated from
each other by semicolon (;).
* include_empty: Whether blank referrers are included.
A referrer blacklist including blank referrers indicates that
requests without any referrers are not allowed to access.
A referrer whitelist including blank referrers indicates that
requests without any referrers are allowed to access.
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
body = {'referer': attrs}
url = utils.urljoin(self.base_path, self.id, 'referer')
endpoint_override = self.service.get_endpoint_override()
resp = session.put(url, endpoint_filter=self.service,
endpoint_override=endpoint_override,
json=body)
resp_json = resp.json()
self.check_error(resp_json)
return self
def get_referer(self, session):
"""Queries the referer list of the domain name
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:returns: The referer list of this domain name
:rtype: dict
"""
url = utils.urljoin(self.base_path, self.id, 'referer')
endpoint_override = self.service.get_endpoint_override()
resp = session.get(url, endpoint_filter=self.service,
endpoint_override=endpoint_override)
resp_json = resp.json()
self.check_error(resp_json)
return resp_json['referer']
def set_cache_rules(self, session, **attrs):
"""Configures a cache policy for resources on CDN nodes
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:param dict attrs: Keyword arguments which contains cache policies
for :class:`~openstack.cdn.v1.domain.Domain`.
Available attributes include:
* ignore_url_parameter: Whether to ignore URL parameters
* rules: A list of the cache rules, which overwrite the previous
rule configurations. Blank rules are reset to default rules.
Each cache rule contains 'rule_type','content','ttl','ttl_type' and
'priority' properties.
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
body = {'cache_config': attrs}
url = utils.urljoin(self.base_path, self.id, 'cache')
endpoint_override = self.service.get_endpoint_override()
resp = session.put(url, endpoint_filter=self.service,
endpoint_override=endpoint_override,
json=body)
resp_json = resp.json()
self.check_error(resp_json)
return self
def get_cache_rules(self, session):
"""Queries the cache rules of the domain name
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:returns: The cache rules of this domain name
:rtype: dict
"""
url = utils.urljoin(self.base_path, self.id, 'cache')
endpoint_override = self.service.get_endpoint_override()
resp = session.get(url, endpoint_filter=self.service,
endpoint_override=endpoint_override)
resp_json = resp.json()
self.check_error(resp_json)
return resp_json['cache_config']
def set_https(self, session, **attrs):
"""Configures the HTTPS of the acceleration domain name
This method sets HTTPS by configuring the certificate of a domain name,
and deploy the HTTPS configuration on all CDN nodes to implement
secure acceleration.
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:param dict attrs: Keyword arguments which contains cache policies
for :class:`~openstack.cdn.v1.domain.Domain`.
Available attributes include:
* cert_name: The certificate name.
* https_status: The HTTPS certificate is enabled.
* certificate: The certificate used by HTTPS.
* private_key: The private key used by HTTPS.
* force_redirect_https: Whether to force the client request to be
redirected.
* http2: Whether to use HTTP 2.0.
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
body = {'https': attrs}
url = utils.urljoin(self.base_path, self.id, 'https-info')
endpoint_override = self.service.get_endpoint_override()
resp = session.put(url, endpoint_filter=self.service,
endpoint_override=endpoint_override,
json=body)
resp_json = resp.json()
self.check_error(resp_json)
return self
def get_https(self, session):
"""Obtains the certificate for the acceleration domain name
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:returns: The HTTPS certificate of this domain name
:rtype: dict
"""
url = utils.urljoin(self.base_path, self.id, 'https-info')
endpoint_override = self.service.get_endpoint_override()
resp = session.get(url, endpoint_filter=self.service,
endpoint_override=endpoint_override)
resp_json = resp.json()
self.check_error(resp_json)
return resp_json['https']
def get_detail_by_enterprise_project_id(self, session, enterprise_project_id):
"""Get a remote resource based on this instance.
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:param boolean requires_id: A boolean indicating whether resource ID
should be part of the requested URI.
:returns: This :class:`Domain` instance.
:rtype: :class:`~openstack.cdn.v1.domain.Domain`
"""
request = self._prepare_request(requires_id=enterprise_project_id)
# NOTE(samsong8610): The URL for GET is not standard
request.uri = utils.urljoin(request.uri, 'detail')
params = {'enterprise_project_id': enterprise_project_id}
endpoint_override = self.service.get_endpoint_override()
response = session.get(request.uri, endpoint_filter=self.service,
endpoint_override=endpoint_override, params=params)
self._translate_response(response)
return self
def set_sources_by_enterprise_project_id(self, session, enterprise_project_id, **attrs):
"""Update information about the origin server
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:param \*sources: A list of dict which specifies the domain name
or the IP address of the origin server.
Available keys for each source dict include:
* ip_or_domain: The IP address or domain name of the origin server
Mandatory.
* origin_type: The origin type. The value can be 'ipaddr' or
'domain'. Mandatory.
* active_standby: Whether the source is active. 1: active,
0: standby. Mandatory.
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
# body = {'origin': {'sources': list(sources)}}
# print(attrs)
body = {'origin': attrs}
url = utils.urljoin(self.base_path, self.id, 'origin')
params = {'enterprise_project_id': enterprise_project_id}
endpoint_override = self.service.get_endpoint_override()
resp = session.put(url, endpoint_filter=self.service,
endpoint_override=endpoint_override,
json=body, params=params)
resp_json = resp.json()
self.check_error(resp_json)
self.sources = resp_json['origin']['sources']
return self
def delete_by_enterprise_project_id(self, session, enterprise_project_id):
"""delete an acceleration domain name
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
url = utils.urljoin(self.base_path, self.id)
params = {'enterprise_project_id': enterprise_project_id}
endpoint_override = self.service.get_endpoint_override()
resp = session.delete(url, endpoint_filter=self.service,
endpoint_override=endpoint_override, params=params)
self._translate_response(resp)
return self
def enable_by_enterprise_project_id(self, session, enterprise_project_id):
"""Enables an acceleration domain name
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
url = utils.urljoin(self.base_path, self.id, 'enable')
params = {'enterprise_project_id': enterprise_project_id}
endpoint_override = self.service.get_endpoint_override()
resp = session.put(url, endpoint_filter=self.service,
endpoint_override=endpoint_override, params=params)
self._translate_response(resp)
return self
def disable_by_enterprise_project_id(self, session, enterprise_project_id):
"""Disable an acceleration domain name
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
# print(enterprise_project_id)
url = utils.urljoin(self.base_path, self.id, 'disable')
params = {'enterprise_project_id': enterprise_project_id}
endpoint_override = self.service.get_endpoint_override()
resp = session.put(url, endpoint_filter=self.service,
endpoint_override=endpoint_override, params=params)
self._translate_response(resp)
return self
def set_origin_host_by_enterprise_project_id(self, session, enterprise_project_id, **attrs):
"""Modifies the configuration of the retrieval host
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:param dict attrs: Keyword arguments which contains origin host
configuration for :class:`~openstack.cdn.v1.domain.Domain`.
Available attributes include:
* origin_host_type: The type of the retrieval host.
'accelerate': the acceleration domain name is used as
the retrieval host address;
'customize': A custom domain name is used as the retrieval
host address;
'source': The origin domain name is used as the retrieval
host address.
* customize_domain: The custom domain name of the retrieval host.
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
body = {'origin_host': attrs}
url = utils.urljoin(self.base_path, self.id, 'originhost')
params = {'enterprise_project_id': enterprise_project_id}
endpoint_override = self.service.get_endpoint_override()
resp = session.put(url, endpoint_filter=self.service,
endpoint_override=endpoint_override,
json=body, params=params)
resp_json = resp.json()
self.check_error(resp_json)
self.domain_origin_host = resp_json['origin_host']
return self
def get_origin_host_by_enterprise_project_id(self, session, enterprise_project_id):
"""Queries the configuration of the retrieval host
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:returns: The retrieval host configuration of this domain name
:rtype: dict
"""
# print(enterprise_project_id)
url = utils.urljoin(self.base_path, self.id, 'originhost')
params = {'enterprise_project_id': enterprise_project_id}
endpoint_override = self.service.get_endpoint_override()
resp = session.get(url, endpoint_filter=self.service,
endpoint_override=endpoint_override, params=params)
resp_json = resp.json()
self.check_error(resp_json)
return resp_json['origin_host']
def set_referer_by_enterprise_project_id(self, session, enterprise_project_id, **attrs):
"""Configures a referrer list
Self-define referrer whitelists and blacklists identify and filter
user identities, controlling access.
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:param dict attrs: Keyword arguments which contains origin host
configuration for :class:`~openstack.cdn.v1.domain.Domain`.
Available attributes include:
* referer_type: The referer type. The values include:
0: referer filter not set; 1: blacklist; 2: whitelist.
* referer_list: A list of domain names that are separated from
each other by semicolon (;).
* include_empty: Whether blank referrers are included.
A referrer blacklist including blank referrers indicates that
requests without any referrers are not allowed to access.
A referrer whitelist including blank referrers indicates that
requests without any referrers are allowed to access.
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
body = {'referer': attrs}
url = utils.urljoin(self.base_path, self.id, 'referer')
params = {'enterprise_project_id': enterprise_project_id}
endpoint_override = self.service.get_endpoint_override()
resp = session.put(url, endpoint_filter=self.service,
endpoint_override=endpoint_override,
json=body, params=params)
resp_json = resp.json()
self.check_error(resp_json)
return self
def get_referer_by_enterprise_project_id(self, session, enterprise_project_id):
"""Queries the referer list of the domain name
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:returns: The referer list of this domain name
:rtype: dict
"""
url = utils.urljoin(self.base_path, self.id, 'referer')
params = {'enterprise_project_id': enterprise_project_id}
endpoint_override = self.service.get_endpoint_override()
resp = session.get(url, endpoint_filter=self.service,
endpoint_override=endpoint_override, params=params)
resp_json = resp.json()
self.check_error(resp_json)
return resp_json['referer']
def set_cache_rules_by_enterprise_project_id(self, session, enterprise_project_id, **attrs):
"""Configures a cache policy for resources on CDN nodes
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:param dict attrs: Keyword arguments which contains cache policies
for :class:`~openstack.cdn.v1.domain.Domain`.
Available attributes include:
* ignore_url_parameter: Whether to ignore URL parameters
* rules: A list of the cache rules, which overwrite the previous
rule configurations. Blank rules are reset to default rules.
Each cache rule contains 'rule_type','content','ttl','ttl_type' and
'priority' properties.
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
body = {'cache_config': attrs}
url = utils.urljoin(self.base_path, self.id, 'cache')
params = {'enterprise_project_id': enterprise_project_id}
endpoint_override = self.service.get_endpoint_override()
resp = session.put(url, endpoint_filter=self.service,
endpoint_override=endpoint_override,
json=body, params=params)
resp_json = resp.json()
self.check_error(resp_json)
return self
def get_cache_rules_by_enterprise_project_id(self, session, enterprise_project_id):
"""Queries the cache rules of the domain name
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:returns: The cache rules of this domain name
:rtype: dict
"""
url = utils.urljoin(self.base_path, self.id, 'cache')
params = {'enterprise_project_id': enterprise_project_id}
endpoint_override = self.service.get_endpoint_override()
resp = session.get(url, endpoint_filter=self.service,
endpoint_override=endpoint_override, params=params)
resp_json = resp.json()
self.check_error(resp_json)
return resp_json['cache_config']
def set_https_by_enterprise_project_id(self, session, enterprise_project_id, **attrs):
"""Configures the HTTPS of the acceleration domain name
This method sets HTTPS by configuring the certificate of a domain name,
and deploy the HTTPS configuration on all CDN nodes to implement
secure acceleration.
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:param dict attrs: Keyword arguments which contains cache policies
for :class:`~openstack.cdn.v1.domain.Domain`.
Available attributes include:
* cert_name: The certificate name.
* https_status: The HTTPS certificate is enabled.
* certificate: The certificate used by HTTPS.
* private_key: The private key used by HTTPS.
* force_redirect_https: Whether to force the client request to be
redirected.
* http2: Whether to use HTTP 2.0.
:returns: This :class:`Domain` instance.
:rtype: :class:`Domain`
"""
body = {'https': attrs}
url = utils.urljoin(self.base_path, self.id, 'https-info')
params = {'enterprise_project_id': enterprise_project_id}
endpoint_override = self.service.get_endpoint_override()
resp = session.put(url, endpoint_filter=self.service,
endpoint_override=endpoint_override,
json=body, params=params)
resp_json = resp.json()
self.check_error(resp_json)
return self
def get_https_by_enterprise_project_id(self, session, enterprise_project_id):
"""Obtains the certificate for the acceleration domain name
:param session: The session to use for making this request.
:type session: :class:`~openstack.session.Session`
:returns: The HTTPS certificate of this domain name
:rtype: dict
"""
url = utils.urljoin(self.base_path, self.id, 'https-info')
params = {'enterprise_project_id': enterprise_project_id}
endpoint_override = self.service.get_endpoint_override()
resp = session.get(url, endpoint_filter=self.service,
endpoint_override=endpoint_override, params=params)
resp_json = resp.json()
self.check_error(resp_json)
return resp_json['https']
| 44.473214
| 96
| 0.642609
| 3,473
| 29,886
| 5.378635
| 0.081774
| 0.085653
| 0.058994
| 0.029443
| 0.885171
| 0.875535
| 0.875535
| 0.875535
| 0.871146
| 0.851713
| 0
| 0.002163
| 0.272937
| 29,886
| 671
| 97
| 44.539493
| 0.857518
| 0.45426
| 0
| 0.764259
| 0
| 0
| 0.062729
| 0.022177
| 0
| 0
| 0
| 0
| 0
| 1
| 0.095057
| false
| 0
| 0.019011
| 0
| 0.296578
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e89bac1c39e1d2cebe3c090c448b475b2ffc0bf3
| 8,002
|
py
|
Python
|
tests/test_sim.py
|
davidjohnoliver/IncomeForecast
|
f638a16a3bccb576f7977f9ea3fc08047c96ecce
|
[
"MIT"
] | null | null | null |
tests/test_sim.py
|
davidjohnoliver/IncomeForecast
|
f638a16a3bccb576f7977f9ea3fc08047c96ecce
|
[
"MIT"
] | null | null | null |
tests/test_sim.py
|
davidjohnoliver/IncomeForecast
|
f638a16a3bccb576f7977f9ea3fc08047c96ecce
|
[
"MIT"
] | null | null | null |
import sim
import model
import solve
import math
def test_simulation_run():
simulation = sim.Simulation()
simulation.age_at_retirement = 60 # So, 2050
simulation.year_of_birth = 1990
simulation.initial_year = 2020
simulation.age_at_death = 70 # Smoker?
simulation.savings_at_death = -1 #Ignored - we're not testing Simulation
simulation.initial_savings_rrsp = 4000
simulation.initial_savings_tfsa = 0
simulation.initial_salary = 53000
retirement_income = 29000
initial_spending = 42000
#rules
def constant_salary(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
return deltas.update_gross_salary(previous_deltas.gross_salary)
def constant_spending(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
return deltas.update_spending(previous_deltas.spending)
def split50_50(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
output = deltas.update_rrsp(deltas.undifferentiated_savings * 0.5)
output = output.update_tfsa(deltas.undifferentiated_savings * 0.5)
return output
def retirement_spending(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
return deltas.update_spending(retirement_income)
simulation.set_rules([ constant_salary, constant_spending, split50_50 ])
simulation.set_retirement_rules([ retirement_spending, split50_50 ])
simulation_run = sim.Simulation_Run(simulation, initial_spending)
simulation_run.run()
# A ver: initial (rrsp) = 4k; 30 x (53k - 42k) = 30 x 11k = 330k; 10 x 29k = 290k; final savings = 44k
assert 334000 == simulation_run.funds_at_retirement.total_savings
assert 169000 == simulation_run.funds_at_retirement.rrsp_savings
assert 165000 == simulation_run.funds_at_retirement.tfsa_savings
assert 44000 == simulation_run.final_funds.total_savings
assert 24000 == simulation_run.final_funds.rrsp_savings
assert 20000 == simulation_run.final_funds.tfsa_savings
def test_simulation():
simulation = sim.Simulation()
simulation.age_at_retirement = 60 # So, 2050
simulation.year_of_birth = 1990
simulation.initial_year = 2020
simulation.age_at_death = 70 # Smoker?
simulation.savings_at_death = 44000 # Reverse-engineered from previous test
simulation.initial_savings_rrsp = 4000
simulation.initial_savings_tfsa = 0
simulation.initial_salary = 53000
retirement_income = 29000
expected_initial_spending = 42000
#rules
def constant_salary(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
return deltas.update_gross_salary(previous_deltas.gross_salary)
def constant_spending(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
return deltas.update_spending(previous_deltas.spending)
def split50_50(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
output = deltas.update_rrsp(deltas.undifferentiated_savings * 0.5)
output = output.update_tfsa(deltas.undifferentiated_savings * 0.5)
return output
def retirement_spending(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
return deltas.update_spending(retirement_income)
simulation.set_rules([ constant_salary, constant_spending, split50_50 ])
simulation.set_retirement_rules([ retirement_spending, split50_50 ])
assert -1 == simulation.required_initial_spending
simulation.set_solver(solve.binary_solver)
simulation.run()
assert math.isclose(expected_initial_spending, simulation.required_initial_spending, rel_tol=0.01)
def test_simulation_optimizing_solver_unoptimized():
simulation = sim.Simulation()
simulation.age_at_retirement = 60 # So, 2050
simulation.year_of_birth = 1990
simulation.initial_year = 2020
simulation.age_at_death = 70 # Smoker?
simulation.savings_at_death = 44000 # Reverse-engineered from previous test
simulation.initial_savings_rrsp = 4000
simulation.initial_savings_tfsa = 0
simulation.initial_salary = 53000
retirement_income = 29000
expected_initial_spending = 42000
#rules
def constant_salary(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
return deltas.update_gross_salary(previous_deltas.gross_salary)
def constant_spending(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
return deltas.update_spending(previous_deltas.spending)
def split50_50(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
output = deltas.update_rrsp(deltas.undifferentiated_savings * 0.5)
output = output.update_tfsa(deltas.undifferentiated_savings * 0.5)
return output
def retirement_spending(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
return deltas.update_spending(retirement_income)
simulation.set_rules([ constant_salary, constant_spending, split50_50 ])
simulation.set_retirement_rules([ retirement_spending, split50_50 ])
assert -1 == simulation.required_initial_spending
opt = solve.Optimizing_Solver(solve.binary_solver, should_invert = True)
simulation.set_solver(opt.solve)
simulation.run()
assert math.isclose(expected_initial_spending, simulation.required_initial_spending, rel_tol=0.01)
def test_simulation_optimizing_solver():
simulation = sim.Simulation()
simulation.age_at_retirement = 60 # So, 2050
simulation.year_of_birth = 1990
simulation.initial_year = 2020
simulation.age_at_death = 70 # Smoker?
simulation.savings_at_death = 44000 # Reverse-engineered from previous test
simulation.initial_savings_rrsp = 4000
simulation.initial_savings_tfsa = 0
simulation.initial_salary = 53000
retirement_income = 29000
expected_initial_spending = 42000
opt = solve.Optimizing_Solver(solve.binary_solver, should_invert = True)
#rules
def constant_salary(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
return deltas.update_gross_salary(previous_deltas.gross_salary)
def constant_spending(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
return deltas.update_spending(previous_deltas.spending)
def split50_50(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
output = deltas.update_rrsp(deltas.undifferentiated_savings * 0.5)
output = output.update_tfsa(deltas.undifferentiated_savings * 0.5)
return output
def retirement_spending(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
return deltas.update_spending(retirement_income)
dr_func = opt.subscribe_optimized_scalar("Drain", -1000, 5000)
def throw_money_down_drain(deltas: model.deltas_state, previous_funds: model.funds_state, previous_deltas: model.deltas_state):
dr = dr_func()
return deltas.update_gross_salary(deltas.gross_salary - abs(dr - 318))
simulation.set_rules([ constant_salary, throw_money_down_drain, constant_spending, split50_50 ])
simulation.set_retirement_rules([ retirement_spending, split50_50 ])
assert -1 == simulation.required_initial_spending
simulation.set_solver(opt.solve)
simulation.run()
assert math.isclose(expected_initial_spending, simulation.required_initial_spending, rel_tol=0.01)
assert math.isclose(318, opt.get_optimized_value("Drain"), rel_tol=0.01)
| 44.455556
| 131
| 0.774556
| 1,005
| 8,002
| 5.838806
| 0.109453
| 0.063736
| 0.0985
| 0.127471
| 0.8894
| 0.863667
| 0.863667
| 0.863667
| 0.863667
| 0.863667
| 0
| 0.045321
| 0.147963
| 8,002
| 180
| 132
| 44.455556
| 0.815342
| 0.042489
| 0
| 0.80315
| 0
| 0
| 0.001308
| 0
| 0
| 0
| 0
| 0
| 0.102362
| 1
| 0.165354
| false
| 0
| 0.031496
| 0.094488
| 0.330709
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e8d33238f2cf0aef2e509a3577673e6c1598bf79
| 6,517
|
py
|
Python
|
cexec/utils/parsers.py
|
WillFox/cexec
|
63f52594a4c7a327aeb757afbfe7799651f34827
|
[
"MIT"
] | 1
|
2018-07-09T18:36:44.000Z
|
2018-07-09T18:36:44.000Z
|
cexec/utils/parsers.py
|
WillFox/cexec
|
63f52594a4c7a327aeb757afbfe7799651f34827
|
[
"MIT"
] | null | null | null |
cexec/utils/parsers.py
|
WillFox/cexec
|
63f52594a4c7a327aeb757afbfe7799651f34827
|
[
"MIT"
] | null | null | null |
import argparse
def menu_parser(configure,run,status,transfer,kill,resources):
parser = argparse.ArgumentParser(
description="A command line interface to simplify distributed "+
"execution. You know, do da stuffs in the cloud! =)",
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
epilog="A FoxiDev Production")
from .. import version
parser.add_argument(
'--version', action='version', version=version.__version__)
subparsers = parser.add_subparsers(
dest="parser")
_configure(subparsers,configure)
_run(subparsers,run)
_status(subparsers,status)
_transfer(subparsers,transfer)
_kill(subparsers,kill)
_resources(subparsers,resources)
return parser.parse_args()
def _configure(subparsers,configure):
con = subparsers.add_parser(
"configure", help="Let's add a new cloud to the sky!",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
con.set_defaults(func=configure)
con.add_argument(
'-t',
'--type',
type=str,
metavar="resource_type",
help="Type of resource to configure {ssh | slurm | torque | aws |"+
" google_cloud | azure | openstack}",
default="ssh")
con.add_argument(
"-n",
"--name",
type=str,
metavar="resource_name",
required=True,
help="Unique name for resource")
def _run(subparsers,run):
parse_run = subparsers.add_parser(
"run", help="Let's make a cloud mull over some data!",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parse_run.set_defaults(func=run)
parse_run.add_argument(
'name',
type=str,
metavar="resource_name",
help="Specific resource to run on.")
parse_run.add_argument(
'execution-command',
metavar="command",
type=str,
help="command to be run on resource")
def _status(subparsers,status):
con = subparsers.add_parser(
"status", help="What's my sky stuff doing?",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
con.set_defaults(func=status)
con.add_argument(
'-n',
'--name',
type=str,
metavar="resource_name",
help="Specific resource to query status.")
def _transfer(subparsers,transfer):
con = subparsers.add_parser(
"transfer", help="Let's pull my results in from the cloud! "+
"ITS RAINING!",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
con.set_defaults(func=transfer)
def _kill(subparsers,kill):
con = subparsers.add_parser(
"kill", help="Stormy clouds must die! All my results will be erased!",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
con.set_defaults(func=kill)
def _resources(subparsers,resources):
res_list = subparsers.add_parser(
"resource", help="List all distributed devices available",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
res_list.set_defaults(func=resources)
####################
#WORKER MENU PARSER#
####################
def worker_menu_parser(configure,run,status,transfer,kill,resources):
parser = argparse.ArgumentParser(
description="A command line interface to simplify distributed "+
"execution\nYou know, do da stuffs in the cloud! =)",
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
epilog="A FoxiDev Production")
import version
parser.add_argument(
'--version', action='version', version=version.__version__)
subparsers = parser.add_subparsers(
dest="parser")
_worker_configure(subparsers,configure)
_worker_run(subparsers,run)
_worker_status(subparsers,status)
_worker_transfer(subparsers,transfer)
_worker_kill(subparsers,kill)
_worker_resources(subparsers,resources)
return parser.parse_args()
def _worker_configure(subparsers,configure):
con = subparsers.add_parser(
"configure", help="Let's add a new cloud to the sky!",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
con.set_defaults(func=configure)
con.add_argument(
'-t',
'--type',
type=str,
metavar="resource_type",
help="Type of resource to configure {ssh | slurm | torque | aws |"+
" google_cloud | azure | openstack}",
default="ssh")
con.add_argument(
"-n",
"--name",
type=str,
metavar="resource_name",
required=True,
help="Unique name for resource")
def _worker_run(subparsers,run):
parse_run = subparsers.add_parser(
"run", help="Let's make a cloud mull over some data!",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parse_run.set_defaults(func=run)
parse_run.add_argument('-e',"--execution-command",
type=str,
metavar="command",
required=True,
help="command to be run on resource")
parse_run.add_argument(
'-n',
'--name',
type=str,
metavar="resource_name",
required=True,
help="Specific resource to run on.")
def _worker_status(subparsers,status):
con = subparsers.add_parser(
"status", help="What's my sky stuff doing?",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
con.set_defaults(func=status)
con.add_argument(
'-n',
'--name',
type=str,
metavar="resource_name",
help="Specific resource to query status.")
def _worker_transfer(subparsers,transfer):
con = subparsers.add_parser(
"transfer", help="Let's pull my results in from the cloud! "+
"ITS RAINING!",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
con.set_defaults(func=transfer)
def _worker_kill(subparsers,kill):
con = subparsers.add_parser(
"kill", help="Stormy clouds must die! All my results will be erased!",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
con.set_defaults(func=kill)
def _worker_resources(subparsers,resources):
res_list = subparsers.add_parser(
"resource", help="List all distributed devices available",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
res_list.set_defaults(func=resources)
| 35.807692
| 78
| 0.645389
| 697
| 6,517
| 5.857963
| 0.150646
| 0.048004
| 0.075435
| 0.174871
| 0.886113
| 0.886113
| 0.879255
| 0.86554
| 0.840069
| 0.840069
| 0
| 0
| 0.245665
| 6,517
| 182
| 79
| 35.807692
| 0.830553
| 0.002762
| 0
| 0.791411
| 0
| 0
| 0.230412
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.08589
| false
| 0
| 0.018405
| 0
| 0.116564
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
2cef865ba1feb23cb4e1c1d7fc5174fbb2297241
| 2,706
|
py
|
Python
|
AlteMatrix/converter/binary.py
|
samuelajala01/AlteMatrix
|
e22fe443241fb646a218100bdcb19e0e4cc85635
|
[
"MIT"
] | 1
|
2022-01-16T02:15:50.000Z
|
2022-01-16T02:15:50.000Z
|
AlteMatrix/converter/binary.py
|
samuelajala01/AlteMatrix
|
e22fe443241fb646a218100bdcb19e0e4cc85635
|
[
"MIT"
] | null | null | null |
AlteMatrix/converter/binary.py
|
samuelajala01/AlteMatrix
|
e22fe443241fb646a218100bdcb19e0e4cc85635
|
[
"MIT"
] | null | null | null |
inv = ['2','3','4','5','6','7','8','9']
def to_decimal(data: str):
print("Binary value:",data)
decimal = 0
for digit in data:
if digit in inv:
raise ValueError("Non-binary number entered!")
try:
decimal = decimal*2 + int(digit)
except ValueError:
raise ValueError("Non-binary number entered!")
print("Decimal value: ",decimal)
def to_decimal_s(data: str):
decimal = 0
for digit in data:
if digit in inv:
raise ValueError("Non-binary number entered!")
try:
decimal = decimal*2 + int(digit)
except ValueError:
raise ValueError("Non-binary number entered!")
return decimal
def to_octal(data: str):
print("Binary value:",data)
for digit in data:
if digit in inv:
raise ValueError("Non-binary number entered!")
try:
octal = int(data,2)
octal = oct(octal).replace('0o', '')
except ValueError:
raise ValueError("Non-binary number entered!")
print("Octal value: ",octal)
def to_octal_s(data: str):
for digit in data:
if digit in inv:
raise ValueError("Non-binary number entered!")
try:
octal = int(data,2)
octal = oct(octal).replace('0o', '')
except ValueError:
raise ValueError("Non-binary number entered!")
return octal
def to_hexadecimal(data: str):
print("Binary value:",data)
for digit in data:
if digit in inv:
raise ValueError("Non-binary number entered!")
try:
hxd = int(data,2)
hxd = hex(hxd).replace('0x', '')
except ValueError:
raise ValueError("Non-binary number entered!")
print("Hexadecimal value: ",hxd)
def to_hexadecimal_s(data: str):
for digit in data:
if digit in inv:
raise ValueError("Non-binary number entered!")
try:
hxd = int(data,2)
hxd = hex(hxd).replace('0x', '')
except ValueError:
raise ValueError("Non-binary number entered!")
return hxd
def to_text(data: str):
data = data.split()
l = []
for i in data:
try:
z = int(i, 2)
l.append(chr(z))
except ValueError:
raise ValueError("Non-binary value entered!")
print("Binary Value:", ' '.join(data))
print("ASCII value:", ''.join(l))
def to_text_s(data: str):
data = data.split()
l = []
for i in data:
try:
z = int(i, 2)
l.append(chr(z))
except ValueError:
raise ValueError("Non-binary value entered!")
return ''.join(l)
| 30.404494
| 58
| 0.550259
| 334
| 2,706
| 4.422156
| 0.146707
| 0.14218
| 0.170616
| 0.227488
| 0.83954
| 0.83954
| 0.821259
| 0.821259
| 0.821259
| 0.798917
| 0
| 0.012035
| 0.324464
| 2,706
| 88
| 59
| 30.75
| 0.795952
| 0
| 0
| 0.788235
| 0
| 0
| 0.181079
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.094118
| false
| 0
| 0
| 0
| 0.141176
| 0.094118
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
fa0f9dcf9194b50a88be3e9a5e8c94a222f37eff
| 16,372
|
py
|
Python
|
anahtarpopup.py
|
Ahmet-Gundogdu/Random_Pasword_Generator_Sezar_Crypto
|
2e34c9b857be3b2b915326f51a3da5f8a7f1dbaa
|
[
"MIT"
] | 2
|
2021-12-19T03:45:41.000Z
|
2021-12-19T03:48:28.000Z
|
anahtarpopup.py
|
Ahmet-Gundogdu/Random_Pasword_Generator_Sezar_Crypto
|
2e34c9b857be3b2b915326f51a3da5f8a7f1dbaa
|
[
"MIT"
] | null | null | null |
anahtarpopup.py
|
Ahmet-Gundogdu/Random_Pasword_Generator_Sezar_Crypto
|
2e34c9b857be3b2b915326f51a3da5f8a7f1dbaa
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'popup.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_enektar_popup(object):
def setupUi(self, enektar_popup):
enektar_popup.setObjectName("enektar_popup")
enektar_popup.resize(376, 224)
enektar_popup.setStyleSheet("QMainWindow {\\n background-color:rgb(82, 82, 82);\\n}\\nQTextEdit {\\n background-color:rgb(42, 42, 42);\\n color: rgb(0, 255, 0);\\n}\\nQPushButton{\\n border-style: solid;\\n border-color: #050a0e;\\n border-width: 1px;\\n border-radius: 5px;\\n color: #d3dae3;\\n padding: 2px;\\n background-color: #100E19;\\n}\\nQPushButton::default{\\n border-style: solid;\\n border-color: #050a0e;\\n border-width: 1px;\\n border-radius: 5px;\\n color: #FFFFFF;\\n padding: 2px;\\n background-color: #151a1e;\\n}\\nQPushButton:hover{\\n border-style: solid;\\n border-top-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 #C0DB50, stop:0.4 #C0DB50, stop:0.5 #100E19, stop:1 #100E19);\\n border-bottom-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 #100E19, stop:0.5 #100E19, stop:0.6 #C0DB50, stop:1 #C0DB50);\\n border-left-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #C0DB50, stop:0.3 #C0DB50, stop:0.7 #100E19, stop:1 #100E19);\\n border-right-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 #C0DB50, stop:0.3 #C0DB50, stop:0.7 #100E19, stop:1 #100E19);\\n border-width: 2px;\\n border-radius: 1px;\\n color: #d3dae3;\\n padding: 2px;\\n}\\nQPushButton:pressed{\\n border-style: solid;\\n border-top-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 #d33af1, stop:0.4 #d33af1, stop:0.5 #100E19, stop:1 #100E19);\\n border-bottom-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 #100E19, stop:0.5 #100E19, stop:0.6 #d33af1, stop:1 #d33af1);\\n border-left-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #d33af1, stop:0.3 #d33af1, stop:0.7 #100E19, stop:1 #100E19);\\n border-right-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 #d33af1, stop:0.3 #d33af1, stop:0.7 #100E19, stop:1 #100E19);\\n border-width: 2px;\\n border-radius: 1px;\\n color: #d3dae3;\\n padding: 2px;\\n}\\nQLineEdit {\\n border-width: 1px; border-radius: 4px;\\n border-color: rgb(58, 58, 58);\\n border-style: inset;\\n padding: 0 8px;\\n color: rgb(255, 255, 255);\\n background:rgb(100, 100, 100);\\n selection-background-color: rgb(187, 187, 187);\\n selection-color: rgb(60, 63, 65);\\n}\\nQLabel {\\n color:rgb(255,255,255); \\n}\\nQProgressBar {\\n text-align: center;\\n color: rgb(240, 240, 240);\\n border-width: 1px; \\n border-radius: 10px;\\n border-color: rgb(58, 58, 58);\\n border-style: inset;\\n background-color:rgb(77,77,77);\\n}\\nQProgressBar::chunk {\\n background-color: qlineargradient(spread:pad, x1:0.5, y1:0.7, x2:0.5, y2:0.3, stop:0 rgba(87, 97, 106, 255), stop:1 rgba(93, 103, 113, 255));\\n border-radius: 5px;\\n}\\nQMenuBar {\\n background:rgb(82, 82, 82);\\n}\\nQMenuBar::item {\\n color:rgb(223,219,210);\\n spacing: 3px;\\n padding: 1px 4px;\\n background: transparent;\\n}\\n\\nQMenuBar::item:selected {\\n background:rgb(115, 115, 115);\\n}\\nQMenu::item:selected {\\n color:rgb(255,255,255);\\n border-width:2px;\\n border-style:solid;\\n padding-left:18px;\\n padding-right:8px;\\n padding-top:2px;\\n padding-bottom:3px;\\n background:qlineargradient(spread:pad, x1:0.5, y1:0.7, x2:0.5, y2:0.3, stop:0 rgba(87, 97, 106, 255), stop:1 rgba(93, 103, 113, 255));\\n border-top-color: qlineargradient(spread:pad, x1:0.5, y1:0.6, x2:0.5, y2:0.4, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));\\n border-right-color: qlineargradient(spread:pad, x1:0.4, y1:0.5, x2:0.6, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));\\n border-left-color: qlineargradient(spread:pad, x1:0.6, y1:0.5, x2:0.4, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));\\n border-bottom-color: rgb(58, 58, 58);\\n border-bottom-width: 1px;\\n}\\nQMenu::item {\\n color:rgb(223,219,210);\\n background-color:rgb(78,78,78);\\n padding-left:20px;\\n padding-top:4px;\\n padding-bottom:4px;\\n padding-right:10px;\\n}\\nQMenu{\\n background-color:rgb(78,78,78);\\n}\\nQTabWidget {\\n color:rgb(0,0,0);\\n background-color:rgb(247,246,246);\\n}\\nQTabWidget::pane {\\n border-color: rgb(77,77,77);\\n background-color:rgb(101,101,101);\\n border-style: solid;\\n border-width: 1px;\\n border-radius: 6px;\\n}\\nQTabBar::tab {\\n padding:2px;\\n color:rgb(250,250,250);\\n background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(77, 77, 77, 255), stop:1 rgba(97, 97, 97, 255));\\n border-style: solid;\\n border-width: 2px;\\n border-top-right-radius:4px;\\n border-top-left-radius:4px;\\n border-top-color: qlineargradient(spread:pad, x1:0.5, y1:0.6, x2:0.5, y2:0.4, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(95, 92, 93, 255));\\n border-right-color: qlineargradient(spread:pad, x1:0.4, y1:0.5, x2:0.6, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(95, 92, 93, 255));\\n border-left-color: qlineargradient(spread:pad, x1:0.6, y1:0.5, x2:0.4, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(95, 92, 93, 255));\\n border-bottom-color: rgb(101,101,101);\\n}\\nQTabBar::tab:selected, QTabBar::tab:last:selected, QTabBar::tab:hover {\\n background-color:rgb(101,101,101);\\n margin-left: 0px;\\n margin-right: 1px;\\n}\\nQTabBar::tab:!selected {\\n margin-top: 1px;\\n margin-right: 1px;\\n}\\nQCheckBox {\\n color:rgb(223,219,210);\\n padding: 2px;\\n}\\nQCheckBox:hover {\\n border-radius:4px;\\n border-style:solid;\\n padding-left: 1px;\\n padding-right: 1px;\\n padding-bottom: 1px;\\n padding-top: 1px;\\n border-width:1px;\\n border-color: rgb(87, 97, 106);\\n background-color:qlineargradient(spread:pad, x1:0.5, y1:0.7, x2:0.5, y2:0.3, stop:0 rgba(87, 97, 106, 150), stop:1 rgba(93, 103, 113, 150));\\n}\\n\\nQCheckBox::indicator:unchecked {\\n border-radius:4px;\\n border-style:solid;\\n border-width:1px;\\n border-color: rgb(87, 97, 106);\\n background-color:rgb(255,255,255);\\n}\\nQStatusBar {\\n color:rgb(240,240,240);\\n}\\n")
self.gridLayout = QtWidgets.QGridLayout(enektar_popup)
self.gridLayout.setObjectName("gridLayout")
self.frame = QtWidgets.QFrame(enektar_popup)
self.frame.setStyleSheet("QMainWindow {\n"
" background-color:rgb(82, 82, 82);\n"
"}\n"
"QTextEdit {\n"
" background-color:rgb(42, 42, 42);\n"
" color: rgb(0, 255, 0);\n"
"}\n"
"QPushButton{\n"
" border-style: solid;\n"
" border-color: #050a0e;\n"
" border-width: 1px;\n"
" border-radius: 5px;\n"
" color: #d3dae3;\n"
" padding: 2px;\n"
" background-color: #100E19;\n"
"}\n"
"QPushButton::default{\n"
" border-style: solid;\n"
" border-color: #050a0e;\n"
" border-width: 1px;\n"
" border-radius: 5px;\n"
" color: #FFFFFF;\n"
" padding: 2px;\n"
" background-color: #151a1e;\n"
"}\n"
"QPushButton:hover{\n"
" border-style: solid;\n"
" border-top-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 #C0DB50, stop:0.4 #C0DB50, stop:0.5 #100E19, stop:1 #100E19);\n"
" border-bottom-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 #100E19, stop:0.5 #100E19, stop:0.6 #C0DB50, stop:1 #C0DB50);\n"
" border-left-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #C0DB50, stop:0.3 #C0DB50, stop:0.7 #100E19, stop:1 #100E19);\n"
" border-right-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 #C0DB50, stop:0.3 #C0DB50, stop:0.7 #100E19, stop:1 #100E19);\n"
" border-width: 2px;\n"
" border-radius: 1px;\n"
" color: #d3dae3;\n"
" padding: 2px;\n"
"}\n"
"QPushButton:pressed{\n"
" border-style: solid;\n"
" border-top-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 #d33af1, stop:0.4 #d33af1, stop:0.5 #100E19, stop:1 #100E19);\n"
" border-bottom-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 #100E19, stop:0.5 #100E19, stop:0.6 #d33af1, stop:1 #d33af1);\n"
" border-left-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #d33af1, stop:0.3 #d33af1, stop:0.7 #100E19, stop:1 #100E19);\n"
" border-right-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 #d33af1, stop:0.3 #d33af1, stop:0.7 #100E19, stop:1 #100E19);\n"
" border-width: 2px;\n"
" border-radius: 1px;\n"
" color: #d3dae3;\n"
" padding: 2px;\n"
"}\n"
"QLineEdit {\n"
" border-width: 1px; border-radius: 4px;\n"
" border-color: rgb(58, 58, 58);\n"
" border-style: inset;\n"
" padding: 0 8px;\n"
" color: rgb(255, 255, 255);\n"
" background:rgb(100, 100, 100);\n"
" selection-background-color: rgb(187, 187, 187);\n"
" selection-color: rgb(60, 63, 65);\n"
"}\n"
"QLabel {\n"
" color:rgb(51,0,51); \n"
"}\n"
"QProgressBar {\n"
" text-align: center;\n"
" color: rgb(240, 240, 240);\n"
" border-width: 1px; \n"
" border-radius: 10px;\n"
" border-color: rgb(58, 58, 58);\n"
" border-style: inset;\n"
" background-color:rgb(77,77,77);\n"
"}\n"
"QProgressBar::chunk {\n"
" background-color: qlineargradient(spread:pad, x1:0.5, y1:0.7, x2:0.5, y2:0.3, stop:0 rgba(87, 97, 106, 255), stop:1 rgba(93, 103, 113, 255));\n"
" border-radius: 5px;\n"
"}\n"
"QMenuBar {\n"
" background:rgb(82, 82, 82);\n"
"}\n"
"QMenuBar::item {\n"
" color:rgb(223,219,210);\n"
" spacing: 3px;\n"
" padding: 1px 4px;\n"
" background: transparent;\n"
"}\n"
"\n"
"QMenuBar::item:selected {\n"
" background:rgb(115, 115, 115);\n"
"}\n"
"QMenu::item:selected {\n"
" color:rgb(255,255,255);\n"
" border-width:2px;\n"
" border-style:solid;\n"
" padding-left:18px;\n"
" padding-right:8px;\n"
" padding-top:2px;\n"
" padding-bottom:3px;\n"
" background:qlineargradient(spread:pad, x1:0.5, y1:0.7, x2:0.5, y2:0.3, stop:0 rgba(87, 97, 106, 255), stop:1 rgba(93, 103, 113, 255));\n"
" border-top-color: qlineargradient(spread:pad, x1:0.5, y1:0.6, x2:0.5, y2:0.4, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));\n"
" border-right-color: qlineargradient(spread:pad, x1:0.4, y1:0.5, x2:0.6, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));\n"
" border-left-color: qlineargradient(spread:pad, x1:0.6, y1:0.5, x2:0.4, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));\n"
" border-bottom-color: rgb(58, 58, 58);\n"
" border-bottom-width: 1px;\n"
"}\n"
"QMenu::item {\n"
" color:rgb(223,219,210);\n"
" background-color:rgb(78,78,78);\n"
" padding-left:20px;\n"
" padding-top:4px;\n"
" padding-bottom:4px;\n"
" padding-right:10px;\n"
"}\n"
"QMenu{\n"
" background-color:rgb(78,78,78);\n"
"}\n"
"QTabWidget {\n"
" color:rgb(0,0,0);\n"
" background-color:rgb(247,246,246);\n"
"}\n"
"QTabWidget::pane {\n"
" border-color: rgb(77,77,77);\n"
" background-color:rgb(101,101,101);\n"
" border-style: solid;\n"
" border-width: 1px;\n"
" border-radius: 6px;\n"
"}\n"
"QTabBar::tab {\n"
" padding:2px;\n"
" color:rgb(250,250,250);\n"
" background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(77, 77, 77, 255), stop:1 rgba(97, 97, 97, 255));\n"
" border-style: solid;\n"
" border-width: 2px;\n"
" border-top-right-radius:4px;\n"
" border-top-left-radius:4px;\n"
" border-top-color: qlineargradient(spread:pad, x1:0.5, y1:0.6, x2:0.5, y2:0.4, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(95, 92, 93, 255));\n"
" border-right-color: qlineargradient(spread:pad, x1:0.4, y1:0.5, x2:0.6, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(95, 92, 93, 255));\n"
" border-left-color: qlineargradient(spread:pad, x1:0.6, y1:0.5, x2:0.4, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(95, 92, 93, 255));\n"
" border-bottom-color: rgb(101,101,101);\n"
"}\n"
"QTabBar::tab:selected, QTabBar::tab:last:selected, QTabBar::tab:hover {\n"
" background-color:rgb(101,101,101);\n"
" margin-left: 0px;\n"
" margin-right: 1px;\n"
"}\n"
"QTabBar::tab:!selected {\n"
" margin-top: 1px;\n"
" margin-right: 1px;\n"
"}\n"
"QCheckBox {\n"
" color:rgb(223,219,210);\n"
" padding: 2px;\n"
"}\n"
"QCheckBox:hover {\n"
" border-radius:4px;\n"
" border-style:solid;\n"
" padding-left: 1px;\n"
" padding-right: 1px;\n"
" padding-bottom: 1px;\n"
" padding-top: 1px;\n"
" border-width:1px;\n"
" border-color: rgb(87, 97, 106);\n"
" background-color:qlineargradient(spread:pad, x1:0.5, y1:0.7, x2:0.5, y2:0.3, stop:0 rgba(87, 97, 106, 150), stop:1 rgba(93, 103, 113, 150));\n"
"}\n"
"\n"
"QCheckBox::indicator:unchecked {\n"
" border-radius:4px;\n"
" border-style:solid;\n"
" border-width:1px;\n"
" border-color: rgb(87, 97, 106);\n"
" background-color:rgb(255,255,255);\n"
"}\n"
"QStatusBar {\n"
" color:rgb(240,240,240);\n"
"}\n"
"")
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.aciklama = QtWidgets.QLabel(self.frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.aciklama.sizePolicy().hasHeightForWidth())
self.aciklama.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.aciklama.setFont(font)
self.aciklama.setAlignment(QtCore.Qt.AlignCenter)
self.aciklama.setObjectName("aciklama")
self.verticalLayout_2.addWidget(self.aciklama)
self.enektar_line = QtWidgets.QLineEdit(self.frame)
self.enektar_line.setObjectName("enektar_line")
self.verticalLayout_2.addWidget(self.enektar_line)
self.label = QtWidgets.QLabel(self.frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
self.label.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.label.setFont(font)
self.label.setObjectName("label")
self.verticalLayout_2.addWidget(self.label)
self.enektar_devam = QtWidgets.QPushButton(self.frame)
self.enektar_devam.setMinimumSize(QtCore.QSize(0, 25))
self.enektar_devam.setMaximumSize(QtCore.QSize(90, 16777215))
self.enektar_devam.setObjectName("enektar_devam")
self.verticalLayout_2.addWidget(self.enektar_devam)
self.gridLayout.addWidget(self.frame, 0, 0, 1, 1)
self.retranslateUi(enektar_popup)
QtCore.QMetaObject.connectSlotsByName(enektar_popup)
def retranslateUi(self, enektar_popup):
_translate = QtCore.QCoreApplication.translate
enektar_popup.setWindowTitle(_translate("enektar_popup", "Anahtar giriniz"))
self.aciklama.setText(_translate("enektar_popup", "1. Anahtarı giriniz."))
self.label.setText(_translate("enektar_popup", "Girilen anahtar sayisi."))
self.enektar_devam.setText(_translate("enektar_popup", "Devam"))
| 67.93361
| 6,295
| 0.627229
| 2,613
| 16,372
| 3.914657
| 0.086873
| 0.078013
| 0.084466
| 0.091505
| 0.795092
| 0.787271
| 0.779255
| 0.773292
| 0.768208
| 0.744941
| 0
| 0.136143
| 0.169558
| 16,372
| 240
| 6,296
| 68.216667
| 0.616211
| 0.016492
| 0
| 0.411504
| 1
| 0.088496
| 0.790463
| 0.201779
| 0
| 0
| 0
| 0
| 0
| 1
| 0.00885
| false
| 0
| 0.004425
| 0
| 0.017699
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
d70cb89925bff9b2ef96a0a0a9ab1319acb7cd6f
| 200
|
py
|
Python
|
tests/python-reference/bool/bool-convert.py
|
jpolitz/lambda-py-paper
|
746ef63fc1123714b4adaf78119028afbea7bd76
|
[
"Apache-2.0"
] | 25
|
2015-04-16T04:31:49.000Z
|
2022-03-10T15:53:28.000Z
|
tests/python-reference/bool/bool-convert.py
|
jpolitz/lambda-py-paper
|
746ef63fc1123714b4adaf78119028afbea7bd76
|
[
"Apache-2.0"
] | 1
|
2018-11-21T22:40:02.000Z
|
2018-11-26T17:53:11.000Z
|
tests/python-reference/bool/bool-convert.py
|
jpolitz/lambda-py-paper
|
746ef63fc1123714b4adaf78119028afbea7bd76
|
[
"Apache-2.0"
] | 1
|
2021-03-26T03:36:19.000Z
|
2021-03-26T03:36:19.000Z
|
___assertIs(bool(10), True)
___assertIs(bool(1), True)
___assertIs(bool(-1), True)
___assertIs(bool(0), False)
___assertIs(bool("hello"), True)
___assertIs(bool(""), False)
___assertIs(bool(), False)
| 25
| 32
| 0.73
| 26
| 200
| 4.807692
| 0.307692
| 0.672
| 0.512
| 0.272
| 0.4
| 0.4
| 0.4
| 0
| 0
| 0
| 0
| 0.026882
| 0.07
| 200
| 7
| 33
| 28.571429
| 0.645161
| 0
| 0
| 0
| 0
| 0
| 0.025
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d769a01cde30afbff26f992fa93ad656aa73e287
| 362
|
py
|
Python
|
test/helpers/path_helper.py
|
Dan2552/SourceKittenSubl
|
9fbb849715867c8b349c4c2f0bd8793b854d9ef4
|
[
"MIT"
] | 163
|
2017-01-06T10:01:07.000Z
|
2017-12-29T14:12:22.000Z
|
test/helpers/path_helper.py
|
Dan2552/SourceKittenSubl
|
9fbb849715867c8b349c4c2f0bd8793b854d9ef4
|
[
"MIT"
] | 18
|
2016-12-20T22:02:41.000Z
|
2018-01-04T12:59:51.000Z
|
test/helpers/path_helper.py
|
Dan2552/SourceKittenSubl
|
9fbb849715867c8b349c4c2f0bd8793b854d9ef4
|
[
"MIT"
] | 5
|
2017-01-20T15:30:30.000Z
|
2017-11-29T07:03:39.000Z
|
import os
def data_directory():
return os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', "data"))
def monkey_example_directory():
return data_directory() + "/MonkeyExample"
def xcode_example_project():
return data_directory() + "/iOSProject/Example.xcodeproj"
def spaced_example_directory():
return data_directory() + "/Spaces"
| 25.857143
| 83
| 0.723757
| 43
| 362
| 5.767442
| 0.465116
| 0.209677
| 0.229839
| 0.209677
| 0.282258
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132597
| 362
| 13
| 84
| 27.846154
| 0.789809
| 0
| 0
| 0
| 0
| 0
| 0.154696
| 0.080111
| 0
| 0
| 0
| 0
| 0
| 1
| 0.444444
| true
| 0
| 0.111111
| 0.444444
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
d78a2aaf736bab8552ed78a341f7f9be7f0a7d52
| 38,530
|
py
|
Python
|
sdk/yapily/api/application_users_api.py
|
yapily/yapily-sdk-python
|
c09930c44e8795e270e2846a2c0fb783200df76a
|
[
"MIT"
] | 11
|
2018-05-18T14:38:49.000Z
|
2021-09-08T13:24:37.000Z
|
sdk/yapily/api/application_users_api.py
|
yapily/yapily-sdk-python
|
c09930c44e8795e270e2846a2c0fb783200df76a
|
[
"MIT"
] | 5
|
2019-10-23T15:06:33.000Z
|
2021-08-03T21:18:50.000Z
|
sdk/yapily/api/application_users_api.py
|
yapily/yapily-sdk-python
|
c09930c44e8795e270e2846a2c0fb783200df76a
|
[
"MIT"
] | 8
|
2019-04-27T00:02:18.000Z
|
2021-11-21T02:54:12.000Z
|
# coding: utf-8
"""
Yapily API
To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501
The version of the OpenAPI document: 1.154.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from yapily.api_client import ApiClient
from yapily.exceptions import ( # noqa: F401
ApiTypeError,
ApiValueError
)
class ApplicationUsersApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def add_user_using_post(self, new_application_user, **kwargs): # noqa: E501
"""Add an application user # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.add_user_using_post(new_application_user, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param NewApplicationUser new_application_user: newApplicationUser (required)
:param str x_yapily_api_version: __Optional__. Determines the API version to use. Valid values are `1.0` or `2.0-ALPHA`. Defaults to `1.0`
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: ApplicationUser
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.add_user_using_post_with_http_info(new_application_user, **kwargs) # noqa: E501
def add_user_using_post_with_http_info(self, new_application_user, **kwargs): # noqa: E501
"""Add an application user # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.add_user_using_post_with_http_info(new_application_user, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param NewApplicationUser new_application_user: newApplicationUser (required)
:param str x_yapily_api_version: __Optional__. Determines the API version to use. Valid values are `1.0` or `2.0-ALPHA`. Defaults to `1.0`
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(ApplicationUser, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = [
'new_application_user',
'x_yapily_api_version'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method add_user_using_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'new_application_user' is set
if self.api_client.client_side_validation and ('new_application_user' not in local_var_params or # noqa: E501
local_var_params['new_application_user'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `new_application_user` when calling `add_user_using_post`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'x_yapily_api_version' in local_var_params:
header_params['x-yapily-api-version'] = local_var_params['x_yapily_api_version'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'new_application_user' in local_var_params:
body_params = local_var_params['new_application_user']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = ['basicAuth', 'tokenAuth'] # noqa: E501
return self.api_client.call_api(
'/users', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ApplicationUser', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_user_using_delete(self, user_uuid, **kwargs): # noqa: E501
"""Delete an application user and sub-resources (including consent resources on institution APIs if they exist) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_user_using_delete(user_uuid, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str user_uuid: __Mandatory__. The Yapily generated UUID for the user. (required)
:param str x_yapily_api_version: __Optional__. Determines the API version to use. Valid values are `1.0` or `2.0-ALPHA`. Defaults to `1.0`
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: ApiResponseOfUserDeleteResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.delete_user_using_delete_with_http_info(user_uuid, **kwargs) # noqa: E501
def delete_user_using_delete_with_http_info(self, user_uuid, **kwargs): # noqa: E501
"""Delete an application user and sub-resources (including consent resources on institution APIs if they exist) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_user_using_delete_with_http_info(user_uuid, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str user_uuid: __Mandatory__. The Yapily generated UUID for the user. (required)
:param str x_yapily_api_version: __Optional__. Determines the API version to use. Valid values are `1.0` or `2.0-ALPHA`. Defaults to `1.0`
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(ApiResponseOfUserDeleteResponse, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = [
'user_uuid',
'x_yapily_api_version'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_user_using_delete" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'user_uuid' is set
if self.api_client.client_side_validation and ('user_uuid' not in local_var_params or # noqa: E501
local_var_params['user_uuid'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `user_uuid` when calling `delete_user_using_delete`") # noqa: E501
collection_formats = {}
path_params = {}
if 'user_uuid' in local_var_params:
path_params['userUuid'] = local_var_params['user_uuid'] # noqa: E501
query_params = []
header_params = {}
if 'x_yapily_api_version' in local_var_params:
header_params['x-yapily-api-version'] = local_var_params['x_yapily_api_version'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = ['basicAuth', 'tokenAuth'] # noqa: E501
return self.api_client.call_api(
'/users/{userUuid}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ApiResponseOfUserDeleteResponse', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def get_delete_users_job_using_get(self, job_id, **kwargs): # noqa: E501
"""Get details of a user deletion job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_delete_users_job_using_get(job_id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str job_id: job-id (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: ApiResponseOfBulkUserDeleteDetails
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.get_delete_users_job_using_get_with_http_info(job_id, **kwargs) # noqa: E501
def get_delete_users_job_using_get_with_http_info(self, job_id, **kwargs): # noqa: E501
"""Get details of a user deletion job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_delete_users_job_using_get_with_http_info(job_id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str job_id: job-id (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(ApiResponseOfBulkUserDeleteDetails, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = [
'job_id'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method get_delete_users_job_using_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'job_id' is set
if self.api_client.client_side_validation and ('job_id' not in local_var_params or # noqa: E501
local_var_params['job_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `job_id` when calling `get_delete_users_job_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'job_id' in local_var_params:
path_params['job-id'] = local_var_params['job_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = ['basicAuth', 'tokenAuth'] # noqa: E501
return self.api_client.call_api(
'/delete-users/{job-id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ApiResponseOfBulkUserDeleteDetails', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def get_delete_users_jobs_using_get(self, **kwargs): # noqa: E501
"""Get details of all user deletion jobs # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_delete_users_jobs_using_get(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: ApiListResponseOfBulkUserDelete
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.get_delete_users_jobs_using_get_with_http_info(**kwargs) # noqa: E501
def get_delete_users_jobs_using_get_with_http_info(self, **kwargs): # noqa: E501
"""Get details of all user deletion jobs # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_delete_users_jobs_using_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(ApiListResponseOfBulkUserDelete, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method get_delete_users_jobs_using_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = ['basicAuth', 'tokenAuth'] # noqa: E501
return self.api_client.call_api(
'/delete-users', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ApiListResponseOfBulkUserDelete', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def get_user_using_get(self, user_uuid, **kwargs): # noqa: E501
"""Get an application user # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_user_using_get(user_uuid, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str user_uuid: __Mandatory__. The Yapily generated UUID for the user. (required)
:param str x_yapily_api_version: __Optional__. Determines the API version to use. Valid values are `1.0` or `2.0-ALPHA`. Defaults to `1.0`
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: ApplicationUser
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.get_user_using_get_with_http_info(user_uuid, **kwargs) # noqa: E501
def get_user_using_get_with_http_info(self, user_uuid, **kwargs): # noqa: E501
"""Get an application user # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_user_using_get_with_http_info(user_uuid, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str user_uuid: __Mandatory__. The Yapily generated UUID for the user. (required)
:param str x_yapily_api_version: __Optional__. Determines the API version to use. Valid values are `1.0` or `2.0-ALPHA`. Defaults to `1.0`
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(ApplicationUser, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = [
'user_uuid',
'x_yapily_api_version'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method get_user_using_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'user_uuid' is set
if self.api_client.client_side_validation and ('user_uuid' not in local_var_params or # noqa: E501
local_var_params['user_uuid'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `user_uuid` when calling `get_user_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'user_uuid' in local_var_params:
path_params['userUuid'] = local_var_params['user_uuid'] # noqa: E501
query_params = []
header_params = {}
if 'x_yapily_api_version' in local_var_params:
header_params['x-yapily-api-version'] = local_var_params['x_yapily_api_version'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = ['basicAuth', 'tokenAuth'] # noqa: E501
return self.api_client.call_api(
'/users/{userUuid}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ApplicationUser', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def get_users_using_get(self, **kwargs): # noqa: E501
"""Get application users # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_users_using_get(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str x_yapily_api_version: __Optional__. Determines the API version to use. Valid values are `1.0` or `2.0-ALPHA`. Defaults to `1.0`
:param list[str] filter_application_user_id: __Optional__. Filter records based on the list of `applicationUserId` users provided.
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: list[ApplicationUser]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.get_users_using_get_with_http_info(**kwargs) # noqa: E501
def get_users_using_get_with_http_info(self, **kwargs): # noqa: E501
"""Get application users # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_users_using_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str x_yapily_api_version: __Optional__. Determines the API version to use. Valid values are `1.0` or `2.0-ALPHA`. Defaults to `1.0`
:param list[str] filter_application_user_id: __Optional__. Filter records based on the list of `applicationUserId` users provided.
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(list[ApplicationUser], status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = [
'x_yapily_api_version',
'filter_application_user_id'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method get_users_using_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
if 'filter_application_user_id' in local_var_params and local_var_params['filter_application_user_id'] is not None: # noqa: E501
query_params.append(('filter[applicationUserId]', local_var_params['filter_application_user_id'])) # noqa: E501
collection_formats['filter[applicationUserId]'] = 'multi' # noqa: E501
header_params = {}
if 'x_yapily_api_version' in local_var_params:
header_params['x-yapily-api-version'] = local_var_params['x_yapily_api_version'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = ['basicAuth', 'tokenAuth'] # noqa: E501
return self.api_client.call_api(
'/users', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[ApplicationUser]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def start_delete_users_job_using_post(self, user_delete_request, **kwargs): # noqa: E501
"""Start a job to delete application users by specifying their identifiers # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.start_delete_users_job_using_post(user_delete_request, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param UserDeleteRequest user_delete_request: userDeleteRequest (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: ApiResponseOfBulkUserDeleteDetails
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.start_delete_users_job_using_post_with_http_info(user_delete_request, **kwargs) # noqa: E501
def start_delete_users_job_using_post_with_http_info(self, user_delete_request, **kwargs): # noqa: E501
"""Start a job to delete application users by specifying their identifiers # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.start_delete_users_job_using_post_with_http_info(user_delete_request, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param UserDeleteRequest user_delete_request: userDeleteRequest (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(ApiResponseOfBulkUserDeleteDetails, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = [
'user_delete_request'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method start_delete_users_job_using_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'user_delete_request' is set
if self.api_client.client_side_validation and ('user_delete_request' not in local_var_params or # noqa: E501
local_var_params['user_delete_request'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `user_delete_request` when calling `start_delete_users_job_using_post`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'user_delete_request' in local_var_params:
body_params = local_var_params['user_delete_request']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = ['basicAuth', 'tokenAuth'] # noqa: E501
return self.api_client.call_api(
'/delete-users', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ApiResponseOfBulkUserDeleteDetails', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
| 45.97852
| 158
| 0.606073
| 4,349
| 38,530
| 5.077949
| 0.051966
| 0.036588
| 0.055153
| 0.028527
| 0.945617
| 0.939685
| 0.928274
| 0.917995
| 0.917995
| 0.901512
| 0
| 0.013932
| 0.321931
| 38,530
| 837
| 159
| 46.033453
| 0.831356
| 0.464677
| 0
| 0.721805
| 0
| 0
| 0.199356
| 0.072761
| 0
| 0
| 0
| 0
| 0
| 1
| 0.037594
| false
| 0
| 0.012531
| 0
| 0.087719
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ad259d69ebfa51432a6b8be0d1f73acb8f8ddbb1
| 67
|
py
|
Python
|
arc/arc046/arc046a-1.py
|
c-yan/atcoder
|
940e49d576e6a2d734288fadaf368e486480a948
|
[
"MIT"
] | 1
|
2019-08-21T00:49:34.000Z
|
2019-08-21T00:49:34.000Z
|
arc/arc046/arc046a-1.py
|
c-yan/atcoder
|
940e49d576e6a2d734288fadaf368e486480a948
|
[
"MIT"
] | null | null | null |
arc/arc046/arc046a-1.py
|
c-yan/atcoder
|
940e49d576e6a2d734288fadaf368e486480a948
|
[
"MIT"
] | null | null | null |
N = int(input())
print(str((N - 1) % 9 + 1) * ((N - 1) // 9 + 1))
| 16.75
| 48
| 0.373134
| 13
| 67
| 1.923077
| 0.538462
| 0.16
| 0.24
| 0.32
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 0.283582
| 67
| 3
| 49
| 22.333333
| 0.395833
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 1
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
ad5818b6800348a64c28323ada5d53a8512932e5
| 6,504
|
py
|
Python
|
tests/_amt_imports_solver_test.py
|
xgouchet/AutoMergeTool
|
d63c057440a99e868e5eb25720f8d89640112f04
|
[
"Apache-2.0"
] | 41
|
2017-04-10T10:12:32.000Z
|
2022-02-11T09:34:43.000Z
|
tests/_amt_imports_solver_test.py
|
xgouchet/AutoMergeTool
|
d63c057440a99e868e5eb25720f8d89640112f04
|
[
"Apache-2.0"
] | 14
|
2017-02-17T09:58:57.000Z
|
2018-02-12T14:38:51.000Z
|
tests/_amt_imports_solver_test.py
|
xgouchet/ArachneMergeTool
|
d63c057440a99e868e5eb25720f8d89640112f04
|
[
"Apache-2.0"
] | 5
|
2017-04-11T13:03:20.000Z
|
2021-06-23T08:41:10.000Z
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
from filecmp import cmp
from shutil import copyfile
from automergetool.amt_import_solver import *
IS_PATH = 'tests/data/import_solver/{0}.txt'
class ImportsSolverTest(unittest.TestCase):
def test_no_import_statement(self):
class NotAnImportsSolver(ImportsSolver):
def is_import_line(self, line: str) -> bool:
return False
def is_allowed_within_import_section(self, line: str) -> bool:
return False
def get_import_group(self, imp: str) -> int:
return 0
# Given files
base = IS_PATH.format("base")
local = IS_PATH.format("local")
remote = IS_PATH.format("remote")
merged = IS_PATH.format("merged")
merged_src = IS_PATH.format("merged_src")
copyfile(merged_src, merged) # reset merged file
# When
solver = NotAnImportsSolver()
# Then
result = solver.solve_import_conflicts(base, local, remote, merged)
self.assertFalse(result)
self.assertTrue(cmp(merged_src, merged, shallow=False)) # merged is untouched
def test_no_import_conflicts(self):
class DependsImportsSolver(ImportsSolver):
def is_import_line(self, line: str) -> bool:
return line.startswith("depends ")
def is_allowed_within_import_section(self, line: str) -> bool:
return line.startswith("# ") or line.isspace()
def get_import_group(self, imp: str) -> int:
return 0
# Given files
base = IS_PATH.format("base")
local = IS_PATH.format("local")
remote = IS_PATH.format("remote")
merged = IS_PATH.format("merged")
merged_src = IS_PATH.format("merged_src")
copyfile(merged_src, merged) # reset merged file
# When
solver = DependsImportsSolver()
# Then
result = solver.solve_import_conflicts(base, local, remote, merged)
self.assertFalse(result)
self.assertTrue(cmp(merged_src, merged, shallow=False)) # merged is untouched
def test_mixed_import_conflicts(self):
class DependsImportsSolver(ImportsSolver):
def is_import_line(self, line: str) -> bool:
return line.startswith("with ")
def is_allowed_within_import_section(self, line: str) -> bool:
return line.startswith("# ") or line.isspace()
def get_import_group(self, imp: str) -> int:
return 0
# Given files
base = IS_PATH.format("base")
local = IS_PATH.format("local")
remote = IS_PATH.format("remote")
merged = IS_PATH.format("merged")
merged_src = IS_PATH.format("merged_src")
copyfile(merged_src, merged) # reset merged file
# When
solver = DependsImportsSolver()
# Then
result = solver.solve_import_conflicts(base, local, remote, merged)
self.assertFalse(result)
self.assertTrue(cmp(merged_src, merged, shallow=False)) # merged is untouched
def test_conflict_addition_blank_section(self):
class IncludeImportsSolver(ImportsSolver):
def is_import_line(self, line: str) -> bool:
return line.startswith("include ")
def is_allowed_within_import_section(self, line: str) -> bool:
return line.startswith("# ") or line.isspace()
def get_import_group(self, imp: str) -> int:
return 0
# Given files
base = IS_PATH.format("base")
local = IS_PATH.format("local")
remote = IS_PATH.format("remote")
merged = IS_PATH.format("merged")
merged_src = IS_PATH.format("merged_src")
copyfile(merged_src, merged) # reset merged file
# When
solver = IncludeImportsSolver()
# Then
result = solver.solve_import_conflicts(base, local, remote, merged)
self.assertFalse(result)
self.assertTrue(cmp(IS_PATH.format("merged_solved_includes"), merged,
shallow=False)) # merged is untouched
def test_conflict_complex_mixed_section(self):
class ImportImportsSolver(ImportsSolver):
def is_import_line(self, line: str) -> bool:
return line.startswith("import ")
def is_allowed_within_import_section(self, line: str) -> bool:
return line.startswith("# ") or line.isspace()
def get_import_group(self, imp: str) -> int:
return 0
# Given files
base = IS_PATH.format("base")
local = IS_PATH.format("local")
remote = IS_PATH.format("remote")
merged = IS_PATH.format("merged")
merged_src = IS_PATH.format("merged_src")
copyfile(merged_src, merged) # reset merged file
# When
solver = ImportImportsSolver()
# Then
result = solver.solve_import_conflicts(base, local, remote, merged)
self.assertFalse(result)
self.assertTrue(cmp(IS_PATH.format("merged_solved_imports"), merged,
shallow=False)) # merged is untouched
def test_conflict_complex_mixed_section_grouped(self):
class ImportImportsSolver(ImportsSolver):
def is_import_line(self, line: str) -> bool:
return line.startswith("import ")
def is_allowed_within_import_section(self, line: str) -> bool:
return line.startswith("# ") or line.isspace()
def get_import_group(self, imp: str) -> int:
if len(imp) == 0:
return 0
else:
tokens = imp.split()
return ord(tokens[1][0])
# Given files
base = IS_PATH.format("base")
local = IS_PATH.format("local")
remote = IS_PATH.format("remote")
merged = IS_PATH.format("merged")
merged_src = IS_PATH.format("merged_src")
copyfile(merged_src, merged) # reset merged file
# When
solver = ImportImportsSolver()
# Then
result = solver.solve_import_conflicts(base, local, remote, merged)
self.assertFalse(result)
self.assertTrue(
cmp(IS_PATH.format("merged_solved_imports_grouped"), merged,
shallow=False)) # merged is untouched
if __name__ == '__main__':
unittest.main()
| 34.780749
| 86
| 0.604551
| 724
| 6,504
| 5.216851
| 0.125691
| 0.054011
| 0.104845
| 0.071485
| 0.881387
| 0.881387
| 0.872121
| 0.869473
| 0.869473
| 0.867355
| 0
| 0.002617
| 0.294895
| 6,504
| 186
| 87
| 34.967742
| 0.820977
| 0.061962
| 0
| 0.766129
| 0
| 0
| 0.056517
| 0.017136
| 0
| 0
| 0
| 0
| 0.096774
| 1
| 0.193548
| false
| 0
| 0.395161
| 0.137097
| 0.798387
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 10
|
ad9039951dde4350b0d1d3bb590ce799b1a3faac
| 100
|
py
|
Python
|
tests/test_smoke.py
|
Kludex/lost-endpoint
|
83c43ad2bcc3f02bffc77ef66d9531307cd6f6da
|
[
"MIT"
] | null | null | null |
tests/test_smoke.py
|
Kludex/lost-endpoint
|
83c43ad2bcc3f02bffc77ef66d9531307cd6f6da
|
[
"MIT"
] | 2
|
2022-02-01T19:03:37.000Z
|
2022-02-01T19:03:39.000Z
|
tests/test_smoke.py
|
Kludex/lost-endpoint
|
83c43ad2bcc3f02bffc77ef66d9531307cd6f6da
|
[
"MIT"
] | null | null | null |
import inspect
import lost_endpoint
def test_smoke():
assert inspect.ismodule(lost_endpoint)
| 12.5
| 42
| 0.79
| 13
| 100
| 5.846154
| 0.692308
| 0.315789
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 100
| 7
| 43
| 14.285714
| 0.894118
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.25
| true
| 0
| 0.5
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
0f04136eb5d8f2c8edd52bb6d77baea1a1e0efdf
| 49,617
|
py
|
Python
|
cycle_2020/models.py
|
capitolmuckrakr/cnn-fec
|
92352209bb611b6ee82aacdeefd89d529ad91a2e
|
[
"Apache-2.0"
] | null | null | null |
cycle_2020/models.py
|
capitolmuckrakr/cnn-fec
|
92352209bb611b6ee82aacdeefd89d529ad91a2e
|
[
"Apache-2.0"
] | 2
|
2021-03-31T19:16:51.000Z
|
2021-12-13T19:59:48.000Z
|
cycle_2020/models.py
|
capitolmuckrakr/cnn-fec
|
92352209bb611b6ee82aacdeefd89d529ad91a2e
|
[
"Apache-2.0"
] | 1
|
2019-06-12T15:43:04.000Z
|
2019-06-12T15:43:04.000Z
|
from django.db import models
from django.utils import timezone
from django.contrib.postgres.search import SearchVectorField, SearchQuery, SearchVector
from django.contrib.postgres.indexes import GinIndex
from django.db.models import Sum
from django.urls import reverse
import datetime
class BaseModel(models.Model):
active = models.BooleanField(default=True)
created = models.DateTimeField(default=timezone.now)
updated = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
def __unicode__(self):
return self.__str__()
STATUS_CHOICES = (('ACTIVE', 'active'),
('SUPERSEDED', 'superseded by amendment'),
('COVERED', 'covered by periodic'),
('MEMO', 'memo'),
('PROCESSING','processing'),
('FAILED','failed'),
('WRONG_CYCLE','wrong cycle'))
#declare a text search dictionary to use instead of the default dictionary
tsconfig='pg_catalog.english'
class FilingStatus(models.Model):
created = models.DateTimeField(default=timezone.now)
updated = models.DateTimeField(auto_now=True)
filing_id = models.IntegerField(primary_key=True)
status = models.CharField(max_length=20, blank=True, null=True)
#status options should be 'SUCCESS','FAILED','REFUSED'
#where 'REFUSED' means we decided not to upload the filing
#eg because it's old or a kind of filing we're not loading
#or actblue
@property
def csv_url(self):
return 'http://docquery.fec.gov/csv/{}/{}.csv'.format(self.filing_id % 1000,self.filing_id)
def get_absolute_url(self):
return reverse('filingstatus_detail', args=[str(self.filing_id)])
class Committee(BaseModel):
fec_id = models.CharField(max_length=10, primary_key=True)
committee_name = models.CharField(max_length=255, blank=True, null=True)
street_1 = models.CharField(max_length=255, blank=True, null=True)
street_2 = models.CharField(max_length=255, blank=True, null=True)
city = models.CharField(max_length=255, blank=True, null=True)
state = models.CharField(max_length=20, blank=True, null=True)
zipcode = models.CharField(max_length=10, blank=True, null=True)
treasurer_last_name = models.CharField(max_length=255, blank=True, null=True)
treasurer_first_name = models.CharField(max_length=255, blank=True, null=True)
treasurer_middle_name = models.CharField(max_length=255, blank=True, null=True)
treasurer_prefix = models.CharField(max_length=255, blank=True, null=True)
treasurer_suffix = models.CharField(max_length=255, blank=True, null=True)
committee_type = models.CharField(max_length=1, blank=True, null=True)
committee_designation = models.CharField(max_length=1, blank=True, null=True)
name_search = SearchVectorField(null=True)
def __str__(self):
return self.committee_name if self.committee_name else self.fec_id
def get_absolute_url(self):
return '/2020/committee/%s' % self.fec_id
class Meta:
indexes = [
models.Index(fields=['fec_id']),
models.Index(fields=['committee_name']),
GinIndex(fields=['name_search']),
]
def find_committee_by_name(search_term):
#does full text search on committee name and returns matching committees
query = SearchQuery(search_term, config=tsconfig)
return Committee.objects.filter(name_search=query)
class Filing(BaseModel):
status = models.CharField(max_length=50, choices=STATUS_CHOICES, default='PROCESSING')
filing_id = models.IntegerField(primary_key=True)
form_type = models.CharField(max_length=20, null=True, blank=True, help_text='the full form type from the filing')
form = models.CharField(max_length=20, null=True, blank=True, help_text='the base form type (excluding amendment indications)')
filer_id = models.CharField(max_length=10, null=True, blank=True, help_text='FEC id of the filer')
committee_name = models.CharField(max_length=255, null=True, blank=True)
election_state = models.CharField(max_length=10, null=True, blank=True)
election_district = models.CharField(max_length=10, null=True, blank=True)
coverage_from_date = models.CharField(max_length=10, null=True, blank=True)
coverage_through_date = models.CharField(max_length=10, null=True, blank=True)
election_date = models.CharField(max_length=10, null=True, blank=True)
date_signed = models.CharField(max_length=10, null=True, blank=True)
amends_filing = models.IntegerField(null=True, help_text='the filing id of the filing this filing amends')
cash_on_hand_close_of_period = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cash_on_hand_beginning_period = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
debts_by_summary = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True,help_text="Current debt owed by the committee")
period_candidate_contributions=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_candidate_loan_repayments=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_candidate_loans=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_contributions_to_candidates=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_coordinated_expenditures_by_party_committees=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_exempt_legal_accounting_disbursement=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_federal_election_activity_all_federal=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_federal_election_activity_federal_share=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_federal_election_activity_levin_share=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_federal_election_activity_total=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_fundraising=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_fundraising_disbursements=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_independent_expenditures=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_individual_contribution_total=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_individuals_itemized=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_individuals_unitemized=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_items_on_hand_to_be_liquidated=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_legal_and_accounting=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_levin_funds=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_loans_made=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_made_or_guaranteed_by_candidate=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_net_contributions=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_net_operating_expenditures=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_offsets_to_expenditures=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_operating=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_operating_expenditures=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_other_disbursements=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_other_federal_operating_expenditures=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_other_federal_receipts=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_other_loan_repayments=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_other_loans=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_other_political_committees=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_other_political_committees_pacs=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_other_receipts=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_other_repayments=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_pac_contributions=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_political_party_committees_refunds=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_political_party_contributions=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_received_from_or_guaranteed_by_cand=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_refunds_to_individuals=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_refunds_to_other_committees=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_refunds_to_party_committees=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_shared_operating_expenditures_federal=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_shared_operating_expenditures_nonfederal=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_contributions_from_candidate=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_contributions=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_contributions_refunds=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_disbursements=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_disbursements_period=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_federal_disbursements=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_federal_operating_expenditures=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_federal_receipts=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_individual_contributions=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_loan_repayments_made=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_loan_repayments_received=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_loans=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_nonfederal_transfers=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_offset_to_operating_expenditures=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_operating_expenditures=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_receipts=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_total_refunds=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_transfers_from_aff_other_party_cmttees=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_transfers_from_authorized=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_transfers_from_nonfederal_h3=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_transfers_to_affiliated=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
period_transfers_to_other_authorized_committees=models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_candidate_contributions = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_candidate_loan_repayments = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_candidate_loans = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_contributions_to_candidates = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_coordinated_expenditures_by_party_committees = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_exempt_legal_accounting_disbursement = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_federal_election_activity_all_federal = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_federal_election_activity_federal_share = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_federal_election_activity_levin_share = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_federal_election_activity_total = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_fundraising = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_fundraising_disbursements = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_independent_expenditures = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_individual_contribution_total = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_individuals_itemized = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_individuals_unitemized = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_items_on_hand_to_be_liquidated = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_legal_and_accounting = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_levin_funds = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_loans_made = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_made_or_guaranteed_by_candidate = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_net_contributions = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_net_operating_expenditures = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_offsets_to_expenditures = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_operating = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_operating_expenditures = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_other_disbursements = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_other_federal_operating_expenditures = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_other_federal_receipts = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_other_loan_repayments = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_other_loans = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_other_political_committees = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_other_political_committees_pacs = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_other_receipts = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_other_repayments = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_pac_contributions = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_political_party_committees_refunds = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_political_party_contributions = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_received_from_or_guaranteed_by_cand = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_refunds_to_individuals = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_refunds_to_other_committees = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_refunds_to_party_committees = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_shared_operating_expenditures_federal = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_shared_operating_expenditures_nonfederal = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_contributions_from_candidate = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_contributions = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_contributions_refunds = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_disbursements = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_disbursements_period = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_federal_disbursements = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_federal_operating_expenditures = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_federal_receipts = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_individual_contributions = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_loan_repayments_made = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_loan_repayments_received = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_loans = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_nonfederal_transfers = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_offset_to_operating_expenditures = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_operating_expenditures = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_receipts = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_total_refunds = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_transfers_from_aff_other_party_cmttees = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_transfers_from_authorized = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_transfers_from_nonfederal_h3 = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_transfers_to_affiliated = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
cycle_transfers_to_other_authorized_committees = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
computed_ie_total_for_f24 = models.DecimalField(max_digits=12,decimal_places=2,null=True,blank=True,help_text="computed total IEs for F24s for alerting so we know if they're big enough to care about")
@property
def url(self):
return "http://docquery.fec.gov/cgi-bin/forms/{}/{}/".format(self.filer_id, self.filing_id)
@property
def is_amendment(self):
if self.amends_filing:
return True
return False
@property
def period_percent_unitemized(self):
unitemized = self.period_individuals_unitemized or 0
total_contribs = self.period_total_contributions or 0
if total_contribs > 0:
return (unitemized/total_contribs)*100
else:
return 0
@property
def period_candidate_donations_plus_loans(self):
contribs = self.period_candidate_contributions or 0
loans = self.period_candidate_loans or 0
return contribs+loans
@property
def period_federal_transfers(self):
aff_trans = self.period_transfers_from_aff_other_party_cmttees or 0
auth_trans = self.period_transfers_from_authorized or 0
return aff_trans+auth_trans
@property
def period_disbursements_div_receipts(self):
receipts = self.period_total_receipts or 0
disbursements = self.period_total_disbursements or 0
if receipts > 0:
return (disbursements/receipts)*100
else:
return 0
@property
def cycle_percent_unitemized(self):
unitemized = self.cycle_individuals_unitemized or 0
total_contribs = self.cycle_total_contributions or 0
if total_contribs > 0:
return (unitemized/total_contribs)*100
else:
return 0
@property
def cycle_candidate_donations_plus_loans(self):
contribs = self.cycle_candidate_contributions or 0
loans = self.cycle_candidate_loans or 0
return contribs+loans
@property
def cycle_federal_transfers(self):
aff_trans = self.cycle_transfers_from_aff_other_party_cmttees or 0
auth_trans = self.cycle_transfers_from_authorized or 0
return aff_trans+auth_trans
@property
def cycle_disbursements_div_receipts(self):
receipts = self.cycle_total_receipts or 0
disbursements = self.cycle_total_disbursements or 0
if receipts > 0:
return (disbursements/receipts)*100
else:
return 0
def export_fields():
return ['status',
'form_type',
'filer_id',
'committee_name',
'filing_id',
'amends_filing',
'election_state',
'election_district',
'coverage_from_date',
'coverage_through_date',
'election_date',
'cash_on_hand_close_of_period',
'debts_by_summary',
'period_total_receipts',
'period_total_disbursements',
'period_candidate_donations_plus_loans',
'period_federal_transfers',
'period_individual_contribution_total',
'period_individuals_itemized',
'period_individuals_unitemized',
'period_percent_unitemized',
'period_disbursements_div_receipts',
'period_independent_expenditures',
'cycle_total_receipts',
'cycle_total_disbursements',
'cycle_candidate_donations_plus_loans',
'cycle_federal_transfers',
'cycle_individual_contribution_total',
'cycle_individuals_itemized',
'cycle_individuals_unitemized',
'cycle_percent_unitemized',
'cycle_disbursements_div_receipts',
'cycle_independent_expenditures',
'date_signed',
]
def csv_row(self):
row = []
for f in Filing.export_fields():
value = getattr(self, f)
if value is None:
row.append("")
else:
row.append(value)
return(row)
def __str__(self):
if self.committee_name:
return "{} filing {}".format(self.committee_name, self.filing_id)
else:
return str(self.filing_id)
def get_absolute_url(self):
return reverse('filing_detail', args=[str(self.filing_id)])
class Meta:
indexes = [
models.Index(fields=['filer_id']),
models.Index(fields=['filing_id']),
models.Index(fields=['committee_name']),
]
class Transaction(BaseModel):
status = models.CharField(max_length=50, choices=STATUS_CHOICES, default='ACTIVE')
form_type = models.CharField(max_length=255, null=True, blank=True)
filer_committee_id_number = models.CharField(max_length=255, null=True, blank=True)
filing_id = models.IntegerField(null=True, blank=True)
transaction_id = models.CharField(max_length=255, null=True, blank=True)
back_reference_tran_id_number = models.CharField(max_length=255, null=True, blank=True)
back_reference_sched_name = models.CharField(max_length=255, null=True, blank=True)
entity_type = models.CharField(max_length=255, null=True, blank=True)
filer_id = models.CharField(max_length=9, null=True, blank=True)
@property
def filing(self):
try:
return Filing.objects.get(filing_id=self.filing_id)
except:
return None
@property
def committee(self):
try:
return Committee.objects.get(fec_id=self.filer_committee_id_number)
except:
return None
@property
def committee_name(self):
try:
return self.committee.committee_name
except:
return None
class Meta:
abstract = True
indexes = [
models.Index(fields=['filing_id']),
models.Index(fields=['filer_committee_id_number']),
]
class ScheduleA(Transaction):
contributor_organization_name = models.CharField(max_length=255, null=True, blank=True)
contributor_last_name = models.CharField(max_length=255, null=True, blank=True)
contributor_first_name = models.CharField(max_length=255, null=True, blank=True)
contributor_middle_name = models.CharField(max_length=255, null=True, blank=True)
contributor_prefix = models.CharField(max_length=255, null=True, blank=True)
contributor_suffix = models.CharField(max_length=255, null=True, blank=True)
contributor_street_1 = models.CharField(max_length=255, null=True, blank=True)
contributor_street_2 = models.CharField(max_length=255, null=True, blank=True)
contributor_city = models.CharField(max_length=255, null=True, blank=True)
contributor_state = models.CharField(max_length=30, null=True, blank=True)
contributor_zip = models.CharField(max_length=10, null=True, blank=True)
election_code = models.CharField(max_length=255, null=True, blank=True)
election_other_description = models.CharField(max_length=255, null=True, blank=True)
contribution_date = models.CharField(max_length=255, null=True, blank=True)
contribution_amount = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
contribution_aggregate = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
contribution_purpose_descrip = models.CharField(max_length=255, null=True, blank=True)
contributor_employer = models.CharField(max_length=255, null=True, blank=True)
contributor_occupation = models.CharField(max_length=255, null=True, blank=True)
donor_committee_fec_id = models.CharField(max_length=255, null=True, blank=True)
donor_committee_name = models.CharField(max_length=255, null=True, blank=True)
donor_candidate_fec_id = models.CharField(max_length=255, null=True, blank=True)
donor_candidate_last_name = models.CharField(max_length=255, null=True, blank=True)
donor_candidate_first_name = models.CharField(max_length=255, null=True, blank=True)
donor_candidate_middle_name = models.CharField(max_length=255, null=True, blank=True)
donor_candidate_prefix = models.CharField(max_length=255, null=True, blank=True)
donor_candidate_suffix = models.CharField(max_length=255, null=True, blank=True)
donor_candidate_office = models.CharField(max_length=255, null=True, blank=True)
donor_candidate_state = models.CharField(max_length=255, null=True, blank=True)
donor_candidate_district = models.CharField(max_length=255, null=True, blank=True)
conduit_name = models.CharField(max_length=255, null=True, blank=True)
conduit_street1 = models.CharField(max_length=255, null=True, blank=True)
conduit_street2 = models.CharField(max_length=255, null=True, blank=True)
conduit_city = models.CharField(max_length=255, null=True, blank=True)
conduit_state = models.CharField(max_length=255, null=True, blank=True)
conduit_zip = models.CharField(max_length=255, null=True, blank=True)
memo_code = models.CharField(max_length=255, null=True, blank=True)
memo_text_description = models.CharField(max_length=255, null=True, blank=True)
reference_code = models.CharField(max_length=255, null=True, blank=True)
name_search = SearchVectorField(null=True)
occupation_search = SearchVectorField(null=True)
address_search = SearchVectorField(null=True)
old_donor_id = models.CharField(max_length=255, null=True, blank=True, help_text="terrible hack for editing donor totals, do not manually edit!")
donor = models.ForeignKey('donor.Donor', null=True, blank=True, related_name='contributions_2020', on_delete=models.SET_NULL)
"""
these search fields require triggers. Please see migration 0015 which I hand-edited
to insert these triggers. this might make inserts hopelessly slow, we shall see.
"""
@property
def contributor_name(self):
#oy. there are so many ways they can do this wrong.
if self.contributor_organization_name:
return self.contributor_organization_name
names = [n for n in [self.contributor_first_name, self.contributor_middle_name, self.contributor_last_name] if n]
if len(names) == 0:
return None
return " ".join(names)
@property
def contribution_date_formatted(self):
try:
return datetime.datetime.strptime(self.contribution_date, '%Y%m%d')
except:
return
@property
def address(self):
try:
address_parts = [self.contributor_street_1, self.contributor_street_2, self.contributor_city+", "+self.contributor_state, self.contributor_zip[0:5]]
return ' '.join([a for a in address_parts if a])
except:
return
def export_fields():
return ['status',
'form_type',
'filer_committee_id_number',
'committee_name',
'filing_id',
'transaction_id',
'back_reference_tran_id_number',
'back_reference_sched_name',
'entity_type',
'filer_id',
'contributor_organization_name',
'contributor_last_name',
'contributor_first_name',
'contributor_middle_name',
'contributor_prefix',
'contributor_suffix',
'contributor_street_1',
'contributor_street_2',
'contributor_city',
'contributor_state',
'contributor_zip',
'election_code',
'election_other_description',
'contribution_date',
'contribution_amount',
'contribution_aggregate',
'contribution_purpose_descrip',
'contributor_employer',
'contributor_occupation',
'memo_code',
'memo_text_description']
def csv_row(self):
row = []
for f in ScheduleA.export_fields():
value = getattr(self, f)
if value is None:
row.append("")
else:
row.append(value)
return(row)
def get_absolute_url(self):
return reverse('schedulea_detail', args=[str(self.filing_id)])
class Meta(Transaction.Meta):
indexes = Transaction.Meta.indexes[:] #this is a deep copy to prevent the base model's fields from being overwritten
indexes.extend(
[GinIndex(fields=['name_search']),
models.Index(fields=['contribution_amount']),
GinIndex(fields=['occupation_search']),
GinIndex(fields=['address_search'])])
def save(self, *args, **kwargs):
#all of this is to update totals on donors
old_donor = None
if self.old_donor_id and int(self.old_donor_id) != self.donor_id:
try:
old_donor = Donor.objects.get(id=self.old_donor_id)
except:
#maybe we deleted the donor? we should not fail to save because of this
pass
if self.donor_id:
self.old_donor_id = str(self.donor_id)
else:
self.old_donor_id = None
super().save(*args, **kwargs)
if old_donor:
old_donor.save()
if self.donor:
self.donor.save()
class ScheduleB(Transaction):
payee_organization_name = models.CharField(max_length=255, null=True, blank=True)
payee_last_name = models.CharField(max_length=255, null=True, blank=True)
payee_first_name = models.CharField(max_length=255, null=True, blank=True)
payee_middle_name = models.CharField(max_length=255, null=True, blank=True)
payee_prefix = models.CharField(max_length=255, null=True, blank=True)
payee_suffix = models.CharField(max_length=255, null=True, blank=True)
payee_street_1 = models.CharField(max_length=255, null=True, blank=True)
payee_street_2 = models.CharField(max_length=255, null=True, blank=True)
payee_city = models.CharField(max_length=255, null=True, blank=True)
payee_state = models.CharField(max_length=30, null=True, blank=True)
payee_zip = models.CharField(max_length=10, null=True, blank=True)
election_code = models.CharField(max_length=255, null=True, blank=True)
election_other_description = models.CharField(max_length=255, null=True, blank=True)
expenditure_date = models.CharField(max_length=255, null=True, blank=True)
expenditure_amount = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
semi_annual_refunded_bundled_amt = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
expenditure_purpose_descrip = models.CharField(max_length=255, null=True, blank=True)
category_code = models.CharField(max_length=255, null=True, blank=True)
beneficiary_committee_fec_id = models.CharField(max_length=255, null=True, blank=True)
beneficiary_committee_name = models.CharField(max_length=255, null=True, blank=True)
beneficiary_candidate_fec_id = models.CharField(max_length=255, null=True, blank=True)
beneficiary_candidate_last_name = models.CharField(max_length=255, null=True, blank=True)
beneficiary_candidate_first_name = models.CharField(max_length=255, null=True, blank=True)
beneficiary_candidate_middle_name = models.CharField(max_length=255, null=True, blank=True)
beneficiary_candidate_prefix = models.CharField(max_length=255, null=True, blank=True)
beneficiary_candidate_suffix = models.CharField(max_length=255, null=True, blank=True)
beneficiary_candidate_office = models.CharField(max_length=255, null=True, blank=True)
beneficiary_candidate_state = models.CharField(max_length=255, null=True, blank=True)
beneficiary_candidate_district = models.CharField(max_length=255, null=True, blank=True)
conduit_name = models.CharField(max_length=255, null=True, blank=True)
conduit_street_1 = models.CharField(max_length=255, null=True, blank=True)
conduit_street_2 = models.CharField(max_length=255, null=True, blank=True)
conduit_city = models.CharField(max_length=255, null=True, blank=True)
conduit_state = models.CharField(max_length=255, null=True, blank=True)
conduit_zip = models.CharField(max_length=255, null=True, blank=True)
memo_code = models.CharField(max_length=255, null=True, blank=True)
memo_text_description = models.CharField(max_length=255, null=True, blank=True)
reference_to_si_or_sl_system_code_that_identifies_the_account = models.CharField(max_length=255, null=True, blank=True)
name_search = SearchVectorField(null=True)
purpose_search = SearchVectorField(null=True)
address_search = SearchVectorField(null=True)
@property
def payee_name(self):
if self.payee_organization_name:
return self.payee_organization_name
if self.payee_middle_name:
return ' '.join([self.payee_first_name, self.payee_middle_name, self.payee_last_name])
return ' '.join([self.payee_first_name, self.payee_last_name])
@property
def expenditure_date_formatted(self):
try:
return datetime.datetime.strptime(self.expenditure_date, '%Y%m%d')
except:
return
@property
def address(self):
try:
address_parts = [self.payee_street_1, self.payee_street_2, self.payee_city+", "+self.payee_state, self.payee_zip[0:5]]
return ' '.join([a for a in address_parts if a])
except:
return
def export_fields():
return ['status',
'form_type',
'filer_committee_id_number',
'committee_name',
'filing_id',
'transaction_id',
'back_reference_tran_id_number',
'back_reference_sched_name',
'entity_type',
'filer_id',
'payee_organization_name',
'payee_last_name',
'payee_first_name',
'payee_middle_name',
'payee_prefix',
'payee_suffix',
'payee_street_1',
'payee_street_2',
'payee_city',
'payee_state',
'payee_zip',
'election_code',
'election_other_description',
'expenditure_date',
'expenditure_amount',
'semi_annual_refunded_bundled_amt',
'expenditure_purpose_descrip',
'category_code',
'memo_code',
'memo_text_description'
]
def csv_row(self):
row = []
for f in ScheduleB.export_fields():
value = getattr(self, f)
if value is None:
row.append("")
else:
row.append(value)
return(row)
def get_absolute_url(self):
return reverse('scheduleb_detail', args=[str(self.filing_id)])
class Meta(Transaction.Meta):
indexes = Transaction.Meta.indexes[:] #this is a deep copy to prevent the base model's fields from being overwritten
indexes.extend([GinIndex(fields=['name_search']),
GinIndex(fields=['purpose_search']),
GinIndex(fields=['address_search'])])
class ScheduleE(Transaction):
payee_organization_name = models.CharField(max_length=255, null=True, blank=True)
payee_last_name = models.CharField(max_length=255, null=True, blank=True)
payee_first_name = models.CharField(max_length=255, null=True, blank=True)
payee_middle_name = models.CharField(max_length=255, null=True, blank=True)
payee_prefix = models.CharField(max_length=255, null=True, blank=True)
payee_suffix = models.CharField(max_length=255, null=True, blank=True)
payee_street_1 = models.CharField(max_length=255, null=True, blank=True)
payee_street_2 = models.CharField(max_length=255, null=True, blank=True)
payee_city = models.CharField(max_length=255, null=True, blank=True)
payee_state = models.CharField(max_length=30, null=True, blank=True)
payee_zip = models.CharField(max_length=10, null=True, blank=True)
election_code = models.CharField(max_length=255, null=True, blank=True)
election_other_description = models.CharField(max_length=255, null=True, blank=True)
dissemination_date = models.CharField(max_length=255, null=True, blank=True)
expenditure_amount = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
expenditure_date = models.CharField(max_length=255, null=True, blank=True)
calendar_y_t_d_per_election_office = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
expenditure_purpose_descrip = models.CharField(max_length=255, null=True, blank=True)
category_code = models.CharField(max_length=255, null=True, blank=True)
payee_cmtte_fec_id_number = models.CharField(max_length=255, null=True, blank=True)
support_oppose_code = models.CharField(max_length=255, null=True, blank=True)
candidate_id_number = models.CharField(max_length=255, null=True, blank=True)
candidate_last_name = models.CharField(max_length=255, null=True, blank=True)
candidate_first_name = models.CharField(max_length=255, null=True, blank=True)
candidate_middle_name = models.CharField(max_length=255, null=True, blank=True)
candidate_prefix = models.CharField(max_length=255, null=True, blank=True)
candidate_suffix = models.CharField(max_length=255, null=True, blank=True)
candidate_office = models.CharField(max_length=255, null=True, blank=True)
candidate_district = models.CharField(max_length=255, null=True, blank=True)
candidate_state = models.CharField(max_length=255, null=True, blank=True)
completing_last_name = models.CharField(max_length=255, null=True, blank=True)
completing_first_name = models.CharField(max_length=255, null=True, blank=True)
completing_middle_name = models.CharField(max_length=255, null=True, blank=True)
completing_prefix = models.CharField(max_length=255, null=True, blank=True)
completing_suffix = models.CharField(max_length=255, null=True, blank=True)
date_signed = models.CharField(max_length=255, null=True, blank=True)
memo_code = models.CharField(max_length=255, null=True, blank=True)
memo_text_description = models.CharField(max_length=255, null=True, blank=True)
cnn_district = models.CharField(max_length=255, null=True, blank=True)
name_search = SearchVectorField(null=True)
purpose_search = SearchVectorField(null=True)
candidate_search = SearchVectorField(null=True)
@property
def payee_name(self):
if self.payee_organization_name:
return self.payee_organization_name
if self.payee_middle_name:
return ' '.join([self.payee_first_name, self.payee_middle_name, self.payee_last_name])
return ' '.join([self.payee_first_name, self.payee_last_name])
@property
def expenditure_date_formatted(self):
try:
return datetime.datetime.strptime(self.expenditure_date, '%Y%m%d')
except:
try:
return datetime.datetime.strptime(self.dissemination_date, '%Y%m%d')
except:
return
@property
def address(self):
try:
address_parts = [self.payee_street_1, self.payee_street_2, self.payee_city+", "+self.payee_state, self.payee_zip[0:5]]
return ' '.join([a for a in address_parts if a])
except:
return
@property
def candidate_name(self):
if self.candidate_middle_name:
return ' '.join([self.candidate_first_name, self.candidate_middle_name, self.candidate_last_name])
if self.candidate_first_name and self.candidate_last_name:
return ' '.join([self.candidate_first_name, self.candidate_last_name])
return None
@property
def district(self):
if self.candidate_district and self.candidate_district != '00':
return "{}-{}".format(self.candidate_state, self.candidate_district)
else:
return self.candidate_state
@property
def support(self):
if self.support_oppose_code == 'S':
return "Support"
if self.support_oppose_code == 'O':
return "Oppose"
return
@property
def filing_type(self):
try:
filing = Filing.objects.get(filing_id=self.filing_id)
except:
return None
return filing.form
def export_fields():
return ['status',
'form_type',
'filer_committee_id_number',
'committee_name',
'filing_id',
'transaction_id',
'back_reference_tran_id_number',
'back_reference_sched_name',
'entity_type',
'filer_id',
'payee_organization_name',
'payee_last_name',
'payee_first_name',
'payee_middle_name',
'payee_prefix',
'payee_suffix',
'payee_street_1',
'payee_street_2',
'payee_city',
'payee_state',
'payee_zip',
'election_code',
'election_other_description',
'dissemination_date',
'expenditure_amount',
'expenditure_date',
'calendar_y_t_d_per_election_office',
'expenditure_purpose_descrip',
'category_code',
'payee_cmtte_fec_id_number',
'support_oppose_code',
'candidate_id_number',
'candidate_last_name',
'candidate_first_name',
'candidate_middle_name',
'candidate_prefix',
'candidate_suffix',
'candidate_office',
'candidate_district',
'candidate_state',
'completing_last_name',
'completing_first_name',
'completing_middle_name',
'completing_prefix',
'completing_suffix',
'date_signed',
'memo_code',
'memo_text_description',
]
def csv_row(self):
row = []
for f in ScheduleE.export_fields():
value = getattr(self, f)
if value is None:
row.append("")
else:
row.append(value)
return(row)
def get_absolute_url(self):
return reverse('schedulee_detail', args=[str(self.filing_id)])
class Meta(Transaction.Meta):
indexes = Transaction.Meta.indexes[:] #this is a deep copy to prevent the base model's fields from being overwritten
indexes.extend([GinIndex(fields=['name_search']), GinIndex(fields=['purpose_search']), GinIndex(fields=['candidate_search'])])
class Candidate(BaseModel):
name = models.CharField(max_length=255, null=True, blank=True)
state = models.CharField(max_length=2, null=True, blank=True)
district_number = models.CharField(max_length=20, null=True, blank=True)
district = models.CharField(max_length=23, null=True, blank=True)
fec_candidate_id = models.CharField(max_length=9, null=True, blank=True)
fec_committee_id = models.CharField(max_length=9, null=True, blank=True)
cnn_candidate_id = models.CharField(max_length=9, null=True, blank=True)
party = models.CharField(max_length=1, null=True, blank=True)
office = models.CharField(max_length=1, null=True, blank=True)
note = models.CharField(max_length=255, null=True, blank=True)
incumbent = models.CharField(max_length=255, null=True, blank=True)
def __str__(self):
return "{} ({}, {})".format(self.name, self.party, self.district)
def most_recent_filing(self):
try:
f = Filing.objects.filter(filer_id=self.fec_committee_id, active=True).order_by('-coverage_through_date')[0]
except:
return None
return f
def filing_by_deadline(self, deadline):
try:
f = Filing.objects.filter(filer_id=self.fec_committee_id, active=True, coverage_through_date=deadline)[0]
except:
return None
return f
# def get_absolute_url(self):
# return reverse('candidate_detail', args=[str(self.id)])
class InauguralContrib(BaseModel):
name = models.CharField(max_length=255, null=True, blank=True)
address = models.CharField(max_length=255, null=True, blank=True)
city = models.CharField(max_length=255, null=True, blank=True)
state = models.CharField(max_length=255, null=True, blank=True)
zipcode = models.CharField(max_length=255, null=True, blank=True)
date = models.CharField(max_length=255, null=True, blank=True)
amount = models.DecimalField(max_digits=12,decimal_places=2, null=True, blank=True)
def get_absolute_url(self):
return reverse('inauguralcontrib_detail', args=[str(self.id)])
| 55.376116
| 204
| 0.713868
| 6,343
| 49,617
| 5.309475
| 0.061327
| 0.074826
| 0.111943
| 0.146386
| 0.844795
| 0.821753
| 0.802423
| 0.782677
| 0.777332
| 0.749273
| 0
| 0.023993
| 0.187718
| 49,617
| 895
| 205
| 55.437989
| 0.811627
| 0.016265
| 0
| 0.410513
| 0
| 0
| 0.075991
| 0.030178
| 0
| 0
| 0
| 0
| 0
| 1
| 0.062578
| false
| 0.001252
| 0.008761
| 0.020025
| 0.593242
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
0f129da1b9c06678c75d49a2c6f206ab9fd036e5
| 1,003
|
py
|
Python
|
socfaker/timestamp.py
|
atstpls/soc-faker
|
119fcb9c4329a918ef9001ac5eaa36251b862bf0
|
[
"MIT"
] | null | null | null |
socfaker/timestamp.py
|
atstpls/soc-faker
|
119fcb9c4329a918ef9001ac5eaa36251b862bf0
|
[
"MIT"
] | null | null | null |
socfaker/timestamp.py
|
atstpls/soc-faker
|
119fcb9c4329a918ef9001ac5eaa36251b862bf0
|
[
"MIT"
] | null | null | null |
import pendulum
import random
class Timestamp(object):
def in_the_past(self,
years=0,
months=1,
days=random.randint(1,15),
hours=random.randint(1,24),
minutes=random.randint(1,60),
seconds=random.randint(1,60)):
return pendulum.now().subtract(
years=years,
months=months,
days=days,
hours=hours,
minutes=minutes,
seconds=seconds).to_iso8601_string()
def in_the_future(self,
years=0,
months=1,
days=random.randint(1,15),
hours=random.randint(1,24),
minutes=random.randint(1,60),
seconds=random.randint(1,60)):
return pendulum.now().add(
years=years,
months=months,
days=days,
hours=hours,
minutes=minutes,
seconds=seconds).to_iso8601_string()
@property
def current(self):
return pendulum.now().to_iso8601_string()
| 25.717949
| 49
| 0.55334
| 113
| 1,003
| 4.823009
| 0.292035
| 0.190826
| 0.205505
| 0.117431
| 0.748624
| 0.748624
| 0.748624
| 0.748624
| 0.748624
| 0.748624
| 0
| 0.059701
| 0.332004
| 1,003
| 38
| 50
| 26.394737
| 0.753731
| 0
| 0
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.088235
| false
| 0
| 0.058824
| 0.088235
| 0.264706
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0f3413fb1bacbf98f31288cfa1ccd3d726e53513
| 158
|
py
|
Python
|
pygantt/datasets/__init__.py
|
PyGantt/PyGan
|
00defc5cca5bbad80891649ceb1397e5c22bb997
|
[
"BSD-3-Clause"
] | 10
|
2018-04-22T07:30:59.000Z
|
2020-06-29T21:20:48.000Z
|
pygantt/datasets/__init__.py
|
PyGantt/PyGan
|
00defc5cca5bbad80891649ceb1397e5c22bb997
|
[
"BSD-3-Clause"
] | 183
|
2018-04-26T02:26:52.000Z
|
2022-03-28T05:57:17.000Z
|
pygantt/datasets/__init__.py
|
PyGantt/PyGan
|
00defc5cca5bbad80891649ceb1397e5c22bb997
|
[
"BSD-3-Clause"
] | 6
|
2018-04-21T14:13:14.000Z
|
2021-12-18T11:43:28.000Z
|
# -*- coding: utf-8 -*-
from .base import load_concert
from .base import load_equities
from .base import load_equities_ptf
from .base import load_freelancer
| 22.571429
| 35
| 0.778481
| 24
| 158
| 4.916667
| 0.458333
| 0.271186
| 0.474576
| 0.610169
| 0.440678
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007353
| 0.139241
| 158
| 6
| 36
| 26.333333
| 0.860294
| 0.132911
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
0f545b2860171c2f52557c37377dbf57a32aa171
| 754
|
py
|
Python
|
tests/helpers/hashing/test_mmh.py
|
victox5/pdsa
|
cfac2b02bcbcfdabc3c758b8ad4fe895e58c5cb1
|
[
"MIT"
] | 86
|
2017-10-27T06:48:48.000Z
|
2022-03-27T15:46:05.000Z
|
tests/helpers/hashing/test_mmh.py
|
victox5/pdsa
|
cfac2b02bcbcfdabc3c758b8ad4fe895e58c5cb1
|
[
"MIT"
] | 8
|
2019-09-28T08:54:20.000Z
|
2020-02-24T09:49:34.000Z
|
tests/helpers/hashing/test_mmh.py
|
victox5/pdsa
|
cfac2b02bcbcfdabc3c758b8ad4fe895e58c5cb1
|
[
"MIT"
] | 20
|
2017-08-18T09:07:04.000Z
|
2022-03-27T15:46:00.000Z
|
import pytest
from pdsa.helpers.hashing.mmh import mmh3_x86_32bit
def test_int():
assert mmh3_x86_32bit(1024, 42) == 1170829763
def test_string():
assert mmh3_x86_32bit("test", 42) == 1956065189
assert mmh3_x86_32bit("test", 42) != mmh3_x86_32bit(b"test", 42)
def test_bytes():
assert mmh3_x86_32bit(b"test", 42) == 3959873882
def test_arbitrary():
class X(object):
def __repr__(self):
return "X<>"
assert mmh3_x86_32bit(X(), 42) == mmh3_x86_32bit("X<>".encode("utf-8"), 42)
def test_seed():
assert mmh3_x86_32bit("hello", 73) != mmh3_x86_32bit("hello", 42)
assert mmh3_x86_32bit("hello", 42) == mmh3_x86_32bit("hello", 42)
assert mmh3_x86_32bit("hello", 42) == mmh3_x86_32bit("hello")
| 24.322581
| 79
| 0.671088
| 114
| 754
| 4.114035
| 0.307018
| 0.208955
| 0.358209
| 0.307036
| 0.45629
| 0.407249
| 0.223881
| 0.223881
| 0.223881
| 0.223881
| 0
| 0.208065
| 0.177719
| 754
| 30
| 80
| 25.133333
| 0.548387
| 0
| 0
| 0
| 0
| 0
| 0.075597
| 0
| 0
| 0
| 0
| 0
| 0.444444
| 1
| 0.333333
| false
| 0
| 0.111111
| 0.055556
| 0.555556
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
0f85c071055074fd804247b757406a79f0bae24c
| 76,765
|
py
|
Python
|
tb_rest_client/api/api_pe/entity_group_controller_api.py
|
maksonlee/python_tb_rest_client
|
a6cd17ef4de31f68c3226b7a9835292fbac4b1fa
|
[
"Apache-2.0"
] | 1
|
2021-07-19T10:09:04.000Z
|
2021-07-19T10:09:04.000Z
|
tb_rest_client/api/api_pe/entity_group_controller_api.py
|
moravcik94/python_tb_rest_client
|
985361890cdf4ccce93d2b24905ad9003c8dfcaa
|
[
"Apache-2.0"
] | null | null | null |
tb_rest_client/api/api_pe/entity_group_controller_api.py
|
moravcik94/python_tb_rest_client
|
985361890cdf4ccce93d2b24905ad9003c8dfcaa
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
# Copyright 2020. ThingsBoard
# #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from tb_rest_client.api_client import ApiClient
class EntityGroupControllerApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def add_entities_to_entity_group_using_post(self, entity_group_id, str_entity_ids, **kwargs): # noqa: E501
"""addEntitiesToEntityGroup # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.add_entities_to_entity_group_using_post(entity_group_id, str_entity_ids, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:param list[str] str_entity_ids: strEntityIds (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.add_entities_to_entity_group_using_post_with_http_info(entity_group_id, str_entity_ids, **kwargs) # noqa: E501
else:
(data) = self.add_entities_to_entity_group_using_post_with_http_info(entity_group_id, str_entity_ids, **kwargs) # noqa: E501
return data
def add_entities_to_entity_group_using_post_with_http_info(self, entity_group_id, str_entity_ids, **kwargs): # noqa: E501
"""addEntitiesToEntityGroup # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.add_entities_to_entity_group_using_post_with_http_info(entity_group_id, str_entity_ids, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:param list[str] str_entity_ids: strEntityIds (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['entity_group_id', 'str_entity_ids'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'entity_group_id' is set
if ('entity_group_id' not in params or
params['entity_group_id'] is None):
raise ValueError("Missing the required parameter `entity_group_id` when calling `add_entities_to_entity_group_using_post`") # noqa: E501
# verify the required parameter 'str_entity_ids' is set
if ('str_entity_ids' not in params or
params['str_entity_ids'] is None):
raise ValueError("Missing the required parameter `str_entity_ids` when calling `add_entities_to_entity_group_using_post`") # noqa: E501
collection_formats = {}
path_params = {}
if 'entity_group_id' in params:
path_params['entityGroupId'] = params['entity_group_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'str_entity_ids' in params:
body_params = params['str_entity_ids']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroup/{entityGroupId}/addEntities', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_entity_group_using_delete(self, entity_group_id, **kwargs): # noqa: E501
"""deleteEntityGroup # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.delete_entity_group_using_delete(entity_group_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_entity_group_using_delete_with_http_info(entity_group_id, **kwargs) # noqa: E501
else:
(data) = self.delete_entity_group_using_delete_with_http_info(entity_group_id, **kwargs) # noqa: E501
return data
def delete_entity_group_using_delete_with_http_info(self, entity_group_id, **kwargs): # noqa: E501
"""deleteEntityGroup # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.delete_entity_group_using_delete_with_http_info(entity_group_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['entity_group_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'entity_group_id' is set
if ('entity_group_id' not in params or
params['entity_group_id'] is None):
raise ValueError("Missing the required parameter `entity_group_id` when calling `delete_entity_group_using_delete`") # noqa: E501
collection_formats = {}
path_params = {}
if 'entity_group_id' in params:
path_params['entityGroupId'] = params['entity_group_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroup/{entityGroupId}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_enitity_group_by_owner_and_name_and_type_using_get(self, owner_type, owner_id, group_type, group_name, **kwargs): # noqa: E501
"""getEnitityGroupByOwnerAndNameAndType # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_enitity_group_by_owner_and_name_and_type_using_get(owner_type, owner_id, group_type, group_name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner_type: ownerType (required)
:param str owner_id: ownerId (required)
:param str group_type: EntityGroup type (required)
:param str group_name: groupName (required)
:return: EntityGroupInfo
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_enitity_group_by_owner_and_name_and_type_using_get_with_http_info(owner_type, owner_id, group_type, group_name, **kwargs) # noqa: E501
else:
(data) = self.get_enitity_group_by_owner_and_name_and_type_using_get_with_http_info(owner_type, owner_id, group_type, group_name, **kwargs) # noqa: E501
return data
def get_enitity_group_by_owner_and_name_and_type_using_get_with_http_info(self, owner_type, owner_id, group_type, group_name, **kwargs): # noqa: E501
"""getEnitityGroupByOwnerAndNameAndType # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_enitity_group_by_owner_and_name_and_type_using_get_with_http_info(owner_type, owner_id, group_type, group_name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner_type: ownerType (required)
:param str owner_id: ownerId (required)
:param str group_type: EntityGroup type (required)
:param str group_name: groupName (required)
:return: EntityGroupInfo
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['owner_type', 'owner_id', 'group_type', 'group_name'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'owner_type' is set
if ('owner_type' not in params or
params['owner_type'] is None):
raise ValueError("Missing the required parameter `owner_type` when calling `get_enitity_group_by_owner_and_name_and_type_using_get`") # noqa: E501
# verify the required parameter 'owner_id' is set
if ('owner_id' not in params or
params['owner_id'] is None):
raise ValueError("Missing the required parameter `owner_id` when calling `get_enitity_group_by_owner_and_name_and_type_using_get`") # noqa: E501
# verify the required parameter 'group_type' is set
if ('group_type' not in params or
params['group_type'] is None):
raise ValueError("Missing the required parameter `group_type` when calling `get_enitity_group_by_owner_and_name_and_type_using_get`") # noqa: E501
# verify the required parameter 'group_name' is set
if ('group_name' not in params or
params['group_name'] is None):
raise ValueError("Missing the required parameter `group_name` when calling `get_enitity_group_by_owner_and_name_and_type_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'owner_type' in params:
path_params['ownerType'] = params['owner_type'] # noqa: E501
if 'owner_id' in params:
path_params['ownerId'] = params['owner_id'] # noqa: E501
if 'group_type' in params:
path_params['groupType'] = params['group_type'] # noqa: E501
if 'group_name' in params:
path_params['groupName'] = params['group_name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroup/{ownerType}/{ownerId}/{groupType}/{groupName}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='EntityGroupInfo', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_entities_using_get(self, entity_group_id, page_size, page, **kwargs): # noqa: E501
"""getEntities # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_entities_using_get(entity_group_id, page_size, page, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:param str page_size: Page size (required)
:param str page: Page (required)
:param str text_search: textSearch
:param str sort_property: sortProperty
:param str sort_order: sortOrder
:return: PageDataShortEntityView
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_entities_using_get_with_http_info(entity_group_id, page_size, page, **kwargs) # noqa: E501
else:
(data) = self.get_entities_using_get_with_http_info(entity_group_id, page_size, page, **kwargs) # noqa: E501
return data
def get_entities_using_get_with_http_info(self, entity_group_id, page_size, page, **kwargs): # noqa: E501
"""getEntities # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_entities_using_get_with_http_info(entity_group_id, page_size, page, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:param str page_size: Page size (required)
:param str page: Page (required)
:param str text_search: textSearch
:param str sort_property: sortProperty
:param str sort_order: sortOrder
:return: PageDataShortEntityView
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['entity_group_id', 'page_size', 'page', 'text_search', 'sort_property', 'sort_order'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'entity_group_id' is set
if ('entity_group_id' not in params or
params['entity_group_id'] is None):
raise ValueError("Missing the required parameter `entity_group_id` when calling `get_entities_using_get`") # noqa: E501
# verify the required parameter 'page_size' is set
if ('page_size' not in params or
params['page_size'] is None):
raise ValueError("Missing the required parameter `page_size` when calling `get_entities_using_get`") # noqa: E501
# verify the required parameter 'page' is set
if ('page' not in params or
params['page'] is None):
raise ValueError("Missing the required parameter `page` when calling `get_entities_using_get`") # noqa: E501
if 'page_size' in params and params['page_size'] < 1.0: # noqa: E501
raise ValueError("Invalid value for parameter `page_size` when calling `get_entities_using_get`, must be a value greater than or equal to `1.0`") # noqa: E501
if 'page' in params and params['page'] < 0.0: # noqa: E501
raise ValueError("Invalid value for parameter `page` when calling `get_entities_using_get`, must be a value greater than or equal to `0.0`") # noqa: E501
collection_formats = {}
path_params = {}
if 'entity_group_id' in params:
path_params['entityGroupId'] = params['entity_group_id'] # noqa: E501
query_params = []
if 'text_search' in params:
query_params.append(('textSearch', params['text_search'])) # noqa: E501
if 'sort_property' in params:
query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
if 'sort_order' in params:
query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
if 'page_size' in params:
query_params.append(('pageSize', params['page_size'])) # noqa: E501
if 'page' in params:
query_params.append(('page', params['page'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroup/{entityGroupId}/entities{?textSearch,sortProperty,sortOrder,pageSize,page}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='PageDataShortEntityView', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_entity_group_all_by_owner_and_type_using_get(self, owner_type, owner_id, group_type, **kwargs): # noqa: E501
"""getEntityGroupAllByOwnerAndType # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_entity_group_all_by_owner_and_type_using_get(owner_type, owner_id, group_type, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner_type: ownerType (required)
:param str owner_id: ownerId (required)
:param str group_type: EntityGroup type (required)
:return: EntityGroupInfo
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_entity_group_all_by_owner_and_type_using_get_with_http_info(owner_type, owner_id, group_type, **kwargs) # noqa: E501
else:
(data) = self.get_entity_group_all_by_owner_and_type_using_get_with_http_info(owner_type, owner_id, group_type, **kwargs) # noqa: E501
return data
def get_entity_group_all_by_owner_and_type_using_get_with_http_info(self, owner_type, owner_id, group_type, **kwargs): # noqa: E501
"""getEntityGroupAllByOwnerAndType # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_entity_group_all_by_owner_and_type_using_get_with_http_info(owner_type, owner_id, group_type, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner_type: ownerType (required)
:param str owner_id: ownerId (required)
:param str group_type: EntityGroup type (required)
:return: EntityGroupInfo
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['owner_type', 'owner_id', 'group_type'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'owner_type' is set
if ('owner_type' not in params or
params['owner_type'] is None):
raise ValueError("Missing the required parameter `owner_type` when calling `get_entity_group_all_by_owner_and_type_using_get`") # noqa: E501
# verify the required parameter 'owner_id' is set
if ('owner_id' not in params or
params['owner_id'] is None):
raise ValueError("Missing the required parameter `owner_id` when calling `get_entity_group_all_by_owner_and_type_using_get`") # noqa: E501
# verify the required parameter 'group_type' is set
if ('group_type' not in params or
params['group_type'] is None):
raise ValueError("Missing the required parameter `group_type` when calling `get_entity_group_all_by_owner_and_type_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'owner_type' in params:
path_params['ownerType'] = params['owner_type'] # noqa: E501
if 'owner_id' in params:
path_params['ownerId'] = params['owner_id'] # noqa: E501
if 'group_type' in params:
path_params['groupType'] = params['group_type'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroup/all/{ownerType}/{ownerId}/{groupType}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='EntityGroupInfo', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_entity_group_by_id_using_get(self, entity_group_id, **kwargs): # noqa: E501
"""getEntityGroupById # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_entity_group_by_id_using_get(entity_group_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:return: EntityGroupInfo
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_entity_group_by_id_using_get_with_http_info(entity_group_id, **kwargs) # noqa: E501
else:
(data) = self.get_entity_group_by_id_using_get_with_http_info(entity_group_id, **kwargs) # noqa: E501
return data
def get_entity_group_by_id_using_get_with_http_info(self, entity_group_id, **kwargs): # noqa: E501
"""getEntityGroupById # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_entity_group_by_id_using_get_with_http_info(entity_group_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:return: EntityGroupInfo
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['entity_group_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'entity_group_id' is set
if ('entity_group_id' not in params or
params['entity_group_id'] is None):
raise ValueError("Missing the required parameter `entity_group_id` when calling `get_entity_group_by_id_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'entity_group_id' in params:
path_params['entityGroupId'] = params['entity_group_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroup/{entityGroupId}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='EntityGroupInfo', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_entity_groups_by_ids_using_get(self, entity_group_ids, **kwargs): # noqa: E501
"""getEntityGroupsByIds # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_entity_groups_by_ids_using_get(entity_group_ids, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_ids: entityGroupIds (required)
:return: list[EntityGroup]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_entity_groups_by_ids_using_get_with_http_info(entity_group_ids, **kwargs) # noqa: E501
else:
(data) = self.get_entity_groups_by_ids_using_get_with_http_info(entity_group_ids, **kwargs) # noqa: E501
return data
def get_entity_groups_by_ids_using_get_with_http_info(self, entity_group_ids, **kwargs): # noqa: E501
"""getEntityGroupsByIds # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_entity_groups_by_ids_using_get_with_http_info(entity_group_ids, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_ids: entityGroupIds (required)
:return: list[EntityGroup]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['entity_group_ids'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'entity_group_ids' is set
if ('entity_group_ids' not in params or
params['entity_group_ids'] is None):
raise ValueError("Missing the required parameter `entity_group_ids` when calling `get_entity_groups_by_ids_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
if 'entity_group_ids' in params:
query_params.append(('entityGroupIds', params['entity_group_ids'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroups{?entityGroupIds}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[EntityGroup]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_entity_groups_by_owner_and_type_using_get(self, owner_type, owner_id, group_type, **kwargs): # noqa: E501
"""getEntityGroupsByOwnerAndType # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_entity_groups_by_owner_and_type_using_get(owner_type, owner_id, group_type, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner_type: ownerType (required)
:param str owner_id: ownerId (required)
:param str group_type: EntityGroup type (required)
:return: list[EntityGroupInfo]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_entity_groups_by_owner_and_type_using_get_with_http_info(owner_type, owner_id, group_type, **kwargs) # noqa: E501
else:
(data) = self.get_entity_groups_by_owner_and_type_using_get_with_http_info(owner_type, owner_id, group_type, **kwargs) # noqa: E501
return data
def get_entity_groups_by_owner_and_type_using_get_with_http_info(self, owner_type, owner_id, group_type, **kwargs): # noqa: E501
"""getEntityGroupsByOwnerAndType # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_entity_groups_by_owner_and_type_using_get_with_http_info(owner_type, owner_id, group_type, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner_type: ownerType (required)
:param str owner_id: ownerId (required)
:param str group_type: EntityGroup type (required)
:return: list[EntityGroupInfo]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['owner_type', 'owner_id', 'group_type'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'owner_type' is set
if ('owner_type' not in params or
params['owner_type'] is None):
raise ValueError("Missing the required parameter `owner_type` when calling `get_entity_groups_by_owner_and_type_using_get`") # noqa: E501
# verify the required parameter 'owner_id' is set
if ('owner_id' not in params or
params['owner_id'] is None):
raise ValueError("Missing the required parameter `owner_id` when calling `get_entity_groups_by_owner_and_type_using_get`") # noqa: E501
# verify the required parameter 'group_type' is set
if ('group_type' not in params or
params['group_type'] is None):
raise ValueError("Missing the required parameter `group_type` when calling `get_entity_groups_by_owner_and_type_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'owner_type' in params:
path_params['ownerType'] = params['owner_type'] # noqa: E501
if 'owner_id' in params:
path_params['ownerId'] = params['owner_id'] # noqa: E501
if 'group_type' in params:
path_params['groupType'] = params['group_type'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroups/{ownerType}/{ownerId}/{groupType}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[EntityGroupInfo]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_entity_groups_by_type_using_get(self, group_type, **kwargs): # noqa: E501
"""getEntityGroupsByType # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_entity_groups_by_type_using_get(group_type, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str group_type: EntityGroup type (required)
:return: list[EntityGroupInfo]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_entity_groups_by_type_using_get_with_http_info(group_type, **kwargs) # noqa: E501
else:
(data) = self.get_entity_groups_by_type_using_get_with_http_info(group_type, **kwargs) # noqa: E501
return data
def get_entity_groups_by_type_using_get_with_http_info(self, group_type, **kwargs): # noqa: E501
"""getEntityGroupsByType # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_entity_groups_by_type_using_get_with_http_info(group_type, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str group_type: EntityGroup type (required)
:return: list[EntityGroupInfo]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['group_type'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'group_type' is set
if ('group_type' not in params or
params['group_type'] is None):
raise ValueError("Missing the required parameter `group_type` when calling `get_entity_groups_by_type_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'group_type' in params:
path_params['groupType'] = params['group_type'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroups/{groupType}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[EntityGroupInfo]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_entity_groups_for_entity_using_get(self, entity_type, entity_id, **kwargs): # noqa: E501
"""getEntityGroupsForEntity # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_entity_groups_for_entity_using_get(entity_type, entity_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_type: Entity type (required)
:param str entity_id: entityId (required)
:return: list[EntityGroupId]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_entity_groups_for_entity_using_get_with_http_info(entity_type, entity_id, **kwargs) # noqa: E501
else:
(data) = self.get_entity_groups_for_entity_using_get_with_http_info(entity_type, entity_id, **kwargs) # noqa: E501
return data
def get_entity_groups_for_entity_using_get_with_http_info(self, entity_type, entity_id, **kwargs): # noqa: E501
"""getEntityGroupsForEntity # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_entity_groups_for_entity_using_get_with_http_info(entity_type, entity_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_type: Entity type (required)
:param str entity_id: entityId (required)
:return: list[EntityGroupId]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['entity_type', 'entity_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'entity_type' is set
if ('entity_type' not in params or
params['entity_type'] is None):
raise ValueError("Missing the required parameter `entity_type` when calling `get_entity_groups_for_entity_using_get`") # noqa: E501
# verify the required parameter 'entity_id' is set
if ('entity_id' not in params or
params['entity_id'] is None):
raise ValueError("Missing the required parameter `entity_id` when calling `get_entity_groups_for_entity_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'entity_type' in params:
path_params['entityType'] = params['entity_type'] # noqa: E501
if 'entity_id' in params:
path_params['entityId'] = params['entity_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroups/{entityType}/{entityId}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[EntityGroupId]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_group_entity_using_get(self, entity_group_id, entity_id, **kwargs): # noqa: E501
"""getGroupEntity # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_group_entity_using_get(entity_group_id, entity_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:param str entity_id: entityId (required)
:return: ShortEntityView
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_group_entity_using_get_with_http_info(entity_group_id, entity_id, **kwargs) # noqa: E501
else:
(data) = self.get_group_entity_using_get_with_http_info(entity_group_id, entity_id, **kwargs) # noqa: E501
return data
def get_group_entity_using_get_with_http_info(self, entity_group_id, entity_id, **kwargs): # noqa: E501
"""getGroupEntity # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_group_entity_using_get_with_http_info(entity_group_id, entity_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:param str entity_id: entityId (required)
:return: ShortEntityView
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['entity_group_id', 'entity_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'entity_group_id' is set
if ('entity_group_id' not in params or
params['entity_group_id'] is None):
raise ValueError("Missing the required parameter `entity_group_id` when calling `get_group_entity_using_get`") # noqa: E501
# verify the required parameter 'entity_id' is set
if ('entity_id' not in params or
params['entity_id'] is None):
raise ValueError("Missing the required parameter `entity_id` when calling `get_group_entity_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'entity_group_id' in params:
path_params['entityGroupId'] = params['entity_group_id'] # noqa: E501
if 'entity_id' in params:
path_params['entityId'] = params['entity_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroup/{entityGroupId}/{entityId}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ShortEntityView', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_owners_using_get(self, page_size, page, **kwargs): # noqa: E501
"""getOwners # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_owners_using_get(page_size, page, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str page_size: pageSize (required)
:param str page: page (required)
:param str text_search: textSearch
:param str sort_property: sortProperty
:param str sort_order: sortOrder
:return: PageDataContactBasedobject
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_owners_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
else:
(data) = self.get_owners_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
return data
def get_owners_using_get_with_http_info(self, page_size, page, **kwargs): # noqa: E501
"""getOwners # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.get_owners_using_get_with_http_info(page_size, page, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str page_size: pageSize (required)
:param str page: page (required)
:param str text_search: textSearch
:param str sort_property: sortProperty
:param str sort_order: sortOrder
:return: PageDataContactBasedobject
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['page_size', 'page', 'text_search', 'sort_property', 'sort_order'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'page_size' is set
if ('page_size' not in params or
params['page_size'] is None):
raise ValueError("Missing the required parameter `page_size` when calling `get_owners_using_get`") # noqa: E501
# verify the required parameter 'page' is set
if ('page' not in params or
params['page'] is None):
raise ValueError("Missing the required parameter `page` when calling `get_owners_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
if 'text_search' in params:
query_params.append(('textSearch', params['text_search'])) # noqa: E501
if 'sort_property' in params:
query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
if 'sort_order' in params:
query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
if 'page_size' in params:
query_params.append(('pageSize', params['page_size'])) # noqa: E501
if 'page' in params:
query_params.append(('page', params['page'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/owners{?textSearch,sortProperty,sortOrder,pageSize,page}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='PageDataContactBasedobject', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def make_entity_group_private_using_post(self, entity_group_id, **kwargs): # noqa: E501
"""makeEntityGroupPrivate # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.make_entity_group_private_using_post(entity_group_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.make_entity_group_private_using_post_with_http_info(entity_group_id, **kwargs) # noqa: E501
else:
(data) = self.make_entity_group_private_using_post_with_http_info(entity_group_id, **kwargs) # noqa: E501
return data
def make_entity_group_private_using_post_with_http_info(self, entity_group_id, **kwargs): # noqa: E501
"""makeEntityGroupPrivate # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.make_entity_group_private_using_post_with_http_info(entity_group_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['entity_group_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'entity_group_id' is set
if ('entity_group_id' not in params or
params['entity_group_id'] is None):
raise ValueError("Missing the required parameter `entity_group_id` when calling `make_entity_group_private_using_post`") # noqa: E501
collection_formats = {}
path_params = {}
if 'entity_group_id' in params:
path_params['entityGroupId'] = params['entity_group_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroup/{entityGroupId}/makePrivate', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def make_entity_group_public_using_post(self, entity_group_id, **kwargs): # noqa: E501
"""makeEntityGroupPublic # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.make_entity_group_public_using_post(entity_group_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.make_entity_group_public_using_post_with_http_info(entity_group_id, **kwargs) # noqa: E501
else:
(data) = self.make_entity_group_public_using_post_with_http_info(entity_group_id, **kwargs) # noqa: E501
return data
def make_entity_group_public_using_post_with_http_info(self, entity_group_id, **kwargs): # noqa: E501
"""makeEntityGroupPublic # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.make_entity_group_public_using_post_with_http_info(entity_group_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['entity_group_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'entity_group_id' is set
if ('entity_group_id' not in params or
params['entity_group_id'] is None):
raise ValueError("Missing the required parameter `entity_group_id` when calling `make_entity_group_public_using_post`") # noqa: E501
collection_formats = {}
path_params = {}
if 'entity_group_id' in params:
path_params['entityGroupId'] = params['entity_group_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroup/{entityGroupId}/makePublic', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def remove_entities_from_entity_group_using_post(self, entity_group_id, str_entity_ids, **kwargs): # noqa: E501
"""removeEntitiesFromEntityGroup # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.remove_entities_from_entity_group_using_post(entity_group_id, str_entity_ids, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:param list[str] str_entity_ids: strEntityIds (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.remove_entities_from_entity_group_using_post_with_http_info(entity_group_id, str_entity_ids, **kwargs) # noqa: E501
else:
(data) = self.remove_entities_from_entity_group_using_post_with_http_info(entity_group_id, str_entity_ids, **kwargs) # noqa: E501
return data
def remove_entities_from_entity_group_using_post_with_http_info(self, entity_group_id, str_entity_ids, **kwargs): # noqa: E501
"""removeEntitiesFromEntityGroup # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.remove_entities_from_entity_group_using_post_with_http_info(entity_group_id, str_entity_ids, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:param list[str] str_entity_ids: strEntityIds (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['entity_group_id', 'str_entity_ids'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'entity_group_id' is set
if ('entity_group_id' not in params or
params['entity_group_id'] is None):
raise ValueError("Missing the required parameter `entity_group_id` when calling `remove_entities_from_entity_group_using_post`") # noqa: E501
# verify the required parameter 'str_entity_ids' is set
if ('str_entity_ids' not in params or
params['str_entity_ids'] is None):
raise ValueError("Missing the required parameter `str_entity_ids` when calling `remove_entities_from_entity_group_using_post`") # noqa: E501
collection_formats = {}
path_params = {}
if 'entity_group_id' in params:
path_params['entityGroupId'] = params['entity_group_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'str_entity_ids' in params:
body_params = params['str_entity_ids']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroup/{entityGroupId}/deleteEntities', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def save_entity_group_using_post(self, entity_group, **kwargs): # noqa: E501
"""saveEntityGroup # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.save_entity_group_using_post(entity_group, async_req=True)
>>> result = thread.get()
:param async_req bool
:param EntityGroup entity_group: entityGroup (required)
:return: EntityGroupInfo
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.save_entity_group_using_post_with_http_info(entity_group, **kwargs) # noqa: E501
else:
(data) = self.save_entity_group_using_post_with_http_info(entity_group, **kwargs) # noqa: E501
return data
def save_entity_group_using_post_with_http_info(self, entity_group, **kwargs): # noqa: E501
"""saveEntityGroup # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.save_entity_group_using_post_with_http_info(entity_group, async_req=True)
>>> result = thread.get()
:param async_req bool
:param EntityGroup entity_group: entityGroup (required)
:return: EntityGroupInfo
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['entity_group'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'entity_group' is set
if ('entity_group' not in params or
params['entity_group'] is None):
raise ValueError("Missing the required parameter `entity_group` when calling `save_entity_group_using_post`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'entity_group' in params:
body_params = params['entity_group']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroup', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='EntityGroupInfo', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def share_entity_group_to_child_owner_user_group_using_post(self, entity_group_id, user_group_id, role_id, **kwargs): # noqa: E501
"""shareEntityGroupToChildOwnerUserGroup # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.share_entity_group_to_child_owner_user_group_using_post(entity_group_id, user_group_id, role_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:param str user_group_id: userGroupId (required)
:param str role_id: roleId (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.share_entity_group_to_child_owner_user_group_using_post_with_http_info(entity_group_id, user_group_id, role_id, **kwargs) # noqa: E501
else:
(data) = self.share_entity_group_to_child_owner_user_group_using_post_with_http_info(entity_group_id, user_group_id, role_id, **kwargs) # noqa: E501
return data
def share_entity_group_to_child_owner_user_group_using_post_with_http_info(self, entity_group_id, user_group_id, role_id, **kwargs): # noqa: E501
"""shareEntityGroupToChildOwnerUserGroup # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api_pe.share_entity_group_to_child_owner_user_group_using_post_with_http_info(entity_group_id, user_group_id, role_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str entity_group_id: entityGroupId (required)
:param str user_group_id: userGroupId (required)
:param str role_id: roleId (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['entity_group_id', 'user_group_id', 'role_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
params[key] = val
del params['kwargs']
# verify the required parameter 'entity_group_id' is set
if ('entity_group_id' not in params or
params['entity_group_id'] is None):
raise ValueError("Missing the required parameter `entity_group_id` when calling `share_entity_group_to_child_owner_user_group_using_post`") # noqa: E501
# verify the required parameter 'user_group_id' is set
if ('user_group_id' not in params or
params['user_group_id'] is None):
raise ValueError("Missing the required parameter `user_group_id` when calling `share_entity_group_to_child_owner_user_group_using_post`") # noqa: E501
# verify the required parameter 'role_id' is set
if ('role_id' not in params or
params['role_id'] is None):
raise ValueError("Missing the required parameter `role_id` when calling `share_entity_group_to_child_owner_user_group_using_post`") # noqa: E501
collection_formats = {}
path_params = {}
if 'entity_group_id' in params:
path_params['entityGroupId'] = params['entity_group_id'] # noqa: E501
if 'user_group_id' in params:
path_params['userGroupId'] = params['user_group_id'] # noqa: E501
if 'role_id' in params:
path_params['roleId'] = params['role_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501
return self.api_client.call_api(
'/api/entityGroup/{entityGroupId}/{userGroupId}/{roleId}/share', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 43.296672
| 171
| 0.640578
| 9,203
| 76,765
| 5.006628
| 0.027491
| 0.048094
| 0.038089
| 0.026565
| 0.971981
| 0.96649
| 0.960565
| 0.955313
| 0.951211
| 0.945047
| 0
| 0.015208
| 0.269328
| 76,765
| 1,772
| 172
| 43.321106
| 0.806258
| 0.317931
| 0
| 0.819829
| 0
| 0.002132
| 0.220865
| 0.069578
| 0
| 0
| 0
| 0
| 0
| 1
| 0.037313
| false
| 0
| 0.004264
| 0
| 0.097015
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0e2d093c1b2c266e2b54ae7b0b97c451d7e4fe4c
| 155
|
py
|
Python
|
get_ohlc/utils/post_callbacks.py
|
luvemil/get_ohlc
|
f6ac7def4b50799321823dfa1dc37398ff62e914
|
[
"MIT"
] | 1
|
2019-11-11T08:36:24.000Z
|
2019-11-11T08:36:24.000Z
|
get_ohlc/utils/post_callbacks.py
|
luvemil/get_ohlc
|
f6ac7def4b50799321823dfa1dc37398ff62e914
|
[
"MIT"
] | 3
|
2019-01-30T12:04:55.000Z
|
2019-01-30T12:07:55.000Z
|
get_ohlc/utils/post_callbacks.py
|
luvemil/get_ohlc
|
f6ac7def4b50799321823dfa1dc37398ff62e914
|
[
"MIT"
] | null | null | null |
def ensure_unique_index(data_df):
return data_df[~data_df.index.duplicated(keep='first')]
def ensure_sorted(data_df):
return data_df.sort_index()
| 25.833333
| 59
| 0.767742
| 25
| 155
| 4.4
| 0.48
| 0.272727
| 0.218182
| 0.290909
| 0.327273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109677
| 155
| 5
| 60
| 31
| 0.797101
| 0
| 0
| 0
| 0
| 0
| 0.032258
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
0e7c863fbc94802de3c2f960a608020c00e2917e
| 191
|
py
|
Python
|
src/wai/annotations/tf/compat/v1/_ensure_eager_execution.py
|
waikato-ufdl/wai-annotations-tf
|
be147d1d313abbd8bbf25ac8d9ab3d6f03d3b5b3
|
[
"Apache-2.0"
] | null | null | null |
src/wai/annotations/tf/compat/v1/_ensure_eager_execution.py
|
waikato-ufdl/wai-annotations-tf
|
be147d1d313abbd8bbf25ac8d9ab3d6f03d3b5b3
|
[
"Apache-2.0"
] | 1
|
2021-07-29T01:48:26.000Z
|
2021-07-29T01:48:26.000Z
|
src/wai/annotations/tf/compat/v1/_ensure_eager_execution.py
|
waikato-ufdl/wai-annotations-tf
|
be147d1d313abbd8bbf25ac8d9ab3d6f03d3b5b3
|
[
"Apache-2.0"
] | null | null | null |
def ensure_eager_execution():
"""
Ensures that Tensorflow is in eager-execution mode.
"""
from tensorflow.compat.v1 import enable_eager_execution
enable_eager_execution()
| 27.285714
| 59
| 0.732984
| 23
| 191
| 5.826087
| 0.652174
| 0.41791
| 0.298507
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006452
| 0.188482
| 191
| 6
| 60
| 31.833333
| 0.858065
| 0.267016
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
7ec3229cd52145c6f9a61e883bb844ab8d4cd235
| 138
|
py
|
Python
|
example_docker_rabbitmq/example/tasks.py
|
Ilhasoft/celery-broker-on-demand
|
801ae98fd8ee4e79bc1cd811013381b96ba3ddf0
|
[
"MIT"
] | 4
|
2018-12-01T21:43:05.000Z
|
2020-04-13T15:11:49.000Z
|
example_docker_rabbitmq/example/tasks.py
|
Ilhasoft/celery-broker-on-demand
|
801ae98fd8ee4e79bc1cd811013381b96ba3ddf0
|
[
"MIT"
] | 2
|
2018-12-05T17:30:01.000Z
|
2018-12-20T18:12:40.000Z
|
example_docker_rabbitmq/example/tasks.py
|
Ilhasoft/celery-broker-on-demand
|
801ae98fd8ee4e79bc1cd811013381b96ba3ddf0
|
[
"MIT"
] | 1
|
2021-07-05T11:31:54.000Z
|
2021-07-05T11:31:54.000Z
|
from .celery_app import celery_app
@celery_app.task
def add(x, y):
return x + y
@celery_app.task
def diff(x, y):
return x - y
| 11.5
| 34
| 0.65942
| 26
| 138
| 3.346154
| 0.423077
| 0.413793
| 0.298851
| 0.367816
| 0.229885
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.231884
| 138
| 11
| 35
| 12.545455
| 0.820755
| 0
| 0
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.142857
| 0.285714
| 0.714286
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
7eca6e27a7a4b44c931126d7fc1f1cb277c2d14c
| 17,017
|
py
|
Python
|
Test/WebAssembly/simd/simd/meta/simd_i64x2_cmp.py
|
igor-egorov/WAVM
|
9df55bf721eb2d31bc921e345c4fc70d09f64b36
|
[
"BSD-3-Clause"
] | null | null | null |
Test/WebAssembly/simd/simd/meta/simd_i64x2_cmp.py
|
igor-egorov/WAVM
|
9df55bf721eb2d31bc921e345c4fc70d09f64b36
|
[
"BSD-3-Clause"
] | 11
|
2019-10-15T23:03:57.000Z
|
2020-06-14T16:10:12.000Z
|
Test/WebAssembly/simd/simd/meta/simd_i64x2_cmp.py
|
igor-egorov/WAVM
|
9df55bf721eb2d31bc921e345c4fc70d09f64b36
|
[
"BSD-3-Clause"
] | 7
|
2019-07-04T14:23:54.000Z
|
2020-04-27T08:52:51.000Z
|
#!/usr/bin/env python3
from simd_compare import SimdCmpCase
# Generate i64x2 test case
class Simdi64x2CmpCase(SimdCmpCase):
LANE_TYPE = 'i64x2'
BINARY_OPS = ['eq', 'ne']
# Override this since i64x2 does not support as many comparison instructions.
CASE_TXT = """
;; Test all the {lane_type} comparison operators on major boundary values and all special values.
(module
(func (export "eq") (param $x v128) (param $y v128) (result v128) ({lane_type}.eq (local.get $x) (local.get $y)))
(func (export "ne") (param $x v128) (param $y v128) (result v128) ({lane_type}.ne (local.get $x) (local.get $y)))
(func (export "lt_s") (param $x v128) (param $y v128) (result v128) ({lane_type}.lt_s (local.get $x) (local.get $y)))
(func (export "le_s") (param $x v128) (param $y v128) (result v128) ({lane_type}.le_s (local.get $x) (local.get $y)))
(func (export "gt_s") (param $x v128) (param $y v128) (result v128) ({lane_type}.gt_s (local.get $x) (local.get $y)))
(func (export "ge_s") (param $x v128) (param $y v128) (result v128) ({lane_type}.ge_s (local.get $x) (local.get $y)))
)
{normal_case}
;; Type check
(assert_invalid (module (func (result v128) ({lane_type}.eq (i32.const 0) (f32.const 0)))) "type mismatch")
(assert_invalid (module (func (result v128) ({lane_type}.ne (i32.const 0) (f32.const 0)))) "type mismatch")
(assert_invalid (module (func (result v128) ({lane_type}.ge_s (i32.const 0) (f32.const 0)))) "type mismatch")
(assert_invalid (module (func (result v128) ({lane_type}.gt_s (i32.const 0) (f32.const 0)))) "type mismatch")
(assert_invalid (module (func (result v128) ({lane_type}.le_s (i32.const 0) (f32.const 0)))) "type mismatch")
(assert_invalid (module (func (result v128) ({lane_type}.lt_s (i32.const 0) (f32.const 0)))) "type mismatch")
"""
def get_case_data(self):
forms = ['i64x2'] * 3
case_data = []
case_data.append(['#', 'eq'])
case_data.append(['#', 'i64x2.eq (i64x2) (i64x2)'])
case_data.append(['eq', ['0xFFFFFFFFFFFFFFFF', '0xFFFFFFFFFFFFFFFF'], '-1', forms])
case_data.append(['eq', ['0x0000000000000000', '0x0000000000000000'], '-1', forms])
case_data.append(['eq', ['0xF0F0F0F0F0F0F0F0', '0xF0F0F0F0F0F0F0F0'], '-1', forms])
case_data.append(['eq', ['0x0F0F0F0F0F0F0F0F', '0x0F0F0F0F0F0F0F0F'], '-1', forms])
case_data.append(['eq', [['0xFFFFFFFFFFFFFFFF', '0x0000000000000000'], ['0xFFFFFFFFFFFFFFFF', '0x0000000000000000']], '-1', forms])
case_data.append(['eq', [['0x0000000000000000', '0xFFFFFFFFFFFFFFFF'], ['0x0000000000000000', '0xFFFFFFFFFFFFFFFF']], '-1', forms])
case_data.append(['eq', [['0x03020100', '0x11100904', '0x1A0B0A12', '0xFFABAA1B'],
['0x03020100', '0x11100904', '0x1A0B0A12', '0xFFABAA1B']], '-1', forms])
case_data.append(['eq', ['0xFFFFFFFFFFFFFFFF', '0x0FFFFFFFFFFFFFFF'], '0', forms])
case_data.append(['eq', ['0x1', '0x2'], '0', forms])
case_data.append(['#', 'ne'])
case_data.append(['#', 'i64x2.ne (i64x2) (i64x2)'])
# hex vs hex
case_data.append(['#', 'hex vs hex'])
case_data.append(['ne', ['0xFFFFFFFFFFFFFFFF', '0xFFFFFFFFFFFFFFFF'], '0', forms])
case_data.append(['ne', ['0x0000000000000000', '0x0000000000000000'], '0', forms])
case_data.append(['ne', ['0xF0F0F0F0F0F0F0F0', '0xF0F0F0F0F0F0F0F0'], '0', forms])
case_data.append(['ne', ['0x0F0F0F0F0F0F0F0F', '0x0F0F0F0F0F0F0F0F'], '0', forms])
case_data.append(['ne', [['0xFFFFFFFFFFFFFFFF', '0x0000000000000000'], ['0xFFFFFFFFFFFFFFFF', '0x0000000000000000']], '0', forms])
case_data.append(['ne', [['0x0000000000000000', '0xFFFFFFFFFFFFFFFF'], ['0x0000000000000000', '0xFFFFFFFFFFFFFFFF']], '0', forms])
case_data.append(['ne', [['0x03020100', '0x11100904', '0x1A0B0A12', '0xFFABAA1B'],
['0x03020100', '0x11100904', '0x1A0B0A12', '0xFFABAA1B']], '0', forms])
# lt_s
# i64x2.lt_s (i64x2) (i64x2)
case_data.append(['#', 'lt_s'])
case_data.append(['#', 'i64x2.lt_s (i64x2) (i64x2)'])
# hex vs hex
case_data.append(['#', 'hex vs hex'])
case_data.append(['lt_s', ['0xFFFFFFFFFFFFFFFF', '0xFFFFFFFFFFFFFFFF'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', ['0x0000000000000000', '0x0000000000000000'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', ['0xF0F0F0F0F0F0F0F0', '0xF0F0F0F0F0F0F0F0'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', ['0x0F0F0F0F0F0F0F0F', '0x0F0F0F0F0F0F0F0F'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', [['0xFFFFFFFFFFFFFFFF', '0x0000000000000000'], ['0xFFFFFFFFFFFFFFFF', '0x0000000000000000']], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', [['0x0000000000000000', '0xFFFFFFFFFFFFFFFF'], ['0x0000000000000000', '0xFFFFFFFFFFFFFFFF']], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', [['0x0302010011100904', '0x1A0B0A12FFABAA1B'],
['0x0302010011100904', '0x1A0B0A12FFABAA1B']], '0', ['i64x2', 'i64x2', 'i64x2']])
# hex vs dec
case_data.append(['#', 'hex vs dec'])
case_data.append(['lt_s', ['0xFFFFFFFFFFFFFFFF', '18446744073709551615'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', ['0xFFFFFFFFFFFFFFFF', '-1'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', ['0x8080808080808080', '9259542123273814144'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', ['0x8080808080808080', '-9187201950435737472'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', [['0x8382818000FFFEFD', '0x7F020100FFFEFD80'],
['-8970465120996032771', '9151878496576798080']], '0', ['i64x2', 'i64x2', 'i64x2']])
# dec vs dec
case_data.append(['#', 'dec vs dec'])
case_data.append(['lt_s', ['-1', '-1'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', ['0', '0'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', ['18446744073709551615', '18446744073709551615'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', ['18446744073709551615', '-1'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', [['18446744073709551615', '0'], ['18446744073709551615', '0']], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', [['0', '18446744073709551615'], ['0', '18446744073709551615']], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['lt_s', [['-9223372036854775807', '18446744073709551615'],
['9223372036854775809', '-1']], '0', ['i64x2', 'i64x2', 'i64x2']])
# hex vs float
case_data.append(['#', 'hex vs float'])
case_data.append(['lt_s', [['0xc060000000000000', '0xc05fc00000000000'],
['-128.0', '-127.0']], '0', ['i64x2', 'f64x2', 'i64x2']])
case_data.append(['lt_s', [['0x3ff0000000000000', '0x405fc00000000000'],
['1.0', '127.0']], '0', ['i64x2', 'f64x2', 'i64x2']])
# le_s
# i64x2.le_s (i64x2) (i64x2)
case_data.append(['#', 'le_s'])
case_data.append(['#', 'i64x2.le_s (i64x2) (i64x2)'])
# hex vs hex
case_data.append(['#', 'hex vs hex'])
case_data.append(['le_s', ['0xFFFFFFFFFFFFFFFF', '0xFFFFFFFFFFFFFFFF'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', ['0x0000000000000000', '0x0000000000000000'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', ['0xF0F0F0F0F0F0F0F0', '0xF0F0F0F0F0F0F0F0'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', ['0x0F0F0F0F0F0F0F0F', '0x0F0F0F0F0F0F0F0F'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', [['0xFFFFFFFFFFFFFFFF', '0x0000000000000000'], ['0xFFFFFFFFFFFFFFFF', '0x0000000000000000']], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', [['0x0000000000000000', '0xFFFFFFFFFFFFFFFF'], ['0x0000000000000000', '0xFFFFFFFFFFFFFFFF']], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', [['0x0302010011100904', '0x1A0B0A12FFABAA1B'],
['0x0302010011100904', '0x1A0B0A12FFABAA1B']], '-1', ['i64x2', 'i64x2', 'i64x2']])
# hex vs dec
case_data.append(['#', 'hex vs dec'])
case_data.append(['le_s', ['0xFFFFFFFFFFFFFFFF', '18446744073709551615'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', ['0xFFFFFFFFFFFFFFFF', '-1'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', ['0x8080808080808080', '9259542123273814144'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', ['0x8080808080808080', '-9187201950435737472'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', [['0x8382818000FFFEFD', '0x7F020100FFFEFD80'],
['-8970465120996032771', '9151878496576798080']], '-1', ['i64x2', 'i64x2', 'i64x2']])
# dec vs dec
case_data.append(['#', 'dec vs dec'])
case_data.append(['le_s', ['-1', '-1'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', ['0', '0'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', ['18446744073709551615', '18446744073709551615'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', ['18446744073709551615', '-1'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', [['18446744073709551615', '0'], ['18446744073709551615', '0']], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', [['0', '18446744073709551615'], ['0', '18446744073709551615']], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['le_s', [['-9223372036854775807', '18446744073709551615'],
['9223372036854775809', '-1']], '-1', ['i64x2', 'i64x2', 'i64x2']])
# hex vs float
case_data.append(['#', 'hex vs float'])
case_data.append(['le_s', [['0xc060000000000000', '0xc05fc00000000000'],
['-128.0', '-127.0']], '-1', ['i64x2', 'f64x2', 'i64x2']])
case_data.append(['le_s', [['0x3ff0000000000000', '0x405fc00000000000'],
['1.0', '127.0']], '-1', ['i64x2', 'f64x2', 'i64x2']])
# gt_s
# i64x2.gt_s (i64x2) (i64x2)
case_data.append(['#', 'gt_s'])
case_data.append(['#', 'i64x2.gt_s (i64x2) (i64x2)'])
# hex vs hex
case_data.append(['#', 'hex vs hex'])
case_data.append(['gt_s', ['0xFFFFFFFFFFFFFFFF', '0xFFFFFFFFFFFFFFFF'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', ['0x0000000000000000', '0x0000000000000000'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', ['0xF0F0F0F0F0F0F0F0', '0xF0F0F0F0F0F0F0F0'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', ['0x0F0F0F0F0F0F0F0F', '0x0F0F0F0F0F0F0F0F'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', [['0xFFFFFFFFFFFFFFFF', '0x0000000000000000'], ['0xFFFFFFFFFFFFFFFF', '0x0000000000000000']], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', [['0x0000000000000000', '0xFFFFFFFFFFFFFFFF'], ['0x0000000000000000', '0xFFFFFFFFFFFFFFFF']], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', [['0x0302010011100904', '0x1A0B0A12FFABAA1B'],
['0x0302010011100904', '0x1A0B0A12FFABAA1B']], '0', ['i64x2', 'i64x2', 'i64x2']])
# hex vs dec
case_data.append(['#', 'hex vs dec'])
case_data.append(['gt_s', ['0xFFFFFFFFFFFFFFFF', '18446744073709551615'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', ['0xFFFFFFFFFFFFFFFF', '-1'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', ['0x8080808080808080', '9259542123273814144'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', ['0x8080808080808080', '-9187201950435737472'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', [['0x8382818000FFFEFD', '0x7F020100FFFEFD80'],
['-8970465120996032771', '9151878496576798080']], '0', ['i64x2', 'i64x2', 'i64x2']])
# dec vs dec
case_data.append(['#', 'dec vs dec'])
case_data.append(['gt_s', ['-1', '-1'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', ['0', '0'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', ['18446744073709551615', '18446744073709551615'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', ['18446744073709551615', '-1'], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', [['18446744073709551615', '0'], ['18446744073709551615', '0']], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', [['0', '18446744073709551615'], ['0', '18446744073709551615']], '0', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['gt_s', [['-9223372036854775807', '18446744073709551615'],
['9223372036854775809', '-1']], '0', ['i64x2', 'i64x2', 'i64x2']])
# hex vs float
case_data.append(['#', 'hex vs float'])
case_data.append(['gt_s', [['0xc060000000000000', '0xc05fc00000000000'],
['-128.0', '-127.0']], '0', ['i64x2', 'f64x2', 'i64x2']])
case_data.append(['gt_s', [['0x3ff0000000000000', '0x405fc00000000000'],
['1.0', '127.0']], '0', ['i64x2', 'f64x2', 'i64x2']])
# ge_s
# i64x2.ge_s (i64x2) (i64x2)
case_data.append(['#', 'ge_s'])
case_data.append(['#', 'i64x2.ge_s (i64x2) (i64x2)'])
# hex vs hex
case_data.append(['#', 'hex vs hex'])
case_data.append(['ge_s', ['0xFFFFFFFFFFFFFFFF', '0xFFFFFFFFFFFFFFFF'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', ['0x0000000000000000', '0x0000000000000000'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', ['0xF0F0F0F0F0F0F0F0', '0xF0F0F0F0F0F0F0F0'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', ['0x0F0F0F0F0F0F0F0F', '0x0F0F0F0F0F0F0F0F'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', [['0xFFFFFFFFFFFFFFFF', '0x0000000000000000'], ['0xFFFFFFFFFFFFFFFF', '0x0000000000000000']], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', [['0x0000000000000000', '0xFFFFFFFFFFFFFFFF'], ['0x0000000000000000', '0xFFFFFFFFFFFFFFFF']], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', [['0x0302010011100904', '0x1A0B0A12FFABAA1B'],
['0x0302010011100904', '0x1A0B0A12FFABAA1B']], '-1', ['i64x2', 'i64x2', 'i64x2']])
# hex vs dec
case_data.append(['#', 'hex vs dec'])
case_data.append(['ge_s', ['0xFFFFFFFFFFFFFFFF', '18446744073709551615'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', ['0xFFFFFFFFFFFFFFFF', '-1'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', ['0x8080808080808080', '9259542123273814144'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', ['0x8080808080808080', '-9187201950435737472'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', [['0x8382818000FFFEFD', '0x7F020100FFFEFD80'],
['-8970465120996032771', '9151878496576798080']], '-1', ['i64x2', 'i64x2', 'i64x2']])
# dec vs dec
case_data.append(['#', 'dec vs dec'])
case_data.append(['ge_s', ['-1', '-1'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', ['0', '0'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', ['18446744073709551615', '18446744073709551615'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', ['18446744073709551615', '-1'], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', [['18446744073709551615', '0'], ['18446744073709551615', '0']], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', [['0', '18446744073709551615'], ['0', '18446744073709551615']], '-1', ['i64x2', 'i64x2', 'i64x2']])
case_data.append(['ge_s', [['-9223372036854775807', '18446744073709551615'],
['9223372036854775809', '-1']], '-1', ['i64x2', 'i64x2', 'i64x2']])
# hex vs float
case_data.append(['#', 'hex vs float'])
case_data.append(['ge_s', [['0xc060000000000000', '0xc05fc00000000000'],
['-128.0', '-127.0']], '-1', ['i64x2', 'f64x2', 'i64x2']])
case_data.append(['ge_s', [['0x3ff0000000000000', '0x405fc00000000000'],
['1.0', '127.0']], '-1', ['i64x2', 'f64x2', 'i64x2']])
return case_data
def gen_test_cases():
i64x2 = Simdi64x2CmpCase()
i64x2.gen_test_cases()
if __name__ == '__main__':
i64x2 = Simdi64x2CmpCase()
i64x2.gen_test_cases()
| 67.796813
| 163
| 0.578422
| 1,737
| 17,017
| 5.503742
| 0.064479
| 0.169456
| 0.188912
| 0.145084
| 0.932845
| 0.893515
| 0.872594
| 0.808264
| 0.781381
| 0.767364
| 0
| 0.28806
| 0.183992
| 17,017
| 250
| 164
| 68.068
| 0.400403
| 0.026385
| 0
| 0.222826
| 1
| 0.065217
| 0.481439
| 0
| 0
| 0
| 0.17763
| 0
| 0.032609
| 1
| 0.01087
| false
| 0
| 0.005435
| 0
| 0.043478
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
7efe49b85162304914bfd6acd764912d4e9b90f7
| 39,890
|
py
|
Python
|
sdk/python/pulumi_aws/ecs/task_definition.py
|
jen20/pulumi-aws
|
172e00c642adc03238f89cc9c5a16b914a77c2b1
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_aws/ecs/task_definition.py
|
jen20/pulumi-aws
|
172e00c642adc03238f89cc9c5a16b914a77c2b1
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_aws/ecs/task_definition.py
|
jen20/pulumi-aws
|
172e00c642adc03238f89cc9c5a16b914a77c2b1
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities, _tables
from . import outputs
from ._inputs import *
__all__ = ['TaskDefinitionArgs', 'TaskDefinition']
@pulumi.input_type
class TaskDefinitionArgs:
def __init__(__self__, *,
container_definitions: pulumi.Input[str],
family: pulumi.Input[str],
cpu: Optional[pulumi.Input[str]] = None,
execution_role_arn: Optional[pulumi.Input[str]] = None,
inference_accelerators: Optional[pulumi.Input[Sequence[pulumi.Input['TaskDefinitionInferenceAcceleratorArgs']]]] = None,
ipc_mode: Optional[pulumi.Input[str]] = None,
memory: Optional[pulumi.Input[str]] = None,
network_mode: Optional[pulumi.Input[str]] = None,
pid_mode: Optional[pulumi.Input[str]] = None,
placement_constraints: Optional[pulumi.Input[Sequence[pulumi.Input['TaskDefinitionPlacementConstraintArgs']]]] = None,
proxy_configuration: Optional[pulumi.Input['TaskDefinitionProxyConfigurationArgs']] = None,
requires_compatibilities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
task_role_arn: Optional[pulumi.Input[str]] = None,
volumes: Optional[pulumi.Input[Sequence[pulumi.Input['TaskDefinitionVolumeArgs']]]] = None):
"""
The set of arguments for constructing a TaskDefinition resource.
:param pulumi.Input[str] container_definitions: A list of valid [container
definitions](http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html)
provided as a single valid JSON document. Please note that you should only
provide values that are part of the container definition document. For a
detailed description of what parameters are available, see the [Task Definition
Parameters](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html)
section from the official [Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide).
:param pulumi.Input[str] family: A unique name for your task definition.
:param pulumi.Input[str] cpu: The number of cpu units used by the task. If the `requires_compatibilities` is `FARGATE` this field is required.
:param pulumi.Input[str] execution_role_arn: The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
:param pulumi.Input[Sequence[pulumi.Input['TaskDefinitionInferenceAcceleratorArgs']]] inference_accelerators: Configuration block(s) with Inference Accelerators settings. Detailed below.
:param pulumi.Input[str] ipc_mode: The IPC resource namespace to be used for the containers in the task The valid values are `host`, `task`, and `none`.
:param pulumi.Input[str] memory: The amount (in MiB) of memory used by the task. If the `requires_compatibilities` is `FARGATE` this field is required.
:param pulumi.Input[str] network_mode: The Docker networking mode to use for the containers in the task. The valid values are `none`, `bridge`, `awsvpc`, and `host`.
:param pulumi.Input[str] pid_mode: The process namespace to use for the containers in the task. The valid values are `host` and `task`.
:param pulumi.Input[Sequence[pulumi.Input['TaskDefinitionPlacementConstraintArgs']]] placement_constraints: A set of placement constraints rules that are taken into consideration during task placement. Maximum number of `placement_constraints` is `10`.
:param pulumi.Input['TaskDefinitionProxyConfigurationArgs'] proxy_configuration: The proxy configuration details for the App Mesh proxy.
:param pulumi.Input[Sequence[pulumi.Input[str]]] requires_compatibilities: A set of launch types required by the task. The valid values are `EC2` and `FARGATE`.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value map of resource tags
:param pulumi.Input[str] task_role_arn: The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
:param pulumi.Input[Sequence[pulumi.Input['TaskDefinitionVolumeArgs']]] volumes: A set of volume blocks that containers in your task may use.
"""
pulumi.set(__self__, "container_definitions", container_definitions)
pulumi.set(__self__, "family", family)
if cpu is not None:
pulumi.set(__self__, "cpu", cpu)
if execution_role_arn is not None:
pulumi.set(__self__, "execution_role_arn", execution_role_arn)
if inference_accelerators is not None:
pulumi.set(__self__, "inference_accelerators", inference_accelerators)
if ipc_mode is not None:
pulumi.set(__self__, "ipc_mode", ipc_mode)
if memory is not None:
pulumi.set(__self__, "memory", memory)
if network_mode is not None:
pulumi.set(__self__, "network_mode", network_mode)
if pid_mode is not None:
pulumi.set(__self__, "pid_mode", pid_mode)
if placement_constraints is not None:
pulumi.set(__self__, "placement_constraints", placement_constraints)
if proxy_configuration is not None:
pulumi.set(__self__, "proxy_configuration", proxy_configuration)
if requires_compatibilities is not None:
pulumi.set(__self__, "requires_compatibilities", requires_compatibilities)
if tags is not None:
pulumi.set(__self__, "tags", tags)
if task_role_arn is not None:
pulumi.set(__self__, "task_role_arn", task_role_arn)
if volumes is not None:
pulumi.set(__self__, "volumes", volumes)
@property
@pulumi.getter(name="containerDefinitions")
def container_definitions(self) -> pulumi.Input[str]:
"""
A list of valid [container
definitions](http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html)
provided as a single valid JSON document. Please note that you should only
provide values that are part of the container definition document. For a
detailed description of what parameters are available, see the [Task Definition
Parameters](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html)
section from the official [Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide).
"""
return pulumi.get(self, "container_definitions")
@container_definitions.setter
def container_definitions(self, value: pulumi.Input[str]):
pulumi.set(self, "container_definitions", value)
@property
@pulumi.getter
def family(self) -> pulumi.Input[str]:
"""
A unique name for your task definition.
"""
return pulumi.get(self, "family")
@family.setter
def family(self, value: pulumi.Input[str]):
pulumi.set(self, "family", value)
@property
@pulumi.getter
def cpu(self) -> Optional[pulumi.Input[str]]:
"""
The number of cpu units used by the task. If the `requires_compatibilities` is `FARGATE` this field is required.
"""
return pulumi.get(self, "cpu")
@cpu.setter
def cpu(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "cpu", value)
@property
@pulumi.getter(name="executionRoleArn")
def execution_role_arn(self) -> Optional[pulumi.Input[str]]:
"""
The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
"""
return pulumi.get(self, "execution_role_arn")
@execution_role_arn.setter
def execution_role_arn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "execution_role_arn", value)
@property
@pulumi.getter(name="inferenceAccelerators")
def inference_accelerators(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['TaskDefinitionInferenceAcceleratorArgs']]]]:
"""
Configuration block(s) with Inference Accelerators settings. Detailed below.
"""
return pulumi.get(self, "inference_accelerators")
@inference_accelerators.setter
def inference_accelerators(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['TaskDefinitionInferenceAcceleratorArgs']]]]):
pulumi.set(self, "inference_accelerators", value)
@property
@pulumi.getter(name="ipcMode")
def ipc_mode(self) -> Optional[pulumi.Input[str]]:
"""
The IPC resource namespace to be used for the containers in the task The valid values are `host`, `task`, and `none`.
"""
return pulumi.get(self, "ipc_mode")
@ipc_mode.setter
def ipc_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "ipc_mode", value)
@property
@pulumi.getter
def memory(self) -> Optional[pulumi.Input[str]]:
"""
The amount (in MiB) of memory used by the task. If the `requires_compatibilities` is `FARGATE` this field is required.
"""
return pulumi.get(self, "memory")
@memory.setter
def memory(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "memory", value)
@property
@pulumi.getter(name="networkMode")
def network_mode(self) -> Optional[pulumi.Input[str]]:
"""
The Docker networking mode to use for the containers in the task. The valid values are `none`, `bridge`, `awsvpc`, and `host`.
"""
return pulumi.get(self, "network_mode")
@network_mode.setter
def network_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "network_mode", value)
@property
@pulumi.getter(name="pidMode")
def pid_mode(self) -> Optional[pulumi.Input[str]]:
"""
The process namespace to use for the containers in the task. The valid values are `host` and `task`.
"""
return pulumi.get(self, "pid_mode")
@pid_mode.setter
def pid_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "pid_mode", value)
@property
@pulumi.getter(name="placementConstraints")
def placement_constraints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['TaskDefinitionPlacementConstraintArgs']]]]:
"""
A set of placement constraints rules that are taken into consideration during task placement. Maximum number of `placement_constraints` is `10`.
"""
return pulumi.get(self, "placement_constraints")
@placement_constraints.setter
def placement_constraints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['TaskDefinitionPlacementConstraintArgs']]]]):
pulumi.set(self, "placement_constraints", value)
@property
@pulumi.getter(name="proxyConfiguration")
def proxy_configuration(self) -> Optional[pulumi.Input['TaskDefinitionProxyConfigurationArgs']]:
"""
The proxy configuration details for the App Mesh proxy.
"""
return pulumi.get(self, "proxy_configuration")
@proxy_configuration.setter
def proxy_configuration(self, value: Optional[pulumi.Input['TaskDefinitionProxyConfigurationArgs']]):
pulumi.set(self, "proxy_configuration", value)
@property
@pulumi.getter(name="requiresCompatibilities")
def requires_compatibilities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
A set of launch types required by the task. The valid values are `EC2` and `FARGATE`.
"""
return pulumi.get(self, "requires_compatibilities")
@requires_compatibilities.setter
def requires_compatibilities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "requires_compatibilities", value)
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
Key-value map of resource tags
"""
return pulumi.get(self, "tags")
@tags.setter
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "tags", value)
@property
@pulumi.getter(name="taskRoleArn")
def task_role_arn(self) -> Optional[pulumi.Input[str]]:
"""
The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
"""
return pulumi.get(self, "task_role_arn")
@task_role_arn.setter
def task_role_arn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "task_role_arn", value)
@property
@pulumi.getter
def volumes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['TaskDefinitionVolumeArgs']]]]:
"""
A set of volume blocks that containers in your task may use.
"""
return pulumi.get(self, "volumes")
@volumes.setter
def volumes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['TaskDefinitionVolumeArgs']]]]):
pulumi.set(self, "volumes", value)
class TaskDefinition(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
container_definitions: Optional[pulumi.Input[str]] = None,
cpu: Optional[pulumi.Input[str]] = None,
execution_role_arn: Optional[pulumi.Input[str]] = None,
family: Optional[pulumi.Input[str]] = None,
inference_accelerators: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionInferenceAcceleratorArgs']]]]] = None,
ipc_mode: Optional[pulumi.Input[str]] = None,
memory: Optional[pulumi.Input[str]] = None,
network_mode: Optional[pulumi.Input[str]] = None,
pid_mode: Optional[pulumi.Input[str]] = None,
placement_constraints: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionPlacementConstraintArgs']]]]] = None,
proxy_configuration: Optional[pulumi.Input[pulumi.InputType['TaskDefinitionProxyConfigurationArgs']]] = None,
requires_compatibilities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
task_role_arn: Optional[pulumi.Input[str]] = None,
volumes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionVolumeArgs']]]]] = None,
__props__=None,
__name__=None,
__opts__=None):
"""
Manages a revision of an ECS task definition to be used in `ecs.Service`.
## Example Usage
```python
import pulumi
import json
import pulumi_aws as aws
service = aws.ecs.TaskDefinition("service",
family="service",
container_definitions=json.dumps([
{
"name": "first",
"image": "service-first",
"cpu": 10,
"memory": 512,
"essential": True,
"portMappings": [{
"containerPort": 80,
"hostPort": 80,
}],
},
{
"name": "second",
"image": "service-second",
"cpu": 10,
"memory": 256,
"essential": True,
"portMappings": [{
"containerPort": 443,
"hostPort": 443,
}],
},
]),
volumes=[aws.ecs.TaskDefinitionVolumeArgs(
name="service-storage",
host_path="/ecs/service-storage",
)],
placement_constraints=[aws.ecs.TaskDefinitionPlacementConstraintArgs(
type="memberOf",
expression="attribute:ecs.availability-zone in [us-west-2a, us-west-2b]",
)])
```
### With AppMesh Proxy
```python
import pulumi
import pulumi_aws as aws
service = aws.ecs.TaskDefinition("service",
family="service",
container_definitions=(lambda path: open(path).read())("task-definitions/service.json"),
proxy_configuration=aws.ecs.TaskDefinitionProxyConfigurationArgs(
type="APPMESH",
container_name="applicationContainerName",
properties={
"AppPorts": "8080",
"EgressIgnoredIPs": "169.254.170.2,169.254.169.254",
"IgnoredUID": "1337",
"ProxyEgressPort": "15001",
"ProxyIngressPort": "15000",
},
))
```
## Import
ECS Task Definitions can be imported via their Amazon Resource Name (ARN)
```sh
$ pulumi import aws:ecs/taskDefinition:TaskDefinition example arn:aws:ecs:us-east-1:012345678910:task-definition/mytaskfamily:123
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] container_definitions: A list of valid [container
definitions](http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html)
provided as a single valid JSON document. Please note that you should only
provide values that are part of the container definition document. For a
detailed description of what parameters are available, see the [Task Definition
Parameters](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html)
section from the official [Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide).
:param pulumi.Input[str] cpu: The number of cpu units used by the task. If the `requires_compatibilities` is `FARGATE` this field is required.
:param pulumi.Input[str] execution_role_arn: The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
:param pulumi.Input[str] family: A unique name for your task definition.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionInferenceAcceleratorArgs']]]] inference_accelerators: Configuration block(s) with Inference Accelerators settings. Detailed below.
:param pulumi.Input[str] ipc_mode: The IPC resource namespace to be used for the containers in the task The valid values are `host`, `task`, and `none`.
:param pulumi.Input[str] memory: The amount (in MiB) of memory used by the task. If the `requires_compatibilities` is `FARGATE` this field is required.
:param pulumi.Input[str] network_mode: The Docker networking mode to use for the containers in the task. The valid values are `none`, `bridge`, `awsvpc`, and `host`.
:param pulumi.Input[str] pid_mode: The process namespace to use for the containers in the task. The valid values are `host` and `task`.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionPlacementConstraintArgs']]]] placement_constraints: A set of placement constraints rules that are taken into consideration during task placement. Maximum number of `placement_constraints` is `10`.
:param pulumi.Input[pulumi.InputType['TaskDefinitionProxyConfigurationArgs']] proxy_configuration: The proxy configuration details for the App Mesh proxy.
:param pulumi.Input[Sequence[pulumi.Input[str]]] requires_compatibilities: A set of launch types required by the task. The valid values are `EC2` and `FARGATE`.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value map of resource tags
:param pulumi.Input[str] task_role_arn: The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionVolumeArgs']]]] volumes: A set of volume blocks that containers in your task may use.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: TaskDefinitionArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Manages a revision of an ECS task definition to be used in `ecs.Service`.
## Example Usage
```python
import pulumi
import json
import pulumi_aws as aws
service = aws.ecs.TaskDefinition("service",
family="service",
container_definitions=json.dumps([
{
"name": "first",
"image": "service-first",
"cpu": 10,
"memory": 512,
"essential": True,
"portMappings": [{
"containerPort": 80,
"hostPort": 80,
}],
},
{
"name": "second",
"image": "service-second",
"cpu": 10,
"memory": 256,
"essential": True,
"portMappings": [{
"containerPort": 443,
"hostPort": 443,
}],
},
]),
volumes=[aws.ecs.TaskDefinitionVolumeArgs(
name="service-storage",
host_path="/ecs/service-storage",
)],
placement_constraints=[aws.ecs.TaskDefinitionPlacementConstraintArgs(
type="memberOf",
expression="attribute:ecs.availability-zone in [us-west-2a, us-west-2b]",
)])
```
### With AppMesh Proxy
```python
import pulumi
import pulumi_aws as aws
service = aws.ecs.TaskDefinition("service",
family="service",
container_definitions=(lambda path: open(path).read())("task-definitions/service.json"),
proxy_configuration=aws.ecs.TaskDefinitionProxyConfigurationArgs(
type="APPMESH",
container_name="applicationContainerName",
properties={
"AppPorts": "8080",
"EgressIgnoredIPs": "169.254.170.2,169.254.169.254",
"IgnoredUID": "1337",
"ProxyEgressPort": "15001",
"ProxyIngressPort": "15000",
},
))
```
## Import
ECS Task Definitions can be imported via their Amazon Resource Name (ARN)
```sh
$ pulumi import aws:ecs/taskDefinition:TaskDefinition example arn:aws:ecs:us-east-1:012345678910:task-definition/mytaskfamily:123
```
:param str resource_name: The name of the resource.
:param TaskDefinitionArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(TaskDefinitionArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
container_definitions: Optional[pulumi.Input[str]] = None,
cpu: Optional[pulumi.Input[str]] = None,
execution_role_arn: Optional[pulumi.Input[str]] = None,
family: Optional[pulumi.Input[str]] = None,
inference_accelerators: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionInferenceAcceleratorArgs']]]]] = None,
ipc_mode: Optional[pulumi.Input[str]] = None,
memory: Optional[pulumi.Input[str]] = None,
network_mode: Optional[pulumi.Input[str]] = None,
pid_mode: Optional[pulumi.Input[str]] = None,
placement_constraints: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionPlacementConstraintArgs']]]]] = None,
proxy_configuration: Optional[pulumi.Input[pulumi.InputType['TaskDefinitionProxyConfigurationArgs']]] = None,
requires_compatibilities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
task_role_arn: Optional[pulumi.Input[str]] = None,
volumes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionVolumeArgs']]]]] = None,
__props__=None,
__name__=None,
__opts__=None):
if __name__ is not None:
warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning)
resource_name = __name__
if __opts__ is not None:
warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning)
opts = __opts__
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = dict()
if container_definitions is None and not opts.urn:
raise TypeError("Missing required property 'container_definitions'")
__props__['container_definitions'] = container_definitions
__props__['cpu'] = cpu
__props__['execution_role_arn'] = execution_role_arn
if family is None and not opts.urn:
raise TypeError("Missing required property 'family'")
__props__['family'] = family
__props__['inference_accelerators'] = inference_accelerators
__props__['ipc_mode'] = ipc_mode
__props__['memory'] = memory
__props__['network_mode'] = network_mode
__props__['pid_mode'] = pid_mode
__props__['placement_constraints'] = placement_constraints
__props__['proxy_configuration'] = proxy_configuration
__props__['requires_compatibilities'] = requires_compatibilities
__props__['tags'] = tags
__props__['task_role_arn'] = task_role_arn
__props__['volumes'] = volumes
__props__['arn'] = None
__props__['revision'] = None
super(TaskDefinition, __self__).__init__(
'aws:ecs/taskDefinition:TaskDefinition',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
arn: Optional[pulumi.Input[str]] = None,
container_definitions: Optional[pulumi.Input[str]] = None,
cpu: Optional[pulumi.Input[str]] = None,
execution_role_arn: Optional[pulumi.Input[str]] = None,
family: Optional[pulumi.Input[str]] = None,
inference_accelerators: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionInferenceAcceleratorArgs']]]]] = None,
ipc_mode: Optional[pulumi.Input[str]] = None,
memory: Optional[pulumi.Input[str]] = None,
network_mode: Optional[pulumi.Input[str]] = None,
pid_mode: Optional[pulumi.Input[str]] = None,
placement_constraints: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionPlacementConstraintArgs']]]]] = None,
proxy_configuration: Optional[pulumi.Input[pulumi.InputType['TaskDefinitionProxyConfigurationArgs']]] = None,
requires_compatibilities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
revision: Optional[pulumi.Input[int]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
task_role_arn: Optional[pulumi.Input[str]] = None,
volumes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionVolumeArgs']]]]] = None) -> 'TaskDefinition':
"""
Get an existing TaskDefinition resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] arn: Full ARN of the Task Definition (including both `family` and `revision`).
:param pulumi.Input[str] container_definitions: A list of valid [container
definitions](http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html)
provided as a single valid JSON document. Please note that you should only
provide values that are part of the container definition document. For a
detailed description of what parameters are available, see the [Task Definition
Parameters](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html)
section from the official [Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide).
:param pulumi.Input[str] cpu: The number of cpu units used by the task. If the `requires_compatibilities` is `FARGATE` this field is required.
:param pulumi.Input[str] execution_role_arn: The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
:param pulumi.Input[str] family: A unique name for your task definition.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionInferenceAcceleratorArgs']]]] inference_accelerators: Configuration block(s) with Inference Accelerators settings. Detailed below.
:param pulumi.Input[str] ipc_mode: The IPC resource namespace to be used for the containers in the task The valid values are `host`, `task`, and `none`.
:param pulumi.Input[str] memory: The amount (in MiB) of memory used by the task. If the `requires_compatibilities` is `FARGATE` this field is required.
:param pulumi.Input[str] network_mode: The Docker networking mode to use for the containers in the task. The valid values are `none`, `bridge`, `awsvpc`, and `host`.
:param pulumi.Input[str] pid_mode: The process namespace to use for the containers in the task. The valid values are `host` and `task`.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionPlacementConstraintArgs']]]] placement_constraints: A set of placement constraints rules that are taken into consideration during task placement. Maximum number of `placement_constraints` is `10`.
:param pulumi.Input[pulumi.InputType['TaskDefinitionProxyConfigurationArgs']] proxy_configuration: The proxy configuration details for the App Mesh proxy.
:param pulumi.Input[Sequence[pulumi.Input[str]]] requires_compatibilities: A set of launch types required by the task. The valid values are `EC2` and `FARGATE`.
:param pulumi.Input[int] revision: The revision of the task in a particular family.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value map of resource tags
:param pulumi.Input[str] task_role_arn: The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TaskDefinitionVolumeArgs']]]] volumes: A set of volume blocks that containers in your task may use.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = dict()
__props__["arn"] = arn
__props__["container_definitions"] = container_definitions
__props__["cpu"] = cpu
__props__["execution_role_arn"] = execution_role_arn
__props__["family"] = family
__props__["inference_accelerators"] = inference_accelerators
__props__["ipc_mode"] = ipc_mode
__props__["memory"] = memory
__props__["network_mode"] = network_mode
__props__["pid_mode"] = pid_mode
__props__["placement_constraints"] = placement_constraints
__props__["proxy_configuration"] = proxy_configuration
__props__["requires_compatibilities"] = requires_compatibilities
__props__["revision"] = revision
__props__["tags"] = tags
__props__["task_role_arn"] = task_role_arn
__props__["volumes"] = volumes
return TaskDefinition(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def arn(self) -> pulumi.Output[str]:
"""
Full ARN of the Task Definition (including both `family` and `revision`).
"""
return pulumi.get(self, "arn")
@property
@pulumi.getter(name="containerDefinitions")
def container_definitions(self) -> pulumi.Output[str]:
"""
A list of valid [container
definitions](http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html)
provided as a single valid JSON document. Please note that you should only
provide values that are part of the container definition document. For a
detailed description of what parameters are available, see the [Task Definition
Parameters](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html)
section from the official [Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide).
"""
return pulumi.get(self, "container_definitions")
@property
@pulumi.getter
def cpu(self) -> pulumi.Output[Optional[str]]:
"""
The number of cpu units used by the task. If the `requires_compatibilities` is `FARGATE` this field is required.
"""
return pulumi.get(self, "cpu")
@property
@pulumi.getter(name="executionRoleArn")
def execution_role_arn(self) -> pulumi.Output[Optional[str]]:
"""
The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
"""
return pulumi.get(self, "execution_role_arn")
@property
@pulumi.getter
def family(self) -> pulumi.Output[str]:
"""
A unique name for your task definition.
"""
return pulumi.get(self, "family")
@property
@pulumi.getter(name="inferenceAccelerators")
def inference_accelerators(self) -> pulumi.Output[Optional[Sequence['outputs.TaskDefinitionInferenceAccelerator']]]:
"""
Configuration block(s) with Inference Accelerators settings. Detailed below.
"""
return pulumi.get(self, "inference_accelerators")
@property
@pulumi.getter(name="ipcMode")
def ipc_mode(self) -> pulumi.Output[Optional[str]]:
"""
The IPC resource namespace to be used for the containers in the task The valid values are `host`, `task`, and `none`.
"""
return pulumi.get(self, "ipc_mode")
@property
@pulumi.getter
def memory(self) -> pulumi.Output[Optional[str]]:
"""
The amount (in MiB) of memory used by the task. If the `requires_compatibilities` is `FARGATE` this field is required.
"""
return pulumi.get(self, "memory")
@property
@pulumi.getter(name="networkMode")
def network_mode(self) -> pulumi.Output[str]:
"""
The Docker networking mode to use for the containers in the task. The valid values are `none`, `bridge`, `awsvpc`, and `host`.
"""
return pulumi.get(self, "network_mode")
@property
@pulumi.getter(name="pidMode")
def pid_mode(self) -> pulumi.Output[Optional[str]]:
"""
The process namespace to use for the containers in the task. The valid values are `host` and `task`.
"""
return pulumi.get(self, "pid_mode")
@property
@pulumi.getter(name="placementConstraints")
def placement_constraints(self) -> pulumi.Output[Optional[Sequence['outputs.TaskDefinitionPlacementConstraint']]]:
"""
A set of placement constraints rules that are taken into consideration during task placement. Maximum number of `placement_constraints` is `10`.
"""
return pulumi.get(self, "placement_constraints")
@property
@pulumi.getter(name="proxyConfiguration")
def proxy_configuration(self) -> pulumi.Output[Optional['outputs.TaskDefinitionProxyConfiguration']]:
"""
The proxy configuration details for the App Mesh proxy.
"""
return pulumi.get(self, "proxy_configuration")
@property
@pulumi.getter(name="requiresCompatibilities")
def requires_compatibilities(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
A set of launch types required by the task. The valid values are `EC2` and `FARGATE`.
"""
return pulumi.get(self, "requires_compatibilities")
@property
@pulumi.getter
def revision(self) -> pulumi.Output[int]:
"""
The revision of the task in a particular family.
"""
return pulumi.get(self, "revision")
@property
@pulumi.getter
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
"""
Key-value map of resource tags
"""
return pulumi.get(self, "tags")
@property
@pulumi.getter(name="taskRoleArn")
def task_role_arn(self) -> pulumi.Output[Optional[str]]:
"""
The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
"""
return pulumi.get(self, "task_role_arn")
@property
@pulumi.getter
def volumes(self) -> pulumi.Output[Optional[Sequence['outputs.TaskDefinitionVolume']]]:
"""
A set of volume blocks that containers in your task may use.
"""
return pulumi.get(self, "volumes")
def translate_output_property(self, prop):
return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
def translate_input_property(self, prop):
return _tables.SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop
| 51.404639
| 278
| 0.650038
| 4,431
| 39,890
| 5.699165
| 0.071541
| 0.081456
| 0.057102
| 0.042688
| 0.887697
| 0.851938
| 0.819467
| 0.784778
| 0.761098
| 0.72039
| 0
| 0.005736
| 0.248283
| 39,890
| 775
| 279
| 51.470968
| 0.836424
| 0.437077
| 0
| 0.450135
| 1
| 0
| 0.144292
| 0.082216
| 0
| 0
| 0
| 0
| 0
| 1
| 0.148248
| false
| 0.002695
| 0.018868
| 0.005391
| 0.266846
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ade31fc15973e16a1148473e5e1a8765dfab7db4
| 144
|
py
|
Python
|
stone/blueprints/__init__.py
|
Coderhypo/booklib
|
cd5369f35ec666b3a864a4f1d0e7fcd8c2f64cec
|
[
"MIT"
] | null | null | null |
stone/blueprints/__init__.py
|
Coderhypo/booklib
|
cd5369f35ec666b3a864a4f1d0e7fcd8c2f64cec
|
[
"MIT"
] | 1
|
2021-06-01T22:04:57.000Z
|
2021-06-01T22:04:57.000Z
|
stone/blueprints/__init__.py
|
Coderhypo/booklib
|
cd5369f35ec666b3a864a4f1d0e7fcd8c2f64cec
|
[
"MIT"
] | null | null | null |
from .book import book_blueprint
from .dashboard import dashboard_blueprint
from .index import index_blueprint
from .user import user_blueprint
| 28.8
| 42
| 0.861111
| 20
| 144
| 6
| 0.35
| 0.325
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 144
| 4
| 43
| 36
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 7
|
bc23f22b5c11a4f40feec8ccc3ba635af3b8ac4d
| 199
|
py
|
Python
|
nmigen/lib/cdc.py
|
psumesh/nmigen
|
7d611b8fc1d9e58853ff268ec38ff8f4131a9774
|
[
"BSD-2-Clause"
] | 528
|
2020-01-28T18:21:00.000Z
|
2021-12-09T06:27:51.000Z
|
nmigen/lib/cdc.py
|
psumesh/nmigen
|
7d611b8fc1d9e58853ff268ec38ff8f4131a9774
|
[
"BSD-2-Clause"
] | 360
|
2020-01-28T18:34:30.000Z
|
2021-12-10T08:03:32.000Z
|
nmigen/lib/cdc.py
|
psumesh/nmigen
|
7d611b8fc1d9e58853ff268ec38ff8f4131a9774
|
[
"BSD-2-Clause"
] | 100
|
2020-02-06T21:55:46.000Z
|
2021-11-25T19:20:44.000Z
|
from amaranth.lib.cdc import *
from amaranth.lib.cdc import __all__
import warnings
warnings.warn("instead of nmigen.lib.cdc, use amaranth.lib.cdc",
DeprecationWarning, stacklevel=2)
| 24.875
| 64
| 0.743719
| 27
| 199
| 5.333333
| 0.555556
| 0.166667
| 0.291667
| 0.25
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006024
| 0.165829
| 199
| 7
| 65
| 28.428571
| 0.861446
| 0
| 0
| 0
| 0
| 0
| 0.236181
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
70c0f7653bfa9d2797e5821194b29dadfb9bd95d
| 12,628
|
py
|
Python
|
tests/integration/test_tracer.py
|
shawn-rusaw/aws-lambda-fsm-workflows
|
9fcf5af14bf0f4500d4a7e7b3e0eda00423c1d42
|
[
"Apache-2.0"
] | 21
|
2017-01-26T21:23:57.000Z
|
2021-08-07T02:56:49.000Z
|
tests/integration/test_tracer.py
|
shawn-rusaw/aws-lambda-fsm-workflows
|
9fcf5af14bf0f4500d4a7e7b3e0eda00423c1d42
|
[
"Apache-2.0"
] | 151
|
2016-11-29T05:09:33.000Z
|
2021-05-19T22:47:58.000Z
|
tests/integration/test_tracer.py
|
shawn-rusaw/aws-lambda-fsm-workflows
|
9fcf5af14bf0f4500d4a7e7b3e0eda00423c1d42
|
[
"Apache-2.0"
] | 17
|
2016-11-29T05:07:58.000Z
|
2021-05-04T21:22:29.000Z
|
# Copyright 2016-2020 Workiva Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# system imports
import mock
# library imports
# application imports
from aws_lambda_fsm.fsm import FSM
from aws_lambda_fsm.config import get_current_configuration
from aws_lambda_fsm.constants import AWS as AWS_CONSTANTS
from tests.integration.utils import AWSStub
from tests.integration.utils import BaseFunctionalTest
AWS = AWSStub()
@mock.patch("aws_lambda_fsm.client.send_next_event_for_dispatch", wraps=AWS.send_next_event_for_dispatch)
@mock.patch("aws_lambda_fsm.fsm.send_next_event_for_dispatch", wraps=AWS.send_next_event_for_dispatch)
@mock.patch("aws_lambda_fsm.fsm.set_message_dispatched", wraps=AWS.set_message_dispatched)
@mock.patch("aws_lambda_fsm.fsm.get_message_dispatched", wraps=AWS.get_message_dispatched)
@mock.patch("aws_lambda_fsm.fsm.acquire_lease", wraps=AWS.acquire_lease)
@mock.patch("aws_lambda_fsm.fsm.release_lease", wraps=AWS.release_lease)
@mock.patch("aws_lambda_fsm.fsm.start_retries", wraps=AWS.start_retries)
@mock.patch("aws_lambda_fsm.fsm.increment_error_counters", wraps=AWS.increment_error_counters)
@mock.patch("aws_lambda_fsm.fsm.store_checkpoint", wraps=AWS.store_checkpoint)
class Test(BaseFunctionalTest):
def setUp(self):
AWS.reset()
FSM(get_current_configuration('./fsm.yaml'))
################################################################################
# START: machine_name="tracer"
################################################################################
def test_primary_cache_empty(self, *args):
self._execute(AWS, "tracer", {}, empty_primary_cache=True)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_cache) == 0)
self.assertTrue(len(AWS.secondary_cache) > 1)
def test_secondary_cache_empty(self, *args):
self._execute(AWS, "tracer", {}, empty_secondary_cache=True)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_cache) > 1)
self.assertTrue(len(AWS.secondary_cache) == 0)
def test_cache_empty(self, *args):
self._execute(AWS, "tracer", {}, empty_primary_cache=True, empty_secondary_cache=True)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_cache) == 0)
self.assertTrue(len(AWS.secondary_cache) == 0)
def test_primary_cache_down(self, *args):
self._execute(AWS, "tracer", {}, primary_cache_chaos=1.0)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_cache) == 0)
self.assertTrue(len(AWS.secondary_cache) > 1)
def test_primary_cache_major_downage(self, *args):
self._execute(AWS, "tracer", {}, primary_cache_chaos=0.75)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_cache) > 1)
self.assertTrue(len(AWS.secondary_cache) > 1)
def test_secondary_cache_down(self, *args):
self._execute(AWS, "tracer", {}, secondary_cache_chaos=1.0)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_cache) > 1)
self.assertTrue(len(AWS.secondary_cache) == 0)
def test_secondary_cache_major_downage(self, *args):
self._execute(AWS, "tracer", {}, secondary_cache_chaos=0.75)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_cache) > 1)
self.assertTrue(len(AWS.secondary_cache) > 1)
def test_cache_major_downage(self, *args):
self._execute(AWS, "tracer", {}, primary_cache_chaos=0.75, secondary_cache_chaos=0.75)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_cache) > 1)
self.assertTrue(len(AWS.secondary_cache) > 1)
def test_cache_total_downage(self, *args):
self._execute(AWS, "tracer", {}, primary_cache_chaos=1.0, secondary_cache_chaos=1.0)
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) == 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_cache) == 0)
self.assertTrue(len(AWS.secondary_cache) == 0)
def test_primary_stream_down(self, *args):
self._execute(AWS, "tracer", {}, primary_stream_chaos=1.0)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) == 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) > 1)
self.assertTrue(len(AWS.primary_retry_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
def test_primary_retry_down(self, *args):
self._execute(AWS, "tracer", {}, primary_retry_chaos=1.0)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) == 0)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) > 1)
def test_secondary_stream_down(self, *args):
self._execute(AWS, "tracer", {}, secondary_stream_chaos=1.0)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
def test_secondary_retry_down(self, *args):
self._execute(AWS, "tracer", {}, secondary_retry_chaos=1.0)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
def test_total_stream_downage(self, *args):
self._execute(AWS, "tracer", {}, primary_stream_chaos=1.0, secondary_stream_chaos=1.0)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) == 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
def test_major_stream_downage(self, *args):
self._execute(AWS, "tracer", {}, primary_stream_chaos=1.0, secondary_stream_chaos=0.75)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) == 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) > 1)
self.assertTrue(len(AWS.primary_retry_source.all_messages) > 1)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
def test_total_retry_downage(self, *args):
self._execute(AWS, "tracer", {}, primary_retry_chaos=1.0, secondary_retry_chaos=1.0)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) >= 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) == 0)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) == 0)
def test_major_retry_downage(self, *args):
self._execute(AWS, "tracer", {}, primary_retry_chaos=1.0, secondary_retry_chaos=0.75)
# check answer
self.assertEqual(101, AWS.all_sources.trace(('count',))[-1][-1][-1])
# check streams processed data
self.assertTrue(len(AWS.primary_stream_source.all_messages) >= 1)
self.assertTrue(len(AWS.secondary_stream_source.all_messages) == 0)
self.assertTrue(len(AWS.primary_retry_source.all_messages) == 0)
self.assertTrue(len(AWS.secondary_retry_source.all_messages) >= 0)
class TestSqs(Test):
MESSAGE_TYPE = AWS_CONSTANTS.SQS
class TestSns(Test):
MESSAGE_TYPE = AWS_CONSTANTS.SNS
| 45.588448
| 105
| 0.694013
| 1,685
| 12,628
| 4.948961
| 0.089021
| 0.144382
| 0.175321
| 0.20626
| 0.86773
| 0.851181
| 0.842907
| 0.835952
| 0.813287
| 0.799496
| 0
| 0.02282
| 0.167168
| 12,628
| 276
| 106
| 45.753623
| 0.770087
| 0.105717
| 0
| 0.625
| 0
| 0
| 0.049179
| 0.031853
| 0
| 0
| 0
| 0
| 0.6375
| 1
| 0.1125
| false
| 0
| 0.0375
| 0
| 0.18125
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
70f0efc1c38f8e023485fa63eec616a98f126bd5
| 74,458
|
py
|
Python
|
src/oci/opsi/operations_insights_client_composite_operations.py
|
xjuarez/oci-python-sdk
|
3c1604e4e212008fb6718e2f68cdb5ef71fd5793
|
[
"Apache-2.0",
"BSD-3-Clause"
] | 3
|
2020-09-10T22:09:45.000Z
|
2021-12-24T17:00:07.000Z
|
src/oci/opsi/operations_insights_client_composite_operations.py
|
xjuarez/oci-python-sdk
|
3c1604e4e212008fb6718e2f68cdb5ef71fd5793
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
src/oci/opsi/operations_insights_client_composite_operations.py
|
xjuarez/oci-python-sdk
|
3c1604e4e212008fb6718e2f68cdb5ef71fd5793
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
# coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
import oci # noqa: F401
from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
class OperationsInsightsClientCompositeOperations(object):
"""
This class provides a wrapper around :py:class:`~oci.opsi.OperationsInsightsClient` and offers convenience methods
for operations that would otherwise need to be chained together. For example, instead of performing an action
on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
to enter a given state, you can call a single method in this class to accomplish the same functionality
"""
def __init__(self, client, **kwargs):
"""
Creates a new OperationsInsightsClientCompositeOperations object
:param OperationsInsightsClient client:
The service client which will be wrapped by this object
"""
self.client = client
def add_exadata_insight_members_and_wait_for_state(self, add_exadata_insight_members_details, exadata_insight_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.add_exadata_insight_members` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param oci.opsi.models.AddExadataInsightMembersDetails add_exadata_insight_members_details: (required)
Details for the members (e.g. databases and hosts) of an Exadata system to be added in Operations Insights.
:param str exadata_insight_id: (required)
Unique Exadata insight identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.add_exadata_insight_members`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.add_exadata_insight_members(add_exadata_insight_members_details, exadata_insight_id, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def change_database_insight_compartment_and_wait_for_state(self, database_insight_id, change_database_insight_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.change_database_insight_compartment` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str database_insight_id: (required)
Unique database insight identifier
:param oci.opsi.models.ChangeDatabaseInsightCompartmentDetails change_database_insight_compartment_details: (required)
The information to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.change_database_insight_compartment`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.change_database_insight_compartment(database_insight_id, change_database_insight_compartment_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def change_enterprise_manager_bridge_compartment_and_wait_for_state(self, enterprise_manager_bridge_id, change_enterprise_manager_bridge_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.change_enterprise_manager_bridge_compartment` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str enterprise_manager_bridge_id: (required)
Unique Enterprise Manager bridge identifier
:param oci.opsi.models.ChangeEnterpriseManagerBridgeCompartmentDetails change_enterprise_manager_bridge_compartment_details: (required)
The information to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.change_enterprise_manager_bridge_compartment`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.change_enterprise_manager_bridge_compartment(enterprise_manager_bridge_id, change_enterprise_manager_bridge_compartment_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def change_exadata_insight_compartment_and_wait_for_state(self, exadata_insight_id, change_exadata_insight_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.change_exadata_insight_compartment` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str exadata_insight_id: (required)
Unique Exadata insight identifier
:param oci.opsi.models.ChangeExadataInsightCompartmentDetails change_exadata_insight_compartment_details: (required)
The information to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.change_exadata_insight_compartment`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.change_exadata_insight_compartment(exadata_insight_id, change_exadata_insight_compartment_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def change_host_insight_compartment_and_wait_for_state(self, host_insight_id, change_host_insight_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.change_host_insight_compartment` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str host_insight_id: (required)
Unique host insight identifier
:param oci.opsi.models.ChangeHostInsightCompartmentDetails change_host_insight_compartment_details: (required)
The information to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.change_host_insight_compartment`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.change_host_insight_compartment(host_insight_id, change_host_insight_compartment_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def create_awr_hub_and_wait_for_state(self, create_awr_hub_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.create_awr_hub` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param oci.opsi.models.CreateAwrHubDetails create_awr_hub_details: (required)
Details using which an AWR hub resource will be created in Operations Insights.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.create_awr_hub`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.create_awr_hub(create_awr_hub_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def create_database_insight_and_wait_for_state(self, create_database_insight_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.create_database_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param oci.opsi.models.CreateDatabaseInsightDetails create_database_insight_details: (required)
Details for the database for which a Database Insight resource will be created in Operations Insights.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.create_database_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.create_database_insight(create_database_insight_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def create_enterprise_manager_bridge_and_wait_for_state(self, create_enterprise_manager_bridge_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.create_enterprise_manager_bridge` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param oci.opsi.models.CreateEnterpriseManagerBridgeDetails create_enterprise_manager_bridge_details: (required)
Details for the Enterprise Manager bridge to be created in Operations Insights.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.create_enterprise_manager_bridge`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.create_enterprise_manager_bridge(create_enterprise_manager_bridge_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def create_exadata_insight_and_wait_for_state(self, create_exadata_insight_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.create_exadata_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param oci.opsi.models.CreateExadataInsightDetails create_exadata_insight_details: (required)
Details for the Exadata system for which an Exadata insight resource will be created in Operations Insights.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.create_exadata_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.create_exadata_insight(create_exadata_insight_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def create_host_insight_and_wait_for_state(self, create_host_insight_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.create_host_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param oci.opsi.models.CreateHostInsightDetails create_host_insight_details: (required)
Details for the host for which a Host Insight resource will be created in Operations Insights.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.create_host_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.create_host_insight(create_host_insight_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def create_operations_insights_warehouse_and_wait_for_state(self, create_operations_insights_warehouse_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.create_operations_insights_warehouse` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param oci.opsi.models.CreateOperationsInsightsWarehouseDetails create_operations_insights_warehouse_details: (required)
Details using which an Operations Insights Warehouse resource will be created in Operations Insights.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.create_operations_insights_warehouse`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.create_operations_insights_warehouse(create_operations_insights_warehouse_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def create_operations_insights_warehouse_user_and_wait_for_state(self, create_operations_insights_warehouse_user_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.create_operations_insights_warehouse_user` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param oci.opsi.models.CreateOperationsInsightsWarehouseUserDetails create_operations_insights_warehouse_user_details: (required)
Parameter using which an Operations Insights Warehouse user resource will be created.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.create_operations_insights_warehouse_user`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.create_operations_insights_warehouse_user(create_operations_insights_warehouse_user_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def delete_awr_hub_and_wait_for_state(self, awr_hub_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.delete_awr_hub` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str awr_hub_id: (required)
Unique Awr Hub identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.delete_awr_hub`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = None
try:
operation_result = self.client.delete_awr_hub(awr_hub_id, **operation_kwargs)
except oci.exceptions.ServiceError as e:
if e.status == 404:
return WAIT_RESOURCE_NOT_FOUND
else:
raise e
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def delete_database_insight_and_wait_for_state(self, database_insight_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.delete_database_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str database_insight_id: (required)
Unique database insight identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.delete_database_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = None
try:
operation_result = self.client.delete_database_insight(database_insight_id, **operation_kwargs)
except oci.exceptions.ServiceError as e:
if e.status == 404:
return WAIT_RESOURCE_NOT_FOUND
else:
raise e
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def delete_enterprise_manager_bridge_and_wait_for_state(self, enterprise_manager_bridge_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.delete_enterprise_manager_bridge` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str enterprise_manager_bridge_id: (required)
Unique Enterprise Manager bridge identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.delete_enterprise_manager_bridge`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = None
try:
operation_result = self.client.delete_enterprise_manager_bridge(enterprise_manager_bridge_id, **operation_kwargs)
except oci.exceptions.ServiceError as e:
if e.status == 404:
return WAIT_RESOURCE_NOT_FOUND
else:
raise e
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def delete_exadata_insight_and_wait_for_state(self, exadata_insight_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.delete_exadata_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str exadata_insight_id: (required)
Unique Exadata insight identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.delete_exadata_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = None
try:
operation_result = self.client.delete_exadata_insight(exadata_insight_id, **operation_kwargs)
except oci.exceptions.ServiceError as e:
if e.status == 404:
return WAIT_RESOURCE_NOT_FOUND
else:
raise e
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def delete_host_insight_and_wait_for_state(self, host_insight_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.delete_host_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str host_insight_id: (required)
Unique host insight identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.delete_host_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = None
try:
operation_result = self.client.delete_host_insight(host_insight_id, **operation_kwargs)
except oci.exceptions.ServiceError as e:
if e.status == 404:
return WAIT_RESOURCE_NOT_FOUND
else:
raise e
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def delete_operations_insights_warehouse_and_wait_for_state(self, operations_insights_warehouse_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.delete_operations_insights_warehouse` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str operations_insights_warehouse_id: (required)
Unique Operations Insights Warehouse identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.delete_operations_insights_warehouse`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = None
try:
operation_result = self.client.delete_operations_insights_warehouse(operations_insights_warehouse_id, **operation_kwargs)
except oci.exceptions.ServiceError as e:
if e.status == 404:
return WAIT_RESOURCE_NOT_FOUND
else:
raise e
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def delete_operations_insights_warehouse_user_and_wait_for_state(self, operations_insights_warehouse_user_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.delete_operations_insights_warehouse_user` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str operations_insights_warehouse_user_id: (required)
Unique Operations Insights Warehouse User identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.delete_operations_insights_warehouse_user`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = None
try:
operation_result = self.client.delete_operations_insights_warehouse_user(operations_insights_warehouse_user_id, **operation_kwargs)
except oci.exceptions.ServiceError as e:
if e.status == 404:
return WAIT_RESOURCE_NOT_FOUND
else:
raise e
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def disable_database_insight_and_wait_for_state(self, database_insight_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.disable_database_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str database_insight_id: (required)
Unique database insight identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.disable_database_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.disable_database_insight(database_insight_id, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def disable_exadata_insight_and_wait_for_state(self, exadata_insight_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.disable_exadata_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str exadata_insight_id: (required)
Unique Exadata insight identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.disable_exadata_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.disable_exadata_insight(exadata_insight_id, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def disable_host_insight_and_wait_for_state(self, host_insight_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.disable_host_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str host_insight_id: (required)
Unique host insight identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.disable_host_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.disable_host_insight(host_insight_id, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def enable_database_insight_and_wait_for_state(self, enable_database_insight_details, database_insight_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.enable_database_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param oci.opsi.models.EnableDatabaseInsightDetails enable_database_insight_details: (required)
Details for the database to be enabled in Operations Insights.
:param str database_insight_id: (required)
Unique database insight identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.enable_database_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.enable_database_insight(enable_database_insight_details, database_insight_id, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def enable_exadata_insight_and_wait_for_state(self, enable_exadata_insight_details, exadata_insight_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.enable_exadata_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param oci.opsi.models.EnableExadataInsightDetails enable_exadata_insight_details: (required)
Details for the Exadata system to be enabled in Operations Insights.
:param str exadata_insight_id: (required)
Unique Exadata insight identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.enable_exadata_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.enable_exadata_insight(enable_exadata_insight_details, exadata_insight_id, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def enable_host_insight_and_wait_for_state(self, enable_host_insight_details, host_insight_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.enable_host_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param oci.opsi.models.EnableHostInsightDetails enable_host_insight_details: (required)
Details for the host to be enabled in Operations Insights.
:param str host_insight_id: (required)
Unique host insight identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.enable_host_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.enable_host_insight(enable_host_insight_details, host_insight_id, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def rotate_operations_insights_warehouse_wallet_and_wait_for_state(self, operations_insights_warehouse_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.rotate_operations_insights_warehouse_wallet` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str operations_insights_warehouse_id: (required)
Unique Operations Insights Warehouse identifier
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.rotate_operations_insights_warehouse_wallet`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.rotate_operations_insights_warehouse_wallet(operations_insights_warehouse_id, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def update_awr_hub_and_wait_for_state(self, awr_hub_id, update_awr_hub_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.update_awr_hub` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str awr_hub_id: (required)
Unique Awr Hub identifier
:param oci.opsi.models.UpdateAwrHubDetails update_awr_hub_details: (required)
The configuration to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.update_awr_hub`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.update_awr_hub(awr_hub_id, update_awr_hub_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def update_database_insight_and_wait_for_state(self, database_insight_id, update_database_insight_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.update_database_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str database_insight_id: (required)
Unique database insight identifier
:param oci.opsi.models.UpdateDatabaseInsightDetails update_database_insight_details: (required)
The configuration to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.update_database_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.update_database_insight(database_insight_id, update_database_insight_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def update_enterprise_manager_bridge_and_wait_for_state(self, enterprise_manager_bridge_id, update_enterprise_manager_bridge_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.update_enterprise_manager_bridge` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str enterprise_manager_bridge_id: (required)
Unique Enterprise Manager bridge identifier
:param oci.opsi.models.UpdateEnterpriseManagerBridgeDetails update_enterprise_manager_bridge_details: (required)
The configuration to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.update_enterprise_manager_bridge`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.update_enterprise_manager_bridge(enterprise_manager_bridge_id, update_enterprise_manager_bridge_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def update_exadata_insight_and_wait_for_state(self, exadata_insight_id, update_exadata_insight_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.update_exadata_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str exadata_insight_id: (required)
Unique Exadata insight identifier
:param oci.opsi.models.UpdateExadataInsightDetails update_exadata_insight_details: (required)
The configuration to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.update_exadata_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.update_exadata_insight(exadata_insight_id, update_exadata_insight_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def update_host_insight_and_wait_for_state(self, host_insight_id, update_host_insight_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.update_host_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str host_insight_id: (required)
Unique host insight identifier
:param oci.opsi.models.UpdateHostInsightDetails update_host_insight_details: (required)
The configuration to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.update_host_insight`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.update_host_insight(host_insight_id, update_host_insight_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def update_operations_insights_warehouse_and_wait_for_state(self, operations_insights_warehouse_id, update_operations_insights_warehouse_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.update_operations_insights_warehouse` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str operations_insights_warehouse_id: (required)
Unique Operations Insights Warehouse identifier
:param oci.opsi.models.UpdateOperationsInsightsWarehouseDetails update_operations_insights_warehouse_details: (required)
The configuration to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.update_operations_insights_warehouse`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.update_operations_insights_warehouse(operations_insights_warehouse_id, update_operations_insights_warehouse_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def update_operations_insights_warehouse_user_and_wait_for_state(self, operations_insights_warehouse_user_id, update_operations_insights_warehouse_user_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.update_operations_insights_warehouse_user` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
to enter the given state(s).
:param str operations_insights_warehouse_user_id: (required)
Unique Operations Insights Warehouse User identifier
:param oci.opsi.models.UpdateOperationsInsightsWarehouseUserDetails update_operations_insights_warehouse_user_details: (required)
The configuration to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.update_operations_insights_warehouse_user`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.update_operations_insights_warehouse_user(operations_insights_warehouse_user_id, update_operations_insights_warehouse_user_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
| 53.955072
| 245
| 0.696366
| 9,495
| 74,458
| 5.202212
| 0.025908
| 0.042231
| 0.052111
| 0.01737
| 0.957121
| 0.947221
| 0.939731
| 0.924911
| 0.913291
| 0.905476
| 0
| 0.000732
| 0.229122
| 74,458
| 1,379
| 246
| 53.994199
| 0.859838
| 0.449435
| 0
| 0.830894
| 0
| 0
| 0.027438
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.055285
| false
| 0
| 0.003252
| 0
| 0.178862
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
cb08731f0d56ce4d077343e88201861b69027cf5
| 8,048
|
py
|
Python
|
dlkit/json_/assessment_authoring/default_mdata.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 2
|
2018-02-23T12:16:11.000Z
|
2020-10-08T17:54:24.000Z
|
dlkit/json_/assessment_authoring/default_mdata.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 87
|
2017-04-21T18:57:15.000Z
|
2021-12-13T19:43:57.000Z
|
dlkit/json_/assessment_authoring/default_mdata.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 1
|
2018-03-01T16:44:25.000Z
|
2018-03-01T16:44:25.000Z
|
"""JSON osid metadata configurations for assessment.authoring service."""
from .. import types
from ..primitives import Type
DEFAULT_LANGUAGE_TYPE = Type(**types.Language().get_type_data("DEFAULT"))
DEFAULT_SCRIPT_TYPE = Type(**types.Script().get_type_data("DEFAULT"))
DEFAULT_FORMAT_TYPE = Type(**types.Format().get_type_data("DEFAULT"))
DEFAULT_GENUS_TYPE = Type(**types.Genus().get_type_data("DEFAULT"))
def get_assessment_part_mdata():
"""Return default mdata map for AssessmentPart"""
return {
'assessment_part': {
'element_label': {
'text': 'assessment part',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'instructions': {
'text': 'accepts an osid.id.Id object',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'required': False,
'read_only': False,
'linked': False,
'array': False,
'default_id_values': [''],
'syntax': 'ID',
'id_set': [],
},
'assessment': {
'element_label': {
'text': 'assessment',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'instructions': {
'text': 'accepts an osid.id.Id object',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'required': False,
'read_only': False,
'linked': False,
'array': False,
'default_id_values': [''],
'syntax': 'ID',
'id_set': [],
},
'weight': {
'element_label': {
'text': 'weight',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'instructions': {
'text': 'enter a cardinal value',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'required': False,
'read_only': False,
'linked': False,
'array': False,
'default_cardinal_values': [None],
'syntax': 'CARDINAL',
'minimum_cardinal': None,
'maximum_cardinal': None,
'cardinal_set': []
},
'allocated_time': {
'element_label': {
'text': 'allocated time',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'instructions': {
'text': 'enter a valid duration object.',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'required': False,
'read_only': False,
'linked': False,
'array': False,
'default_duration_values': [None],
'syntax': 'DURATION',
'date_time_set': [],
},
}
def get_sequence_rule_mdata():
"""Return default mdata map for SequenceRule"""
return {
'next_assessment_part': {
'element_label': {
'text': 'next assessment part',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'instructions': {
'text': 'accepts an osid.id.Id object',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'required': False,
'read_only': False,
'linked': False,
'array': False,
'default_id_values': [''],
'syntax': 'ID',
'id_set': [],
},
'cumulative': {
'element_label': {
'text': 'cumulative',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'instructions': {
'text': 'enter either true or false.',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'required': False,
'read_only': False,
'linked': False,
'array': False,
'default_boolean_values': [None],
'syntax': 'BOOLEAN',
},
'assessment_part': {
'element_label': {
'text': 'assessment part',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'instructions': {
'text': 'accepts an osid.id.Id object',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'required': False,
'read_only': False,
'linked': False,
'array': False,
'default_id_values': [''],
'syntax': 'ID',
'id_set': [],
},
'minimum_score': {
'element_label': {
'text': 'minimum score',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'instructions': {
'text': 'enter a cardinal value',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'required': False,
'read_only': False,
'linked': False,
'array': False,
'default_cardinal_values': [None],
'syntax': 'CARDINAL',
'minimum_cardinal': None,
'maximum_cardinal': None,
'cardinal_set': []
},
'maximum_score': {
'element_label': {
'text': 'maximum score',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'instructions': {
'text': 'enter a cardinal value',
'languageTypeId': str(DEFAULT_LANGUAGE_TYPE),
'scriptTypeId': str(DEFAULT_SCRIPT_TYPE),
'formatTypeId': str(DEFAULT_FORMAT_TYPE),
},
'required': False,
'read_only': False,
'linked': False,
'array': False,
'default_cardinal_values': [None],
'syntax': 'CARDINAL',
'minimum_cardinal': None,
'maximum_cardinal': None,
'cardinal_set': []
},
}
| 37.432558
| 73
| 0.49826
| 638
| 8,048
| 5.990596
| 0.109718
| 0.141287
| 0.094453
| 0.150706
| 0.836735
| 0.809262
| 0.794087
| 0.794087
| 0.794087
| 0.794087
| 0
| 0
| 0.375124
| 8,048
| 214
| 74
| 37.607477
| 0.759992
| 0.019011
| 0
| 0.718447
| 0
| 0
| 0.276685
| 0.014469
| 0
| 0
| 0
| 0
| 0
| 1
| 0.009709
| false
| 0
| 0.009709
| 0
| 0.029126
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
cb2cfc96e5ee97d2670cd0f9a0f635b9fac178ee
| 173
|
py
|
Python
|
ibsng/handler/util/get_saved_report_list.py
|
ParspooyeshFanavar/pyibsng
|
d48bcf4f25e3f23461528bf0ff8870cc3d537444
|
[
"MIT"
] | 6
|
2018-03-06T10:16:36.000Z
|
2021-12-05T12:43:10.000Z
|
ibsng/handler/util/get_saved_report_list.py
|
ParspooyeshFanavar/pyibsng
|
d48bcf4f25e3f23461528bf0ff8870cc3d537444
|
[
"MIT"
] | 3
|
2018-03-06T10:27:08.000Z
|
2022-01-02T15:21:27.000Z
|
ibsng/handler/util/get_saved_report_list.py
|
ParspooyeshFanavar/pyibsng
|
d48bcf4f25e3f23461528bf0ff8870cc3d537444
|
[
"MIT"
] | 3
|
2018-01-06T16:28:31.000Z
|
2018-09-17T19:47:19.000Z
|
"""Get save report list API method."""
from ibsng.handler.handler import Handler
class getSavedReportList(Handler):
"""Get save report list method class."""
pass
| 19.222222
| 44
| 0.716763
| 22
| 173
| 5.636364
| 0.590909
| 0.112903
| 0.209677
| 0.274194
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.17341
| 173
| 8
| 45
| 21.625
| 0.867133
| 0.387283
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 8
|
cb97182c952eca43cd8e7973727ea7f93f51d3f0
| 107
|
py
|
Python
|
aoj/ITP1/ITP1_2_A/solve.py
|
tobyapi/online-judge-solutions
|
4088adb97ea592e8e6582ae7d2ecde2f85e2ed9c
|
[
"MIT"
] | null | null | null |
aoj/ITP1/ITP1_2_A/solve.py
|
tobyapi/online-judge-solutions
|
4088adb97ea592e8e6582ae7d2ecde2f85e2ed9c
|
[
"MIT"
] | null | null | null |
aoj/ITP1/ITP1_2_A/solve.py
|
tobyapi/online-judge-solutions
|
4088adb97ea592e8e6582ae7d2ecde2f85e2ed9c
|
[
"MIT"
] | null | null | null |
(a,b) = map(int,raw_input().split())
if a<b : print "a < b"
elif a>b : print "a > b"
else : print "a == b"
| 21.4
| 36
| 0.53271
| 23
| 107
| 2.434783
| 0.478261
| 0.214286
| 0.375
| 0.285714
| 0.321429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.214953
| 107
| 4
| 37
| 26.75
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0.149533
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.75
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
6978c6dff2c28eb575bde5d722ebf4c6c55e1f5a
| 80,060
|
py
|
Python
|
Classes/Packets/Server/Home/OwnHomeDataMessage.py
|
SavokBS/ConBrawl-APIV41
|
d0a24e2d1910aae526df726c53476fcf11f6836d
|
[
"MIT"
] | 1
|
2022-02-11T10:22:54.000Z
|
2022-02-11T10:22:54.000Z
|
Classes/Packets/Server/Home/OwnHomeDataMessage.py
|
SavokBS/ConBrawl-APIV41
|
d0a24e2d1910aae526df726c53476fcf11f6836d
|
[
"MIT"
] | 1
|
2022-01-29T13:13:50.000Z
|
2022-02-02T14:00:43.000Z
|
Classes/Packets/Server/Home/OwnHomeDataMessage.py
|
SavokBS/ConBrawl-APIV41
|
d0a24e2d1910aae526df726c53476fcf11f6836d
|
[
"MIT"
] | null | null | null |
import time
import brawlstats
import Configuration
import random
from Classes.Packets.PiranhaMessage import PiranhaMessage
bstoken = Configuration.settings["ApiToken"] #api token
client = brawlstats.Client(bstoken)
pl = client.get_profile(Configuration.settings["Tag"]) #tag
class OwnHomeDataMessage(PiranhaMessage):
def __init__(self, messageData):
super().__init__(messageData)
self.messageVersion = 0
def encode(self, fields, player):
ownedBrawlersCount = len(player.OwnedBrawlers)
ownedPinsCount = len(player.OwnedPins)
ownedThumbnailCount = len(player.OwnedThumbnails)
ownedSkins = []
for brawlerInfo in player.OwnedBrawlers.values():
try:
ownedSkins.extend(brawlerInfo["Skins"])
except KeyError:
continue
self.writeVInt(int(time.time()))
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(pl.trophies) # Trophies
self.writeVInt(pl.highest_trophies) # Highest Trophies
self.writeVInt(pl.highest_trophies)
self.writeVInt(200)
self.writeVInt(pl.exp_points) # Experience
self.writeDataReference(28, player.Thumbnail) # Thumbnail
self.writeDataReference(43, player.Namecolor) # Namecolor
self.writeVInt(0)
self.writeVInt(0) # Selected Skins
self.writeVInt(0) # Randomizer Skin Selected
self.writeVInt(0) # Current Random Skin
self.writeVInt(len(ownedSkins))
for skinID in ownedSkins:
self.writeDataReference(29, skinID)
self.writeVInt(0) # Unlocked Skin Purchase Option
self.writeVInt(0) # New Item State
self.writeVInt(0)
self.writeVInt(pl.highest_trophies)
self.writeVInt(0)
self.writeVInt(1)
self.writeBoolean(True)
self.writeVInt(player.TokensDoubler)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(141)
self.writeVInt(135)
self.writeVInt(5)
self.writeVInt(93)
self.writeVInt(206)
self.writeVInt(456)
self.writeVInt(792)
self.writeVInt(729)
self.writeBoolean(False) # Offer 1
self.writeBoolean(False) # Offer 2
self.writeBoolean(True) # Token Doubler Enabled
self.writeVInt(2) # Token Doubler New Tag State
self.writeVInt(2) # Event Tickets New Tag State
self.writeVInt(2) # Coin Packs New Tag State
self.writeVInt(0) # Change Name Cost
self.writeVInt(0) # Timer For the Next Name Change
self.writeVInt(1) # Offers count
self.writeVInt(1) # RewardCount
for i in range(1):
self.writeVInt(20) # ItemType
self.writeVInt(0)
self.writeDataReference(0) # CsvID
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(950400)
self.writeVInt(2)
self.writeVInt(0)
self.writeBoolean(False)
self.writeVInt(3917)
self.writeVInt(0)
self.writeBoolean(False)
self.writeVInt(49)
self.writeInt(0)
self.writeString("Unlock all skins")
self.writeBoolean(False)
self.writeString()
self.writeVInt(-1)
self.writeBoolean(False)
self.writeVInt(0)
self.writeVInt(0)
self.writeString()
self.writeBoolean(False)
self.writeBoolean(False)
self.writeVInt(0)
self.writeVInt(player.Tokens)
self.writeVInt(-1)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(len(player.SelectedBrawlers))
for i in player.SelectedBrawlers:
self.writeDataReference(16, i)
self.writeString(player.Region)
self.writeString("ConBrawl. Using BSDS")
self.writeVInt(19)
self.writeLong(2, 1) # Unknown
self.writeLong(3, 0) # TokensGained
self.writeLong(4, 0) # TrophiesGained
self.writeLong(6, 0) # DemoAccount
self.writeLong(7, 0) # InvitesBlocked
self.writeLong(8, 0) # StarPointsGained
self.writeLong(9, 1) # ShowStarPoints
self.writeLong(10, 0) # PowerPlayTrophiesGained
self.writeLong(12, 1) # Unknown
self.writeLong(14, 0) # CoinsGained
self.writeLong(15, 0) # AgeScreen | 3 = underage (disable social media) | 1 = age popup
self.writeLong(16, 1)
self.writeLong(17, 1) # TeamChatMuted
self.writeLong(18, 1) # EsportButton
self.writeLong(19, 1) # ChampionShipLivesBuyPopup
self.writeLong(20, 0) # GemsGained
self.writeLong(21, 1) # LookingForTeamState
self.writeLong(22, 1)
self.writeLong(24, 1) # Have already watched club league stupid animation
self.writeVInt(0)
self.writeVInt(2) # Brawlpass
for i in range(8, 10):
self.writeVInt(i)
self.writeVInt(34500)
self.writeBoolean(True)
self.writeVInt(0)
self.writeByte(2)
self.writeInt(4294967292)
self.writeInt(4294967295)
self.writeInt(511)
self.writeInt(0)
self.writeByte(1)
self.writeInt(4294967292)
self.writeInt(4294967295)
self.writeInt(511)
self.writeInt(0)
self.writeVInt(0)
self.writeBoolean(True)
self.writeVInt(0)
self.writeBoolean(True)
self.writeVInt(ownedPinsCount + ownedThumbnailCount) # Vanity Count
for i in player.OwnedPins:
self.writeDataReference(52, i)
self.writeVInt(1)
for i in range(1):
self.writeVInt(1)
self.writeVInt(1)
for i in player.OwnedThumbnails:
self.writeDataReference(28, i)
self.writeVInt(1)
for i in range(1):
self.writeVInt(1)
self.writeVInt(1)
self.writeBoolean(False)
self.writeInt(0)
self.writeVInt(0)
self.writeVInt(25) # Count
self.writeVInt(1)
self.writeVInt(2)
self.writeVInt(3)
self.writeVInt(4)
self.writeVInt(5)
self.writeVInt(6)
self.writeVInt(7)
self.writeVInt(8)
self.writeVInt(9)
self.writeVInt(10)
self.writeVInt(11)
self.writeVInt(12)
self.writeVInt(13)
self.writeVInt(14)
self.writeVInt(15)
self.writeVInt(16)
self.writeVInt(17)
self.writeVInt(20)
self.writeVInt(21)
self.writeVInt(22)
self.writeVInt(23)
self.writeVInt(24)
self.writeVInt(30)
self.writeVInt(31)
self.writeVInt(32)
self.writeVInt(2) # Events
self.writeVInt(0)
self.writeVInt(12) # EventType
self.writeVInt(0) # EventsBeginCountdown
self.writeVInt(99999) # Timer
self.writeVInt(0) # tokens reward for new event
self.writeDataReference(15, random.randint(0, 500)) # MapID
self.writeVInt(-64) # GameModeVariation
self.writeVInt(0) # State
self.writeString()
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeBoolean(False) # Map Maker Map Structure Array
self.writeVInt(0)
self.writeBoolean(False) # Power League Data Array
self.writeVInt(6)
self.writeVInt(3)
self.writeVInt(0) # ChronosTextEntry
self.writeVInt(-64)
self.writeBoolean(False)
self.writeVInt(0)
self.writeVInt(13) # EventType
self.writeVInt(0) # EventsBeginCountdown
self.writeVInt(99999) # Timer
self.writeVInt(0) # tokens reward for new event
self.writeDataReference(15, random.randint(0, 500)) # MapID
self.writeVInt(-64) # GameModeVariation
self.writeVInt(0) # State
self.writeString()
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0) # Modifiers
self.writeVInt(0)
self.writeVInt(0)
self.writeBoolean(False) # Map Maker Map Structure Array
self.writeVInt(0)
self.writeBoolean(False) # Power League Data Array
self.writeVInt(6)
self.writeVInt(3)
self.writeVInt(0) # ChronosTextEntry
self.writeVInt(-64)
self.writeBoolean(False)
self.writeVInt(0) # Comming Events
self.writeVInt(10) # Brawler Upgrade Cost
self.writeVInt(20)
self.writeVInt(35)
self.writeVInt(75)
self.writeVInt(140)
self.writeVInt(290)
self.writeVInt(480)
self.writeVInt(800)
self.writeVInt(1250)
self.writeVInt(1875)
self.writeVInt(2800)
self.writeVInt(4) # Shop Coins Price
self.writeVInt(20)
self.writeVInt(50)
self.writeVInt(140)
self.writeVInt(280)
self.writeVInt(4) # Shop Coins Amount
self.writeVInt(150)
self.writeVInt(400)
self.writeVInt(1200)
self.writeVInt(2600)
self.writeBoolean(True) # Show Offers Packs
self.writeVInt(0)
self.writeVInt(23) # IntValueEntry
self.writeLong(10008, 501)
self.writeLong(65, 2)
self.writeLong(1, 41000038) # ThemeID
self.writeLong(60, 36270)
self.writeLong(66, 1)
self.writeLong(61, 36270) # SupportDisabled State | if 36218 < state its true
self.writeLong(47, 41381)
self.writeLong(29, 0) # Skin Group Active For Campaign
self.writeLong(48, 41381)
self.writeLong(50, 0) # Coming up quests placeholder
self.writeLong(1100, 500)
self.writeLong(1101, 500)
self.writeLong(1003, 1)
self.writeLong(36, 0)
self.writeLong(14, 1) # Double Token Event
self.writeLong(31, 1) # Gold rush event
self.writeLong(79, 149999)
self.writeLong(80, 160000)
self.writeLong(28, 4)
self.writeLong(74, 1)
self.writeLong(78, 1)
self.writeLong(17, 4)
self.writeLong(10046, 1)
self.writeVInt(0) # Timed Int Value Entry
self.writeVInt(0) # Custom Event
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeLong(player.ID[0], player.ID[1]) # PlayerID
self.writeVInt(0) # NotificationFactory
self.writeVInt(-1)
self.writeBoolean(False)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeVLong(player.ID[0], player.ID[1])
self.writeVLong(0, 0)
self.writeVLong(0, 0)
self.writeString(pl.name)
self.writeBoolean(player.Registered)
self.writeInt(0)
self.writeVInt(15)
blen = len(pl.brawlers)
# card0 = 0,
# card1 = 4
# card2 = 8
# card3 = 12
# card4 = 16
# card5 = 20
# card6 = 24
# card7 = 28
# card8 = 32
# card9 = 36
# card10 = 40
# card11 = 44
# card12 = 48
# card13 = 52
# card14 = 56
# card15 = 60
# card16 = 64
# card17 = 68
# card18 = 72
# card19 = 95
# card20 = 100
# card21 = 105
# card22 = 110
# card23 = 115
# card24 = 120
# card25 = 125
# card26 = 130
# card27 = 177
# card28 = 182
# card29 = 188
# card30 = 194
# card31 = 200
# card32 = 206
# card34 = 218
# card35 = 224
# card36 = 230
# card37 = 236
# card38 = 279
# card39 = 296
# card40 = 303
# card41 = 320
# card42 = 327
# card43 = 334
# card44 = 341
# card45 = 358
# card46 = 365
# card47 = 372
# card48 = 379
# card49 = 386
# card50 = 393
# card51 = 410
# card52 = 417
# card53 = 427
# card54 = 434
#Change anything here ONLY IF YOU UNDERSTAND WHAT ARE YOU DOING!
print(len(pl.brawlers)) #debug thing
self.writeVInt(3 + len(pl.brawlers))
try:
print(f"{pl.brawlers[0].power} loaded in cards!")
self.writeDataReference(23, 0)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[1].power} loaded in cards!")
self.writeDataReference(23, 4)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[2].power} loaded in cards!")
self.writeDataReference(23, 8)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[3].power} loaded in cards!")
self.writeDataReference(23, 12)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[4].power} loaded in cards!")
self.writeDataReference(23, 16)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[5].power} loaded in cards!")
self.writeDataReference(23, 20)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[6].power} loaded in cards!")
self.writeDataReference(23, 24)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[7].power} loaded in cards!")
self.writeDataReference(23, 28)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[8].power} loaded in cards!")
self.writeDataReference(23, 32)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[9].power} loaded in cards!")
self.writeDataReference(23, 36)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[10].power} loaded in cards!")
self.writeDataReference(23, 40)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[11].power} loaded in cards!")
self.writeDataReference(23, 44)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[12].power} loaded in cards!")
self.writeDataReference(23, 48)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[13].power} loaded in cards!")
self.writeDataReference(23, 52)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[14].power} loaded in cards!")
self.writeDataReference(23, 56)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[15].power} loaded in cards!")
self.writeDataReference(23, 60)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[16].power} loaded in cards!")
self.writeDataReference(23, 64)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[17].power} loaded in cards!")
self.writeDataReference(23, 68)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[18].power} loaded in cards!")
self.writeDataReference(23, 72)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[19].power} loaded in cards!")
self.writeDataReference(23, 95)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[20].power} loaded in cards!")
self.writeDataReference(23, 100)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[21].power} loaded in cards!")
self.writeDataReference(23, 105)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[22].power} loaded in cards!")
self.writeDataReference(23, 110)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[23].power} loaded in cards!")
self.writeDataReference(23, 115)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[24].power} loaded in cards!")
self.writeDataReference(23, 120)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[25].power} loaded in cards!")
self.writeDataReference(23, 125)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[26].power} loaded in cards!")
self.writeDataReference(23, 130)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[27].power} loaded in cards!")
self.writeDataReference(23, 177)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[28].power} loaded in cards!")
self.writeDataReference(23, 182)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[29].power} loaded in cards!")
self.writeDataReference(23, 188)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[30].power} loaded in cards!")
self.writeDataReference(23, 194)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[31].power} loaded in cards!")
self.writeDataReference(23, 200)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[32].power} loaded in cards!")
self.writeDataReference(23, 206)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[33].power} loaded in cards!")
self.writeDataReference(23, 218)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[34].power} loaded in cards!")
self.writeDataReference(23, 224)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[35].power} loaded in cards!")
self.writeDataReference(23, 230)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[36].power} loaded in cards!")
self.writeDataReference(23, 236)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[37].power} loaded in cards!")
self.writeDataReference(23, 279)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[38].power} loaded in cards!")
self.writeDataReference(23, 296)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[39].power} loaded in cards!")
self.writeDataReference(23, 303)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[40].power} loaded in cards!")
self.writeDataReference(23, 320)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[41].power} loaded in cards!")
self.writeDataReference(23, 327)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[42].power} loaded in cards!")
self.writeDataReference(23, 334)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[43].power} loaded in cards!")
self.writeDataReference(23, 341)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[44].power} loaded in cards!")
self.writeDataReference(23, 358)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[45].power} loaded in cards!")
self.writeDataReference(23, 365)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[46].power} loaded in cards!")
self.writeDataReference(23, 372)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[47].power} loaded in cards!")
self.writeDataReference(23, 379)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[48].power} loaded in cards!")
self.writeDataReference(23, 386)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[49].power} loaded in cards!")
self.writeDataReference(23, 393)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[50].power} loaded in cards!")
self.writeDataReference(23, 410)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[51].power} loaded in cards!")
self.writeDataReference(23, 417)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[52].power} loaded in cards!")
self.writeDataReference(23, 427)
self.writeVInt(1)
except IndexError:
pass
else:
pass
try:
print(f"{pl.brawlers[53].power} loaded in cards!")
self.writeDataReference(23, 434)
self.writeVInt(1)
except IndexError:
pass
else:
pass
self.writeDataReference(5, 8)
self.writeVInt(-1)
self.writeDataReference(5, 10)
self.writeVInt(-1)
self.writeDataReference(5, 13)
self.writeVInt(99999) # Club coins
self.writeVInt(len(pl.brawlers))
try:
self.writeDataReference(16, 0)
self.writeVInt(pl.brawlers[0].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 1)
self.writeVInt(pl.brawlers[1].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 2)
self.writeVInt(pl.brawlers[2].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 3)
self.writeVInt(pl.brawlers[3].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 4)
self.writeVInt(pl.brawlers[4].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 5)
self.writeVInt(pl.brawlers[5].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 6)
self.writeVInt(pl.brawlers[6].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 7)
self.writeVInt(pl.brawlers[7].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 8)
self.writeVInt(pl.brawlers[8].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 9)
self.writeVInt(pl.brawlers[9].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 10)
self.writeVInt(pl.brawlers[10].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 11)
self.writeVInt(pl.brawlers[11].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 12)
self.writeVInt(pl.brawlers[12].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 13)
self.writeVInt(pl.brawlers[13].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 14)
self.writeVInt(pl.brawlers[14].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 15)
self.writeVInt(pl.brawlers[15].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 16)
self.writeVInt(pl.brawlers[16].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 17)
self.writeVInt(pl.brawlers[17].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 18)
self.writeVInt(pl.brawlers[18].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 19)
self.writeVInt(pl.brawlers[19].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 20)
self.writeVInt(pl.brawlers[20].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 21)
self.writeVInt(pl.brawlers[21].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 22)
self.writeVInt(pl.brawlers[22].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 23)
self.writeVInt(pl.brawlers[23].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 24)
self.writeVInt(pl.brawlers[24].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 25)
self.writeVInt(pl.brawlers[25].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 26)
self.writeVInt(pl.brawlers[26].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 27)
self.writeVInt(pl.brawlers[27].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 28)
self.writeVInt(pl.brawlers[28].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 29)
self.writeVInt(pl.brawlers[29].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 30)
self.writeVInt(pl.brawlers[30].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 31)
self.writeVInt(pl.brawlers[31].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 32)
self.writeVInt(pl.brawlers[32].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 34)
self.writeVInt(pl.brawlers[33].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 35)
self.writeVInt(pl.brawlers[34].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 36)
self.writeVInt(pl.brawlers[35].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 37)
self.writeVInt(pl.brawlers[36].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 38)
self.writeVInt(pl.brawlers[37].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 39)
self.writeVInt(pl.brawlers[38].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 40)
self.writeVInt(pl.brawlers[39].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 41)
self.writeVInt(pl.brawlers[40].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 42)
self.writeVInt(pl.brawlers[41].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 43)
self.writeVInt(pl.brawlers[42].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 44)
self.writeVInt(pl.brawlers[43].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 45)
self.writeVInt(pl.brawlers[44].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 46)
self.writeVInt(pl.brawlers[45].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 47)
self.writeVInt(pl.brawlers[46].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 48)
self.writeVInt(pl.brawlers[47].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 49)
self.writeVInt(pl.brawlers[48].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 50)
self.writeVInt(pl.brawlers[49].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 51)
self.writeVInt(pl.brawlers[50].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 52)
self.writeVInt(pl.brawlers[51].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 53)
self.writeVInt(pl.brawlers[52].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 54)
self.writeVInt(pl.brawlers[53].trophies)
except IndexError:
pass
else:
pass
self.writeVInt(len(pl.brawlers))
try:
self.writeDataReference(16, 0)
self.writeVInt(pl.brawlers[0].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 1)
self.writeVInt(pl.brawlers[1].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 2)
self.writeVInt(pl.brawlers[2].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 3)
self.writeVInt(pl.brawlers[3].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 4)
self.writeVInt(pl.brawlers[4].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 5)
self.writeVInt(pl.brawlers[5].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 6)
self.writeVInt(pl.brawlers[6].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 7)
self.writeVInt(pl.brawlers[7].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 8)
self.writeVInt(pl.brawlers[8].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 9)
self.writeVInt(pl.brawlers[9].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 10)
self.writeVInt(pl.brawlers[10].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 11)
self.writeVInt(pl.brawlers[11].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 12)
self.writeVInt(pl.brawlers[12].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 13)
self.writeVInt(pl.brawlers[13].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 14)
self.writeVInt(pl.brawlers[14].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 15)
self.writeVInt(pl.brawlers[15].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 16)
self.writeVInt(pl.brawlers[16].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 17)
self.writeVInt(pl.brawlers[17].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 18)
self.writeVInt(pl.brawlers[18].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 19)
self.writeVInt(pl.brawlers[19].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 20)
self.writeVInt(pl.brawlers[20].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 21)
self.writeVInt(pl.brawlers[21].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 22)
self.writeVInt(pl.brawlers[22].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 23)
self.writeVInt(pl.brawlers[23].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 24)
self.writeVInt(pl.brawlers[24].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 25)
self.writeVInt(pl.brawlers[25].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 26)
self.writeVInt(pl.brawlers[26].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 27)
self.writeVInt(pl.brawlers[27].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 28)
self.writeVInt(pl.brawlers[28].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 29)
self.writeVInt(pl.brawlers[29].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 30)
self.writeVInt(pl.brawlers[30].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 31)
self.writeVInt(pl.brawlers[31].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 32)
self.writeVInt(pl.brawlers[32].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 34)
self.writeVInt(pl.brawlers[33].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 35)
self.writeVInt(pl.brawlers[34].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 36)
self.writeVInt(pl.brawlers[35].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 37)
self.writeVInt(pl.brawlers[36].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 38)
self.writeVInt(pl.brawlers[37].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 39)
self.writeVInt(pl.brawlers[38].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 40)
self.writeVInt(pl.brawlers[39].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 41)
self.writeVInt(pl.brawlers[40].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 42)
self.writeVInt(pl.brawlers[41].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 43)
self.writeVInt(pl.brawlers[42].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 44)
self.writeVInt(pl.brawlers[43].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 45)
self.writeVInt(pl.brawlers[44].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 46)
self.writeVInt(pl.brawlers[45].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 47)
self.writeVInt(pl.brawlers[46].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 48)
self.writeVInt(pl.brawlers[47].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 49)
self.writeVInt(pl.brawlers[48].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 50)
self.writeVInt(pl.brawlers[49].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 51)
self.writeVInt(pl.brawlers[50].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 52)
self.writeVInt(pl.brawlers[51].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 53)
self.writeVInt(pl.brawlers[52].highest_trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 54)
self.writeVInt(pl.brawlers[53].highest_trophies)
except IndexError:
pass
else:
pass #high trophies end
self.writeVInt(0)
self.writeVInt(len(pl.brawlers))
try:
self.writeDataReference(16, 0)
self.writeVInt(pl.brawlers[0].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 1)
self.writeVInt(pl.brawlers[1].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 2)
self.writeVInt(pl.brawlers[2].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 3)
self.writeVInt(pl.brawlers[3].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 4)
self.writeVInt(pl.brawlers[4].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 5)
self.writeVInt(pl.brawlers[5].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 6)
self.writeVInt(pl.brawlers[6].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 7)
self.writeVInt(pl.brawlers[7].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 8)
self.writeVInt(pl.brawlers[8].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 9)
self.writeVInt(pl.brawlers[9].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 10)
self.writeVInt(pl.brawlers[10].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 11)
self.writeVInt(pl.brawlers[11].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 12)
self.writeVInt(pl.brawlers[12].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 13)
self.writeVInt(pl.brawlers[13].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 14)
self.writeVInt(pl.brawlers[14].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 15)
self.writeVInt(pl.brawlers[15].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 16)
self.writeVInt(pl.brawlers[16].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 17)
self.writeVInt(pl.brawlers[17].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 18)
self.writeVInt(pl.brawlers[18].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 19)
self.writeVInt(pl.brawlers[19].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 20)
self.writeVInt(pl.brawlers[20].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 21)
self.writeVInt(pl.brawlers[21].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 22)
self.writeVInt(pl.brawlers[22].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 23)
self.writeVInt(pl.brawlers[23].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 24)
self.writeVInt(pl.brawlers[24].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 25)
self.writeVInt(pl.brawlers[25].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 26)
self.writeVInt(pl.brawlers[26].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 27)
self.writeVInt(pl.brawlers[27].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 28)
self.writeVInt(pl.brawlers[28].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 29)
self.writeVInt(pl.brawlers[29].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 30)
self.writeVInt(pl.brawlers[30].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 31)
self.writeVInt(pl.brawlers[31].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 32)
self.writeVInt(pl.brawlers[32].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 34)
self.writeVInt(pl.brawlers[33].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 35)
self.writeVInt(pl.brawlers[34].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 36)
self.writeVInt(pl.brawlers[35].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 37)
self.writeVInt(pl.brawlers[36].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 38)
self.writeVInt(pl.brawlers[37].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 39)
self.writeVInt(pl.brawlers[38].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 40)
self.writeVInt(pl.brawlers[39].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 41)
self.writeVInt(pl.brawlers[40].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 42)
self.writeVInt(pl.brawlers[41].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 43)
self.writeVInt(pl.brawlers[42].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 44)
self.writeVInt(pl.brawlers[43].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 45)
self.writeVInt(pl.brawlers[44].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 46)
self.writeVInt(pl.brawlers[45].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 47)
self.writeVInt(pl.brawlers[46].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 48)
self.writeVInt(pl.brawlers[47].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 49)
self.writeVInt(pl.brawlers[48].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 50)
self.writeVInt(pl.brawlers[49].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 51)
self.writeVInt(pl.brawlers[50].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 52)
self.writeVInt(pl.brawlers[51].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 53)
self.writeVInt(pl.brawlers[52].trophies)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 54)
self.writeVInt(pl.brawlers[53].trophies)
except IndexError:
pass
else:
pass #power points end
self.writeVInt(len(pl.brawlers))
try:
self.writeDataReference(16, 0)
self.writeVInt(pl.brawlers[0].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 1)
self.writeVInt(pl.brawlers[1].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 2)
self.writeVInt(pl.brawlers[2].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 3)
self.writeVInt(pl.brawlers[3].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 4)
self.writeVInt(pl.brawlers[4].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 5)
self.writeVInt(pl.brawlers[5].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 6)
self.writeVInt(pl.brawlers[6].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 7)
self.writeVInt(pl.brawlers[7].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 8)
self.writeVInt(pl.brawlers[8].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 9)
self.writeVInt(pl.brawlers[9].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 10)
self.writeVInt(pl.brawlers[10].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 11)
self.writeVInt(pl.brawlers[11].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 12)
self.writeVInt(pl.brawlers[12].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 13)
self.writeVInt(pl.brawlers[13].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 14)
self.writeVInt(pl.brawlers[14].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 15)
self.writeVInt(pl.brawlers[15].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 16)
self.writeVInt(pl.brawlers[16].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 17)
self.writeVInt(pl.brawlers[17].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 18)
self.writeVInt(pl.brawlers[18].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 19)
self.writeVInt(pl.brawlers[19].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 20)
self.writeVInt(pl.brawlers[20].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 21)
self.writeVInt(pl.brawlers[21].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 22)
self.writeVInt(pl.brawlers[22].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 23)
self.writeVInt(pl.brawlers[23].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 24)
self.writeVInt(pl.brawlers[24].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 25)
self.writeVInt(pl.brawlers[25].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 26)
self.writeVInt(pl.brawlers[26].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 27)
self.writeVInt(pl.brawlers[27].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 28)
self.writeVInt(pl.brawlers[28].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 29)
self.writeVInt(pl.brawlers[29].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 30)
self.writeVInt(pl.brawlers[30].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 31)
self.writeVInt(pl.brawlers[31].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 32)
self.writeVInt(pl.brawlers[32].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 34)
self.writeVInt(pl.brawlers[33].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 35)
self.writeVInt(pl.brawlers[34].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 36)
self.writeVInt(pl.brawlers[35].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 37)
self.writeVInt(pl.brawlers[36].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 38)
self.writeVInt(pl.brawlers[37].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 39)
self.writeVInt(pl.brawlers[38].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 40)
self.writeVInt(pl.brawlers[39].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 41)
self.writeVInt(pl.brawlers[40].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 42)
self.writeVInt(pl.brawlers[41].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 43)
self.writeVInt(pl.brawlers[42].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 44)
self.writeVInt(pl.brawlers[43].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 45)
self.writeVInt(pl.brawlers[44].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 46)
self.writeVInt(pl.brawlers[45].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 47)
self.writeVInt(pl.brawlers[46].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 48)
self.writeVInt(pl.brawlers[47].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 49)
self.writeVInt(pl.brawlers[48].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 50)
self.writeVInt(pl.brawlers[49].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 51)
self.writeVInt(pl.brawlers[50].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 52)
self.writeVInt(pl.brawlers[51].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 53)
self.writeVInt(pl.brawlers[52].power - 1)
except IndexError:
pass
else:
pass
try:
self.writeDataReference(16, 54)
self.writeVInt(pl.brawlers[53].power - 1)
except IndexError:
pass
else:
pass #power end
self.writeVInt(0) #я люблю когда волосатые хеоны обмазываются маслом
self.writeVInt(len(pl.brawlers))
try:
print(pl.brawlers[0].id)
self.writeDataReference(16, 0)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[1].id)
self.writeDataReference(16, 1)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[2].id)
self.writeDataReference(16, 2)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[3].id)
self.writeDataReference(16, 3)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[4].id)
self.writeDataReference(16, 4)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[5].id)
self.writeDataReference(16, 5)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[6].id)
self.writeDataReference(16, 6)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[7].id)
self.writeDataReference(16, 7)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[8].id)
self.writeDataReference(16, 8)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[9].id)
self.writeDataReference(16, 9)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[10].id)
self.writeDataReference(16, 10)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[11].id)
self.writeDataReference(16, 11)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[12].id)
self.writeDataReference(16, 12)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[13].id)
self.writeDataReference(16, 13)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[14].id)
self.writeDataReference(16, 14)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[15].id)
self.writeDataReference(16, 15)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[16].id)
self.writeDataReference(16, 16)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[17].id)
self.writeDataReference(16, 17)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[18].id)
self.writeDataReference(16, 18)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[19].id)
self.writeDataReference(16, 19)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[20].id)
self.writeDataReference(16, 20)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[21].id)
self.writeDataReference(16, 21)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[22].id)
self.writeDataReference(16, 22)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[23].id)
self.writeDataReference(16, 23)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[24].id)
self.writeDataReference(16, 24)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[25].id)
self.writeDataReference(16, 25)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[26].id)
self.writeDataReference(16, 26)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[27].id)
self.writeDataReference(16, 27)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[28].id)
self.writeDataReference(16, 28)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[29].id)
self.writeDataReference(16, 29)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[30].id)
self.writeDataReference(16, 30)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[31].id)
self.writeDataReference(16, 31)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[32].id)
self.writeDataReference(16, 32)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[33].id)
self.writeDataReference(16, 34)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[34].id)
self.writeDataReference(16, 35)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[35].id)
self.writeDataReference(16, 36)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[36].id)
self.writeDataReference(16, 37)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[37].id)
self.writeDataReference(16, 38)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[38].id)
self.writeDataReference(16, 39)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[39].id)
self.writeDataReference(16, 40)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[40].id)
self.writeDataReference(16, 41)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[41].id)
self.writeDataReference(16, 42)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[42].id)
self.writeDataReference(16, 43)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[43].id)
self.writeDataReference(16, 44)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[44].id)
self.writeDataReference(16, 45)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[45].id)
self.writeDataReference(16, 46)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[46].id)
self.writeDataReference(16, 47)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[47].id)
self.writeDataReference(16, 48)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[48].id)
self.writeDataReference(16, 49)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[49].id)
self.writeDataReference(16, 50)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[50].id)
self.writeDataReference(16, 0)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[51].id)
self.writeDataReference(16, 52)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[52].id)
self.writeDataReference(16, 53)
self.writeVInt(2)
except IndexError:
pass
else:
pass
try:
print(pl.brawlers[53].id)
self.writeDataReference(16, 54)
self.writeVInt(2)
except IndexError:
pass
else:
pass
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(0)
self.writeVInt(-1) # Diamonds
self.writeVInt(0) # Free Diamonds
self.writeVInt(player.Level) # Player Level
self.writeVInt(100)
self.writeVInt(0) # CumulativePurchasedDiamonds or Avatar User Level Tier | 10000 < Level Tier = 3 | 1000 < Level Tier = 2 | 0 < Level Tier = 1
self.writeVInt(0) # Battle Count
self.writeVInt(0) # WinCount
self.writeVInt(0) # LoseCount
self.writeVInt(0) # WinLooseStreak
self.writeVInt(0) # NpcWinCount
self.writeVInt(0) # NpcLoseCount
self.writeVInt(2) # TutorialState | shouldGoToFirstTutorialBattle = State == 0
self.writeVInt(0)
def decode(self):
fields = {}
# fields["AccountID"] = self.readLong()
# fields["HomeID"] = self.readLong()
# fields["PassToken"] = self.readString()
# fields["FacebookID"] = self.readString()
# fields["GamecenterID"] = self.readString()
# fields["ServerMajorVersion"] = self.readInt()
# fields["ContentVersion"] = self.readInt()
# fields["ServerBuild"] = self.readInt()
# fields["ServerEnvironment"] = self.readString()
# fields["SessionCount"] = self.readInt()
# fields["PlayTimeSeconds"] = self.readInt()
# fields["DaysSinceStartedPlaying"] = self.readInt()
# fields["FacebookAppID"] = self.readString()
# fields["ServerTime"] = self.readString()
# fields["AccountCreatedDate"] = self.readString()
# fields["StartupCooldownSeconds"] = self.readInt()
# fields["GoogleServiceID"] = self.readString()
# fields["LoginCountry"] = self.readString()
# fields["KunlunID"] = self.readString()
# fields["Tier"] = self.readInt()
# fields["TencentID"] = self.readString()
#
# ContentUrlCount = self.readInt()
# fields["GameAssetsUrls"] = []
# for i in range(ContentUrlCount):
# fields["GameAssetsUrls"].append(self.readString())
#
# EventUrlCount = self.readInt()
# fields["EventAssetsUrls"] = []
# for i in range(EventUrlCount):
# fields["EventAssetsUrls"].append(self.readString())
#
# fields["SecondsUntilAccountDeletion"] = self.readVInt()
# fields["SupercellIDToken"] = self.readCompressedString()
# fields["IsSupercellIDLogoutAllDevicesAllowed"] = self.readBoolean()
# fields["isSupercellIDEligible"] = self.readBoolean()
# fields["LineID"] = self.readString()
# fields["SessionID"] = self.readString()
# fields["KakaoID"] = self.readString()
# fields["UpdateURL"] = self.readString()
# fields["YoozooPayNotifyUrl"] = self.readString()
# fields["UnbotifyEnabled"] = self.readBoolean()
# super().decode(fields)
return fields
def execute(message, calling_instance, fields):
pass
def getMessageType(self):
return 24101
def getMessageVersion(self):
return self.messageVersion
| 24.694633
| 152
| 0.497552
| 7,412
| 80,060
| 5.365084
| 0.063815
| 0.172937
| 0.162953
| 0.195544
| 0.831137
| 0.816652
| 0.774305
| 0.71028
| 0.702283
| 0.702283
| 0
| 0.06117
| 0.417225
| 80,060
| 3,242
| 153
| 24.694633
| 0.791135
| 0.053672
| 0
| 0.845815
| 0
| 0
| 0.02914
| 0.016303
| 0
| 0
| 0
| 0
| 0
| 1
| 0.002203
| false
| 0.238253
| 0.001836
| 0.000734
| 0.005507
| 0.040015
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
699d1ee069ecc41263840b6cfa8d51f6dee6cc7d
| 13,656
|
py
|
Python
|
src/genie/libs/parser/iosxe/c9300/tests/ShowSystemIntegrityAllTrustChainNonce/cli/equal/golden_output1_expected.py
|
nielsvanhooy/genieparser
|
9a1955749697a6777ca614f0af4d5f3a2c254ccd
|
[
"Apache-2.0"
] | null | null | null |
src/genie/libs/parser/iosxe/c9300/tests/ShowSystemIntegrityAllTrustChainNonce/cli/equal/golden_output1_expected.py
|
nielsvanhooy/genieparser
|
9a1955749697a6777ca614f0af4d5f3a2c254ccd
|
[
"Apache-2.0"
] | null | null | null |
src/genie/libs/parser/iosxe/c9300/tests/ShowSystemIntegrityAllTrustChainNonce/cli/equal/golden_output1_expected.py
|
nielsvanhooy/genieparser
|
9a1955749697a6777ca614f0af4d5f3a2c254ccd
|
[
"Apache-2.0"
] | null | null | null |
expected_output = {
"bay": "0",
"chassis": {
1: {
"cmca_certificate": "MIIEPDCCAySgAwIBAgIKYQlufQAAAAAADDANBgkqhkiG9w0BAQUFADA1MRYwFAYDVQQKEw1DaXNjbyBTeXN0ZW1zMRswGQYDVQQDExJDaXNjbyBSb290IENBIDIwNDgwHhcNMTEwNjMwMTc1NjU3WhcNMjkwNTE0MjAyNTQyWjAnMQ4wDAYDVQQKEwVDaXNjbzEVMBMGA1UEAxMMQUNUMiBTVURJIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0m5l3THIxA9tN/hS5qR/6UZRpdd+9aE2JbFkNjht6gfHKd477AkS5XAtUs5oxDYVt/zEbslZq3+LR6qrqKKQVu6JYvH05UYLBqCj38s76NLk53905Wzp9pRcmRCPuX+a6tHF/qRuOiJ44mdeDYZo3qPCpxzprWJDPclM4iYKHumMQMqmgmg+xghHIooWS80BOcdiynEbeP5rZ7qRuewKMpl1TiI3WdBNjZjnpfjg66F+P4SaDkGbBXdGj13oVeF+EyFWLrFjj97fL2+8oauV43Qrvnf3d/GfqXj7ew+z/sXlXtEOjSXJURsyMEj53Rdd9tJwHky8neapszS+r+kdVQIDAQABo4IBWjCCAVYwCwYDVR0PBAQDAgHGMB0GA1UdDgQWBBRI2PHxwnDVW7t8cwmTr7i4MAP4fzAfBgNVHSMEGDAWgBQn88gVHm6aAgkWrSugiWBf2nsvqjBDBgNVHR8EPDA6MDigNqA0hjJodHRwOi8vd3d3LmNpc2NvLmNvbS9zZWN1cml0eS9wa2kvY3JsL2NyY2EyMDQ4LmNybDBQBggrBgEFBQcBAQREMEIwQAYIKwYBBQUHMAKGNGh0dHA6Ly93d3cuY2lzY28uY29tL3NlY3VyaXR5L3BraS9jZXJ0cy9jcmNhMjA0OC5jZXIwXAYDVR0gBFUwUzBRBgorBgEEAQkVAQwAMEMwQQYIKwYBBQUHAgEWNWh0dHA6Ly93d3cuY2lzY28uY29tL3NlY3VyaXR5L3BraS9wb2xpY2llcy9pbmRleC5odG1sMBIGA1UdEwEB/wQIMAYBAf8CAQAwDQYJKoZIhvcNAQEFBQADggEBAGh1qclr9tx4hzWgDERm371yeuEmqcIfi9b9+GbMSJbiZHc/CcCl0lJu0a9zTXA9w47H9/t6leduGxb4WeLxcwCiUgvFtCa51Iklt8nNbcKY/4dw1ex+7amATUQO4QggIE67wVIPu6bgAE3Ja/nRS3xKYSnj8H5TehimBSv6TECii5jUhOWryAK4dVo8hCjkjEkzu3ufBTJapnv89g9OE+H3VKM4L+/KdkUO+52djFKnhyl47d7cZR4DY4LIuFM2P1As8YyjzoNpK/urSRI14WdIlplR1nH7KNDl5618yfVP0IFJZBGrooCRBjOSwFv8cpWCbmWdPaCQT2nwIjTfY8c=",
"crca_certificate": "MIIDQzCCAiugAwIBAgIQX/h7KCtU3I1CoxW1aMmt/zANBgkqhkiG9w0BAQUFADA1MRYwFAYDVQQKEw1DaXNjbyBTeXN0ZW1zMRswGQYDVQQDExJDaXNjbyBSb290IENBIDIwNDgwHhcNMDQwNTE0MjAxNzEyWhcNMjkwNTE0MjAyNTQyWjA1MRYwFAYDVQQKEw1DaXNjbyBTeXN0ZW1zMRswGQYDVQQDExJDaXNjbyBSb290IENBIDIwNDgwggEgMA0GCSqGSIb3DQEBAQUAA4IBDQAwggEIAoIBAQCwmrmrp68Kd6ficba0ZmKUeIhHxmJVhEAyv8CrLqUccda8bnuoqrpu0hWISEWdovyD0My5jOAmaHBKeN8hF570YQXJFcjPFto1YYmUQ6iEqDGYeJu5Tm8sUxJszR2tKyS7McQr/4NEb7Y9JHcJ6r8qqB9qVvYgDxFUl4F1pyXOWWqCZe+36ufijXWLbvLdT6ZeYpzPEApk0E5tzivMW/VgpSdHjWn0f84bcN5wGyDWbs2mAag8EtKpP6BrXruOIIt6keO1aO6g58QBdKhTCytKmg9lEg6CTY5j/e/rmxrbU6YTYK/CfdfHbBcl1HP7R2RQgYCUTOG/rksc35LtLgXfAgEDo1EwTzALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUJ/PIFR5umgIJFq0roIlgX9p7L6owEAYJKwYBBAGCNxUBBAMCAQAwDQYJKoZIhvcNAQEFBQADggEBAJ2dhISjQal8dwy3U8pORFBi71R803UXHOjgxkhLtv5MOhmBVrBW7hmWYqpao2TB9k5UM8Z3/sUcuuVdJcr18JOagxEu5sv4dEX+5wW4q+ffy0vhN4TauYuXcB7w4ovXsNgOnbFp1iqRe6lJT37mjpXYgyc81WhJDtSd9i7rp77rMKSsH0T8laszBvt9YAretIpjsJyp8qS5UwGH0GikJ3+r/+n6yUA4iGe0OcaEb1fJU9u6ju7AQ7L4CYNu/2bPPu8Xs1gYJQk0XuPL1hS27PKSb3TkL4Eq1ZKR4OCXPDJoBYVL0fdX4lIdkxpUnwVwwEpxYB5DC2Ae/qPOgRnhCzU=",
"signature": {
"value": "6D1D497485AB5BDAD3ADA20A8299D96BEDF3FDD388E7C2E72DBEDD7AFB71DEF8A1D90B8218443DEC5C6D7586D61ADC9D3811AB9EDA3330D78E5EF8CEBCD63215BF04FD2123FF43588B107B737F352E493A2A32AD7892D4DEEC944C0F7EA7A22E841C52A2BE7C34416247F136EF0F48E256D5C1145A13D2C0FF4EE883E0551FCCD9850DA5DBCAFC75B178B1ED4A80B53A790FC1A8F70A5B090DE80EECD5715E9879A934E9AE73938CF18086289FCEE8065CFB9B7FF55300F1A8278C63D203E29F2A67622E9F96243D1BF6333F53948409516C366CF9E6207C705444F90B605F101134BA4B65698ADFEDC69AF269B8C1277963C02B224354B90155AC8D4B4C8722",
"version": 1,
},
"sudi_certificate": "MIIDfTCCAmWgAwIBAgIEAv7lSzANBgkqhkiG9w0BAQsFADAnMQ4wDAYDVQQKEwVDaXNjbzEVMBMGA1UEAxMMQUNUMiBTVURJIENBMB4XDTE4MDkxODA4MjQ0NloXDTI5MDUxNDIwMjU0MVowaTEnMCUGA1UEBRMeUElEOkM5MzAwLTQ4VVhNIFNOOkZDVzIyMzhHMDcwMQ4wDAYDVQQKEwVDaXNjbzEYMBYGA1UECxMPQUNULTIgTGl0ZSBTVURJMRQwEgYDVQQDEwtDOTMwMC00OFVYTTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOAACi2UGPQwxAC0LLN9txLRZKYijDfX/HUd+QNBCGUUXRDkTDF6KkziJXicJhjapPWRDMPpl4dFAEps3+0iue3RFv5k+1KMx3G8z+J5UeNIbI/Eztxmp9rz+q0IO2qd5vJLPR4aWEzLf8pKCWM7MVwMYTUJRtu+j9xSO7U81xTA7DMg4tM6OhCf4vXpaTIU45YnXVQqV0ZCIG9cqUBvV5md7lAS4ig1O9FlQw6ijmYTzfJPjfTdcFVXRJM6afJsf+iFNdBHqGNjLgdQ1hp/5lgliYhOKaKkw2oyDgburlR2fgk2ukaGJ1NY5XicIXzkgHMtn4YCaMnCquZIOg7l6+sCAwEAAaNvMG0wDgYDVR0PAQH/BAQDAgXgMAwGA1UdEwEB/wQCMAAwTQYDVR0RBEYwRKBCBgkrBgEEAQkVAgOgNRMzQ2hpcElEPVVZSlFVMGd3RUFxOFYyVmtJRTFoZVNBeU15QXhNVG8wT1RveE5pQVFBRmM9MA0GCSqGSIb3DQEBCwUAA4IBAQB8YiUm/58ogw+4/7pEKFc7oe6WBmJK6zRNHrJtgmNV5zpaZjqAgEeRiy7ig8EMO9gKk4jsTCC/BWtPfHKKmGPxqRxrhmxyvXZhAWMPuQnbIPDIXAXty1jhX00ovPa80OgaTePB7DXPWq2gMuQ95azPE2hjclWtIk73p554NhlYdnefaSz/TTCQJQPiTR3OzV2fmt5R/B/mNq5DZKh8uA1nL9NrkfvSy6r3TRmtW5KJYacvJ9NyOrNDSWtDrHDeAFrw8RVgMEiuIj4R7+rFBCzSjkTahDmFbDbktGuDsrTbxv/SrC83HkUBnCyIND9QKcDojjXB1n3rLyu2PV++s2Xi",
},
2: {
"cmca_certificate": "MIIEPDCCAySgAwIBAgIKYQlufQAAAAAADDANBgkqhkiG9w0BAQUFADA1MRYwFAYDVQQKEw1DaXNjbyBTeXN0ZW1zMRswGQYDVQQDExJDaXNjbyBSb290IENBIDIwNDgwHhcNMTEwNjMwMTc1NjU3WhcNMjkwNTE0MjAyNTQyWjAnMQ4wDAYDVQQKEwVDaXNjbzEVMBMGA1UEAxMMQUNUMiBTVURJIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0m5l3THIxA9tN/hS5qR/6UZRpdd+9aE2JbFkNjht6gfHKd477AkS5XAtUs5oxDYVt/zEbslZq3+LR6qrqKKQVu6JYvH05UYLBqCj38s76NLk53905Wzp9pRcmRCPuX+a6tHF/qRuOiJ44mdeDYZo3qPCpxzprWJDPclM4iYKHumMQMqmgmg+xghHIooWS80BOcdiynEbeP5rZ7qRuewKMpl1TiI3WdBNjZjnpfjg66F+P4SaDkGbBXdGj13oVeF+EyFWLrFjj97fL2+8oauV43Qrvnf3d/GfqXj7ew+z/sXlXtEOjSXJURsyMEj53Rdd9tJwHky8neapszS+r+kdVQIDAQABo4IBWjCCAVYwCwYDVR0PBAQDAgHGMB0GA1UdDgQWBBRI2PHxwnDVW7t8cwmTr7i4MAP4fzAfBgNVHSMEGDAWgBQn88gVHm6aAgkWrSugiWBf2nsvqjBDBgNVHR8EPDA6MDigNqA0hjJodHRwOi8vd3d3LmNpc2NvLmNvbS9zZWN1cml0eS9wa2kvY3JsL2NyY2EyMDQ4LmNybDBQBggrBgEFBQcBAQREMEIwQAYIKwYBBQUHMAKGNGh0dHA6Ly93d3cuY2lzY28uY29tL3NlY3VyaXR5L3BraS9jZXJ0cy9jcmNhMjA0OC5jZXIwXAYDVR0gBFUwUzBRBgorBgEEAQkVAQwAMEMwQQYIKwYBBQUHAgEWNWh0dHA6Ly93d3cuY2lzY28uY29tL3NlY3VyaXR5L3BraS9wb2xpY2llcy9pbmRleC5odG1sMBIGA1UdEwEB/wQIMAYBAf8CAQAwDQYJKoZIhvcNAQEFBQADggEBAGh1qclr9tx4hzWgDERm371yeuEmqcIfi9b9+GbMSJbiZHc/CcCl0lJu0a9zTXA9w47H9/t6leduGxb4WeLxcwCiUgvFtCa51Iklt8nNbcKY/4dw1ex+7amATUQO4QggIE67wVIPu6bgAE3Ja/nRS3xKYSnj8H5TehimBSv6TECii5jUhOWryAK4dVo8hCjkjEkzu3ufBTJapnv89g9OE+H3VKM4L+/KdkUO+52djFKnhyl47d7cZR4DY4LIuFM2P1As8YyjzoNpK/urSRI14WdIlplR1nH7KNDl5618yfVP0IFJZBGrooCRBjOSwFv8cpWCbmWdPaCQT2nwIjTfY8c=",
"crca_certificate": "MIIDQzCCAiugAwIBAgIQX/h7KCtU3I1CoxW1aMmt/zANBgkqhkiG9w0BAQUFADA1MRYwFAYDVQQKEw1DaXNjbyBTeXN0ZW1zMRswGQYDVQQDExJDaXNjbyBSb290IENBIDIwNDgwHhcNMDQwNTE0MjAxNzEyWhcNMjkwNTE0MjAyNTQyWjA1MRYwFAYDVQQKEw1DaXNjbyBTeXN0ZW1zMRswGQYDVQQDExJDaXNjbyBSb290IENBIDIwNDgwggEgMA0GCSqGSIb3DQEBAQUAA4IBDQAwggEIAoIBAQCwmrmrp68Kd6ficba0ZmKUeIhHxmJVhEAyv8CrLqUccda8bnuoqrpu0hWISEWdovyD0My5jOAmaHBKeN8hF570YQXJFcjPFto1YYmUQ6iEqDGYeJu5Tm8sUxJszR2tKyS7McQr/4NEb7Y9JHcJ6r8qqB9qVvYgDxFUl4F1pyXOWWqCZe+36ufijXWLbvLdT6ZeYpzPEApk0E5tzivMW/VgpSdHjWn0f84bcN5wGyDWbs2mAag8EtKpP6BrXruOIIt6keO1aO6g58QBdKhTCytKmg9lEg6CTY5j/e/rmxrbU6YTYK/CfdfHbBcl1HP7R2RQgYCUTOG/rksc35LtLgXfAgEDo1EwTzALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUJ/PIFR5umgIJFq0roIlgX9p7L6owEAYJKwYBBAGCNxUBBAMCAQAwDQYJKoZIhvcNAQEFBQADggEBAJ2dhISjQal8dwy3U8pORFBi71R803UXHOjgxkhLtv5MOhmBVrBW7hmWYqpao2TB9k5UM8Z3/sUcuuVdJcr18JOagxEu5sv4dEX+5wW4q+ffy0vhN4TauYuXcB7w4ovXsNgOnbFp1iqRe6lJT37mjpXYgyc81WhJDtSd9i7rp77rMKSsH0T8laszBvt9YAretIpjsJyp8qS5UwGH0GikJ3+r/+n6yUA4iGe0OcaEb1fJU9u6ju7AQ7L4CYNu/2bPPu8Xs1gYJQk0XuPL1hS27PKSb3TkL4Eq1ZKR4OCXPDJoBYVL0fdX4lIdkxpUnwVwwEpxYB5DC2Ae/qPOgRnhCzU=",
"signature": {
"value": "552960EC6CB0BD1F766406E698ECC637D2F760203EDF5E796D18A71107EA5FF8BBD24E208ABBA274F3B1AB1F7045156EE4ABB70D28B6AB3CFB936E8A0F66F7CD39B0FD2A19AB2194AFDA3CF302363405AA5801216171C64E94E4A90C95D2F03F27A89192FF6902632EE01F23D9572F7174F933A5B2DA64BDBF928E3C53510BF2951E50FB863174D7A32448E0B6B855C92FCB56C2A1600BFF48300BAC6AD01CFD2F70D6C277831F70D47AAFFB77DE9E648050C91606DF07DD5B281EF20CF7127B77A67872101EA9DAD17C4FE81D15BE5B368807E50F1D01BD12448A495E0BC705F1329A15D620C2E7576E81CDCEF665957B99051D09E38D9440B6922591CC6435",
"version": 1,
},
"sudi_certificate": "MIIDfTCCAmWgAwIBAgIEAv7u9TANBgkqhkiG9w0BAQsFADAnMQ4wDAYDVQQKEwVDaXNjbzEVMBMGA1UEAxMMQUNUMiBTVURJIENBMB4XDTE4MDkxODA5MDUwMloXDTI5MDUxNDIwMjU0MVowaTEnMCUGA1UEBRMeUElEOkM5MzAwLTQ4VVhNIFNOOkZDVzIyMzhMMDg2MQ4wDAYDVQQKEwVDaXNjbzEYMBYGA1UECxMPQUNULTIgTGl0ZSBTVURJMRQwEgYDVQQDEwtDOTMwMC00OFVYTTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ4G25IYSrHkEiDQ/X7k5/lJSiUXErETeY1LyzVdts5IMvg/bpDfjB3+z3c0yribCzzOrWqNzT/OPdgFN0XuDTIp9Z1EMlvOnbrKteQ9KGyc4gH797cUZ9wtXDRcJzfU+k/ocFGSF4rujFQY3/J5xH5r+/XQSTJ/Kyr2747W1hQ2xA4gCZenq0zKahOvkD8H2ZG0XAtetgwunpnU45XM+AFTSF229WLfeD36GvKBI2idQXNQ2u9FMaPICLUnm9apA0QTYqlU1/j67svG1kwpl+bOP6ewMGNNMTPj587GZg4nwa4IcRIhiQl7gUmnF+e288mGxsBUpddTHXdDwZvxjKUCAwEAAaNvMG0wDgYDVR0PAQH/BAQDAgXgMAwGA1UdEwEB/wQCMAAwTQYDVR0RBEYwRKBCBgkrBgEEAQkVAgOgNRMzQ2hpcElEPVVZSlFVMGd3RVFNTlYyVmtJRTFoZVNBeU15QXhNVG8wT1RveE5pQVFBRmM9MA0GCSqGSIb3DQEBCwUAA4IBAQBFxSF32e/vTXiflef5TuiGwtliCj212Kvvg5meGUV2oKHqCuMEWRoTPecg//6Ib3gP48cSDmR8g+FekRBNTt5OXB5JRhjZG4z4q+1UxA1M4QiW3lAp9wQMYS1NCYZoblqbRIBGBe0qt9mzw0SmGTu+nbyINywJJu0d0k1oD+YHBnYJVdEE+cx8Ovx2k1HrEXw49dXzSxf1rKaadxXPK3H9gKVCwM/ayZ741ymLfMVvaayvnvY+TyeVAX/WAh+dJkaKW38p7nYEKghvKHA7ShVZcxLmVdcVazU+ZxI2KDiZovB94DYF0pYfz+hcb/kN+V/EdpwQyq0FuAgQ0orMc31F",
},
3: {
"cmca_certificate": "MIIEPDCCAySgAwIBAgIKYQlufQAAAAAADDANBgkqhkiG9w0BAQUFADA1MRYwFAYDVQQKEw1DaXNjbyBTeXN0ZW1zMRswGQYDVQQDExJDaXNjbyBSb290IENBIDIwNDgwHhcNMTEwNjMwMTc1NjU3WhcNMjkwNTE0MjAyNTQyWjAnMQ4wDAYDVQQKEwVDaXNjbzEVMBMGA1UEAxMMQUNUMiBTVURJIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0m5l3THIxA9tN/hS5qR/6UZRpdd+9aE2JbFkNjht6gfHKd477AkS5XAtUs5oxDYVt/zEbslZq3+LR6qrqKKQVu6JYvH05UYLBqCj38s76NLk53905Wzp9pRcmRCPuX+a6tHF/qRuOiJ44mdeDYZo3qPCpxzprWJDPclM4iYKHumMQMqmgmg+xghHIooWS80BOcdiynEbeP5rZ7qRuewKMpl1TiI3WdBNjZjnpfjg66F+P4SaDkGbBXdGj13oVeF+EyFWLrFjj97fL2+8oauV43Qrvnf3d/GfqXj7ew+z/sXlXtEOjSXJURsyMEj53Rdd9tJwHky8neapszS+r+kdVQIDAQABo4IBWjCCAVYwCwYDVR0PBAQDAgHGMB0GA1UdDgQWBBRI2PHxwnDVW7t8cwmTr7i4MAP4fzAfBgNVHSMEGDAWgBQn88gVHm6aAgkWrSugiWBf2nsvqjBDBgNVHR8EPDA6MDigNqA0hjJodHRwOi8vd3d3LmNpc2NvLmNvbS9zZWN1cml0eS9wa2kvY3JsL2NyY2EyMDQ4LmNybDBQBggrBgEFBQcBAQREMEIwQAYIKwYBBQUHMAKGNGh0dHA6Ly93d3cuY2lzY28uY29tL3NlY3VyaXR5L3BraS9jZXJ0cy9jcmNhMjA0OC5jZXIwXAYDVR0gBFUwUzBRBgorBgEEAQkVAQwAMEMwQQYIKwYBBQUHAgEWNWh0dHA6Ly93d3cuY2lzY28uY29tL3NlY3VyaXR5L3BraS9wb2xpY2llcy9pbmRleC5odG1sMBIGA1UdEwEB/wQIMAYBAf8CAQAwDQYJKoZIhvcNAQEFBQADggEBAGh1qclr9tx4hzWgDERm371yeuEmqcIfi9b9+GbMSJbiZHc/CcCl0lJu0a9zTXA9w47H9/t6leduGxb4WeLxcwCiUgvFtCa51Iklt8nNbcKY/4dw1ex+7amATUQO4QggIE67wVIPu6bgAE3Ja/nRS3xKYSnj8H5TehimBSv6TECii5jUhOWryAK4dVo8hCjkjEkzu3ufBTJapnv89g9OE+H3VKM4L+/KdkUO+52djFKnhyl47d7cZR4DY4LIuFM2P1As8YyjzoNpK/urSRI14WdIlplR1nH7KNDl5618yfVP0IFJZBGrooCRBjOSwFv8cpWCbmWdPaCQT2nwIjTfY8c=",
"crca_certificate": "MIIDQzCCAiugAwIBAgIQX/h7KCtU3I1CoxW1aMmt/zANBgkqhkiG9w0BAQUFADA1MRYwFAYDVQQKEw1DaXNjbyBTeXN0ZW1zMRswGQYDVQQDExJDaXNjbyBSb290IENBIDIwNDgwHhcNMDQwNTE0MjAxNzEyWhcNMjkwNTE0MjAyNTQyWjA1MRYwFAYDVQQKEw1DaXNjbyBTeXN0ZW1zMRswGQYDVQQDExJDaXNjbyBSb290IENBIDIwNDgwggEgMA0GCSqGSIb3DQEBAQUAA4IBDQAwggEIAoIBAQCwmrmrp68Kd6ficba0ZmKUeIhHxmJVhEAyv8CrLqUccda8bnuoqrpu0hWISEWdovyD0My5jOAmaHBKeN8hF570YQXJFcjPFto1YYmUQ6iEqDGYeJu5Tm8sUxJszR2tKyS7McQr/4NEb7Y9JHcJ6r8qqB9qVvYgDxFUl4F1pyXOWWqCZe+36ufijXWLbvLdT6ZeYpzPEApk0E5tzivMW/VgpSdHjWn0f84bcN5wGyDWbs2mAag8EtKpP6BrXruOIIt6keO1aO6g58QBdKhTCytKmg9lEg6CTY5j/e/rmxrbU6YTYK/CfdfHbBcl1HP7R2RQgYCUTOG/rksc35LtLgXfAgEDo1EwTzALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUJ/PIFR5umgIJFq0roIlgX9p7L6owEAYJKwYBBAGCNxUBBAMCAQAwDQYJKoZIhvcNAQEFBQADggEBAJ2dhISjQal8dwy3U8pORFBi71R803UXHOjgxkhLtv5MOhmBVrBW7hmWYqpao2TB9k5UM8Z3/sUcuuVdJcr18JOagxEu5sv4dEX+5wW4q+ffy0vhN4TauYuXcB7w4ovXsNgOnbFp1iqRe6lJT37mjpXYgyc81WhJDtSd9i7rp77rMKSsH0T8laszBvt9YAretIpjsJyp8qS5UwGH0GikJ3+r/+n6yUA4iGe0OcaEb1fJU9u6ju7AQ7L4CYNu/2bPPu8Xs1gYJQk0XuPL1hS27PKSb3TkL4Eq1ZKR4OCXPDJoBYVL0fdX4lIdkxpUnwVwwEpxYB5DC2Ae/qPOgRnhCzU=",
"signature": {
"value": "136226952E85A14C680B9F7405F50A0992B15444FC25F8A7C28D215957D6ED1771E03373D716F39156E64C1A523889139AF2798FCF1F2A50D1E3D75DBB0D7FF29F9CD9A72D8B46CBDB7C83438DFEE59DC9D32BA9BFA2614EB6BE91BF89105B0FD2BAC1573819C08BCC904411EA7F0FD2A7789F167838CF01AAFA9C9B3C4146121554130CD9C545B18D656CA3D4763415BE17F1DCACEB307961D1377BA92812B3EB5A95BFEFAE728F15218C6B692F7F315C0FB0F758E5C1E9D559EA72BE0FC3A7FD78019CFD250FA79DB47A3D9EE6D9C01397C50E435F4916F2004CE0B9969294C6554EB02959E3D809AA5A6E77A5669B0690DCADCAD33615A02F2F92A02EA41A",
"version": 1,
},
"sudi_certificate": "MIIDfTCCAmWgAwIBAgIEAv7LWTANBgkqhkiG9w0BAQsFADAnMQ4wDAYDVQQKEwVDaXNjbzEVMBMGA1UEAxMMQUNUMiBTVURJIENBMB4XDTE4MDkxODA2NDA0NVoXDTI5MDUxNDIwMjU0MVowaTEnMCUGA1UEBRMeUElEOkM5MzAwLTQ4VVhNIFNOOkZDVzIyMzhHMDZWMQ4wDAYDVQQKEwVDaXNjbzEYMBYGA1UECxMPQUNULTIgTGl0ZSBTVURJMRQwEgYDVQQDEwtDOTMwMC00OFVYTTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANtpTvfHhv+psZvkUurZJBTwygvaTIHx4ZI0vh+8PmPH+NE5nWwl84UScjOM1OxtrCdAkjUeYy8jh8/S97ttHExvwlSAO+EYDskvsb1f0MZPVNcLymZMwyuV4TQkQTd+C4pQEENKZlnKQvSTGiyxeSx64iiTmCbFggxL6JsLmxbJAhBKXN0/2zXjRe9vl4hzJoHI3wWH2iaB1A8Q42F9uDqICR4c61quw6EPbAkjxa0U3Sdxxbh5dJIhell2N7KPc158ioMZtFOzNWYPa+hn+CPDtbXXOq7k3WpPKNNiAScQgmvpDZngetS06JCnAyNzJO7K7MwQGnYaHSnWfbhwbncCAwEAAaNvMG0wDgYDVR0PAQH/BAQDAgXgMAwGA1UdEwEB/wQCMAAwTQYDVR0RBEYwRKBCBgkrBgEEAQkVAgOgNRMzQ2hpcElEPVVZSlFVMGd3RUF6RVYyVmtJRTFoZVNBeU15QXhNVG8wT1RveE5pQVFBRmM9MA0GCSqGSIb3DQEBCwUAA4IBAQAlgi5pmvMtcW6H/gXhbpIsZJNFSgjELwu2KbwHGzFcEIvO8r7Y1i+AaXw08eSKYUtk2wVngRofkmR7WeIcgSiD0IQwapSEI2gjFu73d2YXzeEpCtOBWimrvanWocHTTVyt8sBA/kDxVofHdCqZ3PKeiDG4w2MIAl0BvPXCyFTzWw34zFtKm09SjD4LxHlULJQE99fnm6O6ynAfLzmeiG5RMvAHbK+ufuPbtWTnqH9OiM/wDTkbh+ldIW/GC7B/AtOeSIalesLMPsX6lcrFB4elKno+lhnxLnSDKIIR7pBH652LublqKBeNUqWFRQIRZKEOhhNgb2uSjqoP09PZe686",
},
},
"fru": "fru-rp",
"node": "0",
"slot": "0",
}
| 379.333333
| 1,487
| 0.94237
| 270
| 13,656
| 47.625926
| 0.537037
| 0.003499
| 0.069057
| 0.070223
| 0.598647
| 0.598647
| 0.598647
| 0.598647
| 0.598647
| 0.598647
| 0
| 0.186183
| 0.030097
| 13,656
| 35
| 1,488
| 390.171429
| 0.784673
| 0
| 0
| 0.342857
| 0
| 0.257143
| 0.957601
| 0.940246
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
69a49cfabd75bd26d3338c1ed6486b10f0390582
| 10,181
|
py
|
Python
|
src/DQNAgent.py
|
TheMagnat/IAR_Self-Improving-Reactive-Agents
|
e84452671f09762623df97564057e20b9a779b07
|
[
"MIT"
] | null | null | null |
src/DQNAgent.py
|
TheMagnat/IAR_Self-Improving-Reactive-Agents
|
e84452671f09762623df97564057e20b9a779b07
|
[
"MIT"
] | null | null | null |
src/DQNAgent.py
|
TheMagnat/IAR_Self-Improving-Reactive-Agents
|
e84452671f09762623df97564057e20b9a779b07
|
[
"MIT"
] | null | null | null |
from core import NN
from memory import Memory, MemoryCourse
import torch
import numpy as np
import random
if torch.cuda.is_available():
torch.cuda.set_device(0)
Device = torch.device('cuda')
else:
Device = torch.device('cpu')
class DQNAgent(object):
"""The world's simplest agent!"""
def __init__(self, rotation, N=10000, batch_size=32, prior=False, paperPrior=False):
self.test = False
self.net = NN(145, 1, layers=[512], finalActivation=None, activation=torch.nn.ReLU(),dropout=0.0).to(Device)
self.target_net = NN(145, 1, layers=[512], finalActivation=None, activation=torch.nn.ReLU(),dropout=0.0).to(Device)
self.target_net.load_state_dict(self.net.state_dict())
self.epsilon = 1
self.gamma = 0.9
self.lr = 1e-3
self.N = N
self.C = 1000
self.batch_size = batch_size
self.prior = prior
self.paperPrior = paperPrior
self.buffer = Memory(self.N, prior=self.prior, paperPrior=self.paperPrior)
self.optimizer = torch.optim.Adam(self.net.parameters(),lr=self.lr)
self.nb_iter = 0
self.rotation = rotation
def act(self, obs):
obs=np.array(obs)
if self.test:
Q=np.zeros(4)
for a in range(4):
Q[a]=self.net(torch.tensor([obs],dtype=torch.float32,device=Device)).detach().cpu().numpy()[0]
obs=obs[self.rotation]
return np.argmax(Q)
else:
self.epsilon=max(0.1,self.epsilon-1/150000)
self.nb_iter+=1
if random.random()<self.epsilon:
return random.randint(0,3)
else:
Q=np.zeros(4)
for a in range(4):
Q[a]=self.net(torch.tensor([obs],dtype=torch.float32,device=Device)).detach().cpu().numpy()[0]
obs=obs[self.rotation]
return np.argmax(Q)
def save(self,outputDir):
# with open(outputDir,'wb') as f:
# pickle.dump(self.net,f)
torch.save(self.net.state_dict(),outputDir)
def load(self,inputDir):
# with open(inputDir,'rb') as f:
# self.net=pickle.load(f)
self.net.load_state_dict(torch.load(inputDir, map_location=Device))
def learn(self):
if self.test:
return
else:
self.optimizer.zero_grad()
idx, w, mini_batch=self.buffer.sample(self.batch_size)
ob, action, reward, new_ob, done=map(list,zip(*mini_batch))
ob_v=torch.tensor(np.array(ob).reshape(-1,145),dtype=torch.float32,device=Device)
action_v=torch.tensor(np.array(action).reshape(-1),dtype=torch.float32,device=Device)
new_ob_v=torch.tensor(np.array(new_ob).reshape(-1,145),dtype=torch.float32,device=Device)
reward_v=torch.tensor(np.array(reward).reshape(-1),dtype=torch.float32,device=Device)
done_v=torch.tensor(np.array(done).reshape(-1),dtype=torch.float32,device=Device)
Q_next=torch.zeros((self.batch_size,4)).to(Device)
for a in range(4):
Q_next[:,a]=self.target_net(new_ob_v).view(-1)
new_ob_v=new_ob_v[[[i]*145 for i in range(self.batch_size)],[self.rotation for _ in range(self.batch_size)]]
y=reward_v+(1-done_v)*self.gamma*torch.max(Q_next,dim=1)[0]
#Le y.detach() est nécessaire pour ne pas calculer le gradient de y innutilement et perdre du temps
# loss=torch.nn.SmoothL1Loss()(y.detach(),self.net(ob_v)[range(len(action_v)),np.array(action_v.detach().cpu().numpy())])
Q=torch.zeros((self.batch_size,4)).to(Device)
for a in range(4):
Q[:,a]=self.net(ob_v).view(-1)
ob_v=ob_v[[[i]*145 for i in range(self.batch_size)],[self.rotation for _ in range(self.batch_size)]]
loss=torch.nn.MSELoss()(y.detach(),Q[range(self.batch_size),np.array(action_v.detach().cpu().numpy())])
loss.backward()
# print(loss)
self.optimizer.step()
if self.nb_iter%self.C==0:
self.target_net.load_state_dict(self.net.state_dict())
# enregistrement de la transition pour exploitation par learn ulterieure
def store(self,ob, action, new_ob, reward, done, it):
# Si l'agent est en mode de test, on n'enregistre pas la transition
if not self.test:
tr = (ob, action, reward, new_ob, done)
self.lastTransition=tr #ici on n'enregistre que la derniere transition pour traitement immédiat, mais on pourrait enregistrer dans une structure de buffer (c'est l'interet de memory.py)
self.buffer.store(tr)
class DQNAgent_article(object):
"""The world's simplest agent!"""
def __init__(self, rotation, N=100, batch_size=12, prior=False, paperPrior=False):
self.test = False
self.net = NN(145, 1, layers=[512], finalActivation=None, activation=torch.nn.ReLU(),dropout=0.0).to(Device)
self.target_net = NN(145, 1, layers=[512], finalActivation=None, activation=torch.nn.ReLU(),dropout=0.0).to(Device)
self.target_net.load_state_dict(self.net.state_dict())
self.epsilon = 1
self.gamma = 0.9
self.lr = 1e-3
self.N = N
self.C = 1000
self.batch_size = batch_size
self.prior = prior
self.paperPrior = paperPrior
self.buffer = Memory(self.N, prior=self.prior, paperPrior=self.paperPrior)
self.currentCourseBuffer = MemoryCourse()
self.optimizer = torch.optim.Adam(self.net.parameters(),lr=self.lr)
self.nb_iter = 0
self.rotation = rotation
def act(self, obs):
obs=np.array(obs)
if self.test:
Q=np.zeros(4)
for a in range(4):
Q[a]=self.net(torch.tensor([obs],dtype=torch.float32,device=Device)).detach().cpu().numpy()[0]
obs=obs[self.rotation]
return np.argmax(Q)
else:
self.epsilon=max(0.1,self.epsilon-1/150000)
self.nb_iter+=1
if random.random()<self.epsilon:
return random.randint(0,3)
else:
Q=np.zeros(4)
for a in range(4):
Q[a]=self.net(torch.tensor([obs],dtype=torch.float32,device=Device)).detach().cpu().numpy()[0]
obs=obs[self.rotation]
return np.argmax(Q)
def save(self,outputDir):
# with open(outputDir,'wb') as f:
# pickle.dump(self.net,f)
torch.save(self.net.state_dict(),outputDir)
def load(self,inputDir):
# with open(inputDir,'rb') as f:
# self.net=pickle.load(f)
self.net.load_state_dict(torch.load(inputDir, map_location=Device))
def batchlLearn(self):
if self.test:
return
idx, w, courses = self.buffer.sample(self.batch_size)
for course in courses:
self.learn(course.getAll())
def learn(self, batch):
if self.test:
return
else:
batch_size = len(batch)
self.optimizer.zero_grad()
#idx, w, mini_batch=self.buffer.sample(self.batch_size)
ob, action, reward, new_ob, done = map(list,zip(*batch))
ob_v=torch.tensor(np.array(ob).reshape(-1,145),dtype=torch.float32,device=Device)
action_v=torch.tensor(np.array(action).reshape(-1),dtype=torch.float32,device=Device)
new_ob_v=torch.tensor(np.array(new_ob).reshape(-1,145),dtype=torch.float32,device=Device)
reward_v=torch.tensor(np.array(reward).reshape(-1),dtype=torch.float32,device=Device)
done_v=torch.tensor(np.array(done).reshape(-1),dtype=torch.float32,device=Device)
Q_next=torch.zeros((batch_size,4)).to(Device)
for a in range(4):
Q_next[:,a]=self.target_net(new_ob_v).view(-1)
new_ob_v=new_ob_v[[[i]*145 for i in range(batch_size)],[self.rotation for _ in range(batch_size)]]
y=reward_v+(1-done_v)*self.gamma*torch.max(Q_next,dim=1)[0]
#Le y.detach() est nécessaire pour ne pas calculer le gradient de y innutilement et perdre du temps
# loss=torch.nn.SmoothL1Loss()(y.detach(),self.net(ob_v)[range(len(action_v)),np.array(action_v.detach().cpu().numpy())])
Q=torch.zeros((batch_size,4)).to(Device)
for a in range(4):
Q[:,a]=self.net(ob_v).view(-1)
ob_v=ob_v[[[i]*145 for i in range(batch_size)],[self.rotation for _ in range(batch_size)]]
loss=torch.nn.MSELoss()(y.detach(),Q[range(batch_size),np.array(action_v.detach().cpu().numpy())])
loss.backward()
# print(loss)
self.optimizer.step()
if self.nb_iter%self.C==0:
self.target_net.load_state_dict(self.net.state_dict())
# enregistrement de la transition pour exploitation par learn ulterieure
def store(self,ob, action, new_ob, reward, done, it):
# Si l'agent est en mode de test, on n'enregistre pas la transition
if not self.test:
tr = (ob, action, reward, new_ob, done)
self.lastTransition=tr #ici on n'enregistre que la derniere transition pour traitement immédiat, mais on pourrait enregistrer dans une structure de buffer (c'est l'interet de memory.py)
self.buffer.store(tr)
def storeAndLearn(self, ob, action, new_ob, reward, done, it):
if not self.test:
tr = (ob, action, reward, new_ob, done)
self.lastTransition = tr #ici on n'enregistre que la derniere transition pour traitement immédiat, mais on pourrait enregistrer dans une structure de buffer (c'est l'interet de memory.py)
self.currentCourseBuffer.store(tr)
last = self.currentCourseBuffer.getLast()
self.learn([last])
def saveCourse(self):
self.buffer.store(self.currentCourseBuffer)
self.currentCourseBuffer = MemoryCourse()
| 42.777311
| 199
| 0.602004
| 1,436
| 10,181
| 4.173398
| 0.129526
| 0.036042
| 0.039713
| 0.053729
| 0.907392
| 0.896713
| 0.891874
| 0.891874
| 0.887035
| 0.887035
| 0
| 0.025213
| 0.263727
| 10,181
| 238
| 200
| 42.777311
| 0.77428
| 0.153718
| 0
| 0.77193
| 0
| 0
| 0.000815
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.087719
| false
| 0
| 0.02924
| 0
| 0.181287
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
69acfbf9eceac6c9f0e9fbb739972498738ef7ee
| 875
|
py
|
Python
|
program_graphs/ddg/parser/java/parser.py
|
acheshkov/program-graphs
|
6832d9689e14f3f2f376dbb8ea796a2cb57c1d75
|
[
"MIT"
] | 5
|
2021-08-10T08:54:01.000Z
|
2022-03-10T09:08:58.000Z
|
program_graphs/ddg/parser/java/parser.py
|
acheshkov/program-graphs
|
6832d9689e14f3f2f376dbb8ea796a2cb57c1d75
|
[
"MIT"
] | null | null | null |
program_graphs/ddg/parser/java/parser.py
|
acheshkov/program-graphs
|
6832d9689e14f3f2f376dbb8ea796a2cb57c1d75
|
[
"MIT"
] | null | null | null |
# from typing import Any, List, Optional
# from tree_sitter import Language, Parser # type: ignore
from program_graphs.ddg.ddg import DDG
# from program_graphs.cfg.operators import mk_empty_cfg, combine
# from program_graphs.cfg.operators import manage_jumps, eliminate_redundant_nodes
# from program_graphs.cfg.parser.java.utils import get_identifier, get_nodes_after_colon
# from program_graphs.cfg.parser.java.switch_stmt import get_switch_block_label, get_switch_label
# from program_graphs.cfg.types import Node, JumpKind, Label
# from program_graphs.cfg.parser.java.break_stmt import mk_cfg_break
# from program_graphs.cfg.parser.java.continue_stmt import mk_cfg_continue
# from program_graphs.cfg.parser.java.return_stmt import mk_cfg_return
def parse(source_code: str) -> DDG:
# cfg =
# fcfg = mk_fcfg(cfg)
# dds = get_data_dependencies(fcfg)
pass
| 46.052632
| 97
| 0.809143
| 134
| 875
| 5
| 0.380597
| 0.147761
| 0.228358
| 0.238806
| 0.373134
| 0.328358
| 0
| 0
| 0
| 0
| 0
| 0
| 0.116571
| 875
| 18
| 98
| 48.611111
| 0.866753
| 0.856
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
385542d7b62b78cfee01fdc6e0098ce069470d79
| 115
|
py
|
Python
|
hpe_benchmark/solver/__init__.py
|
anotherTK/human-pose-estimation.pytorch
|
9c2b1fa6b5b4d70cd5f4c72a915f953a4257a994
|
[
"MIT"
] | 1
|
2022-02-24T08:52:15.000Z
|
2022-02-24T08:52:15.000Z
|
hpe_benchmark/solver/__init__.py
|
anotherTK/human-pose-estimation.pytorch
|
9c2b1fa6b5b4d70cd5f4c72a915f953a4257a994
|
[
"MIT"
] | null | null | null |
hpe_benchmark/solver/__init__.py
|
anotherTK/human-pose-estimation.pytorch
|
9c2b1fa6b5b4d70cd5f4c72a915f953a4257a994
|
[
"MIT"
] | null | null | null |
from .build import make_optimizer
from .build import make_lr_scheduler
from .lr_scheduler import WarmupMultiStepLR
| 28.75
| 43
| 0.869565
| 16
| 115
| 6
| 0.5
| 0.1875
| 0.3125
| 0.395833
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104348
| 115
| 3
| 44
| 38.333333
| 0.932039
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
38620516f5340b656ae882b1851c1e6c41dae1f3
| 7,831
|
py
|
Python
|
web/pipeline/migrations/0033_auto_20200720_1857.py
|
stevenstuber/CIT
|
8c485e72084c06da6db45da1cb402bac26411ec2
|
[
"Apache-2.0"
] | 10
|
2020-11-12T15:13:40.000Z
|
2022-03-05T22:33:08.000Z
|
web/pipeline/migrations/0033_auto_20200720_1857.py
|
stevenstuber/CIT
|
8c485e72084c06da6db45da1cb402bac26411ec2
|
[
"Apache-2.0"
] | 28
|
2020-07-17T16:33:55.000Z
|
2022-03-21T16:24:25.000Z
|
web/pipeline/migrations/0033_auto_20200720_1857.py
|
stevenstuber/CIT
|
8c485e72084c06da6db45da1cb402bac26411ec2
|
[
"Apache-2.0"
] | 5
|
2020-11-02T23:39:53.000Z
|
2022-03-01T19:09:45.000Z
|
# Generated by Django 2.2.13 on 2020-07-20 18:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pipeline', '0032_municipality'),
]
operations = [
migrations.AddField(
model_name='civicfacility',
name='bus_cat_cl',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='civicfacility',
name='bus_cat_ds',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='civicfacility',
name='keywords',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='clinic',
name='hours',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='clinic',
name='sv_description',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='diagnosticfacility',
name='ser_cd_dsc',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='economicproject',
name='eao_project_status',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='economicproject',
name='flnro_project_status',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='economicproject',
name='project_category',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='economicproject',
name='project_comments',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='economicproject',
name='project_type',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='economicproject',
name='proponent',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='firstresponder',
name='keywords',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='architect',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='clean_energy_ind',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='construction_jobs',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='construction_subtype',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='construction_type',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='developer',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='estimated_cost',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='federal_funding',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='green_building_desc',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='green_building_ind',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='municipal_funding',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='operating_jobs',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='project_category_name',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='project_comments',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='project_description',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='project_stage',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='project_status',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='project_type',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='provinvial_funding',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='standardized_completion_date',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='standardized_start_date',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='naturalresourceproject',
name='update_activity',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='school',
name='district_number',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='school',
name='public_or_independent',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='school',
name='school_education_level',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='timberfacility',
name='bus_cat_ds',
field=models.CharField(blank=True, max_length=255, null=True),
),
]
| 37.4689
| 74
| 0.587154
| 731
| 7,831
| 6.120383
| 0.128591
| 0.156907
| 0.200492
| 0.23536
| 0.90456
| 0.900983
| 0.900983
| 0.900983
| 0.885338
| 0.877962
| 0
| 0.023914
| 0.300472
| 7,831
| 208
| 75
| 37.649038
| 0.792808
| 0.005874
| 0
| 0.79703
| 1
| 0
| 0.167288
| 0.076963
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.004951
| 0
| 0.019802
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
387d911dc560520f2ffddec99524ce982b3bfdf7
| 6,479
|
py
|
Python
|
node editor/mercuryeditor/mercury/nodes/input.py
|
ethanedits/Mercury-Node-Editor
|
afeb6c407ed70e4a1621dbc6463fda1e763c4ea4
|
[
"MIT"
] | 3
|
2020-12-17T13:37:03.000Z
|
2022-03-24T17:07:42.000Z
|
node editor/mercuryeditor/mercury/nodes/input.py
|
ethanedits/Mercury-Node-Editor
|
afeb6c407ed70e4a1621dbc6463fda1e763c4ea4
|
[
"MIT"
] | null | null | null |
node editor/mercuryeditor/mercury/nodes/input.py
|
ethanedits/Mercury-Node-Editor
|
afeb6c407ed70e4a1621dbc6463fda1e763c4ea4
|
[
"MIT"
] | null | null | null |
from PyQt5.QtCore import *
from mercuryeditor.mercury.calc_conf import *
from mercuryeditor.mercury.calc_node_base import *
from nodeeditor.utils import dumpException
import pymem
import pymem.process
class CalcInputContent(QDMNodeContentWidget):
def initUI(self):
self.edit = QLineEdit("1", self)
self.edit.setAlignment(Qt.AlignRight)
self.edit.setObjectName(self.node.content_label_objname)
def serialize(self):
res = super().serialize()
res['value'] = self.edit.text()
return res
def deserialize(self, data, hashmap={}):
res = super().deserialize(data, hashmap)
try:
value = data['value']
self.edit.setText(value)
return True & res
except Exception as e:
dumpException(e)
return res
@register_node(OP_NODE_INPUT)
class CalcNode_Input(CalcNode):
icon = ".icons\\in.png"
op_code = OP_NODE_INPUT
op_title = "Input (Int)"
content_label_objname = "calc_node_input"
def __init__(self, scene):
super().__init__(scene, inputs=[], outputs=[3])
self.eval()
def initInnerClasses(self):
self.content = CalcInputContent(self)
self.grNode = CalcGraphicsNode(self)
self.content.edit.textChanged.connect(self.onInputChanged)
def evalImplementation(self):
u_value = self.content.edit.text()
s_value = int(u_value)
self.value = s_value
self.markDirty(False)
self.markInvalid(False)
self.markDescendantsInvalid(False)
self.markDescendantsDirty()
self.grNode.setToolTip("Integer Input")
self.evalChildren()
return self.value
class CalcInputFloatContent(QDMNodeContentWidget):
def initUI(self):
self.edit = QLineEdit("1.0", self)
self.edit.setAlignment(Qt.AlignRight)
self.edit.setObjectName(self.node.content_label_objname)
def serialize(self):
res = super().serialize()
res['value'] = self.edit.text()
return res
def deserialize(self, data, hashmap={}):
res = super().deserialize(data, hashmap)
try:
value = data['value']
self.edit.setText(value)
return True & res
except Exception as e:
dumpException(e)
return res
@register_node(OP_NODE_INPUTFLOAT)
class CalcNode_InputFloat(CalcNode):
icon = ".icons\\in.png"
op_code = OP_NODE_INPUTFLOAT
op_title = "Input (Float)"
content_label_objname = "calc_node_input" #content_label_objname = "calc_node_inputfloat"
def __init__(self, scene):
super().__init__(scene, inputs=[], outputs=[3])
self.eval()
def initInnerClasses(self):
self.content = CalcInputFloatContent(self)
self.grNode = CalcGraphicsNode(self)
self.content.edit.textChanged.connect(self.onInputChanged)
def evalImplementation(self):
u_value = self.content.edit.text()
s_value = float(u_value)
self.value = s_value
self.markDirty(False)
self.markInvalid(False)
self.markDescendantsInvalid(False)
self.markDescendantsDirty()
self.grNode.setToolTip("Float Input")
self.evalChildren()
return self.value
class CalcInputStrContent(QDMNodeContentWidget):
def initUI(self):
self.edit = QLineEdit("string", self)
self.edit.setAlignment(Qt.AlignRight)
self.edit.setObjectName(self.node.content_label_objname)
def serialize(self):
res = super().serialize()
res['value'] = self.edit.text()
return res
def deserialize(self, data, hashmap={}):
res = super().deserialize(data, hashmap)
try:
value = data['value']
self.edit.setText(value)
return True & res
except Exception as e:
dumpException(e)
return res
@register_node(OP_NODE_INPUTSTR)
class CalcNode_InputStr(CalcNode):
icon = ".icons\\in.png"
op_code = OP_NODE_INPUTSTR
op_title = "Input (String)"
content_label_objname = "calc_node_input" #content_label_objname = "calc_node_inputstr"
def __init__(self, scene):
super().__init__(scene, inputs=[], outputs=[3])
self.eval()
def initInnerClasses(self):
self.content = CalcInputStrContent(self)
self.grNode = CalcGraphicsNode(self)
self.content.edit.textChanged.connect(self.onInputChanged)
def evalImplementation(self):
u_value = self.content.edit.text()
s_value = str(u_value)
self.value = s_value
self.markDirty(False)
self.markInvalid(False)
self.markDescendantsInvalid(False)
self.markDescendantsDirty()
self.grNode.setToolTip("String Input")
self.evalChildren()
return self.value
#HEX INPUT
class CalcInputHexContent(QDMNodeContentWidget):
def initUI(self):
self.edit = QLineEdit("0x45", self)
self.edit.setAlignment(Qt.AlignRight)
self.edit.setObjectName(self.node.content_label_objname)
def serialize(self):
res = super().serialize()
res['value'] = self.edit.text()
return res
def deserialize(self, data, hashmap={}):
res = super().deserialize(data, hashmap)
try:
value = data['value']
self.edit.setText(value)
return True & res
except Exception as e:
dumpException(e)
return res
@register_node(OP_NODE_INPUTHEX)
class CalcNode_InputHex(CalcNode):
icon = ".icons\\in.png"
op_code = OP_NODE_INPUTHEX
op_title = "Input (HEX)"
content_label_objname = "calc_node_input" #content_label_objname = "calc_node_inputHex"
def __init__(self, scene):
super().__init__(scene, inputs=[], outputs=[3])
self.eval()
def initInnerClasses(self):
self.content = CalcInputHexContent(self)
self.grNode = CalcGraphicsNode(self)
self.content.edit.textChanged.connect(self.onInputChanged)
def evalImplementation(self):
u_value = self.content.edit.text()
f_value = int(u_value, 16)
s_value = hex(f_value)
self.value = s_value
self.markDirty(False)
self.markInvalid(False)
self.markDescendantsInvalid(False)
self.markDescendantsDirty()
self.grNode.setToolTip("Hex Input")
self.evalChildren()
return self.value
| 28.924107
| 93
| 0.641611
| 706
| 6,479
| 5.716714
| 0.134561
| 0.039643
| 0.051784
| 0.039891
| 0.85778
| 0.840932
| 0.815164
| 0.770069
| 0.744797
| 0.7111
| 0
| 0.002679
| 0.250965
| 6,479
| 223
| 94
| 29.053812
| 0.828972
| 0.022071
| 0
| 0.754286
| 0
| 0
| 0.041693
| 0
| 0
| 0
| 0.000632
| 0
| 0
| 1
| 0.137143
| false
| 0
| 0.034286
| 0
| 0.4
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
388795df2e003a5d76378ec0a6b6f1a855d1e803
| 32,017
|
py
|
Python
|
tests/test_query.py
|
originalpkbims/subgrounds-pkbims
|
03271135d985bc4a53129edb0cb2391555012270
|
[
"Apache-2.0"
] | null | null | null |
tests/test_query.py
|
originalpkbims/subgrounds-pkbims
|
03271135d985bc4a53129edb0cb2391555012270
|
[
"Apache-2.0"
] | null | null | null |
tests/test_query.py
|
originalpkbims/subgrounds-pkbims
|
03271135d985bc4a53129edb0cb2391555012270
|
[
"Apache-2.0"
] | null | null | null |
import unittest
from subgrounds.query import Argument, DataRequest, Document, Query, Selection, InputValue, VariableDefinition
from subgrounds.schema import TypeMeta, TypeRef
from subgrounds.subgraph import Subgraph, SyntheticField
from subgrounds.subgrounds import Subgrounds
from tests.utils import schema
class TestQueryString(unittest.TestCase):
def setUp(self):
self.schema = schema()
self.subgraph = Subgraph("", self.schema)
def tearDown(self) -> None:
SyntheticField.counter = 0
def test_graphql_1(self):
expected = """query {
pairs(first: 100, where: {reserveUSD_lt: "10.0"}, orderBy: reserveUSD, orderDirection: desc) {
id
token0 {
name
symbol
}
token1 {
name
symbol
}
}
}"""
query = Query(None, [
Selection(
TypeMeta.FieldMeta('pairs', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Pair_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Pair_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Pair')),
arguments=[
Argument('first', InputValue.Int(100)),
Argument('where', InputValue.Object({'reserveUSD_lt': InputValue.String('10.0')})),
Argument('orderBy', InputValue.Enum('reserveUSD')),
Argument('orderDirection', InputValue.Enum('desc'))
],
selection=[
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String'))),
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), selection=[
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String'))),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')))
]),
Selection(TypeMeta.FieldMeta('token1', '', [], TypeRef.Named('Token')), selection=[
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String'))),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')))
])
]
)
])
self.assertEqual(query.graphql, expected)
def test_graphql_2(self):
expected = """query {
xab8f96f0e14a4db3: pairs(first: 100, where: {reserveUSD_lt: "10.0"}, orderBy: reserveUSD, orderDirection: desc) {
id
token0 {
name
symbol
}
token1 {
name
symbol
}
}
}"""
app = Subgrounds()
pairs = self.subgraph.Query.pairs(
first=100,
where=[
self.subgraph.Pair.reserveUSD < 10
],
orderBy=self.subgraph.Pair.reserveUSD,
orderDirection='desc'
)
req = app.mk_request([
pairs.id,
pairs.token0.name,
pairs.token0.symbol,
pairs.token1.name,
pairs.token1.symbol,
])
self.assertEqual(req.documents[0].query.graphql, expected)
def test_graphql_3(self):
expected = """query($tokenId: String!) {
token(id: $tokenId) {
id
name
symbol
}
}"""
query = Query(
None,
[
Selection(TypeMeta.FieldMeta('token', '', [], TypeRef.non_null_list('Token')), None, [Argument('id', InputValue.Variable('tokenId'))], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
],
[
VariableDefinition('tokenId', TypeRef.non_null('String'))
]
)
self.assertEqual(query.graphql, expected)
# class TestExecution(unittest.TestCase):
# def test_execute_1(self):
# expected = [
# {
# 'token': [
# {
# 'id': '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
# 'name': 'USD//C',
# 'symbol': 'USDC'
# },
# {
# 'id': '0x6b175474e89094c44da98b954eedeac495271d0f',
# 'name': 'Dai Stablecoin',
# 'symbol': 'DAI'
# }
# ]
# }
# ]
# req = DataRequest(documents=[
# Document(
# 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2',
# Query(None, [
# Selection(
# TypeMeta.FieldMeta('token', '', [], TypeRef.non_null_list('Token')),
# None,
# [
# Argument('id', InputValue.Variable('tokenId')),
# ],
# [
# Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
# Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
# Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
# ]
# )
# ], [VariableDefinition('tokenId', TypeRef.non_null('String'))]),
# variables=[
# {'tokenId': '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'},
# {'tokenId': '0x6b175474e89094c44da98b954eedeac495271d0f'}
# ]
# )
# ])
# self.assertEqual(execute(req), expected)
class TestSelectionFunctions(unittest.TestCase):
def test_add_selection_1(self):
expected = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
])
og_selection = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
])
new_selection = Selection.add_selection(
og_selection,
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], [])
)
self.assertEqual(new_selection, expected)
def test_add_selection_2(self):
expected = Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
og_selection = Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
])
])
new_selection = Selection.add_selection(
og_selection,
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
)
self.assertEqual(new_selection, expected)
def test_add_selections_1(self):
expected = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('Int')), None, [], []),
])
og_selection = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
])
new_selection = Selection.add_selections(
og_selection,
[
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('Int')), None, [], []),
]
)
self.assertEqual(new_selection, expected)
def test_remove_selection_1(self):
expected = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
])
og_selection = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('Int')), None, [], []),
])
new_selection = Selection.remove_selection(
og_selection,
Selection(TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('Int')), None, [], []),
)
self.assertEqual(new_selection, expected)
def test_remove_selection_2(self):
expected = Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
])
])
og_selection = Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
new_selection = Selection.remove_selection(
og_selection,
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
)
self.assertEqual(new_selection, expected)
def test_remove_selection_3(self):
expected = Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [])
og_selection = Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
new_selection = Selection.remove_selection(
og_selection,
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [])
)
self.assertEqual(new_selection, expected)
def test_contains_1(self):
selection = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
])
s2 = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
])
self.assertEqual(Selection.contains(selection, s2), True)
def test_contains_2(self):
selection = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
])
s2 = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('Float')), None, [], []),
])
self.assertEqual(Selection.contains(selection, s2), False)
def test_contains_3(self):
selection = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [
Argument('first', InputValue.Int(100)),
], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
])
s2 = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
])
self.assertEqual(Selection.contains(selection, s2), True)
def test_contains_4(self):
selection = Selection(fmeta=TypeMeta.FieldMeta(name='log', description='', arguments=[], type_=TypeRef.Named(name_='String')), alias=None, arguments=[], selection=[])
s2 = Selection(fmeta=TypeMeta.FieldMeta(name='log', description='', arguments=[], type_=TypeRef.Named(name_='String')), alias=None, arguments=[], selection=[])
self.assertEqual(Selection.contains(selection, s2), True)
def test_select_1(self):
expected = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
])
selection = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
])
s2 = Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
])
self.assertEqual(Selection.select(selection, s2), expected)
def test_select_2(self):
expected = Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
selection = Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
s2 = Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [])
])
self.assertEqual(Selection.select(selection, s2), expected)
def test_consolidate_1(self):
expected = [
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
]
selections = [
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
])
]),
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
])
]),
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
]
self.assertEqual(Selection.consolidate(selections), expected)
def test_consolidate_2(self):
expected = [
Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
]),
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
]
selections = [
Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
]),
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
])
]),
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
])
]),
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
]
self.assertEqual(Selection.consolidate(selections), expected)
class TestQueryFunctions(unittest.TestCase):
def test_add_selection_1(self):
expected = Query(
None,
[
Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
])
],
[]
)
og_query = Query(
None,
[
Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
])
],
[]
)
new_query = Query.add_selection(
og_query,
Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], [])
])
)
self.assertEqual(new_query, expected)
def test_add_selection_2(self):
expected = Query(
None,
[
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
],
[]
)
og_query = Query(
None,
[
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
])
])
],
[]
)
new_query = Query.add_selection(
og_query,
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
)
self.assertEqual(new_query, expected)
def test_add_selections_1(self):
expected = Query(
None,
[
Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('Int')), None, [], []),
])
],
[]
)
og_query = Query(
None,
[
Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
])
],
[]
)
new_query = Query.add_selections(
og_query,
[
Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('Int')), None, [], []),
])
]
)
self.assertEqual(new_query, expected)
def test_remove_selection_1(self):
expected = Query(
None,
[
Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
])
],
[]
)
og_query = Query(
None,
[
Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('Int')), None, [], []),
])
],
[]
)
new_query = Query.remove_selection(
og_query,
Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('Int')), None, [], []),
])
)
self.assertEqual(new_query, expected)
def test_remove_selection_2(self):
expected = Query(
None,
[
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
])
])
],
[]
)
og_query = Query(
None,
[
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
],
[]
)
new_query = Query.remove_selection(
og_query,
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
)
self.assertEqual(new_query, expected)
def test_select_1(self):
expected = Query(
None,
[
Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
])
],
[]
)
selection = Query(
None,
[
Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
Selection(TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('Float')), None, [], []),
])
],
[]
)
s2 = Query(
None,
[
Selection(TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')), None, [], [
Selection(TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('Float')), None, [], []),
])
],
[]
)
self.assertEqual(Query.select(selection, s2), expected)
def test_select_2(self):
expected = Query(
None,
[
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
],
[]
)
selection = Query(
None,
[
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
],
[]
)
s2 = Query(
None,
[
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [])
])
],
[]
)
self.assertEqual(Query.select(selection, s2), expected)
def test_contains_1(self):
query = Query(
None,
[
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
],
[]
)
q = Query(
None,
[
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [])
])
],
[]
)
self.assertEqual(Query.contains(query, q), True)
def test_contains_2(self):
query = Query(
None,
[
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
],
[]
)
q = Query(
None,
[
Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
],
[]
)
self.assertEqual(Query.contains(query, q), True)
class TestContainsList(unittest.TestCase):
def test_contains_list_1(self):
selection = Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
self.assertEqual(selection.contains_list(), True)
def test_contains_list_2(self):
selection = Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.non_null_list('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.non_null_list('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
self.assertEqual(selection.contains_list(), True)
def test_contains_list_3(self):
selection = Selection(TypeMeta.FieldMeta('pair', '', [], TypeRef.Named('Pair')), None, [], [
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), None, [], [
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')), None, [], []),
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')), None, [], []),
])
])
self.assertEqual(selection.contains_list(), False)
| 40.323678
| 170
| 0.560671
| 2,829
| 32,017
| 6.248498
| 0.041004
| 0.225038
| 0.341234
| 0.305482
| 0.90202
| 0.89591
| 0.884143
| 0.876902
| 0.868813
| 0.859648
| 0
| 0.010872
| 0.212824
| 32,017
| 794
| 171
| 40.323678
| 0.690513
| 0.044664
| 0
| 0.768388
| 0
| 0.00313
| 0.101195
| 0
| 0
| 0
| 0
| 0
| 0.045383
| 1
| 0.048513
| false
| 0
| 0.00939
| 0
| 0.064163
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
2a2143df971febf013689ea2c5ff03b51a5d94d5
| 88,160
|
py
|
Python
|
algorithm/method_dichotomy.py
|
Storvild/python_examples
|
52b0b486fee442bf4b49a13cf8e609cdf4e02e0b
|
[
"MIT"
] | null | null | null |
algorithm/method_dichotomy.py
|
Storvild/python_examples
|
52b0b486fee442bf4b49a13cf8e609cdf4e02e0b
|
[
"MIT"
] | null | null | null |
algorithm/method_dichotomy.py
|
Storvild/python_examples
|
52b0b486fee442bf4b49a13cf8e609cdf4e02e0b
|
[
"MIT"
] | null | null | null |
def sequence_find_idx(arr, val):
""" Ф-ция для поиска ближайшего большего значения в массиве и возвращяющая его индекс
Поиск ведется последовательно
Массив обязательно должен быть передан отсортированным.
Если он не отсортирован, воспользуйтесь ф-цией sorted(arr) перед передачей массива в ф-цию
"""
if arr is None or len(arr) == 0:
return None
step = 0
for idx, v in enumerate(arr):
step += 1
if val <= v:
print('({}, {}) return:{} val:{} step:{} [max=min]'.format(arr, val, idx, arr[idx], step))
# print(step)
return idx
return len(arr) - 1
# import datetime
# sequence_find_idx([datetime.datetime(2020, 5, 16, 8, 2, 12, 245000), datetime.datetime(2020, 5, 16, 8, 2, 12, 439000), datetime.datetime(2020, 5, 16, 8, 2, 12, 730000), datetime.datetime(2020, 5, 16, 8, 2, 12, 975000), datetime.datetime(2020, 5, 16, 8, 2, 13, 703000), datetime.datetime(2020, 5, 16, 8, 2, 14, 191000), datetime.datetime(2020, 5, 16, 8, 2, 14, 292000), datetime.datetime(2020, 5, 16, 8, 2, 14, 307000), datetime.datetime(2020, 5, 16, 8, 2, 14, 474000), datetime.datetime(2020, 5, 16, 8, 2, 14, 525000), datetime.datetime(2020, 5, 16, 8, 2, 15, 15000), datetime.datetime(2020, 5, 16, 8, 2, 15, 257000), datetime.datetime(2020, 5, 16, 8, 2, 15, 304000), datetime.datetime(2020, 5, 16, 8, 2, 15, 508000), datetime.datetime(2020, 5, 16, 8, 2, 15, 605000), datetime.datetime(2020, 5, 16, 8, 2, 15, 828000), datetime.datetime(2020, 5, 16, 8, 2, 16, 149000), datetime.datetime(2020, 5, 16, 8, 2, 16, 805000), datetime.datetime(2020, 5, 16, 8, 2, 16, 942000), datetime.datetime(2020, 5, 16, 8, 2, 17, 21000), datetime.datetime(2020, 5, 16, 8, 2, 17, 221000), datetime.datetime(2020, 5, 16, 8, 2, 17, 451000), datetime.datetime(2020, 5, 16, 8, 2, 17, 665000), datetime.datetime(2020, 5, 16, 8, 2, 17, 817000), datetime.datetime(2020, 5, 16, 8, 2, 18, 3000), datetime.datetime(2020, 5, 16, 8, 2, 18, 230000), datetime.datetime(2020, 5, 16, 8, 2, 18, 394000), datetime.datetime(2020, 5, 16, 8, 2, 18, 613000), datetime.datetime(2020, 5, 16, 8, 2, 18, 822000), datetime.datetime(2020, 5, 16, 8, 2, 19, 2000), datetime.datetime(2020, 5, 16, 8, 2, 19, 227000), datetime.datetime(2020, 5, 16, 8, 2, 19, 407000), datetime.datetime(2020, 5, 16, 8, 2, 19, 737000), datetime.datetime(2020, 5, 16, 8, 2, 19, 796000), datetime.datetime(2020, 5, 16, 8, 2, 20, 22000), datetime.datetime(2020, 5, 16, 8, 2, 20, 262000), datetime.datetime(2020, 5, 16, 8, 2, 20, 426000), datetime.datetime(2020, 5, 16, 8, 2, 20, 691000), datetime.datetime(2020, 5, 16, 8, 2, 20, 841000), datetime.datetime(2020, 5, 16, 8, 2, 21, 27000), datetime.datetime(2020, 5, 16, 8, 2, 21, 230000), datetime.datetime(2020, 5, 16, 8, 2, 21, 455000), datetime.datetime(2020, 5, 16, 8, 2, 21, 612000), datetime.datetime(2020, 5, 16, 8, 2, 21, 815000), datetime.datetime(2020, 5, 16, 8, 2, 22, 48000), datetime.datetime(2020, 5, 16, 8, 2, 22, 356000), datetime.datetime(2020, 5, 16, 8, 2, 22, 500000), datetime.datetime(2020, 5, 16, 8, 2, 22, 765000), datetime.datetime(2020, 5, 16, 8, 2, 22, 827000), datetime.datetime(2020, 5, 16, 8, 2, 23, 61000), datetime.datetime(2020, 5, 16, 8, 2, 23, 232000), datetime.datetime(2020, 5, 16, 8, 2, 23, 465000), datetime.datetime(2020, 5, 16, 8, 2, 23, 691000), datetime.datetime(2020, 5, 16, 8, 2, 23, 886000), datetime.datetime(2020, 5, 16, 8, 2, 24, 96000), datetime.datetime(2020, 5, 16, 8, 2, 24, 717000), datetime.datetime(2020, 5, 16, 8, 2, 24, 863000), datetime.datetime(2020, 5, 16, 8, 2, 24, 908000), datetime.datetime(2020, 5, 16, 8, 2, 24, 952000), datetime.datetime(2020, 5, 16, 8, 2, 25, 129000), datetime.datetime(2020, 5, 16, 8, 2, 25, 347000), datetime.datetime(2020, 5, 16, 8, 2, 25, 537000), datetime.datetime(2020, 5, 16, 8, 2, 25, 686000), datetime.datetime(2020, 5, 16, 8, 2, 25, 829000), datetime.datetime(2020, 5, 16, 8, 2, 26, 96000), datetime.datetime(2020, 5, 16, 8, 2, 26, 390000), datetime.datetime(2020, 5, 16, 8, 2, 26, 630000), datetime.datetime(2020, 5, 16, 8, 2, 26, 655000), datetime.datetime(2020, 5, 16, 8, 2, 26, 949000), datetime.datetime(2020, 5, 16, 8, 2, 27, 117000), datetime.datetime(2020, 5, 16, 8, 2, 27, 240000), datetime.datetime(2020, 5, 16, 8, 2, 27, 492000), datetime.datetime(2020, 5, 16, 8, 2, 27, 667000), datetime.datetime(2020, 5, 16, 8, 2, 27, 875000), datetime.datetime(2020, 5, 16, 8, 2, 28, 55000), datetime.datetime(2020, 5, 16, 8, 2, 28, 256000), datetime.datetime(2020, 5, 16, 8, 2, 28, 466000), datetime.datetime(2020, 5, 16, 8, 2, 28, 687000), datetime.datetime(2020, 5, 16, 8, 2, 28, 866000), datetime.datetime(2020, 5, 16, 8, 2, 29, 103000), datetime.datetime(2020, 5, 16, 8, 2, 29, 303000), datetime.datetime(2020, 5, 16, 8, 2, 29, 511000), datetime.datetime(2020, 5, 16, 8, 2, 29, 652000), datetime.datetime(2020, 5, 16, 8, 2, 29, 863000), datetime.datetime(2020, 5, 16, 8, 2, 30, 143000), datetime.datetime(2020, 5, 16, 8, 2, 30, 275000), datetime.datetime(2020, 5, 16, 8, 2, 30, 454000), datetime.datetime(2020, 5, 16, 8, 2, 30, 701000), datetime.datetime(2020, 5, 16, 8, 2, 30, 862000), datetime.datetime(2020, 5, 16, 8, 2, 31, 86000), datetime.datetime(2020, 5, 16, 8, 2, 31, 311000), datetime.datetime(2020, 5, 16, 8, 2, 31, 490000), datetime.datetime(2020, 5, 16, 8, 2, 31, 714000), datetime.datetime(2020, 5, 16, 8, 2, 31, 872000), datetime.datetime(2020, 5, 16, 8, 2, 32, 98000), datetime.datetime(2020, 5, 16, 8, 2, 32, 270000), datetime.datetime(2020, 5, 16, 8, 2, 32, 503000), datetime.datetime(2020, 5, 16, 8, 2, 32, 679000), datetime.datetime(2020, 5, 16, 8, 2, 32, 869000), datetime.datetime(2020, 5, 16, 8, 2, 33, 80000), datetime.datetime(2020, 5, 16, 8, 2, 33, 267000), datetime.datetime(2020, 5, 16, 8, 2, 33, 507000), datetime.datetime(2020, 5, 16, 8, 2, 33, 682000), datetime.datetime(2020, 5, 16, 8, 2, 33, 935000), datetime.datetime(2020, 5, 16, 8, 2, 34, 196000), datetime.datetime(2020, 5, 16, 8, 2, 34, 513000), datetime.datetime(2020, 5, 16, 8, 2, 34, 552000), datetime.datetime(2020, 5, 16, 8, 2, 34, 716000), datetime.datetime(2020, 5, 16, 8, 2, 34, 879000), datetime.datetime(2020, 5, 16, 8, 2, 35, 83000), datetime.datetime(2020, 5, 16, 8, 2, 35, 285000), datetime.datetime(2020, 5, 16, 8, 2, 35, 524000), datetime.datetime(2020, 5, 16, 8, 2, 35, 692000), datetime.datetime(2020, 5, 16, 8, 2, 35, 888000), datetime.datetime(2020, 5, 16, 8, 2, 36, 94000), datetime.datetime(2020, 5, 16, 8, 2, 36, 309000), datetime.datetime(2020, 5, 16, 8, 2, 36, 495000), datetime.datetime(2020, 5, 16, 8, 2, 36, 694000), datetime.datetime(2020, 5, 16, 8, 2, 36, 882000), datetime.datetime(2020, 5, 16, 8, 2, 37, 123000), datetime.datetime(2020, 5, 16, 8, 2, 37, 297000), datetime.datetime(2020, 5, 16, 8, 2, 37, 516000), datetime.datetime(2020, 5, 16, 8, 2, 37, 746000), datetime.datetime(2020, 5, 16, 8, 2, 37, 894000), datetime.datetime(2020, 5, 16, 8, 2, 38, 120000), datetime.datetime(2020, 5, 16, 8, 2, 38, 299000), datetime.datetime(2020, 5, 16, 8, 2, 38, 528000), datetime.datetime(2020, 5, 16, 8, 2, 38, 705000), datetime.datetime(2020, 5, 16, 8, 2, 38, 914000), datetime.datetime(2020, 5, 16, 8, 2, 39, 111000), datetime.datetime(2020, 5, 16, 8, 2, 39, 321000), datetime.datetime(2020, 5, 16, 8, 2, 39, 531000), datetime.datetime(2020, 5, 16, 8, 2, 39, 725000), datetime.datetime(2020, 5, 16, 8, 2, 39, 905000), datetime.datetime(2020, 5, 16, 8, 2, 40, 119000), datetime.datetime(2020, 5, 16, 8, 2, 40, 371000), datetime.datetime(2020, 5, 16, 8, 2, 40, 611000), datetime.datetime(2020, 5, 16, 8, 2, 40, 745000), datetime.datetime(2020, 5, 16, 8, 2, 40, 916000), datetime.datetime(2020, 5, 16, 8, 2, 41, 170000), datetime.datetime(2020, 5, 16, 8, 2, 41, 306000), datetime.datetime(2020, 5, 16, 8, 2, 41, 525000), datetime.datetime(2020, 5, 16, 8, 2, 41, 727000), datetime.datetime(2020, 5, 16, 8, 2, 41, 996000), datetime.datetime(2020, 5, 16, 8, 2, 42, 171000), datetime.datetime(2020, 5, 16, 8, 2, 42, 334000), datetime.datetime(2020, 5, 16, 8, 2, 42, 536000), datetime.datetime(2020, 5, 16, 8, 2, 42, 732000), datetime.datetime(2020, 5, 16, 8, 2, 42, 920000), datetime.datetime(2020, 5, 16, 8, 2, 43, 145000), datetime.datetime(2020, 5, 16, 8, 2, 43, 371000), datetime.datetime(2020, 5, 16, 8, 2, 43, 551000), datetime.datetime(2020, 5, 16, 8, 2, 43, 784000), datetime.datetime(2020, 5, 16, 8, 2, 43, 940000), datetime.datetime(2020, 5, 16, 8, 2, 44, 136000), datetime.datetime(2020, 5, 16, 8, 2, 44, 321000), datetime.datetime(2020, 5, 16, 8, 2, 44, 547000), datetime.datetime(2020, 5, 16, 8, 2, 44, 757000), datetime.datetime(2020, 5, 16, 8, 2, 45, 35000), datetime.datetime(2020, 5, 16, 8, 2, 45, 177000), datetime.datetime(2020, 5, 16, 8, 2, 45, 344000), datetime.datetime(2020, 5, 16, 8, 2, 45, 567000), datetime.datetime(2020, 5, 16, 8, 2, 45, 733000), datetime.datetime(2020, 5, 16, 8, 2, 45, 959000), datetime.datetime(2020, 5, 16, 8, 2, 46, 138000), datetime.datetime(2020, 5, 16, 8, 2, 46, 377000), datetime.datetime(2020, 5, 16, 8, 2, 46, 543000), datetime.datetime(2020, 5, 16, 8, 2, 46, 776000), datetime.datetime(2020, 5, 16, 8, 2, 46, 941000), datetime.datetime(2020, 5, 16, 8, 2, 47, 322000), datetime.datetime(2020, 5, 16, 8, 2, 47, 397000), datetime.datetime(2020, 5, 16, 8, 2, 47, 547000), datetime.datetime(2020, 5, 16, 8, 2, 47, 741000), datetime.datetime(2020, 5, 16, 8, 2, 47, 952000), datetime.datetime(2020, 5, 16, 8, 2, 48, 161000), datetime.datetime(2020, 5, 16, 8, 2, 48, 342000), datetime.datetime(2020, 5, 16, 8, 2, 48, 583000), datetime.datetime(2020, 5, 16, 8, 2, 48, 750000), datetime.datetime(2020, 5, 16, 8, 2, 48, 958000), datetime.datetime(2020, 5, 16, 8, 2, 49, 153000), datetime.datetime(2020, 5, 16, 8, 2, 49, 346000), datetime.datetime(2020, 5, 16, 8, 2, 49, 557000), datetime.datetime(2020, 5, 16, 8, 2, 49, 752000), datetime.datetime(2020, 5, 16, 8, 2, 50, 97000), datetime.datetime(2020, 5, 16, 8, 2, 50, 159000), datetime.datetime(2020, 5, 16, 8, 2, 50, 377000), datetime.datetime(2020, 5, 16, 8, 2, 50, 560000), datetime.datetime(2020, 5, 16, 8, 2, 50, 904000), datetime.datetime(2020, 5, 16, 8, 2, 50, 951000), datetime.datetime(2020, 5, 16, 8, 2, 51, 171000), datetime.datetime(2020, 5, 16, 8, 2, 51, 365000), datetime.datetime(2020, 5, 16, 8, 2, 51, 575000), datetime.datetime(2020, 5, 16, 8, 2, 51, 771000), datetime.datetime(2020, 5, 16, 8, 2, 51, 965000), datetime.datetime(2020, 5, 16, 8, 2, 52, 177000), datetime.datetime(2020, 5, 16, 8, 2, 52, 385000), datetime.datetime(2020, 5, 16, 8, 2, 52, 699000), datetime.datetime(2020, 5, 16, 8, 2, 52, 842000), datetime.datetime(2020, 5, 16, 8, 2, 52, 962000), datetime.datetime(2020, 5, 16, 8, 2, 53, 227000), datetime.datetime(2020, 5, 16, 8, 2, 53, 420000), datetime.datetime(2020, 5, 16, 8, 2, 53, 601000), datetime.datetime(2020, 5, 16, 8, 2, 53, 796000), datetime.datetime(2020, 5, 16, 8, 2, 54, 26000), datetime.datetime(2020, 5, 16, 8, 2, 54, 177000), datetime.datetime(2020, 5, 16, 8, 2, 54, 373000), datetime.datetime(2020, 5, 16, 8, 2, 54, 590000), datetime.datetime(2020, 5, 16, 8, 2, 54, 777000), datetime.datetime(2020, 5, 16, 8, 2, 54, 980000), datetime.datetime(2020, 5, 16, 8, 2, 55, 214000), datetime.datetime(2020, 5, 16, 8, 2, 55, 385000), datetime.datetime(2020, 5, 16, 8, 2, 55, 610000), datetime.datetime(2020, 5, 16, 8, 2, 55, 807000), datetime.datetime(2020, 5, 16, 8, 2, 55, 976000), datetime.datetime(2020, 5, 16, 8, 2, 56, 203000), datetime.datetime(2020, 5, 16, 8, 2, 56, 391000), datetime.datetime(2020, 5, 16, 8, 2, 56, 608000), datetime.datetime(2020, 5, 16, 8, 2, 56, 833000), datetime.datetime(2020, 5, 16, 8, 2, 57, 5000), datetime.datetime(2020, 5, 16, 8, 2, 57, 215000), datetime.datetime(2020, 5, 16, 8, 2, 57, 470000), datetime.datetime(2020, 5, 16, 8, 2, 57, 613000), datetime.datetime(2020, 5, 16, 8, 2, 57, 803000), datetime.datetime(2020, 5, 16, 8, 2, 58, 46000), datetime.datetime(2020, 5, 16, 8, 2, 58, 228000), datetime.datetime(2020, 5, 16, 8, 2, 58, 391000), datetime.datetime(2020, 5, 16, 8, 2, 58, 614000), datetime.datetime(2020, 5, 16, 8, 2, 58, 806000), datetime.datetime(2020, 5, 16, 8, 2, 59, 2000), datetime.datetime(2020, 5, 16, 8, 2, 59, 211000), datetime.datetime(2020, 5, 16, 8, 2, 59, 479000), datetime.datetime(2020, 5, 16, 8, 2, 59, 628000), datetime.datetime(2020, 5, 16, 8, 2, 59, 826000), datetime.datetime(2020, 5, 16, 8, 3, 0, 49000), datetime.datetime(2020, 5, 16, 8, 3, 0, 245000), datetime.datetime(2020, 5, 16, 8, 3, 0, 430000), datetime.datetime(2020, 5, 16, 8, 3, 0, 624000), datetime.datetime(2020, 5, 16, 8, 3, 0, 816000), datetime.datetime(2020, 5, 16, 8, 3, 1, 17000), datetime.datetime(2020, 5, 16, 8, 3, 1, 227000), datetime.datetime(2020, 5, 16, 8, 3, 1, 414000), datetime.datetime(2020, 5, 16, 8, 3, 1, 626000), datetime.datetime(2020, 5, 16, 8, 3, 1, 822000), datetime.datetime(2020, 5, 16, 8, 3, 2, 29000), datetime.datetime(2020, 5, 16, 8, 3, 2, 216000), datetime.datetime(2020, 5, 16, 8, 3, 2, 481000), datetime.datetime(2020, 5, 16, 8, 3, 2, 645000), datetime.datetime(2020, 5, 16, 8, 3, 2, 872000), datetime.datetime(2020, 5, 16, 8, 3, 3, 200000), datetime.datetime(2020, 5, 16, 8, 3, 3, 383000), datetime.datetime(2020, 5, 16, 8, 3, 3, 427000), datetime.datetime(2020, 5, 16, 8, 3, 3, 676000), datetime.datetime(2020, 5, 16, 8, 3, 3, 832000), datetime.datetime(2020, 5, 16, 8, 3, 4, 132000), datetime.datetime(2020, 5, 16, 8, 3, 4, 343000), datetime.datetime(2020, 5, 16, 8, 3, 4, 436000), datetime.datetime(2020, 5, 16, 8, 3, 4, 735000), datetime.datetime(2020, 5, 16, 8, 3, 4, 881000), datetime.datetime(2020, 5, 16, 8, 3, 5, 74000), datetime.datetime(2020, 5, 16, 8, 3, 5, 256000), datetime.datetime(2020, 5, 16, 8, 3, 5, 445000), datetime.datetime(2020, 5, 16, 8, 3, 5, 649000), datetime.datetime(2020, 5, 16, 8, 3, 5, 886000), datetime.datetime(2020, 5, 16, 8, 3, 6, 51000), datetime.datetime(2020, 5, 16, 8, 3, 6, 355000), datetime.datetime(2020, 5, 16, 8, 3, 6, 441000), datetime.datetime(2020, 5, 16, 8, 3, 6, 666000), datetime.datetime(2020, 5, 16, 8, 3, 6, 837000), datetime.datetime(2020, 5, 16, 8, 3, 7, 66000), datetime.datetime(2020, 5, 16, 8, 3, 7, 251000), datetime.datetime(2020, 5, 16, 8, 3, 7, 460000), datetime.datetime(2020, 5, 16, 8, 3, 7, 677000), datetime.datetime(2020, 5, 16, 8, 3, 7, 865000), datetime.datetime(2020, 5, 16, 8, 3, 8, 46000), datetime.datetime(2020, 5, 16, 8, 3, 8, 263000), datetime.datetime(2020, 5, 16, 8, 3, 8, 451000), datetime.datetime(2020, 5, 16, 8, 3, 8, 660000), datetime.datetime(2020, 5, 16, 8, 3, 9, 64000), datetime.datetime(2020, 5, 16, 8, 3, 9, 232000), datetime.datetime(2020, 5, 16, 8, 3, 9, 317000), datetime.datetime(2020, 5, 16, 8, 3, 9, 455000), datetime.datetime(2020, 5, 16, 8, 3, 9, 687000), datetime.datetime(2020, 5, 16, 8, 3, 9, 862000), datetime.datetime(2020, 5, 16, 8, 3, 10, 47000), datetime.datetime(2020, 5, 16, 8, 3, 10, 258000), datetime.datetime(2020, 5, 16, 8, 3, 10, 461000), datetime.datetime(2020, 5, 16, 8, 3, 10, 663000), datetime.datetime(2020, 5, 16, 8, 3, 10, 865000), datetime.datetime(2020, 5, 16, 8, 3, 11, 99000), datetime.datetime(2020, 5, 16, 8, 3, 11, 273000), datetime.datetime(2020, 5, 16, 8, 3, 11, 469000), datetime.datetime(2020, 5, 16, 8, 3, 11, 940000), datetime.datetime(2020, 5, 16, 8, 3, 11, 958000), datetime.datetime(2020, 5, 16, 8, 3, 12, 66000), datetime.datetime(2020, 5, 16, 8, 3, 12, 268000), datetime.datetime(2020, 5, 16, 8, 3, 12, 463000), datetime.datetime(2020, 5, 16, 8, 3, 12, 680000), datetime.datetime(2020, 5, 16, 8, 3, 12, 867000), datetime.datetime(2020, 5, 16, 8, 3, 13, 85000), datetime.datetime(2020, 5, 16, 8, 3, 13, 296000), datetime.datetime(2020, 5, 16, 8, 3, 13, 491000), datetime.datetime(2020, 5, 16, 8, 3, 13, 707000), datetime.datetime(2020, 5, 16, 8, 3, 13, 895000), datetime.datetime(2020, 5, 16, 8, 3, 14, 121000), datetime.datetime(2020, 5, 16, 8, 3, 14, 285000), datetime.datetime(2020, 5, 16, 8, 3, 14, 481000), datetime.datetime(2020, 5, 16, 8, 3, 14, 690000), datetime.datetime(2020, 5, 16, 8, 3, 14, 887000), datetime.datetime(2020, 5, 16, 8, 3, 15, 156000), datetime.datetime(2020, 5, 16, 8, 3, 15, 305000), datetime.datetime(2020, 5, 16, 8, 3, 15, 485000), datetime.datetime(2020, 5, 16, 8, 3, 15, 718000), datetime.datetime(2020, 5, 16, 8, 3, 15, 891000), datetime.datetime(2020, 5, 16, 8, 3, 16, 84000), datetime.datetime(2020, 5, 16, 8, 3, 16, 297000), datetime.datetime(2020, 5, 16, 8, 3, 16, 490000), datetime.datetime(2020, 5, 16, 8, 3, 16, 707000), datetime.datetime(2020, 5, 16, 8, 3, 16, 901000), datetime.datetime(2020, 5, 16, 8, 3, 17, 135000), datetime.datetime(2020, 5, 16, 8, 3, 17, 304000), datetime.datetime(2020, 5, 16, 8, 3, 17, 496000), datetime.datetime(2020, 5, 16, 8, 3, 17, 697000), datetime.datetime(2020, 5, 16, 8, 3, 17, 900000), datetime.datetime(2020, 5, 16, 8, 3, 18, 104000), datetime.datetime(2020, 5, 16, 8, 3, 18, 299000), datetime.datetime(2020, 5, 16, 8, 3, 18, 504000), datetime.datetime(2020, 5, 16, 8, 3, 18, 713000), datetime.datetime(2020, 5, 16, 8, 3, 18, 913000), datetime.datetime(2020, 5, 16, 8, 3, 19, 145000), datetime.datetime(2020, 5, 16, 8, 3, 19, 325000), datetime.datetime(2020, 5, 16, 8, 3, 19, 528000), datetime.datetime(2020, 5, 16, 8, 3, 19, 722000), datetime.datetime(2020, 5, 16, 8, 3, 19, 926000), datetime.datetime(2020, 5, 16, 8, 3, 20, 97000), datetime.datetime(2020, 5, 16, 8, 3, 20, 308000), datetime.datetime(2020, 5, 16, 8, 3, 20, 517000), datetime.datetime(2020, 5, 16, 8, 3, 20, 720000), datetime.datetime(2020, 5, 16, 8, 3, 20, 915000), datetime.datetime(2020, 5, 16, 8, 3, 21, 111000), datetime.datetime(2020, 5, 16, 8, 3, 21, 335000), datetime.datetime(2020, 5, 16, 8, 3, 21, 516000), datetime.datetime(2020, 5, 16, 8, 3, 21, 726000), datetime.datetime(2020, 5, 16, 8, 3, 21, 923000), datetime.datetime(2020, 5, 16, 8, 3, 22, 139000), datetime.datetime(2020, 5, 16, 8, 3, 22, 325000), datetime.datetime(2020, 5, 16, 8, 3, 22, 527000), datetime.datetime(2020, 5, 16, 8, 3, 22, 721000), datetime.datetime(2020, 5, 16, 8, 3, 22, 943000), datetime.datetime(2020, 5, 16, 8, 3, 23, 139000), datetime.datetime(2020, 5, 16, 8, 3, 23, 343000), datetime.datetime(2020, 5, 16, 8, 3, 23, 531000), datetime.datetime(2020, 5, 16, 8, 3, 23, 783000), datetime.datetime(2020, 5, 16, 8, 3, 23, 923000), datetime.datetime(2020, 5, 16, 8, 3, 24, 117000), datetime.datetime(2020, 5, 16, 8, 3, 24, 350000), datetime.datetime(2020, 5, 16, 8, 3, 24, 530000), datetime.datetime(2020, 5, 16, 8, 3, 24, 763000), datetime.datetime(2020, 5, 16, 8, 3, 24, 958000), datetime.datetime(2020, 5, 16, 8, 3, 25, 166000), datetime.datetime(2020, 5, 16, 8, 3, 25, 366000), datetime.datetime(2020, 5, 16, 8, 3, 25, 543000), datetime.datetime(2020, 5, 16, 8, 3, 25, 781000), datetime.datetime(2020, 5, 16, 8, 3, 25, 958000), datetime.datetime(2020, 5, 16, 8, 3, 26, 140000), datetime.datetime(2020, 5, 16, 8, 3, 26, 369000), datetime.datetime(2020, 5, 16, 8, 3, 26, 662000), datetime.datetime(2020, 5, 16, 8, 3, 26, 811000), datetime.datetime(2020, 5, 16, 8, 3, 26, 961000), datetime.datetime(2020, 5, 16, 8, 3, 27, 140000), datetime.datetime(2020, 5, 16, 8, 3, 27, 366000), datetime.datetime(2020, 5, 16, 8, 3, 27, 545000), datetime.datetime(2020, 5, 16, 8, 3, 27, 771000), datetime.datetime(2020, 5, 16, 8, 3, 28, 15000), datetime.datetime(2020, 5, 16, 8, 3, 28, 144000), datetime.datetime(2020, 5, 16, 8, 3, 28, 371000), datetime.datetime(2020, 5, 16, 8, 3, 28, 552000), datetime.datetime(2020, 5, 16, 8, 3, 28, 776000), datetime.datetime(2020, 5, 16, 8, 3, 28, 955000), datetime.datetime(2020, 5, 16, 8, 3, 29, 182000), datetime.datetime(2020, 5, 16, 8, 3, 29, 360000), datetime.datetime(2020, 5, 16, 8, 3, 29, 588000), datetime.datetime(2020, 5, 16, 8, 3, 29, 766000), datetime.datetime(2020, 5, 16, 8, 3, 29, 962000), datetime.datetime(2020, 5, 16, 8, 3, 30, 156000), datetime.datetime(2020, 5, 16, 8, 3, 30, 357000), datetime.datetime(2020, 5, 16, 8, 3, 30, 574000), datetime.datetime(2020, 5, 16, 8, 3, 30, 771000), datetime.datetime(2020, 5, 16, 8, 3, 30, 966000), datetime.datetime(2020, 5, 16, 8, 3, 31, 161000), datetime.datetime(2020, 5, 16, 8, 3, 31, 370000), datetime.datetime(2020, 5, 16, 8, 3, 31, 580000), datetime.datetime(2020, 5, 16, 8, 3, 31, 776000), datetime.datetime(2020, 5, 16, 8, 3, 31, 972000), datetime.datetime(2020, 5, 16, 8, 3, 32, 166000), datetime.datetime(2020, 5, 16, 8, 3, 32, 369000), datetime.datetime(2020, 5, 16, 8, 3, 32, 572000), datetime.datetime(2020, 5, 16, 8, 3, 32, 811000), datetime.datetime(2020, 5, 16, 8, 3, 32, 995000), datetime.datetime(2020, 5, 16, 8, 3, 33, 201000), datetime.datetime(2020, 5, 16, 8, 3, 33, 387000), datetime.datetime(2020, 5, 16, 8, 3, 33, 621000), datetime.datetime(2020, 5, 16, 8, 3, 33, 786000), datetime.datetime(2020, 5, 16, 8, 3, 34, 38000), datetime.datetime(2020, 5, 16, 8, 3, 34, 192000), datetime.datetime(2020, 5, 16, 8, 3, 34, 431000), datetime.datetime(2020, 5, 16, 8, 3, 34, 580000), datetime.datetime(2020, 5, 16, 8, 3, 34, 822000), datetime.datetime(2020, 5, 16, 8, 3, 34, 986000), datetime.datetime(2020, 5, 16, 8, 3, 35, 228000), datetime.datetime(2020, 5, 16, 8, 3, 35, 422000), datetime.datetime(2020, 5, 16, 8, 3, 35, 615000), datetime.datetime(2020, 5, 16, 8, 3, 35, 795000), datetime.datetime(2020, 5, 16, 8, 3, 36, 22000), datetime.datetime(2020, 5, 16, 8, 3, 36, 201000), datetime.datetime(2020, 5, 16, 8, 3, 36, 388000), datetime.datetime(2020, 5, 16, 8, 3, 36, 589000), datetime.datetime(2020, 5, 16, 8, 3, 36, 802000), datetime.datetime(2020, 5, 16, 8, 3, 37, 10000), datetime.datetime(2020, 5, 16, 8, 3, 37, 198000), datetime.datetime(2020, 5, 16, 8, 3, 37, 491000), datetime.datetime(2020, 5, 16, 8, 3, 37, 623000), datetime.datetime(2020, 5, 16, 8, 3, 37, 836000), datetime.datetime(2020, 5, 16, 8, 3, 38, 2000), datetime.datetime(2020, 5, 16, 8, 3, 38, 187000), datetime.datetime(2020, 5, 16, 8, 3, 38, 399000), datetime.datetime(2020, 5, 16, 8, 3, 38, 593000), datetime.datetime(2020, 5, 16, 8, 3, 38, 870000), datetime.datetime(2020, 5, 16, 8, 3, 39, 36000), datetime.datetime(2020, 5, 16, 8, 3, 39, 275000), datetime.datetime(2020, 5, 16, 8, 3, 39, 429000), datetime.datetime(2020, 5, 16, 8, 3, 39, 642000), datetime.datetime(2020, 5, 16, 8, 3, 39, 814000), datetime.datetime(2020, 5, 16, 8, 3, 40, 48000), datetime.datetime(2020, 5, 16, 8, 3, 40, 258000), datetime.datetime(2020, 5, 16, 8, 3, 40, 424000), datetime.datetime(2020, 5, 16, 8, 3, 40, 611000), datetime.datetime(2020, 5, 16, 8, 3, 40, 880000), datetime.datetime(2020, 5, 16, 8, 3, 41, 9000), datetime.datetime(2020, 5, 16, 8, 3, 41, 232000), datetime.datetime(2020, 5, 16, 8, 3, 41, 421000), datetime.datetime(2020, 5, 16, 8, 3, 41, 721000), datetime.datetime(2020, 5, 16, 8, 3, 41, 900000), datetime.datetime(2020, 5, 16, 8, 3, 42, 22000), datetime.datetime(2020, 5, 16, 8, 3, 42, 355000), datetime.datetime(2020, 5, 16, 8, 3, 42, 441000), datetime.datetime(2020, 5, 16, 8, 3, 42, 620000), datetime.datetime(2020, 5, 16, 8, 3, 43, 163000), datetime.datetime(2020, 5, 16, 8, 3, 43, 207000), datetime.datetime(2020, 5, 16, 8, 3, 43, 252000), datetime.datetime(2020, 5, 16, 8, 3, 43, 432000), datetime.datetime(2020, 5, 16, 8, 3, 43, 631000), datetime.datetime(2020, 5, 16, 8, 3, 43, 848000), datetime.datetime(2020, 5, 16, 8, 3, 44, 22000), datetime.datetime(2020, 5, 16, 8, 3, 44, 285000), datetime.datetime(2020, 5, 16, 8, 3, 44, 499000), datetime.datetime(2020, 5, 16, 8, 3, 44, 646000), datetime.datetime(2020, 5, 16, 8, 3, 44, 885000), datetime.datetime(2020, 5, 16, 8, 3, 45, 53000), datetime.datetime(2020, 5, 16, 8, 3, 45, 269000), datetime.datetime(2020, 5, 16, 8, 3, 45, 442000), datetime.datetime(2020, 5, 16, 8, 3, 45, 672000), datetime.datetime(2020, 5, 16, 8, 3, 45, 838000), datetime.datetime(2020, 5, 16, 8, 3, 46, 90000), datetime.datetime(2020, 5, 16, 8, 3, 46, 251000), datetime.datetime(2020, 5, 16, 8, 3, 46, 447000), datetime.datetime(2020, 5, 16, 8, 3, 46, 641000), datetime.datetime(2020, 5, 16, 8, 3, 46, 874000), datetime.datetime(2020, 5, 16, 8, 3, 47, 47000), datetime.datetime(2020, 5, 16, 8, 3, 47, 272000), datetime.datetime(2020, 5, 16, 8, 3, 47, 473000), datetime.datetime(2020, 5, 16, 8, 3, 47, 691000), datetime.datetime(2020, 5, 16, 8, 3, 47, 909000), datetime.datetime(2020, 5, 16, 8, 3, 48, 57000), datetime.datetime(2020, 5, 16, 8, 3, 48, 258000), datetime.datetime(2020, 5, 16, 8, 3, 48, 546000), datetime.datetime(2020, 5, 16, 8, 3, 48, 667000), datetime.datetime(2020, 5, 16, 8, 3, 48, 865000), datetime.datetime(2020, 5, 16, 8, 3, 49, 93000), datetime.datetime(2020, 5, 16, 8, 3, 49, 252000), datetime.datetime(2020, 5, 16, 8, 3, 49, 462000), datetime.datetime(2020, 5, 16, 8, 3, 49, 649000), datetime.datetime(2020, 5, 16, 8, 3, 49, 866000), datetime.datetime(2020, 5, 16, 8, 3, 50, 54000), datetime.datetime(2020, 5, 16, 8, 3, 50, 338000), datetime.datetime(2020, 5, 16, 8, 3, 50, 473000), datetime.datetime(2020, 5, 16, 8, 3, 50, 735000), datetime.datetime(2020, 5, 16, 8, 3, 50, 862000), datetime.datetime(2020, 5, 16, 8, 3, 51, 66000), datetime.datetime(2020, 5, 16, 8, 3, 51, 322000), datetime.datetime(2020, 5, 16, 8, 3, 51, 517000), datetime.datetime(2020, 5, 16, 8, 3, 51, 673000), datetime.datetime(2020, 5, 16, 8, 3, 51, 876000), datetime.datetime(2020, 5, 16, 8, 3, 52, 73000), datetime.datetime(2020, 5, 16, 8, 3, 52, 266000), datetime.datetime(2020, 5, 16, 8, 3, 52, 484000), datetime.datetime(2020, 5, 16, 8, 3, 52, 700000), datetime.datetime(2020, 5, 16, 8, 3, 52, 915000), datetime.datetime(2020, 5, 16, 8, 3, 53, 152000), datetime.datetime(2020, 5, 16, 8, 3, 53, 284000), datetime.datetime(2020, 5, 16, 8, 3, 53, 481000), datetime.datetime(2020, 5, 16, 8, 3, 53, 686000), datetime.datetime(2020, 5, 16, 8, 3, 53, 902000), datetime.datetime(2020, 5, 16, 8, 3, 54, 84000), datetime.datetime(2020, 5, 16, 8, 3, 54, 290000), datetime.datetime(2020, 5, 16, 8, 3, 54, 486000), datetime.datetime(2020, 5, 16, 8, 3, 54, 682000), datetime.datetime(2020, 5, 16, 8, 3, 54, 983000), datetime.datetime(2020, 5, 16, 8, 3, 55, 87000), datetime.datetime(2020, 5, 16, 8, 3, 55, 288000), datetime.datetime(2020, 5, 16, 8, 3, 55, 490000), datetime.datetime(2020, 5, 16, 8, 3, 55, 702000), datetime.datetime(2020, 5, 16, 8, 3, 55, 896000), datetime.datetime(2020, 5, 16, 8, 3, 56, 97000), datetime.datetime(2020, 5, 16, 8, 3, 56, 285000), datetime.datetime(2020, 5, 16, 8, 3, 56, 497000), datetime.datetime(2020, 5, 16, 8, 3, 56, 711000), datetime.datetime(2020, 5, 16, 8, 3, 56, 893000), datetime.datetime(2020, 5, 16, 8, 3, 57, 97000), datetime.datetime(2020, 5, 16, 8, 3, 57, 418000), datetime.datetime(2020, 5, 16, 8, 3, 57, 502000), datetime.datetime(2020, 5, 16, 8, 3, 57, 826000), datetime.datetime(2020, 5, 16, 8, 3, 57, 932000), datetime.datetime(2020, 5, 16, 8, 3, 58, 116000), datetime.datetime(2020, 5, 16, 8, 3, 58, 297000), datetime.datetime(2020, 5, 16, 8, 3, 58, 529000), datetime.datetime(2020, 5, 16, 8, 3, 58, 701000), datetime.datetime(2020, 5, 16, 8, 3, 58, 952000), datetime.datetime(2020, 5, 16, 8, 3, 59, 106000), datetime.datetime(2020, 5, 16, 8, 3, 59, 309000), datetime.datetime(2020, 5, 16, 8, 3, 59, 512000), datetime.datetime(2020, 5, 16, 8, 3, 59, 713000), datetime.datetime(2020, 5, 16, 8, 3, 59, 931000), datetime.datetime(2020, 5, 16, 8, 4, 0, 127000), datetime.datetime(2020, 5, 16, 8, 4, 0, 297000), datetime.datetime(2020, 5, 16, 8, 4, 0, 518000), datetime.datetime(2020, 5, 16, 8, 4, 0, 741000), datetime.datetime(2020, 5, 16, 8, 4, 0, 925000), datetime.datetime(2020, 5, 16, 8, 4, 1, 117000), datetime.datetime(2020, 5, 16, 8, 4, 1, 311000), datetime.datetime(2020, 5, 16, 8, 4, 1, 521000), datetime.datetime(2020, 5, 16, 8, 4, 1, 758000), datetime.datetime(2020, 5, 16, 8, 4, 1, 946000), datetime.datetime(2020, 5, 16, 8, 4, 2, 143000), datetime.datetime(2020, 5, 16, 8, 4, 2, 323000), datetime.datetime(2020, 5, 16, 8, 4, 2, 526000), datetime.datetime(2020, 5, 16, 8, 4, 2, 718000), datetime.datetime(2020, 5, 16, 8, 4, 2, 931000), datetime.datetime(2020, 5, 16, 8, 4, 3, 127000), datetime.datetime(2020, 5, 16, 8, 4, 3, 364000), datetime.datetime(2020, 5, 16, 8, 4, 3, 533000), datetime.datetime(2020, 5, 16, 8, 4, 3, 739000), datetime.datetime(2020, 5, 16, 8, 4, 3, 934000), datetime.datetime(2020, 5, 16, 8, 4, 4, 122000), datetime.datetime(2020, 5, 16, 8, 4, 4, 317000), datetime.datetime(2020, 5, 16, 8, 4, 4, 692000), datetime.datetime(2020, 5, 16, 8, 4, 4, 732000), datetime.datetime(2020, 5, 16, 8, 4, 4, 938000), datetime.datetime(2020, 5, 16, 8, 4, 5, 255000), datetime.datetime(2020, 5, 16, 8, 4, 5, 351000), datetime.datetime(2020, 5, 16, 8, 4, 5, 558000), datetime.datetime(2020, 5, 16, 8, 4, 5, 878000), datetime.datetime(2020, 5, 16, 8, 4, 5, 953000), datetime.datetime(2020, 5, 16, 8, 4, 6, 142000), datetime.datetime(2020, 5, 16, 8, 4, 6, 382000), datetime.datetime(2020, 5, 16, 8, 4, 6, 556000), datetime.datetime(2020, 5, 16, 8, 4, 6, 772000), datetime.datetime(2020, 5, 16, 8, 4, 6, 959000), datetime.datetime(2020, 5, 16, 8, 4, 7, 168000), datetime.datetime(2020, 5, 16, 8, 4, 7, 341000), datetime.datetime(2020, 5, 16, 8, 4, 7, 565000), datetime.datetime(2020, 5, 16, 8, 4, 7, 747000), datetime.datetime(2020, 5, 16, 8, 4, 7, 958000), datetime.datetime(2020, 5, 16, 8, 4, 8, 196000), datetime.datetime(2020, 5, 16, 8, 4, 8, 362000), datetime.datetime(2020, 5, 16, 8, 4, 8, 571000), datetime.datetime(2020, 5, 16, 8, 4, 8, 752000), datetime.datetime(2020, 5, 16, 8, 4, 8, 982000), datetime.datetime(2020, 5, 16, 8, 4, 9, 156000), datetime.datetime(2020, 5, 16, 8, 4, 9, 370000), datetime.datetime(2020, 5, 16, 8, 4, 9, 559000), datetime.datetime(2020, 5, 16, 8, 4, 9, 951000), datetime.datetime(2020, 5, 16, 8, 4, 10, 251000), datetime.datetime(2020, 5, 16, 8, 4, 10, 511000), datetime.datetime(2020, 5, 16, 8, 4, 10, 543000), datetime.datetime(2020, 5, 16, 8, 4, 10, 655000), datetime.datetime(2020, 5, 16, 8, 4, 10, 761000), datetime.datetime(2020, 5, 16, 8, 4, 10, 992000), datetime.datetime(2020, 5, 16, 8, 4, 11, 220000), datetime.datetime(2020, 5, 16, 8, 4, 11, 517000), datetime.datetime(2020, 5, 16, 8, 4, 11, 617000), datetime.datetime(2020, 5, 16, 8, 4, 11, 922000), datetime.datetime(2020, 5, 16, 8, 4, 11, 994000), datetime.datetime(2020, 5, 16, 8, 4, 12, 178000), datetime.datetime(2020, 5, 16, 8, 4, 13, 254000), datetime.datetime(2020, 5, 16, 8, 4, 13, 425000), datetime.datetime(2020, 5, 16, 8, 4, 13, 466000), datetime.datetime(2020, 5, 16, 8, 4, 13, 582000), datetime.datetime(2020, 5, 16, 8, 4, 13, 822000), datetime.datetime(2020, 5, 16, 8, 4, 14, 33000), datetime.datetime(2020, 5, 16, 8, 4, 14, 385000), datetime.datetime(2020, 5, 16, 8, 4, 14, 404000), datetime.datetime(2020, 5, 16, 8, 4, 14, 602000), datetime.datetime(2020, 5, 16, 8, 4, 14, 841000), datetime.datetime(2020, 5, 16, 8, 4, 15, 248000), datetime.datetime(2020, 5, 16, 8, 4, 15, 288000), datetime.datetime(2020, 5, 16, 8, 4, 15, 405000), datetime.datetime(2020, 5, 16, 8, 4, 15, 593000), datetime.datetime(2020, 5, 16, 8, 4, 15, 793000), datetime.datetime(2020, 5, 16, 8, 4, 15, 996000), datetime.datetime(2020, 5, 16, 8, 4, 16, 230000), datetime.datetime(2020, 5, 16, 8, 4, 16, 402000), datetime.datetime(2020, 5, 16, 8, 4, 16, 598000), datetime.datetime(2020, 5, 16, 8, 4, 16, 808000), datetime.datetime(2020, 5, 16, 8, 4, 17, 2000), datetime.datetime(2020, 5, 16, 8, 4, 17, 318000), datetime.datetime(2020, 5, 16, 8, 4, 17, 405000), datetime.datetime(2020, 5, 16, 8, 4, 17, 618000), datetime.datetime(2020, 5, 16, 8, 4, 17, 870000), datetime.datetime(2020, 5, 16, 8, 4, 18, 36000), datetime.datetime(2020, 5, 16, 8, 4, 18, 262000), datetime.datetime(2020, 5, 16, 8, 4, 18, 555000), datetime.datetime(2020, 5, 16, 8, 4, 18, 654000), datetime.datetime(2020, 5, 16, 8, 4, 18, 809000), datetime.datetime(2020, 5, 16, 8, 4, 19, 132000), datetime.datetime(2020, 5, 16, 8, 4, 19, 357000), datetime.datetime(2020, 5, 16, 8, 4, 19, 422000), datetime.datetime(2020, 5, 16, 8, 4, 19, 645000), datetime.datetime(2020, 5, 16, 8, 4, 19, 836000), datetime.datetime(2020, 5, 16, 8, 4, 20, 385000), datetime.datetime(2020, 5, 16, 8, 4, 20, 439000), datetime.datetime(2020, 5, 16, 8, 4, 20, 471000), datetime.datetime(2020, 5, 16, 8, 4, 20, 616000), datetime.datetime(2020, 5, 16, 8, 4, 20, 819000), datetime.datetime(2020, 5, 16, 8, 4, 21, 21000), datetime.datetime(2020, 5, 16, 8, 4, 21, 246000), datetime.datetime(2020, 5, 16, 8, 4, 21, 413000), datetime.datetime(2020, 5, 16, 8, 4, 21, 613000), datetime.datetime(2020, 5, 16, 8, 4, 21, 816000), datetime.datetime(2020, 5, 16, 8, 4, 22, 28000), datetime.datetime(2020, 5, 16, 8, 4, 22, 222000), datetime.datetime(2020, 5, 16, 8, 4, 22, 433000), datetime.datetime(2020, 5, 16, 8, 4, 22, 640000), datetime.datetime(2020, 5, 16, 8, 4, 22, 867000), datetime.datetime(2020, 5, 16, 8, 4, 23, 126000), datetime.datetime(2020, 5, 16, 8, 4, 23, 274000), datetime.datetime(2020, 5, 16, 8, 4, 23, 421000), datetime.datetime(2020, 5, 16, 8, 4, 23, 740000), datetime.datetime(2020, 5, 16, 8, 4, 23, 975000), datetime.datetime(2020, 5, 16, 8, 4, 24, 188000), datetime.datetime(2020, 5, 16, 8, 4, 24, 268000), datetime.datetime(2020, 5, 16, 8, 4, 24, 442000), datetime.datetime(2020, 5, 16, 8, 4, 24, 682000), datetime.datetime(2020, 5, 16, 8, 4, 24, 822000), datetime.datetime(2020, 5, 16, 8, 4, 25, 58000), datetime.datetime(2020, 5, 16, 8, 4, 25, 255000), datetime.datetime(2020, 5, 16, 8, 4, 25, 463000), datetime.datetime(2020, 5, 16, 8, 4, 25, 648000), datetime.datetime(2020, 5, 16, 8, 4, 25, 868000), datetime.datetime(2020, 5, 16, 8, 4, 26, 39000), datetime.datetime(2020, 5, 16, 8, 4, 26, 280000), datetime.datetime(2020, 5, 16, 8, 4, 26, 483000), datetime.datetime(2020, 5, 16, 8, 4, 26, 639000), datetime.datetime(2020, 5, 16, 8, 4, 26, 840000), datetime.datetime(2020, 5, 16, 8, 4, 27, 44000), datetime.datetime(2020, 5, 16, 8, 4, 27, 238000), datetime.datetime(2020, 5, 16, 8, 4, 27, 455000), datetime.datetime(2020, 5, 16, 8, 4, 27, 655000), datetime.datetime(2020, 5, 16, 8, 4, 27, 845000), datetime.datetime(2020, 5, 16, 8, 4, 28, 47000), datetime.datetime(2020, 5, 16, 8, 4, 28, 254000), datetime.datetime(2020, 5, 16, 8, 4, 28, 484000), datetime.datetime(2020, 5, 16, 8, 4, 28, 660000), datetime.datetime(2020, 5, 16, 8, 4, 28, 851000), datetime.datetime(2020, 5, 16, 8, 4, 29, 54000), datetime.datetime(2020, 5, 16, 8, 4, 29, 248000), datetime.datetime(2020, 5, 16, 8, 4, 29, 473000), datetime.datetime(2020, 5, 16, 8, 4, 29, 679000), datetime.datetime(2020, 5, 16, 8, 4, 29, 848000), datetime.datetime(2020, 5, 16, 8, 4, 30, 81000), datetime.datetime(2020, 5, 16, 8, 4, 30, 253000), datetime.datetime(2020, 5, 16, 8, 4, 30, 492000), datetime.datetime(2020, 5, 16, 8, 4, 30, 666000), datetime.datetime(2020, 5, 16, 8, 4, 30, 855000), datetime.datetime(2020, 5, 16, 8, 4, 31, 124000), datetime.datetime(2020, 5, 16, 8, 4, 31, 259000), datetime.datetime(2020, 5, 16, 8, 4, 31, 462000), datetime.datetime(2020, 5, 16, 8, 4, 31, 680000), datetime.datetime(2020, 5, 16, 8, 4, 31, 906000), datetime.datetime(2020, 5, 16, 8, 4, 32, 69000), datetime.datetime(2020, 5, 16, 8, 4, 32, 263000), datetime.datetime(2020, 5, 16, 8, 4, 32, 482000), datetime.datetime(2020, 5, 16, 8, 4, 32, 669000), datetime.datetime(2020, 5, 16, 8, 4, 32, 894000), datetime.datetime(2020, 5, 16, 8, 4, 33, 74000), datetime.datetime(2020, 5, 16, 8, 4, 33, 298000), datetime.datetime(2020, 5, 16, 8, 4, 33, 507000), datetime.datetime(2020, 5, 16, 8, 4, 33, 674000), datetime.datetime(2020, 5, 16, 8, 4, 33, 899000), datetime.datetime(2020, 5, 16, 8, 4, 34, 80000), datetime.datetime(2020, 5, 16, 8, 4, 34, 289000), datetime.datetime(2020, 5, 16, 8, 4, 34, 484000), datetime.datetime(2020, 5, 16, 8, 4, 34, 680000), datetime.datetime(2020, 5, 16, 8, 4, 34, 875000), datetime.datetime(2020, 5, 16, 8, 4, 35, 102000), datetime.datetime(2020, 5, 16, 8, 4, 35, 279000), datetime.datetime(2020, 5, 16, 8, 4, 35, 474000), datetime.datetime(2020, 5, 16, 8, 4, 35, 837000), datetime.datetime(2020, 5, 16, 8, 4, 35, 908000), datetime.datetime(2020, 5, 16, 8, 4, 36, 89000), datetime.datetime(2020, 5, 16, 8, 4, 36, 284000), datetime.datetime(2020, 5, 16, 8, 4, 36, 495000), datetime.datetime(2020, 5, 16, 8, 4, 36, 689000), datetime.datetime(2020, 5, 16, 8, 4, 36, 883000), datetime.datetime(2020, 5, 16, 8, 4, 37, 95000), datetime.datetime(2020, 5, 16, 8, 4, 37, 294000), datetime.datetime(2020, 5, 16, 8, 4, 37, 493000), datetime.datetime(2020, 5, 16, 8, 4, 37, 694000), datetime.datetime(2020, 5, 16, 8, 4, 37, 887000), datetime.datetime(2020, 5, 16, 8, 4, 38, 98000), datetime.datetime(2020, 5, 16, 8, 4, 38, 309000), datetime.datetime(2020, 5, 16, 8, 4, 38, 505000), datetime.datetime(2020, 5, 16, 8, 4, 38, 700000), datetime.datetime(2020, 5, 16, 8, 4, 38, 924000), datetime.datetime(2020, 5, 16, 8, 4, 39, 119000), datetime.datetime(2020, 5, 16, 8, 4, 39, 315000), datetime.datetime(2020, 5, 16, 8, 4, 39, 502000), datetime.datetime(2020, 5, 16, 8, 4, 39, 705000), datetime.datetime(2020, 5, 16, 8, 4, 39, 898000), datetime.datetime(2020, 5, 16, 8, 4, 40, 110000), datetime.datetime(2020, 5, 16, 8, 4, 40, 303000), datetime.datetime(2020, 5, 16, 8, 4, 40, 514000), datetime.datetime(2020, 5, 16, 8, 4, 40, 731000), datetime.datetime(2020, 5, 16, 8, 4, 40, 906000), datetime.datetime(2020, 5, 16, 8, 4, 41, 114000), datetime.datetime(2020, 5, 16, 8, 4, 41, 310000), datetime.datetime(2020, 5, 16, 8, 4, 41, 559000), datetime.datetime(2020, 5, 16, 8, 4, 41, 753000), datetime.datetime(2020, 5, 16, 8, 4, 41, 917000), datetime.datetime(2020, 5, 16, 8, 4, 42, 121000), datetime.datetime(2020, 5, 16, 8, 4, 42, 316000), datetime.datetime(2020, 5, 16, 8, 4, 42, 550000), datetime.datetime(2020, 5, 16, 8, 4, 42, 742000), datetime.datetime(2020, 5, 16, 8, 4, 42, 915000), datetime.datetime(2020, 5, 16, 8, 4, 43, 126000), datetime.datetime(2020, 5, 16, 8, 4, 43, 354000), datetime.datetime(2020, 5, 16, 8, 4, 43, 579000), datetime.datetime(2020, 5, 16, 8, 4, 43, 733000), datetime.datetime(2020, 5, 16, 8, 4, 43, 948000), datetime.datetime(2020, 5, 16, 8, 4, 44, 371000), datetime.datetime(2020, 5, 16, 8, 4, 44, 405000), datetime.datetime(2020, 5, 16, 8, 4, 44, 570000), datetime.datetime(2020, 5, 16, 8, 4, 44, 730000), datetime.datetime(2020, 5, 16, 8, 4, 44, 951000), datetime.datetime(2020, 5, 16, 8, 4, 45, 135000), datetime.datetime(2020, 5, 16, 8, 4, 45, 329000), datetime.datetime(2020, 5, 16, 8, 4, 45, 524000), datetime.datetime(2020, 5, 16, 8, 4, 45, 738000), datetime.datetime(2020, 5, 16, 8, 4, 45, 973000), datetime.datetime(2020, 5, 16, 8, 4, 46, 165000), datetime.datetime(2020, 5, 16, 8, 4, 46, 363000), datetime.datetime(2020, 5, 16, 8, 4, 46, 544000), datetime.datetime(2020, 5, 16, 8, 4, 46, 748000), datetime.datetime(2020, 5, 16, 8, 4, 46, 932000), datetime.datetime(2020, 5, 16, 8, 4, 47, 143000), datetime.datetime(2020, 5, 16, 8, 4, 47, 338000), datetime.datetime(2020, 5, 16, 8, 4, 47, 534000), datetime.datetime(2020, 5, 16, 8, 4, 47, 744000), datetime.datetime(2020, 5, 16, 8, 4, 47, 938000), datetime.datetime(2020, 5, 16, 8, 4, 48, 149000), datetime.datetime(2020, 5, 16, 8, 4, 48, 345000), datetime.datetime(2020, 5, 16, 8, 4, 48, 570000), datetime.datetime(2020, 5, 16, 8, 4, 48, 749000), datetime.datetime(2020, 5, 16, 8, 4, 48, 943000), datetime.datetime(2020, 5, 16, 8, 4, 49, 154000), datetime.datetime(2020, 5, 16, 8, 4, 49, 350000), datetime.datetime(2020, 5, 16, 8, 4, 49, 544000), datetime.datetime(2020, 5, 16, 8, 4, 49, 968000), datetime.datetime(2020, 5, 16, 8, 4, 49, 999000), datetime.datetime(2020, 5, 16, 8, 4, 50, 161000), datetime.datetime(2020, 5, 16, 8, 4, 50, 361000), datetime.datetime(2020, 5, 16, 8, 4, 50, 612000), datetime.datetime(2020, 5, 16, 8, 4, 50, 767000), datetime.datetime(2020, 5, 16, 8, 4, 50, 985000), datetime.datetime(2020, 5, 16, 8, 4, 51, 195000), datetime.datetime(2020, 5, 16, 8, 4, 51, 361000), datetime.datetime(2020, 5, 16, 8, 4, 51, 597000), datetime.datetime(2020, 5, 16, 8, 4, 51, 774000), datetime.datetime(2020, 5, 16, 8, 4, 51, 965000), datetime.datetime(2020, 5, 16, 8, 4, 52, 186000), datetime.datetime(2020, 5, 16, 8, 4, 52, 367000), datetime.datetime(2020, 5, 16, 8, 4, 52, 583000), datetime.datetime(2020, 5, 16, 8, 4, 52, 801000), datetime.datetime(2020, 5, 16, 8, 4, 52, 981000), datetime.datetime(2020, 5, 16, 8, 4, 53, 175000), datetime.datetime(2020, 5, 16, 8, 4, 53, 378000), datetime.datetime(2020, 5, 16, 8, 4, 53, 569000), datetime.datetime(2020, 5, 16, 8, 4, 53, 781000), datetime.datetime(2020, 5, 16, 8, 4, 53, 998000), datetime.datetime(2020, 5, 16, 8, 4, 54, 200000), datetime.datetime(2020, 5, 16, 8, 4, 54, 379000), datetime.datetime(2020, 5, 16, 8, 4, 54, 592000), datetime.datetime(2020, 5, 16, 8, 4, 54, 789000), datetime.datetime(2020, 5, 16, 8, 4, 55, 1000), datetime.datetime(2020, 5, 16, 8, 4, 55, 197000), datetime.datetime(2020, 5, 16, 8, 4, 55, 379000), datetime.datetime(2020, 5, 16, 8, 4, 55, 581000), datetime.datetime(2020, 5, 16, 8, 4, 55, 794000), datetime.datetime(2020, 5, 16, 8, 4, 55, 984000), datetime.datetime(2020, 5, 16, 8, 4, 56, 198000), datetime.datetime(2020, 5, 16, 8, 4, 56, 395000), datetime.datetime(2020, 5, 16, 8, 4, 56, 610000), datetime.datetime(2020, 5, 16, 8, 4, 56, 790000), datetime.datetime(2020, 5, 16, 8, 4, 56, 992000), datetime.datetime(2020, 5, 16, 8, 4, 57, 197000), datetime.datetime(2020, 5, 16, 8, 4, 57, 398000), datetime.datetime(2020, 5, 16, 8, 4, 57, 590000), datetime.datetime(2020, 5, 16, 8, 4, 57, 821000), datetime.datetime(2020, 5, 16, 8, 4, 57, 996000), datetime.datetime(2020, 5, 16, 8, 4, 58, 207000), datetime.datetime(2020, 5, 16, 8, 4, 58, 397000), datetime.datetime(2020, 5, 16, 8, 4, 58, 611000), datetime.datetime(2020, 5, 16, 8, 4, 58, 811000), datetime.datetime(2020, 5, 16, 8, 4, 59, 3000), datetime.datetime(2020, 5, 16, 8, 4, 59, 214000), datetime.datetime(2020, 5, 16, 8, 4, 59, 405000), datetime.datetime(2020, 5, 16, 8, 4, 59, 600000), datetime.datetime(2020, 5, 16, 8, 4, 59, 812000), datetime.datetime(2020, 5, 16, 8, 5, 0, 28000), datetime.datetime(2020, 5, 16, 8, 5, 0, 216000), datetime.datetime(2020, 5, 16, 8, 5, 0, 414000), datetime.datetime(2020, 5, 16, 8, 5, 0, 622000), datetime.datetime(2020, 5, 16, 8, 5, 0, 818000), datetime.datetime(2020, 5, 16, 8, 5, 1, 11000), datetime.datetime(2020, 5, 16, 8, 5, 1, 223000), datetime.datetime(2020, 5, 16, 8, 5, 1, 418000), datetime.datetime(2020, 5, 16, 8, 5, 1, 627000), datetime.datetime(2020, 5, 16, 8, 5, 1, 837000), datetime.datetime(2020, 5, 16, 8, 5, 2, 15000), datetime.datetime(2020, 5, 16, 8, 5, 2, 228000), datetime.datetime(2020, 5, 16, 8, 5, 2, 416000), datetime.datetime(2020, 5, 16, 8, 5, 2, 633000), datetime.datetime(2020, 5, 16, 8, 5, 2, 826000), datetime.datetime(2020, 5, 16, 8, 5, 3, 13000), datetime.datetime(2020, 5, 16, 8, 5, 3, 234000), datetime.datetime(2020, 5, 16, 8, 5, 3, 425000), datetime.datetime(2020, 5, 16, 8, 5, 3, 621000), datetime.datetime(2020, 5, 16, 8, 5, 3, 833000), datetime.datetime(2020, 5, 16, 8, 5, 4, 27000), datetime.datetime(2020, 5, 16, 8, 5, 4, 240000), datetime.datetime(2020, 5, 16, 8, 5, 4, 426000), datetime.datetime(2020, 5, 16, 8, 5, 4, 642000), datetime.datetime(2020, 5, 16, 8, 5, 4, 836000), datetime.datetime(2020, 5, 16, 8, 5, 5, 31000), datetime.datetime(2020, 5, 16, 8, 5, 5, 242000), datetime.datetime(2020, 5, 16, 8, 5, 5, 437000), datetime.datetime(2020, 5, 16, 8, 5, 5, 657000), datetime.datetime(2020, 5, 16, 8, 5, 5, 844000), datetime.datetime(2020, 5, 16, 8, 5, 6, 30000), datetime.datetime(2020, 5, 16, 8, 5, 6, 249000), datetime.datetime(2020, 5, 16, 8, 5, 6, 444000), datetime.datetime(2020, 5, 16, 8, 5, 6, 651000), datetime.datetime(2020, 5, 16, 8, 5, 6, 869000), datetime.datetime(2020, 5, 16, 8, 5, 7, 35000), datetime.datetime(2020, 5, 16, 8, 5, 7, 270000), datetime.datetime(2020, 5, 16, 8, 5, 7, 459000), datetime.datetime(2020, 5, 16, 8, 5, 7, 678000), datetime.datetime(2020, 5, 16, 8, 5, 7, 853000), datetime.datetime(2020, 5, 16, 8, 5, 8, 41000), datetime.datetime(2020, 5, 16, 8, 5, 8, 260000), datetime.datetime(2020, 5, 16, 8, 5, 8, 452000), datetime.datetime(2020, 5, 16, 8, 5, 8, 684000), datetime.datetime(2020, 5, 16, 8, 5, 8, 862000), datetime.datetime(2020, 5, 16, 8, 5, 9, 44000), datetime.datetime(2020, 5, 16, 8, 5, 9, 264000), datetime.datetime(2020, 5, 16, 8, 5, 9, 457000), datetime.datetime(2020, 5, 16, 8, 5, 9, 650000), datetime.datetime(2020, 5, 16, 8, 5, 9, 861000), datetime.datetime(2020, 5, 16, 8, 5, 10, 56000), datetime.datetime(2020, 5, 16, 8, 5, 10, 270000), datetime.datetime(2020, 5, 16, 8, 5, 10, 457000), datetime.datetime(2020, 5, 16, 8, 5, 10, 671000), datetime.datetime(2020, 5, 16, 8, 5, 10, 866000), datetime.datetime(2020, 5, 16, 8, 5, 11, 61000), datetime.datetime(2020, 5, 16, 8, 5, 11, 272000), datetime.datetime(2020, 5, 16, 8, 5, 11, 466000), datetime.datetime(2020, 5, 16, 8, 5, 11, 662000), datetime.datetime(2020, 5, 16, 8, 5, 11, 872000), datetime.datetime(2020, 5, 16, 8, 5, 12, 60000), datetime.datetime(2020, 5, 16, 8, 5, 12, 281000), datetime.datetime(2020, 5, 16, 8, 5, 12, 473000), datetime.datetime(2020, 5, 16, 8, 5, 12, 683000), datetime.datetime(2020, 5, 16, 8, 5, 12, 881000), datetime.datetime(2020, 5, 16, 8, 5, 13, 65000), datetime.datetime(2020, 5, 16, 8, 5, 13, 282000), datetime.datetime(2020, 5, 16, 8, 5, 13, 471000), datetime.datetime(2020, 5, 16, 8, 5, 13, 685000), datetime.datetime(2020, 5, 16, 8, 5, 13, 884000), datetime.datetime(2020, 5, 16, 8, 5, 14, 75000), datetime.datetime(2020, 5, 16, 8, 5, 14, 287000), datetime.datetime(2020, 5, 16, 8, 5, 14, 510000), datetime.datetime(2020, 5, 16, 8, 5, 14, 694000), datetime.datetime(2020, 5, 16, 8, 5, 14, 879000), datetime.datetime(2020, 5, 16, 8, 5, 15, 80000), datetime.datetime(2020, 5, 16, 8, 5, 15, 294000), datetime.datetime(2020, 5, 16, 8, 5, 15, 489000), datetime.datetime(2020, 5, 16, 8, 5, 15, 682000), datetime.datetime(2020, 5, 16, 8, 5, 15, 892000), datetime.datetime(2020, 5, 16, 8, 5, 16, 86000), datetime.datetime(2020, 5, 16, 8, 5, 16, 296000), datetime.datetime(2020, 5, 16, 8, 5, 16, 493000), datetime.datetime(2020, 5, 16, 8, 5, 16, 695000), datetime.datetime(2020, 5, 16, 8, 5, 16, 897000), datetime.datetime(2020, 5, 16, 8, 5, 17, 85000), datetime.datetime(2020, 5, 16, 8, 5, 17, 301000), datetime.datetime(2020, 5, 16, 8, 5, 17, 498000), datetime.datetime(2020, 5, 16, 8, 5, 17, 707000), datetime.datetime(2020, 5, 16, 8, 5, 17, 903000), datetime.datetime(2020, 5, 16, 8, 5, 18, 92000), datetime.datetime(2020, 5, 16, 8, 5, 18, 306000), datetime.datetime(2020, 5, 16, 8, 5, 18, 503000), datetime.datetime(2020, 5, 16, 8, 5, 18, 712000), datetime.datetime(2020, 5, 16, 8, 5, 18, 905000), datetime.datetime(2020, 5, 16, 8, 5, 19, 102000), datetime.datetime(2020, 5, 16, 8, 5, 19, 314000), datetime.datetime(2020, 5, 16, 8, 5, 19, 523000), datetime.datetime(2020, 5, 16, 8, 5, 19, 719000), datetime.datetime(2020, 5, 16, 8, 5, 19, 913000), datetime.datetime(2020, 5, 16, 8, 5, 20, 100000), datetime.datetime(2020, 5, 16, 8, 5, 20, 318000), datetime.datetime(2020, 5, 16, 8, 5, 20, 512000), datetime.datetime(2020, 5, 16, 8, 5, 20, 724000), datetime.datetime(2020, 5, 16, 8, 5, 20, 917000), datetime.datetime(2020, 5, 16, 8, 5, 21, 141000), datetime.datetime(2020, 5, 16, 8, 5, 21, 323000), datetime.datetime(2020, 5, 16, 8, 5, 21, 515000), datetime.datetime(2020, 5, 16, 8, 5, 21, 729000), datetime.datetime(2020, 5, 16, 8, 5, 21, 924000), datetime.datetime(2020, 5, 16, 8, 5, 22, 118000), datetime.datetime(2020, 5, 16, 8, 5, 22, 350000), datetime.datetime(2020, 5, 16, 8, 5, 22, 518000), datetime.datetime(2020, 5, 16, 8, 5, 22, 733000), datetime.datetime(2020, 5, 16, 8, 5, 22, 927000), datetime.datetime(2020, 5, 16, 8, 5, 23, 122000), datetime.datetime(2020, 5, 16, 8, 5, 23, 331000), datetime.datetime(2020, 5, 16, 8, 5, 23, 528000), datetime.datetime(2020, 5, 16, 8, 5, 23, 760000), datetime.datetime(2020, 5, 16, 8, 5, 23, 925000), datetime.datetime(2020, 5, 16, 8, 5, 24, 171000), datetime.datetime(2020, 5, 16, 8, 5, 24, 340000), datetime.datetime(2020, 5, 16, 8, 5, 24, 546000), datetime.datetime(2020, 5, 16, 8, 5, 24, 735000), datetime.datetime(2020, 5, 16, 8, 5, 24, 954000), datetime.datetime(2020, 5, 16, 8, 5, 25, 131000), datetime.datetime(2020, 5, 16, 8, 5, 25, 358000), datetime.datetime(2020, 5, 16, 8, 5, 25, 538000), datetime.datetime(2020, 5, 16, 8, 5, 25, 749000), datetime.datetime(2020, 5, 16, 8, 5, 25, 962000), datetime.datetime(2020, 5, 16, 8, 5, 26, 141000), datetime.datetime(2020, 5, 16, 8, 5, 26, 348000), datetime.datetime(2020, 5, 16, 8, 5, 26, 542000), datetime.datetime(2020, 5, 16, 8, 5, 26, 753000), datetime.datetime(2020, 5, 16, 8, 5, 26, 967000), datetime.datetime(2020, 5, 16, 8, 5, 27, 137000), datetime.datetime(2020, 5, 16, 8, 5, 27, 351000), datetime.datetime(2020, 5, 16, 8, 5, 27, 547000), datetime.datetime(2020, 5, 16, 8, 5, 27, 757000), datetime.datetime(2020, 5, 16, 8, 5, 27, 970000), datetime.datetime(2020, 5, 16, 8, 5, 28, 140000), datetime.datetime(2020, 5, 16, 8, 5, 28, 378000), datetime.datetime(2020, 5, 16, 8, 5, 28, 548000), datetime.datetime(2020, 5, 16, 8, 5, 28, 761000), datetime.datetime(2020, 5, 16, 8, 5, 28, 981000), datetime.datetime(2020, 5, 16, 8, 5, 29, 145000), datetime.datetime(2020, 5, 16, 8, 5, 29, 384000), datetime.datetime(2020, 5, 16, 8, 5, 29, 551000), datetime.datetime(2020, 5, 16, 8, 5, 29, 766000), datetime.datetime(2020, 5, 16, 8, 5, 29, 962000), datetime.datetime(2020, 5, 16, 8, 5, 30, 181000), datetime.datetime(2020, 5, 16, 8, 5, 30, 361000), datetime.datetime(2020, 5, 16, 8, 5, 30, 583000), datetime.datetime(2020, 5, 16, 8, 5, 30, 772000), datetime.datetime(2020, 5, 16, 8, 5, 30, 966000), datetime.datetime(2020, 5, 16, 8, 5, 31, 163000), datetime.datetime(2020, 5, 16, 8, 5, 31, 373000), datetime.datetime(2020, 5, 16, 8, 5, 31, 568000), datetime.datetime(2020, 5, 16, 8, 5, 31, 776000), datetime.datetime(2020, 5, 16, 8, 5, 31, 993000), datetime.datetime(2020, 5, 16, 8, 5, 32, 160000), datetime.datetime(2020, 5, 16, 8, 5, 32, 377000), datetime.datetime(2020, 5, 16, 8, 5, 32, 570000), datetime.datetime(2020, 5, 16, 8, 5, 32, 782000), datetime.datetime(2020, 5, 16, 8, 5, 32, 978000), datetime.datetime(2020, 5, 16, 8, 5, 33, 172000), datetime.datetime(2020, 5, 16, 8, 5, 33, 384000), datetime.datetime(2020, 5, 16, 8, 5, 33, 577000), datetime.datetime(2020, 5, 16, 8, 5, 33, 788000), datetime.datetime(2020, 5, 16, 8, 5, 33, 982000), datetime.datetime(2020, 5, 16, 8, 5, 34, 179000), datetime.datetime(2020, 5, 16, 8, 5, 34, 388000), datetime.datetime(2020, 5, 16, 8, 5, 34, 582000), datetime.datetime(2020, 5, 16, 8, 5, 34, 812000), datetime.datetime(2020, 5, 16, 8, 5, 34, 981000), datetime.datetime(2020, 5, 16, 8, 5, 35, 183000), datetime.datetime(2020, 5, 16, 8, 5, 35, 392000), datetime.datetime(2020, 5, 16, 8, 5, 35, 614000), datetime.datetime(2020, 5, 16, 8, 5, 35, 804000), datetime.datetime(2020, 5, 16, 8, 5, 35, 997000), datetime.datetime(2020, 5, 16, 8, 5, 36, 180000), datetime.datetime(2020, 5, 16, 8, 5, 36, 421000), datetime.datetime(2020, 5, 16, 8, 5, 36, 585000), datetime.datetime(2020, 5, 16, 8, 5, 36, 801000), datetime.datetime(2020, 5, 16, 8, 5, 37, 2000), datetime.datetime(2020, 5, 16, 8, 5, 37, 191000), datetime.datetime(2020, 5, 16, 8, 5, 37, 419000), datetime.datetime(2020, 5, 16, 8, 5, 37, 621000), datetime.datetime(2020, 5, 16, 8, 5, 37, 841000), datetime.datetime(2020, 5, 16, 8, 5, 38, 2000), datetime.datetime(2020, 5, 16, 8, 5, 38, 197000), datetime.datetime(2020, 5, 16, 8, 5, 38, 452000), datetime.datetime(2020, 5, 16, 8, 5, 38, 605000), datetime.datetime(2020, 5, 16, 8, 5, 38, 813000), datetime.datetime(2020, 5, 16, 8, 5, 39, 10000), datetime.datetime(2020, 5, 16, 8, 5, 39, 209000), datetime.datetime(2020, 5, 16, 8, 5, 39, 430000), datetime.datetime(2020, 5, 16, 8, 5, 39, 613000), datetime.datetime(2020, 5, 16, 8, 5, 39, 836000), datetime.datetime(2020, 5, 16, 8, 5, 40, 13000), datetime.datetime(2020, 5, 16, 8, 5, 40, 230000), datetime.datetime(2020, 5, 16, 8, 5, 40, 419000), datetime.datetime(2020, 5, 16, 8, 5, 40, 630000), datetime.datetime(2020, 5, 16, 8, 5, 40, 826000), datetime.datetime(2020, 5, 16, 8, 5, 41, 92000), datetime.datetime(2020, 5, 16, 8, 5, 41, 214000), datetime.datetime(2020, 5, 16, 8, 5, 41, 438000), datetime.datetime(2020, 5, 16, 8, 5, 41, 639000), datetime.datetime(2020, 5, 16, 8, 5, 41, 834000), datetime.datetime(2020, 5, 16, 8, 5, 42, 48000), datetime.datetime(2020, 5, 16, 8, 5, 42, 215000), datetime.datetime(2020, 5, 16, 8, 5, 42, 426000), datetime.datetime(2020, 5, 16, 8, 5, 42, 644000), datetime.datetime(2020, 5, 16, 8, 5, 42, 840000), datetime.datetime(2020, 5, 16, 8, 5, 43, 27000), datetime.datetime(2020, 5, 16, 8, 5, 43, 289000), datetime.datetime(2020, 5, 16, 8, 5, 43, 426000), datetime.datetime(2020, 5, 16, 8, 5, 43, 821000), datetime.datetime(2020, 5, 16, 8, 5, 43, 902000), datetime.datetime(2020, 5, 16, 8, 5, 44, 347000), datetime.datetime(2020, 5, 16, 8, 5, 44, 407000), datetime.datetime(2020, 5, 16, 8, 5, 44, 451000), datetime.datetime(2020, 5, 16, 8, 5, 44, 651000), datetime.datetime(2020, 5, 16, 8, 5, 44, 856000), datetime.datetime(2020, 5, 16, 8, 5, 45, 52000), datetime.datetime(2020, 5, 16, 8, 5, 45, 253000), datetime.datetime(2020, 5, 16, 8, 5, 45, 506000), datetime.datetime(2020, 5, 16, 8, 5, 45, 736000), datetime.datetime(2020, 5, 16, 8, 5, 45, 882000), datetime.datetime(2020, 5, 16, 8, 5, 46, 36000), datetime.datetime(2020, 5, 16, 8, 5, 46, 290000), datetime.datetime(2020, 5, 16, 8, 5, 46, 440000), datetime.datetime(2020, 5, 16, 8, 5, 46, 783000), datetime.datetime(2020, 5, 16, 8, 5, 46, 884000), datetime.datetime(2020, 5, 16, 8, 5, 47, 138000), datetime.datetime(2020, 5, 16, 8, 5, 47, 321000), datetime.datetime(2020, 5, 16, 8, 5, 47, 581000), datetime.datetime(2020, 5, 16, 8, 5, 47, 650000), datetime.datetime(2020, 5, 16, 8, 5, 47, 878000), datetime.datetime(2020, 5, 16, 8, 5, 48, 154000), datetime.datetime(2020, 5, 16, 8, 5, 48, 346000), datetime.datetime(2020, 5, 16, 8, 5, 48, 460000), datetime.datetime(2020, 5, 16, 8, 5, 48, 987000), datetime.datetime(2020, 5, 16, 8, 5, 49, 124000), datetime.datetime(2020, 5, 16, 8, 5, 49, 158000), datetime.datetime(2020, 5, 16, 8, 5, 49, 254000), datetime.datetime(2020, 5, 16, 8, 5, 49, 544000), datetime.datetime(2020, 5, 16, 8, 5, 49, 770000), datetime.datetime(2020, 5, 16, 8, 5, 49, 927000), datetime.datetime(2020, 5, 16, 8, 5, 50, 82000), datetime.datetime(2020, 5, 16, 8, 5, 50, 341000), datetime.datetime(2020, 5, 16, 8, 5, 50, 473000), datetime.datetime(2020, 5, 16, 8, 5, 50, 860000), datetime.datetime(2020, 5, 16, 8, 5, 50, 919000), datetime.datetime(2020, 5, 16, 8, 5, 51, 85000), datetime.datetime(2020, 5, 16, 8, 5, 51, 272000), datetime.datetime(2020, 5, 16, 8, 5, 51, 496000), datetime.datetime(2020, 5, 16, 8, 5, 51, 693000), datetime.datetime(2020, 5, 16, 8, 5, 51, 882000), datetime.datetime(2020, 5, 16, 8, 5, 52, 80000), datetime.datetime(2020, 5, 16, 8, 5, 52, 289000), datetime.datetime(2020, 5, 16, 8, 5, 52, 485000), datetime.datetime(2020, 5, 16, 8, 5, 52, 697000), datetime.datetime(2020, 5, 16, 8, 5, 52, 905000), datetime.datetime(2020, 5, 16, 8, 5, 53, 77000), datetime.datetime(2020, 5, 16, 8, 5, 53, 297000), datetime.datetime(2020, 5, 16, 8, 5, 53, 502000), datetime.datetime(2020, 5, 16, 8, 5, 53, 743000), datetime.datetime(2020, 5, 16, 8, 5, 53, 903000), datetime.datetime(2020, 5, 16, 8, 5, 54, 111000), datetime.datetime(2020, 5, 16, 8, 5, 54, 306000), datetime.datetime(2020, 5, 16, 8, 5, 54, 533000), datetime.datetime(2020, 5, 16, 8, 5, 54, 728000), datetime.datetime(2020, 5, 16, 8, 5, 54, 901000), datetime.datetime(2020, 5, 16, 8, 5, 55, 103000), datetime.datetime(2020, 5, 16, 8, 5, 55, 283000), datetime.datetime(2020, 5, 16, 8, 5, 55, 525000), datetime.datetime(2020, 5, 16, 8, 5, 55, 741000), datetime.datetime(2020, 5, 16, 8, 5, 55, 945000), datetime.datetime(2020, 5, 16, 8, 5, 56, 316000), datetime.datetime(2020, 5, 16, 8, 5, 56, 349000), datetime.datetime(2020, 5, 16, 8, 5, 56, 505000), datetime.datetime(2020, 5, 16, 8, 5, 56, 760000), datetime.datetime(2020, 5, 16, 8, 5, 56, 954000), datetime.datetime(2020, 5, 16, 8, 5, 57, 121000), datetime.datetime(2020, 5, 16, 8, 5, 57, 310000), datetime.datetime(2020, 5, 16, 8, 5, 57, 551000), datetime.datetime(2020, 5, 16, 8, 5, 57, 706000), datetime.datetime(2020, 5, 16, 8, 5, 57, 947000), datetime.datetime(2020, 5, 16, 8, 5, 58, 104000), datetime.datetime(2020, 5, 16, 8, 5, 58, 346000), datetime.datetime(2020, 5, 16, 8, 5, 58, 520000), datetime.datetime(2020, 5, 16, 8, 5, 58, 716000), datetime.datetime(2020, 5, 16, 8, 5, 58, 931000), datetime.datetime(2020, 5, 16, 8, 5, 59, 113000), datetime.datetime(2020, 5, 16, 8, 5, 59, 323000), datetime.datetime(2020, 5, 16, 8, 5, 59, 509000), datetime.datetime(2020, 5, 16, 8, 5, 59, 729000), datetime.datetime(2020, 5, 16, 8, 5, 59, 930000), datetime.datetime(2020, 5, 16, 8, 6, 0, 114000), datetime.datetime(2020, 5, 16, 8, 6, 0, 312000), datetime.datetime(2020, 5, 16, 8, 6, 0, 542000), datetime.datetime(2020, 5, 16, 8, 6, 0, 715000), datetime.datetime(2020, 5, 16, 8, 6, 0, 943000), datetime.datetime(2020, 5, 16, 8, 6, 1, 138000), datetime.datetime(2020, 5, 16, 8, 6, 1, 315000), datetime.datetime(2020, 5, 16, 8, 6, 1, 545000), datetime.datetime(2020, 5, 16, 8, 6, 1, 737000), datetime.datetime(2020, 5, 16, 8, 6, 1, 923000), datetime.datetime(2020, 5, 16, 8, 6, 2, 151000), datetime.datetime(2020, 5, 16, 8, 6, 2, 327000), datetime.datetime(2020, 5, 16, 8, 6, 2, 543000), datetime.datetime(2020, 5, 16, 8, 6, 2, 757000), datetime.datetime(2020, 5, 16, 8, 6, 2, 935000), datetime.datetime(2020, 5, 16, 8, 6, 3, 126000), datetime.datetime(2020, 5, 16, 8, 6, 3, 345000), datetime.datetime(2020, 5, 16, 8, 6, 3, 546000), datetime.datetime(2020, 5, 16, 8, 6, 3, 730000), datetime.datetime(2020, 5, 16, 8, 6, 3, 960000), datetime.datetime(2020, 5, 16, 8, 6, 4, 143000), datetime.datetime(2020, 5, 16, 8, 6, 4, 356000), datetime.datetime(2020, 5, 16, 8, 6, 4, 601000), datetime.datetime(2020, 5, 16, 8, 6, 4, 764000), datetime.datetime(2020, 5, 16, 8, 6, 4, 956000), datetime.datetime(2020, 5, 16, 8, 6, 5, 159000), datetime.datetime(2020, 5, 16, 8, 6, 5, 346000), datetime.datetime(2020, 5, 16, 8, 6, 5, 548000), datetime.datetime(2020, 5, 16, 8, 6, 5, 770000), datetime.datetime(2020, 5, 16, 8, 6, 5, 963000), datetime.datetime(2020, 5, 16, 8, 6, 6, 179000), datetime.datetime(2020, 5, 16, 8, 6, 6, 331000), datetime.datetime(2020, 5, 16, 8, 6, 6, 602000), datetime.datetime(2020, 5, 16, 8, 6, 6, 751000), datetime.datetime(2020, 5, 16, 8, 6, 6, 986000), datetime.datetime(2020, 5, 16, 8, 6, 7, 158000), datetime.datetime(2020, 5, 16, 8, 6, 7, 364000), datetime.datetime(2020, 5, 16, 8, 6, 7, 582000), datetime.datetime(2020, 5, 16, 8, 6, 7, 784000), datetime.datetime(2020, 5, 16, 8, 6, 7, 991000), datetime.datetime(2020, 5, 16, 8, 6, 8, 174000), datetime.datetime(2020, 5, 16, 8, 6, 8, 414000), datetime.datetime(2020, 5, 16, 8, 6, 8, 639000), datetime.datetime(2020, 5, 16, 8, 6, 8, 772000), datetime.datetime(2020, 5, 16, 8, 6, 9, 16000), datetime.datetime(2020, 5, 16, 8, 6, 9, 171000), datetime.datetime(2020, 5, 16, 8, 6, 9, 403000), datetime.datetime(2020, 5, 16, 8, 6, 9, 579000), datetime.datetime(2020, 5, 16, 8, 6, 9, 808000), datetime.datetime(2020, 5, 16, 8, 6, 9, 969000), datetime.datetime(2020, 5, 16, 8, 6, 10, 214000), datetime.datetime(2020, 5, 16, 8, 6, 10, 359000), datetime.datetime(2020, 5, 16, 8, 6, 10, 564000), datetime.datetime(2020, 5, 16, 8, 6, 10, 773000), datetime.datetime(2020, 5, 16, 8, 6, 11, 3000), datetime.datetime(2020, 5, 16, 8, 6, 11, 205000), datetime.datetime(2020, 5, 16, 8, 6, 11, 373000), datetime.datetime(2020, 5, 16, 8, 6, 11, 595000), datetime.datetime(2020, 5, 16, 8, 6, 11, 765000), datetime.datetime(2020, 5, 16, 8, 6, 12, 2000), datetime.datetime(2020, 5, 16, 8, 6, 12, 198000), datetime.datetime(2020, 5, 16, 8, 6, 12, 419000), datetime.datetime(2020, 5, 16, 8, 6, 12, 594000), datetime.datetime(2020, 5, 16, 8, 6, 12, 799000), datetime.datetime(2020, 5, 16, 8, 6, 13, 6000), datetime.datetime(2020, 5, 16, 8, 6, 13, 197000), datetime.datetime(2020, 5, 16, 8, 6, 13, 407000), datetime.datetime(2020, 5, 16, 8, 6, 13, 621000), datetime.datetime(2020, 5, 16, 8, 6, 13, 785000), datetime.datetime(2020, 5, 16, 8, 6, 14, 42000), datetime.datetime(2020, 5, 16, 8, 6, 14, 324000), datetime.datetime(2020, 5, 16, 8, 6, 14, 397000), datetime.datetime(2020, 5, 16, 8, 6, 14, 608000), datetime.datetime(2020, 5, 16, 8, 6, 14, 829000), datetime.datetime(2020, 5, 16, 8, 6, 15, 10000), datetime.datetime(2020, 5, 16, 8, 6, 15, 192000), datetime.datetime(2020, 5, 16, 8, 6, 15, 397000), datetime.datetime(2020, 5, 16, 8, 6, 15, 630000), datetime.datetime(2020, 5, 16, 8, 6, 15, 784000), datetime.datetime(2020, 5, 16, 8, 6, 16, 35000), datetime.datetime(2020, 5, 16, 8, 6, 16, 225000), datetime.datetime(2020, 5, 16, 8, 6, 16, 399000), datetime.datetime(2020, 5, 16, 8, 6, 16, 663000), datetime.datetime(2020, 5, 16, 8, 6, 16, 804000), datetime.datetime(2020, 5, 16, 8, 6, 17, 21000), datetime.datetime(2020, 5, 16, 8, 6, 17, 200000), datetime.datetime(2020, 5, 16, 8, 6, 17, 413000), datetime.datetime(2020, 5, 16, 8, 6, 17, 602000), datetime.datetime(2020, 5, 16, 8, 6, 17, 800000), datetime.datetime(2020, 5, 16, 8, 6, 18, 30000), datetime.datetime(2020, 5, 16, 8, 6, 18, 212000), datetime.datetime(2020, 5, 16, 8, 6, 18, 420000), datetime.datetime(2020, 5, 16, 8, 6, 18, 687000), datetime.datetime(2020, 5, 16, 8, 6, 18, 816000), datetime.datetime(2020, 5, 16, 8, 6, 19, 51000), datetime.datetime(2020, 5, 16, 8, 6, 19, 210000), datetime.datetime(2020, 5, 16, 8, 6, 19, 426000), datetime.datetime(2020, 5, 16, 8, 6, 19, 629000), datetime.datetime(2020, 5, 16, 8, 6, 19, 813000), datetime.datetime(2020, 5, 16, 8, 6, 20, 31000), datetime.datetime(2020, 5, 16, 8, 6, 20, 246000), datetime.datetime(2020, 5, 16, 8, 6, 20, 446000), datetime.datetime(2020, 5, 16, 8, 6, 20, 626000), datetime.datetime(2020, 5, 16, 8, 6, 20, 847000), datetime.datetime(2020, 5, 16, 8, 6, 21, 44000), datetime.datetime(2020, 5, 16, 8, 6, 21, 241000), datetime.datetime(2020, 5, 16, 8, 6, 21, 432000), datetime.datetime(2020, 5, 16, 8, 6, 21, 644000), datetime.datetime(2020, 5, 16, 8, 6, 21, 817000), datetime.datetime(2020, 5, 16, 8, 6, 22, 51000), datetime.datetime(2020, 5, 16, 8, 6, 22, 225000), datetime.datetime(2020, 5, 16, 8, 6, 22, 442000), datetime.datetime(2020, 5, 16, 8, 6, 22, 649000), datetime.datetime(2020, 5, 16, 8, 6, 22, 839000), datetime.datetime(2020, 5, 16, 8, 6, 23, 27000), datetime.datetime(2020, 5, 16, 8, 6, 23, 244000), datetime.datetime(2020, 5, 16, 8, 6, 23, 489000), datetime.datetime(2020, 5, 16, 8, 6, 23, 643000), datetime.datetime(2020, 5, 16, 8, 6, 23, 849000), datetime.datetime(2020, 5, 16, 8, 6, 24, 58000), datetime.datetime(2020, 5, 16, 8, 6, 24, 233000), datetime.datetime(2020, 5, 16, 8, 6, 24, 450000), datetime.datetime(2020, 5, 16, 8, 6, 24, 643000), datetime.datetime(2020, 5, 16, 8, 6, 24, 830000), datetime.datetime(2020, 5, 16, 8, 6, 25, 64000), datetime.datetime(2020, 5, 16, 8, 6, 25, 240000), datetime.datetime(2020, 5, 16, 8, 6, 25, 454000), datetime.datetime(2020, 5, 16, 8, 6, 25, 694000), datetime.datetime(2020, 5, 16, 8, 6, 25, 844000), datetime.datetime(2020, 5, 16, 8, 6, 26, 100000), datetime.datetime(2020, 5, 16, 8, 6, 26, 247000), datetime.datetime(2020, 5, 16, 8, 6, 26, 462000), datetime.datetime(2020, 5, 16, 8, 6, 26, 665000), datetime.datetime(2020, 5, 16, 8, 6, 26, 942000), datetime.datetime(2020, 5, 16, 8, 6, 27, 104000), datetime.datetime(2020, 5, 16, 8, 6, 27, 280000), datetime.datetime(2020, 5, 16, 8, 6, 27, 749000), datetime.datetime(2020, 5, 16, 8, 6, 27, 807000), datetime.datetime(2020, 5, 16, 8, 6, 28, 23000), datetime.datetime(2020, 5, 16, 8, 6, 28, 67000), datetime.datetime(2020, 5, 16, 8, 6, 28, 289000), datetime.datetime(2020, 5, 16, 8, 6, 28, 456000), datetime.datetime(2020, 5, 16, 8, 6, 28, 696000), datetime.datetime(2020, 5, 16, 8, 6, 28, 857000), datetime.datetime(2020, 5, 16, 8, 6, 29, 115000), datetime.datetime(2020, 5, 16, 8, 6, 29, 252000), datetime.datetime(2020, 5, 16, 8, 6, 29, 470000), datetime.datetime(2020, 5, 16, 8, 6, 29, 717000), datetime.datetime(2020, 5, 16, 8, 6, 29, 861000), datetime.datetime(2020, 5, 16, 8, 6, 30, 208000), datetime.datetime(2020, 5, 16, 8, 6, 30, 290000), datetime.datetime(2020, 5, 16, 8, 6, 30, 465000), datetime.datetime(2020, 5, 16, 8, 6, 30, 681000), datetime.datetime(2020, 5, 16, 8, 6, 30, 898000), datetime.datetime(2020, 5, 16, 8, 6, 31, 106000), datetime.datetime(2020, 5, 16, 8, 6, 31, 293000), datetime.datetime(2020, 5, 16, 8, 6, 31, 474000), datetime.datetime(2020, 5, 16, 8, 6, 31, 732000), datetime.datetime(2020, 5, 16, 8, 6, 32, 39000), datetime.datetime(2020, 5, 16, 8, 6, 32, 118000), datetime.datetime(2020, 5, 16, 8, 6, 32, 297000), datetime.datetime(2020, 5, 16, 8, 6, 32, 536000), datetime.datetime(2020, 5, 16, 8, 6, 32, 702000), datetime.datetime(2020, 5, 16, 8, 6, 32, 902000), datetime.datetime(2020, 5, 16, 8, 6, 33, 95000), datetime.datetime(2020, 5, 16, 8, 6, 33, 301000), datetime.datetime(2020, 5, 16, 8, 6, 33, 526000), datetime.datetime(2020, 5, 16, 8, 6, 33, 699000), datetime.datetime(2020, 5, 16, 8, 6, 33, 896000), datetime.datetime(2020, 5, 16, 8, 6, 34, 97000), datetime.datetime(2020, 5, 16, 8, 6, 34, 429000), datetime.datetime(2020, 5, 16, 8, 6, 34, 494000), datetime.datetime(2020, 5, 16, 8, 6, 34, 695000), datetime.datetime(2020, 5, 16, 8, 6, 34, 896000), datetime.datetime(2020, 5, 16, 8, 6, 35, 117000), datetime.datetime(2020, 5, 16, 8, 6, 35, 292000), datetime.datetime(2020, 5, 16, 8, 6, 35, 531000), datetime.datetime(2020, 5, 16, 8, 6, 35, 714000), datetime.datetime(2020, 5, 16, 8, 6, 35, 908000), datetime.datetime(2020, 5, 16, 8, 6, 36, 115000), datetime.datetime(2020, 5, 16, 8, 6, 36, 289000), datetime.datetime(2020, 5, 16, 8, 6, 36, 525000), datetime.datetime(2020, 5, 16, 8, 6, 36, 713000), datetime.datetime(2020, 5, 16, 8, 6, 36, 929000), datetime.datetime(2020, 5, 16, 8, 6, 37, 113000), datetime.datetime(2020, 5, 16, 8, 6, 37, 424000), datetime.datetime(2020, 5, 16, 8, 6, 37, 546000), datetime.datetime(2020, 5, 16, 8, 6, 37, 724000), datetime.datetime(2020, 5, 16, 8, 6, 37, 963000), datetime.datetime(2020, 5, 16, 8, 6, 38, 236000), datetime.datetime(2020, 5, 16, 8, 6, 38, 579000), datetime.datetime(2020, 5, 16, 8, 6, 38, 619000), datetime.datetime(2020, 5, 16, 8, 6, 38, 711000), datetime.datetime(2020, 5, 16, 8, 6, 38, 979000), datetime.datetime(2020, 5, 16, 8, 6, 39, 172000), datetime.datetime(2020, 5, 16, 8, 6, 39, 342000), datetime.datetime(2020, 5, 16, 8, 6, 39, 601000), datetime.datetime(2020, 5, 16, 8, 6, 39, 718000), datetime.datetime(2020, 5, 16, 8, 6, 39, 906000), datetime.datetime(2020, 5, 16, 8, 6, 40, 120000), datetime.datetime(2020, 5, 16, 8, 6, 40, 363000), datetime.datetime(2020, 5, 16, 8, 6, 40, 587000), datetime.datetime(2020, 5, 16, 8, 6, 40, 723000), datetime.datetime(2020, 5, 16, 8, 6, 40, 913000), datetime.datetime(2020, 5, 16, 8, 6, 41, 175000), datetime.datetime(2020, 5, 16, 8, 6, 41, 317000), datetime.datetime(2020, 5, 16, 8, 6, 41, 538000), datetime.datetime(2020, 5, 16, 8, 6, 41, 738000), datetime.datetime(2020, 5, 16, 8, 6, 41, 964000), datetime.datetime(2020, 5, 16, 8, 6, 42, 253000), datetime.datetime(2020, 5, 16, 8, 6, 42, 347000), datetime.datetime(2020, 5, 16, 8, 6, 42, 585000), datetime.datetime(2020, 5, 16, 8, 6, 42, 814000), datetime.datetime(2020, 5, 16, 8, 6, 42, 966000), datetime.datetime(2020, 5, 16, 8, 6, 43, 158000), datetime.datetime(2020, 5, 16, 8, 6, 43, 380000), datetime.datetime(2020, 5, 16, 8, 6, 43, 641000), datetime.datetime(2020, 5, 16, 8, 6, 43, 815000), datetime.datetime(2020, 5, 16, 8, 6, 43, 937000), datetime.datetime(2020, 5, 16, 8, 6, 44, 187000), datetime.datetime(2020, 5, 16, 8, 6, 44, 369000), datetime.datetime(2020, 5, 16, 8, 6, 44, 539000), datetime.datetime(2020, 5, 16, 8, 6, 44, 768000), datetime.datetime(2020, 5, 16, 8, 6, 44, 934000), datetime.datetime(2020, 5, 16, 8, 6, 45, 208000), datetime.datetime(2020, 5, 16, 8, 6, 45, 354000), datetime.datetime(2020, 5, 16, 8, 6, 45, 544000), datetime.datetime(2020, 5, 16, 8, 6, 45, 736000), datetime.datetime(2020, 5, 16, 8, 6, 45, 970000), datetime.datetime(2020, 5, 16, 8, 6, 46, 142000), datetime.datetime(2020, 5, 16, 8, 6, 46, 389000), datetime.datetime(2020, 5, 16, 8, 6, 46, 600000), datetime.datetime(2020, 5, 16, 8, 6, 46, 785000), datetime.datetime(2020, 5, 16, 8, 6, 46, 965000), datetime.datetime(2020, 5, 16, 8, 6, 47, 176000), datetime.datetime(2020, 5, 16, 8, 6, 47, 363000), datetime.datetime(2020, 5, 16, 8, 6, 47, 640000), datetime.datetime(2020, 5, 16, 8, 6, 47, 760000), datetime.datetime(2020, 5, 16, 8, 6, 47, 960000), datetime.datetime(2020, 5, 16, 8, 6, 48, 168000), datetime.datetime(2020, 5, 16, 8, 6, 48, 353000), datetime.datetime(2020, 5, 16, 8, 6, 48, 563000), datetime.datetime(2020, 5, 16, 8, 6, 48, 779000), datetime.datetime(2020, 5, 16, 8, 6, 48, 960000), datetime.datetime(2020, 5, 16, 8, 6, 49, 157000), datetime.datetime(2020, 5, 16, 8, 6, 49, 512000), datetime.datetime(2020, 5, 16, 8, 6, 49, 582000), datetime.datetime(2020, 5, 16, 8, 6, 50, 26000), datetime.datetime(2020, 5, 16, 8, 6, 50, 103000), datetime.datetime(2020, 5, 16, 8, 6, 50, 173000), datetime.datetime(2020, 5, 16, 8, 6, 50, 367000), datetime.datetime(2020, 5, 16, 8, 6, 50, 573000), datetime.datetime(2020, 5, 16, 8, 6, 50, 769000), datetime.datetime(2020, 5, 16, 8, 6, 50, 981000), datetime.datetime(2020, 5, 16, 8, 6, 51, 197000), datetime.datetime(2020, 5, 16, 8, 6, 51, 381000), datetime.datetime(2020, 5, 16, 8, 6, 51, 558000), datetime.datetime(2020, 5, 16, 8, 6, 51, 773000), datetime.datetime(2020, 5, 16, 8, 6, 51, 988000), datetime.datetime(2020, 5, 16, 8, 6, 52, 407000), datetime.datetime(2020, 5, 16, 8, 6, 52, 460000), datetime.datetime(2020, 5, 16, 8, 6, 52, 575000), datetime.datetime(2020, 5, 16, 8, 6, 52, 951000), datetime.datetime(2020, 5, 16, 8, 6, 53, 15000), datetime.datetime(2020, 5, 16, 8, 6, 53, 201000), datetime.datetime(2020, 5, 16, 8, 6, 53, 532000), datetime.datetime(2020, 5, 16, 8, 6, 53, 604000), datetime.datetime(2020, 5, 16, 8, 6, 53, 812000), datetime.datetime(2020, 5, 16, 8, 6, 53, 980000), datetime.datetime(2020, 5, 16, 8, 6, 54, 222000), datetime.datetime(2020, 5, 16, 8, 6, 54, 399000), datetime.datetime(2020, 5, 16, 8, 6, 54, 646000), datetime.datetime(2020, 5, 16, 8, 6, 54, 784000), datetime.datetime(2020, 5, 16, 8, 6, 55, 19000), datetime.datetime(2020, 5, 16, 8, 6, 55, 217000), datetime.datetime(2020, 5, 16, 8, 6, 55, 416000), datetime.datetime(2020, 5, 16, 8, 6, 55, 597000), datetime.datetime(2020, 5, 16, 8, 6, 55, 795000), datetime.datetime(2020, 5, 16, 8, 6, 56, 68000), datetime.datetime(2020, 5, 16, 8, 6, 56, 221000), datetime.datetime(2020, 5, 16, 8, 6, 56, 453000), datetime.datetime(2020, 5, 16, 8, 6, 56, 730000), datetime.datetime(2020, 5, 16, 8, 6, 56, 835000), datetime.datetime(2020, 5, 16, 8, 6, 56, 996000), datetime.datetime(2020, 5, 16, 8, 6, 57, 273000), datetime.datetime(2020, 5, 16, 8, 6, 57, 405000), datetime.datetime(2020, 5, 16, 8, 6, 57, 615000), datetime.datetime(2020, 5, 16, 8, 6, 57, 823000), datetime.datetime(2020, 5, 16, 8, 6, 58, 41000), datetime.datetime(2020, 5, 16, 8, 6, 58, 202000), datetime.datetime(2020, 5, 16, 8, 6, 58, 440000), datetime.datetime(2020, 5, 16, 8, 6, 58, 602000), datetime.datetime(2020, 5, 16, 8, 6, 58, 841000), datetime.datetime(2020, 5, 16, 8, 6, 59, 4000), datetime.datetime(2020, 5, 16, 8, 6, 59, 275000), datetime.datetime(2020, 5, 16, 8, 6, 59, 533000), datetime.datetime(2020, 5, 16, 8, 6, 59, 617000), datetime.datetime(2020, 5, 16, 8, 6, 59, 824000), datetime.datetime(2020, 5, 16, 8, 7, 0, 60000), datetime.datetime(2020, 5, 16, 8, 7, 0, 238000), datetime.datetime(2020, 5, 16, 8, 7, 0, 447000), datetime.datetime(2020, 5, 16, 8, 7, 0, 623000), datetime.datetime(2020, 5, 16, 8, 7, 0, 818000), datetime.datetime(2020, 5, 16, 8, 7, 1, 12000), datetime.datetime(2020, 5, 16, 8, 7, 1, 277000), datetime.datetime(2020, 5, 16, 8, 7, 1, 444000), datetime.datetime(2020, 5, 16, 8, 7, 1, 613000), datetime.datetime(2020, 5, 16, 8, 7, 1, 823000), datetime.datetime(2020, 5, 16, 8, 7, 2, 96000), datetime.datetime(2020, 5, 16, 8, 7, 2, 230000), datetime.datetime(2020, 5, 16, 8, 7, 2, 482000), datetime.datetime(2020, 5, 16, 8, 7, 2, 731000), datetime.datetime(2020, 5, 16, 8, 7, 2, 843000), datetime.datetime(2020, 5, 16, 8, 7, 3, 29000), datetime.datetime(2020, 5, 16, 8, 7, 3, 261000), datetime.datetime(2020, 5, 16, 8, 7, 3, 432000), datetime.datetime(2020, 5, 16, 8, 7, 3, 623000), datetime.datetime(2020, 5, 16, 8, 7, 3, 835000), datetime.datetime(2020, 5, 16, 8, 7, 4, 29000), datetime.datetime(2020, 5, 16, 8, 7, 4, 255000), datetime.datetime(2020, 5, 16, 8, 7, 4, 467000), datetime.datetime(2020, 5, 16, 8, 7, 4, 635000), datetime.datetime(2020, 5, 16, 8, 7, 4, 847000), datetime.datetime(2020, 5, 16, 8, 7, 5, 67000), datetime.datetime(2020, 5, 16, 8, 7, 5, 276000), datetime.datetime(2020, 5, 16, 8, 7, 5, 444000), datetime.datetime(2020, 5, 16, 8, 7, 5, 662000), datetime.datetime(2020, 5, 16, 8, 7, 5, 864000), datetime.datetime(2020, 5, 16, 8, 7, 6, 51000), datetime.datetime(2020, 5, 16, 8, 7, 6, 270000), datetime.datetime(2020, 5, 16, 8, 7, 6, 443000), datetime.datetime(2020, 5, 16, 8, 7, 6, 658000), datetime.datetime(2020, 5, 16, 8, 7, 6, 888000), datetime.datetime(2020, 5, 16, 8, 7, 7, 124000), datetime.datetime(2020, 5, 16, 8, 7, 7, 247000), datetime.datetime(2020, 5, 16, 8, 7, 7, 467000), datetime.datetime(2020, 5, 16, 8, 7, 7, 650000), datetime.datetime(2020, 5, 16, 8, 7, 7, 880000), datetime.datetime(2020, 5, 16, 8, 7, 8, 178000), datetime.datetime(2020, 5, 16, 8, 7, 8, 483000), datetime.datetime(2020, 5, 16, 8, 7, 8, 660000), datetime.datetime(2020, 5, 16, 8, 7, 8, 692000), datetime.datetime(2020, 5, 16, 8, 7, 8, 855000), datetime.datetime(2020, 5, 16, 8, 7, 9, 53000), datetime.datetime(2020, 5, 16, 8, 7, 9, 285000), datetime.datetime(2020, 5, 16, 8, 7, 9, 452000), datetime.datetime(2020, 5, 16, 8, 7, 9, 677000), datetime.datetime(2020, 5, 16, 8, 7, 9, 900000), datetime.datetime(2020, 5, 16, 8, 7, 10, 76000), datetime.datetime(2020, 5, 16, 8, 7, 10, 270000), datetime.datetime(2020, 5, 16, 8, 7, 10, 503000), datetime.datetime(2020, 5, 16, 8, 7, 10, 658000), datetime.datetime(2020, 5, 16, 8, 7, 10, 891000), datetime.datetime(2020, 5, 16, 8, 7, 11, 70000), datetime.datetime(2020, 5, 16, 8, 7, 11, 297000), datetime.datetime(2020, 5, 16, 8, 7, 11, 468000), datetime.datetime(2020, 5, 16, 8, 7, 11, 669000), datetime.datetime(2020, 5, 16, 8, 7, 11, 875000), datetime.datetime(2020, 5, 16, 8, 7, 12, 68000), datetime.datetime(2020, 5, 16, 8, 7, 12, 299000), datetime.datetime(2020, 5, 16, 8, 7, 12, 484000), datetime.datetime(2020, 5, 16, 8, 7, 12, 678000), datetime.datetime(2020, 5, 16, 8, 7, 12, 875000), datetime.datetime(2020, 5, 16, 8, 7, 13, 90000), datetime.datetime(2020, 5, 16, 8, 7, 13, 289000), datetime.datetime(2020, 5, 16, 8, 7, 13, 501000), datetime.datetime(2020, 5, 16, 8, 7, 13, 680000), datetime.datetime(2020, 5, 16, 8, 7, 13, 898000), datetime.datetime(2020, 5, 16, 8, 7, 14, 121000), datetime.datetime(2020, 5, 16, 8, 7, 14, 291000), datetime.datetime(2020, 5, 16, 8, 7, 14, 504000), datetime.datetime(2020, 5, 16, 8, 7, 14, 678000), datetime.datetime(2020, 5, 16, 8, 7, 14, 922000), datetime.datetime(2020, 5, 16, 8, 7, 15, 104000), datetime.datetime(2020, 5, 16, 8, 7, 15, 304000), datetime.datetime(2020, 5, 16, 8, 7, 15, 721000), datetime.datetime(2020, 5, 16, 8, 7, 15, 848000), datetime.datetime(2020, 5, 16, 8, 7, 16, 260000), datetime.datetime(2020, 5, 16, 8, 7, 16, 287000), datetime.datetime(2020, 5, 16, 8, 7, 16, 312000), datetime.datetime(2020, 5, 16, 8, 7, 16, 490000), datetime.datetime(2020, 5, 16, 8, 7, 16, 714000), datetime.datetime(2020, 5, 16, 8, 7, 16, 901000), datetime.datetime(2020, 5, 16, 8, 7, 17, 160000), datetime.datetime(2020, 5, 16, 8, 7, 17, 400000), datetime.datetime(2020, 5, 16, 8, 7, 17, 525000), datetime.datetime(2020, 5, 16, 8, 7, 17, 717000), datetime.datetime(2020, 5, 16, 8, 7, 17, 908000), datetime.datetime(2020, 5, 16, 8, 7, 18, 123000), datetime.datetime(2020, 5, 16, 8, 7, 18, 318000), datetime.datetime(2020, 5, 16, 8, 7, 18, 555000), datetime.datetime(2020, 5, 16, 8, 7, 18, 836000), datetime.datetime(2020, 5, 16, 8, 7, 18, 932000), datetime.datetime(2020, 5, 16, 8, 7, 19, 142000), datetime.datetime(2020, 5, 16, 8, 7, 19, 363000), datetime.datetime(2020, 5, 16, 8, 7, 19, 513000), datetime.datetime(2020, 5, 16, 8, 7, 19, 736000), datetime.datetime(2020, 5, 16, 8, 7, 20, 150000), datetime.datetime(2020, 5, 16, 8, 7, 20, 215000), datetime.datetime(2020, 5, 16, 8, 7, 20, 322000), datetime.datetime(2020, 5, 16, 8, 7, 20, 641000), datetime.datetime(2020, 5, 16, 8, 7, 20, 786000), datetime.datetime(2020, 5, 16, 8, 7, 20, 942000), datetime.datetime(2020, 5, 16, 8, 7, 21, 226000), datetime.datetime(2020, 5, 16, 8, 7, 21, 369000), datetime.datetime(2020, 5, 16, 8, 7, 21, 551000), datetime.datetime(2020, 5, 16, 8, 7, 21, 731000), datetime.datetime(2020, 5, 16, 8, 7, 21, 942000), datetime.datetime(2020, 5, 16, 8, 7, 22, 133000), datetime.datetime(2020, 5, 16, 8, 7, 22, 376000), datetime.datetime(2020, 5, 16, 8, 7, 22, 537000), datetime.datetime(2020, 5, 16, 8, 7, 22, 718000), datetime.datetime(2020, 5, 16, 8, 7, 22, 952000), datetime.datetime(2020, 5, 16, 8, 7, 23, 131000), datetime.datetime(2020, 5, 16, 8, 7, 23, 359000), datetime.datetime(2020, 5, 16, 8, 7, 23, 551000), datetime.datetime(2020, 5, 16, 8, 7, 23, 740000), datetime.datetime(2020, 5, 16, 8, 7, 23, 936000), datetime.datetime(2020, 5, 16, 8, 7, 24, 127000), datetime.datetime(2020, 5, 16, 8, 7, 24, 377000), datetime.datetime(2020, 5, 16, 8, 7, 24, 549000), datetime.datetime(2020, 5, 16, 8, 7, 24, 761000), datetime.datetime(2020, 5, 16, 8, 7, 24, 991000), datetime.datetime(2020, 5, 16, 8, 7, 25, 179000), datetime.datetime(2020, 5, 16, 8, 7, 25, 370000), datetime.datetime(2020, 5, 16, 8, 7, 25, 632000), datetime.datetime(2020, 5, 16, 8, 7, 25, 748000), datetime.datetime(2020, 5, 16, 8, 7, 25, 970000), datetime.datetime(2020, 5, 16, 8, 7, 26, 187000), datetime.datetime(2020, 5, 16, 8, 7, 26, 423000), datetime.datetime(2020, 5, 16, 8, 7, 26, 549000), datetime.datetime(2020, 5, 16, 8, 7, 26, 764000), datetime.datetime(2020, 5, 16, 8, 7, 26, 951000), datetime.datetime(2020, 5, 16, 8, 7, 27, 144000), datetime.datetime(2020, 5, 16, 8, 7, 27, 372000), datetime.datetime(2020, 5, 16, 8, 7, 27, 556000), datetime.datetime(2020, 5, 16, 8, 7, 27, 778000), datetime.datetime(2020, 5, 16, 8, 7, 27, 999000), datetime.datetime(2020, 5, 16, 8, 7, 28, 311000), datetime.datetime(2020, 5, 16, 8, 7, 28, 587000), datetime.datetime(2020, 5, 16, 8, 7, 28, 666000), datetime.datetime(2020, 5, 16, 8, 7, 28, 885000), datetime.datetime(2020, 5, 16, 8, 7, 29, 46000), datetime.datetime(2020, 5, 16, 8, 7, 29, 188000), datetime.datetime(2020, 5, 16, 8, 7, 29, 369000), datetime.datetime(2020, 5, 16, 8, 7, 29, 579000), datetime.datetime(2020, 5, 16, 8, 7, 29, 774000), datetime.datetime(2020, 5, 16, 8, 7, 29, 995000), datetime.datetime(2020, 5, 16, 8, 7, 30, 166000), datetime.datetime(2020, 5, 16, 8, 7, 30, 381000), datetime.datetime(2020, 5, 16, 8, 7, 30, 577000), datetime.datetime(2020, 5, 16, 8, 7, 30, 754000), datetime.datetime(2020, 5, 16, 8, 7, 30, 991000), datetime.datetime(2020, 5, 16, 8, 7, 31, 221000), datetime.datetime(2020, 5, 16, 8, 7, 31, 405000), datetime.datetime(2020, 5, 16, 8, 7, 31, 576000), datetime.datetime(2020, 5, 16, 8, 7, 31, 784000), datetime.datetime(2020, 5, 16, 8, 7, 31, 985000), datetime.datetime(2020, 5, 16, 8, 7, 32, 168000), datetime.datetime(2020, 5, 16, 8, 7, 32, 381000), datetime.datetime(2020, 5, 16, 8, 7, 32, 598000), datetime.datetime(2020, 5, 16, 8, 7, 32, 763000), datetime.datetime(2020, 5, 16, 8, 7, 32, 981000), datetime.datetime(2020, 5, 16, 8, 7, 33, 196000), datetime.datetime(2020, 5, 16, 8, 7, 33, 398000), datetime.datetime(2020, 5, 16, 8, 7, 33, 586000), datetime.datetime(2020, 5, 16, 8, 7, 33, 775000), datetime.datetime(2020, 5, 16, 8, 7, 33, 985000), datetime.datetime(2020, 5, 16, 8, 7, 34, 202000), datetime.datetime(2020, 5, 16, 8, 7, 34, 413000), datetime.datetime(2020, 5, 16, 8, 7, 34, 591000), datetime.datetime(2020, 5, 16, 8, 7, 34, 777000), datetime.datetime(2020, 5, 16, 8, 7, 35, 10000), datetime.datetime(2020, 5, 16, 8, 7, 35, 180000), datetime.datetime(2020, 5, 16, 8, 7, 35, 404000), datetime.datetime(2020, 5, 16, 8, 7, 35, 604000), datetime.datetime(2020, 5, 16, 8, 7, 35, 780000), datetime.datetime(2020, 5, 16, 8, 7, 36, 2000), datetime.datetime(2020, 5, 16, 8, 7, 36, 182000), datetime.datetime(2020, 5, 16, 8, 7, 36, 407000), datetime.datetime(2020, 5, 16, 8, 7, 36, 614000), datetime.datetime(2020, 5, 16, 8, 7, 36, 783000), datetime.datetime(2020, 5, 16, 8, 7, 37, 45000), datetime.datetime(2020, 5, 16, 8, 7, 37, 196000), datetime.datetime(2020, 5, 16, 8, 7, 37, 429000), datetime.datetime(2020, 5, 16, 8, 7, 37, 619000), datetime.datetime(2020, 5, 16, 8, 7, 37, 833000), datetime.datetime(2020, 5, 16, 8, 7, 38, 36000), datetime.datetime(2020, 5, 16, 8, 7, 38, 199000), datetime.datetime(2020, 5, 16, 8, 7, 38, 416000), datetime.datetime(2020, 5, 16, 8, 7, 38, 608000), datetime.datetime(2020, 5, 16, 8, 7, 38, 818000), datetime.datetime(2020, 5, 16, 8, 7, 39, 30000), datetime.datetime(2020, 5, 16, 8, 7, 39, 222000), datetime.datetime(2020, 5, 16, 8, 7, 39, 450000), datetime.datetime(2020, 5, 16, 8, 7, 39, 612000), datetime.datetime(2020, 5, 16, 8, 7, 39, 830000), datetime.datetime(2020, 5, 16, 8, 7, 40, 36000), datetime.datetime(2020, 5, 16, 8, 7, 40, 203000), datetime.datetime(2020, 5, 16, 8, 7, 40, 422000), datetime.datetime(2020, 5, 16, 8, 7, 40, 616000), datetime.datetime(2020, 5, 16, 8, 7, 40, 825000), datetime.datetime(2020, 5, 16, 8, 7, 41, 21000), datetime.datetime(2020, 5, 16, 8, 7, 41, 217000), datetime.datetime(2020, 5, 16, 8, 7, 41, 442000), datetime.datetime(2020, 5, 16, 8, 7, 41, 639000), datetime.datetime(2020, 5, 16, 8, 7, 41, 820000), datetime.datetime(2020, 5, 16, 8, 7, 42, 47000), datetime.datetime(2020, 5, 16, 8, 7, 42, 221000), datetime.datetime(2020, 5, 16, 8, 7, 42, 452000), datetime.datetime(2020, 5, 16, 8, 7, 42, 639000), datetime.datetime(2020, 5, 16, 8, 7, 42, 838000), datetime.datetime(2020, 5, 16, 8, 7, 43, 45000), datetime.datetime(2020, 5, 16, 8, 7, 43, 249000), datetime.datetime(2020, 5, 16, 8, 7, 43, 436000), datetime.datetime(2020, 5, 16, 8, 7, 43, 641000), datetime.datetime(2020, 5, 16, 8, 7, 43, 847000), datetime.datetime(2020, 5, 16, 8, 7, 44, 61000), datetime.datetime(2020, 5, 16, 8, 7, 44, 234000), datetime.datetime(2020, 5, 16, 8, 7, 44, 440000), datetime.datetime(2020, 5, 16, 8, 7, 44, 682000), datetime.datetime(2020, 5, 16, 8, 7, 44, 902000), datetime.datetime(2020, 5, 16, 8, 7, 45, 50000), datetime.datetime(2020, 5, 16, 8, 7, 46, 54000)],
# datetime.datetime(2021, 1, 1, 0, 0))
def sequence_find_val(arr, val, sorting=True):
""" Ф-ция возвращающая значение из массива, ближайшее к переданному"""
if sorting:
arr = sorted(arr)
idx = sequence_find_idx(arr, val)
if idx is None:
return None
else:
return arr[idx]
def dichotomy_find_idx(arr, val):
""" Ф-ция для поиска ближайшего большего значения в массиве и возвращяющая его индекс
Поиск ведется методом дихотомии, т.е. деления массива пополам и поиска в необходимой части
Массив обязательно должен быть передан отсортированным.
Если он не отсортирован, воспользуйтесь ф-цией sorted(arr) перед передачей массива в ф-цию
"""
if arr is None or len(arr) == 0:
return None
idx_min = 0
idx_max = len(arr) - 1
step = 1
while True:
if idx_max == idx_min:
print('({}, {}) return:{} val:{} step:{} [max=min]'.format(arr, val, idx_max, arr[idx_max], step))
return idx_max
else:
idx = (idx_max - idx_min) // 2 + idx_min
if arr[idx] == val:
print('({}, {}) return:{} val:{} step:{}'.format(arr, val, idx, arr[idx], step))
return idx
elif arr[idx] > val:
idx_max = idx
else:
idx_min = idx + 1
step += 1
def dichotomy_find_val(arr, val, sorting=True):
""" Ф-ция возвращающая значение из массива, ближайшее к переданному"""
if sorting:
arr = sorted(arr)
idx = dichotomy_find_idx(arr, val)
if idx is None:
return None
else:
return arr[idx]
def sequence_find_idx_test():
from datetime import datetime
assert sequence_find_idx([], 0) is None
assert sequence_find_idx([5.3], 3) == 0
assert sequence_find_idx([5.3], 10) == 0
assert sequence_find_idx([5.3], 5.3) == 0
assert sequence_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18, 20], 4.2) == 3
assert sequence_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18, 20], 11) == 5
assert sequence_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18, 20], 8.3) == 5
assert sequence_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18, 20], 0) == 0
assert sequence_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18, 20], 20) == 9
assert sequence_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18], 17.9) == 8
assert sequence_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18], -10) == 0
assert sequence_find_idx([datetime(2020, 5, 25), datetime(2020, 6, 23), datetime(2020, 6, 26)],
datetime(2020, 5, 25)) == 0
assert sequence_find_idx([datetime(2020, 5, 25), datetime(2020, 6, 23), datetime(2020, 6, 26)],
datetime(2020, 6, 25)) == 2
assert sequence_find_idx([datetime(2020, 5, 25), datetime(2020, 6, 23), datetime(2020, 6, 26)],
datetime(2020, 7, 28)) == 2
assert sequence_find_idx([datetime(2020, 5, 25), datetime(2020, 6, 23), datetime(2020, 6, 26)],
datetime(2020, 1, 1)) == 0
assert sequence_find_idx([datetime(2020, 5, 25), datetime(2020, 6, 23, 10, 45), datetime(2020, 6, 26)],
datetime(2020, 6, 23)) == 1
def dichotomy_find_idx_test():
from datetime import datetime
assert dichotomy_find_idx([], 0) is None
assert dichotomy_find_idx([5.3], 3) == 0
assert dichotomy_find_idx([5.3], 10) == 0
assert dichotomy_find_idx([5.3], 5.3) == 0
assert dichotomy_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18, 20], 4.2) == 3
assert dichotomy_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18, 20], 11) == 5
assert dichotomy_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18, 20], 8.3) == 5
assert dichotomy_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18, 20], 0) == 0
assert dichotomy_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18, 20], 20) == 9
assert dichotomy_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18], 17.9) == 8
assert dichotomy_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18], -10) == 0
assert dichotomy_find_idx([datetime(2020, 5, 25), datetime(2020, 6, 23), datetime(2020, 6, 26)],
datetime(2020, 5, 25)) == 0
assert dichotomy_find_idx([datetime(2020, 5, 25), datetime(2020, 6, 23), datetime(2020, 6, 26)],
datetime(2020, 6, 25)) == 2
assert dichotomy_find_idx([datetime(2020, 5, 25), datetime(2020, 6, 23), datetime(2020, 6, 26)],
datetime(2020, 7, 28)) == 2
assert dichotomy_find_idx([datetime(2020, 5, 25), datetime(2020, 6, 23), datetime(2020, 6, 26)],
datetime(2020, 1, 1)) == 0
assert dichotomy_find_idx([datetime(2020, 5, 25), datetime(2020, 6, 23, 10, 45), datetime(2020, 6, 26)],
datetime(2020, 6, 23)) == 1
def main():
from datetime import datetime
# print(sequence_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18, 20], 11.2))
# print(sequence_find_idx([1, 1.1, 2.5, 6, 8.2, 11, 12.3, 16.8, 18, 20], 6))
a = dichotomy_find_idx([datetime(2020, 5, 25), datetime(2020, 6, 23), datetime(2020, 5, 26)], datetime(2020, 5, 25))
dichotomy_find_idx_test()
# sequence_find_idx_test()
print('ok')
if __name__ == '__main__':
main()
| 653.037037
| 82,095
| 0.65228
| 15,837
| 88,160
| 3.623729
| 0.060554
| 0.354214
| 0.377163
| 0.603774
| 0.958337
| 0.957448
| 0.956455
| 0.855774
| 0.043144
| 0.043144
| 0
| 0.378238
| 0.14966
| 88,160
| 134
| 82,096
| 657.910448
| 0.387296
| 0.942162
| 0
| 0.434343
| 0
| 0
| 0.025749
| 0
| 0
| 0
| 0
| 0
| 0.323232
| 1
| 0.070707
| false
| 0
| 0.030303
| 0
| 0.20202
| 0.040404
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
2ac17d9f8f81d1a01a98851cbc2a77161f6e628b
| 66,589
|
py
|
Python
|
unittest_mocks/data.py
|
rolandovillca/python_introduction_basic
|
d1333a832a9e2b103e128a9dfc0c0da0952c267f
|
[
"MIT"
] | null | null | null |
unittest_mocks/data.py
|
rolandovillca/python_introduction_basic
|
d1333a832a9e2b103e128a9dfc0c0da0952c267f
|
[
"MIT"
] | null | null | null |
unittest_mocks/data.py
|
rolandovillca/python_introduction_basic
|
d1333a832a9e2b103e128a9dfc0c0da0952c267f
|
[
"MIT"
] | null | null | null |
list_users = [
{
"id":1,
"first_name":"George",
"last_name":"Bluth",
"avatar":"https://s3.amazonaws.com/uifaces/faces/twitter/calebogden/128.jpg"
},
{
"id":2,
"first_name":"Janet",
"last_name":"Weaver",
"avatar":"https://s3.amazonaws.com/uifaces/faces/twitter/josephstein/128.jpg"
},
{
"id":3,
"first_name":"Emma",
"last_name":"Wong",
"avatar":"https://s3.amazonaws.com/uifaces/faces/twitter/olegpogodaev/128.jpg"
}
]
list_employees = [{u'employee_age': u'1', u'profile_image': u'', u'id': u'1', u'employee_salary': u'1', u'employee_name': u'testing'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'2', u'employee_salary': u'0', u'employee_name': u'Wonsu Dupcia'}, {u'employee_age': u'30', u'profile_image': u'', u'id': u'3', u'employee_salary': u'2398580', u'employee_name': u'Ewa Czika'}, {u'employee_age': u'85', u'profile_image': u'', u'id': u'4', u'employee_salary': u'0', u'employee_name': u'\u0141ukasz Trolololo'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'5', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'45', u'profile_image': u'', u'id': u'6', u'employee_salary': u'4533', u'employee_name': u'Sweta Timari'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'7', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'8', u'employee_salary': u'100', u'employee_name': u'Sisko'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'9', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'10', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'11', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'12', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'13', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'14', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'15', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'32', u'profile_image': u'', u'id': u'16', u'employee_salary': u'25000', u'employee_name': u'Jamie'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'17', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'18', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'41', u'profile_image': u'', u'id': u'19', u'employee_salary': u'132000', u'employee_name': u'Bradley Greer'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'20', u'employee_salary': u'0', u'employee_name': u'Lovely Richy'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'21', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'22', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'23', u'employee_salary': u'0', u'employee_name': u'Amr'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'24', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'25', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'46', u'profile_image': u'', u'id': u'26', u'employee_salary': u'925751', u'employee_name': u'AJIT'}, {u'employee_age': u'28', u'profile_image': u'', u'id': u'27', u'employee_salary': u'357650', u'employee_name': u'Lucy Liuys'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'28', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'66', u'profile_image': u'', u'id': u'29', u'employee_salary': u'850000', u'employee_name': u'Fiona Green'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'30', u'employee_salary': u'45000', u'employee_name': u'Mr kahan'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'31', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'32', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'27', u'profile_image': u'', u'id': u'33', u'employee_salary': u'145000', u'employee_name': u'Prescott Bartlett'}, {u'employee_age': u'22', u'profile_image': u'', u'id': u'34', u'employee_salary': u'235500', u'employee_name': u'Gavin Cortez'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'35', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'47', u'profile_image': u'', u'id': u'36', u'employee_salary': u'85675', u'employee_name': u'Unity Butler'}, {u'employee_age': u'51', u'profile_image': u'', u'id': u'37', u'employee_salary': u'164500', u'employee_name': u'Howard Hatfield'}, {u'employee_age': u'41', u'profile_image': u'', u'id': u'38', u'employee_salary': u'109850', u'employee_name': u'Hope Fuentes'}, {u'employee_age': u'62', u'profile_image': u'', u'id': u'39', u'employee_salary': u'452500', u'employee_name': u'Vivian Harrell'}, {u'employee_age': u'37', u'profile_image': u'', u'id': u'40', u'employee_salary': u'136200', u'employee_name': u'Timothy Mooney'}, {u'employee_age': u'65', u'profile_image': u'', u'id': u'41', u'employee_salary': u'645750', u'employee_name': u'Jackson Bradshaw'}, {u'employee_age': u'64', u'profile_image': u'', u'id': u'42', u'employee_salary': u'234500', u'employee_name': u'Olivia Liang'}, {u'employee_age': u'38', u'profile_image': u'', u'id': u'43', u'employee_salary': u'163500', u'employee_name': u'Bruno Nash'}, {u'employee_age': u'37', u'profile_image': u'', u'id': u'44', u'employee_salary': u'139575', u'employee_name': u'Sakura Yamamoto'}, {u'employee_age': u'61', u'profile_image': u'', u'id': u'45', u'employee_salary': u'98540', u'employee_name': u'Thor Walton'}, {u'employee_age': u'47', u'profile_image': u'', u'id': u'46', u'employee_salary': u'87500', u'employee_name': u'Finn Camacho'}, {u'employee_age': u'64', u'profile_image': u'', u'id': u'47', u'employee_salary': u'138575', u'employee_name': u'Serge Baldwin'}, {u'employee_age': u'63', u'profile_image': u'', u'id': u'48', u'employee_salary': u'125250', u'employee_name': u'Zenaida Frank'}, {u'employee_age': u'56', u'profile_image': u'', u'id': u'49', u'employee_salary': u'115000', u'employee_name': u'Zorita Serrano'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'50', u'employee_salary': u'75650', u'employee_name': u'Jennifer Acosta'}, {u'employee_age': u'46678888', u'profile_image': u'', u'id': u'51', u'employee_salary': u'145600', u'employee_name': u'Cara Stevens'}, {u'employee_age': u'47', u'profile_image': u'', u'id': u'52', u'employee_salary': u'356250', u'employee_name': u'Hermione Butler'}, {u'employee_age': u'21', u'profile_image': u'', u'id': u'53', u'employee_salary': u'103500', u'employee_name': u'Lael Greer'}, {u'employee_age': u'30', u'profile_image': u'', u'id': u'54', u'employee_salary': u'86500', u'employee_name': u'Jonas Alexander'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'55', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'56', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'27', u'profile_image': u'', u'id': u'57', u'employee_salary': u'112000', u'employee_name': u'Donna Snider'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'113', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'2', u'profile_image': u'', u'id': u'114', u'employee_salary': u'232312', u'employee_name': u'fdffds'}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'115', u'employee_salary': u'34258', u'employee_name': u'towmy joelye'}, {u'employee_age': u'45', u'profile_image': u'', u'id': u'116', u'employee_salary': u'672548', u'employee_name': u'Satya SBG'}, {u'employee_age': u'12', u'profile_image': u'', u'id': u'117', u'employee_salary': u'125441', u'employee_name': u'erRoje Royce'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'118', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'119', u'employee_salary': u'230251', u'employee_name': u'SD'}, {u'employee_age': u'43', u'profile_image': u'', u'id': u'120', u'employee_salary': u'342548', u'employee_name': u'Dasss Dalr'}, {u'employee_age': u'28', u'profile_image': u'', u'id': u'121', u'employee_salary': u'34000', u'employee_name': u'satya'}, {u'employee_age': u'22', u'profile_image': u'', u'id': u'122', u'employee_salary': u'230254', u'employee_name': u'Shva Gabriels'}, {u'employee_age': u'125', u'profile_image': u'', u'id': u'123', u'employee_salary': u'58459685', u'employee_name': u'oil reserve corporation dubal'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'124', u'employee_salary': u'1e39', u'employee_name': u'd'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'125', u'employee_salary': u'3', u'employee_name': u'B55'}, {u'employee_age': u'333333', u'profile_image': u'', u'id': u'126', u'employee_salary': u'2333', u'employee_name': u'Hello'}, {u'employee_age': u'333333', u'profile_image': u'', u'id': u'127', u'employee_salary': u'2333', u'employee_name': u'Hello1'}, {u'employee_age': u'2222', u'profile_image': u'', u'id': u'128', u'employee_salary': u'222', u'employee_name': u'Hello234'}, {u'employee_age': u'34534534', u'profile_image': u'', u'id': u'129', u'employee_salary': u'435345', u'employee_name': u'Hello3456'}, {u'employee_age': u'34343', u'profile_image': u'', u'id': u'130', u'employee_salary': u'343434', u'employee_name': u'Hello334334'}, {u'employee_age': u'3535', u'profile_image': u'', u'id': u'131', u'employee_salary': u'444444', u'employee_name': u'ttttttt4444'}, {u'employee_age': u'22', u'profile_image': u'', u'id': u'132', u'employee_salary': u'22', u'employee_name': u'testparvez1'}, {u'employee_age': u'22', u'profile_image': u'', u'id': u'133', u'employee_salary': u'22', u'employee_name': u'testparvez12'}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'134', u'employee_salary': u'33', u'employee_name': u'test'}, {u'employee_age': u'11', u'profile_image': u'', u'id': u'135', u'employee_salary': u'24', u'employee_name': u'sasa'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'136', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'137', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'138', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'23344', u'profile_image': u'', u'id': u'139', u'employee_salary': u'12', u'employee_name': u'ffffff'}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'140', u'employee_salary': u'100000', u'employee_name': u'menaka'}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'141', u'employee_salary': u'100000', u'employee_name': u'menaka'}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'142', u'employee_salary': u'100000', u'employee_name': u'menaka'}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'143', u'employee_salary': u'100000', u'employee_name': u'menaka'}, {u'employee_age': u'29', u'profile_image': u'', u'id': u'144', u'employee_salary': u'5000', u'employee_name': u'NEWONE'}, {u'employee_age': u'27', u'profile_image': u'', u'id': u'145', u'employee_salary': u'15000', u'employee_name': u'NEWONE'}, {u'employee_age': u'66', u'profile_image': u'', u'id': u'146', u'employee_salary': u'22222000', u'employee_name': u'NEWONE'}, {u'employee_age': u'28', u'profile_image': u'', u'id': u'147', u'employee_salary': u'555', u'employee_name': u'NEWONE'}, {u'employee_age': u'28', u'profile_image': u'', u'id': u'148', u'employee_salary': u'555', u'employee_name': u'tmp EMP'}, {u'employee_age': u'555', u'profile_image': u'', u'id': u'149', u'employee_salary': u'4555', u'employee_name': u'asdsadfsa'}, {u'employee_age': u'555', u'profile_image': u'', u'id': u'150', u'employee_salary': u'4555', u'employee_name': u'asdsadfsa'}, {u'employee_age': u'36', u'profile_image': u'', u'id': u'151', u'employee_salary': u'12354567', u'employee_name': u'abc'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'152', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'153', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'154', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'155', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'156', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'157', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'158', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'159', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'160', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'161', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'162', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'163', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'164', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'165', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'166', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'167', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'168', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'169', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'170', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'171', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'172', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'173', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'174', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'175', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'176', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'177', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'178', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'179', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'180', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'181', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'182', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'183', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'184', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'185', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'186', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'187', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'188', u'employee_salary': u'1234355678', u'employee_name': u'aaaaa'}, {u'employee_age': u'24', u'profile_image': u'', u'id': u'189', u'employee_salary': u'12354567', u'employee_name': u'aaaaa'}, {u'employee_age': u'24', u'profile_image': u'', u'id': u'190', u'employee_salary': u'12354567', u'employee_name': u'aaaaa'}, {u'employee_age': u'24', u'profile_image': u'', u'id': u'191', u'employee_salary': u'12354567', u'employee_name': u'abcdefg'}, {u'employee_age': u'56', u'profile_image': u'', u'id': u'192', u'employee_salary': u'12354567', u'employee_name': u'lmnop'}, {u'employee_age': u'24', u'profile_image': u'', u'id': u'193', u'employee_salary': u'12354567', u'employee_name': u'aaaaa'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'194', u'employee_salary': u'4545677', u'employee_name': u'john'}, {u'employee_age': u'24', u'profile_image': u'', u'id': u'195', u'employee_salary': u'12354567', u'employee_name': u'J2EE'}, {u'employee_age': u'78', u'profile_image': u'', u'id': u'196', u'employee_salary': u'12354567', u'employee_name': u'mary'}, {u'employee_age': u'98', u'profile_image': u'', u'id': u'197', u'employee_salary': u'456', u'employee_name': u'Anna'}, {u'employee_age': u'7', u'profile_image': u'', u'id': u'198', u'employee_salary': u'8980', u'employee_name': u'komal'}, {u'employee_age': u'90', u'profile_image': u'', u'id': u'199', u'employee_salary': u'90000', u'employee_name': u'sneha'}, {u'employee_age': u'55', u'profile_image': u'', u'id': u'200', u'employee_salary': u'9', u'employee_name': u'sneha'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'201', u'employee_salary': u'925756789', u'employee_name': u'Gavin Joyce'}, {u'employee_age': u'66', u'profile_image': u'', u'id': u'202', u'employee_salary': u'9000000', u'employee_name': u'sneha14'}, {u'employee_age': u'100', u'profile_image': u'', u'id': u'203', u'employee_salary': u'925756789', u'employee_name': u'Java'}, {u'employee_age': u'24', u'profile_image': u'', u'id': u'204', u'employee_salary': u'9000000', u'employee_name': u'Java'}, {u'employee_age': u'78', u'profile_image': u'', u'id': u'205', u'employee_salary': u'12354567', u'employee_name': u'sneha'}, {u'employee_age': u'100', u'profile_image': u'', u'id': u'206', u'employee_salary': u'12354567', u'employee_name': u'Java'}, {u'employee_age': u'100', u'profile_image': u'', u'id': u'207', u'employee_salary': u'12354567', u'employee_name': u'Jason Roy'}, {u'employee_age': u'54', u'profile_image': u'', u'id': u'208', u'employee_salary': u'12354567', u'employee_name': u'Morgan'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'209', u'employee_salary': u'680000', u'employee_name': u'Alex'}, {u'employee_age': u'445', u'profile_image': u'', u'id': u'210', u'employee_salary': u'680000', u'employee_name': u'Alex12'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'211', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'78', u'profile_image': u'', u'id': u'212', u'employee_salary': u'12354567', u'employee_name': u'sneha154'}, {u'employee_age': u'78', u'profile_image': u'', u'id': u'213', u'employee_salary': u'12354567', u'employee_name': u'sneha154666'}, {u'employee_age': u'78', u'profile_image': u'', u'id': u'214', u'employee_salary': u'12354567', u'employee_name': u'sneha154666000'}, {u'employee_age': u'78', u'profile_image': u'', u'id': u'215', u'employee_salary': u'12354567', u'employee_name': u'sneha15466600012'}, {u'employee_age': u'789', u'profile_image': u'', u'id': u'216', u'employee_salary': u'12354567', u'employee_name': u'sneha15466600012'}, {u'employee_age': u'7890', u'profile_image': u'', u'id': u'217', u'employee_salary': u'12354567', u'employee_name': u'sneha15466600012'}, {u'employee_age': u'78', u'profile_image': u'', u'id': u'218', u'employee_salary': u'12354567', u'employee_name': u'sneha15466600012'}, {u'employee_age': u'90', u'profile_image': u'', u'id': u'219', u'employee_salary': u'90000', u'employee_name': u'gautami'}, {u'employee_age': u'78', u'profile_image': u'', u'id': u'220', u'employee_salary': u'9000000', u'employee_name': u'Davidson12'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'221', u'employee_salary': u'900000', u'employee_name': u'laxman'}, {u'employee_age': u'30', u'profile_image': u'', u'id': u'222', u'employee_salary': u'110000', u'employee_name': u'batman'}, {u'employee_age': u'90', u'profile_image': u'', u'id': u'223', u'employee_salary': u'70000', u'employee_name': u'komal'}, {u'employee_age': u'90', u'profile_image': u'', u'id': u'224', u'employee_salary': u'100000', u'employee_name': u'shruti'}, {u'employee_age': u'90', u'profile_image': u'', u'id': u'225', u'employee_salary': u'100000', u'employee_name': u'shrutighugri31'}, {u'employee_age': u'26', u'profile_image': u'', u'id': u'226', u'employee_salary': u'120000', u'employee_name': u'Richard'}, {u'employee_age': u'90', u'profile_image': u'', u'id': u'227', u'employee_salary': u'8000', u'employee_name': u'snehal'}, {u'employee_age': u'90', u'profile_image': u'', u'id': u'228', u'employee_salary': u'8000', u'employee_name': u'snehal bogam'}, {u'employee_age': u'10', u'profile_image': u'', u'id': u'229', u'employee_salary': u'30000000000', u'employee_name': u'komal20'}, {u'employee_age': u'78', u'profile_image': u'', u'id': u'230', u'employee_salary': u'9000000', u'employee_name': u'sneha'}, {u'employee_age': u'24', u'profile_image': u'', u'id': u'231', u'employee_salary': u'12354567', u'employee_name': u'Akshay'}, {u'employee_age': u'24', u'profile_image': u'', u'id': u'232', u'employee_salary': u'12354567', u'employee_name': u'J2EE'}, {u'employee_age': u'100', u'profile_image': u'', u'id': u'233', u'employee_salary': u'9', u'employee_name': u'Akshay'}, {u'employee_age': u'24', u'profile_image': u'', u'id': u'234', u'employee_salary': u'12354567', u'employee_name': u'Akshay'}, {u'employee_age': u'66', u'profile_image': u'', u'id': u'235', u'employee_salary': u'12354567', u'employee_name': u'Akshay'}, {u'employee_age': u'45', u'profile_image': u'', u'id': u'236', u'employee_salary': u'0', u'employee_name': u'sds'}, {u'employee_age': u'45000', u'profile_image': u'', u'id': u'237', u'employee_salary': u'45000', u'employee_name': u'Jagdish'}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'238', u'employee_salary': u'900000', u'employee_name': u'Jagdish'}, {u'employee_age': u'55', u'profile_image': u'', u'id': u'239', u'employee_salary': u'45000', u'employee_name': u'asadsas'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'240', u'employee_salary': u'50000', u'employee_name': u'sd'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'241', u'employee_salary': u'45000', u'employee_name': u'Jagdish'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'242', u'employee_salary': u'45000', u'employee_name': u'Tushar'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'243', u'employee_salary': u'40000', u'employee_name': u'Sachin'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'244', u'employee_salary': u'4000000000000', u'employee_name': u'Sachin'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'245', u'employee_salary': u'327900', u'employee_name': u'Rhona Davidson20'}, {u'employee_age': u'26', u'profile_image': u'', u'id': u'246', u'employee_salary': u'800000000000', u'employee_name': u'Rhona Davidson Jagdish'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'247', u'employee_salary': u'0', u'employee_name': u'adssd'}, {u'employee_age': u'60', u'profile_image': u'', u'id': u'248', u'employee_salary': u'45000', u'employee_name': u'sdsd'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'249', u'employee_salary': u'0', u'employee_name': u'Lucy'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'250', u'employee_salary': u'45000000', u'employee_name': u'Jagdish'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'251', u'employee_salary': u'50000', u'employee_name': u'asda'}, {u'employee_age': u'26', u'profile_image': u'', u'id': u'252', u'employee_salary': u'80000', u'employee_name': u'Rhona Davidson'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'253', u'employee_salary': u'50000', u'employee_name': u'asa'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'254', u'employee_salary': u'50000', u'employee_name': u'asda'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'255', u'employee_salary': u'50000', u'employee_name': u'asdaasasasa'}, {u'employee_age': u'12', u'profile_image': u'', u'id': u'256', u'employee_salary': u'0', u'employee_name': u'asas'}, {u'employee_age': u'748', u'profile_image': u'', u'id': u'257', u'employee_salary': u'0', u'employee_name': u'asa'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'258', u'employee_salary': u'45000', u'employee_name': u'asasa'}, {u'employee_age': u'26', u'profile_image': u'', u'id': u'259', u'employee_salary': u'80000', u'employee_name': u'Rhona Davidson asas'}, {u'employee_age': u'33', u'profile_image': u'', u'id': u'260', u'employee_salary': u'23', u'employee_name': u'asas'}, {u'employee_age': u'555', u'profile_image': u'', u'id': u'261', u'employee_salary': u'45', u'employee_name': u'asas'}, {u'employee_age': u'26', u'profile_image': u'', u'id': u'262', u'employee_salary': u'80000', u'employee_name': u'Rhona Davidson'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'263', u'employee_salary': u'0', u'employee_name': u'asasa'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'264', u'employee_salary': u'0', u'employee_name': u'asasasa'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'265', u'employee_salary': u'50000', u'employee_name': u'asdaasas'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'266', u'employee_salary': u'50000', u'employee_name': u'asdaasasasas'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'267', u'employee_salary': u'0', u'employee_name': u'asas'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'268', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'269', u'employee_salary': u'0', u'employee_name': u'asa'}, {u'employee_age': u'225', u'profile_image': u'', u'id': u'270', u'employee_salary': u'1222', u'employee_name': u'asasas'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'271', u'employee_salary': u'30000', u'employee_name': u'snehaas'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'272', u'employee_salary': u'30000', u'employee_name': u'snehaas'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'273', u'employee_salary': u'327900', u'employee_name': u'Rhona Davidson20'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'274', u'employee_salary': u'327900', u'employee_name': u'Rhona Davidson20'}, {u'employee_age': u'26', u'profile_image': u'', u'id': u'275', u'employee_salary': u'80000', u'employee_name': u'Rhona Davidson'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'276', u'employee_salary': u'0', u'employee_name': u'sds'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'277', u'employee_salary': u'0', u'employee_name': u'sds'}, {u'employee_age': u'5454', u'profile_image': u'', u'id': u'278', u'employee_salary': u'54845', u'employee_name': u'sds'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'279', u'employee_salary': u'327900', u'employee_name': u'Rhona Davidson20'}, {u'employee_age': u'26', u'profile_image': u'', u'id': u'280', u'employee_salary': u'80000', u'employee_name': u'Rhona Davidson'}, {u'employee_age': u'999', u'profile_image': u'', u'id': u'281', u'employee_salary': u'89999', u'employee_name': u'sdsd'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'282', u'employee_salary': u'50000', u'employee_name': u'asdavdff'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'283', u'employee_salary': u'327900', u'employee_name': u'Rhona Davidson20'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'284', u'employee_salary': u'327900', u'employee_name': u'Rhona Davidson20'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'285', u'employee_salary': u'327900', u'employee_name': u'Rhona Davidson20'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'286', u'employee_salary': u'327900', u'employee_name': u'Rhona Davidson20asas'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'287', u'employee_salary': u'327900', u'employee_name': u'Rhona Davidson20asa'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'288', u'employee_salary': u'30000', u'employee_name': u'sneha'}, {u'employee_age': u'66', u'profile_image': u'', u'id': u'289', u'employee_salary': u'880600', u'employee_name': u'Charde Marshall'}, {u'employee_age': u'26', u'profile_image': u'', u'id': u'290', u'employee_salary': u'80000', u'employee_name': u'Rhona Davidson'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'291', u'employee_salary': u'327900', u'employee_name': u'Rhona Davidson20'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'292', u'employee_salary': u'50000', u'employee_name': u'asda'}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'293', u'employee_salary': u'0', u'employee_name': u'as'}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'294', u'employee_salary': u'0', u'employee_name': u'sdsd'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'295', u'employee_salary': u'50000', u'employee_name': u'sd'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'296', u'employee_salary': u'50000', u'employee_name': u'asda'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'297', u'employee_salary': u'50000', u'employee_name': u'asdaasas'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'298', u'employee_salary': u'327900', u'employee_name': u'Rhona Davidson20asas'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'299', u'employee_salary': u'30000', u'employee_name': u'sneha'}, {u'employee_age': u'202', u'profile_image': u'', u'id': u'300', u'employee_salary': u'0', u'employee_name': u'asa'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'301', u'employee_salary': u'205500', u'employee_name': u'Colleen Hurstasdsd'}, {u'employee_age': u'2', u'profile_image': u'', u'id': u'302', u'employee_salary': u'50000', u'employee_name': u'asas'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'303', u'employee_salary': u'455555', u'employee_name': u'sds'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'304', u'employee_salary': u'327900', u'employee_name': u'Rhona Davidson20asasa'}, {u'employee_age': u'66', u'profile_image': u'', u'id': u'305', u'employee_salary': u'198500', u'employee_name': u'Michael Silvaasas'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'306', u'employee_salary': u'45000', u'employee_name': u'sdsd'}, {u'employee_age': u'44', u'profile_image': u'', u'id': u'307', u'employee_salary': u'327900', u'employee_name': u'Rhona Davidson2000000'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'308', u'employee_salary': u'0', u'employee_name': u'asa'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'309', u'employee_salary': u'50000', u'employee_name': u'asa'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'310', u'employee_salary': u'15000', u'employee_name': u'asaasas jagdish'}, {u'employee_age': u'21', u'profile_image': u'', u'id': u'311', u'employee_salary': u'250000', u'employee_name': u'Jagdish Patil'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'312', u'employee_salary': u'25000', u'employee_name': u'Sachin Jadhav'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'313', u'employee_salary': u'250000', u'employee_name': u'Jagdish Patil'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'314', u'employee_salary': u'25000', u'employee_name': u'Jagdish'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'315', u'employee_salary': u'25000', u'employee_name': u'Employee '}, {u'employee_age': u'89', u'profile_image': u'', u'id': u'316', u'employee_salary': u'90000', u'employee_name': u'komal01'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'317', u'employee_salary': u'25000', u'employee_name': u'Employee'}, {u'employee_age': u'55', u'profile_image': u'', u'id': u'318', u'employee_salary': u'4', u'employee_name': u'as'}, {u'employee_age': u'45', u'profile_image': u'', u'id': u'319', u'employee_salary': u'45000', u'employee_name': u'Jagidh'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'320', u'employee_salary': u'0', u'employee_name': u'Jagdish Patil 2'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'321', u'employee_salary': u'50000', u'employee_name': u'Jagdish Patil 0'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'322', u'employee_salary': u'0', u'employee_name': u'Jagdish'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'323', u'employee_salary': u'0', u'employee_name': u'Jagdish'}, {u'employee_age': u'45', u'profile_image': u'', u'id': u'324', u'employee_salary': u'45000', u'employee_name': u'Tushar'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'325', u'employee_salary': u'0', u'employee_name': u'Akshay'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'326', u'employee_salary': u'45000', u'employee_name': u'Akshay'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'327', u'employee_salary': u'0', u'employee_name': u'Jagdish'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'328', u'employee_salary': u'500000', u'employee_name': u'Jagdish Patil'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'329', u'employee_salary': u'145600', u'employee_name': u'Cara Stevens'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'330', u'employee_salary': u'145000', u'employee_name': u'Jagdish Patil '}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'331', u'employee_salary': u'45000', u'employee_name': u'Tushar khode'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'332', u'employee_salary': u'25000', u'employee_name': u'Akshay'}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'333', u'employee_salary': u'45000', u'employee_name': u'Jagdish'}, {u'employee_age': u'30', u'profile_image': u'', u'id': u'334', u'employee_salary': u'2500', u'employee_name': u'Mohamed Ahmed'}, {u'employee_age': u'30', u'profile_image': u'', u'id': u'335', u'employee_salary': u'2500', u'employee_name': u'Mohamed Ahmed'}, {u'employee_age': u'24', u'profile_image': u'', u'id': u'336', u'employee_salary': u'50', u'employee_name': u'John'}, {u'employee_age': u'58', u'profile_image': u'', u'id': u'337', u'employee_salary': u'1000', u'employee_name': u'Farah'}, {u'employee_age': u'58', u'profile_image': u'', u'id': u'338', u'employee_salary': u'1000', u'employee_name': u'Farah'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'339', u'employee_salary': u'2000', u'employee_name': u'Ziaul Haq'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'340', u'employee_salary': u'2000', u'employee_name': u'Ziaul Haq'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'341', u'employee_salary': u'25000', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'342', u'employee_salary': u'25000', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'343', u'employee_salary': u'25000', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'344', u'employee_salary': u'25000', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'345', u'employee_salary': u'35000', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'346', u'employee_salary': u'0', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'347', u'employee_salary': u'25000', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'348', u'employee_salary': u'25000', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'349', u'employee_salary': u'25000', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'350', u'employee_salary': u'25000', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'351', u'employee_salary': u'25000', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'352', u'employee_salary': u'25000', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'353', u'employee_salary': u'25000', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'354', u'employee_salary': u'25000', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'355', u'employee_salary': u'25000', u'employee_name': u' punit'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'356', u'employee_salary': u'25000', u'employee_name': u' punit'}, {u'employee_age': u'56', u'profile_image': u'', u'id': u'357', u'employee_salary': u'258900', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'46', u'profile_image': u'', u'id': u'358', u'employee_salary': u'111111', u'employee_name': u'Amit Chauhan'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'359', u'employee_salary': u'8587', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'360', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'361', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'362', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'363', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'364', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'35', u'profile_image': u'', u'id': u'365', u'employee_salary': u'1112', u'employee_name': u'Adam'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'366', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'35', u'profile_image': u'', u'id': u'367', u'employee_salary': u'1111', u'employee_name': u'Adam 1'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'368', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'369', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'35', u'profile_image': u'', u'id': u'370', u'employee_salary': u'1111', u'employee_name': u'Adam 1'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'371', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'372', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'373', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'374', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'375', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'376', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'377', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'378', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'379', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'380', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'381', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'382', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'383', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'384', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'385', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'386', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'387', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'388', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'389', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'390', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'391', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'392', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'393', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'394', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'395', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'396', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'397', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'398', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'399', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'400', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'401', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'402', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'403', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'404', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'405', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'406', u'employee_salary': u'42245', u'employee_name': u'Samuel Diana'}, {u'employee_age': u'45', u'profile_image': u'', u'id': u'407', u'employee_salary': u'21354', u'employee_name': u'satyaspb'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'408', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'409', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'410', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'411', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'412', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'413', u'employee_salary': u'125487', u'employee_name': u'John kiout'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'414', u'employee_salary': u'55555', u'employee_name': u'John Doe'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'415', u'employee_salary': u'55555', u'employee_name': u'John Doe'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'416', u'employee_salary': u'74000', u'employee_name': u'HBO'}, {u'employee_age': u'12', u'profile_image': u'', u'id': u'417', u'employee_salary': u'23', u'employee_name': u'Chow chow Yen'}, {u'employee_age': u'34', u'profile_image': u'', u'id': u'418', u'employee_salary': u'85000', u'employee_name': u'Shradha Kumari Golte'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'419', u'employee_salary': u'458777', u'employee_name': u'Sweta Kapadnis'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'420', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'421', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'422', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'7', u'profile_image': u'', u'id': u'423', u'employee_salary': u'40', u'employee_name': u'test'}, {u'employee_age': u'7', u'profile_image': u'', u'id': u'424', u'employee_salary': u'39', u'employee_name': u'test'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'425', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'426', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'427', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'428', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'429', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'430', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'431', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'432', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'433', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'434', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'435', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'436', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'437', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'438', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'439', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'440', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'441', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'442', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'443', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'444', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'445', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'446', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'447', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'448', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'449', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'450', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'451', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'452', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'453', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'454', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'455', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'456', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'457', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'458', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'459', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'460', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'461', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'462', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'463', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'464', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'465', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'466', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'467', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'468', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'469', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'470', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'471', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'472', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'473', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'474', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'475', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'476', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'477', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'478', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'479', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'480', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'481', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'482', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'483', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'484', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'485', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'486', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'487', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'488', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'489', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'490', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'491', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'492', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'493', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'494', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'495', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'496', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'497', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'498', u'employee_salary': u'4444', u'employee_name': u'Smit Maindola'}, {u'employee_age': u'77', u'profile_image': u'', u'id': u'499', u'employee_salary': u'2222', u'employee_name': u'Piyush Sah'}, {u'employee_age': u'34', u'profile_image': u'', u'id': u'500', u'employee_salary': u'4324324', u'employee_name': u'ssfsdf'}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'501', u'employee_salary': u'234324', u'employee_name': u'saravanan'}, {u'employee_age': u'34', u'profile_image': u'', u'id': u'502', u'employee_salary': u'3434', u'employee_name': u'fd'}, {u'employee_age': u'33', u'profile_image': u'', u'id': u'503', u'employee_salary': u'50000', u'employee_name': u'saravanan krishnan'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'504', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'505', u'employee_salary': u'10000', u'employee_name': u'john smith'}, {u'employee_age': u'50', u'profile_image': u'', u'id': u'506', u'employee_salary': u'10000', u'employee_name': u'john smith'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'507', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'508', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'509', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'510', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'511', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'512', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'513', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'514', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'515', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'516', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'517', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'518', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'519', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'520', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'521', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'522', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'523', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'524', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'525', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'526', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'527', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'528', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'529', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'530', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'531', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'532', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'40', u'profile_image': u'', u'id': u'533', u'employee_salary': u'10000', u'employee_name': u'john'}, {u'employee_age': u'12', u'profile_image': u'', u'id': u'534', u'employee_salary': u'1222222', u'employee_name': u'ddds'}, {u'employee_age': u'18', u'profile_image': u'', u'id': u'535', u'employee_salary': u'1236522', u'employee_name': u'aaaaa'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'536', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'537', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'91', u'profile_image': u'', u'id': u'538', u'employee_salary': u'91000', u'employee_name': u'bbbb1'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'539', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'12', u'profile_image': u'', u'id': u'540', u'employee_salary': u'1222000', u'employee_name': u'asasa'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'541', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'30', u'profile_image': u'', u'id': u'542', u'employee_salary': u'10', u'employee_name': u'premnath'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'543', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'63', u'profile_image': u'', u'id': u'544', u'employee_salary': u'63000', u'employee_name': u'cccc'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'545', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'546', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'45', u'profile_image': u'', u'id': u'547', u'employee_salary': u'210', u'employee_name': u'miran'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'548', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'35', u'profile_image': u'', u'id': u'549', u'employee_salary': u'200', u'employee_name': u'jebo'}, {u'employee_age': u'666', u'profile_image': u'', u'id': u'550', u'employee_salary': u'1000', u'employee_name': u'mato'}, {u'employee_age': u'30', u'profile_image': u'', u'id': u'551', u'employee_salary': u'110000', u'employee_name': u'batman123'}, {u'employee_age': u'666', u'profile_image': u'', u'id': u'552', u'employee_salary': u'1000', u'employee_name': u'mato'}, {u'employee_age': u'36', u'profile_image': u'', u'id': u'553', u'employee_salary': u'201', u'employee_name': u'TestSree'}, {u'employee_age': u'35', u'profile_image': u'', u'id': u'554', u'employee_salary': u'1200', u'employee_name': u'jebosafew'}, {u'employee_age': u'36', u'profile_image': u'', u'id': u'555', u'employee_salary': u'201', u'employee_name': u'TestSree'}, {u'employee_age': u'30', u'profile_image': u'', u'id': u'556', u'employee_salary': u'110000', u'employee_name': u'batman123'}, {u'employee_age': u'35', u'profile_image': u'', u'id': u'557', u'employee_salary': u'217500', u'employee_name': u'Lovely Richy'}, {u'employee_age': u'100', u'profile_image': u'', u'id': u'558', u'employee_salary': u'20', u'employee_name': u'Superman'}, {u'employee_age': u'28', u'profile_image': u'', u'id': u'559', u'employee_salary': u'1111111111', u'employee_name': u'Varun1234567'}, {u'employee_age': u'59', u'profile_image': u'', u'id': u'560', u'employee_salary': u'237500', u'employee_name': u'dupa'}, {u'employee_age': u'59', u'profile_image': u'', u'id': u'561', u'employee_salary': u'237500', u'employee_name': u'dupa'}, {u'employee_age': u'59', u'profile_image': u'', u'id': u'562', u'employee_salary': u'237500', u'employee_name': u'dupa'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'563', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'564', u'employee_salary': u'0', u'employee_name': u'58'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'565', u'employee_salary': u'0', u'employee_name': u'23'}, {u'employee_age': u'23000', u'profile_image': u'', u'id': u'566', u'employee_salary': u'0', u'employee_name': u'13'}, {u'employee_age': u'50000', u'profile_image': u'', u'id': u'567', u'employee_salary': u'0', u'employee_name': u'13'}, {u'employee_age': u'13', u'profile_image': u'', u'id': u'568', u'employee_salary': u'25000', u'employee_name': u'Janusz'}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'569', u'employee_salary': u'666000', u'employee_name': u'Bartosz'}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'570', u'employee_salary': u'5228', u'employee_name': u'Bartosz'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'571', u'employee_salary': u'0', u'employee_name': u''}, {u'employee_age': u'10', u'profile_image': u'', u'id': u'572', u'employee_salary': u'100', u'employee_name': u'test'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'573', u'employee_salary': u'100', u'employee_name': u'sample'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'574', u'employee_salary': u'100', u'employee_name': u'sample'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'575', u'employee_salary': u'100', u'employee_name': u'sample'}, {u'employee_age': u'23', u'profile_image': u'', u'id': u'576', u'employee_salary': u'7000', u'employee_name': u'Bartek'}, {u'employee_age': u'59', u'profile_image': u'', u'id': u'577', u'employee_salary': u'237500', u'employee_name': u'dupa'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'578', u'employee_salary': u'100', u'employee_name': u'sample'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'579', u'employee_salary': u'100', u'employee_name': u'sample'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'580', u'employee_salary': u'100', u'employee_name': u'sample'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'581', u'employee_salary': u'100', u'employee_name': u'sample'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'582', u'employee_salary': u'100', u'employee_name': u'sample'}, {u'employee_age': u'25', u'profile_image': u'', u'id': u'583', u'employee_salary': u'7987', u'employee_name': u'fsdfdsfss'}, {u'employee_age': u'0', u'profile_image': u'', u'id': u'584', u'employee_salary': u'5000', u'employee_name': u'blah'}, {u'employee_age': u'56', u'profile_image': u'', u'id': u'585', u'employee_salary': u'45000', u'employee_name': u'sayful islam'}, {u'employee_age': u'20', u'profile_image': u'', u'id': u'586', u'employee_salary': u'100', u'employee_name': u'sample'}]
| 2,774.541667
| 66,119
| 0.658592
| 12,463
| 66,589
| 3.347749
| 0.074541
| 0.344055
| 0.152722
| 0.165448
| 0.854732
| 0.848932
| 0.847878
| 0.832347
| 0.829183
| 0.758958
| 0
| 0.086668
| 0.084579
| 66,589
| 23
| 66,120
| 2,895.173913
| 0.597798
| 0
| 0
| 0
| 0
| 0
| 0.582649
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
2acf123aa30874afb60a4178108457161ae53508
| 26,614
|
py
|
Python
|
SlotType/tests/customresource_lex_slottype/test_handler.py
|
KMK-Git/aws-cloudformation-resource-providers-lex
|
8d0738780aa888c7bea8beca59dd9579dbae95c1
|
[
"MIT"
] | null | null | null |
SlotType/tests/customresource_lex_slottype/test_handler.py
|
KMK-Git/aws-cloudformation-resource-providers-lex
|
8d0738780aa888c7bea8beca59dd9579dbae95c1
|
[
"MIT"
] | null | null | null |
SlotType/tests/customresource_lex_slottype/test_handler.py
|
KMK-Git/aws-cloudformation-resource-providers-lex
|
8d0738780aa888c7bea8beca59dd9579dbae95c1
|
[
"MIT"
] | null | null | null |
from datetime import datetime
from unittest import TestCase
from unittest.mock import MagicMock, patch
import boto3 # type: ignore
from botocore.stub import Stubber # type: ignore
from cloudformation_cli_python_lib import OperationStatus, exceptions
from ...src.customresource_lex_slottype.handlers import (
create_handler,
delete_handler,
read_handler,
update_handler,
)
from ...src.customresource_lex_slottype.models import (
EnumerationValue,
RegexConfiguration,
ResourceHandlerRequest,
ResourceModel,
SlotTypeConfiguration,
)
from ...src.customresource_lex_slottype.translator import Translator
TYPE_NAME = "CustomResource::Lex::SlotType"
class TestHandler(TestCase):
@patch("cloudformation_cli_python_lib.SessionProxy", spec=True)
def test_create_handler(self, mock_sessionproxy) -> None:
mock_create_response = {
"name": "string",
"description": "string",
"enumerationValues": [
{
"value": "string",
"synonyms": [
"string",
],
},
],
"lastUpdatedDate": datetime(2015, 1, 1),
"createdDate": datetime(2015, 1, 1),
"version": "string",
"checksum": "string",
"valueSelectionStrategy": "ORIGINAL_VALUE",
"parentSlotTypeSignature": "string",
"slotTypeConfigurations": [
{"regexConfiguration": {"pattern": "string"}},
],
}
mock_read_response = mock_create_response
request_model = ResourceModel(
Checksum=None,
CreatedDate=None,
CreateVersion=False,
Description="string",
EnumerationValues=[EnumerationValue(Value="string", Synonyms=["string"])],
LastUpdatedDate=None,
Name="string",
ParentSlotTypeSignature="string",
SlotTypeConfigurations=[
SlotTypeConfiguration(
RegexConfiguration=RegexConfiguration(Pattern="string")
)
],
ValueSelectionStrategy="ORIGINAL_VALUE",
Version=None,
)
expected_model = ResourceModel(
Checksum="string",
CreatedDate=str(datetime(2015, 1, 1)),
CreateVersion=None,
Description="string",
EnumerationValues=[EnumerationValue(Value="string", Synonyms=["string"])],
LastUpdatedDate=str(datetime(2015, 1, 1)),
Name="string",
ParentSlotTypeSignature="string",
SlotTypeConfigurations=[
SlotTypeConfiguration(
RegexConfiguration=RegexConfiguration(Pattern="string")
)
],
ValueSelectionStrategy="ORIGINAL_VALUE",
Version="string",
)
mock_client = boto3.client("lex-models")
stubber = Stubber(mock_client)
stubber.add_client_error(
method="get_slot_type",
service_error_code="NotFoundException",
expected_params=Translator.translate_model_to_read_request(request_model),
)
stubber.add_response(
method="put_slot_type",
service_response=mock_create_response,
expected_params=Translator.translate_model_to_create_request(request_model),
)
stubber.add_response(
method="get_slot_type",
service_response=mock_read_response,
expected_params=Translator.translate_model_to_read_request(request_model),
)
stubber.activate()
mock_sessionproxy.client = MagicMock(return_value=mock_client)
mock_request = ResourceHandlerRequest(
clientRequestToken="",
desiredResourceState=request_model,
previousResourceState=None,
desiredResourceTags=None,
previousResourceTags=None,
systemTags=None,
previousSystemTags=None,
awsAccountId=None,
logicalResourceIdentifier=None,
nextToken=None,
region=None,
awsPartition=None,
stackId=None,
)
create_response = create_handler(mock_sessionproxy, mock_request, {})
self.assertEqual(
create_response.status,
OperationStatus.SUCCESS,
)
self.assertEqual(
create_response.resourceModel,
expected_model,
)
stubber.assert_no_pending_responses()
def test_create_handler_invalid_request(self):
mock_request_1 = ResourceHandlerRequest(
clientRequestToken="",
desiredResourceState=None,
previousResourceState=None,
desiredResourceTags=None,
previousResourceTags=None,
systemTags=None,
previousSystemTags=None,
awsAccountId=None,
logicalResourceIdentifier=None,
nextToken=None,
region=None,
awsPartition=None,
stackId=None,
)
with self.assertRaisesRegex(
exceptions.InvalidRequest,
"Name property is a required field",
):
create_handler(None, mock_request_1, {})
request_model = ResourceModel(
Checksum=None,
CreatedDate=None,
CreateVersion=False,
Description="string",
EnumerationValues=[EnumerationValue(Value="string", Synonyms=["string"])],
LastUpdatedDate=None,
Name=None,
ParentSlotTypeSignature="string",
SlotTypeConfigurations=[
SlotTypeConfiguration(
RegexConfiguration=RegexConfiguration(Pattern="string")
)
],
ValueSelectionStrategy="ORIGINAL_VALUE",
Version=None,
)
mock_request_2 = ResourceHandlerRequest(
clientRequestToken="",
desiredResourceState=request_model,
previousResourceState=None,
desiredResourceTags=None,
previousResourceTags=None,
systemTags=None,
previousSystemTags=None,
awsAccountId=None,
logicalResourceIdentifier=None,
nextToken=None,
region=None,
awsPartition=None,
stackId=None,
)
with self.assertRaisesRegex(
exceptions.InvalidRequest,
"Name property is a required field",
):
create_handler(None, mock_request_2, {})
@patch("cloudformation_cli_python_lib.SessionProxy", spec=True)
def test_create_handler_alread_exists(self, mock_sessionproxy) -> None:
mock_read_response = {
"name": "string",
"description": "string",
"enumerationValues": [
{
"value": "string",
"synonyms": [
"string",
],
},
],
"lastUpdatedDate": datetime(2015, 1, 1),
"createdDate": datetime(2015, 1, 1),
"version": "string",
"checksum": "string",
"valueSelectionStrategy": "ORIGINAL_VALUE",
"parentSlotTypeSignature": "string",
"slotTypeConfigurations": [
{"regexConfiguration": {"pattern": "string"}},
],
}
request_model = ResourceModel(
Checksum=None,
CreatedDate=None,
CreateVersion=False,
Description="string",
EnumerationValues=[EnumerationValue(Value="string", Synonyms=["string"])],
LastUpdatedDate=None,
Name="string",
ParentSlotTypeSignature="string",
SlotTypeConfigurations=[
SlotTypeConfiguration(
RegexConfiguration=RegexConfiguration(Pattern="string")
)
],
ValueSelectionStrategy="ORIGINAL_VALUE",
Version=None,
)
mock_client = boto3.client("lex-models")
stubber = Stubber(mock_client)
stubber.add_response(
method="get_slot_type",
service_response=mock_read_response,
expected_params=Translator.translate_model_to_read_request(request_model),
)
stubber.activate()
mock_sessionproxy.client = MagicMock(return_value=mock_client)
mock_request = ResourceHandlerRequest(
clientRequestToken="",
desiredResourceState=request_model,
previousResourceState=None,
desiredResourceTags=None,
previousResourceTags=None,
systemTags=None,
previousSystemTags=None,
awsAccountId=None,
logicalResourceIdentifier=None,
nextToken=None,
region=None,
awsPartition=None,
stackId=None,
)
with self.assertRaisesRegex(
exceptions.AlreadyExists,
f"Resource of type '{TYPE_NAME}' with identifier 'string' already exists.",
):
create_handler(mock_sessionproxy, mock_request, {})
stubber.assert_no_pending_responses()
@patch("cloudformation_cli_python_lib.SessionProxy", spec=True)
def test_update_handler(self, mock_sessionproxy) -> None:
mock_update_response = {
"name": "string",
"description": "string",
"enumerationValues": [
{
"value": "string",
"synonyms": [
"string",
],
},
],
"lastUpdatedDate": datetime(2015, 1, 1),
"createdDate": datetime(2015, 1, 1),
"version": "string",
"checksum": "string",
"valueSelectionStrategy": "ORIGINAL_VALUE",
"parentSlotTypeSignature": "string",
"slotTypeConfigurations": [
{"regexConfiguration": {"pattern": "string"}},
],
}
mock_read_response = mock_update_response
request_model = ResourceModel(
Checksum=None,
CreatedDate=None,
CreateVersion=False,
Description="string",
EnumerationValues=[EnumerationValue(Value="string", Synonyms=["string"])],
LastUpdatedDate=None,
Name="string",
ParentSlotTypeSignature="string",
SlotTypeConfigurations=[
SlotTypeConfiguration(
RegexConfiguration=RegexConfiguration(Pattern="string")
)
],
ValueSelectionStrategy="ORIGINAL_VALUE",
Version=None,
)
expected_model = ResourceModel(
Checksum="string",
CreatedDate=str(datetime(2015, 1, 1)),
CreateVersion=None,
Description="string",
EnumerationValues=[EnumerationValue(Value="string", Synonyms=["string"])],
LastUpdatedDate=str(datetime(2015, 1, 1)),
Name="string",
ParentSlotTypeSignature="string",
SlotTypeConfigurations=[
SlotTypeConfiguration(
RegexConfiguration=RegexConfiguration(Pattern="string")
)
],
ValueSelectionStrategy="ORIGINAL_VALUE",
Version="string",
)
expected_update_request_model = ResourceModel(
Checksum="string",
CreatedDate=None,
CreateVersion=False,
Description="string",
EnumerationValues=[EnumerationValue(Value="string", Synonyms=["string"])],
LastUpdatedDate=None,
Name="string",
ParentSlotTypeSignature="string",
SlotTypeConfigurations=[
SlotTypeConfiguration(
RegexConfiguration=RegexConfiguration(Pattern="string")
)
],
ValueSelectionStrategy="ORIGINAL_VALUE",
Version=None,
)
mock_client = boto3.client("lex-models")
stubber = Stubber(mock_client)
stubber.add_response(
method="get_slot_type",
service_response=mock_read_response,
expected_params=Translator.translate_model_to_read_request(request_model),
)
stubber.add_response(
method="put_slot_type",
service_response=mock_update_response,
expected_params=Translator.translate_model_to_update_request(
expected_update_request_model
),
)
stubber.add_response(
method="get_slot_type",
service_response=mock_read_response,
expected_params=Translator.translate_model_to_read_request(request_model),
)
stubber.activate()
mock_sessionproxy.client = MagicMock(return_value=mock_client)
mock_request = ResourceHandlerRequest(
clientRequestToken="",
desiredResourceState=request_model,
previousResourceState=None,
desiredResourceTags=None,
previousResourceTags=None,
systemTags=None,
previousSystemTags=None,
awsAccountId=None,
logicalResourceIdentifier=None,
nextToken=None,
region=None,
awsPartition=None,
stackId=None,
)
update_response = update_handler(mock_sessionproxy, mock_request, {})
self.assertEqual(
update_response.status,
OperationStatus.SUCCESS,
)
self.assertEqual(
update_response.resourceModel,
expected_model,
)
stubber.assert_no_pending_responses()
def test_update_handler_invalid_request(self):
mock_request_1 = ResourceHandlerRequest(
clientRequestToken="",
desiredResourceState=None,
previousResourceState=None,
desiredResourceTags=None,
previousResourceTags=None,
systemTags=None,
previousSystemTags=None,
awsAccountId=None,
logicalResourceIdentifier=None,
nextToken=None,
region=None,
awsPartition=None,
stackId=None,
)
with self.assertRaisesRegex(
exceptions.InvalidRequest,
"Name property is a required field",
):
update_handler(None, mock_request_1, {})
request_model = ResourceModel(
Checksum=None,
CreatedDate=None,
CreateVersion=False,
Description="string",
EnumerationValues=[EnumerationValue(Value="string", Synonyms=["string"])],
LastUpdatedDate=None,
Name=None,
ParentSlotTypeSignature="string",
SlotTypeConfigurations=[
SlotTypeConfiguration(
RegexConfiguration=RegexConfiguration(Pattern="string")
)
],
ValueSelectionStrategy="ORIGINAL_VALUE",
Version=None,
)
mock_request_2 = ResourceHandlerRequest(
clientRequestToken="",
desiredResourceState=request_model,
previousResourceState=None,
desiredResourceTags=None,
previousResourceTags=None,
systemTags=None,
previousSystemTags=None,
awsAccountId=None,
logicalResourceIdentifier=None,
nextToken=None,
region=None,
awsPartition=None,
stackId=None,
)
with self.assertRaisesRegex(
exceptions.InvalidRequest,
"Name property is a required field",
):
update_handler(None, mock_request_2, {})
@patch("cloudformation_cli_python_lib.SessionProxy", spec=True)
def test_update_handler_not_found(self, mock_sessionproxy) -> None:
request_model = ResourceModel(
Checksum=None,
CreatedDate=None,
CreateVersion=False,
Description="string",
EnumerationValues=[EnumerationValue(Value="string", Synonyms=["string"])],
LastUpdatedDate=None,
Name="string",
ParentSlotTypeSignature="string",
SlotTypeConfigurations=[
SlotTypeConfiguration(
RegexConfiguration=RegexConfiguration(Pattern="string")
)
],
ValueSelectionStrategy="ORIGINAL_VALUE",
Version=None,
)
mock_client = boto3.client("lex-models")
stubber = Stubber(mock_client)
stubber.add_client_error(
method="get_slot_type",
service_error_code="NotFoundException",
expected_params=Translator.translate_model_to_read_request(request_model),
)
stubber.activate()
mock_sessionproxy.client = MagicMock(return_value=mock_client)
mock_request = ResourceHandlerRequest(
clientRequestToken="",
desiredResourceState=request_model,
previousResourceState=None,
desiredResourceTags=None,
previousResourceTags=None,
systemTags=None,
previousSystemTags=None,
awsAccountId=None,
logicalResourceIdentifier=None,
nextToken=None,
region=None,
awsPartition=None,
stackId=None,
)
with self.assertRaisesRegex(
exceptions.NotFound,
f"Resource of type '{TYPE_NAME}' with identifier 'string:\\$LATEST' was not found.",
):
update_handler(mock_sessionproxy, mock_request, {})
stubber.assert_no_pending_responses()
@patch("cloudformation_cli_python_lib.SessionProxy", spec=True)
def test_delete_handler(self, mock_sessionproxy) -> None:
request_model = ResourceModel(
Checksum=None,
CreatedDate=None,
CreateVersion=None,
Description=None,
EnumerationValues=None,
LastUpdatedDate=None,
Name="string",
ParentSlotTypeSignature=None,
SlotTypeConfigurations=None,
ValueSelectionStrategy=None,
Version=None,
)
mock_client = boto3.client("lex-models")
stubber = Stubber(mock_client)
stubber.add_response(
method="delete_slot_type",
service_response={},
expected_params=Translator.translate_model_to_delete_request(request_model),
)
stubber.activate()
mock_sessionproxy.client = MagicMock(return_value=mock_client)
mock_request = ResourceHandlerRequest(
clientRequestToken="",
desiredResourceState=request_model,
previousResourceState=None,
desiredResourceTags=None,
previousResourceTags=None,
systemTags=None,
previousSystemTags=None,
awsAccountId=None,
logicalResourceIdentifier=None,
nextToken=None,
region=None,
awsPartition=None,
stackId=None,
)
delete_response = delete_handler(mock_sessionproxy, mock_request, {})
self.assertEqual(
delete_response.status,
OperationStatus.SUCCESS,
)
self.assertIsNone(
delete_response.resourceModel,
)
stubber.assert_no_pending_responses()
def test_delete_handler_invalid_request(self):
mock_request_1 = ResourceHandlerRequest(
clientRequestToken="",
desiredResourceState=None,
previousResourceState=None,
desiredResourceTags=None,
previousResourceTags=None,
systemTags=None,
previousSystemTags=None,
awsAccountId=None,
logicalResourceIdentifier=None,
nextToken=None,
region=None,
awsPartition=None,
stackId=None,
)
with self.assertRaisesRegex(
exceptions.InvalidRequest,
"Name property is a required field",
):
delete_handler(None, mock_request_1, {})
request_model = ResourceModel(
Checksum=None,
CreatedDate=None,
CreateVersion=None,
Description=None,
EnumerationValues=None,
LastUpdatedDate=None,
Name=None,
ParentSlotTypeSignature=None,
SlotTypeConfigurations=None,
ValueSelectionStrategy=None,
Version=None,
)
mock_request_2 = ResourceHandlerRequest(
clientRequestToken="",
desiredResourceState=request_model,
previousResourceState=None,
desiredResourceTags=None,
previousResourceTags=None,
systemTags=None,
previousSystemTags=None,
awsAccountId=None,
logicalResourceIdentifier=None,
nextToken=None,
region=None,
awsPartition=None,
stackId=None,
)
with self.assertRaisesRegex(
exceptions.InvalidRequest,
"Name property is a required field",
):
delete_handler(None, mock_request_2, {})
@patch("cloudformation_cli_python_lib.SessionProxy", spec=True)
def test_read_handler(self, mock_sessionproxy) -> None:
mock_read_response = {
"name": "string",
"description": "string",
"enumerationValues": [
{
"value": "string",
"synonyms": [
"string",
],
},
],
"lastUpdatedDate": datetime(2015, 1, 1),
"createdDate": datetime(2015, 1, 1),
"version": "string",
"checksum": "string",
"valueSelectionStrategy": "ORIGINAL_VALUE",
"parentSlotTypeSignature": "string",
"slotTypeConfigurations": [
{"regexConfiguration": {"pattern": "string"}},
],
}
request_model = ResourceModel(
Checksum=None,
CreatedDate=None,
CreateVersion=None,
Description=None,
EnumerationValues=None,
LastUpdatedDate=None,
Name="string",
ParentSlotTypeSignature=None,
SlotTypeConfigurations=None,
ValueSelectionStrategy=None,
Version=None,
)
expected_model = ResourceModel(
Checksum="string",
CreatedDate=str(datetime(2015, 1, 1)),
CreateVersion=None,
Description="string",
EnumerationValues=[EnumerationValue(Value="string", Synonyms=["string"])],
LastUpdatedDate=str(datetime(2015, 1, 1)),
Name="string",
ParentSlotTypeSignature="string",
SlotTypeConfigurations=[
SlotTypeConfiguration(
RegexConfiguration=RegexConfiguration(Pattern="string")
)
],
ValueSelectionStrategy="ORIGINAL_VALUE",
Version="string",
)
mock_client = boto3.client("lex-models")
stubber = Stubber(mock_client)
stubber.add_response(
method="get_slot_type",
service_response=mock_read_response,
expected_params=Translator.translate_model_to_read_request(request_model),
)
stubber.activate()
mock_sessionproxy.client = MagicMock(return_value=mock_client)
mock_request = ResourceHandlerRequest(
clientRequestToken="",
desiredResourceState=request_model,
previousResourceState=None,
desiredResourceTags=None,
previousResourceTags=None,
systemTags=None,
previousSystemTags=None,
awsAccountId=None,
logicalResourceIdentifier=None,
nextToken=None,
region=None,
awsPartition=None,
stackId=None,
)
read_response = read_handler(mock_sessionproxy, mock_request, {})
self.assertEqual(
read_response.status,
OperationStatus.SUCCESS,
)
self.assertEqual(
read_response.resourceModel,
expected_model,
)
stubber.assert_no_pending_responses()
def test_read_handler_invalid_request(self):
mock_request_1 = ResourceHandlerRequest(
clientRequestToken="",
desiredResourceState=None,
previousResourceState=None,
desiredResourceTags=None,
previousResourceTags=None,
systemTags=None,
previousSystemTags=None,
awsAccountId=None,
logicalResourceIdentifier=None,
nextToken=None,
region=None,
awsPartition=None,
stackId=None,
)
with self.assertRaisesRegex(
exceptions.InvalidRequest,
"Name property is a required field",
):
read_handler(None, mock_request_1, {})
request_model = ResourceModel(
Checksum=None,
CreatedDate=None,
CreateVersion=None,
Description=None,
EnumerationValues=None,
LastUpdatedDate=None,
Name=None,
ParentSlotTypeSignature=None,
SlotTypeConfigurations=None,
ValueSelectionStrategy=None,
Version=None,
)
mock_request_2 = ResourceHandlerRequest(
clientRequestToken="",
desiredResourceState=request_model,
previousResourceState=None,
desiredResourceTags=None,
previousResourceTags=None,
systemTags=None,
previousSystemTags=None,
awsAccountId=None,
logicalResourceIdentifier=None,
nextToken=None,
region=None,
awsPartition=None,
stackId=None,
)
with self.assertRaisesRegex(
exceptions.InvalidRequest,
"Name property is a required field",
):
read_handler(None, mock_request_2, {})
| 36.062331
| 96
| 0.573119
| 1,869
| 26,614
| 7.960407
| 0.069021
| 0.025003
| 0.031994
| 0.023525
| 0.944952
| 0.933123
| 0.916992
| 0.891114
| 0.891114
| 0.885334
| 0
| 0.006131
| 0.344255
| 26,614
| 737
| 97
| 36.111262
| 0.846379
| 0.000939
| 0
| 0.804979
| 0
| 0
| 0.091213
| 0.02065
| 0
| 0
| 0
| 0
| 0.033195
| 1
| 0.013831
| false
| 0
| 0.012448
| 0
| 0.027663
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
63143992cd526c2767e39c3ff15422b306123d5d
| 246
|
py
|
Python
|
output/models/ms_data/particles/particles_q022_xsd/__init__.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 1
|
2021-08-14T17:59:21.000Z
|
2021-08-14T17:59:21.000Z
|
output/models/ms_data/particles/particles_q022_xsd/__init__.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 4
|
2020-02-12T21:30:44.000Z
|
2020-04-15T20:06:46.000Z
|
output/models/ms_data/particles/particles_q022_xsd/__init__.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | null | null | null |
from output.models.ms_data.particles.particles_q022_xsd.particles_q022 import (
B,
R,
Doc,
)
from output.models.ms_data.particles.particles_q022_xsd.particles_q022_imp import Foo
__all__ = [
"B",
"R",
"Doc",
"Foo",
]
| 17.571429
| 85
| 0.678862
| 34
| 246
| 4.529412
| 0.441176
| 0.337662
| 0.207792
| 0.233766
| 0.779221
| 0.779221
| 0.779221
| 0.779221
| 0.779221
| 0.779221
| 0
| 0.060914
| 0.199187
| 246
| 13
| 86
| 18.923077
| 0.720812
| 0
| 0
| 0
| 0
| 0
| 0.03252
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
2d9d893cb3c9837af4a08de29b41baa4783c5b28
| 64,213
|
py
|
Python
|
models/models.py
|
neverdie88/collective-planning
|
ee421cc0bbb2802061a5a6b0930d834e9fb3f86f
|
[
"MIT"
] | 1
|
2019-06-11T14:27:09.000Z
|
2019-06-11T14:27:09.000Z
|
models/models.py
|
neverdie88/collective-planning
|
ee421cc0bbb2802061a5a6b0930d834e9fb3f86f
|
[
"MIT"
] | null | null | null |
models/models.py
|
neverdie88/collective-planning
|
ee421cc0bbb2802061a5a6b0930d834e9fb3f86f
|
[
"MIT"
] | 1
|
2018-09-17T02:13:49.000Z
|
2018-09-17T02:13:49.000Z
|
import tensorflow as tf
import tensorflow.contrib as tc
import numpy as np
from baselines.common.minout import minout
from tensorflow.python.framework import ops
class Model(object):
def __init__(self, name):
self.name = name
@property
def vars(self):
return tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, scope=self.name)
@property
def trainable_vars(self):
return tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope=self.name)
@property
def perturbable_vars(self):
return [var for var in self.trainable_vars if 'LayerNorm' not in var.name]
# class Actor(Model):
# def __init__(self, nb_actions, name='actor', layer_norm=True):
# super(Actor, self).__init__(name=name)
# self.nb_actions = nb_actions
# self.layer_norm = layer_norm
#
# def __call__(self, obs, reuse=False):
# with tf.variable_scope(self.name) as scope:
# if reuse:
# scope.reuse_variables()
#
# x = obs
# # x = tf.layers.dense(x, 18)
# # if self.layer_norm:
# # x = tc.layers.layer_norm(x, center=True, scale=True)
# # x = tf.nn.relu(x)
# #
# # x = tf.layers.dense(x, 18)
# # if self.layer_norm:
# # x = tc.layers.layer_norm(x, center=True, scale=True)
# # inputLayer = tf.nn.relu(x)
# inputLayer = x
#
# # output = tf.nn.sigmoid(x)*(maxArray-minArray) + min
# output = []
# for i in range(len(self.nb_actions)):
# x = tf.layers.dense(inputLayer, self.nb_actions[i], kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
# x = tf.nn.softmax(x)
# output.append(x)
# x = tf.concat(output, axis=1)
# #x = tf.reshape(x, [-1])
# return x
class Actor(Model):
def __init__(self, ob_space, ac_space, name='actor', layer_norm=True):
super(Actor, self).__init__(name=name)
self.ac_space = ac_space
self.layer_norm = layer_norm
def __call__(self, obs, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
# output = tf.nn.sigmoid(x)*(maxArray-minArray) + min
x = tf.layers.dense(obs, self.ac_space.n, kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = tf.nn.softmax(x)
#x = tf.reshape(x, [-1])
return x
class Critic(Model):
def __init__(self, ob_space, ac_space, name='critic', layer_norm=True):
super(Critic, self).__init__(name=name)
self.ac_space = ac_space
self.layer_norm = layer_norm
def __call__(self, obs, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
x = obs
inputLayer = x
x = tf.layers.dense(inputLayer, self.ac_space.n, kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
# x = tf.reduce_sum(x*action, axis=1)
return x
class CollectiveActor(Model):
def __init__(self, nb_actions, name='actor', layer_norm=True, hidden_sizes = (), hidden_nonlinearity = tf.nn.relu):
super(CollectiveActor, self).__init__(name=name)
self.nb_actions = nb_actions
self.layer_norm = layer_norm
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
def __call__(self, obs, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
# x = obs
# x = tf.layers.dense(x, 18)
# if self.layer_norm:
# x = tc.layers.layer_norm(x, center=True, scale=True)
# x = tf.nn.relu(x)
#
# x = tf.layers.dense(x, 18)
# if self.layer_norm:
# x = tc.layers.layer_norm(x, center=True, scale=True)
# inputLayer = tf.nn.relu(x)
# inputLayer = x
# output = tf.nn.sigmoid(x)*(maxArray-minArray) + min
output = []
for i in range(len(self.nb_actions)):
inputLayer = obs[:,i]
x = tf.layers.dense(inputLayer, self.nb_actions[i], kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = tf.nn.softmax(x)
output.append(x)
x = tf.concat(output, axis=1)
#x = tf.reshape(x, [-1])
return x
class GridCollectiveCritic(Model):
def __init__(self, nb_actions, name='collective_critic', layer_norm=True, relu_output = True, num_channels = 10, num_maxout_units = 2):
super(GridCollectiveCritic, self).__init__(name=name)
self.layer_norm = layer_norm
self.nb_actions = nb_actions
# self.actionNum = np.sum(nb_actions)
self.relu_output = relu_output
self.num_channels = num_channels
self.num_maxout_units = num_maxout_units
def __call__(self, obs, action_count, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
# if self.relu_output:
output = []
for i in range(len(self.nb_actions)):
x = action_count[:,i]
x = tf.layers.dense(x, self.num_channels*self.nb_actions[i])
x = minout(x, self.num_maxout_units*self.nb_actions[i])
output.append(x)
output = tf.concat(output, axis=1)
x = tf.layers.dense(output, 1, kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
return x
class GridCollectiveActor(Model):
def __init__(self, nb_actions, name='actor', layer_norm=True, num_channels = 10, num_maxout_units = 2):
super(GridCollectiveActor, self).__init__(name=name)
self.nb_actions = nb_actions
self.layer_norm = layer_norm
self.num_maxout_units = num_maxout_units
self.num_channels = num_channels
# self.hidden_nonlinearity = hidden_nonlinearity
def __call__(self, obs, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
output = []
for i in range(len(self.nb_actions)):
inputLayer = obs[:,i]
x = tf.layers.dense(inputLayer, self.num_channels, kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = minout(x, self.num_maxout_units)
x = tf.layers.dense(x, self.nb_actions[i],
kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = tf.nn.softmax(x)
output.append(x)
x = tf.stack(output, axis=1)
return x
class TaxiCollectiveActorPseudoFlow(Model):
def __init__(self, nb_actions, name='actor', layer_norm=None):
super(TaxiCollectiveActorPseudoFlow, self).__init__(name=name)
self.nb_actions = nb_actions
self.layer_norm = None
if layer_norm== 'layer_norm':
self.layer_norm = tc.layers.layer_norm
if layer_norm == 'batch_norm':
self.layer_norm = tc.layers.batch_norm
self.zoneNum = 81
self.H = 48
def __call__(self, obs, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
output = []
normalizedDenseCounter = 0
normalizedDenseCounter += 1
state_count = obs[:,self.H:self.H + self.zoneNum]
demand_count = obs[:,self.H + self.zoneNum:]
initializer = tf.truncated_normal_initializer(mean=1.0 / 9.0, stddev=1.0 / 90.0, dtype=tf.float32)
V = tf.get_variable('V_' + str(normalizedDenseCounter), [int(state_count.get_shape()[1]), self.zoneNum], tf.float32, initializer,
trainable=True)
V_norm = tf.nn.softmax(V, dim=1)
flows = tf.matmul(state_count, V_norm)
# flows = normalizedDense(obs[:, self.H:self.H + self.zoneNum], self.zoneNum, counter=normalizedDenseCounter)
for i in range(len(self.nb_actions)):
#counterpart: the flow from other
x = flows - tf.matmul(tf.expand_dims(state_count[:,i], axis=1),tf.expand_dims(V_norm[i, :],0))
x = demand_count - x
x = tf.layers.dense(x, 18, kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
if self.layer_norm!= None:
x = self.layer_norm(x)
x = tf.nn.relu(x)
x = tf.layers.dense(x, self.nb_actions[i],
kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = tf.nn.softmax(x)
output.append(x)
x = tf.stack(output, axis=1)
return x
class TaxiCollectiveActorPseudoFlowMaxout(Model):
def __init__(self, nb_actions, name='actor', layer_norm=None, num_pieces = 3, num_maxout_units = 18):
super(TaxiCollectiveActorPseudoFlowMaxout, self).__init__(name=name)
self.nb_actions = nb_actions
self.layer_norm = None
if layer_norm== 'layer_norm':
self.layer_norm = tc.layers.layer_norm
if layer_norm == 'batch_norm':
self.layer_norm = tc.layers.batch_norm
self.zoneNum = 81
self.H = 48
self.num_maxout_units = num_maxout_units
self.num_pieces = num_pieces
def __call__(self, obs, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
output = []
normalizedDenseCounter = 0
normalizedDenseCounter += 1
state_count = obs[:,self.H:self.H + self.zoneNum]
demand_count = obs[:,self.H + self.zoneNum:]
initializer = tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)#tf.truncated_normal_initializer(mean=1.0 / 9.0, stddev=1.0 / 90.0, dtype=tf.float32)
V = tf.get_variable('V_' + str(normalizedDenseCounter), [int(state_count.get_shape()[1]), self.zoneNum], tf.float32, initializer,
trainable=True)
V_norm = tf.nn.softmax(V, dim=1)
flows = tf.matmul(state_count, V_norm)
# flows = normalizedDense(obs[:, self.H:self.H + self.zoneNum], self.zoneNum, counter=normalizedDenseCounter)
for i in range(len(self.nb_actions)):
#counterpart: the flow from other
x = flows - tf.matmul(tf.expand_dims(state_count[:,i], axis=1),tf.expand_dims(V_norm[i, :],0))
x = demand_count - x
x = tf.layers.dense(x, self.num_pieces*self.num_maxout_units, kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = minout(x, self.num_maxout_units)
if self.layer_norm!= None:
x = self.layer_norm(x)
x = tf.layers.dense(x, self.num_pieces * self.num_maxout_units,
kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = minout(x, self.num_maxout_units)
if self.layer_norm != None:
x = self.layer_norm(x)
x = tf.layers.dense(x, self.nb_actions[i],
kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = tf.nn.softmax(x)
output.append(x)
x = tf.stack(output, axis=1)
print('initialized actor network')
return x
class TaxiCollectiveActorDense(Model):
def __init__(self, nb_actions, name='actor', layer_norm=None):
super(TaxiCollectiveActorDense, self).__init__(name=name)
self.nb_actions = nb_actions
self.layer_norm = None
if layer_norm== 'layer_norm':
self.layer_norm = tc.layers.layer_norm
if layer_norm == 'batch_norm':
self.layer_norm = tc.layers.batch_norm
self.zoneNum = 81
self.H = 48
def __call__(self, obs, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
output = []
for i in range(len(self.nb_actions)):
inputLayer = obs#[:,:self.H]
x = tf.layers.dense(inputLayer, 18, kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
if self.layer_norm!= None:
x = self.layer_norm(x)
x = tf.nn.relu(x)
x = tf.layers.dense(x, 18,
kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
if self.layer_norm!= None:
x = self.layer_norm(x)
x = tf.nn.relu(x)
x = tf.layers.dense(x, self.nb_actions[i],
kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = tf.nn.softmax(x)
output.append(x)
x = tf.stack(output, axis=1)
#x = tf.reshape(x, [-1])
return x
# class TaxiBasicCollectiveActor(Model):
# def __init__(self, nb_actions, name='actor', layer_norm=True):
# super(TaxiBasicCollectiveActor, self).__init__(name=name)
# self.nb_actions = nb_actions
# self.layer_norm = layer_norm
# self.zoneNum = 81
# self.H = 48
#
# def __call__(self, obs, reuse=False):
# with tf.variable_scope(self.name) as scope:
# if reuse:
# scope.reuse_variables()
#
# inputLayer = obs
# output = []
# for i in range(len(self.nb_actions)):
# inputLayer = obs#[:,:self.H]
# x = tf.layers.dense(inputLayer, self.nb_actions[i], kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
# x = tf.nn.softmax(x)
# output.append(x)
# x = tf.stack(output, axis=1)
#
#
# immediateRewards = []
# for i in range(len(self.nb_actions)):
# x = tf.reduce_sum(action_count[:,:,i], axis=1)
# # next_state_count.append(x - obs[:, self.H + self.zoneNum +i] + customer_flow[:,i])
# immediateRewards.append(tf.reduce_min(tf.stack([x, obs[:, self.H + self.zoneNum +i]], axis=1), axis=1))
# immediateRewards = tf.stack(immediateRewards, axis=1)
# output.append(immediateRewards)
# #cost
# flatten_action_count = tf.reshape(action_count, shape=[-1, (action_count.shape[1]*action_count.shape[2]).value])
# output.append(flatten_action_count)
#
# #future reward
# # next_state_count = tf.stack(next_state_count, axis=1)
# # x = normalizedDense(next_state_count, self.zoneNum, counter = normalizedDenseCounter)
# # normalizedDenseCounter += 1
# # d = tf.get_variable("d", [self.zoneNum], trainable=True,
# # initializer=tf.random_uniform_initializer(minval=0, maxval=300))
# # x = tf.minimum(x, d)
# # output.append(x)
# output = tf.concat(output, axis=1)
# x = tf.layers.dense(output, 1, kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
# return x
class TaxiCollectiveActor(Model):
def __init__(self, nb_actions, name='actor', layer_norm=True):
super(TaxiCollectiveActor, self).__init__(name=name)
self.nb_actions = nb_actions
self.layer_norm = layer_norm
self.zoneNum = 81
self.H = 48
def __call__(self, obs, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
# x = obs
# x = tf.layers.dense(x, 18)
# if self.layer_norm:
# x = tc.layers.layer_norm(x, center=True, scale=True)
# x = tf.nn.relu(x)
#
# x = tf.layers.dense(x, 18)
# if self.layer_norm:
# x = tc.layers.layer_norm(x, center=True, scale=True)
# inputLayer = tf.nn.relu(x)
# inputLayer = x
# output = tf.nn.sigmoid(x)*(maxArray-minArray) + min
output = []
for i in range(len(self.nb_actions)):
inputLayer = obs#[:,:self.H]
x = tf.layers.dense(inputLayer, self.nb_actions[i], kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = tf.nn.softmax(x)
output.append(x)
x = tf.stack(output, axis=1)
#x = tf.reshape(x, [-1])
return x
class TaxiCollectiveCritic(Model):
def __init__(self, nb_actions, name='collective_critic', layer_norm=True, relu_output = True, hidden_sizes = (), hidden_nonlinearity = tf.nn.relu):
super(TaxiCollectiveCritic, self).__init__(name=name)
self.layer_norm = layer_norm
self.nb_actions = nb_actions
# self.actionNum = np.sum(nb_actions)
self.relu_output = relu_output
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
self.zoneNum = 81
self.H = 48
def __call__(self, obs, action_count, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
inputLayer = obs
output = []
next_state_count = []
normalizedDenseCounter = 0
customer_flow = normalizedDense(obs[:, self.H + self.zoneNum:], self.zoneNum,
counter=normalizedDenseCounter)
normalizedDenseCounter +=1
#payment
immediateRewards = []
for i in range(len(self.nb_actions)):
x = tf.reduce_sum(action_count[:,:,i], axis=1)
next_state_count.append(x - obs[:, self.H + self.zoneNum +i] + customer_flow[:,i])
immediateRewards.append(tf.reduce_min(tf.stack([x, obs[:, self.H + self.zoneNum +i]], axis=1), axis=1))
immediateRewards = tf.stack(immediateRewards, axis=1)
output.append(immediateRewards)
#cost
flatten_action_count = tf.reshape(action_count, shape=[-1, (action_count.shape[1]*action_count.shape[2]).value])
output.append(flatten_action_count)
#future reward
next_state_count = tf.stack(next_state_count, axis=1)
x = normalizedDense(next_state_count, self.zoneNum, counter = normalizedDenseCounter)
normalizedDenseCounter += 1
d = tf.get_variable("d", [self.zoneNum], trainable=True,
initializer=tf.random_uniform_initializer(minval=0, maxval=300))
x = tf.minimum(x, d)
output.append(x)
output = tf.concat(output, axis=1)
x = tf.layers.dense(output, 1, kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
return x
class TaxiCollectiveTestCritic(Model):
def __init__(self, nb_actions, name='collective_critic', layer_norm=True, relu_output = True, hidden_sizes = (), hidden_nonlinearity = tf.nn.relu):
super(TaxiCollectiveTestCritic, self).__init__(name=name)
self.layer_norm = layer_norm
self.nb_actions = nb_actions
# self.actionNum = np.sum(nb_actions)
self.relu_output = relu_output
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
self.zoneNum = 81
self.H = 48
def __call__(self, obs, action_count, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
inputLayer = obs
output = []
next_state_count = []
normalizedDenseCounter = 0
customer_flow = normalizedDense(obs[:, self.H+self.zoneNum:], self.zoneNum, counter = normalizedDenseCounter)
normalizedDenseCounter +=1
for i in range(len(self.nb_actions)):
x = tf.reduce_sum(action_count[:,:,i], axis=1)
next_state_count.append(x - obs[:, self.H + self.zoneNum +i] + customer_flow[:,i])
#future reward
next_state_count = tf.stack(next_state_count, axis=1)
x = normalizedDense(next_state_count, self.zoneNum, counter = normalizedDenseCounter)
normalizedDenseCounter += 1
#
# x = tf.minimum(x, d)
# output.append(x)
# output = tf.concat(output, axis=1)
# x = tf.layers.dense(output, 1, kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
return x
class TaxiBasicCollectiveCritic(Model):
def __init__(self, nb_actions, name='collective_critic', layer_norm=True, relu_output = True, hidden_sizes = (), hidden_nonlinearity = tf.nn.relu):
super(TaxiBasicCollectiveCritic, self).__init__(name=name)
self.layer_norm = layer_norm
self.nb_actions = nb_actions
# self.actionNum = np.sum(nb_actions)
self.relu_output = relu_output
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
self.zoneNum = 81
self.H = 48
def __call__(self, obs, action_count, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
inputLayer = obs
output = []
# next_state_count = []
# normalizedDenseCounter = 0
# customer_flow = normalizedDense(obs[:, self.H:], self.zoneNum, counter = normalizedDenseCounter)
# normalizedDenseCounter +=1
#payment
immediateRewards = []
for i in range(len(self.nb_actions)):
x = tf.reduce_sum(action_count[:,:,i], axis=1)
# next_state_count.append(x - obs[:, self.H + self.zoneNum +i] + customer_flow[:,i])
immediateRewards.append(tf.reduce_min(tf.stack([x, obs[:, self.H + self.zoneNum +i]], axis=1), axis=1))
immediateRewards = tf.stack(immediateRewards, axis=1)
output.append(immediateRewards)
#cost
flatten_action_count = tf.reshape(action_count, shape=[-1, (action_count.shape[1]*action_count.shape[2]).value])
output.append(flatten_action_count)
#future reward
# next_state_count = tf.stack(next_state_count, axis=1)
# x = normalizedDense(next_state_count, self.zoneNum, counter = normalizedDenseCounter)
# normalizedDenseCounter += 1
# d = tf.get_variable("d", [self.zoneNum], trainable=True,
# initializer=tf.random_uniform_initializer(minval=0, maxval=300))
# x = tf.minimum(x, d)
# output.append(x)
output = tf.concat(output, axis=1)
x = tf.layers.dense(output, 1, kernel_initializer=tf.random_uniform_initializer(minval=-3e-5, maxval=3e-5))
return x
class TaxiCollectiveCritic(Model):
def __init__(self, nb_actions, name='collective_critic', layer_norm=True, relu_output = True, hidden_sizes = (), hidden_nonlinearity = tf.nn.relu):
super(TaxiCollectiveCritic, self).__init__(name=name)
self.layer_norm = layer_norm
self.nb_actions = nb_actions
# self.actionNum = np.sum(nb_actions)
self.relu_output = relu_output
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
self.zoneNum = 81
self.H = 48
def __call__(self, obs, action_count, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
inputLayer = obs
output = []
next_state_count = []
normalizedDenseCounter = 0
output.append(obs[:, :self.H])
customer_flow = normalizedDense(obs[:, self.H+ self.zoneNum:], self.zoneNum, counter = normalizedDenseCounter)
normalizedDenseCounter +=1
#payment
immediateRewards = []
for i in range(len(self.nb_actions)):
x = tf.reduce_sum(action_count[:,:,i], axis=1)
next_state_count.append(x - obs[:, self.H + self.zoneNum +i] + customer_flow[:,i])
immediateRewards.append(tf.reduce_min(tf.stack([x, obs[:, self.H + self.zoneNum +i]], axis=1), axis=1))
immediateRewards = tf.stack(immediateRewards, axis=1)
output.append(immediateRewards)
#cost
flatten_action_count = tf.reshape(action_count, shape=[-1, (action_count.shape[1]*action_count.shape[2]).value])
output.append(flatten_action_count)
#future reward
next_state_count = tf.stack(next_state_count, axis=1)
x = normalizedDense(next_state_count, self.zoneNum, counter = normalizedDenseCounter)
normalizedDenseCounter += 1
d = tf.get_variable("d", [self.zoneNum], trainable=True,
initializer=tf.random_uniform_initializer(minval=0, maxval=300))
x = tf.minimum(x, d)
output.append(x)
output = tf.concat(output, axis=1)
x = tf.layers.dense(output, 1, kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
return x
class CollectiveCritic(Model):
def __init__(self, nb_actions, name='collective_critic', layer_norm=True, relu_output = True, hidden_sizes = (), hidden_nonlinearity = tf.nn.relu):
super(CollectiveCritic, self).__init__(name=name)
self.layer_norm = layer_norm
self.nb_actions = nb_actions
# self.actionNum = np.sum(nb_actions)
self.relu_output = relu_output
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
def __call__(self, obs, action_count, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
inputLayer = obs
if self.relu_output:
w = tf.get_variable("w", [np.sum(self.nb_actions)], trainable=True, initializer = tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
b = tf.get_variable("b", [np.sum(self.nb_actions)], trainable=True,
initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = tf.multiply(action_count, w) + b
x = tf.nn.relu(x)
x = tf.layers.dense(x, np.sum(self.nb_actions))
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True)
x = tf.nn.relu(x)
for idx, hidden_size in enumerate(self.hidden_sizes):#self.nb_actions[i]
x = tf.layers.dense(x, hidden_size,
kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = self.hidden_nonlinearity(x)
x = tf.layers.dense(x, 1, kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
return x
class CollectiveStateCritic(Model):
def __init__(self, nb_actions, name='collective_state_critic', layer_norm=True, relu_output = True, hidden_sizes = (), hidden_nonlinearity = tf.nn.relu):
super(CollectiveStateCritic, self).__init__(name=name)
self.layer_norm = layer_norm
self.nb_actions = nb_actions
self.actionNum = np.sum(nb_actions)
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
def __call__(self, obs, reuse=False):#
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
# x = obs
# x = tf.layers.dense(x, 18)
# if self.layer_norm:
# x = tc.layers.layer_norm(x, center=True, scale=True)
# x = tf.nn.relu(x)
#
# x = tf.layers.dense(x, 18)
# if self.layer_norm:
# x = tc.layers.layer_norm(x, center=True, scale=True)
# inputLayer = tf.nn.relu(x)
#
# output = []
# for i in range(len(self.nb_actions)):
# x = tf.layers.dense(inputLayer, self.nb_actions[i],
# kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
# x = tf.nn.relu(x)
# output.append(x)
# x = tf.concat(output, axis=1)
# x = tf.multiply(x, tf.multiply(state_count, action))
inputLayer = obs#tf.multiply(state_count, action)
output = []
# if len(self.hidden_sizes)>0:
for i in range(len(self.nb_actions)):
x = inputLayer
for idx, hidden_size in enumerate(self.hidden_sizes):#self.nb_actions[i]
x = tf.layers.dense(x, hidden_size,
kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = self.hidden_nonlinearity(x)
x = tf.layers.dense(x, self.nb_actions[i],
kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = self.hidden_nonlinearity(x)
output.append(x)
x = tf.concat(output, axis=1)
return x
class CollectiveStateActionCritic(Model):
def __init__(self, nb_actions, name='collective_state_action_critic', layer_norm=True, relu_output = True, hidden_sizes = (), hidden_nonlinearity = tf.nn.relu):
super(CollectiveStateActionCritic, self).__init__(name=name)
self.layer_norm = layer_norm
self.nb_actions = nb_actions
self.actionNum = np.sum(nb_actions)
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
def __call__(self, obs, action_count, reuse=False):#
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
# x = obs
# x = tf.layers.dense(x, 18)
# if self.layer_norm:
# x = tc.layers.layer_norm(x, center=True, scale=True)
# x = tf.nn.relu(x)
#
# x = tf.layers.dense(x, 18)
# if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True)
# inputLayer = tf.nn.relu(x)
#
# output = []
# for i in range(len(self.nb_actions)):
# x = tf.layers.dense(inputLayer, self.nb_actions[i],
# kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
# x = tf.nn.relu(x)
# output.append(x)
# x = tf.concat(output, axis=1)
# x = tf.multiply(x, tf.multiply(state_count, action))
inputLayer = obs#tf.multiply(state_count, action)
output = []
# if len(self.hidden_sizes)>0:
for i in range(len(self.nb_actions)):
x = inputLayer
for idx, hidden_size in enumerate(self.hidden_sizes):#self.nb_actions[i]
x = tf.layers.dense(x, hidden_size,
kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = self.hidden_nonlinearity(x)
x = tf.layers.dense(x, self.actionNum,
kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = x * action_count
x = self.hidden_nonlinearity(x)
x = tf.layers.dense(x, self.nb_actions[i],
kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
x = self.hidden_nonlinearity(x)
output.append(x)
x = tf.concat(output, axis=1)
return x
class Critic1(Model):
def __init__(self, name='critic', layer_norm=True):
super(Critic1, self).__init__(name=name)
self.layer_norm = layer_norm
def __call__(self, obs, action, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
x = obs
x = tf.layers.dense(x, 64)
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True)
x = tf.nn.relu(x)
x = tf.concat([x, action], axis=-1)
x = tf.layers.dense(x, 64)
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True)
x = tf.nn.relu(x)
x = tf.layers.dense(x, 1, kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3))
return x
@property
def output_vars(self):
output_vars = [var for var in self.trainable_vars if 'output' in var.name]
return output_vars
def normalizedDense(x, num_units, nonlinearity=None, initializer = tf.random_normal_initializer(0, 0.05), counter = 0):
''' fully connected layer '''
initializer = tf.truncated_normal_initializer(mean=1.0 / 9.0, stddev=1.0 / 90.0, dtype=tf.float32)
V = tf.get_variable('V_' +str(counter), [int(x.get_shape()[1]),num_units], tf.float32, initializer, trainable=True)
# with ops.name_scope(None, "softmax_normalize", [V]) as name:
# V = ops.convert_to_tensor(V, name="x")
V_norm = tf.nn.softmax(V, dim=1)
return tf.matmul(x, V_norm)
#######################################################################
#police patrol neural network
class CollectiveDecActorPoliceAttention(Model):
def __init__(self, nb_actions, name='dec_collective_actor', layer_norm=False, batch_norm=False, hidden_sizes=(),
hidden_nonlinearity=tf.nn.relu, C = 0, adjacent_list=[]):
super(CollectiveDecActorPoliceAttention, self).__init__(name=name)
self.nb_actions = nb_actions
self.layer_norm = layer_norm
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
self.layer_norm = layer_norm
self.batch_norm = batch_norm
self.adjacent_list = adjacent_list
self.stateNum = len(adjacent_list)
self.C = C
def __call__(self, obs, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
output = []
# obs = obs*8000.0
# y = []
# local_obs_joint = []
# w = tf.get_variable("temporal_weight", [self.C], trainable=True,
# initializer=tf.random_uniform_initializer(minval=-1, maxval=1))
# w = tf.nn.sigmoid(w)
# w = tf.get_variable("temporal_weight", [1], trainable=True,
# initializer=tf.random_uniform_initializer(minval=0, maxval=1))
# w = tf.nn.sigmoid(-w * tf.range(self.C, dtype=tf.float32))
w = tf.get_variable("temporal_weight", [1], trainable=True,
initializer=tf.random_uniform_initializer(minval=0, maxval=1))
w = tf.exp(-w * tf.range(self.C, dtype=tf.float32))
state_obs = tf.multiply(obs[:,:,:self.C], w)
state_obs = tf.reduce_sum(state_obs, axis=2)
for i in range(len(self.nb_actions)):
local_obs1 = [state_obs[:,j] for j in self.adjacent_list[i]]
local_obs1 = tf.stack(local_obs1, axis=1) # local_obs_joint.append(local_obs)
local_obs2 = [obs[:, j, self.C] for j in self.adjacent_list[i]]
local_obs2 = tf.stack(local_obs2, axis=1)
x = tf.concat([local_obs1, local_obs2], axis=1)
adjacent_num = len(self.adjacent_list[i])
# local_output = tf.zeros([None, adjacent_num], tf.float32)
local_output = [obs[:,0,0]*0.0]*self.stateNum
for hidden_size in self.hidden_sizes:
x = tf.layers.dense(x,
hidden_size) # , kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True)
if self.batch_norm:
x = tc.layers.batch_norm(x)
x = self.hidden_nonlinearity(x)
# y.append(x)
x = tf.layers.dense(x, adjacent_num)
x = tf.nn.softmax(x)
for j in range(len(self.adjacent_list[i])):
local_output[self.adjacent_list[i][j]] = x[:,j]
local_output = tf.stack(local_output, axis=1)
output.append(local_output)
x = tf.stack(output, axis=1)
# x = tf.reshape(x, [-1])
return x#{'action':x, 'y':y, 'local_obs_joint':local_obs_joint}
class DecActorPoliceAttention(Model):
def __init__(self, nb_actions, name='dec_actor', layer_norm=False, batch_norm=False, hidden_sizes=(),
hidden_nonlinearity=tf.nn.relu, C = 0, adjacent_list=[], N = 1):
super(DecActorPoliceAttention, self).__init__(name=name)
self.nb_actions = nb_actions
self.layer_norm = layer_norm
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
self.layer_norm = layer_norm
self.batch_norm = batch_norm
self.adjacent_list = np.zeros((len(adjacent_list), len(adjacent_list)), dtype=np.float32)
for i in range(len(adjacent_list)):
for j in adjacent_list[i]:
self.adjacent_list[i, j] = 1
self.stateNum = len(adjacent_list)
self.C = C
self.N = N
def __call__(self, obs, local_states, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
output = []
# obs = obs*8000.0
# y = []
# local_obs_joint = []
# w = tf.get_variable("temporal_weight", [self.C], trainable=True,
# initializer=tf.random_uniform_initializer(minval=-1, maxval=1))
# w = tf.nn.sigmoid(w)
# w = tf.get_variable("temporal_weight", [1], trainable=True,
# initializer=tf.random_uniform_initializer(minval=0, maxval=1))
# w = tf.nn.sigmoid(-w * tf.range(self.C, dtype=tf.float32))
w = tf.get_variable("temporal_weight", [1], trainable=True,
initializer=tf.random_uniform_initializer(minval=0, maxval=1))
w = tf.exp(-w * tf.range(self.C, dtype=tf.float32))
state_obs = tf.multiply(obs[:,:,:self.C], w)
state_obs = tf.reduce_sum(state_obs, axis=2)
joint_obs_masks = []
for i in range(self.N):
local_state = local_states[:, i]#tf.one_hot(tf.cast(local_states[:, i], tf.int32), self.stateNum)
obs_masks = tf.matmul(local_state, self.adjacent_list)
obs_masks = tf.where(tf.reduce_max(obs_masks, axis=1)>0, obs_masks, obs_masks + 1.0)
joint_obs_masks.append(obs_masks)
local_obs1 = state_obs*obs_masks
local_obs2 = obs[:, :, self.C]*obs_masks
x = tf.concat([local_obs1, local_obs2, local_state], axis=1)
for hidden_size in self.hidden_sizes:
x = tf.layers.dense(x,
hidden_size) # , kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True)
if self.batch_norm:
x = tc.layers.batch_norm(x)
x = self.hidden_nonlinearity(x)
# y.append(x)
x = tf.layers.dense(x, self.stateNum)
local_output = masked_softmax(x, obs_masks)
output.append(local_output)
x = tf.stack(output, axis=1)
# x = tf.reshape(x, [-1])
return x, joint_obs_masks
class CollectiveDecCriticPoliceAttention(Model):
def __init__(self, nb_actions, name='dec_collective_actor', layer_norm=False, batch_norm=False, hidden_sizes=(),
hidden_nonlinearity=tf.nn.relu, C = 0, adjacent_list=[]):
super(CollectiveDecActorPoliceAttention, self).__init__(name=name)
self.nb_actions = nb_actions
self.layer_norm = layer_norm
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
self.layer_norm = layer_norm
self.batch_norm = batch_norm
self.adjacent_list = adjacent_list
self.stateNum = len(adjacent_list)
self.C = C
def __call__(self, obs, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
output = []
# obs = obs*8000.0
# y = []
# local_obs_joint = []
# w = tf.get_variable("temporal_weight", [self.C], trainable=True,
# initializer=tf.random_uniform_initializer(minval=-1, maxval=1))
# w = tf.nn.sigmoid(w)
# w = tf.get_variable("temporal_weight", [1], trainable=True,
# initializer=tf.random_uniform_initializer(minval=0, maxval=1))
# w = tf.nn.sigmoid(-w * tf.range(self.C, dtype=tf.float32))
w = tf.get_variable("temporal_weight", [1], trainable=True,
initializer=tf.random_uniform_initializer(minval=0, maxval=1))
w = tf.exp(-w * tf.range(self.C, dtype=tf.float32))
state_obs = tf.multiply(obs[:,:,:self.C], w)
state_obs = tf.reduce_sum(state_obs, axis=2)
for i in range(len(self.nb_actions)):
local_obs1 = [state_obs[:,j] for j in self.adjacent_list[i]]
local_obs1 = tf.stack(local_obs1, axis=1) # local_obs_joint.append(local_obs)
local_obs2 = [obs[:, j, self.C] for j in self.adjacent_list[i]]
local_obs2 = tf.stack(local_obs2, axis=1)
x = tf.concat([local_obs1, local_obs2], axis=1)
adjacent_num = len(self.adjacent_list[i])
# local_output = tf.zeros([None, adjacent_num], tf.float32)
local_output = [obs[:,0,0]*0.0]*self.stateNum
for hidden_size in self.hidden_sizes:
x = tf.layers.dense(x,
hidden_size) # , kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True)
if self.batch_norm:
x = tc.layers.batch_norm(x)
x = self.hidden_nonlinearity(x)
# y.append(x)
x = tf.layers.dense(x, adjacent_num)
for j in range(len(self.adjacent_list[i])):
local_output[self.adjacent_list[i][j]] = x[:,j]
local_output = tf.stack(local_output, axis=1)
output.append(local_output)
x = tf.stack(output, axis=1)
# x = tf.reshape(x, [-1])
return x#{'action':x, 'y':y, 'local_obs_joint':local_obs_joint}
class CollectiveCenCriticPolice(Model):
def __init__(self, nb_actions, name='collective_critic', layer_norm=False, batch_norm = False, relu_output = True, hidden_sizes = (), hidden_nonlinearity = tf.nn.relu, adjacent_list = [], N = 10):
super(CollectiveCenCriticPolice, self).__init__(name=name)
self.layer_norm = layer_norm
self.batch_norm = batch_norm
self.nb_actions = nb_actions
self.relu_output = relu_output
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
self.zoneNum = len(nb_actions)
self.N = N
self.adjacent_list = adjacent_list
def __call__(self, obs, action_count, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
obs = obs#*self.N
action_count = action_count#*self.N
next_state_count = []
for i in range(len(self.nb_actions)):
x = tf.reduce_sum(action_count[:, :, i], axis=1)
# future reward
next_x = x
next_state_count.append(next_x)
next_state_count = tf.stack(next_state_count, axis=1)
x = tf.concat([next_state_count, obs[:,self.zoneNum:]], axis=1)
for hidden_size in self.hidden_sizes:
x = tf.layers.dense(x,
hidden_size) # , kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True)
if self.batch_norm:
x = tc.layers.batch_norm(x)
x = self.hidden_nonlinearity(x)
output = tf.layers.dense(x, 1)[:,0]
return {'symbolic_val':output, 'next_state_count':next_state_count}
class CollectiveCenCriticPoliceFull(Model):
def __init__(self, nb_actions, name='collective_critic', layer_norm=False, batch_norm = False, relu_output = True, hidden_sizes = (), hidden_nonlinearity = tf.nn.relu, C = 0, adjacent_list = [],discretized_travel_times = [], N = 10):
super(CollectiveCenCriticPoliceFull, self).__init__(name=name)
self.layer_norm = layer_norm
self.batch_norm = batch_norm
self.nb_actions = nb_actions
self.relu_output = relu_output
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
self.zoneNum = len(nb_actions)
self.N = N
self.adjacent_list = adjacent_list
self.C = C
self.discretized_travel_times = discretized_travel_times
def __call__(self, obs, action_count, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
obs = obs#*self.N
action_count = action_count#*self.N
next_state_count = []
# w = tf.get_variable("temporal_weight", [self.C], trainable=True,
# initializer=tf.random_uniform_initializer(minval=-1, maxval=1))
# w = tf.nn.sigmoid(w)
# w = tf.get_variable("temporal_weight", [1], trainable=True,
# initializer=tf.random_uniform_initializer(minval=0, maxval=1))
# w = tf.nn.sigmoid(-w * tf.range(self.C, dtype=tf.float32))
w = tf.get_variable("temporal_weight", [1], trainable=True,
initializer=tf.random_uniform_initializer(minval=0, maxval=1))
w = tf.exp(-w * tf.range(self.C, dtype=tf.float32))
for i in range(len(self.nb_actions)):
temp = []
for c in range(self.C):
temp.append([obs[:, i, c]])
for j in self.adjacent_list[i]:
temp[self.discretized_travel_times[j, i]].append(action_count[:, j, i])
for c in range(self.C):
temp[c] = tf.reduce_sum(tf.stack(temp[c], axis=1), axis=1)
temp = tf.stack(temp, axis=1)
next_count = tf.reduce_sum(tf.multiply(temp, w), axis=1)
next_state_count.append(next_count)
# x = [action_count[:, :, i], obs[:,self.zoneNum+i]]#tf.reduce_sum(action_count[:, :, i], axis=1)
# # future reward
# x = tf.concat([action_count[:, :, i], tf.reshape(obs[:,self.zoneNum+i], [-1,1])], axis=1)
# next_x = tf.layers.dense(x, 1)[:,0]
# next_state_count.append(next_x)
next_state_count = tf.stack(next_state_count, axis=1)
x = next_state_count
for hidden_size in self.hidden_sizes:
x = tf.layers.dense(x,
hidden_size) # , kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True)
if self.batch_norm:
x = tc.layers.batch_norm(x)
x = self.hidden_nonlinearity(x)
output = tf.layers.dense(x, 1)[:,0]
return {'symbolic_val':output, 'next_state_count':next_state_count}
# tf.reshape(action_count, [-1, 24 * 24])
#
# x = tf.concat([next_state_count, obs[:, self.zoneNum:]], axis=1)
# for hidden_size in self.hidden_sizes:
# x = tf.layers.dense(x,
# hidden_size) # , kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)
# if self.layer_norm:
# x = tc.layers.layer_norm(x, center=True, scale=True)
# if self.batch_norm:
# x = tc.layers.batch_norm(x)
# x = self.hidden_nonlinearity(x)
class CollectiveCenCriticPoliceFullVPN(Model):
def __init__(self, nb_actions, name='collective_critic', layer_norm=False, batch_norm = False, relu_output = True, hidden_sizes = (), hidden_nonlinearity = tf.nn.relu, adjacent_list = [], C = 0, discretized_travel_times = [], N = 10):
super(CollectiveCenCriticPoliceFullVPN, self).__init__(name=name)
self.layer_norm = layer_norm
self.batch_norm = batch_norm
self.nb_actions = nb_actions
self.relu_output = relu_output
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
self.zoneNum = len(nb_actions)
self.C = C
self.N = N
self.adjacent_list = adjacent_list
self.discretized_travel_times = discretized_travel_times
def __call__(self, obs, action_count, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
state_count = []#action_count*0.0#*self.N
next_state_count = []
#temporal attention mechanism
# w = tf.get_variable("temporal_weight", [self.C], trainable=True,
# initializer=tf.random_uniform_initializer(minval=-1, maxval=1))
# w = tf.nn.sigmoid(w)
# w = tf.get_variable("temporal_weight", [1], trainable=True,
# initializer=tf.random_uniform_initializer(minval=0, maxval=1))
# w = tf.nn.sigmoid(-w * tf.range(self.C, dtype=tf.float32))
w = tf.get_variable("temporal_weight", [1], trainable=True,
initializer=tf.random_uniform_initializer(minval=0, maxval=1))
w = tf.exp(-w * tf.range(self.C, dtype=tf.float32))
for i in range(len(self.nb_actions)):
temp = []
for c in range(self.C):
temp.append([obs[:,i, c]])
for j in self.adjacent_list[i]:
temp[self.discretized_travel_times[j, i]].append(action_count[:,j, i])
for c in range(self.C):
temp[c] = tf.reduce_sum(tf.stack(temp[c], axis=1), axis=1)
temp = tf.stack(temp, axis=1)
next_count = tf.reduce_sum(tf.multiply(temp, w), axis=1)
next_state_count.append(next_count)
# x = [action_count[:, :, i], obs[:,self.zoneNum+i]]#tf.reduce_sum(action_count[:, :, i], axis=1)
# # future reward
# x = tf.concat([action_count[:, :, i], tf.reshape(obs[:,self.zoneNum+i], [-1,1])], axis=1)
# next_x = tf.layers.dense(x, 1)[:,0]
# next_state_count.append(next_x)
next_state_count = tf.stack(next_state_count, axis=1)
x = next_state_count
for hidden_size in self.hidden_sizes:
x = tf.layers.dense(x,
hidden_size) # , kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True)
if self.batch_norm:
x = tc.layers.batch_norm(x)
x = self.hidden_nonlinearity(x)
immediate_reward = tf.layers.dense(x, 1)[:,0]
x = next_state_count
for hidden_size in self.hidden_sizes:
x = tf.layers.dense(x,
hidden_size) # , kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True)
if self.batch_norm:
x = tc.layers.batch_norm(x)
x = self.hidden_nonlinearity(x)
next_return = tf.layers.dense(x, 1)[:, 0]
output = [immediate_reward, next_return]
output = tf.stack(output, axis=1)
x = tf.reduce_sum(output, axis=1)
return {'symbolic_val':x, 'immediate_reward':immediate_reward, 'next_return':next_return, 'next_state_count':next_state_count}
class DecCenCriticPoliceFullVPN(Model):
def __init__(self, nb_actions, name='collective_critic', layer_norm=False, batch_norm = False, relu_output = True, hidden_sizes = (), hidden_nonlinearity = tf.nn.relu, adjacent_list = [], C = 0, discretized_travel_times = [], N = 10):
super(DecCenCriticPoliceFullVPN, self).__init__(name=name)
self.layer_norm = layer_norm
self.batch_norm = batch_norm
self.nb_actions = nb_actions
self.relu_output = relu_output
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
self.zoneNum = len(nb_actions)
self.C = C
self.N = N
self.adjacent_list = adjacent_list
self.discretized_travel_times = discretized_travel_times
def __call__(self, obs, action_count, local_states, local_actions, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
state_count = []#action_count*0.0#*self.N
next_state_count = []
#temporal attention mechanism
# w = tf.get_variable("temporal_weight", [self.C], trainable=True,
# initializer=tf.random_uniform_initializer(minval=-1, maxval=1))
# w = tf.nn.sigmoid(w)
# w = tf.get_variable("temporal_weight", [1], trainable=True,
# initializer=tf.random_uniform_initializer(minval=0, maxval=1))
# w = tf.nn.sigmoid(-w * tf.range(self.C, dtype=tf.float32))
w = tf.get_variable("temporal_weight", [1], trainable=True,
initializer=tf.random_uniform_initializer(minval=0, maxval=1))
w = tf.exp(-w * tf.range(self.C, dtype=tf.float32))
for i in range(len(self.nb_actions)):
temp = []
for c in range(self.C):
temp.append([obs[:,i, c]])
for j in self.adjacent_list[i]:
temp[self.discretized_travel_times[j, i]].append(action_count[:,j, i])
for c in range(self.C):
temp[c] = tf.reduce_sum(tf.stack(temp[c], axis=1), axis=1)
temp = tf.stack(temp, axis=1)
next_count = tf.reduce_sum(tf.multiply(temp, w), axis=1)
next_state_count.append(next_count)
# x = [action_count[:, :, i], obs[:,self.zoneNum+i]]#tf.reduce_sum(action_count[:, :, i], axis=1)
# # future reward
# x = tf.concat([action_count[:, :, i], tf.reshape(obs[:,self.zoneNum+i], [-1,1])], axis=1)
# next_x = tf.layers.dense(x, 1)[:,0]
# next_state_count.append(next_x)
next_state_count = tf.stack(next_state_count, axis=1)
immediate_rewards = []
next_returns = []
i = 0
local_info = tf.concat([next_state_count, local_states[:, i], local_actions[:,i], tf.tile(tf.reshape(tf.one_hot(i, self.N), [1, self.N]), (tf.shape(obs)[0],1))], axis=1)
x = local_info#tf.concat([next_state_count, next_coverages, remaining_demands], axis=1)#next_state_count#
hidden = 0
for hidden_size in self.hidden_sizes:
x = tf.layers.dense(x,
hidden_size, name='hidden_'+str(hidden)) # , kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True, scope='ln_'+str(hidden))
if self.batch_norm:
x = tc.layers.batch_norm(x)
x = self.hidden_nonlinearity(x)
hidden += 1
immediate_reward = tf.layers.dense(x, 1, name='hidden_'+str(hidden))[:,0]
immediate_rewards.append(immediate_reward)
hidden += 1
x = local_info
for hidden_size in self.hidden_sizes:
x = tf.layers.dense(x,
hidden_size, name='hidden_'+str(hidden)) # , kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True, scope='ln_'+str(hidden))
if self.batch_norm:
x = tc.layers.batch_norm(x)
x = self.hidden_nonlinearity(x)
hidden += 1
next_return = tf.layers.dense(x, 1, name='hidden_'+str(hidden))[:, 0]
next_returns.append(next_return)
for i in range(1, self.N):
local_info = tf.concat([next_state_count, local_states[:, i], local_actions[:, i],
tf.tile(tf.reshape(tf.one_hot(i, self.N), [1, self.N]), (tf.shape(obs)[0], 1))],
axis=1)
x = local_info # tf.concat([next_state_count, next_coverages, remaining_demands], axis=1)#next_state_count#
hidden = 0
for hidden_size in self.hidden_sizes:
x = tf.layers.dense(x,
hidden_size, name='hidden_' + str(
hidden), reuse=True) # , kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True, scope='ln_' + str(hidden), reuse=True)
if self.batch_norm:
x = tc.layers.batch_norm(x)
x = self.hidden_nonlinearity(x)
hidden += 1
immediate_reward = tf.layers.dense(x, 1, name='hidden_' + str(hidden), reuse=True)[:, 0]
immediate_rewards.append(immediate_reward)
hidden += 1
x = local_info
for hidden_size in self.hidden_sizes:
x = tf.layers.dense(x,
hidden_size, name='hidden_' + str(
hidden), reuse=True) # , kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True, scope='ln_' + str(hidden), reuse=True)
if self.batch_norm:
x = tc.layers.batch_norm(x)
x = self.hidden_nonlinearity(x)
hidden += 1
next_return = tf.layers.dense(x, 1, name='hidden_' + str(hidden), reuse=True)[:, 0]
next_returns.append(next_return)
next_returns = tf.stack(next_returns, axis=1)
immediate_rewards = tf.stack(immediate_rewards, axis=1)
output = [immediate_rewards, next_returns]
output = tf.stack(output, axis=1)
x = tf.reduce_sum(output, axis=1)
return {'symbolic_val':x, 'immediate_reward':immediate_rewards, 'next_return':next_returns, 'next_state_count':next_state_count}
class CollectiveCenCriticPoliceNeighboring(Model):
def __init__(self, nb_actions, name='collective_critic', layer_norm=False, batch_norm=False, relu_output=True,
hidden_sizes=(), hidden_nonlinearity=tf.nn.relu, adjacent_list=[], N=10):
super(CollectiveCenCriticPoliceNeighboring, self).__init__(name=name)
self.layer_norm = layer_norm
self.batch_norm = batch_norm
self.nb_actions = nb_actions
self.relu_output = relu_output
self.hidden_sizes = hidden_sizes
self.hidden_nonlinearity = hidden_nonlinearity
self.zoneNum = len(nb_actions)
self.N = N
self.adjacent_list = adjacent_list
def __call__(self, obs, action_count, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
obs = obs # *self.N
action_count = action_count # *self.N
next_state_count = []
for i in range(len(self.nb_actions)):
x = tf.reduce_sum(action_count[:, :, i], axis=1)
# future reward
next_x = x
next_state_count.append(next_x)
next_state_count = tf.stack(next_state_count, axis=1)
future_count = obs[:, self.zoneNum:]
x = tf.concat([next_state_count, obs[:, self.zoneNum:]], axis=1)
output = []
for i in range(len(self.nb_actions)):
local_obs = [next_state_count[:, j] for j in self.adjacent_list[i]]
local_obs.extend([future_count[:,j] for j in self.adjacent_list[i]])
local_obs = tf.stack(local_obs, axis=1) # local_obs_joint.append(local_obs)
x = tf.layers.dense(local_obs, 1)[:, 0]
x = self.hidden_nonlinearity(x)
output.append(x)
output = tf.stack(output, axis=1)
x = output
for hidden_size in self.hidden_sizes:
x = tf.layers.dense(x,
hidden_size) # , kernel_initializer=tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)
if self.layer_norm:
x = tc.layers.layer_norm(x, center=True, scale=True)
if self.batch_norm:
x = tc.layers.batch_norm(x)
x = self.hidden_nonlinearity(x)
output = tf.layers.dense(x, 1)[:, 0]
return {'symbolic_val': output, 'next_state_count': next_state_count}
| 47.600445
| 239
| 0.573435
| 7,913
| 64,213
| 4.424744
| 0.030077
| 0.042156
| 0.034901
| 0.051981
| 0.921201
| 0.916802
| 0.907691
| 0.900208
| 0.890212
| 0.877988
| 0
| 0.015457
| 0.309859
| 64,213
| 1,348
| 240
| 47.635757
| 0.774619
| 0.197141
| 0
| 0.834056
| 0
| 0
| 0.015606
| 0.001037
| 0
| 0
| 0
| 0
| 0
| 1
| 0.060738
| false
| 0
| 0.005423
| 0.003254
| 0.126898
| 0.001085
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2dc66068fe0b396c65e2eea2b261d447fc3a28fd
| 204
|
py
|
Python
|
checkcel/__init__.py
|
mboudet/validator
|
9af374674526115e34d5144d607ee7388d22e7b2
|
[
"MIT"
] | null | null | null |
checkcel/__init__.py
|
mboudet/validator
|
9af374674526115e34d5144d607ee7388d22e7b2
|
[
"MIT"
] | 2
|
2022-01-19T13:15:35.000Z
|
2022-01-19T13:16:00.000Z
|
checkcel/__init__.py
|
mboudet/validator
|
9af374674526115e34d5144d607ee7388d22e7b2
|
[
"MIT"
] | null | null | null |
from checkcel.checkcel import Checkcel # noqa
from checkcel.checkerator import Checkerator # noqa
from checkcel.checkxtractor import Checkxtractor # noqa
from checkcel.checkplate import Checkplate # noqa
| 40.8
| 55
| 0.843137
| 24
| 204
| 7.166667
| 0.291667
| 0.27907
| 0.27907
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 204
| 4
| 56
| 51
| 0.955556
| 0.093137
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
2de3e48e2ba408e53b3f945119b386999f932388
| 2,265
|
py
|
Python
|
script.py
|
Lathanao/MySQL-bench
|
c82a402f30db02bb87c77a32ac283d775052b787
|
[
"MIT"
] | null | null | null |
script.py
|
Lathanao/MySQL-bench
|
c82a402f30db02bb87c77a32ac283d775052b787
|
[
"MIT"
] | null | null | null |
script.py
|
Lathanao/MySQL-bench
|
c82a402f30db02bb87c77a32ac283d775052b787
|
[
"MIT"
] | null | null | null |
import calendar
import requests
import time
import math
# Create a plain text calendar
c = calendar.TextCalendar(calendar.THURSDAY)
str = c.formatmonth(2025, 1, 0, 0)
print(str)
warm_up = time.time()
variable = []
urls = [
'http://manage-vagrant.fashion-ec.asia/brand/lip-service',
'http://manage-vagrant.fashion-ec.asia/goods/lip-service/tops/0004523135607',
'http://manage-vagrant.fashion-ec.asia/brand/lip-service',
'http://manage-vagrant.fashion-ec.asia/goods/lip-service/jacket-outerwear/0004634515707',
'http://manage-vagrant.fashion-ec.asia/brand/lip-service',
'http://manage-vagrant.fashion-ec.asia/goods/lip-service/dress/0004623011307',
'http://manage-vagrant.fashion-ec.asia/brand/lip-service',
'http://manage-vagrant.fashion-ec.asia/goods/lip-service/skirt/0004632015907',
'http://manage-vagrant.fashion-ec.asia/brand/lip-service',
'http://manage-vagrant.fashion-ec.asia/',
'http://manage-vagrant.fashion-ec.asia/brand/american-holic',
'http://manage-vagrant.fashion-ec.asia/goods/american-holic/jacket-outerwear/h0184i30020.html',
'http://manage-vagrant.fashion-ec.asia/goods/american-holic/jacket-outerwear/h0184i30014.html',
'http://manage-vagrant.fashion-ec.asia/brand/american-holic',
'http://manage-vagrant.fashion-ec.asia/goods/american-holic/dress/h0173h40030.html',
'http://manage-vagrant.fashion-ec.asia/brand/american-holic',
'http://manage-vagrant.fashion-ec.asia/goods/american-holic/jacket-outerwear/h0184i30020.html',
'http://manage-vagrant.fashion-ec.asia/goods/american-holic/jacket-outerwear/h0184i30004.html',
'http://manage-vagrant.fashion-ec.asia/',
]
print(variable)
# x = 1234.5678
# x = 1234.5678
# print(math.modf(x)) # (0.5678000000000338, 1234.0)
# print(x // 1) # (0.5678000000000338, 1234.0)
# print(x) # (0.5678000000000338, 1234.0)
# for url in urls:
# print( url )
# for url in urls:
# start_time = time.time()
# r = requests.get(url)
# print( ((time.time() - start_time) * 1000) // 1)
for url in urls:
print( url )
for url in urls:
start_time = time.time()
r = requests.get(url).elapsed.total_seconds()
print(r * 1000)
time.sleep(0.1)
# print( ((time.time() - start_time) * 1000) // 1)
| 34.318182
| 99
| 0.700662
| 315
| 2,265
| 5.019048
| 0.203175
| 0.120177
| 0.204301
| 0.288425
| 0.766603
| 0.752056
| 0.716635
| 0.660974
| 0.660974
| 0.660974
| 0
| 0.101959
| 0.120971
| 2,265
| 65
| 100
| 34.846154
| 0.692115
| 0.175276
| 0
| 0.368421
| 0
| 0.236842
| 0.694054
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.105263
| 0
| 0.105263
| 0.105263
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fa999185990f96bb84d50e28e9b160b997baa9f1
| 485
|
py
|
Python
|
jupyterlab2pymolpysnips/Jupyter/ipymolStart.py
|
MooersLab/pymolpysnips
|
50a89c85adf8006d85c1d6cd3f8aad7e440a0b92
|
[
"MIT"
] | null | null | null |
jupyterlab2pymolpysnips/Jupyter/ipymolStart.py
|
MooersLab/pymolpysnips
|
50a89c85adf8006d85c1d6cd3f8aad7e440a0b92
|
[
"MIT"
] | null | null | null |
jupyterlab2pymolpysnips/Jupyter/ipymolStart.py
|
MooersLab/pymolpysnips
|
50a89c85adf8006d85c1d6cd3f8aad7e440a0b92
|
[
"MIT"
] | null | null | null |
"""
cmd.do('# Start pymol in terminal with pymol -R;')
cmd.do('# Select pymol.python as kernel in juptyer;')
cmd.do('from ipymol import viewer as ipv;')
cmd.do('ipv.start() # Start PyMOL RPC server;')
"""
cmd.do('# Start pymol in terminal with pymol -R;')
cmd.do('# Select pymol.python as kernel in juptyer;')
cmd.do('from ipymol import viewer as ipv;')
cmd.do('ipv.start() # Start PyMOL RPC server;')
# Description: Code to start the RPC server with ipymol.
# Source: placeHolder
| 32.333333
| 57
| 0.694845
| 79
| 485
| 4.265823
| 0.329114
| 0.118694
| 0.059347
| 0.089021
| 0.818991
| 0.818991
| 0.818991
| 0.818991
| 0.818991
| 0.818991
| 0
| 0
| 0.150515
| 485
| 14
| 58
| 34.642857
| 0.817961
| 0.564948
| 0
| 0
| 0
| 0
| 0.761194
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
fa9cb3107a56f9f7e0de6d7da2dba414b4e9b52d
| 3,692
|
py
|
Python
|
src/c3nav/mapdata/migrations/0053_i18nfield.py
|
johnjohndoe/c3nav
|
a17f863a3512e305595c16b0300796b6bae81241
|
[
"Apache-2.0"
] | 132
|
2016-11-12T01:45:23.000Z
|
2022-03-08T15:17:10.000Z
|
src/c3nav/mapdata/migrations/0053_i18nfield.py
|
johnjohndoe/c3nav
|
a17f863a3512e305595c16b0300796b6bae81241
|
[
"Apache-2.0"
] | 66
|
2016-09-29T09:46:19.000Z
|
2022-03-11T23:26:18.000Z
|
src/c3nav/mapdata/migrations/0053_i18nfield.py
|
johnjohndoe/c3nav
|
a17f863a3512e305595c16b0300796b6bae81241
|
[
"Apache-2.0"
] | 42
|
2016-09-29T08:34:57.000Z
|
2022-03-08T15:17:15.000Z
|
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-29 23:28
from __future__ import unicode_literals
import c3nav.mapdata.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mapdata', '0052_auto_20171125_1335'),
]
operations = [
migrations.AlterField(
model_name='accessrestriction',
name='titles',
field=c3nav.mapdata.fields.I18nField(fallback_any=True, fallback_value='{model_name} {pk}',
plural_name='titles'),
),
migrations.AlterField(
model_name='area',
name='titles',
field=c3nav.mapdata.fields.I18nField(fallback_any=True, fallback_value='{model_name} {pk}',
plural_name='titles'),
),
migrations.AlterField(
model_name='level',
name='titles',
field=c3nav.mapdata.fields.I18nField(fallback_any=True, fallback_value='{model_name} {pk}',
plural_name='titles'),
),
migrations.AlterField(
model_name='locationgroup',
name='titles',
field=c3nav.mapdata.fields.I18nField(fallback_any=True, fallback_value='{model_name} {pk}',
plural_name='titles'),
),
migrations.AlterField(
model_name='locationgroupcategory',
name='titles',
field=c3nav.mapdata.fields.I18nField(fallback_any=True, fallback_value='{model_name} {pk}',
plural_name='titles'),
),
migrations.AlterField(
model_name='poi',
name='titles',
field=c3nav.mapdata.fields.I18nField(fallback_any=True, fallback_value='{model_name} {pk}',
plural_name='titles'),
),
migrations.AlterField(
model_name='space',
name='titles',
field=c3nav.mapdata.fields.I18nField(fallback_any=True, fallback_value='{model_name} {pk}',
plural_name='titles'),
),
migrations.AlterField(
model_name='waytype',
name='titles',
field=c3nav.mapdata.fields.I18nField(fallback_any=True, fallback_value='{model_name} {pk}',
plural_name='titles'),
),
migrations.RenameField(
model_name='accessrestriction',
old_name='titles',
new_name='title',
),
migrations.RenameField(
model_name='area',
old_name='titles',
new_name='title',
),
migrations.RenameField(
model_name='level',
old_name='titles',
new_name='title',
),
migrations.RenameField(
model_name='locationgroup',
old_name='titles',
new_name='title',
),
migrations.RenameField(
model_name='locationgroupcategory',
old_name='titles',
new_name='title',
),
migrations.RenameField(
model_name='poi',
old_name='titles',
new_name='title',
),
migrations.RenameField(
model_name='space',
old_name='titles',
new_name='title',
),
migrations.RenameField(
model_name='waytype',
old_name='titles',
new_name='title',
),
]
| 35.161905
| 103
| 0.509209
| 312
| 3,692
| 5.794872
| 0.179487
| 0.119469
| 0.089602
| 0.128319
| 0.773783
| 0.773783
| 0.759956
| 0.759956
| 0.759956
| 0.759956
| 0
| 0.025217
| 0.377031
| 3,692
| 104
| 104
| 35.5
| 0.76087
| 0.018418
| 0
| 0.907216
| 1
| 0
| 0.138083
| 0.017951
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.030928
| 0
| 0.061856
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fac3cb8f59805d2a1f0d00c7e75530caba664f96
| 3,612
|
py
|
Python
|
tools/binary_size/libsupersize/match_util_test.py
|
zealoussnow/chromium
|
fd8a8914ca0183f0add65ae55f04e287543c7d4a
|
[
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668
|
2015-01-01T01:57:10.000Z
|
2022-03-31T23:33:32.000Z
|
tools/binary_size/libsupersize/match_util_test.py
|
zealoussnow/chromium
|
fd8a8914ca0183f0add65ae55f04e287543c7d4a
|
[
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113
|
2015-05-04T09:58:14.000Z
|
2022-01-31T19:35:03.000Z
|
tools/binary_size/libsupersize/match_util_test.py
|
zealoussnow/chromium
|
fd8a8914ca0183f0add65ae55f04e287543c7d4a
|
[
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941
|
2015-01-02T11:32:21.000Z
|
2022-03-31T16:35:46.000Z
|
#!/usr/bin/env python3
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import re
import unittest
import match_util
class MatchHelperTest(unittest.TestCase):
def testExpandRegexIdentifierPlaceholder(self):
def matches(pattern, target):
regex = re.compile(match_util.ExpandRegexIdentifierPlaceholder(pattern))
return bool(regex.search(target) and regex.search(' %s ' % target))
self.assertTrue(matches(r'{{hello_world}}', 'helloWorld'))
self.assertTrue(matches(r'{{hello_world}}', 'HelloWorld'))
self.assertTrue(matches(r'{{hello_world}}', 'kHelloWorld'))
self.assertTrue(matches(r'{{hello_world}}', 'hello_world'))
self.assertTrue(matches(r'{{hello_world}}', '_hello_world'))
self.assertTrue(matches(r'{{hello_world}}', 'hello_world_}}'))
self.assertTrue(matches(r'{{hello_world}}', 'HELLO_WORLD'))
self.assertTrue(matches(r'{{hello_world}}', 'HELLO_WORLD1'))
self.assertTrue(matches(r'{{hello_world}}', 'kHelloWorld1'))
self.assertFalse(matches(r'{{hello_world}}', 'hello world'))
self.assertFalse(matches(r'{{hello_world}}', 'helloworld'))
self.assertFalse(matches(r'{{hello_world}}', 'f_hello_world'))
self.assertFalse(matches(r'{{hello_world}}', 'hello_world_f'))
self.assertFalse(matches(r'{{hello_world}}', 'hello/world'))
self.assertFalse(matches(r'{{hello_world}}', 'helloWORLD'))
self.assertFalse(matches(r'{{hello_world}}', 'HELLOworld'))
self.assertFalse(matches(r'{{hello_world}}', 'HELLOWORLD'))
self.assertFalse(matches(r'{{hello_world}}', 'FOO_HELLO_WORLD'))
self.assertFalse(matches(r'{{hello_world}}', 'HELLO_WORLD_BAR'))
self.assertFalse(matches(r'{{hello_world}}', 'FooHelloWorld'))
self.assertFalse(matches(r'{{hello_world}}', 'HelloWorldBar'))
self.assertFalse(matches(r'{{hello_world}}', 'foohello/world'))
self.assertFalse(matches(r'{{hello_world}}', '1HELLO_WORLD'))
self.assertTrue(matches(r'{{_hello_world_}}', 'helloWorld'))
self.assertTrue(matches(r'{{_hello_world_}}', 'HelloWorld'))
self.assertTrue(matches(r'{{_hello_world_}}', 'kHelloWorld'))
self.assertTrue(matches(r'{{_hello_world_}}', 'hello_world'))
self.assertTrue(matches(r'{{_hello_world_}}', '_hello_world'))
self.assertTrue(matches(r'{{_hello_world_}}', 'hello_world_'))
self.assertTrue(matches(r'{{_hello_world_}}', 'HELLO_WORLD'))
self.assertTrue(matches(r'{{_hello_world_}}', 'HELLO_WORLD1'))
self.assertTrue(matches(r'{{_hello_world_}}', 'kHelloWorld1'))
self.assertFalse(matches(r'{{_hello_world_}}', 'hello world'))
self.assertFalse(matches(r'{{_hello_world_}}', 'helloworld'))
self.assertTrue(matches(r'{{_hello_world_}}', 'f_hello_world'))
self.assertTrue(matches(r'{{_hello_world_}}', 'hello_world_f'))
self.assertFalse(matches(r'{{_hello_world_}}', 'hello/world'))
self.assertFalse(matches(r'{{_hello_world_}}', 'helloWORLD'))
self.assertFalse(matches(r'{{_hello_world_}}', 'HELLOworld'))
self.assertFalse(matches(r'{{_hello_world_}}', 'HELLOWORLD'))
self.assertTrue(matches(r'{{_hello_world_}}', 'FOO_HELLO_WORLD'))
self.assertTrue(matches(r'{{_hello_world_}}', 'HELLO_WORLD_BAR'))
self.assertTrue(matches(r'{{_hello_world_}}', 'FooHelloWorld'))
self.assertTrue(matches(r'{{_hello_world_}}', 'HelloWorldBar'))
self.assertFalse(matches(r'{{_hello_world_}}', 'foohello/world'))
self.assertFalse(matches(r'{{_hello_world_}}', '1HELLO_WORLD'))
if __name__ == '__main__':
unittest.main()
| 51.6
| 78
| 0.704319
| 428
| 3,612
| 5.630841
| 0.165888
| 0.273859
| 0.248133
| 0.343568
| 0.829046
| 0.829046
| 0.782573
| 0.782573
| 0.773444
| 0.773444
| 0
| 0.003391
| 0.101883
| 3,612
| 69
| 79
| 52.347826
| 0.739519
| 0.049003
| 0
| 0.071429
| 0
| 0
| 0.376567
| 0
| 0
| 0
| 0
| 0
| 0.821429
| 1
| 0.035714
| false
| 0
| 0.053571
| 0
| 0.125
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
87ad094aba40604ca85cde2cea7841a1ef2b0e08
| 94
|
py
|
Python
|
src/components/kankeiforms/comparison/__init__.py
|
BigJerBD/Kankei-Backend
|
22e512405dff98c9b517d483ac7ddd168c459999
|
[
"MIT"
] | null | null | null |
src/components/kankeiforms/comparison/__init__.py
|
BigJerBD/Kankei-Backend
|
22e512405dff98c9b517d483ac7ddd168c459999
|
[
"MIT"
] | null | null | null |
src/components/kankeiforms/comparison/__init__.py
|
BigJerBD/Kankei-Backend
|
22e512405dff98c9b517d483ac7ddd168c459999
|
[
"MIT"
] | null | null | null |
from .compare_two_kanji import CompareTwoKanji
from .compare_two_words import CompareTwoWords
| 31.333333
| 46
| 0.893617
| 12
| 94
| 6.666667
| 0.666667
| 0.275
| 0.35
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085106
| 94
| 2
| 47
| 47
| 0.930233
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
87c00f9800e077bb5e6f258c54c471d82a303460
| 11,041
|
py
|
Python
|
tests/Test_TeacherView.py
|
TestowanieAutomatyczneUG/projekt-i-Rafal-Majewski
|
b618680844849a5e64a5daf56e8be80d4f4bd73e
|
[
"CC0-1.0"
] | null | null | null |
tests/Test_TeacherView.py
|
TestowanieAutomatyczneUG/projekt-i-Rafal-Majewski
|
b618680844849a5e64a5daf56e8be80d4f4bd73e
|
[
"CC0-1.0"
] | null | null | null |
tests/Test_TeacherView.py
|
TestowanieAutomatyczneUG/projekt-i-Rafal-Majewski
|
b618680844849a5e64a5daf56e8be80d4f4bd73e
|
[
"CC0-1.0"
] | null | null | null |
import unittest
from modules.TeacherView import TeacherView
from modules.Teacher import Teacher
from modules.Student import Student
from modules.Grade import Grade
from modules.Subject import Subject
from modules.GradeValue import GradeValue
from modules.Comment import Comment
from datetime import datetime as Datetime
class Test_TeacherView_constructor(unittest.TestCase):
def test_no_arguments(self):
self.assertRaises(TypeError, TeacherView)
def test_correct(self):
teacher = Teacher(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517"
)
TeacherView(teacher=teacher)
class Test_TeacherView_giveGrade(unittest.TestCase):
def test_teacher_not_assigned_to_grade(self):
subject = Subject(id="test", name="Math")
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
subjects=[subject]
)
teacher1 = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
subjects=[subject]
)
teacher2 = Teacher(
firstName="John",
lastName="Smith",
pesel="80062141433",
subjects=[subject]
)
teacherView = TeacherView(teacher1)
datetime = Datetime(year=2020, month=1, day=1)
grade = Grade(
teacher=teacher2,
subject=subject,
datetime=datetime,
value=GradeValue.G3PLUS
)
with self.assertRaises(ValueError):
teacherView.giveGrade(student, grade)
def test_return_value(self):
subject = Subject(id="test", name="Math")
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
subjects=[subject]
)
teacher = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
subjects=[subject]
)
teacherView = TeacherView(teacher)
datetime = Datetime(year=2020, month=1, day=1)
grade = Grade(
teacher=teacher,
subject=subject,
datetime=datetime,
value=GradeValue.G3PLUS
)
self.assertIs(teacherView.giveGrade(student, grade), grade)
def test_wrong_subject(self):
subject = Subject(id="test", name="Math")
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
subjects=[]
)
teacher = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
subjects=[subject]
)
teacherView = TeacherView(teacher)
datetime = Datetime(year=2020, month=1, day=1)
grade = Grade(
teacher=teacher,
subject=subject,
datetime=datetime,
value=GradeValue.G3PLUS
)
with self.assertRaises(ValueError):
teacherView.giveGrade(student, grade)
def test_wrong_teacher(self):
subject = Subject(id="test", name="Math")
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
subjects=[subject]
)
teacher = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
subjects=[]
)
teacherView = TeacherView(teacher)
datetime = Datetime(year=2020, month=1, day=1)
grade = Grade(
teacher=teacher,
subject=subject,
datetime=datetime,
value=GradeValue.G3PLUS
)
with self.assertRaises(ValueError):
teacherView.giveGrade(student, grade)
def test_if_adds(self):
subject = Subject(id="test", name="Math")
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
subjects=[subject]
)
teacher = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
subjects=[subject]
)
teacherView = TeacherView(teacher)
datetime = Datetime(year=2020, month=1, day=1)
grade = Grade(
teacher=teacher,
subject=subject,
datetime=datetime,
value=GradeValue.G3PLUS
)
teacherView.giveGrade(student, grade)
self.assertIn(grade, student.grades)
class Test_takeGrade(unittest.TestCase):
def test_teacher_not_assigned_to_grade(self):
subject = Subject(id="test", name="Math")
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
subjects=[subject]
)
teacher1 = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
subjects=[subject]
)
teacher2 = Teacher(
firstName="John",
lastName="Smith",
pesel="80062141433",
subjects=[subject]
)
teacherView = TeacherView(teacher1)
datetime = Datetime(year=2020, month=1, day=1)
grade = Grade(
teacher=teacher2,
subject=subject,
datetime=datetime,
value=GradeValue.G3PLUS
)
with self.assertRaises(ValueError):
teacherView.takeGrade(student, grade)
def test_return_value(self):
subject = Subject(id="test", name="Math")
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
subjects=[subject]
)
teacher = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
subjects=[subject]
)
teacherView = TeacherView(teacher)
datetime = Datetime(year=2020, month=1, day=1)
grade = Grade(
teacher=teacher,
subject=subject,
datetime=datetime,
value=GradeValue.G3PLUS
)
teacherView.giveGrade(student, grade)
self.assertIs(teacherView.takeGrade(student, grade), grade)
def test_if_removes(self):
subject = Subject(id="test", name="Math")
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
subjects=[subject]
)
teacher = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
subjects=[subject]
)
teacherView = TeacherView(teacher)
datetime = Datetime(year=2020, month=1, day=1)
grade = Grade(
teacher=teacher,
subject=subject,
datetime=datetime,
value=GradeValue.G3PLUS
)
teacherView.giveGrade(student, grade)
teacherView.takeGrade(student, grade)
self.assertNotIn(grade, student.grades)
def test_wrong_subject(self):
subject = Subject(id="test", name="Math")
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
subjects=[subject]
)
teacher = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
subjects=[subject]
)
teacherView = TeacherView(teacher)
datetime = Datetime(year=2020, month=1, day=1)
grade = Grade(
teacher=teacher,
subject=subject,
datetime=datetime,
value=GradeValue.G3PLUS
)
teacherView.giveGrade(student, grade)
student.unassignSubject(subject)
with self.assertRaises(ValueError):
teacherView.takeGrade(student, grade)
def test_wrong_teacher(self):
subject = Subject(id="test", name="Math")
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
subjects=[subject]
)
teacher = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
subjects=[subject]
)
teacherView = TeacherView(teacher)
datetime = Datetime(year=2020, month=1, day=1)
grade = Grade(
teacher=teacher,
subject=subject,
datetime=datetime,
value=GradeValue.G3PLUS
)
teacherView.giveGrade(student, grade)
teacher.unassignSubject(subject)
with self.assertRaises(ValueError):
teacherView.takeGrade(student, grade)
class Test_giveComment(unittest.TestCase):
def test_wrong_type(self):
subject = Subject(id="test", name="Math")
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
subjects=[subject]
)
teacher = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
subjects=[subject]
)
teacherView = TeacherView(teacher)
comment = 2
with self.assertRaises(TypeError):
teacherView.giveComment(student, comment)
def test_wrong_teacher(self):
teacher1 = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
)
teacher2 = Teacher(
firstName="John2",
lastName="Smith2",
pesel="80062141433",
)
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
)
teacherView = TeacherView(teacher1)
datetime = Datetime(year=2020, month=1, day=1)
comment = Comment(
teacher=teacher2,
content="test",
datetime=datetime,
)
with self.assertRaises(ValueError):
teacherView.giveComment(student, comment)
def test_correct_return_value(self):
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
)
teacher = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
)
teacherView = TeacherView(teacher)
datetime = Datetime(year=2020, month=1, day=1)
comment = Comment(
teacher=teacher,
datetime=datetime,
content="test"
)
self.assertIs(teacherView.giveComment(student, comment), comment)
def test_if_adds(self):
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
)
teacher = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
)
teacherView = TeacherView(teacher)
datetime = Datetime(year=2020, month=1, day=1)
comment = Comment(
teacher=teacher,
datetime=datetime,
content="test"
)
teacherView.giveComment(student, comment)
self.assertIn(comment, student.comments)
class Test_takeComment(unittest.TestCase):
def test_correct_return_value(self):
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
)
teacher = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
)
teacherView = TeacherView(teacher)
datetime = Datetime(year=2020, month=1, day=1)
comment = Comment(
teacher=teacher,
datetime=datetime,
content="test"
)
teacherView.giveComment(student, comment)
self.assertIs(teacherView.takeComment(student, comment), comment)
def test_if_removes(self):
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
)
teacher = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
)
teacherView = TeacherView(teacher)
datetime = Datetime(year=2020, month=1, day=1)
comment = Comment(
teacher=teacher,
datetime=datetime,
content="test"
)
teacherView.giveComment(student, comment)
teacherView.takeComment(student, comment)
self.assertNotIn(comment, student.comments)
def test_wrong_type(self):
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
)
teacher = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
)
teacherView = TeacherView(teacher)
datetime = Datetime(year=2020, month=1, day=1)
comment = Comment(
teacher=teacher,
datetime=datetime,
content="test"
)
teacherView.giveComment(student, comment)
with self.assertRaises(TypeError):
teacherView.takeComment(student, 2)
def test_wrong_teacher(self):
teacher1 = Teacher(
firstName="John",
lastName="Smith",
pesel="96071361238",
)
teacher2 = Teacher(
firstName="John2",
lastName="Smith2",
pesel="80062141433",
)
student = Student(
firstName="Jan",
lastName="Kowalski",
pesel="85052342517",
)
teacherView = TeacherView(teacher1)
datetime = Datetime(year=2020, month=1, day=1)
comment = Comment(
teacher=teacher2,
datetime=datetime,
content="test"
)
with self.assertRaises(ValueError):
teacherView.takeComment(student, comment)
| 23.293249
| 67
| 0.698035
| 1,160
| 11,041
| 6.597414
| 0.062069
| 0.071083
| 0.052267
| 0.073174
| 0.871292
| 0.840063
| 0.822815
| 0.815628
| 0.815628
| 0.815628
| 0
| 0.063927
| 0.17118
| 11,041
| 473
| 68
| 23.342495
| 0.772375
| 0
| 0
| 0.799107
| 0
| 0
| 0.088579
| 0
| 0
| 0
| 0
| 0
| 0.042411
| 1
| 0.044643
| false
| 0
| 0.020089
| 0
| 0.075893
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3550f9048be478f367f3add4bdf0b4f9ecd79f0a
| 99
|
py
|
Python
|
integration/tests_failed/assert_file.py
|
jleverenz/hurl
|
b81ca8ab7e0e409ec0c074fd8e118721ff4d3fb3
|
[
"Apache-2.0"
] | null | null | null |
integration/tests_failed/assert_file.py
|
jleverenz/hurl
|
b81ca8ab7e0e409ec0c074fd8e118721ff4d3fb3
|
[
"Apache-2.0"
] | null | null | null |
integration/tests_failed/assert_file.py
|
jleverenz/hurl
|
b81ca8ab7e0e409ec0c074fd8e118721ff4d3fb3
|
[
"Apache-2.0"
] | null | null | null |
from app import app
@app.route("/error-assert-file")
def error_assert_file():
return "Hello"
| 14.142857
| 32
| 0.707071
| 15
| 99
| 4.533333
| 0.666667
| 0.323529
| 0.441176
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151515
| 99
| 6
| 33
| 16.5
| 0.809524
| 0
| 0
| 0
| 0
| 0
| 0.232323
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0.25
| true
| 0
| 0.25
| 0.25
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 9
|
3563d37d5567494cab6a4790ba95aa1dcf9e028e
| 11,720
|
py
|
Python
|
django_socio_grpc/tests/assets/generated_protobuf_files.py
|
socotecio/django-socio-grpc
|
b01fc00347f2ca0f20d54085e6f807a4b4495caf
|
[
"Apache-2.0"
] | 13
|
2021-04-15T14:53:34.000Z
|
2022-02-28T13:13:36.000Z
|
django_socio_grpc/tests/assets/generated_protobuf_files.py
|
socotecio/django-socio-grpc
|
b01fc00347f2ca0f20d54085e6f807a4b4495caf
|
[
"Apache-2.0"
] | 1
|
2021-11-26T14:05:11.000Z
|
2021-11-26T14:05:11.000Z
|
django_socio_grpc/tests/assets/generated_protobuf_files.py
|
socotecio/django-socio-grpc
|
b01fc00347f2ca0f20d54085e6f807a4b4495caf
|
[
"Apache-2.0"
] | 2
|
2021-05-31T07:43:23.000Z
|
2021-07-08T07:51:50.000Z
|
SIMPLE_MODEL_GENERATED = """syntax = "proto3";
package myproject.unittestmodel;
import "google/protobuf/empty.proto";
service UnitTestModelController {
rpc List(UnitTestModelListRequest) returns (UnitTestModelListResponse) {}
rpc Create(UnitTestModel) returns (UnitTestModel) {}
rpc Retrieve(UnitTestModelRetrieveRequest) returns (UnitTestModel) {}
rpc Update(UnitTestModel) returns (UnitTestModel) {}
rpc Destroy(UnitTestModelDestroyRequest) returns (google.protobuf.Empty) {}
rpc Stream(UnitTestModelStreamRequest) returns (stream UnitTestModel) {}
}
message UnitTestModel {
int32 id = 1;
string title = 2;
string text = 3;
}
message UnitTestModelListRequest {
}
message UnitTestModelListResponse {
repeated UnitTestModel results = 1;
int32 count = 2;
}
message UnitTestModelRetrieveRequest {
int32 id = 1;
}
message UnitTestModelDestroyRequest {
int32 id = 1;
}
message UnitTestModelStreamRequest {
}
"""
SIMPLE_APP_MODEL_NO_GENERATION = """syntax = "proto3";
package myproject.fakeapp;
"""
SIMPLE_APP_MODEL_GENERATED = """syntax = "proto3";
package myproject.fakeapp;
import "google/protobuf/empty.proto";
service UnitTestModelController {
rpc List(UnitTestModelListRequest) returns (UnitTestModelListResponse) {}
rpc Create(UnitTestModel) returns (UnitTestModel) {}
rpc Retrieve(UnitTestModelRetrieveRequest) returns (UnitTestModel) {}
rpc Update(UnitTestModel) returns (UnitTestModel) {}
rpc Destroy(UnitTestModelDestroyRequest) returns (google.protobuf.Empty) {}
rpc Stream(UnitTestModelStreamRequest) returns (stream UnitTestModel) {}
}
message UnitTestModel {
int32 id = 1;
string title = 2;
string text = 3;
}
message UnitTestModelListRequest {
}
message UnitTestModelListResponse {
repeated UnitTestModel results = 1;
int32 count = 2;
}
message UnitTestModelRetrieveRequest {
int32 id = 1;
}
message UnitTestModelDestroyRequest {
int32 id = 1;
}
message UnitTestModelStreamRequest {
}
"""
ALL_APP_GENERATED = """syntax = "proto3";
package myproject.fakeapp;
import "google/protobuf/empty.proto";
import "google/protobuf/struct.proto";
service UnitTestModelController {
rpc List(UnitTestModelListRequest) returns (UnitTestModelListResponse) {}
rpc Create(UnitTestModel) returns (UnitTestModel) {}
rpc Retrieve(UnitTestModelRetrieveRequest) returns (UnitTestModel) {}
rpc Update(UnitTestModel) returns (UnitTestModel) {}
rpc Destroy(UnitTestModelDestroyRequest) returns (google.protobuf.Empty) {}
rpc Stream(UnitTestModelStreamRequest) returns (stream UnitTestModel) {}
}
service ForeignModelController {
rpc List(ForeignModelListRequest) returns (ForeignModelListResponse) {}
rpc Retrieve(ForeignModelRetrieveRequestCustom) returns (ForeignModelRetrieveRequestCustom) {}
}
service ManyManyModelController {
rpc List(ManyManyModelListRequest) returns (ManyManyModelListResponse) {}
rpc Create(ManyManyModel) returns (ManyManyModel) {}
rpc Retrieve(ManyManyModelRetrieveRequest) returns (ManyManyModel) {}
rpc Update(ManyManyModel) returns (ManyManyModel) {}
rpc Destroy(ManyManyModelDestroyRequest) returns (google.protobuf.Empty) {}
}
service RelatedFieldModelController {
rpc List(RelatedFieldModelListRequest) returns (RelatedFieldModelListResponse) {}
rpc Create(RelatedFieldModel) returns (RelatedFieldModel) {}
rpc Retrieve(RelatedFieldModelRetrieveRequest) returns (RelatedFieldModel) {}
rpc Update(RelatedFieldModel) returns (RelatedFieldModel) {}
rpc Destroy(RelatedFieldModelDestroyRequest) returns (google.protobuf.Empty) {}
}
service SpecialFieldsModelController {
rpc List(SpecialFieldsModelListRequest) returns (SpecialFieldsModelListResponse) {}
rpc Create(SpecialFieldsModel) returns (SpecialFieldsModel) {}
rpc Retrieve(SpecialFieldsModelRetrieveRequest) returns (SpecialFieldsModel) {}
rpc Update(SpecialFieldsModel) returns (SpecialFieldsModel) {}
rpc Destroy(SpecialFieldsModelDestroyRequest) returns (google.protobuf.Empty) {}
}
message UnitTestModel {
int32 id = 1;
string title = 2;
string text = 3;
}
message UnitTestModelListRequest {
}
message UnitTestModelListResponse {
repeated UnitTestModel results = 1;
int32 count = 2;
}
message UnitTestModelRetrieveRequest {
int32 id = 1;
}
message UnitTestModelDestroyRequest {
int32 id = 1;
}
message UnitTestModelStreamRequest {
}
message ForeignModel {
string uuid = 1;
string name = 2;
}
message ForeignModelListRequest {
}
message ForeignModelListResponse {
repeated ForeignModel results = 1;
int32 count = 2;
}
message ForeignModelRetrieveRequestCustom {
string name = 1;
}
message ManyManyModel {
string uuid = 1;
string name = 2;
}
message ManyManyModelListRequest {
}
message ManyManyModelListResponse {
repeated ManyManyModel results = 1;
int32 count = 2;
}
message ManyManyModelRetrieveRequest {
string uuid = 1;
}
message ManyManyModelDestroyRequest {
string uuid = 1;
}
message RelatedFieldModel {
string uuid = 1;
string foreign = 2;
}
message RelatedFieldModelListRequest {
}
message RelatedFieldModelListResponse {
string uuid = 1;
string foreign = 2;
repeated string many_many = 3;
string custom_field_name = 4;
repeated string list_custom_field_name = 5;
}
message RelatedFieldModelRetrieveRequest {
string uuid = 1;
}
message RelatedFieldModelDestroyRequest {
string uuid = 1;
}
message SpecialFieldsModel {
string uuid = 1;
google.protobuf.Struct meta_datas = 2;
repeated int32 list_datas = 3;
}
message SpecialFieldsModelListRequest {
}
message SpecialFieldsModelListResponse {
repeated SpecialFieldsModel results = 1;
int32 count = 2;
}
message SpecialFieldsModelRetrieveRequest {
string uuid = 1;
}
message SpecialFieldsModelDestroyRequest {
string uuid = 1;
}
message ImportStructEvenInArrayModel {
string id = 1;
repeated google.protobuf.Struct this_is_crazy = 2;
}
"""
CUSTOM_APP_MODEL_GENERATED = """syntax = "proto3";
package myproject.fakeapp;
service ForeignModelController {
rpc List(ForeignModelListRequest) returns (ForeignModelListResponse) {}
rpc Retrieve(ForeignModelRetrieveRequestCustom) returns (ForeignModelRetrieveRequestCustom) {}
}
message ForeignModel {
string uuid = 1;
string name = 2;
}
message ForeignModelListRequest {
}
message ForeignModelListResponse {
repeated ForeignModel results = 1;
int32 count = 2;
}
message ForeignModelRetrieveRequestCustom {
string name = 1;
}
"""
MODEL_WITH_M2M_GENERATED = """syntax = "proto3";
package myproject.fakeapp;
import "google/protobuf/empty.proto";
service RelatedFieldModelController {
rpc List(RelatedFieldModelListRequest) returns (RelatedFieldModelListResponse) {}
rpc Create(RelatedFieldModel) returns (RelatedFieldModel) {}
rpc Retrieve(RelatedFieldModelRetrieveRequest) returns (RelatedFieldModel) {}
rpc Update(RelatedFieldModel) returns (RelatedFieldModel) {}
rpc Destroy(RelatedFieldModelDestroyRequest) returns (google.protobuf.Empty) {}
}
message RelatedFieldModel {
string uuid = 1;
string foreign = 2;
}
message RelatedFieldModelListRequest {
}
message RelatedFieldModelListResponse {
string uuid = 1;
string foreign = 2;
repeated string many_many = 3;
string custom_field_name = 4;
repeated string list_custom_field_name = 5;
}
message RelatedFieldModelRetrieveRequest {
string uuid = 1;
}
message RelatedFieldModelDestroyRequest {
string uuid = 1;
}
"""
MODEL_WITH_STRUCT_IMORT_IN_ARRAY = """syntax = "proto3";
package myproject.fakeapp;
import "google/protobuf/struct.proto";
message ImportStructEvenInArrayModel {
string id = 1;
repeated google.protobuf.Struct this_is_crazy = 2;
}
"""
SIMPLE_APP_MODEL_OLD_ORDER = """syntax = "proto3";
package myproject.fakeapp;
import "google/protobuf/empty.proto";
service UnitTestModelController {
rpc List(UnitTestModelListRequest) returns (UnitTestModelListResponse) {}
rpc Create(UnitTestModel) returns (UnitTestModel) {}
rpc Retrieve(UnitTestModelRetrieveRequest) returns (UnitTestModel) {}
rpc Update(UnitTestModel) returns (UnitTestModel) {}
rpc Destroy(UnitTestModelDestroyRequest) returns (google.protobuf.Empty) {}
rpc Stream(UnitTestModelStreamRequest) returns (stream UnitTestModel) {}
}
message UnitTestModel {
int32 id = 1;
string text = 2;
}
message UnitTestModelListRequest {
}
message UnitTestModelListResponse {
repeated UnitTestModel results = 1;
int32 count = 2;
}
message UnitTestModelRetrieveRequest {
int32 id = 1;
}
message UnitTestModelDestroyRequest {
int32 id = 1;
}
message UnitTestModelStreamRequest {
}
"""
SIMPLE_APP_MODEL_GENERATED_FROM_OLD_ORDER = """syntax = "proto3";
package myproject.fakeapp;
import "google/protobuf/empty.proto";
service UnitTestModelController {
rpc List(UnitTestModelListRequest) returns (UnitTestModelListResponse) {}
rpc Create(UnitTestModel) returns (UnitTestModel) {}
rpc Retrieve(UnitTestModelRetrieveRequest) returns (UnitTestModel) {}
rpc Update(UnitTestModel) returns (UnitTestModel) {}
rpc Destroy(UnitTestModelDestroyRequest) returns (google.protobuf.Empty) {}
rpc Stream(UnitTestModelStreamRequest) returns (stream UnitTestModel) {}
}
message UnitTestModel {
int32 id = 1;
string text = 2;
string title = 3;
}
message UnitTestModelListRequest {
}
message UnitTestModelListResponse {
repeated UnitTestModel results = 1;
int32 count = 2;
}
message UnitTestModelRetrieveRequest {
int32 id = 1;
}
message UnitTestModelDestroyRequest {
int32 id = 1;
}
message UnitTestModelStreamRequest {
}
"""
APP_MODEL_WITH_CUSTOM_FIELD_OLD_ORDER = """syntax = "proto3";
package myproject.fakeapp;
import "google/protobuf/empty.proto";
service RelatedFieldModelController {
rpc List(RelatedFieldModelListRequest) returns (RelatedFieldModelListResponse) {}
rpc Create(RelatedFieldModel) returns (RelatedFieldModel) {}
rpc Retrieve(RelatedFieldModelRetrieveRequest) returns (RelatedFieldModel) {}
rpc Update(RelatedFieldModel) returns (RelatedFieldModel) {}
rpc Destroy(RelatedFieldModelDestroyRequest) returns (google.protobuf.Empty) {}
}
message RelatedFieldModel {
string uuid = 1;
}
message RelatedFieldModelListRequest {
}
message RelatedFieldModelListResponse {
string uuid = 1;
string custom_field_name = 2;
}
message RelatedFieldModelRetrieveRequest {
string uuid = 1;
}
message RelatedFieldModelDestroyRequest {
string uuid = 1;
}
"""
APP_MODEL_WITH_CUSTOM_FIELD_FROM_OLD_ORDER = """syntax = "proto3";
package myproject.fakeapp;
import "google/protobuf/empty.proto";
service RelatedFieldModelController {
rpc List(RelatedFieldModelListRequest) returns (RelatedFieldModelListResponse) {}
rpc Create(RelatedFieldModel) returns (RelatedFieldModel) {}
rpc Retrieve(RelatedFieldModelRetrieveRequest) returns (RelatedFieldModel) {}
rpc Update(RelatedFieldModel) returns (RelatedFieldModel) {}
rpc Destroy(RelatedFieldModelDestroyRequest) returns (google.protobuf.Empty) {}
}
message RelatedFieldModel {
string uuid = 1;
string foreign = 2;
}
message RelatedFieldModelListRequest {
}
message RelatedFieldModelListResponse {
string uuid = 1;
string custom_field_name = 2;
string foreign = 3;
repeated string many_many = 4;
repeated string list_custom_field_name = 5;
}
message RelatedFieldModelRetrieveRequest {
string uuid = 1;
}
message RelatedFieldModelDestroyRequest {
string uuid = 1;
}
"""
| 23.821138
| 98
| 0.754693
| 1,003
| 11,720
| 8.747757
| 0.090728
| 0.038295
| 0.030089
| 0.035104
| 0.862093
| 0.841919
| 0.831206
| 0.827901
| 0.814794
| 0.814794
| 0
| 0.015797
| 0.162799
| 11,720
| 491
| 99
| 23.869654
| 0.878414
| 0
| 0
| 0.661202
| 1
| 0
| 0.962116
| 0.432423
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.032787
| 0
| 0.032787
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
35c4fccf23782ef2965bedfa8f66549a8bca1ff2
| 665,480
|
py
|
Python
|
tests/test_nist_meta_6000.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 1
|
2021-08-14T17:59:21.000Z
|
2021-08-14T17:59:21.000Z
|
tests/test_nist_meta_6000.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 4
|
2020-02-12T21:30:44.000Z
|
2020-04-15T20:06:46.000Z
|
tests/test_nist_meta_6000.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | null | null | null |
from tests.utils import assert_bindings
def test_list_integer_enumeration_2_nistxml_sv_iv_list_integer_enumeration_3_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-3-1.xml",
class_name="NistschemaSvIvListIntegerEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_enumeration_2_nistxml_sv_iv_list_integer_enumeration_3_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-3-2.xml",
class_name="NistschemaSvIvListIntegerEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_enumeration_2_nistxml_sv_iv_list_integer_enumeration_3_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-3-3.xml",
class_name="NistschemaSvIvListIntegerEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_enumeration_2_nistxml_sv_iv_list_integer_enumeration_3_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-3-4.xml",
class_name="NistschemaSvIvListIntegerEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_enumeration_2_nistxml_sv_iv_list_integer_enumeration_3_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-3-5.xml",
class_name="NistschemaSvIvListIntegerEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_enumeration_1_nistxml_sv_iv_list_integer_enumeration_2_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-2-1.xml",
class_name="NistschemaSvIvListIntegerEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_enumeration_1_nistxml_sv_iv_list_integer_enumeration_2_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-2-2.xml",
class_name="NistschemaSvIvListIntegerEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_enumeration_1_nistxml_sv_iv_list_integer_enumeration_2_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-2-3.xml",
class_name="NistschemaSvIvListIntegerEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_enumeration_1_nistxml_sv_iv_list_integer_enumeration_2_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-2-4.xml",
class_name="NistschemaSvIvListIntegerEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_enumeration_1_nistxml_sv_iv_list_integer_enumeration_2_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-2-5.xml",
class_name="NistschemaSvIvListIntegerEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_enumeration_nistxml_sv_iv_list_integer_enumeration_1_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-1-1.xml",
class_name="NistschemaSvIvListIntegerEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_enumeration_nistxml_sv_iv_list_integer_enumeration_1_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-1-2.xml",
class_name="NistschemaSvIvListIntegerEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_enumeration_nistxml_sv_iv_list_integer_enumeration_1_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-1-3.xml",
class_name="NistschemaSvIvListIntegerEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_enumeration_nistxml_sv_iv_list_integer_enumeration_1_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-1-4.xml",
class_name="NistschemaSvIvListIntegerEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_enumeration_nistxml_sv_iv_list_integer_enumeration_1_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-enumeration-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-enumeration-1-5.xml",
class_name="NistschemaSvIvListIntegerEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_4_nistxml_sv_iv_list_integer_pattern_5_1(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-5-1.xml",
class_name="NistschemaSvIvListIntegerPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_4_nistxml_sv_iv_list_integer_pattern_5_2(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-5-2.xml",
class_name="NistschemaSvIvListIntegerPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_4_nistxml_sv_iv_list_integer_pattern_5_3(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-5-3.xml",
class_name="NistschemaSvIvListIntegerPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_4_nistxml_sv_iv_list_integer_pattern_5_4(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-5-4.xml",
class_name="NistschemaSvIvListIntegerPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_4_nistxml_sv_iv_list_integer_pattern_5_5(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-5-5.xml",
class_name="NistschemaSvIvListIntegerPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_3_nistxml_sv_iv_list_integer_pattern_4_1(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{11} \-\d{7} \-\d{3} \d{1} \d{5} \d{9} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-4-1.xml",
class_name="NistschemaSvIvListIntegerPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_3_nistxml_sv_iv_list_integer_pattern_4_2(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{11} \-\d{7} \-\d{3} \d{1} \d{5} \d{9} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-4-2.xml",
class_name="NistschemaSvIvListIntegerPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_3_nistxml_sv_iv_list_integer_pattern_4_3(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{11} \-\d{7} \-\d{3} \d{1} \d{5} \d{9} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-4-3.xml",
class_name="NistschemaSvIvListIntegerPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_3_nistxml_sv_iv_list_integer_pattern_4_4(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{11} \-\d{7} \-\d{3} \d{1} \d{5} \d{9} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-4-4.xml",
class_name="NistschemaSvIvListIntegerPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_3_nistxml_sv_iv_list_integer_pattern_4_5(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{11} \-\d{7} \-\d{3} \d{1} \d{5} \d{9} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-4-5.xml",
class_name="NistschemaSvIvListIntegerPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_2_nistxml_sv_iv_list_integer_pattern_3_1(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-3-1.xml",
class_name="NistschemaSvIvListIntegerPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_2_nistxml_sv_iv_list_integer_pattern_3_2(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-3-2.xml",
class_name="NistschemaSvIvListIntegerPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_2_nistxml_sv_iv_list_integer_pattern_3_3(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-3-3.xml",
class_name="NistschemaSvIvListIntegerPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_2_nistxml_sv_iv_list_integer_pattern_3_4(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-3-4.xml",
class_name="NistschemaSvIvListIntegerPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_2_nistxml_sv_iv_list_integer_pattern_3_5(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-3-5.xml",
class_name="NistschemaSvIvListIntegerPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_1_nistxml_sv_iv_list_integer_pattern_2_1(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{10} \-\d{4} \d{1} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-2-1.xml",
class_name="NistschemaSvIvListIntegerPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_1_nistxml_sv_iv_list_integer_pattern_2_2(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{10} \-\d{4} \d{1} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-2-2.xml",
class_name="NistschemaSvIvListIntegerPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_1_nistxml_sv_iv_list_integer_pattern_2_3(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{10} \-\d{4} \d{1} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-2-3.xml",
class_name="NistschemaSvIvListIntegerPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_1_nistxml_sv_iv_list_integer_pattern_2_4(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{10} \-\d{4} \d{1} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-2-4.xml",
class_name="NistschemaSvIvListIntegerPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_1_nistxml_sv_iv_list_integer_pattern_2_5(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{10} \-\d{4} \d{1} \d{7} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-2-5.xml",
class_name="NistschemaSvIvListIntegerPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_nistxml_sv_iv_list_integer_pattern_1_1(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{13} \-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-1-1.xml",
class_name="NistschemaSvIvListIntegerPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_nistxml_sv_iv_list_integer_pattern_1_2(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{13} \-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-1-2.xml",
class_name="NistschemaSvIvListIntegerPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_nistxml_sv_iv_list_integer_pattern_1_3(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{13} \-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-1-3.xml",
class_name="NistschemaSvIvListIntegerPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_nistxml_sv_iv_list_integer_pattern_1_4(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{13} \-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-1-4.xml",
class_name="NistschemaSvIvListIntegerPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_pattern_nistxml_sv_iv_list_integer_pattern_1_5(mode, save_output, output_format):
r"""
Type list/integer is restricted by facet pattern with value \-\d{18}
\-\d{13} \-\d{9} \-\d{5} \-\d{1} \d{3} \d{7} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-pattern-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-pattern-1-5.xml",
class_name="NistschemaSvIvListIntegerPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_4_nistxml_sv_iv_list_integer_length_5_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-5-1.xml",
class_name="NistschemaSvIvListIntegerLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_4_nistxml_sv_iv_list_integer_length_5_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-5-2.xml",
class_name="NistschemaSvIvListIntegerLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_4_nistxml_sv_iv_list_integer_length_5_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-5-3.xml",
class_name="NistschemaSvIvListIntegerLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_4_nistxml_sv_iv_list_integer_length_5_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-5-4.xml",
class_name="NistschemaSvIvListIntegerLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_4_nistxml_sv_iv_list_integer_length_5_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-5-5.xml",
class_name="NistschemaSvIvListIntegerLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_3_nistxml_sv_iv_list_integer_length_4_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-4-1.xml",
class_name="NistschemaSvIvListIntegerLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_3_nistxml_sv_iv_list_integer_length_4_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-4-2.xml",
class_name="NistschemaSvIvListIntegerLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_3_nistxml_sv_iv_list_integer_length_4_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-4-3.xml",
class_name="NistschemaSvIvListIntegerLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_3_nistxml_sv_iv_list_integer_length_4_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-4-4.xml",
class_name="NistschemaSvIvListIntegerLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_3_nistxml_sv_iv_list_integer_length_4_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-4-5.xml",
class_name="NistschemaSvIvListIntegerLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_2_nistxml_sv_iv_list_integer_length_3_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-3-1.xml",
class_name="NistschemaSvIvListIntegerLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_2_nistxml_sv_iv_list_integer_length_3_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-3-2.xml",
class_name="NistschemaSvIvListIntegerLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_2_nistxml_sv_iv_list_integer_length_3_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-3-3.xml",
class_name="NistschemaSvIvListIntegerLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_2_nistxml_sv_iv_list_integer_length_3_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-3-4.xml",
class_name="NistschemaSvIvListIntegerLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_2_nistxml_sv_iv_list_integer_length_3_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-3-5.xml",
class_name="NistschemaSvIvListIntegerLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_1_nistxml_sv_iv_list_integer_length_2_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-2-1.xml",
class_name="NistschemaSvIvListIntegerLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_1_nistxml_sv_iv_list_integer_length_2_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-2-2.xml",
class_name="NistschemaSvIvListIntegerLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_1_nistxml_sv_iv_list_integer_length_2_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-2-3.xml",
class_name="NistschemaSvIvListIntegerLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_1_nistxml_sv_iv_list_integer_length_2_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-2-4.xml",
class_name="NistschemaSvIvListIntegerLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_1_nistxml_sv_iv_list_integer_length_2_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-2-5.xml",
class_name="NistschemaSvIvListIntegerLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_nistxml_sv_iv_list_integer_length_1_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-1-1.xml",
class_name="NistschemaSvIvListIntegerLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_nistxml_sv_iv_list_integer_length_1_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-1-2.xml",
class_name="NistschemaSvIvListIntegerLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_nistxml_sv_iv_list_integer_length_1_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-1-3.xml",
class_name="NistschemaSvIvListIntegerLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_nistxml_sv_iv_list_integer_length_1_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-1-4.xml",
class_name="NistschemaSvIvListIntegerLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_length_nistxml_sv_iv_list_integer_length_1_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-length-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-length-1-5.xml",
class_name="NistschemaSvIvListIntegerLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_4_nistxml_sv_iv_list_integer_min_length_5_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-5-1.xml",
class_name="NistschemaSvIvListIntegerMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_4_nistxml_sv_iv_list_integer_min_length_5_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-5-2.xml",
class_name="NistschemaSvIvListIntegerMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_4_nistxml_sv_iv_list_integer_min_length_5_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-5-3.xml",
class_name="NistschemaSvIvListIntegerMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_4_nistxml_sv_iv_list_integer_min_length_5_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-5-4.xml",
class_name="NistschemaSvIvListIntegerMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_4_nistxml_sv_iv_list_integer_min_length_5_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-5-5.xml",
class_name="NistschemaSvIvListIntegerMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_3_nistxml_sv_iv_list_integer_min_length_4_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-4-1.xml",
class_name="NistschemaSvIvListIntegerMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_3_nistxml_sv_iv_list_integer_min_length_4_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-4-2.xml",
class_name="NistschemaSvIvListIntegerMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_3_nistxml_sv_iv_list_integer_min_length_4_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-4-3.xml",
class_name="NistschemaSvIvListIntegerMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_3_nistxml_sv_iv_list_integer_min_length_4_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-4-4.xml",
class_name="NistschemaSvIvListIntegerMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_3_nistxml_sv_iv_list_integer_min_length_4_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-4-5.xml",
class_name="NistschemaSvIvListIntegerMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_2_nistxml_sv_iv_list_integer_min_length_3_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-3-1.xml",
class_name="NistschemaSvIvListIntegerMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_2_nistxml_sv_iv_list_integer_min_length_3_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-3-2.xml",
class_name="NistschemaSvIvListIntegerMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_2_nistxml_sv_iv_list_integer_min_length_3_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-3-3.xml",
class_name="NistschemaSvIvListIntegerMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_2_nistxml_sv_iv_list_integer_min_length_3_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-3-4.xml",
class_name="NistschemaSvIvListIntegerMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_2_nistxml_sv_iv_list_integer_min_length_3_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-3-5.xml",
class_name="NistschemaSvIvListIntegerMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_1_nistxml_sv_iv_list_integer_min_length_2_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-2-1.xml",
class_name="NistschemaSvIvListIntegerMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_1_nistxml_sv_iv_list_integer_min_length_2_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-2-2.xml",
class_name="NistschemaSvIvListIntegerMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_1_nistxml_sv_iv_list_integer_min_length_2_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-2-3.xml",
class_name="NistschemaSvIvListIntegerMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_1_nistxml_sv_iv_list_integer_min_length_2_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-2-4.xml",
class_name="NistschemaSvIvListIntegerMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_1_nistxml_sv_iv_list_integer_min_length_2_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-2-5.xml",
class_name="NistschemaSvIvListIntegerMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_nistxml_sv_iv_list_integer_min_length_1_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-1-1.xml",
class_name="NistschemaSvIvListIntegerMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_nistxml_sv_iv_list_integer_min_length_1_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-1-2.xml",
class_name="NistschemaSvIvListIntegerMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_nistxml_sv_iv_list_integer_min_length_1_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-1-3.xml",
class_name="NistschemaSvIvListIntegerMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_nistxml_sv_iv_list_integer_min_length_1_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-1-4.xml",
class_name="NistschemaSvIvListIntegerMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_min_length_nistxml_sv_iv_list_integer_min_length_1_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-minLength-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-minLength-1-5.xml",
class_name="NistschemaSvIvListIntegerMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_4_nistxml_sv_iv_list_integer_max_length_5_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-5-1.xml",
class_name="NistschemaSvIvListIntegerMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_4_nistxml_sv_iv_list_integer_max_length_5_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-5-2.xml",
class_name="NistschemaSvIvListIntegerMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_4_nistxml_sv_iv_list_integer_max_length_5_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-5-3.xml",
class_name="NistschemaSvIvListIntegerMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_4_nistxml_sv_iv_list_integer_max_length_5_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-5-4.xml",
class_name="NistschemaSvIvListIntegerMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_4_nistxml_sv_iv_list_integer_max_length_5_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-5.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-5-5.xml",
class_name="NistschemaSvIvListIntegerMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_3_nistxml_sv_iv_list_integer_max_length_4_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-4-1.xml",
class_name="NistschemaSvIvListIntegerMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_3_nistxml_sv_iv_list_integer_max_length_4_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-4-2.xml",
class_name="NistschemaSvIvListIntegerMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_3_nistxml_sv_iv_list_integer_max_length_4_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-4-3.xml",
class_name="NistschemaSvIvListIntegerMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_3_nistxml_sv_iv_list_integer_max_length_4_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-4-4.xml",
class_name="NistschemaSvIvListIntegerMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_3_nistxml_sv_iv_list_integer_max_length_4_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-4.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-4-5.xml",
class_name="NistschemaSvIvListIntegerMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_2_nistxml_sv_iv_list_integer_max_length_3_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-3-1.xml",
class_name="NistschemaSvIvListIntegerMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_2_nistxml_sv_iv_list_integer_max_length_3_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-3-2.xml",
class_name="NistschemaSvIvListIntegerMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_2_nistxml_sv_iv_list_integer_max_length_3_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-3-3.xml",
class_name="NistschemaSvIvListIntegerMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_2_nistxml_sv_iv_list_integer_max_length_3_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-3-4.xml",
class_name="NistschemaSvIvListIntegerMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_2_nistxml_sv_iv_list_integer_max_length_3_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-3.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-3-5.xml",
class_name="NistschemaSvIvListIntegerMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_1_nistxml_sv_iv_list_integer_max_length_2_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-2-1.xml",
class_name="NistschemaSvIvListIntegerMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_1_nistxml_sv_iv_list_integer_max_length_2_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-2-2.xml",
class_name="NistschemaSvIvListIntegerMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_1_nistxml_sv_iv_list_integer_max_length_2_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-2-3.xml",
class_name="NistschemaSvIvListIntegerMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_1_nistxml_sv_iv_list_integer_max_length_2_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-2-4.xml",
class_name="NistschemaSvIvListIntegerMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_1_nistxml_sv_iv_list_integer_max_length_2_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-2.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-2-5.xml",
class_name="NistschemaSvIvListIntegerMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_nistxml_sv_iv_list_integer_max_length_1_1(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-1-1.xml",
class_name="NistschemaSvIvListIntegerMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_nistxml_sv_iv_list_integer_max_length_1_2(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-1-2.xml",
class_name="NistschemaSvIvListIntegerMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_nistxml_sv_iv_list_integer_max_length_1_3(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-1-3.xml",
class_name="NistschemaSvIvListIntegerMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_nistxml_sv_iv_list_integer_max_length_1_4(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-1-4.xml",
class_name="NistschemaSvIvListIntegerMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_integer_max_length_nistxml_sv_iv_list_integer_max_length_1_5(mode, save_output, output_format):
"""
Type list/integer is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/integer/Schema+Instance/NISTSchema-SV-IV-list-integer-maxLength-1.xsd",
instance="nistData/list/integer/Schema+Instance/NISTXML-SV-IV-list-integer-maxLength-1-5.xml",
class_name="NistschemaSvIvListIntegerMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_white_space_nistxml_sv_iv_list_decimal_white_space_1_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-whiteSpace-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListDecimalWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_white_space_nistxml_sv_iv_list_decimal_white_space_1_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-whiteSpace-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListDecimalWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_white_space_nistxml_sv_iv_list_decimal_white_space_1_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-whiteSpace-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListDecimalWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_white_space_nistxml_sv_iv_list_decimal_white_space_1_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-whiteSpace-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListDecimalWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_white_space_nistxml_sv_iv_list_decimal_white_space_1_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-whiteSpace-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListDecimalWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_4_nistxml_sv_iv_list_decimal_enumeration_5_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-5-1.xml",
class_name="NistschemaSvIvListDecimalEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_4_nistxml_sv_iv_list_decimal_enumeration_5_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-5-2.xml",
class_name="NistschemaSvIvListDecimalEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_4_nistxml_sv_iv_list_decimal_enumeration_5_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-5-3.xml",
class_name="NistschemaSvIvListDecimalEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_4_nistxml_sv_iv_list_decimal_enumeration_5_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-5-4.xml",
class_name="NistschemaSvIvListDecimalEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_4_nistxml_sv_iv_list_decimal_enumeration_5_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-5-5.xml",
class_name="NistschemaSvIvListDecimalEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_3_nistxml_sv_iv_list_decimal_enumeration_4_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-4-1.xml",
class_name="NistschemaSvIvListDecimalEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_3_nistxml_sv_iv_list_decimal_enumeration_4_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-4-2.xml",
class_name="NistschemaSvIvListDecimalEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_3_nistxml_sv_iv_list_decimal_enumeration_4_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-4-3.xml",
class_name="NistschemaSvIvListDecimalEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_3_nistxml_sv_iv_list_decimal_enumeration_4_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-4-4.xml",
class_name="NistschemaSvIvListDecimalEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_3_nistxml_sv_iv_list_decimal_enumeration_4_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-4-5.xml",
class_name="NistschemaSvIvListDecimalEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_2_nistxml_sv_iv_list_decimal_enumeration_3_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-3-1.xml",
class_name="NistschemaSvIvListDecimalEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_2_nistxml_sv_iv_list_decimal_enumeration_3_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-3-2.xml",
class_name="NistschemaSvIvListDecimalEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_2_nistxml_sv_iv_list_decimal_enumeration_3_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-3-3.xml",
class_name="NistschemaSvIvListDecimalEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_2_nistxml_sv_iv_list_decimal_enumeration_3_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-3-4.xml",
class_name="NistschemaSvIvListDecimalEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_2_nistxml_sv_iv_list_decimal_enumeration_3_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-3-5.xml",
class_name="NistschemaSvIvListDecimalEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_1_nistxml_sv_iv_list_decimal_enumeration_2_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-2-1.xml",
class_name="NistschemaSvIvListDecimalEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_1_nistxml_sv_iv_list_decimal_enumeration_2_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-2-2.xml",
class_name="NistschemaSvIvListDecimalEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_1_nistxml_sv_iv_list_decimal_enumeration_2_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-2-3.xml",
class_name="NistschemaSvIvListDecimalEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_1_nistxml_sv_iv_list_decimal_enumeration_2_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-2-4.xml",
class_name="NistschemaSvIvListDecimalEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_1_nistxml_sv_iv_list_decimal_enumeration_2_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-2-5.xml",
class_name="NistschemaSvIvListDecimalEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_nistxml_sv_iv_list_decimal_enumeration_1_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-1-1.xml",
class_name="NistschemaSvIvListDecimalEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_nistxml_sv_iv_list_decimal_enumeration_1_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-1-2.xml",
class_name="NistschemaSvIvListDecimalEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_nistxml_sv_iv_list_decimal_enumeration_1_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-1-3.xml",
class_name="NistschemaSvIvListDecimalEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_nistxml_sv_iv_list_decimal_enumeration_1_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-1-4.xml",
class_name="NistschemaSvIvListDecimalEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_enumeration_nistxml_sv_iv_list_decimal_enumeration_1_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-enumeration-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-enumeration-1-5.xml",
class_name="NistschemaSvIvListDecimalEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_4_nistxml_sv_iv_list_decimal_pattern_5_1(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\d{2}\.\d{1} \.\d{5} \d{2}\.\d{5} \-\d{5}\.\d{4} \-\d{5}\.\d{6}
\d{5}\.\d{8} \d{5}\.\d{10} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-5-1.xml",
class_name="NistschemaSvIvListDecimalPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_4_nistxml_sv_iv_list_decimal_pattern_5_2(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\d{2}\.\d{1} \.\d{5} \d{2}\.\d{5} \-\d{5}\.\d{4} \-\d{5}\.\d{6}
\d{5}\.\d{8} \d{5}\.\d{10} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-5-2.xml",
class_name="NistschemaSvIvListDecimalPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_4_nistxml_sv_iv_list_decimal_pattern_5_3(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\d{2}\.\d{1} \.\d{5} \d{2}\.\d{5} \-\d{5}\.\d{4} \-\d{5}\.\d{6}
\d{5}\.\d{8} \d{5}\.\d{10} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-5-3.xml",
class_name="NistschemaSvIvListDecimalPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_4_nistxml_sv_iv_list_decimal_pattern_5_4(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\d{2}\.\d{1} \.\d{5} \d{2}\.\d{5} \-\d{5}\.\d{4} \-\d{5}\.\d{6}
\d{5}\.\d{8} \d{5}\.\d{10} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-5-4.xml",
class_name="NistschemaSvIvListDecimalPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_4_nistxml_sv_iv_list_decimal_pattern_5_5(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\d{2}\.\d{1} \.\d{5} \d{2}\.\d{5} \-\d{5}\.\d{4} \-\d{5}\.\d{6}
\d{5}\.\d{8} \d{5}\.\d{10} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-5-5.xml",
class_name="NistschemaSvIvListDecimalPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_3_nistxml_sv_iv_list_decimal_pattern_4_1(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\d{1}\.\d{1} \d{1}\.\d{2} \-\d{2}\.\d{2} \d{3}\.\d{2} \d{5}\.\d{1}
\-\d{5}\.\d{2} \-\d{8} \-\d{8}\.\d{1} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-4-1.xml",
class_name="NistschemaSvIvListDecimalPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_3_nistxml_sv_iv_list_decimal_pattern_4_2(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\d{1}\.\d{1} \d{1}\.\d{2} \-\d{2}\.\d{2} \d{3}\.\d{2} \d{5}\.\d{1}
\-\d{5}\.\d{2} \-\d{8} \-\d{8}\.\d{1} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-4-2.xml",
class_name="NistschemaSvIvListDecimalPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_3_nistxml_sv_iv_list_decimal_pattern_4_3(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\d{1}\.\d{1} \d{1}\.\d{2} \-\d{2}\.\d{2} \d{3}\.\d{2} \d{5}\.\d{1}
\-\d{5}\.\d{2} \-\d{8} \-\d{8}\.\d{1} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-4-3.xml",
class_name="NistschemaSvIvListDecimalPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_3_nistxml_sv_iv_list_decimal_pattern_4_4(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\d{1}\.\d{1} \d{1}\.\d{2} \-\d{2}\.\d{2} \d{3}\.\d{2} \d{5}\.\d{1}
\-\d{5}\.\d{2} \-\d{8} \-\d{8}\.\d{1} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-4-4.xml",
class_name="NistschemaSvIvListDecimalPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_3_nistxml_sv_iv_list_decimal_pattern_4_5(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\d{1}\.\d{1} \d{1}\.\d{2} \-\d{2}\.\d{2} \d{3}\.\d{2} \d{5}\.\d{1}
\-\d{5}\.\d{2} \-\d{8} \-\d{8}\.\d{1} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-4-5.xml",
class_name="NistschemaSvIvListDecimalPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_2_nistxml_sv_iv_list_decimal_pattern_3_1(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \-\d{1}
\-\d{1}\.\d{2} \.\d{5} \d{1}\.\d{6} \-\d{8}\.\d{1} \-\d{1}\.\d{10}
\-\d{11}\.\d{2} \-\d{8}\.\d{10}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-3-1.xml",
class_name="NistschemaSvIvListDecimalPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_2_nistxml_sv_iv_list_decimal_pattern_3_2(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \-\d{1}
\-\d{1}\.\d{2} \.\d{5} \d{1}\.\d{6} \-\d{8}\.\d{1} \-\d{1}\.\d{10}
\-\d{11}\.\d{2} \-\d{8}\.\d{10}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-3-2.xml",
class_name="NistschemaSvIvListDecimalPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_2_nistxml_sv_iv_list_decimal_pattern_3_3(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \-\d{1}
\-\d{1}\.\d{2} \.\d{5} \d{1}\.\d{6} \-\d{8}\.\d{1} \-\d{1}\.\d{10}
\-\d{11}\.\d{2} \-\d{8}\.\d{10}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-3-3.xml",
class_name="NistschemaSvIvListDecimalPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_2_nistxml_sv_iv_list_decimal_pattern_3_4(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \-\d{1}
\-\d{1}\.\d{2} \.\d{5} \d{1}\.\d{6} \-\d{8}\.\d{1} \-\d{1}\.\d{10}
\-\d{11}\.\d{2} \-\d{8}\.\d{10}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-3-4.xml",
class_name="NistschemaSvIvListDecimalPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_2_nistxml_sv_iv_list_decimal_pattern_3_5(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \-\d{1}
\-\d{1}\.\d{2} \.\d{5} \d{1}\.\d{6} \-\d{8}\.\d{1} \-\d{1}\.\d{10}
\-\d{11}\.\d{2} \-\d{8}\.\d{10}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-3-5.xml",
class_name="NistschemaSvIvListDecimalPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_1_nistxml_sv_iv_list_decimal_pattern_2_1(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\.\d{3} \d{4}\.\d{1} \d{6}\.\d{1} \d{7}\.\d{2} \-\d{5}\.\d{6} \d{13}
\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-2-1.xml",
class_name="NistschemaSvIvListDecimalPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_1_nistxml_sv_iv_list_decimal_pattern_2_2(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\.\d{3} \d{4}\.\d{1} \d{6}\.\d{1} \d{7}\.\d{2} \-\d{5}\.\d{6} \d{13}
\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-2-2.xml",
class_name="NistschemaSvIvListDecimalPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_1_nistxml_sv_iv_list_decimal_pattern_2_3(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\.\d{3} \d{4}\.\d{1} \d{6}\.\d{1} \d{7}\.\d{2} \-\d{5}\.\d{6} \d{13}
\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-2-3.xml",
class_name="NistschemaSvIvListDecimalPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_1_nistxml_sv_iv_list_decimal_pattern_2_4(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\.\d{3} \d{4}\.\d{1} \d{6}\.\d{1} \d{7}\.\d{2} \-\d{5}\.\d{6} \d{13}
\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-2-4.xml",
class_name="NistschemaSvIvListDecimalPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_1_nistxml_sv_iv_list_decimal_pattern_2_5(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\.\d{3} \d{4}\.\d{1} \d{6}\.\d{1} \d{7}\.\d{2} \-\d{5}\.\d{6} \d{13}
\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-2-5.xml",
class_name="NistschemaSvIvListDecimalPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_nistxml_sv_iv_list_decimal_pattern_1_1(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\.\d{3} \-\d{3}\.\d{2} \d{6}\.\d{1} \-\d{2}\.\d{7} \d{7}\.\d{4}
\-\d{4}\.\d{9} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-1-1.xml",
class_name="NistschemaSvIvListDecimalPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_nistxml_sv_iv_list_decimal_pattern_1_2(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\.\d{3} \-\d{3}\.\d{2} \d{6}\.\d{1} \-\d{2}\.\d{7} \d{7}\.\d{4}
\-\d{4}\.\d{9} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-1-2.xml",
class_name="NistschemaSvIvListDecimalPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_nistxml_sv_iv_list_decimal_pattern_1_3(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\.\d{3} \-\d{3}\.\d{2} \d{6}\.\d{1} \-\d{2}\.\d{7} \d{7}\.\d{4}
\-\d{4}\.\d{9} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-1-3.xml",
class_name="NistschemaSvIvListDecimalPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_nistxml_sv_iv_list_decimal_pattern_1_4(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\.\d{3} \-\d{3}\.\d{2} \d{6}\.\d{1} \-\d{2}\.\d{7} \d{7}\.\d{4}
\-\d{4}\.\d{9} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-1-4.xml",
class_name="NistschemaSvIvListDecimalPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_pattern_nistxml_sv_iv_list_decimal_pattern_1_5(mode, save_output, output_format):
r"""
Type list/decimal is restricted by facet pattern with value \d{1}
\-\.\d{3} \-\d{3}\.\d{2} \d{6}\.\d{1} \-\d{2}\.\d{7} \d{7}\.\d{4}
\-\d{4}\.\d{9} \-\d{4}\.\d{14}.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-pattern-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-pattern-1-5.xml",
class_name="NistschemaSvIvListDecimalPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_4_nistxml_sv_iv_list_decimal_length_5_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-5-1.xml",
class_name="NistschemaSvIvListDecimalLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_4_nistxml_sv_iv_list_decimal_length_5_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-5-2.xml",
class_name="NistschemaSvIvListDecimalLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_4_nistxml_sv_iv_list_decimal_length_5_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-5-3.xml",
class_name="NistschemaSvIvListDecimalLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_4_nistxml_sv_iv_list_decimal_length_5_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-5-4.xml",
class_name="NistschemaSvIvListDecimalLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_4_nistxml_sv_iv_list_decimal_length_5_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-5-5.xml",
class_name="NistschemaSvIvListDecimalLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_3_nistxml_sv_iv_list_decimal_length_4_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-4-1.xml",
class_name="NistschemaSvIvListDecimalLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_3_nistxml_sv_iv_list_decimal_length_4_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-4-2.xml",
class_name="NistschemaSvIvListDecimalLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_3_nistxml_sv_iv_list_decimal_length_4_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-4-3.xml",
class_name="NistschemaSvIvListDecimalLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_3_nistxml_sv_iv_list_decimal_length_4_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-4-4.xml",
class_name="NistschemaSvIvListDecimalLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_3_nistxml_sv_iv_list_decimal_length_4_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-4-5.xml",
class_name="NistschemaSvIvListDecimalLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_2_nistxml_sv_iv_list_decimal_length_3_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-3-1.xml",
class_name="NistschemaSvIvListDecimalLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_2_nistxml_sv_iv_list_decimal_length_3_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-3-2.xml",
class_name="NistschemaSvIvListDecimalLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_2_nistxml_sv_iv_list_decimal_length_3_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-3-3.xml",
class_name="NistschemaSvIvListDecimalLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_2_nistxml_sv_iv_list_decimal_length_3_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-3-4.xml",
class_name="NistschemaSvIvListDecimalLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_2_nistxml_sv_iv_list_decimal_length_3_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-3-5.xml",
class_name="NistschemaSvIvListDecimalLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_1_nistxml_sv_iv_list_decimal_length_2_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-2-1.xml",
class_name="NistschemaSvIvListDecimalLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_1_nistxml_sv_iv_list_decimal_length_2_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-2-2.xml",
class_name="NistschemaSvIvListDecimalLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_1_nistxml_sv_iv_list_decimal_length_2_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-2-3.xml",
class_name="NistschemaSvIvListDecimalLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_1_nistxml_sv_iv_list_decimal_length_2_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-2-4.xml",
class_name="NistschemaSvIvListDecimalLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_1_nistxml_sv_iv_list_decimal_length_2_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-2-5.xml",
class_name="NistschemaSvIvListDecimalLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_nistxml_sv_iv_list_decimal_length_1_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-1-1.xml",
class_name="NistschemaSvIvListDecimalLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_nistxml_sv_iv_list_decimal_length_1_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-1-2.xml",
class_name="NistschemaSvIvListDecimalLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_nistxml_sv_iv_list_decimal_length_1_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-1-3.xml",
class_name="NistschemaSvIvListDecimalLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_nistxml_sv_iv_list_decimal_length_1_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-1-4.xml",
class_name="NistschemaSvIvListDecimalLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_length_nistxml_sv_iv_list_decimal_length_1_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-length-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-length-1-5.xml",
class_name="NistschemaSvIvListDecimalLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_4_nistxml_sv_iv_list_decimal_min_length_5_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-5-1.xml",
class_name="NistschemaSvIvListDecimalMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_4_nistxml_sv_iv_list_decimal_min_length_5_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-5-2.xml",
class_name="NistschemaSvIvListDecimalMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_4_nistxml_sv_iv_list_decimal_min_length_5_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-5-3.xml",
class_name="NistschemaSvIvListDecimalMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_4_nistxml_sv_iv_list_decimal_min_length_5_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-5-4.xml",
class_name="NistschemaSvIvListDecimalMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_4_nistxml_sv_iv_list_decimal_min_length_5_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-5-5.xml",
class_name="NistschemaSvIvListDecimalMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_3_nistxml_sv_iv_list_decimal_min_length_4_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-4-1.xml",
class_name="NistschemaSvIvListDecimalMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_3_nistxml_sv_iv_list_decimal_min_length_4_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-4-2.xml",
class_name="NistschemaSvIvListDecimalMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_3_nistxml_sv_iv_list_decimal_min_length_4_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-4-3.xml",
class_name="NistschemaSvIvListDecimalMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_3_nistxml_sv_iv_list_decimal_min_length_4_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-4-4.xml",
class_name="NistschemaSvIvListDecimalMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_3_nistxml_sv_iv_list_decimal_min_length_4_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-4-5.xml",
class_name="NistschemaSvIvListDecimalMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_2_nistxml_sv_iv_list_decimal_min_length_3_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-3-1.xml",
class_name="NistschemaSvIvListDecimalMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_2_nistxml_sv_iv_list_decimal_min_length_3_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-3-2.xml",
class_name="NistschemaSvIvListDecimalMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_2_nistxml_sv_iv_list_decimal_min_length_3_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-3-3.xml",
class_name="NistschemaSvIvListDecimalMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_2_nistxml_sv_iv_list_decimal_min_length_3_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-3-4.xml",
class_name="NistschemaSvIvListDecimalMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_2_nistxml_sv_iv_list_decimal_min_length_3_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-3-5.xml",
class_name="NistschemaSvIvListDecimalMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_1_nistxml_sv_iv_list_decimal_min_length_2_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-2-1.xml",
class_name="NistschemaSvIvListDecimalMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_1_nistxml_sv_iv_list_decimal_min_length_2_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-2-2.xml",
class_name="NistschemaSvIvListDecimalMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_1_nistxml_sv_iv_list_decimal_min_length_2_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-2-3.xml",
class_name="NistschemaSvIvListDecimalMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_1_nistxml_sv_iv_list_decimal_min_length_2_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-2-4.xml",
class_name="NistschemaSvIvListDecimalMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_1_nistxml_sv_iv_list_decimal_min_length_2_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-2-5.xml",
class_name="NistschemaSvIvListDecimalMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_nistxml_sv_iv_list_decimal_min_length_1_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-1-1.xml",
class_name="NistschemaSvIvListDecimalMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_nistxml_sv_iv_list_decimal_min_length_1_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-1-2.xml",
class_name="NistschemaSvIvListDecimalMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_nistxml_sv_iv_list_decimal_min_length_1_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-1-3.xml",
class_name="NistschemaSvIvListDecimalMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_nistxml_sv_iv_list_decimal_min_length_1_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-1-4.xml",
class_name="NistschemaSvIvListDecimalMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_min_length_nistxml_sv_iv_list_decimal_min_length_1_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-minLength-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-minLength-1-5.xml",
class_name="NistschemaSvIvListDecimalMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_4_nistxml_sv_iv_list_decimal_max_length_5_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-5-1.xml",
class_name="NistschemaSvIvListDecimalMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_4_nistxml_sv_iv_list_decimal_max_length_5_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-5-2.xml",
class_name="NistschemaSvIvListDecimalMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_4_nistxml_sv_iv_list_decimal_max_length_5_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-5-3.xml",
class_name="NistschemaSvIvListDecimalMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_4_nistxml_sv_iv_list_decimal_max_length_5_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-5-4.xml",
class_name="NistschemaSvIvListDecimalMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_4_nistxml_sv_iv_list_decimal_max_length_5_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-5.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-5-5.xml",
class_name="NistschemaSvIvListDecimalMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_3_nistxml_sv_iv_list_decimal_max_length_4_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-4-1.xml",
class_name="NistschemaSvIvListDecimalMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_3_nistxml_sv_iv_list_decimal_max_length_4_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-4-2.xml",
class_name="NistschemaSvIvListDecimalMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_3_nistxml_sv_iv_list_decimal_max_length_4_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-4-3.xml",
class_name="NistschemaSvIvListDecimalMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_3_nistxml_sv_iv_list_decimal_max_length_4_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-4-4.xml",
class_name="NistschemaSvIvListDecimalMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_3_nistxml_sv_iv_list_decimal_max_length_4_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-4.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-4-5.xml",
class_name="NistschemaSvIvListDecimalMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_2_nistxml_sv_iv_list_decimal_max_length_3_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-3-1.xml",
class_name="NistschemaSvIvListDecimalMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_2_nistxml_sv_iv_list_decimal_max_length_3_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-3-2.xml",
class_name="NistschemaSvIvListDecimalMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_2_nistxml_sv_iv_list_decimal_max_length_3_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-3-3.xml",
class_name="NistschemaSvIvListDecimalMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_2_nistxml_sv_iv_list_decimal_max_length_3_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-3-4.xml",
class_name="NistschemaSvIvListDecimalMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_2_nistxml_sv_iv_list_decimal_max_length_3_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-3.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-3-5.xml",
class_name="NistschemaSvIvListDecimalMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_1_nistxml_sv_iv_list_decimal_max_length_2_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-2-1.xml",
class_name="NistschemaSvIvListDecimalMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_1_nistxml_sv_iv_list_decimal_max_length_2_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-2-2.xml",
class_name="NistschemaSvIvListDecimalMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_1_nistxml_sv_iv_list_decimal_max_length_2_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-2-3.xml",
class_name="NistschemaSvIvListDecimalMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_1_nistxml_sv_iv_list_decimal_max_length_2_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-2-4.xml",
class_name="NistschemaSvIvListDecimalMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_1_nistxml_sv_iv_list_decimal_max_length_2_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-2.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-2-5.xml",
class_name="NistschemaSvIvListDecimalMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_nistxml_sv_iv_list_decimal_max_length_1_1(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-1-1.xml",
class_name="NistschemaSvIvListDecimalMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_nistxml_sv_iv_list_decimal_max_length_1_2(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-1-2.xml",
class_name="NistschemaSvIvListDecimalMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_nistxml_sv_iv_list_decimal_max_length_1_3(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-1-3.xml",
class_name="NistschemaSvIvListDecimalMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_nistxml_sv_iv_list_decimal_max_length_1_4(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-1-4.xml",
class_name="NistschemaSvIvListDecimalMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_decimal_max_length_nistxml_sv_iv_list_decimal_max_length_1_5(mode, save_output, output_format):
"""
Type list/decimal is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/decimal/Schema+Instance/NISTSchema-SV-IV-list-decimal-maxLength-1.xsd",
instance="nistData/list/decimal/Schema+Instance/NISTXML-SV-IV-list-decimal-maxLength-1-5.xml",
class_name="NistschemaSvIvListDecimalMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_white_space_nistxml_sv_iv_atomic_hex_binary_white_space_1_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-whiteSpace-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-whiteSpace-1-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_white_space_nistxml_sv_iv_atomic_hex_binary_white_space_1_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-whiteSpace-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-whiteSpace-1-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_white_space_nistxml_sv_iv_atomic_hex_binary_white_space_1_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-whiteSpace-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-whiteSpace-1-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_white_space_nistxml_sv_iv_atomic_hex_binary_white_space_1_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-whiteSpace-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-whiteSpace-1-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_white_space_nistxml_sv_iv_atomic_hex_binary_white_space_1_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-whiteSpace-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-whiteSpace-1-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_4_nistxml_sv_iv_atomic_hex_binary_enumeration_5_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-5-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_4_nistxml_sv_iv_atomic_hex_binary_enumeration_5_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-5-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_4_nistxml_sv_iv_atomic_hex_binary_enumeration_5_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-5-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_4_nistxml_sv_iv_atomic_hex_binary_enumeration_5_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-5-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_4_nistxml_sv_iv_atomic_hex_binary_enumeration_5_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-5-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_3_nistxml_sv_iv_atomic_hex_binary_enumeration_4_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-4-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_3_nistxml_sv_iv_atomic_hex_binary_enumeration_4_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-4-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_3_nistxml_sv_iv_atomic_hex_binary_enumeration_4_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-4-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_3_nistxml_sv_iv_atomic_hex_binary_enumeration_4_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-4-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_3_nistxml_sv_iv_atomic_hex_binary_enumeration_4_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-4-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_2_nistxml_sv_iv_atomic_hex_binary_enumeration_3_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-3-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_2_nistxml_sv_iv_atomic_hex_binary_enumeration_3_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-3-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_2_nistxml_sv_iv_atomic_hex_binary_enumeration_3_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-3-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_2_nistxml_sv_iv_atomic_hex_binary_enumeration_3_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-3-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_2_nistxml_sv_iv_atomic_hex_binary_enumeration_3_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-3-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_1_nistxml_sv_iv_atomic_hex_binary_enumeration_2_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-2-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_1_nistxml_sv_iv_atomic_hex_binary_enumeration_2_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-2-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_1_nistxml_sv_iv_atomic_hex_binary_enumeration_2_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-2-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_1_nistxml_sv_iv_atomic_hex_binary_enumeration_2_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-2-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_1_nistxml_sv_iv_atomic_hex_binary_enumeration_2_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-2-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_nistxml_sv_iv_atomic_hex_binary_enumeration_1_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-1-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_nistxml_sv_iv_atomic_hex_binary_enumeration_1_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-1-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_nistxml_sv_iv_atomic_hex_binary_enumeration_1_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-1-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_nistxml_sv_iv_atomic_hex_binary_enumeration_1_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-1-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_enumeration_nistxml_sv_iv_atomic_hex_binary_enumeration_1_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-enumeration-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-enumeration-1-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_4_nistxml_sv_iv_atomic_hex_binary_pattern_5_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{60}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-5-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_4_nistxml_sv_iv_atomic_hex_binary_pattern_5_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{60}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-5-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_4_nistxml_sv_iv_atomic_hex_binary_pattern_5_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{60}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-5-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_4_nistxml_sv_iv_atomic_hex_binary_pattern_5_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{60}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-5-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_4_nistxml_sv_iv_atomic_hex_binary_pattern_5_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{60}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-5-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_3_nistxml_sv_iv_atomic_hex_binary_pattern_4_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{46}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-4-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_3_nistxml_sv_iv_atomic_hex_binary_pattern_4_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{46}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-4-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_3_nistxml_sv_iv_atomic_hex_binary_pattern_4_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{46}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-4-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_3_nistxml_sv_iv_atomic_hex_binary_pattern_4_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{46}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-4-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_3_nistxml_sv_iv_atomic_hex_binary_pattern_4_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{46}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-4-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_2_nistxml_sv_iv_atomic_hex_binary_pattern_3_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{18}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-3-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_2_nistxml_sv_iv_atomic_hex_binary_pattern_3_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{18}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-3-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_2_nistxml_sv_iv_atomic_hex_binary_pattern_3_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{18}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-3-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_2_nistxml_sv_iv_atomic_hex_binary_pattern_3_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{18}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-3-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_2_nistxml_sv_iv_atomic_hex_binary_pattern_3_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{18}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-3-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_1_nistxml_sv_iv_atomic_hex_binary_pattern_2_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{66}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-2-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_1_nistxml_sv_iv_atomic_hex_binary_pattern_2_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{66}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-2-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_1_nistxml_sv_iv_atomic_hex_binary_pattern_2_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{66}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-2-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_1_nistxml_sv_iv_atomic_hex_binary_pattern_2_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{66}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-2-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_1_nistxml_sv_iv_atomic_hex_binary_pattern_2_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{66}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-2-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_nistxml_sv_iv_atomic_hex_binary_pattern_1_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{56}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-1-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_nistxml_sv_iv_atomic_hex_binary_pattern_1_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{56}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-1-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_nistxml_sv_iv_atomic_hex_binary_pattern_1_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{56}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-1-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_nistxml_sv_iv_atomic_hex_binary_pattern_1_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{56}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-1-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_pattern_nistxml_sv_iv_atomic_hex_binary_pattern_1_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet pattern with value
[0-9A-F]{56}.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-pattern-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-pattern-1-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_4_nistxml_sv_iv_atomic_hex_binary_length_5_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-5-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_4_nistxml_sv_iv_atomic_hex_binary_length_5_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-5-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_4_nistxml_sv_iv_atomic_hex_binary_length_5_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-5-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_4_nistxml_sv_iv_atomic_hex_binary_length_5_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-5-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_4_nistxml_sv_iv_atomic_hex_binary_length_5_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-5-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_3_nistxml_sv_iv_atomic_hex_binary_length_4_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 68.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-4-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_3_nistxml_sv_iv_atomic_hex_binary_length_4_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 68.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-4-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_3_nistxml_sv_iv_atomic_hex_binary_length_4_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 68.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-4-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_3_nistxml_sv_iv_atomic_hex_binary_length_4_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 68.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-4-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_3_nistxml_sv_iv_atomic_hex_binary_length_4_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 68.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-4-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_2_nistxml_sv_iv_atomic_hex_binary_length_3_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 41.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-3-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_2_nistxml_sv_iv_atomic_hex_binary_length_3_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 41.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-3-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_2_nistxml_sv_iv_atomic_hex_binary_length_3_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 41.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-3-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_2_nistxml_sv_iv_atomic_hex_binary_length_3_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 41.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-3-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_2_nistxml_sv_iv_atomic_hex_binary_length_3_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 41.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-3-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_1_nistxml_sv_iv_atomic_hex_binary_length_2_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 16.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-2-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_1_nistxml_sv_iv_atomic_hex_binary_length_2_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 16.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-2-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_1_nistxml_sv_iv_atomic_hex_binary_length_2_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 16.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-2-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_1_nistxml_sv_iv_atomic_hex_binary_length_2_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 16.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-2-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_1_nistxml_sv_iv_atomic_hex_binary_length_2_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 16.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-2-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_nistxml_sv_iv_atomic_hex_binary_length_1_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-1-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_nistxml_sv_iv_atomic_hex_binary_length_1_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-1-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_nistxml_sv_iv_atomic_hex_binary_length_1_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-1-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_nistxml_sv_iv_atomic_hex_binary_length_1_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-1-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_length_nistxml_sv_iv_atomic_hex_binary_length_1_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-length-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-length-1-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_4_nistxml_sv_iv_atomic_hex_binary_min_length_5_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-5-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_4_nistxml_sv_iv_atomic_hex_binary_min_length_5_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-5-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_4_nistxml_sv_iv_atomic_hex_binary_min_length_5_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-5-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_4_nistxml_sv_iv_atomic_hex_binary_min_length_5_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-5-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_4_nistxml_sv_iv_atomic_hex_binary_min_length_5_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-5-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_3_nistxml_sv_iv_atomic_hex_binary_min_length_4_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 48.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-4-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_3_nistxml_sv_iv_atomic_hex_binary_min_length_4_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 48.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-4-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_3_nistxml_sv_iv_atomic_hex_binary_min_length_4_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 48.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-4-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_3_nistxml_sv_iv_atomic_hex_binary_min_length_4_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 48.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-4-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_3_nistxml_sv_iv_atomic_hex_binary_min_length_4_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 48.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-4-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_2_nistxml_sv_iv_atomic_hex_binary_min_length_3_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-3-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_2_nistxml_sv_iv_atomic_hex_binary_min_length_3_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-3-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_2_nistxml_sv_iv_atomic_hex_binary_min_length_3_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-3-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_2_nistxml_sv_iv_atomic_hex_binary_min_length_3_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-3-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_2_nistxml_sv_iv_atomic_hex_binary_min_length_3_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-3-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_1_nistxml_sv_iv_atomic_hex_binary_min_length_2_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 28.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-2-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_1_nistxml_sv_iv_atomic_hex_binary_min_length_2_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 28.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-2-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_1_nistxml_sv_iv_atomic_hex_binary_min_length_2_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 28.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-2-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_1_nistxml_sv_iv_atomic_hex_binary_min_length_2_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 28.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-2-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_1_nistxml_sv_iv_atomic_hex_binary_min_length_2_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 28.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-2-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_nistxml_sv_iv_atomic_hex_binary_min_length_1_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-1-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_nistxml_sv_iv_atomic_hex_binary_min_length_1_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-1-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_nistxml_sv_iv_atomic_hex_binary_min_length_1_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-1-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_nistxml_sv_iv_atomic_hex_binary_min_length_1_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-1-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_min_length_nistxml_sv_iv_atomic_hex_binary_min_length_1_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet minLength with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-minLength-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-minLength-1-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_4_nistxml_sv_iv_atomic_hex_binary_max_length_5_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-5-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_4_nistxml_sv_iv_atomic_hex_binary_max_length_5_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-5-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_4_nistxml_sv_iv_atomic_hex_binary_max_length_5_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-5-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_4_nistxml_sv_iv_atomic_hex_binary_max_length_5_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-5-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_4_nistxml_sv_iv_atomic_hex_binary_max_length_5_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 74.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-5.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-5-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_3_nistxml_sv_iv_atomic_hex_binary_max_length_4_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-4-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_3_nistxml_sv_iv_atomic_hex_binary_max_length_4_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-4-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_3_nistxml_sv_iv_atomic_hex_binary_max_length_4_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-4-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_3_nistxml_sv_iv_atomic_hex_binary_max_length_4_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-4-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_3_nistxml_sv_iv_atomic_hex_binary_max_length_4_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-4.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-4-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_2_nistxml_sv_iv_atomic_hex_binary_max_length_3_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-3-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_2_nistxml_sv_iv_atomic_hex_binary_max_length_3_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-3-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_2_nistxml_sv_iv_atomic_hex_binary_max_length_3_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-3-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_2_nistxml_sv_iv_atomic_hex_binary_max_length_3_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-3-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_2_nistxml_sv_iv_atomic_hex_binary_max_length_3_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-3.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-3-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_1_nistxml_sv_iv_atomic_hex_binary_max_length_2_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 29.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-2-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_1_nistxml_sv_iv_atomic_hex_binary_max_length_2_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 29.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-2-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_1_nistxml_sv_iv_atomic_hex_binary_max_length_2_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 29.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-2-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_1_nistxml_sv_iv_atomic_hex_binary_max_length_2_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 29.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-2-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_1_nistxml_sv_iv_atomic_hex_binary_max_length_2_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 29.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-2.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-2-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_nistxml_sv_iv_atomic_hex_binary_max_length_1_1(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-1-1.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_nistxml_sv_iv_atomic_hex_binary_max_length_1_2(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-1-2.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_nistxml_sv_iv_atomic_hex_binary_max_length_1_3(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-1-3.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_nistxml_sv_iv_atomic_hex_binary_max_length_1_4(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-1-4.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_hex_binary_max_length_nistxml_sv_iv_atomic_hex_binary_max_length_1_5(mode, save_output, output_format):
"""
Type atomic/hexBinary is restricted by facet maxLength with value 1.
"""
assert_bindings(
schema="nistData/atomic/hexBinary/Schema+Instance/NISTSchema-SV-IV-atomic-hexBinary-maxLength-1.xsd",
instance="nistData/atomic/hexBinary/Schema+Instance/NISTXML-SV-IV-atomic-hexBinary-maxLength-1-5.xml",
class_name="NistschemaSvIvAtomicHexBinaryMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_white_space_nistxml_sv_iv_atomic_base64_binary_white_space_1_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-whiteSpace-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-whiteSpace-1-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_white_space_nistxml_sv_iv_atomic_base64_binary_white_space_1_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-whiteSpace-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-whiteSpace-1-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_white_space_nistxml_sv_iv_atomic_base64_binary_white_space_1_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-whiteSpace-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-whiteSpace-1-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_white_space_nistxml_sv_iv_atomic_base64_binary_white_space_1_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-whiteSpace-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-whiteSpace-1-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_white_space_nistxml_sv_iv_atomic_base64_binary_white_space_1_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-whiteSpace-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-whiteSpace-1-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_4_nistxml_sv_iv_atomic_base64_binary_enumeration_5_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-5-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_4_nistxml_sv_iv_atomic_base64_binary_enumeration_5_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-5-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_4_nistxml_sv_iv_atomic_base64_binary_enumeration_5_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-5-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_4_nistxml_sv_iv_atomic_base64_binary_enumeration_5_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-5-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_4_nistxml_sv_iv_atomic_base64_binary_enumeration_5_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-5-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_3_nistxml_sv_iv_atomic_base64_binary_enumeration_4_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-4-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_3_nistxml_sv_iv_atomic_base64_binary_enumeration_4_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-4-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_3_nistxml_sv_iv_atomic_base64_binary_enumeration_4_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-4-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_3_nistxml_sv_iv_atomic_base64_binary_enumeration_4_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-4-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_3_nistxml_sv_iv_atomic_base64_binary_enumeration_4_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-4-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_2_nistxml_sv_iv_atomic_base64_binary_enumeration_3_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-3-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_2_nistxml_sv_iv_atomic_base64_binary_enumeration_3_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-3-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_2_nistxml_sv_iv_atomic_base64_binary_enumeration_3_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-3-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_2_nistxml_sv_iv_atomic_base64_binary_enumeration_3_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-3-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_2_nistxml_sv_iv_atomic_base64_binary_enumeration_3_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-3-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_1_nistxml_sv_iv_atomic_base64_binary_enumeration_2_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-2-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_1_nistxml_sv_iv_atomic_base64_binary_enumeration_2_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-2-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_1_nistxml_sv_iv_atomic_base64_binary_enumeration_2_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-2-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_1_nistxml_sv_iv_atomic_base64_binary_enumeration_2_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-2-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_1_nistxml_sv_iv_atomic_base64_binary_enumeration_2_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-2-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_nistxml_sv_iv_atomic_base64_binary_enumeration_1_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-1-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_nistxml_sv_iv_atomic_base64_binary_enumeration_1_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-1-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_nistxml_sv_iv_atomic_base64_binary_enumeration_1_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-1-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_nistxml_sv_iv_atomic_base64_binary_enumeration_1_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-1-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_enumeration_nistxml_sv_iv_atomic_base64_binary_enumeration_1_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-enumeration-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-enumeration-1-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_4_nistxml_sv_iv_atomic_base64_binary_pattern_5_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{60}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-5-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_4_nistxml_sv_iv_atomic_base64_binary_pattern_5_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{60}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-5-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_4_nistxml_sv_iv_atomic_base64_binary_pattern_5_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{60}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-5-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_4_nistxml_sv_iv_atomic_base64_binary_pattern_5_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{60}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-5-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_4_nistxml_sv_iv_atomic_base64_binary_pattern_5_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{60}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-5-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_3_nistxml_sv_iv_atomic_base64_binary_pattern_4_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{24}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-4-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_3_nistxml_sv_iv_atomic_base64_binary_pattern_4_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{24}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-4-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_3_nistxml_sv_iv_atomic_base64_binary_pattern_4_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{24}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-4-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_3_nistxml_sv_iv_atomic_base64_binary_pattern_4_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{24}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-4-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_3_nistxml_sv_iv_atomic_base64_binary_pattern_4_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{24}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-4-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_2_nistxml_sv_iv_atomic_base64_binary_pattern_3_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{64}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-3-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_2_nistxml_sv_iv_atomic_base64_binary_pattern_3_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{64}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-3-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_2_nistxml_sv_iv_atomic_base64_binary_pattern_3_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{64}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-3-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_2_nistxml_sv_iv_atomic_base64_binary_pattern_3_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{64}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-3-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_2_nistxml_sv_iv_atomic_base64_binary_pattern_3_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{64}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-3-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_1_nistxml_sv_iv_atomic_base64_binary_pattern_2_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{68}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-2-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_1_nistxml_sv_iv_atomic_base64_binary_pattern_2_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{68}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-2-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_1_nistxml_sv_iv_atomic_base64_binary_pattern_2_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{68}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-2-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_1_nistxml_sv_iv_atomic_base64_binary_pattern_2_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{68}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-2-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_1_nistxml_sv_iv_atomic_base64_binary_pattern_2_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{68}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-2-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_nistxml_sv_iv_atomic_base64_binary_pattern_1_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{20}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-1-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_nistxml_sv_iv_atomic_base64_binary_pattern_1_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{20}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-1-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_nistxml_sv_iv_atomic_base64_binary_pattern_1_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{20}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-1-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_nistxml_sv_iv_atomic_base64_binary_pattern_1_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{20}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-1-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_pattern_nistxml_sv_iv_atomic_base64_binary_pattern_1_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet pattern with value
[a-zA-Z0-9+/]{20}.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-pattern-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-pattern-1-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_4_nistxml_sv_iv_atomic_base64_binary_length_5_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-5-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_4_nistxml_sv_iv_atomic_base64_binary_length_5_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-5-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_4_nistxml_sv_iv_atomic_base64_binary_length_5_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-5-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_4_nistxml_sv_iv_atomic_base64_binary_length_5_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-5-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_4_nistxml_sv_iv_atomic_base64_binary_length_5_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-5-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_3_nistxml_sv_iv_atomic_base64_binary_length_4_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 47.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-4-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_3_nistxml_sv_iv_atomic_base64_binary_length_4_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 47.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-4-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_3_nistxml_sv_iv_atomic_base64_binary_length_4_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 47.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-4-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_3_nistxml_sv_iv_atomic_base64_binary_length_4_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 47.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-4-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_3_nistxml_sv_iv_atomic_base64_binary_length_4_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 47.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-4-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_2_nistxml_sv_iv_atomic_base64_binary_length_3_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 31.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-3-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_2_nistxml_sv_iv_atomic_base64_binary_length_3_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 31.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-3-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_2_nistxml_sv_iv_atomic_base64_binary_length_3_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 31.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-3-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_2_nistxml_sv_iv_atomic_base64_binary_length_3_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 31.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-3-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_2_nistxml_sv_iv_atomic_base64_binary_length_3_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 31.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-3-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_1_nistxml_sv_iv_atomic_base64_binary_length_2_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-2-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_1_nistxml_sv_iv_atomic_base64_binary_length_2_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-2-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_1_nistxml_sv_iv_atomic_base64_binary_length_2_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-2-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_1_nistxml_sv_iv_atomic_base64_binary_length_2_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-2-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_1_nistxml_sv_iv_atomic_base64_binary_length_2_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-2-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_nistxml_sv_iv_atomic_base64_binary_length_1_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-1-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_nistxml_sv_iv_atomic_base64_binary_length_1_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-1-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_nistxml_sv_iv_atomic_base64_binary_length_1_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-1-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_nistxml_sv_iv_atomic_base64_binary_length_1_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-1-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_length_nistxml_sv_iv_atomic_base64_binary_length_1_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet length with value 1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-length-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-length-1-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_4_nistxml_sv_iv_atomic_base64_binary_min_length_5_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-5-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_4_nistxml_sv_iv_atomic_base64_binary_min_length_5_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-5-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_4_nistxml_sv_iv_atomic_base64_binary_min_length_5_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-5-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_4_nistxml_sv_iv_atomic_base64_binary_min_length_5_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-5-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_4_nistxml_sv_iv_atomic_base64_binary_min_length_5_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-5-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_3_nistxml_sv_iv_atomic_base64_binary_min_length_4_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
11.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-4-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_3_nistxml_sv_iv_atomic_base64_binary_min_length_4_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
11.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-4-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_3_nistxml_sv_iv_atomic_base64_binary_min_length_4_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
11.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-4-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_3_nistxml_sv_iv_atomic_base64_binary_min_length_4_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
11.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-4-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_3_nistxml_sv_iv_atomic_base64_binary_min_length_4_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
11.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-4-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_2_nistxml_sv_iv_atomic_base64_binary_min_length_3_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
14.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-3-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_2_nistxml_sv_iv_atomic_base64_binary_min_length_3_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
14.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-3-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_2_nistxml_sv_iv_atomic_base64_binary_min_length_3_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
14.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-3-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_2_nistxml_sv_iv_atomic_base64_binary_min_length_3_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
14.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-3-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_2_nistxml_sv_iv_atomic_base64_binary_min_length_3_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
14.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-3-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_1_nistxml_sv_iv_atomic_base64_binary_min_length_2_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
27.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-2-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_1_nistxml_sv_iv_atomic_base64_binary_min_length_2_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
27.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-2-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_1_nistxml_sv_iv_atomic_base64_binary_min_length_2_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
27.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-2-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_1_nistxml_sv_iv_atomic_base64_binary_min_length_2_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
27.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-2-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_1_nistxml_sv_iv_atomic_base64_binary_min_length_2_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
27.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-2-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_nistxml_sv_iv_atomic_base64_binary_min_length_1_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-1-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_nistxml_sv_iv_atomic_base64_binary_min_length_1_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-1-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_nistxml_sv_iv_atomic_base64_binary_min_length_1_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-1-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_nistxml_sv_iv_atomic_base64_binary_min_length_1_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-1-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_min_length_nistxml_sv_iv_atomic_base64_binary_min_length_1_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet minLength with value
1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-minLength-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-minLength-1-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_4_nistxml_sv_iv_atomic_base64_binary_max_length_5_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-5-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_4_nistxml_sv_iv_atomic_base64_binary_max_length_5_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-5-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_4_nistxml_sv_iv_atomic_base64_binary_max_length_5_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-5-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_4_nistxml_sv_iv_atomic_base64_binary_max_length_5_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-5-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_4_nistxml_sv_iv_atomic_base64_binary_max_length_5_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
74.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-5.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-5-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_3_nistxml_sv_iv_atomic_base64_binary_max_length_4_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
61.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-4-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_3_nistxml_sv_iv_atomic_base64_binary_max_length_4_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
61.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-4-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_3_nistxml_sv_iv_atomic_base64_binary_max_length_4_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
61.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-4-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_3_nistxml_sv_iv_atomic_base64_binary_max_length_4_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
61.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-4-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_3_nistxml_sv_iv_atomic_base64_binary_max_length_4_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
61.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-4.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-4-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_2_nistxml_sv_iv_atomic_base64_binary_max_length_3_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
54.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-3-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_2_nistxml_sv_iv_atomic_base64_binary_max_length_3_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
54.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-3-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_2_nistxml_sv_iv_atomic_base64_binary_max_length_3_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
54.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-3-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_2_nistxml_sv_iv_atomic_base64_binary_max_length_3_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
54.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-3-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_2_nistxml_sv_iv_atomic_base64_binary_max_length_3_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
54.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-3.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-3-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_1_nistxml_sv_iv_atomic_base64_binary_max_length_2_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
45.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-2-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_1_nistxml_sv_iv_atomic_base64_binary_max_length_2_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
45.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-2-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_1_nistxml_sv_iv_atomic_base64_binary_max_length_2_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
45.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-2-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_1_nistxml_sv_iv_atomic_base64_binary_max_length_2_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
45.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-2-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_1_nistxml_sv_iv_atomic_base64_binary_max_length_2_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
45.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-2.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-2-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_nistxml_sv_iv_atomic_base64_binary_max_length_1_1(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-1-1.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_nistxml_sv_iv_atomic_base64_binary_max_length_1_2(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-1-2.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_nistxml_sv_iv_atomic_base64_binary_max_length_1_3(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-1-3.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_nistxml_sv_iv_atomic_base64_binary_max_length_1_4(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-1-4.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_base64_binary_max_length_nistxml_sv_iv_atomic_base64_binary_max_length_1_5(mode, save_output, output_format):
"""
Type atomic/base64Binary is restricted by facet maxLength with value
1.
"""
assert_bindings(
schema="nistData/atomic/base64Binary/Schema+Instance/NISTSchema-SV-IV-atomic-base64Binary-maxLength-1.xsd",
instance="nistData/atomic/base64Binary/Schema+Instance/NISTXML-SV-IV-atomic-base64Binary-maxLength-1-5.xml",
class_name="NistschemaSvIvAtomicBase64BinaryMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_4_nistxml_sv_iv_atomic_boolean_white_space_5_1(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-5.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-5-1.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_4_nistxml_sv_iv_atomic_boolean_white_space_5_2(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-5.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-5-2.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_4_nistxml_sv_iv_atomic_boolean_white_space_5_3(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-5.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-5-3.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_4_nistxml_sv_iv_atomic_boolean_white_space_5_4(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-5.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-5-4.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_4_nistxml_sv_iv_atomic_boolean_white_space_5_5(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-5.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-5-5.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_3_nistxml_sv_iv_atomic_boolean_white_space_4_1(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-4.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-4-1.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_3_nistxml_sv_iv_atomic_boolean_white_space_4_2(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-4.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-4-2.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_3_nistxml_sv_iv_atomic_boolean_white_space_4_3(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-4.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-4-3.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_3_nistxml_sv_iv_atomic_boolean_white_space_4_4(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-4.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-4-4.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_3_nistxml_sv_iv_atomic_boolean_white_space_4_5(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-4.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-4-5.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_2_nistxml_sv_iv_atomic_boolean_white_space_3_1(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-3.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-3-1.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_2_nistxml_sv_iv_atomic_boolean_white_space_3_2(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-3.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-3-2.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_2_nistxml_sv_iv_atomic_boolean_white_space_3_3(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-3.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-3-3.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_2_nistxml_sv_iv_atomic_boolean_white_space_3_4(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-3.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-3-4.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_2_nistxml_sv_iv_atomic_boolean_white_space_3_5(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-3.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-3-5.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_1_nistxml_sv_iv_atomic_boolean_white_space_2_1(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-2.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-2-1.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_1_nistxml_sv_iv_atomic_boolean_white_space_2_2(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-2.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-2-2.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_1_nistxml_sv_iv_atomic_boolean_white_space_2_3(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-2.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-2-3.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_1_nistxml_sv_iv_atomic_boolean_white_space_2_4(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-2.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-2-4.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_1_nistxml_sv_iv_atomic_boolean_white_space_2_5(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-2.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-2-5.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_nistxml_sv_iv_atomic_boolean_white_space_1_1(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-1.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-1-1.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_nistxml_sv_iv_atomic_boolean_white_space_1_2(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-1.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-1-2.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_nistxml_sv_iv_atomic_boolean_white_space_1_3(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-1.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-1-3.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_nistxml_sv_iv_atomic_boolean_white_space_1_4(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-1.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-1-4.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_white_space_nistxml_sv_iv_atomic_boolean_white_space_1_5(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-whiteSpace-1.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-whiteSpace-1-5.xml",
class_name="NistschemaSvIvAtomicBooleanWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_4_nistxml_sv_iv_atomic_boolean_pattern_5_1(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-5.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-5-1.xml",
class_name="NistschemaSvIvAtomicBooleanPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_4_nistxml_sv_iv_atomic_boolean_pattern_5_2(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-5.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-5-2.xml",
class_name="NistschemaSvIvAtomicBooleanPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_4_nistxml_sv_iv_atomic_boolean_pattern_5_3(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-5.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-5-3.xml",
class_name="NistschemaSvIvAtomicBooleanPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_4_nistxml_sv_iv_atomic_boolean_pattern_5_4(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-5.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-5-4.xml",
class_name="NistschemaSvIvAtomicBooleanPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_4_nistxml_sv_iv_atomic_boolean_pattern_5_5(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-5.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-5-5.xml",
class_name="NistschemaSvIvAtomicBooleanPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_3_nistxml_sv_iv_atomic_boolean_pattern_4_1(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value false.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-4.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-4-1.xml",
class_name="NistschemaSvIvAtomicBooleanPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_3_nistxml_sv_iv_atomic_boolean_pattern_4_2(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value false.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-4.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-4-2.xml",
class_name="NistschemaSvIvAtomicBooleanPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_3_nistxml_sv_iv_atomic_boolean_pattern_4_3(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value false.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-4.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-4-3.xml",
class_name="NistschemaSvIvAtomicBooleanPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_3_nistxml_sv_iv_atomic_boolean_pattern_4_4(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value false.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-4.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-4-4.xml",
class_name="NistschemaSvIvAtomicBooleanPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_3_nistxml_sv_iv_atomic_boolean_pattern_4_5(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value false.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-4.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-4-5.xml",
class_name="NistschemaSvIvAtomicBooleanPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_2_nistxml_sv_iv_atomic_boolean_pattern_3_1(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-3.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-3-1.xml",
class_name="NistschemaSvIvAtomicBooleanPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_2_nistxml_sv_iv_atomic_boolean_pattern_3_2(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-3.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-3-2.xml",
class_name="NistschemaSvIvAtomicBooleanPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_2_nistxml_sv_iv_atomic_boolean_pattern_3_3(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-3.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-3-3.xml",
class_name="NistschemaSvIvAtomicBooleanPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_2_nistxml_sv_iv_atomic_boolean_pattern_3_4(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-3.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-3-4.xml",
class_name="NistschemaSvIvAtomicBooleanPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_2_nistxml_sv_iv_atomic_boolean_pattern_3_5(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-3.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-3-5.xml",
class_name="NistschemaSvIvAtomicBooleanPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_1_nistxml_sv_iv_atomic_boolean_pattern_2_1(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value false.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-2.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-2-1.xml",
class_name="NistschemaSvIvAtomicBooleanPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_1_nistxml_sv_iv_atomic_boolean_pattern_2_2(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value false.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-2.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-2-2.xml",
class_name="NistschemaSvIvAtomicBooleanPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_1_nistxml_sv_iv_atomic_boolean_pattern_2_3(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value false.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-2.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-2-3.xml",
class_name="NistschemaSvIvAtomicBooleanPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_1_nistxml_sv_iv_atomic_boolean_pattern_2_4(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value false.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-2.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-2-4.xml",
class_name="NistschemaSvIvAtomicBooleanPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_1_nistxml_sv_iv_atomic_boolean_pattern_2_5(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value false.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-2.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-2-5.xml",
class_name="NistschemaSvIvAtomicBooleanPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_nistxml_sv_iv_atomic_boolean_pattern_1_1(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-1.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-1-1.xml",
class_name="NistschemaSvIvAtomicBooleanPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_nistxml_sv_iv_atomic_boolean_pattern_1_2(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-1.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-1-2.xml",
class_name="NistschemaSvIvAtomicBooleanPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_nistxml_sv_iv_atomic_boolean_pattern_1_3(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-1.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-1-3.xml",
class_name="NistschemaSvIvAtomicBooleanPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_nistxml_sv_iv_atomic_boolean_pattern_1_4(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-1.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-1-4.xml",
class_name="NistschemaSvIvAtomicBooleanPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_boolean_pattern_nistxml_sv_iv_atomic_boolean_pattern_1_5(mode, save_output, output_format):
"""
Type atomic/boolean is restricted by facet pattern with value [1]{1}.
"""
assert_bindings(
schema="nistData/atomic/boolean/Schema+Instance/NISTSchema-SV-IV-atomic-boolean-pattern-1.xsd",
instance="nistData/atomic/boolean/Schema+Instance/NISTXML-SV-IV-atomic-boolean-pattern-1-5.xml",
class_name="NistschemaSvIvAtomicBooleanPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_white_space_nistxml_sv_iv_atomic_qname_white_space_1_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-whiteSpace-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-whiteSpace-1-1.xml",
class_name="NistschemaSvIvAtomicQnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_white_space_nistxml_sv_iv_atomic_qname_white_space_1_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-whiteSpace-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-whiteSpace-1-2.xml",
class_name="NistschemaSvIvAtomicQnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_white_space_nistxml_sv_iv_atomic_qname_white_space_1_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-whiteSpace-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-whiteSpace-1-3.xml",
class_name="NistschemaSvIvAtomicQnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_white_space_nistxml_sv_iv_atomic_qname_white_space_1_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-whiteSpace-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-whiteSpace-1-4.xml",
class_name="NistschemaSvIvAtomicQnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_white_space_nistxml_sv_iv_atomic_qname_white_space_1_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-whiteSpace-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-whiteSpace-1-5.xml",
class_name="NistschemaSvIvAtomicQnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_4_nistxml_sv_iv_atomic_qname_enumeration_5_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-5-1.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_4_nistxml_sv_iv_atomic_qname_enumeration_5_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-5-2.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_4_nistxml_sv_iv_atomic_qname_enumeration_5_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-5-3.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_4_nistxml_sv_iv_atomic_qname_enumeration_5_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-5-4.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_4_nistxml_sv_iv_atomic_qname_enumeration_5_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-5-5.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_3_nistxml_sv_iv_atomic_qname_enumeration_4_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-4-1.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_3_nistxml_sv_iv_atomic_qname_enumeration_4_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-4-2.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_3_nistxml_sv_iv_atomic_qname_enumeration_4_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-4-3.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_3_nistxml_sv_iv_atomic_qname_enumeration_4_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-4-4.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_3_nistxml_sv_iv_atomic_qname_enumeration_4_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-4-5.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_2_nistxml_sv_iv_atomic_qname_enumeration_3_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-3-1.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_2_nistxml_sv_iv_atomic_qname_enumeration_3_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-3-2.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_2_nistxml_sv_iv_atomic_qname_enumeration_3_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-3-3.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_2_nistxml_sv_iv_atomic_qname_enumeration_3_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-3-4.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_2_nistxml_sv_iv_atomic_qname_enumeration_3_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-3-5.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_1_nistxml_sv_iv_atomic_qname_enumeration_2_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-2-1.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_1_nistxml_sv_iv_atomic_qname_enumeration_2_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-2-2.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_1_nistxml_sv_iv_atomic_qname_enumeration_2_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-2-3.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_1_nistxml_sv_iv_atomic_qname_enumeration_2_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-2-4.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_1_nistxml_sv_iv_atomic_qname_enumeration_2_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-2-5.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_nistxml_sv_iv_atomic_qname_enumeration_1_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-1-1.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_nistxml_sv_iv_atomic_qname_enumeration_1_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-1-2.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_nistxml_sv_iv_atomic_qname_enumeration_1_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-1-3.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_nistxml_sv_iv_atomic_qname_enumeration_1_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-1-4.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_enumeration_nistxml_sv_iv_atomic_qname_enumeration_1_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-enumeration-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-enumeration-1-5.xml",
class_name="NistschemaSvIvAtomicQnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_4_nistxml_sv_iv_atomic_qname_pattern_5_1(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{58}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-5-1.xml",
class_name="NistschemaSvIvAtomicQnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_4_nistxml_sv_iv_atomic_qname_pattern_5_2(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{58}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-5-2.xml",
class_name="NistschemaSvIvAtomicQnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_4_nistxml_sv_iv_atomic_qname_pattern_5_3(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{58}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-5-3.xml",
class_name="NistschemaSvIvAtomicQnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_4_nistxml_sv_iv_atomic_qname_pattern_5_4(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{58}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-5-4.xml",
class_name="NistschemaSvIvAtomicQnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_4_nistxml_sv_iv_atomic_qname_pattern_5_5(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{58}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-5-5.xml",
class_name="NistschemaSvIvAtomicQnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_3_nistxml_sv_iv_atomic_qname_pattern_4_1(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{27}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-4-1.xml",
class_name="NistschemaSvIvAtomicQnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_3_nistxml_sv_iv_atomic_qname_pattern_4_2(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{27}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-4-2.xml",
class_name="NistschemaSvIvAtomicQnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_3_nistxml_sv_iv_atomic_qname_pattern_4_3(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{27}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-4-3.xml",
class_name="NistschemaSvIvAtomicQnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_3_nistxml_sv_iv_atomic_qname_pattern_4_4(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{27}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-4-4.xml",
class_name="NistschemaSvIvAtomicQnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_3_nistxml_sv_iv_atomic_qname_pattern_4_5(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{27}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-4-5.xml",
class_name="NistschemaSvIvAtomicQnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_2_nistxml_sv_iv_atomic_qname_pattern_3_1(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{33}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-3-1.xml",
class_name="NistschemaSvIvAtomicQnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_2_nistxml_sv_iv_atomic_qname_pattern_3_2(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{33}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-3-2.xml",
class_name="NistschemaSvIvAtomicQnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_2_nistxml_sv_iv_atomic_qname_pattern_3_3(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{33}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-3-3.xml",
class_name="NistschemaSvIvAtomicQnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_2_nistxml_sv_iv_atomic_qname_pattern_3_4(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{33}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-3-4.xml",
class_name="NistschemaSvIvAtomicQnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_2_nistxml_sv_iv_atomic_qname_pattern_3_5(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{33}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-3-5.xml",
class_name="NistschemaSvIvAtomicQnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_1_nistxml_sv_iv_atomic_qname_pattern_2_1(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{20}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-2-1.xml",
class_name="NistschemaSvIvAtomicQnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_1_nistxml_sv_iv_atomic_qname_pattern_2_2(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{20}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-2-2.xml",
class_name="NistschemaSvIvAtomicQnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_1_nistxml_sv_iv_atomic_qname_pattern_2_3(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{20}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-2-3.xml",
class_name="NistschemaSvIvAtomicQnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_1_nistxml_sv_iv_atomic_qname_pattern_2_4(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{20}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-2-4.xml",
class_name="NistschemaSvIvAtomicQnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_1_nistxml_sv_iv_atomic_qname_pattern_2_5(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{20}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-2-5.xml",
class_name="NistschemaSvIvAtomicQnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_nistxml_sv_iv_atomic_qname_pattern_1_1(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{40}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-1-1.xml",
class_name="NistschemaSvIvAtomicQnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_nistxml_sv_iv_atomic_qname_pattern_1_2(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{40}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-1-2.xml",
class_name="NistschemaSvIvAtomicQnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_nistxml_sv_iv_atomic_qname_pattern_1_3(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{40}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-1-3.xml",
class_name="NistschemaSvIvAtomicQnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_nistxml_sv_iv_atomic_qname_pattern_1_4(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{40}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-1-4.xml",
class_name="NistschemaSvIvAtomicQnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_pattern_nistxml_sv_iv_atomic_qname_pattern_1_5(mode, save_output, output_format):
r"""
Type atomic/QName is restricted by facet pattern with value
([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]{40}.
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-pattern-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-pattern-1-5.xml",
class_name="NistschemaSvIvAtomicQnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_4_nistxml_sv_iv_atomic_qname_length_5_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-5-1.xml",
class_name="NistschemaSvIvAtomicQnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_4_nistxml_sv_iv_atomic_qname_length_5_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-5-2.xml",
class_name="NistschemaSvIvAtomicQnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_4_nistxml_sv_iv_atomic_qname_length_5_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-5-3.xml",
class_name="NistschemaSvIvAtomicQnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_4_nistxml_sv_iv_atomic_qname_length_5_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-5-4.xml",
class_name="NistschemaSvIvAtomicQnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_4_nistxml_sv_iv_atomic_qname_length_5_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-5-5.xml",
class_name="NistschemaSvIvAtomicQnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_3_nistxml_sv_iv_atomic_qname_length_4_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 34. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-4-1.xml",
class_name="NistschemaSvIvAtomicQnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_3_nistxml_sv_iv_atomic_qname_length_4_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 34. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-4-2.xml",
class_name="NistschemaSvIvAtomicQnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_3_nistxml_sv_iv_atomic_qname_length_4_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 34. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-4-3.xml",
class_name="NistschemaSvIvAtomicQnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_3_nistxml_sv_iv_atomic_qname_length_4_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 34. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-4-4.xml",
class_name="NistschemaSvIvAtomicQnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_3_nistxml_sv_iv_atomic_qname_length_4_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 34. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-4-5.xml",
class_name="NistschemaSvIvAtomicQnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_2_nistxml_sv_iv_atomic_qname_length_3_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 33. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-3-1.xml",
class_name="NistschemaSvIvAtomicQnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_2_nistxml_sv_iv_atomic_qname_length_3_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 33. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-3-2.xml",
class_name="NistschemaSvIvAtomicQnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_2_nistxml_sv_iv_atomic_qname_length_3_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 33. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-3-3.xml",
class_name="NistschemaSvIvAtomicQnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_2_nistxml_sv_iv_atomic_qname_length_3_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 33. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-3-4.xml",
class_name="NistschemaSvIvAtomicQnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_2_nistxml_sv_iv_atomic_qname_length_3_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 33. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-3-5.xml",
class_name="NistschemaSvIvAtomicQnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_1_nistxml_sv_iv_atomic_qname_length_2_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 7. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-2-1.xml",
class_name="NistschemaSvIvAtomicQnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_1_nistxml_sv_iv_atomic_qname_length_2_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 7. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-2-2.xml",
class_name="NistschemaSvIvAtomicQnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_1_nistxml_sv_iv_atomic_qname_length_2_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 7. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-2-3.xml",
class_name="NistschemaSvIvAtomicQnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_1_nistxml_sv_iv_atomic_qname_length_2_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 7. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-2-4.xml",
class_name="NistschemaSvIvAtomicQnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_1_nistxml_sv_iv_atomic_qname_length_2_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 7. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-2-5.xml",
class_name="NistschemaSvIvAtomicQnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_nistxml_sv_iv_atomic_qname_length_1_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-1-1.xml",
class_name="NistschemaSvIvAtomicQnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_nistxml_sv_iv_atomic_qname_length_1_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-1-2.xml",
class_name="NistschemaSvIvAtomicQnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_nistxml_sv_iv_atomic_qname_length_1_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-1-3.xml",
class_name="NistschemaSvIvAtomicQnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_nistxml_sv_iv_atomic_qname_length_1_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-1-4.xml",
class_name="NistschemaSvIvAtomicQnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_length_nistxml_sv_iv_atomic_qname_length_1_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet length with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-length-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-length-1-5.xml",
class_name="NistschemaSvIvAtomicQnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_4_nistxml_sv_iv_atomic_qname_min_length_5_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-5-1.xml",
class_name="NistschemaSvIvAtomicQnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_4_nistxml_sv_iv_atomic_qname_min_length_5_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-5-2.xml",
class_name="NistschemaSvIvAtomicQnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_4_nistxml_sv_iv_atomic_qname_min_length_5_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-5-3.xml",
class_name="NistschemaSvIvAtomicQnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_4_nistxml_sv_iv_atomic_qname_min_length_5_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-5-4.xml",
class_name="NistschemaSvIvAtomicQnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_4_nistxml_sv_iv_atomic_qname_min_length_5_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-5-5.xml",
class_name="NistschemaSvIvAtomicQnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_3_nistxml_sv_iv_atomic_qname_min_length_4_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 18. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-4-1.xml",
class_name="NistschemaSvIvAtomicQnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_3_nistxml_sv_iv_atomic_qname_min_length_4_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 18. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-4-2.xml",
class_name="NistschemaSvIvAtomicQnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_3_nistxml_sv_iv_atomic_qname_min_length_4_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 18. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-4-3.xml",
class_name="NistschemaSvIvAtomicQnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_3_nistxml_sv_iv_atomic_qname_min_length_4_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 18. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-4-4.xml",
class_name="NistschemaSvIvAtomicQnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_3_nistxml_sv_iv_atomic_qname_min_length_4_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 18. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-4-5.xml",
class_name="NistschemaSvIvAtomicQnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_2_nistxml_sv_iv_atomic_qname_min_length_3_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 50. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-3-1.xml",
class_name="NistschemaSvIvAtomicQnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_2_nistxml_sv_iv_atomic_qname_min_length_3_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 50. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-3-2.xml",
class_name="NistschemaSvIvAtomicQnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_2_nistxml_sv_iv_atomic_qname_min_length_3_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 50. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-3-3.xml",
class_name="NistschemaSvIvAtomicQnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_2_nistxml_sv_iv_atomic_qname_min_length_3_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 50. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-3-4.xml",
class_name="NistschemaSvIvAtomicQnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_2_nistxml_sv_iv_atomic_qname_min_length_3_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 50. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-3-5.xml",
class_name="NistschemaSvIvAtomicQnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_1_nistxml_sv_iv_atomic_qname_min_length_2_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 8. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-2-1.xml",
class_name="NistschemaSvIvAtomicQnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_1_nistxml_sv_iv_atomic_qname_min_length_2_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 8. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-2-2.xml",
class_name="NistschemaSvIvAtomicQnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_1_nistxml_sv_iv_atomic_qname_min_length_2_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 8. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-2-3.xml",
class_name="NistschemaSvIvAtomicQnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_1_nistxml_sv_iv_atomic_qname_min_length_2_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 8. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-2-4.xml",
class_name="NistschemaSvIvAtomicQnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_1_nistxml_sv_iv_atomic_qname_min_length_2_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 8. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-2-5.xml",
class_name="NistschemaSvIvAtomicQnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_nistxml_sv_iv_atomic_qname_min_length_1_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-1-1.xml",
class_name="NistschemaSvIvAtomicQnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_nistxml_sv_iv_atomic_qname_min_length_1_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-1-2.xml",
class_name="NistschemaSvIvAtomicQnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_nistxml_sv_iv_atomic_qname_min_length_1_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-1-3.xml",
class_name="NistschemaSvIvAtomicQnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_nistxml_sv_iv_atomic_qname_min_length_1_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-1-4.xml",
class_name="NistschemaSvIvAtomicQnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_min_length_nistxml_sv_iv_atomic_qname_min_length_1_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet minLength with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-minLength-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-minLength-1-5.xml",
class_name="NistschemaSvIvAtomicQnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_4_nistxml_sv_iv_atomic_qname_max_length_5_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-5-1.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_4_nistxml_sv_iv_atomic_qname_max_length_5_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-5-2.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_4_nistxml_sv_iv_atomic_qname_max_length_5_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-5-3.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_4_nistxml_sv_iv_atomic_qname_max_length_5_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-5-4.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_4_nistxml_sv_iv_atomic_qname_max_length_5_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 64. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-5.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-5-5.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_3_nistxml_sv_iv_atomic_qname_max_length_4_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 61. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-4-1.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_3_nistxml_sv_iv_atomic_qname_max_length_4_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 61. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-4-2.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_3_nistxml_sv_iv_atomic_qname_max_length_4_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 61. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-4-3.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_3_nistxml_sv_iv_atomic_qname_max_length_4_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 61. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-4-4.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_3_nistxml_sv_iv_atomic_qname_max_length_4_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 61. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-4.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-4-5.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_2_nistxml_sv_iv_atomic_qname_max_length_3_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 57. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-3-1.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_2_nistxml_sv_iv_atomic_qname_max_length_3_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 57. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-3-2.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_2_nistxml_sv_iv_atomic_qname_max_length_3_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 57. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-3-3.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_2_nistxml_sv_iv_atomic_qname_max_length_3_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 57. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-3-4.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_2_nistxml_sv_iv_atomic_qname_max_length_3_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 57. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-3.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-3-5.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_1_nistxml_sv_iv_atomic_qname_max_length_2_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 4. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-2-1.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_1_nistxml_sv_iv_atomic_qname_max_length_2_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 4. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-2-2.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_1_nistxml_sv_iv_atomic_qname_max_length_2_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 4. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-2-3.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_1_nistxml_sv_iv_atomic_qname_max_length_2_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 4. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-2-4.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_1_nistxml_sv_iv_atomic_qname_max_length_2_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 4. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-2.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-2-5.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_nistxml_sv_iv_atomic_qname_max_length_1_1(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-1-1.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_nistxml_sv_iv_atomic_qname_max_length_1_2(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-1-2.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_nistxml_sv_iv_atomic_qname_max_length_1_3(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-1-3.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_nistxml_sv_iv_atomic_qname_max_length_1_4(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-1-4.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_qname_max_length_nistxml_sv_iv_atomic_qname_max_length_1_5(mode, save_output, output_format):
"""
Type atomic/QName is restricted by facet maxLength with value 1. The
original commenter agreed that 1.0 does in fact make clear that all
length-related facet tests on QNames are satisfied
"""
assert_bindings(
schema="nistData/atomic/QName/Schema+Instance/NISTSchema-SV-IV-atomic-QName-maxLength-1.xsd",
instance="nistData/atomic/QName/Schema+Instance/NISTXML-SV-IV-atomic-QName-maxLength-1-5.xml",
class_name="NistschemaSvIvAtomicQnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_white_space_nistxml_sv_iv_atomic_any_uri_white_space_1_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-whiteSpace-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-whiteSpace-1-1.xml",
class_name="NistschemaSvIvAtomicAnyUriWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_white_space_nistxml_sv_iv_atomic_any_uri_white_space_1_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-whiteSpace-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-whiteSpace-1-2.xml",
class_name="NistschemaSvIvAtomicAnyUriWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_white_space_nistxml_sv_iv_atomic_any_uri_white_space_1_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-whiteSpace-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-whiteSpace-1-3.xml",
class_name="NistschemaSvIvAtomicAnyUriWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_white_space_nistxml_sv_iv_atomic_any_uri_white_space_1_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-whiteSpace-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-whiteSpace-1-4.xml",
class_name="NistschemaSvIvAtomicAnyUriWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_white_space_nistxml_sv_iv_atomic_any_uri_white_space_1_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-whiteSpace-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-whiteSpace-1-5.xml",
class_name="NistschemaSvIvAtomicAnyUriWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_4_nistxml_sv_iv_atomic_any_uri_enumeration_5_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-5-1.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_4_nistxml_sv_iv_atomic_any_uri_enumeration_5_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-5-2.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_4_nistxml_sv_iv_atomic_any_uri_enumeration_5_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-5-3.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_4_nistxml_sv_iv_atomic_any_uri_enumeration_5_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-5-4.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_4_nistxml_sv_iv_atomic_any_uri_enumeration_5_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-5-5.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_3_nistxml_sv_iv_atomic_any_uri_enumeration_4_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-4-1.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_3_nistxml_sv_iv_atomic_any_uri_enumeration_4_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-4-2.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_3_nistxml_sv_iv_atomic_any_uri_enumeration_4_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-4-3.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_3_nistxml_sv_iv_atomic_any_uri_enumeration_4_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-4-4.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_3_nistxml_sv_iv_atomic_any_uri_enumeration_4_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-4-5.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_2_nistxml_sv_iv_atomic_any_uri_enumeration_3_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-3-1.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_2_nistxml_sv_iv_atomic_any_uri_enumeration_3_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-3-2.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_2_nistxml_sv_iv_atomic_any_uri_enumeration_3_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-3-3.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_2_nistxml_sv_iv_atomic_any_uri_enumeration_3_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-3-4.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_2_nistxml_sv_iv_atomic_any_uri_enumeration_3_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-3-5.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_1_nistxml_sv_iv_atomic_any_uri_enumeration_2_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-2-1.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_1_nistxml_sv_iv_atomic_any_uri_enumeration_2_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-2-2.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_1_nistxml_sv_iv_atomic_any_uri_enumeration_2_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-2-3.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_1_nistxml_sv_iv_atomic_any_uri_enumeration_2_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-2-4.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_1_nistxml_sv_iv_atomic_any_uri_enumeration_2_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-2-5.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_nistxml_sv_iv_atomic_any_uri_enumeration_1_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-1-1.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_nistxml_sv_iv_atomic_any_uri_enumeration_1_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-1-2.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_nistxml_sv_iv_atomic_any_uri_enumeration_1_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-1-3.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_nistxml_sv_iv_atomic_any_uri_enumeration_1_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-1-4.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_enumeration_nistxml_sv_iv_atomic_any_uri_enumeration_1_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-enumeration-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-enumeration-1-5.xml",
class_name="NistschemaSvIvAtomicAnyUriEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_4_nistxml_sv_iv_atomic_any_uri_pattern_5_1(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,10}\.){1,5}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-5-1.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_4_nistxml_sv_iv_atomic_any_uri_pattern_5_2(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,10}\.){1,5}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-5-2.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_4_nistxml_sv_iv_atomic_any_uri_pattern_5_3(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,10}\.){1,5}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-5-3.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_4_nistxml_sv_iv_atomic_any_uri_pattern_5_4(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,10}\.){1,5}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-5-4.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_4_nistxml_sv_iv_atomic_any_uri_pattern_5_5(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,10}\.){1,5}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-5-5.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_3_nistxml_sv_iv_atomic_any_uri_pattern_4_1(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,6}\.){1,2}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-4-1.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_3_nistxml_sv_iv_atomic_any_uri_pattern_4_2(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,6}\.){1,2}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-4-2.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_3_nistxml_sv_iv_atomic_any_uri_pattern_4_3(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,6}\.){1,2}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-4-3.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_3_nistxml_sv_iv_atomic_any_uri_pattern_4_4(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,6}\.){1,2}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-4-4.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_3_nistxml_sv_iv_atomic_any_uri_pattern_4_5(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,6}\.){1,2}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-4-5.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_2_nistxml_sv_iv_atomic_any_uri_pattern_3_1(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,7}\.){1,4}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-3-1.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_2_nistxml_sv_iv_atomic_any_uri_pattern_3_2(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,7}\.){1,4}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-3-2.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_2_nistxml_sv_iv_atomic_any_uri_pattern_3_3(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,7}\.){1,4}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-3-3.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_2_nistxml_sv_iv_atomic_any_uri_pattern_3_4(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,7}\.){1,4}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-3-4.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_2_nistxml_sv_iv_atomic_any_uri_pattern_3_5(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,7}\.){1,4}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-3-5.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_1_nistxml_sv_iv_atomic_any_uri_pattern_2_1(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,3}\.){1,4}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-2-1.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_1_nistxml_sv_iv_atomic_any_uri_pattern_2_2(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,3}\.){1,4}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-2-2.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_1_nistxml_sv_iv_atomic_any_uri_pattern_2_3(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,3}\.){1,4}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-2-3.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_1_nistxml_sv_iv_atomic_any_uri_pattern_2_4(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,3}\.){1,4}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-2-4.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_1_nistxml_sv_iv_atomic_any_uri_pattern_2_5(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,3}\.){1,4}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-2-5.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_nistxml_sv_iv_atomic_any_uri_pattern_1_1(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,7}\.){1,2}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-1-1.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_nistxml_sv_iv_atomic_any_uri_pattern_1_2(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,7}\.){1,2}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-1-2.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_nistxml_sv_iv_atomic_any_uri_pattern_1_3(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,7}\.){1,2}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-1-3.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_nistxml_sv_iv_atomic_any_uri_pattern_1_4(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,7}\.){1,2}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-1-4.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_pattern_nistxml_sv_iv_atomic_any_uri_pattern_1_5(mode, save_output, output_format):
r"""
Type atomic/anyURI is restricted by facet pattern with value
\c{3,6}://(\c{1,7}\.){1,2}\c{3}.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-pattern-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-pattern-1-5.xml",
class_name="NistschemaSvIvAtomicAnyUriPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_4_nistxml_sv_iv_atomic_any_uri_length_5_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-5-1.xml",
class_name="NistschemaSvIvAtomicAnyUriLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_4_nistxml_sv_iv_atomic_any_uri_length_5_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-5-2.xml",
class_name="NistschemaSvIvAtomicAnyUriLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_4_nistxml_sv_iv_atomic_any_uri_length_5_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-5-3.xml",
class_name="NistschemaSvIvAtomicAnyUriLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_4_nistxml_sv_iv_atomic_any_uri_length_5_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-5-4.xml",
class_name="NistschemaSvIvAtomicAnyUriLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_4_nistxml_sv_iv_atomic_any_uri_length_5_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-5-5.xml",
class_name="NistschemaSvIvAtomicAnyUriLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_3_nistxml_sv_iv_atomic_any_uri_length_4_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 12.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-4-1.xml",
class_name="NistschemaSvIvAtomicAnyUriLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_3_nistxml_sv_iv_atomic_any_uri_length_4_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 12.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-4-2.xml",
class_name="NistschemaSvIvAtomicAnyUriLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_3_nistxml_sv_iv_atomic_any_uri_length_4_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 12.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-4-3.xml",
class_name="NistschemaSvIvAtomicAnyUriLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_3_nistxml_sv_iv_atomic_any_uri_length_4_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 12.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-4-4.xml",
class_name="NistschemaSvIvAtomicAnyUriLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_3_nistxml_sv_iv_atomic_any_uri_length_4_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 12.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-4-5.xml",
class_name="NistschemaSvIvAtomicAnyUriLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_2_nistxml_sv_iv_atomic_any_uri_length_3_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 34.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-3-1.xml",
class_name="NistschemaSvIvAtomicAnyUriLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_2_nistxml_sv_iv_atomic_any_uri_length_3_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 34.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-3-2.xml",
class_name="NistschemaSvIvAtomicAnyUriLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_2_nistxml_sv_iv_atomic_any_uri_length_3_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 34.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-3-3.xml",
class_name="NistschemaSvIvAtomicAnyUriLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_2_nistxml_sv_iv_atomic_any_uri_length_3_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 34.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-3-4.xml",
class_name="NistschemaSvIvAtomicAnyUriLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_2_nistxml_sv_iv_atomic_any_uri_length_3_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 34.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-3-5.xml",
class_name="NistschemaSvIvAtomicAnyUriLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_1_nistxml_sv_iv_atomic_any_uri_length_2_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-2-1.xml",
class_name="NistschemaSvIvAtomicAnyUriLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_1_nistxml_sv_iv_atomic_any_uri_length_2_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-2-2.xml",
class_name="NistschemaSvIvAtomicAnyUriLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_1_nistxml_sv_iv_atomic_any_uri_length_2_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-2-3.xml",
class_name="NistschemaSvIvAtomicAnyUriLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_1_nistxml_sv_iv_atomic_any_uri_length_2_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-2-4.xml",
class_name="NistschemaSvIvAtomicAnyUriLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_1_nistxml_sv_iv_atomic_any_uri_length_2_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-2-5.xml",
class_name="NistschemaSvIvAtomicAnyUriLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_nistxml_sv_iv_atomic_any_uri_length_1_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-1-1.xml",
class_name="NistschemaSvIvAtomicAnyUriLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_nistxml_sv_iv_atomic_any_uri_length_1_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-1-2.xml",
class_name="NistschemaSvIvAtomicAnyUriLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_nistxml_sv_iv_atomic_any_uri_length_1_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-1-3.xml",
class_name="NistschemaSvIvAtomicAnyUriLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_nistxml_sv_iv_atomic_any_uri_length_1_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-1-4.xml",
class_name="NistschemaSvIvAtomicAnyUriLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_length_nistxml_sv_iv_atomic_any_uri_length_1_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-length-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-length-1-5.xml",
class_name="NistschemaSvIvAtomicAnyUriLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_4_nistxml_sv_iv_atomic_any_uri_min_length_5_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-5-1.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_4_nistxml_sv_iv_atomic_any_uri_min_length_5_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-5-2.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_4_nistxml_sv_iv_atomic_any_uri_min_length_5_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-5-3.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_4_nistxml_sv_iv_atomic_any_uri_min_length_5_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-5-4.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_4_nistxml_sv_iv_atomic_any_uri_min_length_5_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-5-5.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_3_nistxml_sv_iv_atomic_any_uri_min_length_4_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 50.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-4-1.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_3_nistxml_sv_iv_atomic_any_uri_min_length_4_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 50.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-4-2.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_3_nistxml_sv_iv_atomic_any_uri_min_length_4_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 50.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-4-3.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_3_nistxml_sv_iv_atomic_any_uri_min_length_4_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 50.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-4-4.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_3_nistxml_sv_iv_atomic_any_uri_min_length_4_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 50.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-4-5.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_2_nistxml_sv_iv_atomic_any_uri_min_length_3_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 36.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-3-1.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_2_nistxml_sv_iv_atomic_any_uri_min_length_3_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 36.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-3-2.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_2_nistxml_sv_iv_atomic_any_uri_min_length_3_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 36.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-3-3.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_2_nistxml_sv_iv_atomic_any_uri_min_length_3_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 36.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-3-4.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_2_nistxml_sv_iv_atomic_any_uri_min_length_3_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 36.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-3-5.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_1_nistxml_sv_iv_atomic_any_uri_min_length_2_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 41.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-2-1.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_1_nistxml_sv_iv_atomic_any_uri_min_length_2_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 41.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-2-2.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_1_nistxml_sv_iv_atomic_any_uri_min_length_2_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 41.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-2-3.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_1_nistxml_sv_iv_atomic_any_uri_min_length_2_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 41.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-2-4.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_1_nistxml_sv_iv_atomic_any_uri_min_length_2_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 41.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-2-5.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_nistxml_sv_iv_atomic_any_uri_min_length_1_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-1-1.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_nistxml_sv_iv_atomic_any_uri_min_length_1_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-1-2.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_nistxml_sv_iv_atomic_any_uri_min_length_1_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-1-3.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_nistxml_sv_iv_atomic_any_uri_min_length_1_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-1-4.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_min_length_nistxml_sv_iv_atomic_any_uri_min_length_1_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet minLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-minLength-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-minLength-1-5.xml",
class_name="NistschemaSvIvAtomicAnyUriMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_4_nistxml_sv_iv_atomic_any_uri_max_length_5_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-5-1.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_4_nistxml_sv_iv_atomic_any_uri_max_length_5_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-5-2.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_4_nistxml_sv_iv_atomic_any_uri_max_length_5_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-5-3.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_4_nistxml_sv_iv_atomic_any_uri_max_length_5_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-5-4.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_4_nistxml_sv_iv_atomic_any_uri_max_length_5_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 63.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-5.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-5-5.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_3_nistxml_sv_iv_atomic_any_uri_max_length_4_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 31.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-4-1.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_3_nistxml_sv_iv_atomic_any_uri_max_length_4_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 31.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-4-2.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_3_nistxml_sv_iv_atomic_any_uri_max_length_4_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 31.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-4-3.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_3_nistxml_sv_iv_atomic_any_uri_max_length_4_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 31.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-4-4.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_3_nistxml_sv_iv_atomic_any_uri_max_length_4_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 31.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-4.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-4-5.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_2_nistxml_sv_iv_atomic_any_uri_max_length_3_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 26.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-3-1.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_2_nistxml_sv_iv_atomic_any_uri_max_length_3_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 26.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-3-2.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_2_nistxml_sv_iv_atomic_any_uri_max_length_3_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 26.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-3-3.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_2_nistxml_sv_iv_atomic_any_uri_max_length_3_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 26.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-3-4.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_2_nistxml_sv_iv_atomic_any_uri_max_length_3_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 26.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-3.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-3-5.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_1_nistxml_sv_iv_atomic_any_uri_max_length_2_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 40.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-2-1.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_1_nistxml_sv_iv_atomic_any_uri_max_length_2_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 40.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-2-2.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_1_nistxml_sv_iv_atomic_any_uri_max_length_2_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 40.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-2-3.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_1_nistxml_sv_iv_atomic_any_uri_max_length_2_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 40.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-2-4.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_1_nistxml_sv_iv_atomic_any_uri_max_length_2_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 40.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-2.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-2-5.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_nistxml_sv_iv_atomic_any_uri_max_length_1_1(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-1-1.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_nistxml_sv_iv_atomic_any_uri_max_length_1_2(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-1-2.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_nistxml_sv_iv_atomic_any_uri_max_length_1_3(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-1-3.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_nistxml_sv_iv_atomic_any_uri_max_length_1_4(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-1-4.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_any_uri_max_length_nistxml_sv_iv_atomic_any_uri_max_length_1_5(mode, save_output, output_format):
"""
Type atomic/anyURI is restricted by facet maxLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/anyURI/Schema+Instance/NISTSchema-SV-IV-atomic-anyURI-maxLength-1.xsd",
instance="nistData/atomic/anyURI/Schema+Instance/NISTXML-SV-IV-atomic-anyURI-maxLength-1-5.xml",
class_name="NistschemaSvIvAtomicAnyUriMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_white_space_nistxml_sv_iv_atomic_language_white_space_1_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-whiteSpace-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-whiteSpace-1-1.xml",
class_name="NistschemaSvIvAtomicLanguageWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_white_space_nistxml_sv_iv_atomic_language_white_space_1_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-whiteSpace-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-whiteSpace-1-2.xml",
class_name="NistschemaSvIvAtomicLanguageWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_white_space_nistxml_sv_iv_atomic_language_white_space_1_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-whiteSpace-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-whiteSpace-1-3.xml",
class_name="NistschemaSvIvAtomicLanguageWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_white_space_nistxml_sv_iv_atomic_language_white_space_1_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-whiteSpace-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-whiteSpace-1-4.xml",
class_name="NistschemaSvIvAtomicLanguageWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_white_space_nistxml_sv_iv_atomic_language_white_space_1_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-whiteSpace-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-whiteSpace-1-5.xml",
class_name="NistschemaSvIvAtomicLanguageWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_4_nistxml_sv_iv_atomic_language_enumeration_5_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-5-1.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_4_nistxml_sv_iv_atomic_language_enumeration_5_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-5-2.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_4_nistxml_sv_iv_atomic_language_enumeration_5_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-5-3.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_4_nistxml_sv_iv_atomic_language_enumeration_5_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-5-4.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_4_nistxml_sv_iv_atomic_language_enumeration_5_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-5-5.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_3_nistxml_sv_iv_atomic_language_enumeration_4_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-4-1.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_3_nistxml_sv_iv_atomic_language_enumeration_4_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-4-2.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_3_nistxml_sv_iv_atomic_language_enumeration_4_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-4-3.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_3_nistxml_sv_iv_atomic_language_enumeration_4_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-4-4.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_3_nistxml_sv_iv_atomic_language_enumeration_4_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-4-5.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_2_nistxml_sv_iv_atomic_language_enumeration_3_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-3-1.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_2_nistxml_sv_iv_atomic_language_enumeration_3_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-3-2.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_2_nistxml_sv_iv_atomic_language_enumeration_3_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-3-3.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_2_nistxml_sv_iv_atomic_language_enumeration_3_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-3-4.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_2_nistxml_sv_iv_atomic_language_enumeration_3_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-3-5.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_1_nistxml_sv_iv_atomic_language_enumeration_2_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-2-1.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_1_nistxml_sv_iv_atomic_language_enumeration_2_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-2-2.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_1_nistxml_sv_iv_atomic_language_enumeration_2_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-2-3.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_1_nistxml_sv_iv_atomic_language_enumeration_2_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-2-4.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_1_nistxml_sv_iv_atomic_language_enumeration_2_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-2-5.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_nistxml_sv_iv_atomic_language_enumeration_1_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-1-1.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_nistxml_sv_iv_atomic_language_enumeration_1_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-1-2.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_nistxml_sv_iv_atomic_language_enumeration_1_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-1-3.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_nistxml_sv_iv_atomic_language_enumeration_1_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-1-4.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_enumeration_nistxml_sv_iv_atomic_language_enumeration_1_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-enumeration-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-enumeration-1-5.xml",
class_name="NistschemaSvIvAtomicLanguageEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_4_nistxml_sv_iv_atomic_language_pattern_5_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-5-1.xml",
class_name="NistschemaSvIvAtomicLanguagePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_4_nistxml_sv_iv_atomic_language_pattern_5_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-5-2.xml",
class_name="NistschemaSvIvAtomicLanguagePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_4_nistxml_sv_iv_atomic_language_pattern_5_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-5-3.xml",
class_name="NistschemaSvIvAtomicLanguagePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_4_nistxml_sv_iv_atomic_language_pattern_5_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-5-4.xml",
class_name="NistschemaSvIvAtomicLanguagePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_4_nistxml_sv_iv_atomic_language_pattern_5_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-5-5.xml",
class_name="NistschemaSvIvAtomicLanguagePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_3_nistxml_sv_iv_atomic_language_pattern_4_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-4-1.xml",
class_name="NistschemaSvIvAtomicLanguagePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_3_nistxml_sv_iv_atomic_language_pattern_4_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-4-2.xml",
class_name="NistschemaSvIvAtomicLanguagePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_3_nistxml_sv_iv_atomic_language_pattern_4_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-4-3.xml",
class_name="NistschemaSvIvAtomicLanguagePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_3_nistxml_sv_iv_atomic_language_pattern_4_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-4-4.xml",
class_name="NistschemaSvIvAtomicLanguagePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_3_nistxml_sv_iv_atomic_language_pattern_4_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-4-5.xml",
class_name="NistschemaSvIvAtomicLanguagePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_2_nistxml_sv_iv_atomic_language_pattern_3_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-3-1.xml",
class_name="NistschemaSvIvAtomicLanguagePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_2_nistxml_sv_iv_atomic_language_pattern_3_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-3-2.xml",
class_name="NistschemaSvIvAtomicLanguagePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_2_nistxml_sv_iv_atomic_language_pattern_3_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-3-3.xml",
class_name="NistschemaSvIvAtomicLanguagePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_2_nistxml_sv_iv_atomic_language_pattern_3_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-3-4.xml",
class_name="NistschemaSvIvAtomicLanguagePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_2_nistxml_sv_iv_atomic_language_pattern_3_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-3-5.xml",
class_name="NistschemaSvIvAtomicLanguagePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_1_nistxml_sv_iv_atomic_language_pattern_2_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-2-1.xml",
class_name="NistschemaSvIvAtomicLanguagePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_1_nistxml_sv_iv_atomic_language_pattern_2_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-2-2.xml",
class_name="NistschemaSvIvAtomicLanguagePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_1_nistxml_sv_iv_atomic_language_pattern_2_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-2-3.xml",
class_name="NistschemaSvIvAtomicLanguagePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_1_nistxml_sv_iv_atomic_language_pattern_2_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-2-4.xml",
class_name="NistschemaSvIvAtomicLanguagePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_1_nistxml_sv_iv_atomic_language_pattern_2_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-2-5.xml",
class_name="NistschemaSvIvAtomicLanguagePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_nistxml_sv_iv_atomic_language_pattern_1_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-1-1.xml",
class_name="NistschemaSvIvAtomicLanguagePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_nistxml_sv_iv_atomic_language_pattern_1_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-1-2.xml",
class_name="NistschemaSvIvAtomicLanguagePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_nistxml_sv_iv_atomic_language_pattern_1_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-1-3.xml",
class_name="NistschemaSvIvAtomicLanguagePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_nistxml_sv_iv_atomic_language_pattern_1_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-1-4.xml",
class_name="NistschemaSvIvAtomicLanguagePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_pattern_nistxml_sv_iv_atomic_language_pattern_1_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet pattern with value
([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{3})*.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-pattern-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-pattern-1-5.xml",
class_name="NistschemaSvIvAtomicLanguagePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_4_nistxml_sv_iv_atomic_language_length_5_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-5-1.xml",
class_name="NistschemaSvIvAtomicLanguageLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_4_nistxml_sv_iv_atomic_language_length_5_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-5-2.xml",
class_name="NistschemaSvIvAtomicLanguageLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_4_nistxml_sv_iv_atomic_language_length_5_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-5-3.xml",
class_name="NistschemaSvIvAtomicLanguageLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_4_nistxml_sv_iv_atomic_language_length_5_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-5-4.xml",
class_name="NistschemaSvIvAtomicLanguageLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_4_nistxml_sv_iv_atomic_language_length_5_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-5-5.xml",
class_name="NistschemaSvIvAtomicLanguageLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_3_nistxml_sv_iv_atomic_language_length_4_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-4-1.xml",
class_name="NistschemaSvIvAtomicLanguageLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_3_nistxml_sv_iv_atomic_language_length_4_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-4-2.xml",
class_name="NistschemaSvIvAtomicLanguageLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_3_nistxml_sv_iv_atomic_language_length_4_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-4-3.xml",
class_name="NistschemaSvIvAtomicLanguageLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_3_nistxml_sv_iv_atomic_language_length_4_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-4-4.xml",
class_name="NistschemaSvIvAtomicLanguageLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_3_nistxml_sv_iv_atomic_language_length_4_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-4-5.xml",
class_name="NistschemaSvIvAtomicLanguageLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_2_nistxml_sv_iv_atomic_language_length_3_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-3-1.xml",
class_name="NistschemaSvIvAtomicLanguageLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_2_nistxml_sv_iv_atomic_language_length_3_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-3-2.xml",
class_name="NistschemaSvIvAtomicLanguageLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_2_nistxml_sv_iv_atomic_language_length_3_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-3-3.xml",
class_name="NistschemaSvIvAtomicLanguageLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_2_nistxml_sv_iv_atomic_language_length_3_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-3-4.xml",
class_name="NistschemaSvIvAtomicLanguageLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_2_nistxml_sv_iv_atomic_language_length_3_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-3-5.xml",
class_name="NistschemaSvIvAtomicLanguageLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_1_nistxml_sv_iv_atomic_language_length_2_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-2-1.xml",
class_name="NistschemaSvIvAtomicLanguageLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_1_nistxml_sv_iv_atomic_language_length_2_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-2-2.xml",
class_name="NistschemaSvIvAtomicLanguageLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_1_nistxml_sv_iv_atomic_language_length_2_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-2-3.xml",
class_name="NistschemaSvIvAtomicLanguageLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_1_nistxml_sv_iv_atomic_language_length_2_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-2-4.xml",
class_name="NistschemaSvIvAtomicLanguageLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_1_nistxml_sv_iv_atomic_language_length_2_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-2-5.xml",
class_name="NistschemaSvIvAtomicLanguageLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_nistxml_sv_iv_atomic_language_length_1_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-1-1.xml",
class_name="NistschemaSvIvAtomicLanguageLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_nistxml_sv_iv_atomic_language_length_1_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-1-2.xml",
class_name="NistschemaSvIvAtomicLanguageLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_nistxml_sv_iv_atomic_language_length_1_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-1-3.xml",
class_name="NistschemaSvIvAtomicLanguageLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_nistxml_sv_iv_atomic_language_length_1_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-1-4.xml",
class_name="NistschemaSvIvAtomicLanguageLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_length_nistxml_sv_iv_atomic_language_length_1_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet length with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-length-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-length-1-5.xml",
class_name="NistschemaSvIvAtomicLanguageLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_4_nistxml_sv_iv_atomic_language_min_length_5_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-5-1.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_4_nistxml_sv_iv_atomic_language_min_length_5_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-5-2.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_4_nistxml_sv_iv_atomic_language_min_length_5_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-5-3.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_4_nistxml_sv_iv_atomic_language_min_length_5_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-5-4.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_4_nistxml_sv_iv_atomic_language_min_length_5_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-5-5.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_3_nistxml_sv_iv_atomic_language_min_length_4_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 4.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-4-1.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_3_nistxml_sv_iv_atomic_language_min_length_4_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 4.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-4-2.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_3_nistxml_sv_iv_atomic_language_min_length_4_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 4.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-4-3.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_3_nistxml_sv_iv_atomic_language_min_length_4_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 4.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-4-4.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_3_nistxml_sv_iv_atomic_language_min_length_4_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 4.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-4-5.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_2_nistxml_sv_iv_atomic_language_min_length_3_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 9.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-3-1.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_2_nistxml_sv_iv_atomic_language_min_length_3_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 9.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-3-2.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_2_nistxml_sv_iv_atomic_language_min_length_3_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 9.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-3-3.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_2_nistxml_sv_iv_atomic_language_min_length_3_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 9.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-3-4.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_2_nistxml_sv_iv_atomic_language_min_length_3_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 9.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-3-5.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_1_nistxml_sv_iv_atomic_language_min_length_2_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-2-1.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_1_nistxml_sv_iv_atomic_language_min_length_2_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-2-2.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_1_nistxml_sv_iv_atomic_language_min_length_2_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-2-3.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_1_nistxml_sv_iv_atomic_language_min_length_2_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-2-4.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_1_nistxml_sv_iv_atomic_language_min_length_2_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-2-5.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_nistxml_sv_iv_atomic_language_min_length_1_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-1-1.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_nistxml_sv_iv_atomic_language_min_length_1_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-1-2.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_nistxml_sv_iv_atomic_language_min_length_1_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-1-3.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_nistxml_sv_iv_atomic_language_min_length_1_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-1-4.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_min_length_nistxml_sv_iv_atomic_language_min_length_1_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet minLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-minLength-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-minLength-1-5.xml",
class_name="NistschemaSvIvAtomicLanguageMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_4_nistxml_sv_iv_atomic_language_max_length_5_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-5-1.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_4_nistxml_sv_iv_atomic_language_max_length_5_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-5-2.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_4_nistxml_sv_iv_atomic_language_max_length_5_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-5-3.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_4_nistxml_sv_iv_atomic_language_max_length_5_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-5-4.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_4_nistxml_sv_iv_atomic_language_max_length_5_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 11.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-5.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-5-5.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_3_nistxml_sv_iv_atomic_language_max_length_4_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 9.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-4-1.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_3_nistxml_sv_iv_atomic_language_max_length_4_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 9.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-4-2.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_3_nistxml_sv_iv_atomic_language_max_length_4_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 9.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-4-3.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_3_nistxml_sv_iv_atomic_language_max_length_4_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 9.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-4-4.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_3_nistxml_sv_iv_atomic_language_max_length_4_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 9.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-4.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-4-5.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_2_nistxml_sv_iv_atomic_language_max_length_3_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-3-1.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_2_nistxml_sv_iv_atomic_language_max_length_3_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-3-2.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_2_nistxml_sv_iv_atomic_language_max_length_3_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-3-3.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_2_nistxml_sv_iv_atomic_language_max_length_3_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-3-4.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_2_nistxml_sv_iv_atomic_language_max_length_3_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-3.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-3-5.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_1_nistxml_sv_iv_atomic_language_max_length_2_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-2-1.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_1_nistxml_sv_iv_atomic_language_max_length_2_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-2-2.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_1_nistxml_sv_iv_atomic_language_max_length_2_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-2-3.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_1_nistxml_sv_iv_atomic_language_max_length_2_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-2-4.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_1_nistxml_sv_iv_atomic_language_max_length_2_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-2.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-2-5.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_nistxml_sv_iv_atomic_language_max_length_1_1(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-1-1.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_nistxml_sv_iv_atomic_language_max_length_1_2(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-1-2.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_nistxml_sv_iv_atomic_language_max_length_1_3(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-1-3.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_nistxml_sv_iv_atomic_language_max_length_1_4(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-1-4.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_language_max_length_nistxml_sv_iv_atomic_language_max_length_1_5(mode, save_output, output_format):
"""
Type atomic/language is restricted by facet maxLength with value 2.
"""
assert_bindings(
schema="nistData/atomic/language/Schema+Instance/NISTSchema-SV-IV-atomic-language-maxLength-1.xsd",
instance="nistData/atomic/language/Schema+Instance/NISTXML-SV-IV-atomic-language-maxLength-1-5.xml",
class_name="NistschemaSvIvAtomicLanguageMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_white_space_nistxml_sv_iv_atomic_id_white_space_1_1(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-whiteSpace-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-whiteSpace-1-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_white_space_nistxml_sv_iv_atomic_id_white_space_1_2(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-whiteSpace-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-whiteSpace-1-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_white_space_nistxml_sv_iv_atomic_id_white_space_1_3(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-whiteSpace-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-whiteSpace-1-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_white_space_nistxml_sv_iv_atomic_id_white_space_1_4(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-whiteSpace-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-whiteSpace-1-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_white_space_nistxml_sv_iv_atomic_id_white_space_1_5(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-whiteSpace-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-whiteSpace-1-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_4_nistxml_sv_iv_atomic_id_enumeration_5_1(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-5.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-5-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_4_nistxml_sv_iv_atomic_id_enumeration_5_2(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-5.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-5-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_4_nistxml_sv_iv_atomic_id_enumeration_5_3(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-5.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-5-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_4_nistxml_sv_iv_atomic_id_enumeration_5_4(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-5.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-5-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_4_nistxml_sv_iv_atomic_id_enumeration_5_5(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-5.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-5-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_3_nistxml_sv_iv_atomic_id_enumeration_4_1(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-4.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-4-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_3_nistxml_sv_iv_atomic_id_enumeration_4_2(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-4.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-4-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_3_nistxml_sv_iv_atomic_id_enumeration_4_3(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-4.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-4-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_3_nistxml_sv_iv_atomic_id_enumeration_4_4(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-4.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-4-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_3_nistxml_sv_iv_atomic_id_enumeration_4_5(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-4.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-4-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_2_nistxml_sv_iv_atomic_id_enumeration_3_1(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-3.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-3-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_2_nistxml_sv_iv_atomic_id_enumeration_3_2(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-3.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-3-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_2_nistxml_sv_iv_atomic_id_enumeration_3_3(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-3.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-3-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_2_nistxml_sv_iv_atomic_id_enumeration_3_4(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-3.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-3-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_2_nistxml_sv_iv_atomic_id_enumeration_3_5(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-3.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-3-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_1_nistxml_sv_iv_atomic_id_enumeration_2_1(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-2.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-2-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_1_nistxml_sv_iv_atomic_id_enumeration_2_2(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-2.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-2-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_1_nistxml_sv_iv_atomic_id_enumeration_2_3(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-2.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-2-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_1_nistxml_sv_iv_atomic_id_enumeration_2_4(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-2.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-2-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_1_nistxml_sv_iv_atomic_id_enumeration_2_5(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-2.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-2-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_nistxml_sv_iv_atomic_id_enumeration_1_1(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-1-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_nistxml_sv_iv_atomic_id_enumeration_1_2(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-1-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_nistxml_sv_iv_atomic_id_enumeration_1_3(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-1-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_nistxml_sv_iv_atomic_id_enumeration_1_4(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-1-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_enumeration_nistxml_sv_iv_atomic_id_enumeration_1_5(mode, save_output, output_format):
"""
Type atomic/ID is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-enumeration-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-enumeration-1-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_4_nistxml_sv_iv_atomic_id_pattern_5_1(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-5.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-5-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_4_nistxml_sv_iv_atomic_id_pattern_5_2(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-5.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-5-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_4_nistxml_sv_iv_atomic_id_pattern_5_3(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-5.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-5-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_4_nistxml_sv_iv_atomic_id_pattern_5_4(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-5.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-5-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_4_nistxml_sv_iv_atomic_id_pattern_5_5(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-5.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-5-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_3_nistxml_sv_iv_atomic_id_pattern_4_1(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{15}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-4.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-4-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_3_nistxml_sv_iv_atomic_id_pattern_4_2(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{15}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-4.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-4-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_3_nistxml_sv_iv_atomic_id_pattern_4_3(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{15}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-4.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-4-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_3_nistxml_sv_iv_atomic_id_pattern_4_4(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{15}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-4.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-4-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_3_nistxml_sv_iv_atomic_id_pattern_4_5(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{15}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-4.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-4-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_2_nistxml_sv_iv_atomic_id_pattern_3_1(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{18}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-3.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-3-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_2_nistxml_sv_iv_atomic_id_pattern_3_2(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{18}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-3.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-3-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_2_nistxml_sv_iv_atomic_id_pattern_3_3(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{18}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-3.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-3-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_2_nistxml_sv_iv_atomic_id_pattern_3_4(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{18}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-3.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-3-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_2_nistxml_sv_iv_atomic_id_pattern_3_5(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{18}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-3.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-3-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_1_nistxml_sv_iv_atomic_id_pattern_2_1(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{55}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-2.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-2-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_1_nistxml_sv_iv_atomic_id_pattern_2_2(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{55}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-2.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-2-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_1_nistxml_sv_iv_atomic_id_pattern_2_3(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{55}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-2.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-2-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_1_nistxml_sv_iv_atomic_id_pattern_2_4(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{55}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-2.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-2-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_1_nistxml_sv_iv_atomic_id_pattern_2_5(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{55}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-2.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-2-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_nistxml_sv_iv_atomic_id_pattern_1_1(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-1-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_nistxml_sv_iv_atomic_id_pattern_1_2(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-1-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_nistxml_sv_iv_atomic_id_pattern_1_3(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-1-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_nistxml_sv_iv_atomic_id_pattern_1_4(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-1-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_atomic_id_pattern_nistxml_sv_iv_atomic_id_pattern_1_5(mode, save_output, output_format):
r"""
Type atomic/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/atomic/ID/Schema+Instance/NISTSchema-SV-IV-atomic-ID-pattern-1.xsd",
instance="nistData/atomic/ID/Schema+Instance/NISTXML-SV-IV-atomic-ID-pattern-1-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
| 40.376168
| 129
| 0.717497
| 84,641
| 665,480
| 5.376933
| 0.003863
| 0.026367
| 0.049768
| 0.09668
| 0.999925
| 0.999881
| 0.998541
| 0.998541
| 0.997849
| 0.997849
| 0
| 0.02367
| 0.173114
| 665,480
| 16,481
| 130
| 40.378618
| 0.803386
| 0.123721
| 0
| 0.719036
| 0
| 0.179759
| 0.385395
| 0.36391
| 0
| 0
| 0
| 0
| 0.089969
| 1
| 0.08988
| false
| 0
| 0.00009
| 0
| 0.089969
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ea589c9a855092ccbd65d63e7a34e4b2c2ccfe37
| 6,658
|
py
|
Python
|
gcp_tests/vertex_ai/vertex_ai_train_model.py
|
Chronicles-of-AI/archives
|
23b978a709c785ff00ec90487039944b8ab8f4fb
|
[
"MIT"
] | null | null | null |
gcp_tests/vertex_ai/vertex_ai_train_model.py
|
Chronicles-of-AI/archives
|
23b978a709c785ff00ec90487039944b8ab8f4fb
|
[
"MIT"
] | null | null | null |
gcp_tests/vertex_ai/vertex_ai_train_model.py
|
Chronicles-of-AI/archives
|
23b978a709c785ff00ec90487039944b8ab8f4fb
|
[
"MIT"
] | null | null | null |
from google.cloud import aiplatform
from google.cloud.aiplatform.gapic.schema import trainingjob
def run_job(
job,
dataset,
model_display_name,
training_fraction_split,
validation_fraction_split,
test_fraction_split,
budget_milli_node_hours,
disable_early_stopping,
sync,
):
model = job.run(
dataset=dataset,
model_display_name=model_display_name,
training_fraction_split=training_fraction_split,
validation_fraction_split=validation_fraction_split,
test_fraction_split=test_fraction_split,
budget_milli_node_hours=budget_milli_node_hours,
disable_early_stopping=disable_early_stopping,
sync=sync,
)
return {
"resource_name": model.resource_name,
"display_name": model.display_name,
"uri": model.uri,
}
def train_image_classification(
project: str,
location: str,
display_name: str,
dataset_id: int,
model_display_name: str = None,
model_type: str = "CLOUD",
training_fraction_split: float = 0.8,
validation_fraction_split: float = 0.1,
test_fraction_split: float = 0.1,
budget_milli_node_hours: int = 8000,
disable_early_stopping: bool = False,
sync: bool = False,
multi_label: bool = False,
):
# Supported Model Types -
# MOBILE_TF_HIGH_ACCURACY_1
# MOBILE_TF_LOW_LATENCY_1
# MOBILE_TF_VERSATILE_1
# CLOUD_HIGH_ACCURACY_1
# CLOUD_LOW_LATENCY_1
# CLOUD
aiplatform.init(project=project, location=location)
job = aiplatform.AutoMLImageTrainingJob(
display_name=display_name,
model_type=model_type,
multi_label=multi_label,
)
my_image_ds = aiplatform.ImageDataset(dataset_id)
return run_job(
job=job,
dataset=my_image_ds,
model_display_name=model_display_name,
training_fraction_split=training_fraction_split,
validation_fraction_split=validation_fraction_split,
test_fraction_split=test_fraction_split,
budget_milli_node_hours=budget_milli_node_hours,
disable_early_stopping=disable_early_stopping,
sync=sync,
)
def train_object_detection(
project: str,
location: str,
display_name: str,
dataset_id: int,
model_display_name: str = None,
model_type: str = "CLOUD",
training_fraction_split: float = 0.8,
validation_fraction_split: float = 0.1,
test_fraction_split: float = 0.1,
budget_milli_node_hours: int = 8000,
disable_early_stopping: bool = False,
sync: bool = False,
):
# Supported Model Types -
# MOBILE_TF_HIGH_ACCURACY_1
# MOBILE_TF_LOW_LATENCY_1
# MOBILE_TF_VERSATILE_1
# CLOUD_HIGH_ACCURACY_1
# CLOUD_LOW_LATENCY_1
# CLOUD
aiplatform.init(project=project, location=location)
job = aiplatform.AutoMLImageTrainingJob(
display_name=display_name,
model_type=model_type,
prediction_type="object_detection",
)
my_image_ds = aiplatform.ImageDataset(dataset_id)
return run_job(
job=job,
dataset=my_image_ds,
model_display_name=model_display_name,
training_fraction_split=training_fraction_split,
validation_fraction_split=validation_fraction_split,
test_fraction_split=test_fraction_split,
budget_milli_node_hours=budget_milli_node_hours,
disable_early_stopping=disable_early_stopping,
sync=sync,
)
def train_text_model(
project: str,
location: str,
display_name: str,
dataset_id: int,
model_display_name: str = None,
prediction_type: str = "classification",
training_fraction_split: float = 0.8,
validation_fraction_split: float = 0.1,
test_fraction_split: float = 0.1,
budget_milli_node_hours: int = 8000,
disable_early_stopping: bool = False,
sync: bool = False,
multi_label: bool = False,
):
aiplatform.init(project=project, location=location)
if prediction_type == "classification":
job = aiplatform.AutoMLTextTrainingJob(
display_name=display_name,
prediction_type=prediction_type,
multi_label=multi_label,
)
elif prediction_type == "extraction":
job = aiplatform.AutoMLTextTrainingJob(
display_name=display_name,
prediction_type=prediction_type,
)
text_dataset = aiplatform.TextDataset(dataset_id)
return run_job(
job=job,
dataset=text_dataset,
model_display_name=model_display_name,
training_fraction_split=training_fraction_split,
validation_fraction_split=validation_fraction_split,
test_fraction_split=test_fraction_split,
budget_milli_node_hours=budget_milli_node_hours,
disable_early_stopping=disable_early_stopping,
sync=sync,
)
def train_video_model(
project: str,
location: str,
display_name: str,
dataset_id: int,
model_display_name: str = None,
model_type: str = "CLOUD",
prediction_type: str = "classification",
training_fraction_split: float = 0.8,
validation_fraction_split: float = 0.1,
test_fraction_split: float = 0.1,
budget_milli_node_hours: int = 8000,
disable_early_stopping: bool = False,
sync: bool = False,
):
# Supported Model Types -
# MOBILE_VERSATILE_1
# MOBILE_CORAL_VERSATILE_1
# MOBILE_CORAL_LOW_LATENCY_1
# MOBILE_JETSON_VERSATILE_1
# MOBILE_JETSON_LOW_LATENCY_1
aiplatform.init(project=project, location=location)
job = aiplatform.AutoMLVideoTrainingJob(
display_name=display_name,
prediction_type=prediction_type,
model_type=model_type,
)
my_image_ds = aiplatform.ImageDataset(dataset_id)
return run_job(
job=job,
dataset=my_image_ds,
model_display_name=model_display_name,
training_fraction_split=training_fraction_split,
validation_fraction_split=validation_fraction_split,
test_fraction_split=test_fraction_split,
budget_milli_node_hours=budget_milli_node_hours,
disable_early_stopping=disable_early_stopping,
sync=sync,
)
project_id = "bridgescapture-deloitte"
location = "us-central1"
dataset_id = "2538578834488295424"
display_name = "image_class_model"
# Sample Output
# {'resource_name': 'projects/307982079966/locations/us-central1/models/6037079698536660992', 'display_name': 'image_class_model', 'uri': None}
response = train_image_classification(
project=project_id,
location=location,
display_name=display_name,
dataset_id=dataset_id,
model_display_name=display_name,
)
print(response)
| 29.460177
| 143
| 0.712226
| 787
| 6,658
| 5.58831
| 0.1169
| 0.133015
| 0.061846
| 0.068213
| 0.818327
| 0.791269
| 0.775807
| 0.77126
| 0.73397
| 0.722601
| 0
| 0.020482
| 0.21538
| 6,658
| 225
| 144
| 29.591111
| 0.821401
| 0.088916
| 0
| 0.717514
| 0
| 0
| 0.029952
| 0.003806
| 0
| 0
| 0
| 0
| 0
| 1
| 0.028249
| false
| 0
| 0.011299
| 0
| 0.067797
| 0.00565
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ea8872df8700f62989bc7848766017bac1306e11
| 181
|
py
|
Python
|
month02/day03 data/test.py
|
chaofan-zheng/python_learning_code
|
5d05848911d55aa49eaee4afd7ffd80536fad7aa
|
[
"Apache-2.0"
] | null | null | null |
month02/day03 data/test.py
|
chaofan-zheng/python_learning_code
|
5d05848911d55aa49eaee4afd7ffd80536fad7aa
|
[
"Apache-2.0"
] | null | null | null |
month02/day03 data/test.py
|
chaofan-zheng/python_learning_code
|
5d05848911d55aa49eaee4afd7ffd80536fad7aa
|
[
"Apache-2.0"
] | null | null | null |
with open('file02.txt', 'r') as f:
content = f.readlines(5)
print(content)
content = f.readlines(5)
print(content)
content = f.readlines(100)
print(content)
| 22.625
| 34
| 0.624309
| 25
| 181
| 4.52
| 0.48
| 0.212389
| 0.451327
| 0.318584
| 0.681416
| 0.681416
| 0.681416
| 0.681416
| 0.681416
| 0
| 0
| 0.05
| 0.226519
| 181
| 7
| 35
| 25.857143
| 0.757143
| 0
| 0
| 0.714286
| 0
| 0
| 0.060773
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.428571
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
57c3c8f1d4f696c0428a4405d6aa11b760612337
| 26,385
|
py
|
Python
|
conkit/io/tests/test_stockholm.py
|
mesdaghi/conkit
|
01468761352bd3ac5078e5e9fef6f73c8c49036e
|
[
"BSD-3-Clause"
] | 12
|
2017-06-12T17:20:32.000Z
|
2021-12-10T09:35:26.000Z
|
conkit/io/tests/test_stockholm.py
|
mesdaghi/conkit
|
01468761352bd3ac5078e5e9fef6f73c8c49036e
|
[
"BSD-3-Clause"
] | 60
|
2017-02-08T19:29:34.000Z
|
2022-03-17T16:00:54.000Z
|
conkit/io/tests/test_stockholm.py
|
mesdaghi/conkit
|
01468761352bd3ac5078e5e9fef6f73c8c49036e
|
[
"BSD-3-Clause"
] | 12
|
2017-09-25T07:25:35.000Z
|
2022-02-27T18:59:13.000Z
|
"""Testing facility for conkit.io.StockholmIO"""
__author__ = "Felix Simkovic"
__date__ = "12 Sep 2016"
import os
import unittest
from conkit.io.stockholm import StockholmParser
from conkit.io.tests.helpers import ParserTestCase
class TestStockholmParser(ParserTestCase):
def test_read_1(self):
msa = """# STOCKHOLM 1.0
#=GF ID 1EAZ:A|PDBID|CHAIN|SEQUENCE-i5
#=GS UniRef100_A0A0D2WIY8/647-745 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3
#=GS UniRef100_A0A0D2WIY8/761-857 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3
#=GS UniRef100_A0A0D2WIY8/1126-1228 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3
#=GS UniRef100_A0A0D2WIY8/1245-1341 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3
#=GS UniRef100_A0A0D2WIY8/1752-1857 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3
1EAZ:A|PDBID|CHAIN|SEQUENCE GSMFTPKPPQDSAVIKAG-YC-V------K-Q-------------------------------------------------G-A------------VM------------------------------------------------------------------------------------------------------
UniRef100_A0A0D2WIY8/647-745 ---------------IEG-YL-S------K-Q-------------------------------------------------G-GV----------NNN------------------------------------------------------------------------------------------------------
#=GR UniRef100_A0A0D2WIY8/647-745 PP ...............79*.**.*......*.*.................................................*.99..........9**......................................................................................................
UniRef100_A0A0D2WIY8/761-857 -----------ANPDKEG-WL-K------K-Q-------------------------------------------------G-N-----------SMA------------------------------------------------------------------------------------------------------
#=GR UniRef100_A0A0D2WIY8/761-857 PP ...........5899***.**.*......*.*.................................................*.9...........9**......................................................................................................
UniRef100_A0A0D2WIY8/1126-1228 ------------AVRKLG-FL-Y------K-Q-------------------------------------------------G-G------------SN------------------------------------------------------------------------------------------------------
#=GR UniRef100_A0A0D2WIY8/1126-1228 PP ............68999*.**.*......*.*.................................................*.*............**......................................................................................................
UniRef100_A0A0D2WIY8/1245-1341 ------------NPARQG-WL-C------K-R-------------------------------------------------G-G------------TY------------------------------------------------------------------------------------------------------
#=GR UniRef100_A0A0D2WIY8/1245-1341 PP ............6789**.**.*......*.*.................................................*.*............**......................................................................................................
UniRef100_A0A0D2WIY8/1752-1857 -------QRATPGFKMKG-WL-H------K-E-------------------------------------------------G-G------------SV------------------------------------------------------------------------------------------------------
#=GR UniRef100_A0A0D2WIY8/1752-1857 PP .......556677889**.**.*......*.*.................................................*.*............**......................................................................................................
#=GC PP_cons .......*....*...................................*.....*..*................*.................*..*....*................................................*****999875555677766776.
#=GC RF .......x....x...................................x.....x..x................x.................x..x....x................................................xxxxxxxxxxxxxxxxxxxxxxxx
1EAZ:A|PDBID|CHAIN|SEQUENCE -------------------K-----------------------NW---------------------------------------------------------------------------------------------K--R-R------------Y----F-QL--------D--E-----------------------
UniRef100_A0A0D2WIY8/647-745 -------------------K-----------------------GW---------------------------------------------------------------------------------------------K--R-R------------Y----C-VL--------E--N-----------------------
#=GR UniRef100_A0A0D2WIY8/647-745 PP ...................*.......................**.............................................................................................*..*.*............*....*.**........*..*.......................
UniRef100_A0A0D2WIY8/761-857 -------------------K-----------------------DW---------------------------------------------------------------------------------------------K--K-R------------Y----I-AI--------K--E-----------------------
#=GR UniRef100_A0A0D2WIY8/761-857 PP ...................*.......................**.............................................................................................*..*.*............*....*.**........*..*.......................
UniRef100_A0A0D2WIY8/1126-1228 -------------------K-----------------------GW---------------------------------------------------------------------------------------------R--K-R------------W----I-VM--------E--H-----------------------
#=GR UniRef100_A0A0D2WIY8/1126-1228 PP ...................*.......................**.............................................................................................*..*.*............*....*.**........*..*.......................
UniRef100_A0A0D2WIY8/1245-1341 -------------------T-----------------------SW---------------------------------------------------------------------------------------------K--K-R------------W----L-VL--------K--G-----------------------
#=GR UniRef100_A0A0D2WIY8/1245-1341 PP ...................*.......................**.............................................................................................*..*.*............*....*.**........*..*.......................
UniRef100_A0A0D2WIY8/1752-1857 -------------------K-----------------------TW---------------------------------------------------------------------------------------------K--R-R------------W----F-ST--------T--P-----------------------
#=GR UniRef100_A0A0D2WIY8/1752-1857 PP ...................*.......................**.............................................................................................*..*.*............*....*.**........*..*.......................
#=GC PP_cons ...................9.......................**.............................................................................................*..*.*............*....*.**........9..9.......................
#=GC RF ...................x.......................xx.............................................................................................x..x.x............x....x.xx........x..x.......................
//
"""
f_name = self.tempfile(content=msa)
parser = StockholmParser()
with open(f_name, "r") as f_in:
hierarchy = parser.read(f_in)
for i, sequence_entry in enumerate(hierarchy):
if i == 0:
self.assertEqual("1EAZ:A|PDBID|CHAIN|SEQUENCE", sequence_entry.id)
self.assertEqual(
"GSMFTPKPPQDSAVIKAG-YC-V------K-Q-------------------------------------------------G-A-"
"-----------VM------------------------------------------------------------------------"
"-------------------------------------------------K-----------------------NW----------"
"-----------------------------------------------------------------------------------K-"
"-R-R------------Y----F-QL--------D--E-----------------------",
sequence_entry.seq,
)
elif i == 1:
self.assertEqual("UniRef100_A0A0D2WIY8/647-745", sequence_entry.id)
self.assertEqual(
"---------------IEG-YL-S------K-Q-------------------------------------------------G-GV"
"----------NNN------------------------------------------------------------------------"
"-------------------------------------------------K-----------------------GW----------"
"-----------------------------------------------------------------------------------K-"
"-R-R------------Y----C-VL--------E--N-----------------------",
sequence_entry.seq,
)
self.assertEqual(
[
"[subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=C"
"apsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3"
],
sequence_entry.remark,
)
elif i == 2:
self.assertEqual("UniRef100_A0A0D2WIY8/761-857", sequence_entry.id)
self.assertEqual(
"-----------ANPDKEG-WL-K------K-Q-------------------------------------------------G-N-"
"----------SMA------------------------------------------------------------------------"
"-------------------------------------------------K-----------------------DW----------"
"-----------------------------------------------------------------------------------K-"
"-K-R------------Y----I-AI--------K--E-----------------------",
sequence_entry.seq,
)
self.assertEqual(
[
"[subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=C"
"apsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3"
],
sequence_entry.remark,
)
elif i == 3:
self.assertEqual("UniRef100_A0A0D2WIY8/1126-1228", sequence_entry.id)
self.assertEqual(
"------------AVRKLG-FL-Y------K-Q-------------------------------------------------G-G-"
"-----------SN------------------------------------------------------------------------"
"-------------------------------------------------K-----------------------GW----------"
"-----------------------------------------------------------------------------------R-"
"-K-R------------W----I-VM--------E--H-----------------------",
sequence_entry.seq,
)
self.assertEqual(
[
"[subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=C"
"apsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3"
],
sequence_entry.remark,
)
elif i == 4:
self.assertEqual("UniRef100_A0A0D2WIY8/1245-1341", sequence_entry.id)
self.assertEqual(
"------------NPARQG-WL-C------K-R-------------------------------------------------G-G-"
"-----------TY------------------------------------------------------------------------"
"-------------------------------------------------T-----------------------SW----------"
"-----------------------------------------------------------------------------------K-"
"-K-R------------W----L-VL--------K--G-----------------------",
sequence_entry.seq,
)
self.assertEqual(
[
"[subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=C"
"apsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3"
],
sequence_entry.remark,
)
elif i == 5:
self.assertEqual("UniRef100_A0A0D2WIY8/1752-1857", sequence_entry.id)
self.assertEqual(
"-------QRATPGFKMKG-WL-H------K-E-------------------------------------------------G-G-"
"-----------SV------------------------------------------------------------------------"
"-------------------------------------------------K-----------------------TW----------"
"-----------------------------------------------------------------------------------K-"
"-R-R------------W----F-ST--------T--P-----------------------",
sequence_entry.seq,
)
self.assertEqual(
[
"[subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=C"
"apsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3"
],
sequence_entry.remark,
)
def test_write_1(self):
msa = [
"# STOCKHOLM 1.0",
"#=GF ID 1EAZ:A|PDBID|CHAIN|SEQUENCE-i5",
"",
"#=GS UniRef100_A0A0D2WIY8/647-745 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3",
"#=GS UniRef100_A0A0D2WIY8/761-857 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3",
"#=GS UniRef100_A0A0D2WIY8/1126-1228 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3",
"#=GS UniRef100_A0A0D2WIY8/1245-1341 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3",
"#=GS UniRef100_A0A0D2WIY8/1752-1857 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3",
"",
"1EAZ:A|PDBID|CHAIN|SEQUENCE GSMFTPKPPQDSAVIKAG-YC-V------K-Q-------------------------------------------------G-A------------VM------------------------------------------------------------------------------------------------------",
"UniRef100_A0A0D2WIY8/647-745 ---------------IEG-YL-S------K-Q-------------------------------------------------G-GV----------NNN------------------------------------------------------------------------------------------------------",
"#=GR UniRef100_A0A0D2WIY8/647-745 PP ...............79*.**.*......*.*.................................................*.99..........9**......................................................................................................",
"UniRef100_A0A0D2WIY8/761-857 -----------ANPDKEG-WL-K------K-Q-------------------------------------------------G-N-----------SMA------------------------------------------------------------------------------------------------------",
"#=GR UniRef100_A0A0D2WIY8/761-857 PP ...........5899***.**.*......*.*.................................................*.9...........9**......................................................................................................",
"UniRef100_A0A0D2WIY8/1126-1228 ------------AVRKLG-FL-Y------K-Q-------------------------------------------------G-G------------SN------------------------------------------------------------------------------------------------------",
"#=GR UniRef100_A0A0D2WIY8/1126-1228 PP ............68999*.**.*......*.*.................................................*.*............**......................................................................................................",
"UniRef100_A0A0D2WIY8/1245-1341 ------------NPARQG-WL-C------K-R-------------------------------------------------G-G------------TY------------------------------------------------------------------------------------------------------",
"#=GR UniRef100_A0A0D2WIY8/1245-1341 PP ............6789**.**.*......*.*.................................................*.*............**......................................................................................................",
"UniRef100_A0A0D2WIY8/1752-1857 -------QRATPGFKMKG-WL-H------K-E-------------------------------------------------G-G------------SV------------------------------------------------------------------------------------------------------",
"#=GR UniRef100_A0A0D2WIY8/1752-1857 PP .......556677889**.**.*......*.*.................................................*.*............**......................................................................................................",
"#=GC PP_cons .......*....*...................................*.....*..*................*.................*..*....*................................................*****999875555677766776.",
"#=GC RF .......x....x...................................x.....x..x................x.................x..x....x................................................xxxxxxxxxxxxxxxxxxxxxxxx",
"",
"1EAZ:A|PDBID|CHAIN|SEQUENCE -------------------K-----------------------NW---------------------------------------------------------------------------------------------K--R-R------------Y----F-QL--------D--E-----------------------",
"UniRef100_A0A0D2WIY8/647-745 -------------------K-----------------------GW---------------------------------------------------------------------------------------------K--R-R------------Y----C-VL--------E--N-----------------------",
"#=GR UniRef100_A0A0D2WIY8/647-745 PP ...................*.......................**.............................................................................................*..*.*............*....*.**........*..*.......................",
"UniRef100_A0A0D2WIY8/761-857 -------------------K-----------------------DW---------------------------------------------------------------------------------------------K--K-R------------Y----I-AI--------K--E-----------------------",
"#=GR UniRef100_A0A0D2WIY8/761-857 PP ...................*.......................**.............................................................................................*..*.*............*....*.**........*..*.......................",
"UniRef100_A0A0D2WIY8/1126-1228 -------------------K-----------------------GW---------------------------------------------------------------------------------------------R--K-R------------W----I-VM--------E--H-----------------------",
"#=GR UniRef100_A0A0D2WIY8/1126-1228 PP ...................*.......................**.............................................................................................*..*.*............*....*.**........*..*.......................",
"UniRef100_A0A0D2WIY8/1245-1341 -------------------T-----------------------SW---------------------------------------------------------------------------------------------K--K-R------------W----L-VL--------K--G-----------------------",
"#=GR UniRef100_A0A0D2WIY8/1245-1341 PP ...................*.......................**.............................................................................................*..*.*............*....*.**........*..*.......................",
"UniRef100_A0A0D2WIY8/1752-1857 -------------------K-----------------------TW---------------------------------------------------------------------------------------------K--R-R------------W----F-ST--------T--P-----------------------",
"#=GR UniRef100_A0A0D2WIY8/1752-1857 PP ...................*.......................**.............................................................................................*..*.*............*....*.**........*..*.......................",
"#=GC PP_cons ...................9.......................**.............................................................................................*..*.*............*....*.**........9..9.......................",
"#=GC RF ...................x.......................xx.............................................................................................x..x.x............x....x.xx........x..x.......................",
"//",
]
parser = StockholmParser()
f_name_in = self.tempfile(content="\n".join(msa))
f_name_out = self.tempfile()
with open(f_name_in, "r") as f_in, open(f_name_out, "w") as f_out:
hierarchy = parser.read(f_in)
parser.write(f_out, hierarchy)
ref = [
"# STOCKHOLM 1.0",
"#=GF ID 1EAZ:A|PDBID|CHAIN|SEQUENCE",
"",
"#=GS UniRef100_A0A0D2WIY8/647-745 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3",
"#=GS UniRef100_A0A0D2WIY8/761-857 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3",
"#=GS UniRef100_A0A0D2WIY8/1126-1228 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3",
"#=GS UniRef100_A0A0D2WIY8/1245-1341 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3",
"#=GS UniRef100_A0A0D2WIY8/1752-1857 DE [subseq from] Stromal membrane-associated GTPase-activating protein 2 n=1 Tax=Capsaspora owczarzaki (strain ATCC 30864) RepID=A0A0D2WIY8_CAPO3",
"",
"1EAZ:A|PDBID|CHAIN|SEQUENCE GSMFTPKPPQDSAVIKAG-YC-V------K-Q-------------------------------------------------G-A------------VM------------------------------------------------------------------------------------------------------",
"UniRef100_A0A0D2WIY8/647-745 ---------------IEG-YL-S------K-Q-------------------------------------------------G-GV----------NNN------------------------------------------------------------------------------------------------------",
"UniRef100_A0A0D2WIY8/761-857 -----------ANPDKEG-WL-K------K-Q-------------------------------------------------G-N-----------SMA------------------------------------------------------------------------------------------------------",
"UniRef100_A0A0D2WIY8/1126-1228 ------------AVRKLG-FL-Y------K-Q-------------------------------------------------G-G------------SN------------------------------------------------------------------------------------------------------",
"UniRef100_A0A0D2WIY8/1245-1341 ------------NPARQG-WL-C------K-R-------------------------------------------------G-G------------TY------------------------------------------------------------------------------------------------------",
"UniRef100_A0A0D2WIY8/1752-1857 -------QRATPGFKMKG-WL-H------K-E-------------------------------------------------G-G------------SV------------------------------------------------------------------------------------------------------",
"",
"1EAZ:A|PDBID|CHAIN|SEQUENCE -------------------K-----------------------NW---------------------------------------------------------------------------------------------K--R-R------------Y----F-QL--------D--E-----------------------",
"UniRef100_A0A0D2WIY8/647-745 -------------------K-----------------------GW---------------------------------------------------------------------------------------------K--R-R------------Y----C-VL--------E--N-----------------------",
"UniRef100_A0A0D2WIY8/761-857 -------------------K-----------------------DW---------------------------------------------------------------------------------------------K--K-R------------Y----I-AI--------K--E-----------------------",
"UniRef100_A0A0D2WIY8/1126-1228 -------------------K-----------------------GW---------------------------------------------------------------------------------------------R--K-R------------W----I-VM--------E--H-----------------------",
"UniRef100_A0A0D2WIY8/1245-1341 -------------------T-----------------------SW---------------------------------------------------------------------------------------------K--K-R------------W----L-VL--------K--G-----------------------",
"UniRef100_A0A0D2WIY8/1752-1857 -------------------K-----------------------TW---------------------------------------------------------------------------------------------K--R-R------------W----F-ST--------T--P-----------------------",
"//",
]
with open(f_name_out, "r") as f_in:
output = f_in.read().splitlines()
self.assertEqual(ref, output)
if __name__ == "__main__":
unittest.main(verbosity=2)
| 113.240343
| 257
| 0.26371
| 1,585
| 26,385
| 4.294006
| 0.099054
| 0.195416
| 0.049956
| 0.073465
| 0.877167
| 0.840876
| 0.840876
| 0.840876
| 0.825007
| 0.825007
| 0
| 0.061774
| 0.161304
| 26,385
| 232
| 258
| 113.728448
| 0.245786
| 0.001592
| 0
| 0.420091
| 0
| 0.251142
| 0.822455
| 0.67783
| 0
| 0
| 0
| 0
| 0.082192
| 1
| 0.009132
| false
| 0
| 0.018265
| 0
| 0.031963
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
a4abdefda0b4bfa63c37141385fa23ffa7bab46f
| 5,825
|
py
|
Python
|
medsegm/utils/metrics.py
|
evgeniishch/segmentation_models.pytorch
|
ce375a21fb34ec66c423debac75160ff7b4e4a4a
|
[
"MIT"
] | null | null | null |
medsegm/utils/metrics.py
|
evgeniishch/segmentation_models.pytorch
|
ce375a21fb34ec66c423debac75160ff7b4e4a4a
|
[
"MIT"
] | null | null | null |
medsegm/utils/metrics.py
|
evgeniishch/segmentation_models.pytorch
|
ce375a21fb34ec66c423debac75160ff7b4e4a4a
|
[
"MIT"
] | null | null | null |
from . import base
from . import functional as F
from ..base.modules import Activation
class IoU(base.Metric):
__name__ = 'iou_score'
def __init__(self, eps=1e-7, threshold=0.5, activation=None, ignore_channels=None, **kwargs):
super().__init__(**kwargs)
self.eps = eps
self.threshold = threshold
self.activation = Activation(activation)
self.ignore_channels = ignore_channels
def forward(self, y_pr, y_gt):
y_pr = self.activation(y_pr)
return F.iou(
y_pr, y_gt,
eps=self.eps,
threshold=self.threshold,
ignore_channels=self.ignore_channels,
)
class Fscore(base.Metric):
def __init__(self, beta=1, eps=1e-7, threshold=0.5, activation=None, ignore_channels=None, **kwargs):
super().__init__(**kwargs)
self.eps = eps
self.beta = beta
self.threshold = threshold
self.activation = Activation(activation)
self.ignore_channels = ignore_channels
def forward(self, y_pr, y_gt):
y_pr = self.activation(y_pr)
return F.f_score(
y_pr, y_gt,
eps=self.eps,
beta=self.beta,
threshold=self.threshold,
ignore_channels=self.ignore_channels,
)
class Accuracy(base.Metric):
def __init__(self, threshold=0.5, activation=None, ignore_channels=None, **kwargs):
super().__init__(**kwargs)
self.threshold = threshold
self.activation = Activation(activation)
self.ignore_channels = ignore_channels
def forward(self, y_pr, y_gt):
y_pr = self.activation(y_pr)
return F.accuracy(
y_pr, y_gt,
threshold=self.threshold,
ignore_channels=self.ignore_channels,
)
class Recall(base.Metric):
def __init__(self, eps=1e-7, threshold=0.5, activation=None, ignore_channels=None, **kwargs):
super().__init__(**kwargs)
self.eps = eps
self.threshold = threshold
self.activation = Activation(activation)
self.ignore_channels = ignore_channels
def forward(self, y_pr, y_gt):
y_pr = self.activation(y_pr)
return F.recall(
y_pr, y_gt,
eps=self.eps,
threshold=self.threshold,
ignore_channels=self.ignore_channels,
)
class Precision(base.Metric):
def __init__(self, eps=1e-7, threshold=0.5, activation=None, ignore_channels=None, **kwargs):
super().__init__(**kwargs)
self.eps = eps
self.threshold = threshold
self.activation = Activation(activation)
self.ignore_channels = ignore_channels
def forward(self, y_pr, y_gt):
y_pr = self.activation(y_pr)
return F.precision(
y_pr, y_gt,
eps=self.eps,
threshold=self.threshold,
ignore_channels=self.ignore_channels,
)
class Specificity(base.Metric):
def __init__(self, eps=1e-7, threshold=0.5, activation=None, ignore_channels=None, **kwargs):
super().__init__(**kwargs)
self.eps = eps
self.threshold = threshold
self.activation = Activation(activation)
self.ignore_channels = ignore_channels
def forward(self, y_pr, y_gt):
y_pr = self.activation(y_pr)
return F.specificity(
y_pr, y_gt,
eps=self.eps,
threshold=self.threshold,
ignore_channels=self.ignore_channels,
)
class PositiveLikelihoodRatio(base.Metric):
def __init__(self, eps=1e-7, threshold=0.5, activation=None, ignore_channels=None, **kwargs):
super().__init__(**kwargs)
self.eps = eps
self.threshold = threshold
self.activation = Activation(activation)
self.ignore_channels = ignore_channels
def forward(self, y_pr, y_gt):
y_pr = self.activation(y_pr)
return F.lr_pos(
y_pr, y_gt,
eps=self.eps,
threshold=self.threshold,
ignore_channels=self.ignore_channels,
)
class NegativeLikelihoodRatio(base.Metric):
def __init__(self, eps=1e-7, threshold=0.5, activation=None, ignore_channels=None, **kwargs):
super().__init__(**kwargs)
self.eps = eps
self.threshold = threshold
self.activation = Activation(activation)
self.ignore_channels = ignore_channels
def forward(self, y_pr, y_gt):
y_pr = self.activation(y_pr)
return F.lr_neg(
y_pr, y_gt,
eps=self.eps,
threshold=self.threshold,
ignore_channels=self.ignore_channels,
)
class NegativePredictiveValue(base.Metric):
def __init__(self, eps=1e-7, threshold=0.5, activation=None, ignore_channels=None, **kwargs):
super().__init__(**kwargs)
self.eps = eps
self.threshold = threshold
self.activation = Activation(activation)
self.ignore_channels = ignore_channels
def forward(self, y_pr, y_gt):
y_pr = self.activation(y_pr)
return F.npv(
y_pr, y_gt,
eps=self.eps,
threshold=self.threshold,
ignore_channels=self.ignore_channels,
)
class SorensenDiceCoeff(base.Metric):
def __init__(self, eps=1e-7, threshold=0.5, activation=None, ignore_channels=None, **kwargs):
super().__init__(**kwargs)
self.eps = eps
self.threshold = threshold
self.activation = Activation(activation)
self.ignore_channels = ignore_channels
def forward(self, y_pr, y_gt):
y_pr = self.activation(y_pr)
return F.dsc(
y_pr, y_gt,
eps=self.eps,
threshold=self.threshold,
ignore_channels=self.ignore_channels,
)
| 29.871795
| 105
| 0.614421
| 698
| 5,825
| 4.84384
| 0.068768
| 0.207039
| 0.106477
| 0.035492
| 0.908311
| 0.895889
| 0.895889
| 0.891156
| 0.891156
| 0.856256
| 0
| 0.009317
| 0.281373
| 5,825
| 195
| 106
| 29.871795
| 0.798376
| 0
| 0
| 0.753247
| 0
| 0
| 0.001545
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.12987
| false
| 0
| 0.019481
| 0
| 0.285714
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
a4b20fc5adf6e34782bcdeb6dcffdff824d7e925
| 161
|
py
|
Python
|
compiler-rt/test/orc/TestCases/Darwin/arm64/lit.local.cfg.py
|
mkinsner/llvm
|
589d48844edb12cd357b3024248b93d64b6760bf
|
[
"Apache-2.0"
] | 605
|
2019-10-18T01:15:54.000Z
|
2022-03-31T14:31:04.000Z
|
compiler-rt/test/orc/TestCases/Darwin/arm64/lit.local.cfg.py
|
mkinsner/llvm
|
589d48844edb12cd357b3024248b93d64b6760bf
|
[
"Apache-2.0"
] | 3,180
|
2019-10-18T01:21:21.000Z
|
2022-03-31T23:25:41.000Z
|
compiler-rt/test/orc/TestCases/Darwin/arm64/lit.local.cfg.py
|
mkinsner/llvm
|
589d48844edb12cd357b3024248b93d64b6760bf
|
[
"Apache-2.0"
] | 275
|
2019-10-18T05:27:22.000Z
|
2022-03-30T09:04:21.000Z
|
if config.root.host_arch not in ['aarch64', 'arm64']:
config.unsupported = True
if config.target_arch not in ['aarch64', 'arm64']:
config.unsupported = True
| 32.2
| 53
| 0.720497
| 23
| 161
| 4.956522
| 0.521739
| 0.140351
| 0.157895
| 0.280702
| 0.736842
| 0.736842
| 0.736842
| 0.736842
| 0
| 0
| 0
| 0.057554
| 0.136646
| 161
| 5
| 54
| 32.2
| 0.76259
| 0
| 0
| 0.5
| 0
| 0
| 0.148148
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a4d01dd62ded34a1f09a5df98930cdc685264ea7
| 142
|
py
|
Python
|
flaml/scheduler/__init__.py
|
wuchihsu/FLAML
|
54d303a95ab8615ec298a5a7a530f8d1d477bf68
|
[
"MIT"
] | 1,747
|
2020-12-05T00:14:58.000Z
|
2022-03-31T20:54:09.000Z
|
flaml/scheduler/__init__.py
|
wuchihsu/FLAML
|
54d303a95ab8615ec298a5a7a530f8d1d477bf68
|
[
"MIT"
] | 229
|
2020-12-14T06:19:16.000Z
|
2022-03-31T05:20:27.000Z
|
flaml/scheduler/__init__.py
|
wuchihsu/FLAML
|
54d303a95ab8615ec298a5a7a530f8d1d477bf68
|
[
"MIT"
] | 260
|
2020-12-13T09:24:41.000Z
|
2022-03-27T04:09:51.000Z
|
from .trial_scheduler import TrialScheduler
from .online_scheduler import OnlineScheduler, OnlineSuccessiveDoublingScheduler, ChaChaScheduler
| 47.333333
| 97
| 0.901408
| 12
| 142
| 10.5
| 0.75
| 0.238095
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.070423
| 142
| 2
| 98
| 71
| 0.954545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
1057d9170d63f408f8dd5cafd5dfa64939d1b7bf
| 119
|
py
|
Python
|
tests/__init__.py
|
yyuu/fluent-logger-python
|
8b3c948c9d20e7e883f03b3751bc5a15f8c8cadd
|
[
"Apache-2.0"
] | null | null | null |
tests/__init__.py
|
yyuu/fluent-logger-python
|
8b3c948c9d20e7e883f03b3751bc5a15f8c8cadd
|
[
"Apache-2.0"
] | null | null | null |
tests/__init__.py
|
yyuu/fluent-logger-python
|
8b3c948c9d20e7e883f03b3751bc5a15f8c8cadd
|
[
"Apache-2.0"
] | null | null | null |
import sys
sys.path = ['..'] + sys.path
from test_event import *
from test_sender import *
from test_handler import *
| 17
| 28
| 0.722689
| 18
| 119
| 4.611111
| 0.444444
| 0.289157
| 0.337349
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168067
| 119
| 6
| 29
| 19.833333
| 0.838384
| 0
| 0
| 0
| 0
| 0
| 0.016807
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.8
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
52c1df2d871c28d13271e82a464ab3d80cd996e9
| 131
|
py
|
Python
|
tests/services/blockchain_follower/handlers/test_comment.py
|
dpays/dsocial-notifications
|
32b1cdcd58d622407fd50206053c5b9735a56ba9
|
[
"MIT"
] | 10
|
2017-10-22T20:07:40.000Z
|
2018-08-01T21:48:49.000Z
|
tests/services/blockchain_follower/handlers/test_comment.py
|
dpays/dsocial-notifications
|
32b1cdcd58d622407fd50206053c5b9735a56ba9
|
[
"MIT"
] | 81
|
2017-08-19T15:38:32.000Z
|
2020-05-12T09:56:14.000Z
|
tests/services/blockchain_follower/handlers/test_comment.py
|
dpays/dsocial-notifications
|
32b1cdcd58d622407fd50206053c5b9735a56ba9
|
[
"MIT"
] | 9
|
2017-09-19T07:12:20.000Z
|
2021-05-25T17:09:27.000Z
|
# -*- coding: utf-8 -*-
from yo.services.blockchain_follower.handlers import handle_comment
def test_handle_comment():
pass
| 16.375
| 67
| 0.740458
| 17
| 131
| 5.470588
| 0.882353
| 0.27957
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008929
| 0.145038
| 131
| 7
| 68
| 18.714286
| 0.821429
| 0.160305
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 7
|
eae49552d7a1bc46077bc8d6202242dd590ba6a1
| 227
|
py
|
Python
|
Codewars/8kyu/wilson-primes/Python/test.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | 7
|
2017-09-20T16:40:39.000Z
|
2021-08-31T18:15:08.000Z
|
Codewars/8kyu/wilson-primes/Python/test.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | null | null | null |
Codewars/8kyu/wilson-primes/Python/test.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | null | null | null |
# Python - 2.7.6
Test.assert_equals(am_i_wilson(0), False)
Test.assert_equals(am_i_wilson(1), False)
Test.assert_equals(am_i_wilson(5), True)
Test.assert_equals(am_i_wilson(8), False)
Test.assert_equals(am_i_wilson(9), False)
| 28.375
| 41
| 0.784141
| 44
| 227
| 3.704545
| 0.386364
| 0.306748
| 0.490798
| 0.552147
| 0.858896
| 0.858896
| 0.552147
| 0
| 0
| 0
| 0
| 0.037736
| 0.066079
| 227
| 7
| 42
| 32.428571
| 0.731132
| 0.061674
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
d82800a2dc5e78bcef1e4af5b4d76139b3833e50
| 4,663
|
py
|
Python
|
codes/model.py
|
fernandofsilva/Tennis
|
5b454f7999a33bfd189d45ed2fa3a95727b8f94f
|
[
"MIT"
] | null | null | null |
codes/model.py
|
fernandofsilva/Tennis
|
5b454f7999a33bfd189d45ed2fa3a95727b8f94f
|
[
"MIT"
] | null | null | null |
codes/model.py
|
fernandofsilva/Tennis
|
5b454f7999a33bfd189d45ed2fa3a95727b8f94f
|
[
"MIT"
] | null | null | null |
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
class Actor(nn.Module):
"""Actor (Policy) Model.
This class construct the model.
"""
def __init__(self, state_size, action_size, seed, fc1_units=128, fc2_units=128, fc3_units=128):
""" Initialize parameters and build model.
Args:
state_size: Integer. Dimension of each state
action_size: Integer. Dimension of each action
seed: Integer. Value to set the seed of the model
fc1_units: Integer. Number of nodes in first fully connect hidden layer
fc2_units: Integer. Number of nodes in second fully connect hidden layer
fc3_units: Integer. Number of nodes in third fully connect hidden laye
"""
super(Actor, self).__init__()
self.seed = torch.manual_seed(seed)
self.fc1 = nn.Linear(state_size, fc1_units)
self.fc2 = nn.Linear(fc1_units, fc2_units)
self.fc3 = nn.Linear(fc2_units, fc3_units)
self.fc4 = nn.Linear(fc3_units, action_size)
self.reset_parameters()
def reset_parameters(self):
""" Reset model weights
:return: None
"""
self.fc1.weight.data.uniform_(*self.hidden_init(self.fc1))
self.fc2.weight.data.uniform_(*self.hidden_init(self.fc2))
self.fc3.weight.data.uniform_(*self.hidden_init(self.fc3))
self.fc4.weight.data.uniform_(-3e-3, 3e-3)
@staticmethod
def hidden_init(layer):
fan_in = layer.weight.data.size()[0]
lim = 1. / np.sqrt(fan_in)
return -lim, lim
def __repr__(self):
return 'Actor of Deep Deterministic Policy Gradient Model'
def __str__(self):
return 'Actor of Deep Deterministic Policy Gradient Model'
def forward(self, state):
"""Defines the computation performed at every call.
Args:
state: A tensor with the state values
Returns:
A tensor if there is a single output, or a list of tensors if there
are more than one outputs.
"""
# Define the hidden layers
hidden = F.leaky_relu(self.fc1(state))
hidden = F.leaky_relu(self.fc2(hidden))
hidden = F.leaky_relu(self.fc3(hidden))
return torch.tanh(self.fc4(hidden))
class Critic(nn.Module):
"""Critic (Value) Model.
This class construct the model.
"""
def __init__(self, state_size, action_size, seed, fc1_units=128, fc2_units=128, fc3_units=128):
""" Initialize parameters and build model.
Args:
state_size: Integer. Dimension of each state
action_size: Integer. Dimension of each action
seed: Integer. Value to set the seed of the model
fc1_units: Integer. Number of nodes in first fully connect hidden layer
fc2_units: Integer. Number of nodes in second fully connect hidden layer
fc3_units: Integer. Number of nodes in third fully connect hidden layer
"""
super(Critic, self).__init__()
self.seed = torch.manual_seed(seed)
self.fc1 = nn.Linear(state_size, fc1_units)
self.fc2 = nn.Linear(fc1_units+action_size, fc2_units)
self.fc3 = nn.Linear(fc2_units, fc3_units)
self.fc4 = nn.Linear(fc3_units, 1)
self.reset_parameters()
def reset_parameters(self):
self.fc1.weight.data.uniform_(*self.hidden_init(self.fc1))
self.fc2.weight.data.uniform_(*self.hidden_init(self.fc2))
self.fc3.weight.data.uniform_(*self.hidden_init(self.fc3))
self.fc4.weight.data.uniform_(-3e-3, 3e-3)
@staticmethod
def hidden_init(layer):
fan_in = layer.weight.data.size()[0]
lim = 1. / np.sqrt(fan_in)
return -lim, lim
def __repr__(self):
return 'Critic of Deep Deterministic Policy Gradient Model'
def __str__(self):
return 'Critic of Deep Deterministic Policy Gradient Model'
def forward(self, state, action):
"""Build a critic (value) network that maps (state, action)
pairs -> Q-values.
Args:
state: A tensor with the state values
action: A tensor with the actions values
Returns:
A tensor if there is a single output, or a list of tensors if there
are more than one outputs.
"""
# Define the hidden layers
hidden = F.leaky_relu(self.fc1(state))
hidden = torch.cat((hidden, action), dim=1)
hidden = F.leaky_relu(self.fc2(hidden))
hidden = F.leaky_relu(self.fc3(hidden))
return self.fc4(hidden)
| 34.798507
| 99
| 0.633069
| 635
| 4,663
| 4.491339
| 0.179528
| 0.02805
| 0.047686
| 0.042076
| 0.861851
| 0.861851
| 0.861851
| 0.8331
| 0.81136
| 0.81136
| 0
| 0.025384
| 0.273429
| 4,663
| 133
| 100
| 35.06015
| 0.816411
| 0.333905
| 0
| 0.721311
| 0
| 0
| 0.071044
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.196721
| false
| 0
| 0.065574
| 0.065574
| 0.42623
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
dc36f9eaca4eb1d62f8167b8efeab03e9299df45
| 15,531
|
py
|
Python
|
agpy/wcsalign_starlink.py
|
keflavich/agpy
|
fb3a42d9909b7cd1ba74247530bcc8742f5aaeb1
|
[
"MIT"
] | 16
|
2015-05-08T11:14:26.000Z
|
2021-11-19T19:05:16.000Z
|
agpy/wcsalign_starlink.py
|
keflavich/agpy
|
fb3a42d9909b7cd1ba74247530bcc8742f5aaeb1
|
[
"MIT"
] | 3
|
2016-05-12T16:27:14.000Z
|
2020-12-27T01:14:24.000Z
|
agpy/wcsalign_starlink.py
|
keflavich/agpy
|
fb3a42d9909b7cd1ba74247530bcc8742f5aaeb1
|
[
"MIT"
] | 19
|
2015-03-30T22:34:14.000Z
|
2020-11-25T23:29:53.000Z
|
#!/bin/env python
from __future__ import print_function
# Re-projects a 2D FITS image so that it is aligned pixel-for-pixel with
# another reference FITS image.
# Usage:
# wcsalign.py <infile> <reffile> <outfile>
#
# <infile> = Input fits file
# <reffile> = Reference fits file
# <outfile> = Output fits file
# Notes:
# - Requires pyast version 2.3
try:
from astropy.io import fits as pyfits
except ImportError:
import pyfits
import sys
def main():
# Open the input and reference FITS files using fits. A list of the HDUs in each FITS
# file is returned.
hdu_list_in = pyfits.open(sys.argv[1])
hdu_list_ref = pyfits.open(sys.argv[2])
wcsalign(hdu_list_in, hdu_list_ref)
def wcsalign(hdu_in, header, outname=None, clobber=False):
"""
Align one FITS image to a specified header
Requires pyast.
Parameters
----------
hdu_in: fits.PrimaryHDU
The HDU to reproject (must have header & data)
header: fits.Header
The target header to project to
outname: str (optional)
The filename to write to.
clobber: bool
Overwrite the file `outname` if it exists
Returns
-------
The reprojected fits.PrimaryHDU
Credits
-------
Written by David Berry and adapted to functional form by Adam Ginsburg
(adam.g.ginsburg@gmail.com)
"""
import starlink.Ast as Ast
import starlink.Atl as Atl
# Create objects that will transfer FITS header cards between an AST
# FitsChan and the fits header describing the primary HDU of the
# supplied FITS file.
adapter_in = Atl.PyFITSAdapter(hdu_in)
hdu_ref = pyfits.PrimaryHDU(header=header)
adapter_ref = Atl.PyFITSAdapter(hdu_ref)
# Create a FitsChan for each and use the above adapters to copy all the header
# cards into it.
fitschan_in = Ast.FitsChan(adapter_in, adapter_in)
fitschan_ref = Ast.FitsChan(adapter_ref, adapter_ref)
# Get the flavour of FITS-WCS used by the header cards currently in the
# input FITS file. This is so that we can use the same flavour when we write
# out the modified WCS.
encoding = fitschan_in.Encoding
# Read WCS information from the two FitsChans. Additionally, this removes
# all WCS information from each FitsChan. The returned wcsinfo object
# is an AST FrameSet, in which the current Frame describes WCS coordinates
# and the base Frame describes pixel coodineates. The FrameSet includes a
# Mapping that specifies the transformation between the two Frames.
wcsinfo_in = fitschan_in.read()
wcsinfo_ref = fitschan_ref.read()
# Check that the input FITS header contained WCS in a form that can be
# understood by AST.
if wcsinfo_in is None:
raise ValueError("Failed to read WCS information from {0}".format(hdu_in))
# This is restricted to 2D arrays, so check theinput FITS file has 2 pixel
# axes (given by Nin) and 2 WCS axes (given by Nout).
elif wcsinfo_in.Nin != 3 or wcsinfo_in.Nout != 3:
raise ValueError("{0} is not 3-dimensional".format(hdu_in))
# Check the reference FITS file in the same way.
elif wcsinfo_ref is None:
raise ValueError("Failed to read WCS information from {0}".format(hdu_ref))
elif wcsinfo_ref.Nin != 3 or wcsinfo_ref.Nout != 3:
raise ValueError("{0} is not 2-dimensional".format(hdu_ref))
# Proceed if the WCS information was read OK.
# Attempt to get a mapping from pixel coords in the input FITS file to pixel
# coords in the reference fits file, with alignment occuring by preference in
# the current WCS frame. Since the pixel coordinate frame will be the base frame
# in each Frameset, we first invert the FrameSets. This is because the Convert method
# aligns current Frames, not base frames.
wcsinfo_in.invert()
wcsinfo_ref.invert()
alignment_fs = wcsinfo_in.convert(wcsinfo_ref)
# Invert them again to put them back to their original state (i.e.
# base frame = pixel coords, and current Frame = WCS coords).
wcsinfo_in.invert()
wcsinfo_ref.invert()
# Check alignment was possible.
if alignment_fs is None:
raise Exception("Cannot find a common coordinate system shared by {0} and {1}".format(hdu_in,hdu_ref))
else:
# Get the lower and upper bounds of the input image in pixel indices.
# All FITS arrays by definition have lower pixel bounds of [1,1] (unlike
# NDFs). Note, unlike fits AST uses FITS ordering for storing pixel axis
# values in an array (i.e. NAXIS1 first, NAXIS2 second, etc).
lbnd_in = [1, 1, 1]
ubnd_in = [fitschan_in["NAXIS1"], fitschan_in["NAXIS2"], fitschan_in["NAXIS3"]]
# Find the pixel bounds of the input image within the pixel coordinate
# system of the reference fits file.
(lb1, ub1, xl, xu) = alignment_fs.mapbox(lbnd_in, ubnd_in, 1)
(lb2, ub2, xl, xu) = alignment_fs.mapbox(lbnd_in, ubnd_in, 2)
# Calculate the bounds of the output image.
lbnd_out = [int(lb1), int(lb2)]
ubnd_out = [int(ub1), int(ub2)]
# Unlike NDFs, FITS images cannot have an arbitrary pixel origin so
# we need to ensure that the bottom left corner of the input image
# gets mapped to pixel [1,1] in the output. To do this we, extract the
# mapping from the alignment FrameSet and add on a ShiftMap (a mapping
# that just applies a shift to each axis).
shift = [1 - lbnd_out[0],
1 - lbnd_out[1]]
alignment_mapping = alignment_fs.getmapping()
shiftmap = Ast.ShiftMap(shift)
total_map = Ast.CmpMap(alignment_mapping, shiftmap)
# Modify the pixel bounds of the output image to take account of this
# shift of origin.
lbnd_out[0] += shift[0]
lbnd_out[1] += shift[1]
ubnd_out[0] += shift[0]
ubnd_out[1] += shift[1]
# Get the value used to represent missing pixel values
if "BLANK" in fitschan_in:
badval = fitschan_in["BLANK"]
flags = Ast.USEBAD
else:
badval = 0
flags = 0
# Resample the data array using the above mapping.
# total_map was pixmap; is this right?
(npix, out, out_var) = total_map.resample(lbnd_in, ubnd_in,
hdu_in.data, None,
Ast.LINEAR, None, flags,
0.05, 1000, badval, lbnd_out,
ubnd_out, lbnd_out, ubnd_out)
# Store the aligned data in the primary HDU, and update the NAXISi keywords
# to hold the number of pixels along each edge of the rotated image.
hdu_in.data = out
fitschan_in["NAXIS1"] = ubnd_out[0] - lbnd_out[0] + 1
fitschan_in["NAXIS2"] = ubnd_out[1] - lbnd_out[1] + 1
# The WCS to store in the output is the same as the reference WCS
# except for the extra shift of origin. So use the above shiftmap to
# remap the pixel coordinate frame in the reference WCS FrameSet. We
# can then use this FrameSet as the output FrameSet.
wcsinfo_ref.remapframe(Ast.BASE, shiftmap)
# Attempt to write the modified WCS information to the primary HDU (i.e.
# convert the FrameSet to a set of FITS header cards stored in the
# FITS file). Indicate that we want to use original flavour of FITS-WCS.
fitschan_in.Encoding = encoding
fitschan_in.clear('Card')
if fitschan_in.write(wcsinfo_ref) == 0:
raise Exception("Failed to convert the aligned WCS to Fits-WCS")
# If successful, force the FitsChan to copy its contents into the
# fits header, then write the changed data and header to the output
# FITS file.
else:
fitschan_in.writefits()
if outname is not None:
hdu_in.writeto(outname, clobber=clobber)
return hdu_in
def wcsalign_cube(hdu_in, header, outname=None, clobber=False):
"""
Align one FITS image *cube* to a specified header
Requires pyast.
Parameters
----------
hdu_in: fits.PrimaryHDU
The HDU to reproject (must have header & data)
header: fits.Header
The target header to project to
outname: str (optional)
The filename to write to.
clobber: bool
Overwrite the file `outname` if it exists
Returns
-------
The reprojected fits.PrimaryHDU
Credits
-------
Written by David Berry and adapted to functional form by Adam Ginsburg
(adam.g.ginsburg@gmail.com)
"""
import starlink.Ast as Ast
import starlink.Atl as Atl
# Create objects that will transfer FITS header cards between an AST
# FitsChan and the fits header describing the primary HDU of the
# supplied FITS file.
adapter_in = Atl.PyFITSAdapter(hdu_in)
hdu_ref = pyfits.PrimaryHDU(header=header)
adapter_ref = Atl.PyFITSAdapter(hdu_ref)
# Create a FitsChan for each and use the above adapters to copy all the header
# cards into it.
fitschan_in = Ast.FitsChan(adapter_in, adapter_in)
fitschan_ref = Ast.FitsChan(adapter_ref, adapter_ref)
# Get the flavour of FITS-WCS used by the header cards currently in the
# input FITS file. This is so that we can use the same flavour when we write
# out the modified WCS.
encoding = fitschan_in.Encoding
# Read WCS information from the two FitsChans. Additionally, this removes
# all WCS information from each FitsChan. The returned wcsinfo object
# is an AST FrameSet, in which the current Frame describes WCS coordinates
# and the base Frame describes pixel coodineates. The FrameSet includes a
# Mapping that specifies the transformation between the two Frames.
wcsinfo_in = fitschan_in.read()
wcsinfo_ref = fitschan_ref.read()
# Check that the input FITS header contained WCS in a form that can be
# understood by AST.
if wcsinfo_in is None:
raise ValueError("Failed to read WCS information from {0}".format(hdu_in))
# This is restricted to 2D arrays, so check theinput FITS file has 2 pixel
# axes (given by Nin) and 2 WCS axes (given by Nout).
elif wcsinfo_in.Nin != 2 or wcsinfo_in.Nout != 2:
raise ValueError("{0} is not 2-dimensional".format(hdu_in))
# Check the reference FITS file in the same way.
elif wcsinfo_ref is None:
raise ValueError("Failed to read WCS information from {0}".format(hdu_ref))
elif wcsinfo_ref.Nin != 2 or wcsinfo_ref.Nout != 2:
raise ValueError("{0} is not 2-dimensional".format(hdu_ref))
# Proceed if the WCS information was read OK.
# Attempt to get a mapping from pixel coords in the input FITS file to pixel
# coords in the reference fits file, with alignment occuring by preference in
# the current WCS frame. Since the pixel coordinate frame will be the base frame
# in each Frameset, we first invert the FrameSets. This is because the Convert method
# aligns current Frames, not base frames.
wcsinfo_in.invert()
wcsinfo_ref.invert()
alignment_fs = wcsinfo_in.convert(wcsinfo_ref)
# Invert them again to put them back to their original state (i.e.
# base frame = pixel coords, and current Frame = WCS coords).
wcsinfo_in.invert()
wcsinfo_ref.invert()
# Check alignment was possible.
if alignment_fs is None:
raise Exception("Cannot find a common coordinate system shared by {0} and {1}".format(hdu_in,hdu_ref))
else:
# Get the lower and upper bounds of the input image in pixel indices.
# All FITS arrays by definition have lower pixel bounds of [1,1] (unlike
# NDFs). Note, unlike fits AST uses FITS ordering for storing pixel axis
# values in an array (i.e. NAXIS1 first, NAXIS2 second, etc).
lbnd_in = [1, 1]
ubnd_in = [fitschan_in["NAXIS1"], fitschan_in["NAXIS2"]]
# Find the pixel bounds of the input image within the pixel coordinate
# system of the reference fits file.
(lb1, ub1, xl, xu) = alignment_fs.mapbox(lbnd_in, ubnd_in, 1)
(lb2, ub2, xl, xu) = alignment_fs.mapbox(lbnd_in, ubnd_in, 2)
# Calculate the bounds of the output image.
lbnd_out = [int(lb1), int(lb2)]
ubnd_out = [int(ub1), int(ub2)]
# Unlike NDFs, FITS images cannot have an arbitrary pixel origin so
# we need to ensure that the bottom left corner of the input image
# gets mapped to pixel [1,1] in the output. To do this we, extract the
# mapping from the alignment FrameSet and add on a ShiftMap (a mapping
# that just applies a shift to each axis).
shift = [1 - lbnd_out[0],
1 - lbnd_out[1]]
alignment_mapping = alignment_fs.getmapping()
shiftmap = Ast.ShiftMap(shift)
total_map = Ast.CmpMap(alignment_mapping, shiftmap)
# Modify the pixel bounds of the output image to take account of this
# shift of origin.
lbnd_out[0] += shift[0]
lbnd_out[1] += shift[1]
ubnd_out[0] += shift[0]
ubnd_out[1] += shift[1]
# Get the value used to represent missing pixel values
if "BLANK" in fitschan_in:
badval = fitschan_in["BLANK"]
flags = Ast.USEBAD
else:
badval = 0
flags = 0
# Resample the data array using the above mapping.
# total_map was pixmap; is this right?
(npix, out, out_var) = total_map.resample(lbnd_in, ubnd_in,
hdu_in.data, None,
Ast.LINEAR, None, flags,
0.05, 1000, badval, lbnd_out,
ubnd_out, lbnd_out, ubnd_out)
# Store the aligned data in the primary HDU, and update the NAXISi keywords
# to hold the number of pixels along each edge of the rotated image.
hdu_in.data = out
fitschan_in["NAXIS1"] = ubnd_out[0] - lbnd_out[0] + 1
fitschan_in["NAXIS2"] = ubnd_out[1] - lbnd_out[1] + 1
# The WCS to store in the output is the same as the reference WCS
# except for the extra shift of origin. So use the above shiftmap to
# remap the pixel coordinate frame in the reference WCS FrameSet. We
# can then use this FrameSet as the output FrameSet.
wcsinfo_ref.remapframe(Ast.BASE, shiftmap)
# Attempt to write the modified WCS information to the primary HDU (i.e.
# convert the FrameSet to a set of FITS header cards stored in the
# FITS file). Indicate that we want to use original flavour of FITS-WCS.
fitschan_in.Encoding = encoding
fitschan_in.clear('Card')
if fitschan_in.write(wcsinfo_ref) == 0:
raise Exception("Failed to convert the aligned WCS to Fits-WCS")
# If successful, force the FitsChan to copy its contents into the
# fits header, then write the changed data and header to the output
# FITS file.
else:
fitschan_in.writefits()
if outname is not None:
hdu_in.writeto(outname, clobber=clobber)
return hdu_in
| 40.76378
| 110
| 0.645097
| 2,228
| 15,531
| 4.412029
| 0.14228
| 0.027467
| 0.014649
| 0.013428
| 0.940387
| 0.940387
| 0.940387
| 0.937233
| 0.937233
| 0.937233
| 0
| 0.012329
| 0.284528
| 15,531
| 380
| 111
| 40.871053
| 0.8723
| 0.517546
| 0
| 0.84507
| 0
| 0
| 0.075619
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.021127
| false
| 0
| 0.06338
| 0
| 0.098592
| 0.007042
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
dc8ac7ff64af78373f7c1d329eb365fd4a43ffa5
| 4,625
|
py
|
Python
|
tests/test_pack.py
|
pylover/brythoncli
|
4a4b43e1c407b32437c006ed9d6933b9ec3bb8fd
|
[
"MIT"
] | null | null | null |
tests/test_pack.py
|
pylover/brythoncli
|
4a4b43e1c407b32437c006ed9d6933b9ec3bb8fd
|
[
"MIT"
] | null | null | null |
tests/test_pack.py
|
pylover/brythoncli
|
4a4b43e1c407b32437c006ed9d6933b9ec3bb8fd
|
[
"MIT"
] | null | null | null |
from os import path
from bddcli import status, stdout, stderr, when, given
def test_pack_suffix(app, tempstruct, changedir, sortlines):
temproot = tempstruct(**{
'foo': {
'__init__.py': 'i = 10',
'baz.py': 'i = 11',
}
})
changedir(temproot)
outfile = path.join(temproot, 'bar.brython.js')
with app(f'pack -d{temproot}/foo --suffix .brython.js bar'):
assert stderr == ''
assert status == 0
assert sortlines(stdout) == sortlines('''\
Generating package bar
Adding bar package.
Adding bar.baz module.
2 files
''')
assert path.exists(outfile)
def test_pack_emptydirectory(app, tempstruct, changedir, sortlines):
temproot = tempstruct(**{
'.foo': {
'__init__.py': 'i = 10',
'baz.py': 'i = 11',
}
})
changedir(temproot)
outfile = path.join(temproot, 'bar.brython.js')
with app('pack bar'):
assert stderr == ''
assert status == 0
assert sortlines(stdout) == sortlines('''\
Generating package bar
No file to create package.
''')
assert not path.exists(outfile)
def test_pack_pypackage(app, tempstruct, changedir, sortlines):
temproot = tempstruct(**{
'foo': {
'__init__.py': 'i = 10',
'baz.py': 'i = 11',
}
})
changedir(temproot)
outfile = path.join(temproot, 'bar.js')
with app(f'pack -d{temproot}/foo bar'):
assert stderr == ''
assert status == 0
assert sortlines(stdout) == sortlines('''\
Generating package bar
Adding bar package.
Adding bar.baz module.
2 files
''')
assert path.exists(outfile)
def test_pack_systemfiles(app, tempstruct, changedir, sortlines):
temproot = tempstruct(**{
'.foo': {
'__init__.py': 'i = 10',
},
'.bar': {
'baz.py': 'i = 21',
},
'qux': {
'.bar.py': 'i = 31',
'thud.py': 'i = 32',
},
'_fred': {
'baz.py': 'i = 41',
}
})
changedir(temproot)
outfile = path.join(temproot, 'foo.js')
with app('pack foo'):
assert stderr == ''
assert status == 0
assert sortlines(stdout) == sortlines('''\
Generating package foo
Adding qux.thud module.
1 files
''')
assert path.exists(outfile)
def test_pack_exclude(app, tempstruct, changedir, sortlines):
temproot = tempstruct(
foo={
'__init__.py': 'i = 10',
},
bar={
'bar.py': 'i = 21',
'baz.py': 'i = 22',
}
)
changedir(temproot)
outfile = path.join(temproot, 'foo.js')
with app('pack foo'):
assert stderr == ''
assert status == 0
assert sortlines(stdout) == sortlines('''\
Generating package foo
Adding bar.baz module.
Adding bar.bar module.
Adding foo package.
3 files
''')
assert path.exists(outfile)
when(given + '-ebaz')
assert stderr == ''
assert status == 0
assert path.exists(outfile)
assert sortlines(stdout) == sortlines('''\
Generating package foo
Adding bar.bar module.
Adding foo package.
2 files
''')
when(given + '-ebar')
assert stderr == ''
assert status == 0
assert path.exists(outfile)
assert sortlines(stdout) == sortlines('''\
Generating package foo
Adding foo package.
1 files
''')
def test_pack_simple(app, tempstruct, changedir, sortlines):
temproot = tempstruct(
foo={
'__init__.py': 'i = 10',
},
bar={
'bar.py': 'i = 21',
'baz.py': 'i = 22',
}
)
outfile = path.join(temproot, 'foo.js')
changedir(temproot)
with app('pack foo'):
assert status == 0
assert path.exists(outfile)
assert stderr == ''
assert sortlines(stdout) == sortlines('''\
Generating package foo
Adding bar.baz module.
Adding bar.bar module.
Adding foo package.
3 files
''')
def test_pack_packagedirectory(app, tempstruct, sortlines):
temproot = tempstruct(
foo={
'__init__.py': 'i = 10',
},
bar={
'bar.py': 'i = 21',
'baz.py': 'i = 22',
}
)
outroot = tempstruct()
outfile = path.join(outroot, 'foo.js')
with app(f'pack -d{temproot} -o{outroot} foo'):
assert stderr == ''
assert status == 0
assert path.exists(outfile)
assert sortlines(stdout) == sortlines('''\
Generating package foo
Adding bar.baz module.
Adding bar.bar module.
Adding foo package.
3 files
''')
| 23.477157
| 68
| 0.550919
| 509
| 4,625
| 4.921415
| 0.133595
| 0.023952
| 0.064671
| 0.068263
| 0.841118
| 0.826347
| 0.803992
| 0.783633
| 0.734132
| 0.734132
| 0
| 0.017718
| 0.304432
| 4,625
| 196
| 69
| 23.596939
| 0.760957
| 0
| 0
| 0.744186
| 0
| 0
| 0.258162
| 0
| 0
| 0
| 0
| 0
| 0.209302
| 1
| 0.040698
| false
| 0
| 0.011628
| 0
| 0.052326
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
dc98b86d3e54fef79a1100be64901540a9aaae16
| 5,583
|
py
|
Python
|
Stochastic_EM.py
|
xieyujia/RWOC
|
ad1085b212aac85298317b681379997c14e340b3
|
[
"MIT"
] | 1
|
2021-09-13T15:32:19.000Z
|
2021-09-13T15:32:19.000Z
|
Stochastic_EM.py
|
xieyujia/RWOC
|
ad1085b212aac85298317b681379997c14e340b3
|
[
"MIT"
] | 1
|
2021-06-30T13:11:12.000Z
|
2021-07-06T01:33:19.000Z
|
Stochastic_EM.py
|
xieyujia/RWOC
|
ad1085b212aac85298317b681379997c14e340b3
|
[
"MIT"
] | null | null | null |
import numpy as np
from sklearn.linear_model import LinearRegression
def log_prob_of_order(x,y,coefs,s,order):
eps = 1e-6
y_ = y[order]
log_prob = np.sum(-np.square(x.dot(coefs)-y_)/(2*(s+eps)**2))
return log_prob
def stochastic_em(x,y,w_init=None, fit_intercept=False,steps=15,\
return_all_weights=False,verbose=False, enhanced=False, \
groups=None, mcmc_steps=None, interval_between_mcmc_steps=None):
n, d = x.shape
lr = LinearRegression(fit_intercept=fit_intercept)
if w_init is not None:
coefs = w_init
else:
lr.fit(x,y)
coefs = lr.coef_.T
s = np.sqrt(np.sum(np.square(y - x.dot(coefs)))/(n-d)) #RMS of residuals
ws = list()
permutation = np.diag(np.ones(n))
for i in list(range(steps)):
order = np.arange(n)
y_mean = np.zeros(n)
permutation_mean = np.zeros([n,n])
if mcmc_steps is None:
mcmc_steps = np.max([int(n*np.log(n)),100])
if interval_between_mcmc_steps is None:
interval_between_mcmc_steps = n/10
burn_steps = int(mcmc_steps/2)
mean_step_counter = 0
interval_mcmc_counter = 0
for m_step in range(mcmc_steps):
order_ = np.copy(order)
i = np.random.randint(0,n)
if (enhanced):
if not(groups is None):
indices_in_same_group = np.where(groups==groups[i])[0]
j = np.random.choice(indices_in_same_group)
else:
raise ValueError("Group Information Must Be Provided for Enhanced SLS")
else:
j = np.random.randint(0,n)
order_[i] = order[j]
order_[j] = order[i]
p1 = log_prob_of_order(x,y,coefs,s,order)
p2 = log_prob_of_order(x,y,coefs,s,order_)
if p1 < p2:
order = order_
else:
if np.random.random() < np.exp(p2-p1): #since they're log probabilities
order = order_
if m_step>=burn_steps:
interval_mcmc_counter += 1
if (interval_mcmc_counter>=interval_between_mcmc_steps):
# print(np.sum(permutation[order]))
permutation_mean += permutation[order]
# print(order)
y_mean += y.flatten()[order]
mean_step_counter += 1
interval_mcmc_counter = 0
# print(permutation_mean)
y = y_mean/mean_step_counter
# print(mean_step_counter)
permutation_mean = permutation_mean / mean_step_counter
y = y.reshape(-1,1)
# print(y_mean)
lr.fit(x,y)
coefs = lr.coef_.T
s = np.sqrt(np.sum(np.square(y - x.dot(coefs)))/(n-d)) #RMS of residuals
ws.append(coefs)
pred = x.dot(coefs)
rss = np.sum((pred - y) ** 2)
tss = np.sum((y - y.mean()) ** 2)
return coefs, rss / tss, permutation_mean
def stochastic_em_modified(x,y,w_init=None, fit_intercept=False,steps=15,\
return_all_weights=False,verbose=False, enhanced=False, \
groups=None, mcmc_steps=None, interval_between_mcmc_steps=None):
n, d = x.shape
if w_init is not None:
coefs = w_init
else:
lr = LinearRegression(fit_intercept=fit_intercept)
lr.fit(x,y)
coefs = lr.coef_.T
s = np.sqrt(np.sum(np.square(y - x.dot(coefs)))/(n-d)) #RMS of residuals
ws = list()
for i in list(range(steps)):
order = np.arange(n)
y_mean = np.zeros(n)
if mcmc_steps is None:
mcmc_steps = np.max([int(n*np.log(n)),100])
if interval_between_mcmc_steps is None:
interval_between_mcmc_steps = n/10
burn_steps = int(mcmc_steps/2)
mean_step_counter = 0
interval_mcmc_counter = 0
for m_step in range(mcmc_steps):
order_ = np.copy(order)
i = np.random.randint(0,n)
if (enhanced):
if not(groups is None):
indices_in_same_group = np.where(groups==groups[i])[0]
j = np.random.choice(indices_in_same_group)
else:
raise ValueError("Group Information Must Be Provided for Enhanced SLS")
else:
j = np.random.randint(0,n)
order_[i] = order[j]
order_[j] = order[i]
p1 = log_prob_of_order(x,y,coefs,s,order)
p2 = log_prob_of_order(x,y,coefs,s,order_)
if p1 < p2:
order = order_
else:
if np.random.random() < np.exp(p2-p1): #since they're log probabilities
order = order_
if m_step>=burn_steps:
interval_mcmc_counter += 1
if (interval_mcmc_counter>=interval_between_mcmc_steps):
y_mean += y.flatten()[order]
mean_step_counter += 1
interval_mcmc_counter = 0
y = y_mean/mean_step_counter
y = y.reshape(-1,1)
lr = LinearRegression(fit_intercept=fit_intercept)
lr.fit(x,y)
coefs = lr.coef_.T
s = np.sqrt(np.sum(np.square(y - x.dot(coefs)))/(n-d)) #RMS of residuals
ws.append(coefs)
index_sort = np.argsort(x.dot(coefs)[:,0])
x = x[index_sort]
y = np.sort(y, axis=0)
pred = x.dot(coefs)
rss = np.sum((pred - y) ** 2)
tss = np.sum((y - y.mean()) ** 2)
return coefs, rss / tss
| 31.542373
| 91
| 0.549525
| 774
| 5,583
| 3.75969
| 0.147287
| 0.05567
| 0.021649
| 0.065979
| 0.856014
| 0.856014
| 0.833677
| 0.833677
| 0.833677
| 0.80378
| 0
| 0.015646
| 0.33602
| 5,583
| 176
| 92
| 31.721591
| 0.769355
| 0.042271
| 0
| 0.862595
| 0
| 0
| 0.019115
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.022901
| false
| 0
| 0.015267
| 0
| 0.061069
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.