content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
input = """
x | y.
:- x.
a :- x.
a :- not y.
a :- b.
b :- a.
t :- not a, not b, not x.
"""
output = """
x | y.
:- x.
a :- x.
a :- not y.
a :- b.
b :- a.
t :- not a, not b, not x.
"""
| input = '\nx | y.\n:- x.\na :- x.\na :- not y.\na :- b.\nb :- a.\nt :- not a, not b, not x.\n'
output = '\nx | y.\n:- x.\na :- x.\na :- not y.\na :- b.\nb :- a.\nt :- not a, not b, not x.\n' |
#!/bin/python3
# https://www.urionlinejudge.com.br/judge/en/problems/view/1005
def main():
A, B = float(input()), float(input())
wA = 3.5
wB = 7.5
MEDIA = ((A * wA) + (B * wB)) / (wA + wB)
print("MEDIA =", format(MEDIA, '.5f'))
# Start the execution if it's the main script
if __name__ == "__main__":
main()
| def main():
(a, b) = (float(input()), float(input()))
w_a = 3.5
w_b = 7.5
media = (A * wA + B * wB) / (wA + wB)
print('MEDIA =', format(MEDIA, '.5f'))
if __name__ == '__main__':
main() |
def test_geo_zones(app):
app.wd.find_element_by_xpath("//a//span[text()='Geo Zones']").click()
counties = app.wd.find_elements_by_xpath("//tr[@class='row']//a[not(@title)]")
for i in range(len(counties)):
app.wd.find_element_by_xpath("(//tr[@class='row']//a[not(@title)])[%s+1]" % i).click()
zone_elements = app.wd.find_elements_by_xpath\
("//select[contains(@name, 'zone_code')]//option[@selected='selected']")
zones = []
for zone in zone_elements:
zones.append(zone.text)
assert zones == sorted(zones)
app.wd.find_element_by_xpath("//a//span[text()='Geo Zones']").click()
| def test_geo_zones(app):
app.wd.find_element_by_xpath("//a//span[text()='Geo Zones']").click()
counties = app.wd.find_elements_by_xpath("//tr[@class='row']//a[not(@title)]")
for i in range(len(counties)):
app.wd.find_element_by_xpath("(//tr[@class='row']//a[not(@title)])[%s+1]" % i).click()
zone_elements = app.wd.find_elements_by_xpath("//select[contains(@name, 'zone_code')]//option[@selected='selected']")
zones = []
for zone in zone_elements:
zones.append(zone.text)
assert zones == sorted(zones)
app.wd.find_element_by_xpath("//a//span[text()='Geo Zones']").click() |
def maior_elemento(lista):
comparador = -9999
for item in lista:
if item > comparador:
comparador = item
return comparador
| def maior_elemento(lista):
comparador = -9999
for item in lista:
if item > comparador:
comparador = item
return comparador |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
# Target word length. Currently set to match the word length of Arduino (2 bytes)
wordLength = 16
# Range of max scale factor used for exploration
maxScaleRange = 0, -wordLength
# tanh approximation limit
tanhLimit = 1.0
# MSBuild location
# Edit the path if not present at the following location
msbuildPathOptions = [r"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe"
r"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe"
r"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe"
]
class Algo:
bonsai = "bonsai"
lenet = "lenet"
protonn = "protonn"
rnn = "rnn"
default = [bonsai, protonn]
all = [bonsai, lenet, protonn, rnn]
class Version:
fixed = "fixed"
floatt = "float"
default = [fixed, floatt]
all = default
class DatasetType:
training = "training"
testing = "testing"
default = testing
all = [training, testing]
class Target:
arduino = "arduino"
x86 = "x86"
default = x86
all = [arduino, x86]
| word_length = 16
max_scale_range = (0, -wordLength)
tanh_limit = 1.0
msbuild_path_options = ['C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\MSBuild.exeC:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\MSBuild\\Current\\Bin\\MSBuild.exeC:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\MSBuild\\Current\\Bin\\MSBuild.exe']
class Algo:
bonsai = 'bonsai'
lenet = 'lenet'
protonn = 'protonn'
rnn = 'rnn'
default = [bonsai, protonn]
all = [bonsai, lenet, protonn, rnn]
class Version:
fixed = 'fixed'
floatt = 'float'
default = [fixed, floatt]
all = default
class Datasettype:
training = 'training'
testing = 'testing'
default = testing
all = [training, testing]
class Target:
arduino = 'arduino'
x86 = 'x86'
default = x86
all = [arduino, x86] |
class Solution:
def findMin(self, nums: 'List[int]') -> 'int':
left, right = 0, len(nums)
if right == 0:
return -1
result = nums[0]
while left + 1 < right:
mid = (left + right) >> 1
result = min(result, nums[mid])
if nums[mid] < nums[left]:
right = mid
else:
left = mid
return min(result, nums[left])
if __name__ == "__main__":
print(Solution().findMin([3, 4, 5, 1, 2]))
print(Solution().findMin([4, 5, 6, 7, 0, 1, 2]))
| class Solution:
def find_min(self, nums: 'List[int]') -> 'int':
(left, right) = (0, len(nums))
if right == 0:
return -1
result = nums[0]
while left + 1 < right:
mid = left + right >> 1
result = min(result, nums[mid])
if nums[mid] < nums[left]:
right = mid
else:
left = mid
return min(result, nums[left])
if __name__ == '__main__':
print(solution().findMin([3, 4, 5, 1, 2]))
print(solution().findMin([4, 5, 6, 7, 0, 1, 2])) |
def dependencies(name, dependencies, prefix = "deb", parent_bzl_file = ""):
extra_deps_tools = []
parent_bzl_file_location = ""
if parent_bzl_file:
extra_deps_tools = [parent_bzl_file]
parent_bzl_file_location = "$(location " + parent_bzl_file + ")"
substitute_dependencies_target = target_path("substitute_dependencies")
[
native.genrule(
name = substituted_dependency_target_name(name, dependency),
srcs = [dependency],
outs = ["dependency_%s" % dependency_name(dependency)],
cmd = location(substitute_dependencies_target) + " " + location(dependency) + " > $@",
tools = [substitute_dependencies_target],
) for dependency in dependencies
]
find_dependencies_target = target_path("find_dependencies")
[
native.genrule(
name = "debian_dependencies_%s_%s" % (name, dependency_name(dependency)),
srcs = [
":" + substituted_dependency_target_name(name, dependency),
"@containers_by_bazel//scripts/docker:_built/%s/%s" % (name, dependencies[dependency]),
],
outs = ["debian_deps_%s" % dependency_name(dependency)],
cmd = location(find_dependencies_target) + " '" + container_image(name, dependencies[dependency]) + "' " + location(":" + substituted_dependency_target_name(name, dependency)) + " > $@",
tools = [find_dependencies_target],
local = 1, # ignore sandboxing as script connects to docker
) for dependency in dependencies
]
extract_dependencies_target = target_path("extract_dependencies")
native.genrule(
name = "bazel_current_dependencies_file_%s" % name,
srcs = ["@containers_by_bazel//deps/%s:%s.bzl" % (name, name)],
outs = ["current_dependencies_%s" % name],
cmd = location(extract_dependencies_target) + " '" + location("@containers_by_bazel//deps/%s:%s.bzl" % (name, name)) + "' > $@",
tools = [extract_dependencies_target],
)
combine_dependencies_target = target_path("combine_dependencies")
native.genrule(
name = "bazel_dependencies_file_%s" % name,
srcs = [":debian_dependencies_%s_%s" % (name, dependency_name(dependency)) for dependency in dependencies],
outs = [name + ".bzl"],
cmd = location(combine_dependencies_target) + " '" + prefix + "_" + name + "' '" + location("bazel_current_dependencies_file_%s" % name) + "' '" + parent_bzl_file_location + "' $(SRCS) > $@",
tools = [combine_dependencies_target, ":bazel_current_dependencies_file_%s" % name] + extra_deps_tools,
)
bazel_filegroup_target = target_path("bazel_filegroup")
[
native.genrule(
name = "debian_dependencies_filegroup_%s_%s" % (name, dependency_name(dependency)),
srcs = [":debian_dependencies_%s_%s" % (name, dependency_name(dependency))],
outs = ["filegroup_%s" % dependency_name(dependency)],
cmd = location(bazel_filegroup_target) + " '" + prefix + "_" + name + "' $< > $@",
tools = [bazel_filegroup_target],
) for dependency in dependencies
]
combine_filegroups_target = target_path("combine_filegroups")
native.genrule(
name = "debian_dependencies_group_" + name,
srcs = [":debian_dependencies_filegroup_%s_%s" % (name, dependency_name(dependency)) for dependency in dependencies],
outs = [name + ".filegroup"],
cmd = location(combine_filegroups_target) + " '" + name + "' $(SRCS) > $@",
tools = [combine_filegroups_target],
)
def location(target):
return "$(location " + target + ")"
def target_path( script):
return "@containers_by_bazel//scripts/debian:" + script
def dependency_name(dependency):
return dependency.strip(':')
def container_image(name, tag):
return "bazel/dependencies:%s-%s" % (name, tag)
def substituted_dependency_target_name(name, dependency):
return "substituted_dependency_versions_%s_%s" % (name, dependency_name(dependency))
def substituted_dependency_target(name, dependency):
return target_path(substituted_dependency_target_name(name, dependency))
| def dependencies(name, dependencies, prefix='deb', parent_bzl_file=''):
extra_deps_tools = []
parent_bzl_file_location = ''
if parent_bzl_file:
extra_deps_tools = [parent_bzl_file]
parent_bzl_file_location = '$(location ' + parent_bzl_file + ')'
substitute_dependencies_target = target_path('substitute_dependencies')
[native.genrule(name=substituted_dependency_target_name(name, dependency), srcs=[dependency], outs=['dependency_%s' % dependency_name(dependency)], cmd=location(substitute_dependencies_target) + ' ' + location(dependency) + ' > $@', tools=[substitute_dependencies_target]) for dependency in dependencies]
find_dependencies_target = target_path('find_dependencies')
[native.genrule(name='debian_dependencies_%s_%s' % (name, dependency_name(dependency)), srcs=[':' + substituted_dependency_target_name(name, dependency), '@containers_by_bazel//scripts/docker:_built/%s/%s' % (name, dependencies[dependency])], outs=['debian_deps_%s' % dependency_name(dependency)], cmd=location(find_dependencies_target) + " '" + container_image(name, dependencies[dependency]) + "' " + location(':' + substituted_dependency_target_name(name, dependency)) + ' > $@', tools=[find_dependencies_target], local=1) for dependency in dependencies]
extract_dependencies_target = target_path('extract_dependencies')
native.genrule(name='bazel_current_dependencies_file_%s' % name, srcs=['@containers_by_bazel//deps/%s:%s.bzl' % (name, name)], outs=['current_dependencies_%s' % name], cmd=location(extract_dependencies_target) + " '" + location('@containers_by_bazel//deps/%s:%s.bzl' % (name, name)) + "' > $@", tools=[extract_dependencies_target])
combine_dependencies_target = target_path('combine_dependencies')
native.genrule(name='bazel_dependencies_file_%s' % name, srcs=[':debian_dependencies_%s_%s' % (name, dependency_name(dependency)) for dependency in dependencies], outs=[name + '.bzl'], cmd=location(combine_dependencies_target) + " '" + prefix + '_' + name + "' '" + location('bazel_current_dependencies_file_%s' % name) + "' '" + parent_bzl_file_location + "' $(SRCS) > $@", tools=[combine_dependencies_target, ':bazel_current_dependencies_file_%s' % name] + extra_deps_tools)
bazel_filegroup_target = target_path('bazel_filegroup')
[native.genrule(name='debian_dependencies_filegroup_%s_%s' % (name, dependency_name(dependency)), srcs=[':debian_dependencies_%s_%s' % (name, dependency_name(dependency))], outs=['filegroup_%s' % dependency_name(dependency)], cmd=location(bazel_filegroup_target) + " '" + prefix + '_' + name + "' $< > $@", tools=[bazel_filegroup_target]) for dependency in dependencies]
combine_filegroups_target = target_path('combine_filegroups')
native.genrule(name='debian_dependencies_group_' + name, srcs=[':debian_dependencies_filegroup_%s_%s' % (name, dependency_name(dependency)) for dependency in dependencies], outs=[name + '.filegroup'], cmd=location(combine_filegroups_target) + " '" + name + "' $(SRCS) > $@", tools=[combine_filegroups_target])
def location(target):
return '$(location ' + target + ')'
def target_path(script):
return '@containers_by_bazel//scripts/debian:' + script
def dependency_name(dependency):
return dependency.strip(':')
def container_image(name, tag):
return 'bazel/dependencies:%s-%s' % (name, tag)
def substituted_dependency_target_name(name, dependency):
return 'substituted_dependency_versions_%s_%s' % (name, dependency_name(dependency))
def substituted_dependency_target(name, dependency):
return target_path(substituted_dependency_target_name(name, dependency)) |
class SyncScheduler(object):
def call(self, fn):
try:
fn()
except:
pass
| class Syncscheduler(object):
def call(self, fn):
try:
fn()
except:
pass |
"""
:Authors: - Wilker Aziz
"""
| """
:Authors: - Wilker Aziz
""" |
innereye_ssl_checkpoint = "hsharma_panda_explore:hsharma_panda_explore_1638437076_357167ae"
innereye_ssl_checkpoint_binary = "hsharma_panda_tiles_ssl:hsharma_panda_tiles_ssl_1639766433_161e03b9"
innereye_ssl_checkpoint_crck_4ws = "ModifyOldSSLCheckpoint:a9259fdb-3964-4c5b-8962-4660e0b79d44"
innereye_ssl_checkpoint_crck_radiomics = "ModifyOldSSLCheckpoint:704b1af8-7c75-46ed-8460-d80a0e603194"
# outdated checkpoints
# innereye_ssl_checkpoint_crck_radiomics = updated_transforms:updated_transforms_1636471522_5473e3ff
| innereye_ssl_checkpoint = 'hsharma_panda_explore:hsharma_panda_explore_1638437076_357167ae'
innereye_ssl_checkpoint_binary = 'hsharma_panda_tiles_ssl:hsharma_panda_tiles_ssl_1639766433_161e03b9'
innereye_ssl_checkpoint_crck_4ws = 'ModifyOldSSLCheckpoint:a9259fdb-3964-4c5b-8962-4660e0b79d44'
innereye_ssl_checkpoint_crck_radiomics = 'ModifyOldSSLCheckpoint:704b1af8-7c75-46ed-8460-d80a0e603194' |
'''
Created on 21.05.2019
@author: LH
'''
class TMCM_6212():
def __init__(self, connection):
self.__connection = connection
self.GPs = _GPs
self.APs = _APs
self.MOTORS = 6
def showChipInfo(self):
("TMCM-6212 is a six axes controller/driver module for 2-phase bipolar stepper motors with seperate encoder (differential) and HOME / STOP switch inputes for each axis. Voltage supply: 12 - 35");
# Axis parameter access
def getAxisParameter(self, apType, axis):
if not(0 <= axis < self.MOTORS):
raise ValueError("Axis index out of range")
return self.__connection.axisParameter(apType, axis)
def setAxisParameter(self, apType, axis, value):
if not(0 <= axis < self.MOTORS):
raise ValueError("Axis index out of range")
self.__connection.setAxisParameter(apType, axis, value)
# Global parameter access
def getGlobalParameter(self, gpType, bank):
if not(0 <= bank < self.MOTORS):
raise ValueError("Bank index out of range")
return self.__connection.globalParameter(gpType, bank)
def setGlobalParameter(self, gpType, bank, value):
if not(0 <= bank < self.MOTORS):
raise ValueError("Bank index out of range")
self.__connection.setGlobalParameter(gpType, bank, value)
# Motion Control functions
def rotate(self, motor, velocity):
if not(0 <= motor < self.MOTORS):
raise ValueError("Motor index out of range")
self.__connection.rotate(motor, velocity)
def stop(self, motor):
if not(0 <= motor < self.MOTORS):
raise ValueError("Motor index out of range")
self.__connection.stop(motor)
def moveTo(self, motor, position, velocity=None):
if not(0 <= motor < self.MOTORS):
raise ValueError("Motor index out of range")
if velocity:
self.setMaxVelocity(motor, velocity)
self.__connection.move(0, motor, position)
def moveBy(self, motor, position, velocity=None):
# The TMCL command MVP REL does not correctly work if the previous
# motion was in velocity mode. The position used as offset for the
# relative motion is the last target position, not the actual position.
# Due to that we manually calculate the relative position and use the
# moveTo function.
position += self.getActualPosition(motor)
self.moveTo(motor, position, velocity)
return position
# Current Control functions
def setMotorRunCurrent(self, axis, current):
self.setMaxCurrent(axis, current)
def setMotorStandbyCurrent(self, axis, current):
self.setAxisParameter(self.APs.StandbyCurrent, axis, current)
def getMaxCurrent(self, axis):
return self.getAxisParameter(self.APs.MaxCurrent, axis)
def setMaxCurrent(self, axis, current):
self.setAxisParameter(self.APs.MaxCurrent, axis, current)
# StallGuard2 Functions
def setStallguard2Filter(self, axis, enableFilter):
self.setAxisParameter(self.APs.SG2FilterEnable, axis, enableFilter)
def setStallguard2Threshold(self, axis, threshold):
self.setAxisParameter(self.APs.SG2Threshold, axis, threshold)
def setStopOnStallVelocity(self, axis, velocity):
self.setAxisParameter(self.APs.SmartEnergyStallVelocity, axis, velocity)
# Motion parameter functions
def getTargetPosition(self, axis):
return self.getAxisParameter(self.APs.TargetPosition, axis)
def setTargetPosition(self, axis, position):
self.setAxisParameter(self.APs.TargetPosition, axis, position)
def getActualPosition(self, axis):
return self.getAxisParameter(self.APs.ActualPosition, axis)
def setActualPosition(self, axis, position):
return self.setAxisParameter(self.APs.ActualPosition, axis, position)
def getTargetVelocity(self, axis):
return self.getAxisParameter(self.APs.TargetVelocity, axis)
def setTargetVelocity(self, axis, velocity):
self.setAxisParameter(self.APs.TargetVelocity, axis, velocity)
def getActualVelocity(self, axis):
return self.getAxisParameter(self.APs.ActualVelocity, axis)
def getMaxVelocity(self, axis):
return self.getAxisParameter(self.APs.MaxVelocity, axis)
def setMaxVelocity(self, axis, velocity):
self.setAxisParameter(self.APs.MaxVelocity, axis, velocity)
def getMaxAcceleration(self, axis):
return self.getAxisParameter(self.APs.MaxAcceleration, axis)
def setMaxAcceleration(self, axis, acceleration):
self.setAxisParameter(self.APs.MaxAcceleration, axis, acceleration)
# Status functions
def getStatusFlags(self, axis):
return self.getAxisParameter(self.APs.DriverErrorFlags, axis)
def getErrorFlags(self, axis):
return self.getAxisParameter(self.APs.ExtendedErrorFlags, axis)
def positionReached(self, axis):
return self.getAxisParameter(self.APs.PositionReachedFlag, axis)
# IO pin functions
def analogInput(self, x):
return self.__connection.analogInput(x)
def digitalInput(self, x):
return self.__connection.digitalInput(x)
class _APs():
TargetPosition = 0
ActualPosition = 1
TargetVelocity = 2
ActualVelocity = 3
MaxVelocity = 4
MaxAcceleration = 5
MaxCurrent = 6
StandbyCurrent = 7
PositionReachedFlag = 8
referenceSwitchStatus = 9
RightEndstop = 10
LeftEndstop = 11
rightLimitSwitchDisable = 12
leftLimitSwitchDisable = 13
swapLimitSwitches = 14
A1 = 15
V1 = 16
MaxDeceleration = 17
D1 = 18
StartVelocity = 19
StopVelocity = 20
RampWaitTime = 21
THIGH = 22
min_DcStepSpeed = 23
rightLimitSwitchPolarity = 24
leftLimitSwitchPolarity = 25
softstop = 26
HighSpeedChopperMode = 27
HighSpeedFullstepMode = 28
MeasuredSpeed = 29
PowerDownRamp = 31
dcStepTime = 32
dcStepStallGuard = 33
relativePositioningOption = 127
MicrostepResolution = 140
ChopperBlankTime = 162
ConstantTOffMode = 163
DisableFastDecayComparator = 164
ChopperHysteresisEnd = 165
ChopperHysteresisStart = 166
TOff = 167
SEIMIN = 168
SECDS = 169
smartEnergyHysteresis = 170
SECUS = 171
smartEnergyHysteresisStart = 172
SG2FilterEnable = 173
SG2Threshold = 174
disableShortCircuitProtection = 177
VSense = 179
smartEnergyActualCurrent = 180
smartEnergyStallVelocity = 181
smartEnergyThresholdSpeed = 182
RandomTOffMode = 184
ChopperSynchronization = 185
PWMThresholdSpeed = 186
PWMGrad = 187
PWMAmplitude = 188
PWMScale = 189
PWMMode = 190
PWMFrequency = 191
PWMAutoscale = 192
ReferenceSearchMode = 193
ReferenceSearchSpeed = 194
referenceSwitchSpeed = 195
referenceSwitchDistance = 196
lastReferenceSwitchPosition = 197
latchedActualPosition = 198
latchedEncoderPosition = 199
encoderMode = 201
motorFullStepResolution = 202
FreewheelingMode = 204
LoadValue = 206
extendedErrorFlags = 207
driverErrorFlags = 208
encoderPosition = 209
encoderResolution = 210
max_EncoderDeviation = 212
groupIndex = 213
PowerDownDelay = 214
reverseShaft = 251
CurrentStepping = 0
class _GPs():
timer_0 = 0
timer_1 = 1
timer_2 = 2
stopLeft_0 = 27
stopRight_0 = 28
stopLeft_1 = 29
stopRight_1 = 30
stopLeft_2 = 31
stopRight_2 = 32
stopLeft_3 = 33
stopRight_3 = 34
stopLeft_4 = 35
stopRight_4 = 36
stopLeft_5 = 37
stopRight_5 = 38
input_0 = 39
input_1 = 40
input_2 = 41
input_3 = 42
serialBaudRate = 65
serialAddress = 66
serialHeartbeat = 68
CANBitrate = 69
CANSendId = 70
CANReceiveId = 71
telegrmPauseTime = 75
serialHostAddress = 76
autoStartMode = 77
protectionMode = 81
CANHeartbeat = 82
CANSecondaryAddress = 83
StoreCoordinatesIn_EEPROM = 84
doNotRestoreUserVariables = 85
serialSecondaryAddress = 87
applicationStatus = 128
downloadMode = 129
programCounter = 130
lastTmclError = 131
tickTimer = 132
randomNumber = 133 | """
Created on 21.05.2019
@author: LH
"""
class Tmcm_6212:
def __init__(self, connection):
self.__connection = connection
self.GPs = _GPs
self.APs = _APs
self.MOTORS = 6
def show_chip_info(self):
"""TMCM-6212 is a six axes controller/driver module for 2-phase bipolar stepper motors with seperate encoder (differential) and HOME / STOP switch inputes for each axis. Voltage supply: 12 - 35"""
def get_axis_parameter(self, apType, axis):
if not 0 <= axis < self.MOTORS:
raise value_error('Axis index out of range')
return self.__connection.axisParameter(apType, axis)
def set_axis_parameter(self, apType, axis, value):
if not 0 <= axis < self.MOTORS:
raise value_error('Axis index out of range')
self.__connection.setAxisParameter(apType, axis, value)
def get_global_parameter(self, gpType, bank):
if not 0 <= bank < self.MOTORS:
raise value_error('Bank index out of range')
return self.__connection.globalParameter(gpType, bank)
def set_global_parameter(self, gpType, bank, value):
if not 0 <= bank < self.MOTORS:
raise value_error('Bank index out of range')
self.__connection.setGlobalParameter(gpType, bank, value)
def rotate(self, motor, velocity):
if not 0 <= motor < self.MOTORS:
raise value_error('Motor index out of range')
self.__connection.rotate(motor, velocity)
def stop(self, motor):
if not 0 <= motor < self.MOTORS:
raise value_error('Motor index out of range')
self.__connection.stop(motor)
def move_to(self, motor, position, velocity=None):
if not 0 <= motor < self.MOTORS:
raise value_error('Motor index out of range')
if velocity:
self.setMaxVelocity(motor, velocity)
self.__connection.move(0, motor, position)
def move_by(self, motor, position, velocity=None):
position += self.getActualPosition(motor)
self.moveTo(motor, position, velocity)
return position
def set_motor_run_current(self, axis, current):
self.setMaxCurrent(axis, current)
def set_motor_standby_current(self, axis, current):
self.setAxisParameter(self.APs.StandbyCurrent, axis, current)
def get_max_current(self, axis):
return self.getAxisParameter(self.APs.MaxCurrent, axis)
def set_max_current(self, axis, current):
self.setAxisParameter(self.APs.MaxCurrent, axis, current)
def set_stallguard2_filter(self, axis, enableFilter):
self.setAxisParameter(self.APs.SG2FilterEnable, axis, enableFilter)
def set_stallguard2_threshold(self, axis, threshold):
self.setAxisParameter(self.APs.SG2Threshold, axis, threshold)
def set_stop_on_stall_velocity(self, axis, velocity):
self.setAxisParameter(self.APs.SmartEnergyStallVelocity, axis, velocity)
def get_target_position(self, axis):
return self.getAxisParameter(self.APs.TargetPosition, axis)
def set_target_position(self, axis, position):
self.setAxisParameter(self.APs.TargetPosition, axis, position)
def get_actual_position(self, axis):
return self.getAxisParameter(self.APs.ActualPosition, axis)
def set_actual_position(self, axis, position):
return self.setAxisParameter(self.APs.ActualPosition, axis, position)
def get_target_velocity(self, axis):
return self.getAxisParameter(self.APs.TargetVelocity, axis)
def set_target_velocity(self, axis, velocity):
self.setAxisParameter(self.APs.TargetVelocity, axis, velocity)
def get_actual_velocity(self, axis):
return self.getAxisParameter(self.APs.ActualVelocity, axis)
def get_max_velocity(self, axis):
return self.getAxisParameter(self.APs.MaxVelocity, axis)
def set_max_velocity(self, axis, velocity):
self.setAxisParameter(self.APs.MaxVelocity, axis, velocity)
def get_max_acceleration(self, axis):
return self.getAxisParameter(self.APs.MaxAcceleration, axis)
def set_max_acceleration(self, axis, acceleration):
self.setAxisParameter(self.APs.MaxAcceleration, axis, acceleration)
def get_status_flags(self, axis):
return self.getAxisParameter(self.APs.DriverErrorFlags, axis)
def get_error_flags(self, axis):
return self.getAxisParameter(self.APs.ExtendedErrorFlags, axis)
def position_reached(self, axis):
return self.getAxisParameter(self.APs.PositionReachedFlag, axis)
def analog_input(self, x):
return self.__connection.analogInput(x)
def digital_input(self, x):
return self.__connection.digitalInput(x)
class _Aps:
target_position = 0
actual_position = 1
target_velocity = 2
actual_velocity = 3
max_velocity = 4
max_acceleration = 5
max_current = 6
standby_current = 7
position_reached_flag = 8
reference_switch_status = 9
right_endstop = 10
left_endstop = 11
right_limit_switch_disable = 12
left_limit_switch_disable = 13
swap_limit_switches = 14
a1 = 15
v1 = 16
max_deceleration = 17
d1 = 18
start_velocity = 19
stop_velocity = 20
ramp_wait_time = 21
thigh = 22
min__dc_step_speed = 23
right_limit_switch_polarity = 24
left_limit_switch_polarity = 25
softstop = 26
high_speed_chopper_mode = 27
high_speed_fullstep_mode = 28
measured_speed = 29
power_down_ramp = 31
dc_step_time = 32
dc_step_stall_guard = 33
relative_positioning_option = 127
microstep_resolution = 140
chopper_blank_time = 162
constant_t_off_mode = 163
disable_fast_decay_comparator = 164
chopper_hysteresis_end = 165
chopper_hysteresis_start = 166
t_off = 167
seimin = 168
secds = 169
smart_energy_hysteresis = 170
secus = 171
smart_energy_hysteresis_start = 172
sg2_filter_enable = 173
sg2_threshold = 174
disable_short_circuit_protection = 177
v_sense = 179
smart_energy_actual_current = 180
smart_energy_stall_velocity = 181
smart_energy_threshold_speed = 182
random_t_off_mode = 184
chopper_synchronization = 185
pwm_threshold_speed = 186
pwm_grad = 187
pwm_amplitude = 188
pwm_scale = 189
pwm_mode = 190
pwm_frequency = 191
pwm_autoscale = 192
reference_search_mode = 193
reference_search_speed = 194
reference_switch_speed = 195
reference_switch_distance = 196
last_reference_switch_position = 197
latched_actual_position = 198
latched_encoder_position = 199
encoder_mode = 201
motor_full_step_resolution = 202
freewheeling_mode = 204
load_value = 206
extended_error_flags = 207
driver_error_flags = 208
encoder_position = 209
encoder_resolution = 210
max__encoder_deviation = 212
group_index = 213
power_down_delay = 214
reverse_shaft = 251
current_stepping = 0
class _Gps:
timer_0 = 0
timer_1 = 1
timer_2 = 2
stop_left_0 = 27
stop_right_0 = 28
stop_left_1 = 29
stop_right_1 = 30
stop_left_2 = 31
stop_right_2 = 32
stop_left_3 = 33
stop_right_3 = 34
stop_left_4 = 35
stop_right_4 = 36
stop_left_5 = 37
stop_right_5 = 38
input_0 = 39
input_1 = 40
input_2 = 41
input_3 = 42
serial_baud_rate = 65
serial_address = 66
serial_heartbeat = 68
can_bitrate = 69
can_send_id = 70
can_receive_id = 71
telegrm_pause_time = 75
serial_host_address = 76
auto_start_mode = 77
protection_mode = 81
can_heartbeat = 82
can_secondary_address = 83
store_coordinates_in_eeprom = 84
do_not_restore_user_variables = 85
serial_secondary_address = 87
application_status = 128
download_mode = 129
program_counter = 130
last_tmcl_error = 131
tick_timer = 132
random_number = 133 |
#!/usr/bin/env python
##############################################################################
# Written by: Brian G. Merrell <bgmerrell@novell.com>
# Date: May 23 2008
# Description: A description of the remote test machines
#
#
##############################################################################
# A common test directory on all machines (where test files are copied and
# executed
TEST_DIR = "/home/a11y/tests"
LOG_DIR = "/home/a11y/logs"
USERNAME = "a11y"
# Dictionary of available machines
'''
ENABLE ALL THESE MACHINES ONCE TEST ENVIRONMENTS HAVE BEEN SET UP IN THE LAB
machines_dict = {
"ubuntu32v0" : ("151.155.248.167", "ubuntu32v0.sled.lab.novell.com"),
"ubuntu64v0" : ("151.155.248.168", "ubuntu64v0.sled.lab.novell.com"),
"fedora32v0" : ("151.155.248.169", "fedora32v0.sled.lab.novell.com"),
"fedora64v0" : ("151.155.248.170", "fedora64v0.sled.lab.novell.com"),
"suse32v0" : ("151.155.248.171", "suse32v0.sled.lab.novell.com"),
"suse64v0" : ("151.155.248.172", "suse64v0.sled.lab.novell.com"),
"fakemachine" : ("151.155.224.100", "fakemachine.sled.lab.novell.com"
}
'''
machines_dict = {
#'oS111-32' : ('147.2.207.217', ''),
#'oS111-64' : ('147.2.207.218', ''),
#'oS112-32' : ('147.2.207.219', ''),
#'oS112-64' : ('147.2.207.220', ''),
#'ubuntu910-32' : ('147.2.207.221', ''),
'ubuntu910-64' : ('147.2.207.222', ''),
#'fedora12-32' : ('147.2.207.223', ''),
#'fedora12-64' : ('147.2.207.224', '')
}
| test_dir = '/home/a11y/tests'
log_dir = '/home/a11y/logs'
username = 'a11y'
'\nENABLE ALL THESE MACHINES ONCE TEST ENVIRONMENTS HAVE BEEN SET UP IN THE LAB\nmachines_dict = {\n "ubuntu32v0" : ("151.155.248.167", "ubuntu32v0.sled.lab.novell.com"),\n "ubuntu64v0" : ("151.155.248.168", "ubuntu64v0.sled.lab.novell.com"),\n "fedora32v0" : ("151.155.248.169", "fedora32v0.sled.lab.novell.com"),\n "fedora64v0" : ("151.155.248.170", "fedora64v0.sled.lab.novell.com"),\n "suse32v0" : ("151.155.248.171", "suse32v0.sled.lab.novell.com"),\n "suse64v0" : ("151.155.248.172", "suse64v0.sled.lab.novell.com"),\n "fakemachine" : ("151.155.224.100", "fakemachine.sled.lab.novell.com"\n}\n'
machines_dict = {'ubuntu910-64': ('147.2.207.222', '')} |
BLACK = u'\33[40m'
# Default dark background colors
RED = u'\33[41m'
GREEN = u'\33[42m'
YELLOW = u'\33[43m'
BLUE = u'\33[44m'
MAGENTA = u'\33[45m'
CYAN = u'\33[46m'
WHITE = u'\33[47m'
GREY = u'\33[100m'
# Light background colors
LRED = u'\33[101m'
LGREEN = u'\33[102m'
LYELLOW = u'\33[103m'
LBLUE = u'\33[104m'
LMAGENTA = u'\33[105m'
LCYAN = u'\33[106m'
LWHITE = u'\33[107m'
| black = u'\x1b[40m'
red = u'\x1b[41m'
green = u'\x1b[42m'
yellow = u'\x1b[43m'
blue = u'\x1b[44m'
magenta = u'\x1b[45m'
cyan = u'\x1b[46m'
white = u'\x1b[47m'
grey = u'\x1b[100m'
lred = u'\x1b[101m'
lgreen = u'\x1b[102m'
lyellow = u'\x1b[103m'
lblue = u'\x1b[104m'
lmagenta = u'\x1b[105m'
lcyan = u'\x1b[106m'
lwhite = u'\x1b[107m' |
'''
Given n processes, each process has a unique PID (process id) and its PPID (parent process id).
Each process only has one parent process, but may have one or more children processes. This is just like a tree structure. Only one process has PPID that is 0, which means this process has no parent process. All the PIDs will be distinct positive integers.
We use two list of integers to represent a list of processes, where the first list contains PID for each process and the second list contains the corresponding PPID.
Now given the two lists, and a PID representing a process you want to kill, return a list of PIDs of processes that will be killed in the end. You should assume that when a process is killed, all its children processes will be killed. No order is required for the final answer.
Example 1:
Input:
pid = [1, 3, 10, 5]
ppid = [3, 0, 5, 3]
kill = 5
Output: [5,10]
Explanation:
3
/ \
1 5
/
10
Kill 5 will also kill 10.
Note:
The given kill id is guaranteed to be one of the given PIDs.
n >= 1.
'''
class Solution(object):
def killProcess(self, pid, ppid, kill):
"""
:type pid: List[int]
:type ppid: List[int]
:type kill: int
:rtype: List[int]
"""
children = {}
for i in xrange(len(pid)):
if ppid[i] not in children:
children[ppid[i]] = [pid[i]]
else:
children[ppid[i]].append(pid[i])
res = []
vec = [kill]
while len(vec) > 0:
next_vec = []
for x in vec:
res.append(x)
if x in children:
next_vec.extend(children[x])
vec = next_vec
return res
| """
Given n processes, each process has a unique PID (process id) and its PPID (parent process id).
Each process only has one parent process, but may have one or more children processes. This is just like a tree structure. Only one process has PPID that is 0, which means this process has no parent process. All the PIDs will be distinct positive integers.
We use two list of integers to represent a list of processes, where the first list contains PID for each process and the second list contains the corresponding PPID.
Now given the two lists, and a PID representing a process you want to kill, return a list of PIDs of processes that will be killed in the end. You should assume that when a process is killed, all its children processes will be killed. No order is required for the final answer.
Example 1:
Input:
pid = [1, 3, 10, 5]
ppid = [3, 0, 5, 3]
kill = 5
Output: [5,10]
Explanation:
3
/ 1 5
/
10
Kill 5 will also kill 10.
Note:
The given kill id is guaranteed to be one of the given PIDs.
n >= 1.
"""
class Solution(object):
def kill_process(self, pid, ppid, kill):
"""
:type pid: List[int]
:type ppid: List[int]
:type kill: int
:rtype: List[int]
"""
children = {}
for i in xrange(len(pid)):
if ppid[i] not in children:
children[ppid[i]] = [pid[i]]
else:
children[ppid[i]].append(pid[i])
res = []
vec = [kill]
while len(vec) > 0:
next_vec = []
for x in vec:
res.append(x)
if x in children:
next_vec.extend(children[x])
vec = next_vec
return res |
class Profile:
def __init__(self):
self.id = 0
self.name = ''
self.ranked_pp = 0
self.unranked_pp = 0
self.total_pp = 0
self.rank = 0
class Beatmap:
def __init__(self):
self.id = 0
self.creator = ''
self.approach_rate = 0
self.is_ranked = False
self.circle_size = 0
self.drain = 0
self.beatmap_id = 0
self.artist = ''
self.overall_difficulty = 0
self.total_length = 0
self.title = ''
self.bpm = 0
self.stars = 0
self.max_combo = 0
self.hit_length = 0
self.difficulty_name = ''
class Score:
def __init__(self):
self.id = 0
self.beatmap_hash = ''
self.player_name = ''
self.number_300s = 0
self.number_100s = 0
self.number_50s = 0
self.gekis = 0
self.katus = 0
self.misses = 0
self.score = 0
self.max_combo = 0
self.is_perfect_combo = False
self.no_fail = False
self.easy = False
self.hidden = False
self.hard_rock = False
self.sudden_death = False
self.double_time = False
self.relax = False
self.half_time = False
self.flashlight = False
self.spun_out = False
self.auto_pilot = False
self.perfect = False
self.pp = 0
self.beatmap_id = 0
self.profile_id = 0
self.accuracy = 0
def get_mods_string(self):
mods = []
if self.no_fail:
mods.append("NF")
if self.easy:
mods.append("EZ")
if self.hidden:
mods.append("HD")
if self.hard_rock:
mods.append("HR")
if self.sudden_death:
mods.append("SD")
if self.double_time:
mods.append("DT")
if self.relax:
mods.append("RX")
if self.half_time:
mods.append("HT")
if self.flashlight:
mods.append("FL")
if self.spun_out:
mods.append("SO")
if self.auto_pilot:
mods.append("AP")
if self.perfect:
mods.append("PF")
mods_string = ''.join(mods)
return mods_string
| class Profile:
def __init__(self):
self.id = 0
self.name = ''
self.ranked_pp = 0
self.unranked_pp = 0
self.total_pp = 0
self.rank = 0
class Beatmap:
def __init__(self):
self.id = 0
self.creator = ''
self.approach_rate = 0
self.is_ranked = False
self.circle_size = 0
self.drain = 0
self.beatmap_id = 0
self.artist = ''
self.overall_difficulty = 0
self.total_length = 0
self.title = ''
self.bpm = 0
self.stars = 0
self.max_combo = 0
self.hit_length = 0
self.difficulty_name = ''
class Score:
def __init__(self):
self.id = 0
self.beatmap_hash = ''
self.player_name = ''
self.number_300s = 0
self.number_100s = 0
self.number_50s = 0
self.gekis = 0
self.katus = 0
self.misses = 0
self.score = 0
self.max_combo = 0
self.is_perfect_combo = False
self.no_fail = False
self.easy = False
self.hidden = False
self.hard_rock = False
self.sudden_death = False
self.double_time = False
self.relax = False
self.half_time = False
self.flashlight = False
self.spun_out = False
self.auto_pilot = False
self.perfect = False
self.pp = 0
self.beatmap_id = 0
self.profile_id = 0
self.accuracy = 0
def get_mods_string(self):
mods = []
if self.no_fail:
mods.append('NF')
if self.easy:
mods.append('EZ')
if self.hidden:
mods.append('HD')
if self.hard_rock:
mods.append('HR')
if self.sudden_death:
mods.append('SD')
if self.double_time:
mods.append('DT')
if self.relax:
mods.append('RX')
if self.half_time:
mods.append('HT')
if self.flashlight:
mods.append('FL')
if self.spun_out:
mods.append('SO')
if self.auto_pilot:
mods.append('AP')
if self.perfect:
mods.append('PF')
mods_string = ''.join(mods)
return mods_string |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
pipes = "0 <-> 122, 874, 1940\n1 <-> 1099\n2 <-> 743\n3 <-> 594, 1258\n4 <-> 4, 1473\n5 <-> 109, 628, 1133, 1605\n6 <-> 470, 561, 600, 1272, 1634\n7 <-> 7, 1058, 1074, 1136\n8 <-> 879\n9 <-> 9\n10 <-> 10, 1736\n11 <-> 148, 1826\n12 <-> 774, 1394, 1495\n13 <-> 178, 410\n14 <-> 666, 763, 1696\n15 <-> 793, 1446, 1754, 1993\n16 <-> 1477\n17 <-> 1891, 1970\n18 <-> 476, 1095\n19 <-> 19\n20 <-> 581, 1380, 1817, 1877\n21 <-> 746, 1253\n22 <-> 830, 1021\n23 <-> 1115\n24 <-> 89, 1436\n25 <-> 759, 821\n26 <-> 40, 1254\n27 <-> 553, 1137, 1960\n28 <-> 100, 808\n29 <-> 279, 1223, 1591, 1726\n30 <-> 236, 325, 769, 1132\n31 <-> 425, 1377\n32 <-> 611, 1047\n33 <-> 751, 1797, 1828, 1921\n34 <-> 1563, 1681\n35 <-> 428\n36 <-> 265, 1837\n37 <-> 265, 365, 1455\n38 <-> 1600, 1690\n39 <-> 331\n40 <-> 26, 560, 1512\n41 <-> 911, 1991\n42 <-> 835\n43 <-> 680\n44 <-> 1522\n45 <-> 486, 1794\n46 <-> 170, 334, 944, 1169\n47 <-> 1086\n48 <-> 274, 924\n49 <-> 1664\n50 <-> 721\n51 <-> 1885\n52 <-> 1143, 1205\n53 <-> 148, 696\n54 <-> 1637\n55 <-> 936, 1781\n56 <-> 342, 1212\n57 <-> 911\n58 <-> 692, 1456\n59 <-> 59\n60 <-> 463, 570, 1038, 1711\n61 <-> 824, 1008, 1942\n62 <-> 165, 1926\n63 <-> 1689\n64 <-> 64, 321\n65 <-> 98, 116, 1082\n66 <-> 1426, 1497\n67 <-> 502, 951, 1514\n68 <-> 215, 610, 803\n69 <-> 264, 1660\n70 <-> 417, 648, 1142\n71 <-> 1937\n72 <-> 744, 1158\n73 <-> 466\n74 <-> 74, 673\n75 <-> 640, 1874\n76 <-> 575, 708, 1347, 1488\n77 <-> 435, 1648\n78 <-> 412\n79 <-> 347\n80 <-> 807\n81 <-> 176, 394\n82 <-> 366, 928\n83 <-> 737\n84 <-> 84, 1537\n85 <-> 1325\n86 <-> 546\n87 <-> 678, 941, 1229\n88 <-> 1325\n89 <-> 24, 89\n90 <-> 431, 988, 1453\n91 <-> 825, 957, 1249\n92 <-> 937, 1516\n93 <-> 1840\n94 <-> 916, 1445\n95 <-> 1628, 1998\n96 <-> 123\n97 <-> 355\n98 <-> 65\n99 <-> 425, 771, 1050\n100 <-> 28, 100\n101 <-> 337, 1257\n102 <-> 270, 1754\n103 <-> 103, 229\n104 <-> 157, 916\n105 <-> 1705\n106 <-> 1165\n107 <-> 1646\n108 <-> 1082\n109 <-> 5\n110 <-> 485, 1185\n111 <-> 944, 1249\n112 <-> 112, 1056\n113 <-> 1219\n114 <-> 129, 617\n115 <-> 422\n116 <-> 65\n117 <-> 200, 1802\n118 <-> 243, 1507\n119 <-> 732, 1103\n120 <-> 160\n121 <-> 320, 336\n122 <-> 0, 582, 1931\n123 <-> 96, 885, 1126, 1914\n124 <-> 124, 413\n125 <-> 125\n126 <-> 367, 655\n127 <-> 1290\n128 <-> 1085\n129 <-> 114, 1343, 1805\n130 <-> 130, 1415\n131 <-> 1626, 1734\n132 <-> 296, 573, 1575\n133 <-> 1713\n134 <-> 1243, 1530\n135 <-> 1048\n136 <-> 153, 1209\n137 <-> 137, 331\n138 <-> 555, 1350\n139 <-> 1035, 1345\n140 <-> 393, 688\n141 <-> 1037, 1998\n142 <-> 736\n143 <-> 716, 1362\n144 <-> 1319\n145 <-> 318, 445, 1471, 1608\n146 <-> 146, 294\n147 <-> 714\n148 <-> 11, 53\n149 <-> 364, 854, 1254\n150 <-> 675, 1090\n151 <-> 189, 1411, 1688\n152 <-> 683, 1614\n153 <-> 136, 1328, 1648\n154 <-> 584, 1656\n155 <-> 1972\n156 <-> 1351\n157 <-> 104, 1638\n158 <-> 165\n159 <-> 444, 1812\n160 <-> 120, 859\n161 <-> 984, 1769, 1943\n162 <-> 1098\n163 <-> 618\n164 <-> 697, 922, 1688\n165 <-> 62, 158, 1452, 1977\n166 <-> 166, 1914\n167 <-> 1996\n168 <-> 260, 843, 1057, 1433\n169 <-> 406, 736, 924\n170 <-> 46\n171 <-> 173, 833, 1104, 1149\n172 <-> 1429\n173 <-> 171, 1423\n174 <-> 174, 332\n175 <-> 655, 839\n176 <-> 81, 176, 1264\n177 <-> 177\n178 <-> 13, 1162, 1182, 1951\n179 <-> 842, 1620\n180 <-> 1294, 1442, 1809\n181 <-> 1633, 1783\n182 <-> 182, 456\n183 <-> 685\n184 <-> 760, 1974\n185 <-> 287, 775\n186 <-> 917, 1541\n187 <-> 412, 1119\n188 <-> 395\n189 <-> 151, 1370, 1792\n190 <-> 1255, 1674\n191 <-> 764, 1010\n192 <-> 192, 607, 1717\n193 <-> 1001, 1944\n194 <-> 625\n195 <-> 623\n196 <-> 1882\n197 <-> 1275\n198 <-> 1069\n199 <-> 1138, 1880\n200 <-> 117\n201 <-> 1605\n202 <-> 1041, 1044\n203 <-> 207, 301, 815, 1311\n204 <-> 204, 1711\n205 <-> 1298, 1562, 1602\n206 <-> 228\n207 <-> 203, 1480, 1713\n208 <-> 786, 1844\n209 <-> 1291, 1351, 1747\n210 <-> 1320\n211 <-> 587, 1340\n212 <-> 587, 676\n213 <-> 886\n214 <-> 1549\n215 <-> 68, 1115, 1371, 1701\n216 <-> 1127\n217 <-> 312\n218 <-> 466, 1072, 1709\n219 <-> 527\n220 <-> 793\n221 <-> 1314, 1800\n222 <-> 1941\n223 <-> 1911\n224 <-> 224, 528\n225 <-> 1030, 1084\n226 <-> 569, 1599\n227 <-> 658\n228 <-> 206, 579, 800, 1381\n229 <-> 103, 1975\n230 <-> 1068\n231 <-> 937\n232 <-> 428\n233 <-> 969, 1258\n234 <-> 1824\n235 <-> 1218\n236 <-> 30, 1410, 1470, 1651\n237 <-> 815\n238 <-> 477, 1518, 1869\n239 <-> 985, 1911\n240 <-> 809, 1047\n241 <-> 1379, 1577, 1692, 1757\n242 <-> 1127\n243 <-> 118\n244 <-> 440, 747, 771, 1051\n245 <-> 644, 725, 1332, 1862\n246 <-> 395, 1168\n247 <-> 1118\n248 <-> 1462\n249 <-> 737\n250 <-> 1254\n251 <-> 491, 1129\n252 <-> 623\n253 <-> 1046, 1872\n254 <-> 1473\n255 <-> 1220, 1672\n256 <-> 1290, 1838\n257 <-> 474, 1708, 1945\n258 <-> 728, 1297\n259 <-> 374, 464, 1637\n260 <-> 168, 1699\n261 <-> 677, 1164\n262 <-> 1507\n263 <-> 564\n264 <-> 69, 264, 912\n265 <-> 36, 37\n266 <-> 1362\n267 <-> 267\n268 <-> 275, 1873\n269 <-> 449, 766\n270 <-> 102\n271 <-> 1139, 1156\n272 <-> 369, 584\n273 <-> 311, 969\n274 <-> 48, 667\n275 <-> 268, 672, 1687\n276 <-> 1609\n277 <-> 490, 1252\n278 <-> 1236, 1984\n279 <-> 29\n280 <-> 932, 1860\n281 <-> 372, 638, 1311\n282 <-> 1199, 1308\n283 <-> 1938\n284 <-> 315, 1375, 1799\n285 <-> 1377, 1613\n286 <-> 1661\n287 <-> 185, 1248\n288 <-> 409, 1457\n289 <-> 1025\n290 <-> 606, 1486, 1925\n291 <-> 734, 1407\n292 <-> 330\n293 <-> 360, 1231\n294 <-> 146, 1887\n295 <-> 1237, 1733\n296 <-> 132, 296, 621\n297 <-> 1493, 1730\n298 <-> 1958\n299 <-> 696\n300 <-> 1300\n301 <-> 203\n302 <-> 1188, 1349\n303 <-> 750, 1701\n304 <-> 304, 503\n305 <-> 402, 630, 636, 1479\n306 <-> 1007, 1350, 1502\n307 <-> 1787\n308 <-> 1485\n309 <-> 479, 521\n310 <-> 1415\n311 <-> 273, 1942\n312 <-> 217, 387, 1357\n313 <-> 905, 1606\n314 <-> 1337, 1627\n315 <-> 284, 1509\n316 <-> 1809\n317 <-> 490, 1053, 1904\n318 <-> 145, 1789\n319 <-> 926, 1180\n320 <-> 121, 1454, 1764\n321 <-> 64, 725\n322 <-> 762, 1178\n323 <-> 918, 1064, 1957\n324 <-> 1901\n325 <-> 30\n326 <-> 483, 1827\n327 <-> 1360\n328 <-> 546, 1576\n329 <-> 526, 1667\n330 <-> 292, 823\n331 <-> 39, 137, 979\n332 <-> 174, 703, 914\n333 <-> 333, 1364\n334 <-> 46\n335 <-> 650\n336 <-> 121, 1814\n337 <-> 101\n338 <-> 740, 1239\n339 <-> 1595\n340 <-> 1076, 1544\n341 <-> 341, 623, 1540\n342 <-> 56\n343 <-> 367\n344 <-> 1547, 1878\n345 <-> 528\n346 <-> 346, 626, 1036\n347 <-> 79, 1052\n348 <-> 368, 1950\n349 <-> 631, 1765\n350 <-> 602\n351 <-> 1503, 1541, 1615, 1684\n352 <-> 1341\n353 <-> 824\n354 <-> 703, 1868\n355 <-> 97, 480, 566, 1804\n356 <-> 648, 814\n357 <-> 1656\n358 <-> 504\n359 <-> 763\n360 <-> 293, 1296\n361 <-> 361\n362 <-> 1892\n363 <-> 524\n364 <-> 149, 1268\n365 <-> 37, 1392, 1667\n366 <-> 82, 606\n367 <-> 126, 343, 677\n368 <-> 348, 500, 1101, 1300\n369 <-> 272, 527, 1785, 1833\n370 <-> 370\n371 <-> 1352, 1664\n372 <-> 281\n373 <-> 860, 1026, 1504\n374 <-> 259, 919, 1635\n375 <-> 990, 1489, 1835\n376 <-> 1389\n377 <-> 1063, 1750\n378 <-> 423\n379 <-> 1510\n380 <-> 1983\n381 <-> 517\n382 <-> 1792\n383 <-> 814\n384 <-> 1826\n385 <-> 1769\n386 <-> 1632, 1931\n387 <-> 312, 1206, 1961\n388 <-> 868, 1713\n389 <-> 721, 1781\n390 <-> 604\n391 <-> 493, 1691\n392 <-> 1331\n393 <-> 140\n394 <-> 81, 1836\n395 <-> 188, 246, 1171, 1388\n396 <-> 981, 1475, 1617\n397 <-> 397\n398 <-> 931\n399 <-> 1815\n400 <-> 1245\n401 <-> 1011\n402 <-> 305, 1911\n403 <-> 709\n404 <-> 606, 709, 1067, 1988\n405 <-> 1334, 1854\n406 <-> 169, 1552\n407 <-> 563\n408 <-> 813\n409 <-> 288, 409, 445\n410 <-> 13, 577\n411 <-> 1691\n412 <-> 78, 187, 1089\n413 <-> 124\n414 <-> 803, 1858\n415 <-> 415, 1289\n416 <-> 549, 1519\n417 <-> 70\n418 <-> 1866\n419 <-> 419, 680\n420 <-> 1727\n421 <-> 676, 1365\n422 <-> 115, 467\n423 <-> 378, 1470\n424 <-> 436, 929, 1311\n425 <-> 31, 99\n426 <-> 934\n427 <-> 596, 675, 936, 1580\n428 <-> 35, 232, 1027\n429 <-> 682, 1498\n430 <-> 430\n431 <-> 90\n432 <-> 432, 1607\n433 <-> 1312\n434 <-> 1023, 1118\n435 <-> 77, 435, 1280\n436 <-> 424, 894\n437 <-> 586, 1543\n438 <-> 1118\n439 <-> 439\n440 <-> 244\n441 <-> 441, 605\n442 <-> 1274\n443 <-> 443, 556\n444 <-> 159\n445 <-> 145, 409\n446 <-> 1258\n447 <-> 644, 940\n448 <-> 1271, 1480\n449 <-> 269, 1398\n450 <-> 871, 1094\n451 <-> 589, 1075\n452 <-> 755\n453 <-> 1518\n454 <-> 613, 796\n455 <-> 593\n456 <-> 182, 1321, 1938\n457 <-> 662, 1432\n458 <-> 916, 1812\n459 <-> 459\n460 <-> 1920, 1926\n461 <-> 1243, 1808, 1866\n462 <-> 617, 693\n463 <-> 60, 908\n464 <-> 259, 1178\n465 <-> 600\n466 <-> 73, 218\n467 <-> 422, 531, 750, 1476\n468 <-> 468\n469 <-> 901, 1204\n470 <-> 6\n471 <-> 755, 1257\n472 <-> 514\n473 <-> 873, 928\n474 <-> 257, 784\n475 <-> 1776\n476 <-> 18, 1314\n477 <-> 238\n478 <-> 1825\n479 <-> 309, 1605\n480 <-> 355\n481 <-> 1308\n482 <-> 807\n483 <-> 326, 619, 1098, 1776\n484 <-> 1837\n485 <-> 110, 525, 1601, 1893\n486 <-> 45, 1581\n487 <-> 1791\n488 <-> 758\n489 <-> 978\n490 <-> 277, 317, 792\n491 <-> 251, 1582\n492 <-> 945, 1028\n493 <-> 391, 1786\n494 <-> 1661\n495 <-> 534, 1255\n496 <-> 690, 1480\n497 <-> 631, 1195\n498 <-> 892, 903\n499 <-> 1522, 1941\n500 <-> 368, 1449, 1624\n501 <-> 706, 915, 1115\n502 <-> 67\n503 <-> 304\n504 <-> 358, 1431, 1609, 1685\n505 <-> 515\n506 <-> 1347\n507 <-> 624, 831\n508 <-> 907\n509 <-> 1127, 1970\n510 <-> 821, 1599\n511 <-> 763, 846\n512 <-> 1779\n513 <-> 537, 1033\n514 <-> 472, 1068, 1888\n515 <-> 505, 515\n516 <-> 1363, 1644\n517 <-> 381, 680\n518 <-> 853\n519 <-> 1703\n520 <-> 1851\n521 <-> 309\n522 <-> 1831\n523 <-> 1561\n524 <-> 363, 1282, 1852\n525 <-> 485, 1383\n526 <-> 329, 876, 1399\n527 <-> 219, 369, 1086\n528 <-> 224, 345, 1243\n529 <-> 719, 845, 980, 1778\n530 <-> 530, 535\n531 <-> 467\n532 <-> 603, 1522\n533 <-> 533\n534 <-> 495, 1020\n535 <-> 530, 639\n536 <-> 789\n537 <-> 513, 932, 1102\n538 <-> 653, 784, 807\n539 <-> 1186\n540 <-> 1224\n541 <-> 1068, 1320\n542 <-> 1332\n543 <-> 543, 1177\n544 <-> 1404, 1567\n545 <-> 842\n546 <-> 86, 328, 1785\n547 <-> 892, 1973\n548 <-> 1686\n549 <-> 416, 595, 1735\n550 <-> 1928\n551 <-> 850\n552 <-> 552\n553 <-> 27\n554 <-> 554\n555 <-> 138\n556 <-> 443, 1389\n557 <-> 748, 1656\n558 <-> 758\n559 <-> 596, 1812\n560 <-> 40\n561 <-> 6\n562 <-> 562, 627, 1715\n563 <-> 407, 776, 999\n564 <-> 263, 633, 962, 1130, 1653\n565 <-> 998\n566 <-> 355\n567 <-> 676, 1358\n568 <-> 871, 1313, 1853\n569 <-> 226\n570 <-> 60, 1423\n571 <-> 571, 880\n572 <-> 778, 896, 1251\n573 <-> 132, 685\n574 <-> 1212\n575 <-> 76, 1320, 1593\n576 <-> 1237, 1760\n577 <-> 410\n578 <-> 1150, 1511, 1668\n579 <-> 228, 1219, 1244\n580 <-> 701\n581 <-> 20\n582 <-> 122, 1525\n583 <-> 628, 1802\n584 <-> 154, 272\n585 <-> 698, 743, 1466, 1521\n586 <-> 437, 1394\n587 <-> 211, 212, 1856\n588 <-> 1989\n589 <-> 451\n590 <-> 644, 1192\n591 <-> 591\n592 <-> 984, 1880\n593 <-> 455, 789\n594 <-> 3, 1526, 1844, 1902\n595 <-> 549, 715, 1981\n596 <-> 427, 559, 1316\n597 <-> 1043, 1225\n598 <-> 932\n599 <-> 1064, 1065\n600 <-> 6, 465\n601 <-> 756, 946, 1050, 1570\n602 <-> 350, 1809\n603 <-> 532, 1010, 1060\n604 <-> 390, 729\n605 <-> 441\n606 <-> 290, 366, 404\n607 <-> 192\n608 <-> 1826\n609 <-> 953\n610 <-> 68\n611 <-> 32, 868\n612 <-> 1213\n613 <-> 454, 720\n614 <-> 1872\n615 <-> 615, 829, 1762\n616 <-> 990, 1784\n617 <-> 114, 462\n618 <-> 163, 1508\n619 <-> 483\n620 <-> 686, 1446\n621 <-> 296\n622 <-> 622\n623 <-> 195, 252, 341, 780, 1078\n624 <-> 507\n625 <-> 194, 1329\n626 <-> 346\n627 <-> 562\n628 <-> 5, 583, 1876\n629 <-> 1027, 1342, 1827\n630 <-> 305, 1829\n631 <-> 349, 497, 1248, 1728\n632 <-> 1552\n633 <-> 564\n634 <-> 875, 1513\n635 <-> 1150, 1410\n636 <-> 305\n637 <-> 637\n638 <-> 281, 1877\n639 <-> 535\n640 <-> 75, 649, 804\n641 <-> 967, 1739\n642 <-> 1114, 1739\n643 <-> 897, 981\n644 <-> 245, 447, 590, 960\n645 <-> 788, 1064, 1342\n646 <-> 1217\n647 <-> 675, 910, 1021\n648 <-> 70, 356, 1893\n649 <-> 640\n650 <-> 335, 1903\n651 <-> 651\n652 <-> 758, 1836\n653 <-> 538, 1515\n654 <-> 902, 1322\n655 <-> 126, 175\n656 <-> 945, 1247\n657 <-> 1957\n658 <-> 227, 1231\n659 <-> 737\n660 <-> 915\n661 <-> 692, 1299\n662 <-> 457, 962, 1081\n663 <-> 1410, 1852\n664 <-> 664, 1969\n665 <-> 872\n666 <-> 14\n667 <-> 274, 1871\n668 <-> 994\n669 <-> 1419, 1657\n670 <-> 1275\n671 <-> 671, 826\n672 <-> 275, 928, 1330, 1619\n673 <-> 74, 737, 1208\n674 <-> 1863\n675 <-> 150, 427, 647\n676 <-> 212, 421, 567\n677 <-> 261, 367, 677, 1023, 1306, 1405, 1725\n678 <-> 87\n679 <-> 1905\n680 <-> 43, 419, 517, 1232, 1382, 1395, 1875\n681 <-> 1845\n682 <-> 429, 1368, 1625, 1990\n683 <-> 152, 924, 1234\n684 <-> 1247, 1628\n685 <-> 183, 573\n686 <-> 620, 1184, 1867\n687 <-> 1080, 1636\n688 <-> 140, 1205, 1363\n689 <-> 1418, 1494\n690 <-> 496\n691 <-> 1013, 1178\n692 <-> 58, 661, 1324, 1366\n693 <-> 462, 693, 852\n694 <-> 694\n695 <-> 717\n696 <-> 53, 299, 1979\n697 <-> 164\n698 <-> 585\n699 <-> 1532\n700 <-> 855\n701 <-> 580, 744\n702 <-> 1198, 1240\n703 <-> 332, 354\n704 <-> 1361\n705 <-> 1101\n706 <-> 501\n707 <-> 707\n708 <-> 76, 795, 1235, 1302\n709 <-> 403, 404\n710 <-> 806, 1358\n711 <-> 711\n712 <-> 924, 1569, 1990\n713 <-> 1870\n714 <-> 147, 1507\n715 <-> 595\n716 <-> 143, 1039\n717 <-> 695, 1979\n718 <-> 1476\n719 <-> 529, 1061\n720 <-> 613\n721 <-> 50, 389, 1765\n722 <-> 1058\n723 <-> 723, 773, 1214\n724 <-> 724\n725 <-> 245, 321\n726 <-> 938, 1010, 1366, 1670\n727 <-> 1706\n728 <-> 258, 1264\n729 <-> 604, 729, 1396\n730 <-> 1184\n731 <-> 1524\n732 <-> 119, 1962\n733 <-> 1665, 1761\n734 <-> 291\n735 <-> 1022\n736 <-> 142, 169, 1855\n737 <-> 83, 249, 659, 673\n738 <-> 933\n739 <-> 1461, 1637\n740 <-> 338, 1065\n741 <-> 857, 943, 1100\n742 <-> 742, 1400\n743 <-> 2, 585, 743\n744 <-> 72, 701, 1417, 1588\n745 <-> 745\n746 <-> 21, 1433, 1714\n747 <-> 244\n748 <-> 557\n749 <-> 1225\n750 <-> 303, 467\n751 <-> 33\n752 <-> 851\n753 <-> 1398\n754 <-> 1293\n755 <-> 452, 471, 1868\n756 <-> 601\n757 <-> 1350, 1414\n758 <-> 488, 558, 652\n759 <-> 25, 1615\n760 <-> 184, 1274\n761 <-> 761\n762 <-> 322, 819\n763 <-> 14, 359, 511, 1542\n764 <-> 191\n765 <-> 1168\n766 <-> 269, 1167\n767 <-> 1109\n768 <-> 1784\n769 <-> 30, 769\n770 <-> 1328\n771 <-> 99, 244, 1310\n772 <-> 1378\n773 <-> 723, 882\n774 <-> 12\n775 <-> 185\n776 <-> 563\n777 <-> 817, 1559\n778 <-> 572, 1198\n779 <-> 1134\n780 <-> 623, 1645\n781 <-> 781\n782 <-> 990, 1387, 1755\n783 <-> 1015, 1391\n784 <-> 474, 538, 1531, 1804\n785 <-> 1802\n786 <-> 208, 1357\n787 <-> 787, 1233\n788 <-> 645\n789 <-> 536, 593, 1691\n790 <-> 870, 1901\n791 <-> 1888\n792 <-> 490, 1469, 1999\n793 <-> 15, 220, 1284, 1684, 1814\n794 <-> 1648\n795 <-> 708\n796 <-> 454, 1286\n797 <-> 797, 1014, 1028\n798 <-> 1079, 1531\n799 <-> 1159, 1351, 1526\n800 <-> 228, 1176, 1819\n801 <-> 1018\n802 <-> 1735\n803 <-> 68, 414, 1374, 1623\n804 <-> 640, 867, 1955\n805 <-> 805, 1843\n806 <-> 710\n807 <-> 80, 482, 538\n808 <-> 28\n809 <-> 240, 1246, 1582\n810 <-> 810, 1005\n811 <-> 811\n812 <-> 812, 1359\n813 <-> 408, 813\n814 <-> 356, 383\n815 <-> 203, 237, 848, 1720\n816 <-> 816\n817 <-> 777\n818 <-> 1169, 1828\n819 <-> 762\n820 <-> 820, 1557\n821 <-> 25, 510, 1288\n822 <-> 1073, 1883\n823 <-> 330, 925, 1323, 1883\n824 <-> 61, 353, 1820\n825 <-> 91, 1652\n826 <-> 671\n827 <-> 1183\n828 <-> 843\n829 <-> 615, 1661\n830 <-> 22\n831 <-> 507, 1054, 1439\n832 <-> 855\n833 <-> 171, 994, 1020\n834 <-> 1706\n835 <-> 42, 1951\n836 <-> 836\n837 <-> 1590\n838 <-> 1001\n839 <-> 175, 1329\n840 <-> 1274\n841 <-> 1933\n842 <-> 179, 545, 1771\n843 <-> 168, 828, 1032\n844 <-> 847, 1790\n845 <-> 529\n846 <-> 511\n847 <-> 844, 1077, 1172\n848 <-> 815, 1338, 1397, 1452\n849 <-> 1485, 1642\n850 <-> 551, 1630\n851 <-> 752, 1691, 1850\n852 <-> 693\n853 <-> 518, 1208, 1638, 1678\n854 <-> 149\n855 <-> 700, 832, 1450\n856 <-> 856\n857 <-> 741\n858 <-> 1891\n859 <-> 160, 1295, 1483\n860 <-> 373, 1214\n861 <-> 1134, 1564, 1961\n862 <-> 862, 1794\n863 <-> 942, 1671\n864 <-> 864\n865 <-> 1463, 1685\n866 <-> 1411\n867 <-> 804, 1492\n868 <-> 388, 611\n869 <-> 1417\n870 <-> 790, 872, 1910\n871 <-> 450, 568\n872 <-> 665, 870\n873 <-> 473\n874 <-> 0, 1000, 1147, 1534\n875 <-> 634, 1373, 1563\n876 <-> 526, 1517\n877 <-> 1911\n878 <-> 878\n879 <-> 8, 1887\n880 <-> 571, 927\n881 <-> 1945\n882 <-> 773\n883 <-> 909, 1141\n884 <-> 1865\n885 <-> 123, 1506\n886 <-> 213, 1511\n887 <-> 1413\n888 <-> 1640\n889 <-> 1629\n890 <-> 890, 964, 1894\n891 <-> 1242\n892 <-> 498, 547, 1082\n893 <-> 1035, 1555\n894 <-> 436, 1108\n895 <-> 1506, 1991\n896 <-> 572, 1339\n897 <-> 643, 1758\n898 <-> 967, 1481\n899 <-> 1094, 1791, 1976\n900 <-> 900, 1003\n901 <-> 469, 1420, 1751\n902 <-> 654, 1503\n903 <-> 498, 903, 1230\n904 <-> 1226\n905 <-> 313, 1208, 1749\n906 <-> 1276, 1541\n907 <-> 508, 1479\n908 <-> 463\n909 <-> 883, 909\n910 <-> 647\n911 <-> 41, 57, 1578\n912 <-> 264\n913 <-> 913, 1236\n914 <-> 332, 1800\n915 <-> 501, 660, 1386, 1429\n916 <-> 94, 104, 458, 1075, 1899\n917 <-> 186\n918 <-> 323\n919 <-> 374\n920 <-> 920\n921 <-> 1460\n922 <-> 164, 922\n923 <-> 1041\n924 <-> 48, 169, 683, 712, 1107, 1700\n925 <-> 823\n926 <-> 319, 1381\n927 <-> 880\n928 <-> 82, 473, 672, 1201\n929 <-> 424\n930 <-> 930, 1569\n931 <-> 398, 992\n932 <-> 280, 537, 598, 1292\n933 <-> 738, 1368\n934 <-> 426, 1161\n935 <-> 1086\n936 <-> 55, 427\n937 <-> 92, 231\n938 <-> 726, 1304\n939 <-> 958\n940 <-> 447, 1222\n941 <-> 87\n942 <-> 863\n943 <-> 741, 1421, 1832\n944 <-> 46, 111\n945 <-> 492, 656, 1353\n946 <-> 601\n947 <-> 1631\n948 <-> 948\n949 <-> 1434\n950 <-> 1594\n951 <-> 67, 1016, 1478\n952 <-> 1641\n953 <-> 609, 1176, 1513, 1714, 1958\n954 <-> 954\n955 <-> 955\n956 <-> 982, 1217\n957 <-> 91, 1106\n958 <-> 939, 1199, 1303, 1944\n959 <-> 1875\n960 <-> 644\n961 <-> 1619\n962 <-> 564, 662, 1884\n963 <-> 1015, 1851\n964 <-> 890\n965 <-> 1002\n966 <-> 1793\n967 <-> 641, 898\n968 <-> 968\n969 <-> 233, 273, 1212, 1978\n970 <-> 1499, 1513\n971 <-> 1106\n972 <-> 1738\n973 <-> 973\n974 <-> 1646, 1967\n975 <-> 1066\n976 <-> 1287, 1640\n977 <-> 1954\n978 <-> 489, 1697\n979 <-> 331\n980 <-> 529\n981 <-> 396, 643, 1376, 1925\n982 <-> 956\n983 <-> 1325, 1831\n984 <-> 161, 592, 1579\n985 <-> 239\n986 <-> 1104, 1830\n987 <-> 1419\n988 <-> 90, 1718, 1737\n989 <-> 1278, 1635\n990 <-> 375, 616, 782, 1973\n991 <-> 1852\n992 <-> 931, 1722, 1724\n993 <-> 1099\n994 <-> 668, 833\n995 <-> 1140, 1803\n996 <-> 996, 1673\n997 <-> 997\n998 <-> 565, 998\n999 <-> 563, 999\n1000 <-> 874, 1160\n1001 <-> 193, 838, 1011, 1710\n1002 <-> 965, 1571\n1003 <-> 900\n1004 <-> 1004\n1005 <-> 810, 1775\n1006 <-> 1006\n1007 <-> 306, 1447\n1008 <-> 61\n1009 <-> 1022, 1320\n1010 <-> 191, 603, 726, 1344\n1011 <-> 401, 1001\n1012 <-> 1112, 1194\n1013 <-> 691, 1031\n1014 <-> 797\n1015 <-> 783, 963\n1016 <-> 951, 1989\n1017 <-> 1213, 1818, 1824\n1018 <-> 801, 1062\n1019 <-> 1327\n1020 <-> 534, 833\n1021 <-> 22, 647, 1210\n1022 <-> 735, 1009, 1413\n1023 <-> 434, 677\n1024 <-> 1071\n1025 <-> 289, 1416, 1704\n1026 <-> 373\n1027 <-> 428, 629\n1028 <-> 492, 797, 1113\n1029 <-> 1038, 1268\n1030 <-> 225, 1430\n1031 <-> 1013\n1032 <-> 843\n1033 <-> 513\n1034 <-> 1179\n1035 <-> 139, 893, 1151\n1036 <-> 346, 1598\n1037 <-> 141, 1649\n1038 <-> 60, 1029\n1039 <-> 716, 1039\n1040 <-> 1040, 1042\n1041 <-> 202, 923, 1041\n1042 <-> 1040, 1918\n1043 <-> 597\n1044 <-> 202\n1045 <-> 1045\n1046 <-> 253, 1394, 1770\n1047 <-> 32, 240, 1748\n1048 <-> 135, 1348\n1049 <-> 1071\n1050 <-> 99, 601, 1953\n1051 <-> 244, 1345\n1052 <-> 347, 1686\n1053 <-> 317\n1054 <-> 831, 1872\n1055 <-> 1062, 1123, 1574, 1680\n1056 <-> 112\n1057 <-> 168\n1058 <-> 7, 722\n1059 <-> 1059\n1060 <-> 603, 1277, 1669\n1061 <-> 719\n1062 <-> 1018, 1055\n1063 <-> 377\n1064 <-> 323, 599, 645, 1229, 1796\n1065 <-> 599, 740, 1394\n1066 <-> 975, 1867\n1067 <-> 404, 1252, 1922\n1068 <-> 230, 514, 541\n1069 <-> 198, 1102\n1070 <-> 1147\n1071 <-> 1024, 1049, 1088, 1188\n1072 <-> 218, 1434, 1447\n1073 <-> 822, 1546\n1074 <-> 7\n1075 <-> 451, 916, 1610\n1076 <-> 340\n1077 <-> 847\n1078 <-> 623, 1960\n1079 <-> 798\n1080 <-> 687\n1081 <-> 662, 1238\n1082 <-> 65, 108, 892\n1083 <-> 1396\n1084 <-> 225\n1085 <-> 128, 1513, 1528\n1086 <-> 47, 527, 935\n1087 <-> 1616, 1823, 1826\n1088 <-> 1071\n1089 <-> 412\n1090 <-> 150, 1652, 1865\n1091 <-> 1091\n1092 <-> 1742\n1093 <-> 1408\n1094 <-> 450, 899, 1719, 1783\n1095 <-> 18\n1096 <-> 1145\n1097 <-> 1571, 1971\n1098 <-> 162, 483, 1268\n1099 <-> 1, 993, 1099, 1584\n1100 <-> 741, 1100\n1101 <-> 368, 705\n1102 <-> 537, 1069\n1103 <-> 119, 1586, 1939\n1104 <-> 171, 986\n1105 <-> 1211, 1443, 1913\n1106 <-> 957, 971, 1568\n1107 <-> 924, 1336, 1487, 1831\n1108 <-> 894\n1109 <-> 767, 1159, 1525\n1110 <-> 1612, 1976\n1111 <-> 1980\n1112 <-> 1012, 1588\n1113 <-> 1028\n1114 <-> 642, 1197\n1115 <-> 23, 215, 501\n1116 <-> 1992\n1117 <-> 1117\n1118 <-> 247, 434, 438\n1119 <-> 187, 1215, 1843\n1120 <-> 1267, 1270\n1121 <-> 1591, 1820\n1122 <-> 1531, 1747\n1123 <-> 1055\n1124 <-> 1654\n1125 <-> 1497\n1126 <-> 123, 1425, 1729\n1127 <-> 216, 242, 509\n1128 <-> 1580\n1129 <-> 251, 1302\n1130 <-> 564\n1131 <-> 1335, 1595\n1132 <-> 30\n1133 <-> 5, 1655\n1134 <-> 779, 861\n1135 <-> 1135\n1136 <-> 7\n1137 <-> 27\n1138 <-> 199\n1139 <-> 271, 1474\n1140 <-> 995, 1430, 1474\n1141 <-> 883\n1142 <-> 70, 1886\n1143 <-> 52, 1143\n1144 <-> 1554\n1145 <-> 1096, 1145\n1146 <-> 1776, 1917\n1147 <-> 874, 1070, 1240\n1148 <-> 1444, 1451, 1961\n1149 <-> 171\n1150 <-> 578, 635, 1583\n1151 <-> 1035, 1348\n1152 <-> 1661\n1153 <-> 1552\n1154 <-> 1154, 1947\n1155 <-> 1155, 1618\n1156 <-> 271, 1677\n1157 <-> 1491, 1592, 1884\n1158 <-> 72, 1220\n1159 <-> 799, 1109\n1160 <-> 1000\n1161 <-> 934, 1951\n1162 <-> 178, 1242, 1905\n1163 <-> 1474\n1164 <-> 261\n1165 <-> 106, 1165, 1676\n1166 <-> 1166\n1167 <-> 766, 1450, 1912, 1927\n1168 <-> 246, 765\n1169 <-> 46, 818\n1170 <-> 1689\n1171 <-> 395\n1172 <-> 847, 1250, 1689\n1173 <-> 1173\n1174 <-> 1893\n1175 <-> 1294\n1176 <-> 800, 953\n1177 <-> 543, 1315\n1178 <-> 322, 464, 691\n1179 <-> 1034, 1238\n1180 <-> 319\n1181 <-> 1996\n1182 <-> 178, 1881\n1183 <-> 827, 1552\n1184 <-> 686, 730\n1185 <-> 110, 1281\n1186 <-> 539, 1217, 1809\n1187 <-> 1242, 1257\n1188 <-> 302, 1071, 1949, 1980\n1189 <-> 1319\n1190 <-> 1947\n1191 <-> 1191\n1192 <-> 590\n1193 <-> 1204, 1260\n1194 <-> 1012\n1195 <-> 497\n1196 <-> 1196, 1516\n1197 <-> 1114\n1198 <-> 702, 778\n1199 <-> 282, 958\n1200 <-> 1664\n1201 <-> 928\n1202 <-> 1202, 1355\n1203 <-> 1203, 1966\n1204 <-> 469, 1193\n1205 <-> 52, 688\n1206 <-> 387\n1207 <-> 1993\n1208 <-> 673, 853, 905\n1209 <-> 136, 1462\n1210 <-> 1021\n1211 <-> 1105, 1211\n1212 <-> 56, 574, 969, 1705\n1213 <-> 612, 1017, 1663\n1214 <-> 723, 860\n1215 <-> 1119, 1615\n1216 <-> 1524, 1798\n1217 <-> 646, 956, 1186\n1218 <-> 235, 1580\n1219 <-> 113, 579, 1841\n1220 <-> 255, 1158, 1681\n1221 <-> 1331, 1360\n1222 <-> 940\n1223 <-> 29, 1237\n1224 <-> 540, 1523\n1225 <-> 597, 749, 1225\n1226 <-> 904, 1226\n1227 <-> 1934\n1228 <-> 1228\n1229 <-> 87, 1064\n1230 <-> 903\n1231 <-> 293, 658, 1402\n1232 <-> 680, 1417\n1233 <-> 787\n1234 <-> 683\n1235 <-> 708\n1236 <-> 278, 913\n1237 <-> 295, 576, 1223\n1238 <-> 1081, 1179, 1326, 1806\n1239 <-> 338\n1240 <-> 702, 1147\n1241 <-> 1921\n1242 <-> 891, 1162, 1187, 1965\n1243 <-> 134, 461, 528\n1244 <-> 579\n1245 <-> 400, 1245, 1864\n1246 <-> 809, 1772\n1247 <-> 656, 684\n1248 <-> 287, 631\n1249 <-> 91, 111, 1782\n1250 <-> 1172\n1251 <-> 572, 1508\n1252 <-> 277, 1067, 1505\n1253 <-> 21, 1639\n1254 <-> 26, 149, 250\n1255 <-> 190, 495\n1256 <-> 1256, 1286\n1257 <-> 101, 471, 1187\n1258 <-> 3, 233, 446, 1309\n1259 <-> 1398\n1260 <-> 1193, 1517\n1261 <-> 1300, 1807\n1262 <-> 1508\n1263 <-> 1973\n1264 <-> 176, 728, 1307\n1265 <-> 1265\n1266 <-> 1507, 1720\n1267 <-> 1120\n1268 <-> 364, 1029, 1098\n1269 <-> 1875\n1270 <-> 1120, 1915\n1271 <-> 448\n1272 <-> 6\n1273 <-> 1273\n1274 <-> 442, 760, 840\n1275 <-> 197, 670, 1450\n1276 <-> 906\n1277 <-> 1060\n1278 <-> 989, 1878, 1986\n1279 <-> 1279, 1848\n1280 <-> 435, 1915\n1281 <-> 1185\n1282 <-> 524\n1283 <-> 1678\n1284 <-> 793, 1706\n1285 <-> 1642\n1286 <-> 796, 1256, 1630\n1287 <-> 976, 1287\n1288 <-> 821\n1289 <-> 415\n1290 <-> 127, 256\n1291 <-> 209\n1292 <-> 932\n1293 <-> 754, 1293\n1294 <-> 180, 1175, 1882\n1295 <-> 859\n1296 <-> 360, 1910\n1297 <-> 258, 1426\n1298 <-> 205\n1299 <-> 661, 1954\n1300 <-> 300, 368, 1261\n1301 <-> 1834, 1847\n1302 <-> 708, 1129\n1303 <-> 958\n1304 <-> 938\n1305 <-> 1305\n1306 <-> 677\n1307 <-> 1264\n1308 <-> 282, 481\n1309 <-> 1258\n1310 <-> 771, 1392\n1311 <-> 203, 281, 424\n1312 <-> 433, 1312, 1671\n1313 <-> 568, 1409, 1861\n1314 <-> 221, 476, 1549\n1315 <-> 1177\n1316 <-> 596\n1317 <-> 1832\n1318 <-> 1468\n1319 <-> 144, 1189, 1319, 1542, 1923\n1320 <-> 210, 541, 575, 1009\n1321 <-> 456\n1322 <-> 654\n1323 <-> 823, 1385\n1324 <-> 692\n1325 <-> 85, 88, 983\n1326 <-> 1238\n1327 <-> 1019, 1387\n1328 <-> 153, 770\n1329 <-> 625, 839\n1330 <-> 672\n1331 <-> 392, 1221\n1332 <-> 245, 542\n1333 <-> 1333\n1334 <-> 405, 1987\n1335 <-> 1131, 1744\n1336 <-> 1107\n1337 <-> 314, 1379\n1338 <-> 848\n1339 <-> 896, 1523\n1340 <-> 211, 1460\n1341 <-> 352, 1459, 1849, 1878\n1342 <-> 629, 645, 1752\n1343 <-> 129\n1344 <-> 1010\n1345 <-> 139, 1051\n1346 <-> 1845\n1347 <-> 76, 506\n1348 <-> 1048, 1151\n1349 <-> 302\n1350 <-> 138, 306, 757\n1351 <-> 156, 209, 799, 1916\n1352 <-> 371, 1352\n1353 <-> 945, 1811\n1354 <-> 1871\n1355 <-> 1202, 1533\n1356 <-> 1548, 1566, 1840\n1357 <-> 312, 786\n1358 <-> 567, 710\n1359 <-> 812\n1360 <-> 327, 1221, 1659\n1361 <-> 704, 1901\n1362 <-> 143, 266, 1551\n1363 <-> 516, 688\n1364 <-> 333\n1365 <-> 421\n1366 <-> 692, 726, 1972\n1367 <-> 1367, 1946\n1368 <-> 682, 933, 1465, 1478\n1369 <-> 1369\n1370 <-> 189\n1371 <-> 215, 1572, 1870\n1372 <-> 1372\n1373 <-> 875\n1374 <-> 803\n1375 <-> 284\n1376 <-> 981, 1545\n1377 <-> 31, 285\n1378 <-> 772, 1378\n1379 <-> 241, 1337, 1587\n1380 <-> 20, 1856\n1381 <-> 228, 926\n1382 <-> 680\n1383 <-> 525\n1384 <-> 1792\n1385 <-> 1323, 1521\n1386 <-> 915\n1387 <-> 782, 1327\n1388 <-> 395, 1416, 1525\n1389 <-> 376, 556\n1390 <-> 1390, 1406\n1391 <-> 783, 1550, 1595\n1392 <-> 365, 1310, 1793\n1393 <-> 1505, 1667\n1394 <-> 12, 586, 1046, 1065\n1395 <-> 680\n1396 <-> 729, 1083\n1397 <-> 848, 1944\n1398 <-> 449, 753, 1259\n1399 <-> 526\n1400 <-> 742\n1401 <-> 1401\n1402 <-> 1231\n1403 <-> 1967\n1404 <-> 544\n1405 <-> 677\n1406 <-> 1390\n1407 <-> 291, 1407\n1408 <-> 1093, 1947\n1409 <-> 1313\n1410 <-> 236, 635, 663\n1411 <-> 151, 866\n1412 <-> 1663\n1413 <-> 887, 1022\n1414 <-> 757, 1666\n1415 <-> 130, 310\n1416 <-> 1025, 1388\n1417 <-> 744, 869, 1232, 1641\n1418 <-> 689\n1419 <-> 669, 987, 1419, 1431\n1420 <-> 901\n1421 <-> 943\n1422 <-> 1422\n1423 <-> 173, 570\n1424 <-> 1424\n1425 <-> 1126\n1426 <-> 66, 1297\n1427 <-> 1466\n1428 <-> 1523, 1626\n1429 <-> 172, 915\n1430 <-> 1030, 1140\n1431 <-> 504, 1419\n1432 <-> 457\n1433 <-> 168, 746\n1434 <-> 949, 1072, 1474\n1435 <-> 1688\n1436 <-> 24, 1624\n1437 <-> 1903\n1438 <-> 1438, 1447\n1439 <-> 831\n1440 <-> 1788\n1441 <-> 1441\n1442 <-> 180\n1443 <-> 1105\n1444 <-> 1148\n1445 <-> 94, 1693\n1446 <-> 15, 620\n1447 <-> 1007, 1072, 1438\n1448 <-> 1617\n1449 <-> 500\n1450 <-> 855, 1167, 1275\n1451 <-> 1148, 1556\n1452 <-> 165, 848\n1453 <-> 90, 1726\n1454 <-> 320, 1869\n1455 <-> 37\n1456 <-> 58\n1457 <-> 288\n1458 <-> 1637\n1459 <-> 1341\n1460 <-> 921, 1340\n1461 <-> 739, 1621\n1462 <-> 248, 1209\n1463 <-> 865\n1464 <-> 1747\n1465 <-> 1368\n1466 <-> 585, 1427, 1655\n1467 <-> 1467\n1468 <-> 1318, 1468\n1469 <-> 792\n1470 <-> 236, 423\n1471 <-> 145\n1472 <-> 1485, 1857\n1473 <-> 4, 254\n1474 <-> 1139, 1140, 1163, 1434\n1475 <-> 396, 1923\n1476 <-> 467, 718\n1477 <-> 16, 1478\n1478 <-> 951, 1368, 1477\n1479 <-> 305, 907, 1675\n1480 <-> 207, 448, 496\n1481 <-> 898, 1890\n1482 <-> 1595\n1483 <-> 859, 1502\n1484 <-> 1545\n1485 <-> 308, 849, 1472\n1486 <-> 290\n1487 <-> 1107\n1488 <-> 76\n1489 <-> 375\n1490 <-> 1490\n1491 <-> 1157, 1510\n1492 <-> 867, 1492\n1493 <-> 297, 1724\n1494 <-> 689, 1494\n1495 <-> 12\n1496 <-> 1636\n1497 <-> 66, 1125\n1498 <-> 429\n1499 <-> 970\n1500 <-> 1664\n1501 <-> 1954\n1502 <-> 306, 1483\n1503 <-> 351, 902\n1504 <-> 373, 1980\n1505 <-> 1252, 1393\n1506 <-> 885, 895\n1507 <-> 118, 262, 714, 1266\n1508 <-> 618, 1251, 1262, 1611\n1509 <-> 315\n1510 <-> 379, 1491\n1511 <-> 578, 886\n1512 <-> 40\n1513 <-> 634, 953, 970, 1085\n1514 <-> 67\n1515 <-> 653\n1516 <-> 92, 1196, 1647\n1517 <-> 876, 1260\n1518 <-> 238, 453\n1519 <-> 416, 1936\n1520 <-> 1609\n1521 <-> 585, 1385\n1522 <-> 44, 499, 532\n1523 <-> 1224, 1339, 1428, 1589\n1524 <-> 731, 1216, 1524\n1525 <-> 582, 1109, 1388\n1526 <-> 594, 799\n1527 <-> 1900, 1906\n1528 <-> 1085\n1529 <-> 1529, 1622\n1530 <-> 134, 1994\n1531 <-> 784, 798, 1122\n1532 <-> 699, 1532\n1533 <-> 1355, 1997\n1534 <-> 874, 1992\n1535 <-> 1777\n1536 <-> 1798\n1537 <-> 84\n1538 <-> 1740\n1539 <-> 1539\n1540 <-> 341\n1541 <-> 186, 351, 906\n1542 <-> 763, 1319\n1543 <-> 437, 1675\n1544 <-> 340, 1544\n1545 <-> 1376, 1484\n1546 <-> 1073, 1987\n1547 <-> 344, 1769\n1548 <-> 1356, 1990\n1549 <-> 214, 1314\n1550 <-> 1391\n1551 <-> 1362, 1929\n1552 <-> 406, 632, 1153, 1183\n1553 <-> 1916\n1554 <-> 1144, 1721, 1984\n1555 <-> 893\n1556 <-> 1451, 1963\n1557 <-> 820\n1558 <-> 1558, 1623\n1559 <-> 777, 1674\n1560 <-> 1560\n1561 <-> 523, 1564\n1562 <-> 205, 1773, 1948, 1985\n1563 <-> 34, 875\n1564 <-> 861, 1561\n1565 <-> 1941\n1566 <-> 1356, 1779\n1567 <-> 544, 1567\n1568 <-> 1106\n1569 <-> 712, 930\n1570 <-> 601\n1571 <-> 1002, 1097\n1572 <-> 1371\n1573 <-> 1573\n1574 <-> 1055, 1942\n1575 <-> 132\n1576 <-> 328\n1577 <-> 241\n1578 <-> 911\n1579 <-> 984\n1580 <-> 427, 1128, 1218\n1581 <-> 486\n1582 <-> 491, 809, 1751, 1842\n1583 <-> 1150\n1584 <-> 1099, 1839\n1585 <-> 1817\n1586 <-> 1103\n1587 <-> 1379\n1588 <-> 744, 1112\n1589 <-> 1523\n1590 <-> 837, 1590\n1591 <-> 29, 1121, 1603\n1592 <-> 1157, 1592\n1593 <-> 575\n1594 <-> 950, 1767\n1595 <-> 339, 1131, 1391, 1482\n1596 <-> 1596\n1597 <-> 1745\n1598 <-> 1036\n1599 <-> 226, 510\n1600 <-> 38\n1601 <-> 485, 1695, 1801\n1602 <-> 205\n1603 <-> 1591\n1604 <-> 1604\n1605 <-> 5, 201, 479\n1606 <-> 313\n1607 <-> 432\n1608 <-> 145, 1906\n1609 <-> 276, 504, 1520\n1610 <-> 1075\n1611 <-> 1508, 1641\n1612 <-> 1110\n1613 <-> 285\n1614 <-> 152\n1615 <-> 351, 759, 1215\n1616 <-> 1087\n1617 <-> 396, 1448\n1618 <-> 1155, 1971\n1619 <-> 672, 961\n1620 <-> 179, 1739\n1621 <-> 1461\n1622 <-> 1529, 1893\n1623 <-> 803, 1558\n1624 <-> 500, 1436\n1625 <-> 682\n1626 <-> 131, 1428\n1627 <-> 314\n1628 <-> 95, 684\n1629 <-> 889, 1629\n1630 <-> 850, 1286\n1631 <-> 947, 1631, 1952\n1632 <-> 386, 1646\n1633 <-> 181\n1634 <-> 6, 1634\n1635 <-> 374, 989\n1636 <-> 687, 1496, 1839\n1637 <-> 54, 259, 739, 1458\n1638 <-> 157, 853\n1639 <-> 1253\n1640 <-> 888, 976, 1679\n1641 <-> 952, 1417, 1611, 1810\n1642 <-> 849, 1285, 1995\n1643 <-> 1774, 1993, 1996\n1644 <-> 516\n1645 <-> 780\n1646 <-> 107, 974, 1632\n1647 <-> 1516\n1648 <-> 77, 153, 794\n1649 <-> 1037\n1650 <-> 1843\n1651 <-> 236\n1652 <-> 825, 1090\n1653 <-> 564\n1654 <-> 1124, 1977\n1655 <-> 1133, 1466\n1656 <-> 154, 357, 557\n1657 <-> 669\n1658 <-> 1670\n1659 <-> 1360, 1840\n1660 <-> 69\n1661 <-> 286, 494, 829, 1152\n1662 <-> 1662, 1663\n1663 <-> 1213, 1412, 1662\n1664 <-> 49, 371, 1200, 1500, 1937\n1665 <-> 733\n1666 <-> 1414\n1667 <-> 329, 365, 1393\n1668 <-> 578, 1934\n1669 <-> 1060, 1935\n1670 <-> 726, 1658\n1671 <-> 863, 1312, 1919\n1672 <-> 255\n1673 <-> 996\n1674 <-> 190, 1559, 1815\n1675 <-> 1479, 1543\n1676 <-> 1165\n1677 <-> 1156\n1678 <-> 853, 1283, 1889\n1679 <-> 1640\n1680 <-> 1055\n1681 <-> 34, 1220\n1682 <-> 1690, 1757\n1683 <-> 1879\n1684 <-> 351, 793\n1685 <-> 504, 865\n1686 <-> 548, 1052, 1686\n1687 <-> 275\n1688 <-> 151, 164, 1435\n1689 <-> 63, 1170, 1172\n1690 <-> 38, 1682\n1691 <-> 391, 411, 789, 851\n1692 <-> 241\n1693 <-> 1445\n1694 <-> 1717\n1695 <-> 1601\n1696 <-> 14\n1697 <-> 978, 1992\n1698 <-> 1997\n1699 <-> 260\n1700 <-> 924\n1701 <-> 215, 303\n1702 <-> 1742\n1703 <-> 519, 1905\n1704 <-> 1025\n1705 <-> 105, 1212\n1706 <-> 727, 834, 1284\n1707 <-> 1707\n1708 <-> 257\n1709 <-> 218\n1710 <-> 1001\n1711 <-> 60, 204\n1712 <-> 1712\n1713 <-> 133, 207, 388\n1714 <-> 746, 953\n1715 <-> 562\n1716 <-> 1716\n1717 <-> 192, 1694\n1718 <-> 988\n1719 <-> 1094\n1720 <-> 815, 1266\n1721 <-> 1554\n1722 <-> 992\n1723 <-> 1723\n1724 <-> 992, 1493, 1745\n1725 <-> 677, 1731\n1726 <-> 29, 1453\n1727 <-> 420, 1858\n1728 <-> 631\n1729 <-> 1126\n1730 <-> 297, 1825\n1731 <-> 1725\n1732 <-> 1732, 1799\n1733 <-> 295\n1734 <-> 131\n1735 <-> 549, 802\n1736 <-> 10, 1757\n1737 <-> 988, 1768\n1738 <-> 972, 1844\n1739 <-> 641, 642, 1620, 1739\n1740 <-> 1538, 1961\n1741 <-> 1935\n1742 <-> 1092, 1702, 1903\n1743 <-> 1845, 1945\n1744 <-> 1335, 1744\n1745 <-> 1597, 1724, 1745\n1746 <-> 1975\n1747 <-> 209, 1122, 1464\n1748 <-> 1047\n1749 <-> 905\n1750 <-> 377, 1996\n1751 <-> 901, 1582\n1752 <-> 1342\n1753 <-> 1974, 1998\n1754 <-> 15, 102\n1755 <-> 782, 1821\n1756 <-> 1756\n1757 <-> 241, 1682, 1736, 1959\n1758 <-> 897\n1759 <-> 1871\n1760 <-> 576\n1761 <-> 733, 1761\n1762 <-> 615, 1882\n1763 <-> 1825\n1764 <-> 320\n1765 <-> 349, 721\n1766 <-> 1781\n1767 <-> 1594, 1767\n1768 <-> 1737\n1769 <-> 161, 385, 1547\n1770 <-> 1046\n1771 <-> 842, 1930\n1772 <-> 1246\n1773 <-> 1562\n1774 <-> 1643\n1775 <-> 1005\n1776 <-> 475, 483, 1146, 1822, 1928\n1777 <-> 1535, 1777\n1778 <-> 529, 1857\n1779 <-> 512, 1566\n1780 <-> 1780\n1781 <-> 55, 389, 1766\n1782 <-> 1249\n1783 <-> 181, 1094, 1933\n1784 <-> 616, 768\n1785 <-> 369, 546\n1786 <-> 493\n1787 <-> 307, 1787\n1788 <-> 1440, 1972\n1789 <-> 318\n1790 <-> 844, 1790\n1791 <-> 487, 899\n1792 <-> 189, 382, 1384\n1793 <-> 966, 1392\n1794 <-> 45, 862\n1795 <-> 1944\n1796 <-> 1064\n1797 <-> 33\n1798 <-> 1216, 1536\n1799 <-> 284, 1732, 1924\n1800 <-> 221, 914\n1801 <-> 1601\n1802 <-> 117, 583, 785\n1803 <-> 995\n1804 <-> 355, 784\n1805 <-> 129\n1806 <-> 1238, 1853\n1807 <-> 1261\n1808 <-> 461\n1809 <-> 180, 316, 602, 1186\n1810 <-> 1641\n1811 <-> 1353\n1812 <-> 159, 458, 559, 1833\n1813 <-> 1880\n1814 <-> 336, 793\n1815 <-> 399, 1674\n1816 <-> 1816\n1817 <-> 20, 1585\n1818 <-> 1017\n1819 <-> 800\n1820 <-> 824, 1121, 1898\n1821 <-> 1755\n1822 <-> 1776\n1823 <-> 1087\n1824 <-> 234, 1017\n1825 <-> 478, 1730, 1763\n1826 <-> 11, 384, 608, 1087, 1884\n1827 <-> 326, 629\n1828 <-> 33, 818\n1829 <-> 630\n1830 <-> 986\n1831 <-> 522, 983, 1107\n1832 <-> 943, 1317, 1860\n1833 <-> 369, 1812\n1834 <-> 1301\n1835 <-> 375\n1836 <-> 394, 652\n1837 <-> 36, 484\n1838 <-> 256, 1912\n1839 <-> 1584, 1636\n1840 <-> 93, 1356, 1659\n1841 <-> 1219\n1842 <-> 1582, 1892\n1843 <-> 805, 1119, 1650\n1844 <-> 208, 594, 1738\n1845 <-> 681, 1346, 1743\n1846 <-> 1846\n1847 <-> 1301, 1847\n1848 <-> 1279\n1849 <-> 1341\n1850 <-> 851, 1850\n1851 <-> 520, 963\n1852 <-> 524, 663, 991, 1936\n1853 <-> 568, 1806\n1854 <-> 405\n1855 <-> 736\n1856 <-> 587, 1380\n1857 <-> 1472, 1778, 1893\n1858 <-> 414, 1727, 1896, 1983\n1859 <-> 1859\n1860 <-> 280, 1832, 1895\n1861 <-> 1313\n1862 <-> 245\n1863 <-> 674, 1863\n1864 <-> 1245\n1865 <-> 884, 1090\n1866 <-> 418, 461\n1867 <-> 686, 1066\n1868 <-> 354, 755, 1909\n1869 <-> 238, 1454\n1870 <-> 713, 1371\n1871 <-> 667, 1354, 1759\n1872 <-> 253, 614, 1054\n1873 <-> 268\n1874 <-> 75, 1927\n1875 <-> 680, 959, 1269\n1876 <-> 628\n1877 <-> 20, 638\n1878 <-> 344, 1278, 1341, 1890\n1879 <-> 1683, 1879\n1880 <-> 199, 592, 1813\n1881 <-> 1182\n1882 <-> 196, 1294, 1762\n1883 <-> 822, 823\n1884 <-> 962, 1157, 1826\n1885 <-> 51, 1923\n1886 <-> 1142\n1887 <-> 294, 879\n1888 <-> 514, 791\n1889 <-> 1678\n1890 <-> 1481, 1878\n1891 <-> 17, 858\n1892 <-> 362, 1842\n1893 <-> 485, 648, 1174, 1622, 1857\n1894 <-> 890\n1895 <-> 1860\n1896 <-> 1858\n1897 <-> 1897\n1898 <-> 1820\n1899 <-> 916\n1900 <-> 1527\n1901 <-> 324, 790, 1361, 1901\n1902 <-> 594\n1903 <-> 650, 1437, 1742, 1903, 1968\n1904 <-> 317\n1905 <-> 679, 1162, 1703\n1906 <-> 1527, 1608, 1932\n1907 <-> 1907\n1908 <-> 1908\n1909 <-> 1868\n1910 <-> 870, 1296\n1911 <-> 223, 239, 402, 877\n1912 <-> 1167, 1838\n1913 <-> 1105\n1914 <-> 123, 166\n1915 <-> 1270, 1280\n1916 <-> 1351, 1553\n1917 <-> 1146\n1918 <-> 1042\n1919 <-> 1671\n1920 <-> 460\n1921 <-> 33, 1241\n1922 <-> 1067\n1923 <-> 1319, 1475, 1885\n1924 <-> 1799\n1925 <-> 290, 981\n1926 <-> 62, 460\n1927 <-> 1167, 1874\n1928 <-> 550, 1776\n1929 <-> 1551\n1930 <-> 1771\n1931 <-> 122, 386\n1932 <-> 1906\n1933 <-> 841, 1783\n1934 <-> 1227, 1668\n1935 <-> 1669, 1741\n1936 <-> 1519, 1852\n1937 <-> 71, 1664\n1938 <-> 283, 456\n1939 <-> 1103\n1940 <-> 0\n1941 <-> 222, 499, 1565, 1941\n1942 <-> 61, 311, 1574\n1943 <-> 161\n1944 <-> 193, 958, 1397, 1795\n1945 <-> 257, 881, 1743\n1946 <-> 1367\n1947 <-> 1154, 1190, 1408\n1948 <-> 1562, 1948\n1949 <-> 1188\n1950 <-> 348\n1951 <-> 178, 835, 1161\n1952 <-> 1631\n1953 <-> 1050\n1954 <-> 977, 1299, 1501\n1955 <-> 804\n1956 <-> 1956\n1957 <-> 323, 657\n1958 <-> 298, 953\n1959 <-> 1757\n1960 <-> 27, 1078\n1961 <-> 387, 861, 1148, 1740\n1962 <-> 732, 1962\n1963 <-> 1556\n1964 <-> 1964\n1965 <-> 1242\n1966 <-> 1203\n1967 <-> 974, 1403\n1968 <-> 1903\n1969 <-> 664\n1970 <-> 17, 509, 1970\n1971 <-> 1097, 1618\n1972 <-> 155, 1366, 1788\n1973 <-> 547, 990, 1263\n1974 <-> 184, 1753\n1975 <-> 229, 1746\n1976 <-> 899, 1110\n1977 <-> 165, 1654\n1978 <-> 969\n1979 <-> 696, 717\n1980 <-> 1111, 1188, 1504\n1981 <-> 595\n1982 <-> 1982\n1983 <-> 380, 1858\n1984 <-> 278, 1554\n1985 <-> 1562\n1986 <-> 1278\n1987 <-> 1334, 1546\n1988 <-> 404\n1989 <-> 588, 1016\n1990 <-> 682, 712, 1548\n1991 <-> 41, 895\n1992 <-> 1116, 1534, 1697\n1993 <-> 15, 1207, 1643\n1994 <-> 1530\n1995 <-> 1642\n1996 <-> 167, 1181, 1643, 1750\n1997 <-> 1533, 1698\n1998 <-> 95, 141, 1753\n1999 <-> 792"
def puzzle1():
programs = []
already_visited = []
IOI = [0] #index of interest
num_programs = 0
for program in pipes.split("\n"):
programs.append([int(a) for a in program.split(">")[1].split(",")])
while len(IOI) != 0:
for pipe in programs[IOI[0]]:
if not pipe in IOI and not pipe in already_visited: IOI.append(pipe)
already_visited.append(IOI[0])
IOI = IOI[1:]
num_programs += 1
return num_programs
def puzzle2():
programs = []
group_num = 0
for program in pipes.split("\n"):
programs.append([int(a) for a in program.split(">")[1].split(",")])
groups = [-1] * len(programs)
for i in range(len(programs)):
if groups[i] == -1:
groups[i] = group_num
IOI = [i]
already_visited = []
while len(IOI) != 0:
for pipe in programs[IOI[0]]:
if not pipe in IOI and not pipe in already_visited: IOI.append(pipe)
already_visited.append(IOI[0])
groups[IOI[0]] = group_num
IOI = IOI[1:]
group_num += 1
return group_num
if __name__ == "__main__":
print("1: {}".format(puzzle1()))
print("2: {}".format(puzzle2())) | pipes = '0 <-> 122, 874, 1940\n1 <-> 1099\n2 <-> 743\n3 <-> 594, 1258\n4 <-> 4, 1473\n5 <-> 109, 628, 1133, 1605\n6 <-> 470, 561, 600, 1272, 1634\n7 <-> 7, 1058, 1074, 1136\n8 <-> 879\n9 <-> 9\n10 <-> 10, 1736\n11 <-> 148, 1826\n12 <-> 774, 1394, 1495\n13 <-> 178, 410\n14 <-> 666, 763, 1696\n15 <-> 793, 1446, 1754, 1993\n16 <-> 1477\n17 <-> 1891, 1970\n18 <-> 476, 1095\n19 <-> 19\n20 <-> 581, 1380, 1817, 1877\n21 <-> 746, 1253\n22 <-> 830, 1021\n23 <-> 1115\n24 <-> 89, 1436\n25 <-> 759, 821\n26 <-> 40, 1254\n27 <-> 553, 1137, 1960\n28 <-> 100, 808\n29 <-> 279, 1223, 1591, 1726\n30 <-> 236, 325, 769, 1132\n31 <-> 425, 1377\n32 <-> 611, 1047\n33 <-> 751, 1797, 1828, 1921\n34 <-> 1563, 1681\n35 <-> 428\n36 <-> 265, 1837\n37 <-> 265, 365, 1455\n38 <-> 1600, 1690\n39 <-> 331\n40 <-> 26, 560, 1512\n41 <-> 911, 1991\n42 <-> 835\n43 <-> 680\n44 <-> 1522\n45 <-> 486, 1794\n46 <-> 170, 334, 944, 1169\n47 <-> 1086\n48 <-> 274, 924\n49 <-> 1664\n50 <-> 721\n51 <-> 1885\n52 <-> 1143, 1205\n53 <-> 148, 696\n54 <-> 1637\n55 <-> 936, 1781\n56 <-> 342, 1212\n57 <-> 911\n58 <-> 692, 1456\n59 <-> 59\n60 <-> 463, 570, 1038, 1711\n61 <-> 824, 1008, 1942\n62 <-> 165, 1926\n63 <-> 1689\n64 <-> 64, 321\n65 <-> 98, 116, 1082\n66 <-> 1426, 1497\n67 <-> 502, 951, 1514\n68 <-> 215, 610, 803\n69 <-> 264, 1660\n70 <-> 417, 648, 1142\n71 <-> 1937\n72 <-> 744, 1158\n73 <-> 466\n74 <-> 74, 673\n75 <-> 640, 1874\n76 <-> 575, 708, 1347, 1488\n77 <-> 435, 1648\n78 <-> 412\n79 <-> 347\n80 <-> 807\n81 <-> 176, 394\n82 <-> 366, 928\n83 <-> 737\n84 <-> 84, 1537\n85 <-> 1325\n86 <-> 546\n87 <-> 678, 941, 1229\n88 <-> 1325\n89 <-> 24, 89\n90 <-> 431, 988, 1453\n91 <-> 825, 957, 1249\n92 <-> 937, 1516\n93 <-> 1840\n94 <-> 916, 1445\n95 <-> 1628, 1998\n96 <-> 123\n97 <-> 355\n98 <-> 65\n99 <-> 425, 771, 1050\n100 <-> 28, 100\n101 <-> 337, 1257\n102 <-> 270, 1754\n103 <-> 103, 229\n104 <-> 157, 916\n105 <-> 1705\n106 <-> 1165\n107 <-> 1646\n108 <-> 1082\n109 <-> 5\n110 <-> 485, 1185\n111 <-> 944, 1249\n112 <-> 112, 1056\n113 <-> 1219\n114 <-> 129, 617\n115 <-> 422\n116 <-> 65\n117 <-> 200, 1802\n118 <-> 243, 1507\n119 <-> 732, 1103\n120 <-> 160\n121 <-> 320, 336\n122 <-> 0, 582, 1931\n123 <-> 96, 885, 1126, 1914\n124 <-> 124, 413\n125 <-> 125\n126 <-> 367, 655\n127 <-> 1290\n128 <-> 1085\n129 <-> 114, 1343, 1805\n130 <-> 130, 1415\n131 <-> 1626, 1734\n132 <-> 296, 573, 1575\n133 <-> 1713\n134 <-> 1243, 1530\n135 <-> 1048\n136 <-> 153, 1209\n137 <-> 137, 331\n138 <-> 555, 1350\n139 <-> 1035, 1345\n140 <-> 393, 688\n141 <-> 1037, 1998\n142 <-> 736\n143 <-> 716, 1362\n144 <-> 1319\n145 <-> 318, 445, 1471, 1608\n146 <-> 146, 294\n147 <-> 714\n148 <-> 11, 53\n149 <-> 364, 854, 1254\n150 <-> 675, 1090\n151 <-> 189, 1411, 1688\n152 <-> 683, 1614\n153 <-> 136, 1328, 1648\n154 <-> 584, 1656\n155 <-> 1972\n156 <-> 1351\n157 <-> 104, 1638\n158 <-> 165\n159 <-> 444, 1812\n160 <-> 120, 859\n161 <-> 984, 1769, 1943\n162 <-> 1098\n163 <-> 618\n164 <-> 697, 922, 1688\n165 <-> 62, 158, 1452, 1977\n166 <-> 166, 1914\n167 <-> 1996\n168 <-> 260, 843, 1057, 1433\n169 <-> 406, 736, 924\n170 <-> 46\n171 <-> 173, 833, 1104, 1149\n172 <-> 1429\n173 <-> 171, 1423\n174 <-> 174, 332\n175 <-> 655, 839\n176 <-> 81, 176, 1264\n177 <-> 177\n178 <-> 13, 1162, 1182, 1951\n179 <-> 842, 1620\n180 <-> 1294, 1442, 1809\n181 <-> 1633, 1783\n182 <-> 182, 456\n183 <-> 685\n184 <-> 760, 1974\n185 <-> 287, 775\n186 <-> 917, 1541\n187 <-> 412, 1119\n188 <-> 395\n189 <-> 151, 1370, 1792\n190 <-> 1255, 1674\n191 <-> 764, 1010\n192 <-> 192, 607, 1717\n193 <-> 1001, 1944\n194 <-> 625\n195 <-> 623\n196 <-> 1882\n197 <-> 1275\n198 <-> 1069\n199 <-> 1138, 1880\n200 <-> 117\n201 <-> 1605\n202 <-> 1041, 1044\n203 <-> 207, 301, 815, 1311\n204 <-> 204, 1711\n205 <-> 1298, 1562, 1602\n206 <-> 228\n207 <-> 203, 1480, 1713\n208 <-> 786, 1844\n209 <-> 1291, 1351, 1747\n210 <-> 1320\n211 <-> 587, 1340\n212 <-> 587, 676\n213 <-> 886\n214 <-> 1549\n215 <-> 68, 1115, 1371, 1701\n216 <-> 1127\n217 <-> 312\n218 <-> 466, 1072, 1709\n219 <-> 527\n220 <-> 793\n221 <-> 1314, 1800\n222 <-> 1941\n223 <-> 1911\n224 <-> 224, 528\n225 <-> 1030, 1084\n226 <-> 569, 1599\n227 <-> 658\n228 <-> 206, 579, 800, 1381\n229 <-> 103, 1975\n230 <-> 1068\n231 <-> 937\n232 <-> 428\n233 <-> 969, 1258\n234 <-> 1824\n235 <-> 1218\n236 <-> 30, 1410, 1470, 1651\n237 <-> 815\n238 <-> 477, 1518, 1869\n239 <-> 985, 1911\n240 <-> 809, 1047\n241 <-> 1379, 1577, 1692, 1757\n242 <-> 1127\n243 <-> 118\n244 <-> 440, 747, 771, 1051\n245 <-> 644, 725, 1332, 1862\n246 <-> 395, 1168\n247 <-> 1118\n248 <-> 1462\n249 <-> 737\n250 <-> 1254\n251 <-> 491, 1129\n252 <-> 623\n253 <-> 1046, 1872\n254 <-> 1473\n255 <-> 1220, 1672\n256 <-> 1290, 1838\n257 <-> 474, 1708, 1945\n258 <-> 728, 1297\n259 <-> 374, 464, 1637\n260 <-> 168, 1699\n261 <-> 677, 1164\n262 <-> 1507\n263 <-> 564\n264 <-> 69, 264, 912\n265 <-> 36, 37\n266 <-> 1362\n267 <-> 267\n268 <-> 275, 1873\n269 <-> 449, 766\n270 <-> 102\n271 <-> 1139, 1156\n272 <-> 369, 584\n273 <-> 311, 969\n274 <-> 48, 667\n275 <-> 268, 672, 1687\n276 <-> 1609\n277 <-> 490, 1252\n278 <-> 1236, 1984\n279 <-> 29\n280 <-> 932, 1860\n281 <-> 372, 638, 1311\n282 <-> 1199, 1308\n283 <-> 1938\n284 <-> 315, 1375, 1799\n285 <-> 1377, 1613\n286 <-> 1661\n287 <-> 185, 1248\n288 <-> 409, 1457\n289 <-> 1025\n290 <-> 606, 1486, 1925\n291 <-> 734, 1407\n292 <-> 330\n293 <-> 360, 1231\n294 <-> 146, 1887\n295 <-> 1237, 1733\n296 <-> 132, 296, 621\n297 <-> 1493, 1730\n298 <-> 1958\n299 <-> 696\n300 <-> 1300\n301 <-> 203\n302 <-> 1188, 1349\n303 <-> 750, 1701\n304 <-> 304, 503\n305 <-> 402, 630, 636, 1479\n306 <-> 1007, 1350, 1502\n307 <-> 1787\n308 <-> 1485\n309 <-> 479, 521\n310 <-> 1415\n311 <-> 273, 1942\n312 <-> 217, 387, 1357\n313 <-> 905, 1606\n314 <-> 1337, 1627\n315 <-> 284, 1509\n316 <-> 1809\n317 <-> 490, 1053, 1904\n318 <-> 145, 1789\n319 <-> 926, 1180\n320 <-> 121, 1454, 1764\n321 <-> 64, 725\n322 <-> 762, 1178\n323 <-> 918, 1064, 1957\n324 <-> 1901\n325 <-> 30\n326 <-> 483, 1827\n327 <-> 1360\n328 <-> 546, 1576\n329 <-> 526, 1667\n330 <-> 292, 823\n331 <-> 39, 137, 979\n332 <-> 174, 703, 914\n333 <-> 333, 1364\n334 <-> 46\n335 <-> 650\n336 <-> 121, 1814\n337 <-> 101\n338 <-> 740, 1239\n339 <-> 1595\n340 <-> 1076, 1544\n341 <-> 341, 623, 1540\n342 <-> 56\n343 <-> 367\n344 <-> 1547, 1878\n345 <-> 528\n346 <-> 346, 626, 1036\n347 <-> 79, 1052\n348 <-> 368, 1950\n349 <-> 631, 1765\n350 <-> 602\n351 <-> 1503, 1541, 1615, 1684\n352 <-> 1341\n353 <-> 824\n354 <-> 703, 1868\n355 <-> 97, 480, 566, 1804\n356 <-> 648, 814\n357 <-> 1656\n358 <-> 504\n359 <-> 763\n360 <-> 293, 1296\n361 <-> 361\n362 <-> 1892\n363 <-> 524\n364 <-> 149, 1268\n365 <-> 37, 1392, 1667\n366 <-> 82, 606\n367 <-> 126, 343, 677\n368 <-> 348, 500, 1101, 1300\n369 <-> 272, 527, 1785, 1833\n370 <-> 370\n371 <-> 1352, 1664\n372 <-> 281\n373 <-> 860, 1026, 1504\n374 <-> 259, 919, 1635\n375 <-> 990, 1489, 1835\n376 <-> 1389\n377 <-> 1063, 1750\n378 <-> 423\n379 <-> 1510\n380 <-> 1983\n381 <-> 517\n382 <-> 1792\n383 <-> 814\n384 <-> 1826\n385 <-> 1769\n386 <-> 1632, 1931\n387 <-> 312, 1206, 1961\n388 <-> 868, 1713\n389 <-> 721, 1781\n390 <-> 604\n391 <-> 493, 1691\n392 <-> 1331\n393 <-> 140\n394 <-> 81, 1836\n395 <-> 188, 246, 1171, 1388\n396 <-> 981, 1475, 1617\n397 <-> 397\n398 <-> 931\n399 <-> 1815\n400 <-> 1245\n401 <-> 1011\n402 <-> 305, 1911\n403 <-> 709\n404 <-> 606, 709, 1067, 1988\n405 <-> 1334, 1854\n406 <-> 169, 1552\n407 <-> 563\n408 <-> 813\n409 <-> 288, 409, 445\n410 <-> 13, 577\n411 <-> 1691\n412 <-> 78, 187, 1089\n413 <-> 124\n414 <-> 803, 1858\n415 <-> 415, 1289\n416 <-> 549, 1519\n417 <-> 70\n418 <-> 1866\n419 <-> 419, 680\n420 <-> 1727\n421 <-> 676, 1365\n422 <-> 115, 467\n423 <-> 378, 1470\n424 <-> 436, 929, 1311\n425 <-> 31, 99\n426 <-> 934\n427 <-> 596, 675, 936, 1580\n428 <-> 35, 232, 1027\n429 <-> 682, 1498\n430 <-> 430\n431 <-> 90\n432 <-> 432, 1607\n433 <-> 1312\n434 <-> 1023, 1118\n435 <-> 77, 435, 1280\n436 <-> 424, 894\n437 <-> 586, 1543\n438 <-> 1118\n439 <-> 439\n440 <-> 244\n441 <-> 441, 605\n442 <-> 1274\n443 <-> 443, 556\n444 <-> 159\n445 <-> 145, 409\n446 <-> 1258\n447 <-> 644, 940\n448 <-> 1271, 1480\n449 <-> 269, 1398\n450 <-> 871, 1094\n451 <-> 589, 1075\n452 <-> 755\n453 <-> 1518\n454 <-> 613, 796\n455 <-> 593\n456 <-> 182, 1321, 1938\n457 <-> 662, 1432\n458 <-> 916, 1812\n459 <-> 459\n460 <-> 1920, 1926\n461 <-> 1243, 1808, 1866\n462 <-> 617, 693\n463 <-> 60, 908\n464 <-> 259, 1178\n465 <-> 600\n466 <-> 73, 218\n467 <-> 422, 531, 750, 1476\n468 <-> 468\n469 <-> 901, 1204\n470 <-> 6\n471 <-> 755, 1257\n472 <-> 514\n473 <-> 873, 928\n474 <-> 257, 784\n475 <-> 1776\n476 <-> 18, 1314\n477 <-> 238\n478 <-> 1825\n479 <-> 309, 1605\n480 <-> 355\n481 <-> 1308\n482 <-> 807\n483 <-> 326, 619, 1098, 1776\n484 <-> 1837\n485 <-> 110, 525, 1601, 1893\n486 <-> 45, 1581\n487 <-> 1791\n488 <-> 758\n489 <-> 978\n490 <-> 277, 317, 792\n491 <-> 251, 1582\n492 <-> 945, 1028\n493 <-> 391, 1786\n494 <-> 1661\n495 <-> 534, 1255\n496 <-> 690, 1480\n497 <-> 631, 1195\n498 <-> 892, 903\n499 <-> 1522, 1941\n500 <-> 368, 1449, 1624\n501 <-> 706, 915, 1115\n502 <-> 67\n503 <-> 304\n504 <-> 358, 1431, 1609, 1685\n505 <-> 515\n506 <-> 1347\n507 <-> 624, 831\n508 <-> 907\n509 <-> 1127, 1970\n510 <-> 821, 1599\n511 <-> 763, 846\n512 <-> 1779\n513 <-> 537, 1033\n514 <-> 472, 1068, 1888\n515 <-> 505, 515\n516 <-> 1363, 1644\n517 <-> 381, 680\n518 <-> 853\n519 <-> 1703\n520 <-> 1851\n521 <-> 309\n522 <-> 1831\n523 <-> 1561\n524 <-> 363, 1282, 1852\n525 <-> 485, 1383\n526 <-> 329, 876, 1399\n527 <-> 219, 369, 1086\n528 <-> 224, 345, 1243\n529 <-> 719, 845, 980, 1778\n530 <-> 530, 535\n531 <-> 467\n532 <-> 603, 1522\n533 <-> 533\n534 <-> 495, 1020\n535 <-> 530, 639\n536 <-> 789\n537 <-> 513, 932, 1102\n538 <-> 653, 784, 807\n539 <-> 1186\n540 <-> 1224\n541 <-> 1068, 1320\n542 <-> 1332\n543 <-> 543, 1177\n544 <-> 1404, 1567\n545 <-> 842\n546 <-> 86, 328, 1785\n547 <-> 892, 1973\n548 <-> 1686\n549 <-> 416, 595, 1735\n550 <-> 1928\n551 <-> 850\n552 <-> 552\n553 <-> 27\n554 <-> 554\n555 <-> 138\n556 <-> 443, 1389\n557 <-> 748, 1656\n558 <-> 758\n559 <-> 596, 1812\n560 <-> 40\n561 <-> 6\n562 <-> 562, 627, 1715\n563 <-> 407, 776, 999\n564 <-> 263, 633, 962, 1130, 1653\n565 <-> 998\n566 <-> 355\n567 <-> 676, 1358\n568 <-> 871, 1313, 1853\n569 <-> 226\n570 <-> 60, 1423\n571 <-> 571, 880\n572 <-> 778, 896, 1251\n573 <-> 132, 685\n574 <-> 1212\n575 <-> 76, 1320, 1593\n576 <-> 1237, 1760\n577 <-> 410\n578 <-> 1150, 1511, 1668\n579 <-> 228, 1219, 1244\n580 <-> 701\n581 <-> 20\n582 <-> 122, 1525\n583 <-> 628, 1802\n584 <-> 154, 272\n585 <-> 698, 743, 1466, 1521\n586 <-> 437, 1394\n587 <-> 211, 212, 1856\n588 <-> 1989\n589 <-> 451\n590 <-> 644, 1192\n591 <-> 591\n592 <-> 984, 1880\n593 <-> 455, 789\n594 <-> 3, 1526, 1844, 1902\n595 <-> 549, 715, 1981\n596 <-> 427, 559, 1316\n597 <-> 1043, 1225\n598 <-> 932\n599 <-> 1064, 1065\n600 <-> 6, 465\n601 <-> 756, 946, 1050, 1570\n602 <-> 350, 1809\n603 <-> 532, 1010, 1060\n604 <-> 390, 729\n605 <-> 441\n606 <-> 290, 366, 404\n607 <-> 192\n608 <-> 1826\n609 <-> 953\n610 <-> 68\n611 <-> 32, 868\n612 <-> 1213\n613 <-> 454, 720\n614 <-> 1872\n615 <-> 615, 829, 1762\n616 <-> 990, 1784\n617 <-> 114, 462\n618 <-> 163, 1508\n619 <-> 483\n620 <-> 686, 1446\n621 <-> 296\n622 <-> 622\n623 <-> 195, 252, 341, 780, 1078\n624 <-> 507\n625 <-> 194, 1329\n626 <-> 346\n627 <-> 562\n628 <-> 5, 583, 1876\n629 <-> 1027, 1342, 1827\n630 <-> 305, 1829\n631 <-> 349, 497, 1248, 1728\n632 <-> 1552\n633 <-> 564\n634 <-> 875, 1513\n635 <-> 1150, 1410\n636 <-> 305\n637 <-> 637\n638 <-> 281, 1877\n639 <-> 535\n640 <-> 75, 649, 804\n641 <-> 967, 1739\n642 <-> 1114, 1739\n643 <-> 897, 981\n644 <-> 245, 447, 590, 960\n645 <-> 788, 1064, 1342\n646 <-> 1217\n647 <-> 675, 910, 1021\n648 <-> 70, 356, 1893\n649 <-> 640\n650 <-> 335, 1903\n651 <-> 651\n652 <-> 758, 1836\n653 <-> 538, 1515\n654 <-> 902, 1322\n655 <-> 126, 175\n656 <-> 945, 1247\n657 <-> 1957\n658 <-> 227, 1231\n659 <-> 737\n660 <-> 915\n661 <-> 692, 1299\n662 <-> 457, 962, 1081\n663 <-> 1410, 1852\n664 <-> 664, 1969\n665 <-> 872\n666 <-> 14\n667 <-> 274, 1871\n668 <-> 994\n669 <-> 1419, 1657\n670 <-> 1275\n671 <-> 671, 826\n672 <-> 275, 928, 1330, 1619\n673 <-> 74, 737, 1208\n674 <-> 1863\n675 <-> 150, 427, 647\n676 <-> 212, 421, 567\n677 <-> 261, 367, 677, 1023, 1306, 1405, 1725\n678 <-> 87\n679 <-> 1905\n680 <-> 43, 419, 517, 1232, 1382, 1395, 1875\n681 <-> 1845\n682 <-> 429, 1368, 1625, 1990\n683 <-> 152, 924, 1234\n684 <-> 1247, 1628\n685 <-> 183, 573\n686 <-> 620, 1184, 1867\n687 <-> 1080, 1636\n688 <-> 140, 1205, 1363\n689 <-> 1418, 1494\n690 <-> 496\n691 <-> 1013, 1178\n692 <-> 58, 661, 1324, 1366\n693 <-> 462, 693, 852\n694 <-> 694\n695 <-> 717\n696 <-> 53, 299, 1979\n697 <-> 164\n698 <-> 585\n699 <-> 1532\n700 <-> 855\n701 <-> 580, 744\n702 <-> 1198, 1240\n703 <-> 332, 354\n704 <-> 1361\n705 <-> 1101\n706 <-> 501\n707 <-> 707\n708 <-> 76, 795, 1235, 1302\n709 <-> 403, 404\n710 <-> 806, 1358\n711 <-> 711\n712 <-> 924, 1569, 1990\n713 <-> 1870\n714 <-> 147, 1507\n715 <-> 595\n716 <-> 143, 1039\n717 <-> 695, 1979\n718 <-> 1476\n719 <-> 529, 1061\n720 <-> 613\n721 <-> 50, 389, 1765\n722 <-> 1058\n723 <-> 723, 773, 1214\n724 <-> 724\n725 <-> 245, 321\n726 <-> 938, 1010, 1366, 1670\n727 <-> 1706\n728 <-> 258, 1264\n729 <-> 604, 729, 1396\n730 <-> 1184\n731 <-> 1524\n732 <-> 119, 1962\n733 <-> 1665, 1761\n734 <-> 291\n735 <-> 1022\n736 <-> 142, 169, 1855\n737 <-> 83, 249, 659, 673\n738 <-> 933\n739 <-> 1461, 1637\n740 <-> 338, 1065\n741 <-> 857, 943, 1100\n742 <-> 742, 1400\n743 <-> 2, 585, 743\n744 <-> 72, 701, 1417, 1588\n745 <-> 745\n746 <-> 21, 1433, 1714\n747 <-> 244\n748 <-> 557\n749 <-> 1225\n750 <-> 303, 467\n751 <-> 33\n752 <-> 851\n753 <-> 1398\n754 <-> 1293\n755 <-> 452, 471, 1868\n756 <-> 601\n757 <-> 1350, 1414\n758 <-> 488, 558, 652\n759 <-> 25, 1615\n760 <-> 184, 1274\n761 <-> 761\n762 <-> 322, 819\n763 <-> 14, 359, 511, 1542\n764 <-> 191\n765 <-> 1168\n766 <-> 269, 1167\n767 <-> 1109\n768 <-> 1784\n769 <-> 30, 769\n770 <-> 1328\n771 <-> 99, 244, 1310\n772 <-> 1378\n773 <-> 723, 882\n774 <-> 12\n775 <-> 185\n776 <-> 563\n777 <-> 817, 1559\n778 <-> 572, 1198\n779 <-> 1134\n780 <-> 623, 1645\n781 <-> 781\n782 <-> 990, 1387, 1755\n783 <-> 1015, 1391\n784 <-> 474, 538, 1531, 1804\n785 <-> 1802\n786 <-> 208, 1357\n787 <-> 787, 1233\n788 <-> 645\n789 <-> 536, 593, 1691\n790 <-> 870, 1901\n791 <-> 1888\n792 <-> 490, 1469, 1999\n793 <-> 15, 220, 1284, 1684, 1814\n794 <-> 1648\n795 <-> 708\n796 <-> 454, 1286\n797 <-> 797, 1014, 1028\n798 <-> 1079, 1531\n799 <-> 1159, 1351, 1526\n800 <-> 228, 1176, 1819\n801 <-> 1018\n802 <-> 1735\n803 <-> 68, 414, 1374, 1623\n804 <-> 640, 867, 1955\n805 <-> 805, 1843\n806 <-> 710\n807 <-> 80, 482, 538\n808 <-> 28\n809 <-> 240, 1246, 1582\n810 <-> 810, 1005\n811 <-> 811\n812 <-> 812, 1359\n813 <-> 408, 813\n814 <-> 356, 383\n815 <-> 203, 237, 848, 1720\n816 <-> 816\n817 <-> 777\n818 <-> 1169, 1828\n819 <-> 762\n820 <-> 820, 1557\n821 <-> 25, 510, 1288\n822 <-> 1073, 1883\n823 <-> 330, 925, 1323, 1883\n824 <-> 61, 353, 1820\n825 <-> 91, 1652\n826 <-> 671\n827 <-> 1183\n828 <-> 843\n829 <-> 615, 1661\n830 <-> 22\n831 <-> 507, 1054, 1439\n832 <-> 855\n833 <-> 171, 994, 1020\n834 <-> 1706\n835 <-> 42, 1951\n836 <-> 836\n837 <-> 1590\n838 <-> 1001\n839 <-> 175, 1329\n840 <-> 1274\n841 <-> 1933\n842 <-> 179, 545, 1771\n843 <-> 168, 828, 1032\n844 <-> 847, 1790\n845 <-> 529\n846 <-> 511\n847 <-> 844, 1077, 1172\n848 <-> 815, 1338, 1397, 1452\n849 <-> 1485, 1642\n850 <-> 551, 1630\n851 <-> 752, 1691, 1850\n852 <-> 693\n853 <-> 518, 1208, 1638, 1678\n854 <-> 149\n855 <-> 700, 832, 1450\n856 <-> 856\n857 <-> 741\n858 <-> 1891\n859 <-> 160, 1295, 1483\n860 <-> 373, 1214\n861 <-> 1134, 1564, 1961\n862 <-> 862, 1794\n863 <-> 942, 1671\n864 <-> 864\n865 <-> 1463, 1685\n866 <-> 1411\n867 <-> 804, 1492\n868 <-> 388, 611\n869 <-> 1417\n870 <-> 790, 872, 1910\n871 <-> 450, 568\n872 <-> 665, 870\n873 <-> 473\n874 <-> 0, 1000, 1147, 1534\n875 <-> 634, 1373, 1563\n876 <-> 526, 1517\n877 <-> 1911\n878 <-> 878\n879 <-> 8, 1887\n880 <-> 571, 927\n881 <-> 1945\n882 <-> 773\n883 <-> 909, 1141\n884 <-> 1865\n885 <-> 123, 1506\n886 <-> 213, 1511\n887 <-> 1413\n888 <-> 1640\n889 <-> 1629\n890 <-> 890, 964, 1894\n891 <-> 1242\n892 <-> 498, 547, 1082\n893 <-> 1035, 1555\n894 <-> 436, 1108\n895 <-> 1506, 1991\n896 <-> 572, 1339\n897 <-> 643, 1758\n898 <-> 967, 1481\n899 <-> 1094, 1791, 1976\n900 <-> 900, 1003\n901 <-> 469, 1420, 1751\n902 <-> 654, 1503\n903 <-> 498, 903, 1230\n904 <-> 1226\n905 <-> 313, 1208, 1749\n906 <-> 1276, 1541\n907 <-> 508, 1479\n908 <-> 463\n909 <-> 883, 909\n910 <-> 647\n911 <-> 41, 57, 1578\n912 <-> 264\n913 <-> 913, 1236\n914 <-> 332, 1800\n915 <-> 501, 660, 1386, 1429\n916 <-> 94, 104, 458, 1075, 1899\n917 <-> 186\n918 <-> 323\n919 <-> 374\n920 <-> 920\n921 <-> 1460\n922 <-> 164, 922\n923 <-> 1041\n924 <-> 48, 169, 683, 712, 1107, 1700\n925 <-> 823\n926 <-> 319, 1381\n927 <-> 880\n928 <-> 82, 473, 672, 1201\n929 <-> 424\n930 <-> 930, 1569\n931 <-> 398, 992\n932 <-> 280, 537, 598, 1292\n933 <-> 738, 1368\n934 <-> 426, 1161\n935 <-> 1086\n936 <-> 55, 427\n937 <-> 92, 231\n938 <-> 726, 1304\n939 <-> 958\n940 <-> 447, 1222\n941 <-> 87\n942 <-> 863\n943 <-> 741, 1421, 1832\n944 <-> 46, 111\n945 <-> 492, 656, 1353\n946 <-> 601\n947 <-> 1631\n948 <-> 948\n949 <-> 1434\n950 <-> 1594\n951 <-> 67, 1016, 1478\n952 <-> 1641\n953 <-> 609, 1176, 1513, 1714, 1958\n954 <-> 954\n955 <-> 955\n956 <-> 982, 1217\n957 <-> 91, 1106\n958 <-> 939, 1199, 1303, 1944\n959 <-> 1875\n960 <-> 644\n961 <-> 1619\n962 <-> 564, 662, 1884\n963 <-> 1015, 1851\n964 <-> 890\n965 <-> 1002\n966 <-> 1793\n967 <-> 641, 898\n968 <-> 968\n969 <-> 233, 273, 1212, 1978\n970 <-> 1499, 1513\n971 <-> 1106\n972 <-> 1738\n973 <-> 973\n974 <-> 1646, 1967\n975 <-> 1066\n976 <-> 1287, 1640\n977 <-> 1954\n978 <-> 489, 1697\n979 <-> 331\n980 <-> 529\n981 <-> 396, 643, 1376, 1925\n982 <-> 956\n983 <-> 1325, 1831\n984 <-> 161, 592, 1579\n985 <-> 239\n986 <-> 1104, 1830\n987 <-> 1419\n988 <-> 90, 1718, 1737\n989 <-> 1278, 1635\n990 <-> 375, 616, 782, 1973\n991 <-> 1852\n992 <-> 931, 1722, 1724\n993 <-> 1099\n994 <-> 668, 833\n995 <-> 1140, 1803\n996 <-> 996, 1673\n997 <-> 997\n998 <-> 565, 998\n999 <-> 563, 999\n1000 <-> 874, 1160\n1001 <-> 193, 838, 1011, 1710\n1002 <-> 965, 1571\n1003 <-> 900\n1004 <-> 1004\n1005 <-> 810, 1775\n1006 <-> 1006\n1007 <-> 306, 1447\n1008 <-> 61\n1009 <-> 1022, 1320\n1010 <-> 191, 603, 726, 1344\n1011 <-> 401, 1001\n1012 <-> 1112, 1194\n1013 <-> 691, 1031\n1014 <-> 797\n1015 <-> 783, 963\n1016 <-> 951, 1989\n1017 <-> 1213, 1818, 1824\n1018 <-> 801, 1062\n1019 <-> 1327\n1020 <-> 534, 833\n1021 <-> 22, 647, 1210\n1022 <-> 735, 1009, 1413\n1023 <-> 434, 677\n1024 <-> 1071\n1025 <-> 289, 1416, 1704\n1026 <-> 373\n1027 <-> 428, 629\n1028 <-> 492, 797, 1113\n1029 <-> 1038, 1268\n1030 <-> 225, 1430\n1031 <-> 1013\n1032 <-> 843\n1033 <-> 513\n1034 <-> 1179\n1035 <-> 139, 893, 1151\n1036 <-> 346, 1598\n1037 <-> 141, 1649\n1038 <-> 60, 1029\n1039 <-> 716, 1039\n1040 <-> 1040, 1042\n1041 <-> 202, 923, 1041\n1042 <-> 1040, 1918\n1043 <-> 597\n1044 <-> 202\n1045 <-> 1045\n1046 <-> 253, 1394, 1770\n1047 <-> 32, 240, 1748\n1048 <-> 135, 1348\n1049 <-> 1071\n1050 <-> 99, 601, 1953\n1051 <-> 244, 1345\n1052 <-> 347, 1686\n1053 <-> 317\n1054 <-> 831, 1872\n1055 <-> 1062, 1123, 1574, 1680\n1056 <-> 112\n1057 <-> 168\n1058 <-> 7, 722\n1059 <-> 1059\n1060 <-> 603, 1277, 1669\n1061 <-> 719\n1062 <-> 1018, 1055\n1063 <-> 377\n1064 <-> 323, 599, 645, 1229, 1796\n1065 <-> 599, 740, 1394\n1066 <-> 975, 1867\n1067 <-> 404, 1252, 1922\n1068 <-> 230, 514, 541\n1069 <-> 198, 1102\n1070 <-> 1147\n1071 <-> 1024, 1049, 1088, 1188\n1072 <-> 218, 1434, 1447\n1073 <-> 822, 1546\n1074 <-> 7\n1075 <-> 451, 916, 1610\n1076 <-> 340\n1077 <-> 847\n1078 <-> 623, 1960\n1079 <-> 798\n1080 <-> 687\n1081 <-> 662, 1238\n1082 <-> 65, 108, 892\n1083 <-> 1396\n1084 <-> 225\n1085 <-> 128, 1513, 1528\n1086 <-> 47, 527, 935\n1087 <-> 1616, 1823, 1826\n1088 <-> 1071\n1089 <-> 412\n1090 <-> 150, 1652, 1865\n1091 <-> 1091\n1092 <-> 1742\n1093 <-> 1408\n1094 <-> 450, 899, 1719, 1783\n1095 <-> 18\n1096 <-> 1145\n1097 <-> 1571, 1971\n1098 <-> 162, 483, 1268\n1099 <-> 1, 993, 1099, 1584\n1100 <-> 741, 1100\n1101 <-> 368, 705\n1102 <-> 537, 1069\n1103 <-> 119, 1586, 1939\n1104 <-> 171, 986\n1105 <-> 1211, 1443, 1913\n1106 <-> 957, 971, 1568\n1107 <-> 924, 1336, 1487, 1831\n1108 <-> 894\n1109 <-> 767, 1159, 1525\n1110 <-> 1612, 1976\n1111 <-> 1980\n1112 <-> 1012, 1588\n1113 <-> 1028\n1114 <-> 642, 1197\n1115 <-> 23, 215, 501\n1116 <-> 1992\n1117 <-> 1117\n1118 <-> 247, 434, 438\n1119 <-> 187, 1215, 1843\n1120 <-> 1267, 1270\n1121 <-> 1591, 1820\n1122 <-> 1531, 1747\n1123 <-> 1055\n1124 <-> 1654\n1125 <-> 1497\n1126 <-> 123, 1425, 1729\n1127 <-> 216, 242, 509\n1128 <-> 1580\n1129 <-> 251, 1302\n1130 <-> 564\n1131 <-> 1335, 1595\n1132 <-> 30\n1133 <-> 5, 1655\n1134 <-> 779, 861\n1135 <-> 1135\n1136 <-> 7\n1137 <-> 27\n1138 <-> 199\n1139 <-> 271, 1474\n1140 <-> 995, 1430, 1474\n1141 <-> 883\n1142 <-> 70, 1886\n1143 <-> 52, 1143\n1144 <-> 1554\n1145 <-> 1096, 1145\n1146 <-> 1776, 1917\n1147 <-> 874, 1070, 1240\n1148 <-> 1444, 1451, 1961\n1149 <-> 171\n1150 <-> 578, 635, 1583\n1151 <-> 1035, 1348\n1152 <-> 1661\n1153 <-> 1552\n1154 <-> 1154, 1947\n1155 <-> 1155, 1618\n1156 <-> 271, 1677\n1157 <-> 1491, 1592, 1884\n1158 <-> 72, 1220\n1159 <-> 799, 1109\n1160 <-> 1000\n1161 <-> 934, 1951\n1162 <-> 178, 1242, 1905\n1163 <-> 1474\n1164 <-> 261\n1165 <-> 106, 1165, 1676\n1166 <-> 1166\n1167 <-> 766, 1450, 1912, 1927\n1168 <-> 246, 765\n1169 <-> 46, 818\n1170 <-> 1689\n1171 <-> 395\n1172 <-> 847, 1250, 1689\n1173 <-> 1173\n1174 <-> 1893\n1175 <-> 1294\n1176 <-> 800, 953\n1177 <-> 543, 1315\n1178 <-> 322, 464, 691\n1179 <-> 1034, 1238\n1180 <-> 319\n1181 <-> 1996\n1182 <-> 178, 1881\n1183 <-> 827, 1552\n1184 <-> 686, 730\n1185 <-> 110, 1281\n1186 <-> 539, 1217, 1809\n1187 <-> 1242, 1257\n1188 <-> 302, 1071, 1949, 1980\n1189 <-> 1319\n1190 <-> 1947\n1191 <-> 1191\n1192 <-> 590\n1193 <-> 1204, 1260\n1194 <-> 1012\n1195 <-> 497\n1196 <-> 1196, 1516\n1197 <-> 1114\n1198 <-> 702, 778\n1199 <-> 282, 958\n1200 <-> 1664\n1201 <-> 928\n1202 <-> 1202, 1355\n1203 <-> 1203, 1966\n1204 <-> 469, 1193\n1205 <-> 52, 688\n1206 <-> 387\n1207 <-> 1993\n1208 <-> 673, 853, 905\n1209 <-> 136, 1462\n1210 <-> 1021\n1211 <-> 1105, 1211\n1212 <-> 56, 574, 969, 1705\n1213 <-> 612, 1017, 1663\n1214 <-> 723, 860\n1215 <-> 1119, 1615\n1216 <-> 1524, 1798\n1217 <-> 646, 956, 1186\n1218 <-> 235, 1580\n1219 <-> 113, 579, 1841\n1220 <-> 255, 1158, 1681\n1221 <-> 1331, 1360\n1222 <-> 940\n1223 <-> 29, 1237\n1224 <-> 540, 1523\n1225 <-> 597, 749, 1225\n1226 <-> 904, 1226\n1227 <-> 1934\n1228 <-> 1228\n1229 <-> 87, 1064\n1230 <-> 903\n1231 <-> 293, 658, 1402\n1232 <-> 680, 1417\n1233 <-> 787\n1234 <-> 683\n1235 <-> 708\n1236 <-> 278, 913\n1237 <-> 295, 576, 1223\n1238 <-> 1081, 1179, 1326, 1806\n1239 <-> 338\n1240 <-> 702, 1147\n1241 <-> 1921\n1242 <-> 891, 1162, 1187, 1965\n1243 <-> 134, 461, 528\n1244 <-> 579\n1245 <-> 400, 1245, 1864\n1246 <-> 809, 1772\n1247 <-> 656, 684\n1248 <-> 287, 631\n1249 <-> 91, 111, 1782\n1250 <-> 1172\n1251 <-> 572, 1508\n1252 <-> 277, 1067, 1505\n1253 <-> 21, 1639\n1254 <-> 26, 149, 250\n1255 <-> 190, 495\n1256 <-> 1256, 1286\n1257 <-> 101, 471, 1187\n1258 <-> 3, 233, 446, 1309\n1259 <-> 1398\n1260 <-> 1193, 1517\n1261 <-> 1300, 1807\n1262 <-> 1508\n1263 <-> 1973\n1264 <-> 176, 728, 1307\n1265 <-> 1265\n1266 <-> 1507, 1720\n1267 <-> 1120\n1268 <-> 364, 1029, 1098\n1269 <-> 1875\n1270 <-> 1120, 1915\n1271 <-> 448\n1272 <-> 6\n1273 <-> 1273\n1274 <-> 442, 760, 840\n1275 <-> 197, 670, 1450\n1276 <-> 906\n1277 <-> 1060\n1278 <-> 989, 1878, 1986\n1279 <-> 1279, 1848\n1280 <-> 435, 1915\n1281 <-> 1185\n1282 <-> 524\n1283 <-> 1678\n1284 <-> 793, 1706\n1285 <-> 1642\n1286 <-> 796, 1256, 1630\n1287 <-> 976, 1287\n1288 <-> 821\n1289 <-> 415\n1290 <-> 127, 256\n1291 <-> 209\n1292 <-> 932\n1293 <-> 754, 1293\n1294 <-> 180, 1175, 1882\n1295 <-> 859\n1296 <-> 360, 1910\n1297 <-> 258, 1426\n1298 <-> 205\n1299 <-> 661, 1954\n1300 <-> 300, 368, 1261\n1301 <-> 1834, 1847\n1302 <-> 708, 1129\n1303 <-> 958\n1304 <-> 938\n1305 <-> 1305\n1306 <-> 677\n1307 <-> 1264\n1308 <-> 282, 481\n1309 <-> 1258\n1310 <-> 771, 1392\n1311 <-> 203, 281, 424\n1312 <-> 433, 1312, 1671\n1313 <-> 568, 1409, 1861\n1314 <-> 221, 476, 1549\n1315 <-> 1177\n1316 <-> 596\n1317 <-> 1832\n1318 <-> 1468\n1319 <-> 144, 1189, 1319, 1542, 1923\n1320 <-> 210, 541, 575, 1009\n1321 <-> 456\n1322 <-> 654\n1323 <-> 823, 1385\n1324 <-> 692\n1325 <-> 85, 88, 983\n1326 <-> 1238\n1327 <-> 1019, 1387\n1328 <-> 153, 770\n1329 <-> 625, 839\n1330 <-> 672\n1331 <-> 392, 1221\n1332 <-> 245, 542\n1333 <-> 1333\n1334 <-> 405, 1987\n1335 <-> 1131, 1744\n1336 <-> 1107\n1337 <-> 314, 1379\n1338 <-> 848\n1339 <-> 896, 1523\n1340 <-> 211, 1460\n1341 <-> 352, 1459, 1849, 1878\n1342 <-> 629, 645, 1752\n1343 <-> 129\n1344 <-> 1010\n1345 <-> 139, 1051\n1346 <-> 1845\n1347 <-> 76, 506\n1348 <-> 1048, 1151\n1349 <-> 302\n1350 <-> 138, 306, 757\n1351 <-> 156, 209, 799, 1916\n1352 <-> 371, 1352\n1353 <-> 945, 1811\n1354 <-> 1871\n1355 <-> 1202, 1533\n1356 <-> 1548, 1566, 1840\n1357 <-> 312, 786\n1358 <-> 567, 710\n1359 <-> 812\n1360 <-> 327, 1221, 1659\n1361 <-> 704, 1901\n1362 <-> 143, 266, 1551\n1363 <-> 516, 688\n1364 <-> 333\n1365 <-> 421\n1366 <-> 692, 726, 1972\n1367 <-> 1367, 1946\n1368 <-> 682, 933, 1465, 1478\n1369 <-> 1369\n1370 <-> 189\n1371 <-> 215, 1572, 1870\n1372 <-> 1372\n1373 <-> 875\n1374 <-> 803\n1375 <-> 284\n1376 <-> 981, 1545\n1377 <-> 31, 285\n1378 <-> 772, 1378\n1379 <-> 241, 1337, 1587\n1380 <-> 20, 1856\n1381 <-> 228, 926\n1382 <-> 680\n1383 <-> 525\n1384 <-> 1792\n1385 <-> 1323, 1521\n1386 <-> 915\n1387 <-> 782, 1327\n1388 <-> 395, 1416, 1525\n1389 <-> 376, 556\n1390 <-> 1390, 1406\n1391 <-> 783, 1550, 1595\n1392 <-> 365, 1310, 1793\n1393 <-> 1505, 1667\n1394 <-> 12, 586, 1046, 1065\n1395 <-> 680\n1396 <-> 729, 1083\n1397 <-> 848, 1944\n1398 <-> 449, 753, 1259\n1399 <-> 526\n1400 <-> 742\n1401 <-> 1401\n1402 <-> 1231\n1403 <-> 1967\n1404 <-> 544\n1405 <-> 677\n1406 <-> 1390\n1407 <-> 291, 1407\n1408 <-> 1093, 1947\n1409 <-> 1313\n1410 <-> 236, 635, 663\n1411 <-> 151, 866\n1412 <-> 1663\n1413 <-> 887, 1022\n1414 <-> 757, 1666\n1415 <-> 130, 310\n1416 <-> 1025, 1388\n1417 <-> 744, 869, 1232, 1641\n1418 <-> 689\n1419 <-> 669, 987, 1419, 1431\n1420 <-> 901\n1421 <-> 943\n1422 <-> 1422\n1423 <-> 173, 570\n1424 <-> 1424\n1425 <-> 1126\n1426 <-> 66, 1297\n1427 <-> 1466\n1428 <-> 1523, 1626\n1429 <-> 172, 915\n1430 <-> 1030, 1140\n1431 <-> 504, 1419\n1432 <-> 457\n1433 <-> 168, 746\n1434 <-> 949, 1072, 1474\n1435 <-> 1688\n1436 <-> 24, 1624\n1437 <-> 1903\n1438 <-> 1438, 1447\n1439 <-> 831\n1440 <-> 1788\n1441 <-> 1441\n1442 <-> 180\n1443 <-> 1105\n1444 <-> 1148\n1445 <-> 94, 1693\n1446 <-> 15, 620\n1447 <-> 1007, 1072, 1438\n1448 <-> 1617\n1449 <-> 500\n1450 <-> 855, 1167, 1275\n1451 <-> 1148, 1556\n1452 <-> 165, 848\n1453 <-> 90, 1726\n1454 <-> 320, 1869\n1455 <-> 37\n1456 <-> 58\n1457 <-> 288\n1458 <-> 1637\n1459 <-> 1341\n1460 <-> 921, 1340\n1461 <-> 739, 1621\n1462 <-> 248, 1209\n1463 <-> 865\n1464 <-> 1747\n1465 <-> 1368\n1466 <-> 585, 1427, 1655\n1467 <-> 1467\n1468 <-> 1318, 1468\n1469 <-> 792\n1470 <-> 236, 423\n1471 <-> 145\n1472 <-> 1485, 1857\n1473 <-> 4, 254\n1474 <-> 1139, 1140, 1163, 1434\n1475 <-> 396, 1923\n1476 <-> 467, 718\n1477 <-> 16, 1478\n1478 <-> 951, 1368, 1477\n1479 <-> 305, 907, 1675\n1480 <-> 207, 448, 496\n1481 <-> 898, 1890\n1482 <-> 1595\n1483 <-> 859, 1502\n1484 <-> 1545\n1485 <-> 308, 849, 1472\n1486 <-> 290\n1487 <-> 1107\n1488 <-> 76\n1489 <-> 375\n1490 <-> 1490\n1491 <-> 1157, 1510\n1492 <-> 867, 1492\n1493 <-> 297, 1724\n1494 <-> 689, 1494\n1495 <-> 12\n1496 <-> 1636\n1497 <-> 66, 1125\n1498 <-> 429\n1499 <-> 970\n1500 <-> 1664\n1501 <-> 1954\n1502 <-> 306, 1483\n1503 <-> 351, 902\n1504 <-> 373, 1980\n1505 <-> 1252, 1393\n1506 <-> 885, 895\n1507 <-> 118, 262, 714, 1266\n1508 <-> 618, 1251, 1262, 1611\n1509 <-> 315\n1510 <-> 379, 1491\n1511 <-> 578, 886\n1512 <-> 40\n1513 <-> 634, 953, 970, 1085\n1514 <-> 67\n1515 <-> 653\n1516 <-> 92, 1196, 1647\n1517 <-> 876, 1260\n1518 <-> 238, 453\n1519 <-> 416, 1936\n1520 <-> 1609\n1521 <-> 585, 1385\n1522 <-> 44, 499, 532\n1523 <-> 1224, 1339, 1428, 1589\n1524 <-> 731, 1216, 1524\n1525 <-> 582, 1109, 1388\n1526 <-> 594, 799\n1527 <-> 1900, 1906\n1528 <-> 1085\n1529 <-> 1529, 1622\n1530 <-> 134, 1994\n1531 <-> 784, 798, 1122\n1532 <-> 699, 1532\n1533 <-> 1355, 1997\n1534 <-> 874, 1992\n1535 <-> 1777\n1536 <-> 1798\n1537 <-> 84\n1538 <-> 1740\n1539 <-> 1539\n1540 <-> 341\n1541 <-> 186, 351, 906\n1542 <-> 763, 1319\n1543 <-> 437, 1675\n1544 <-> 340, 1544\n1545 <-> 1376, 1484\n1546 <-> 1073, 1987\n1547 <-> 344, 1769\n1548 <-> 1356, 1990\n1549 <-> 214, 1314\n1550 <-> 1391\n1551 <-> 1362, 1929\n1552 <-> 406, 632, 1153, 1183\n1553 <-> 1916\n1554 <-> 1144, 1721, 1984\n1555 <-> 893\n1556 <-> 1451, 1963\n1557 <-> 820\n1558 <-> 1558, 1623\n1559 <-> 777, 1674\n1560 <-> 1560\n1561 <-> 523, 1564\n1562 <-> 205, 1773, 1948, 1985\n1563 <-> 34, 875\n1564 <-> 861, 1561\n1565 <-> 1941\n1566 <-> 1356, 1779\n1567 <-> 544, 1567\n1568 <-> 1106\n1569 <-> 712, 930\n1570 <-> 601\n1571 <-> 1002, 1097\n1572 <-> 1371\n1573 <-> 1573\n1574 <-> 1055, 1942\n1575 <-> 132\n1576 <-> 328\n1577 <-> 241\n1578 <-> 911\n1579 <-> 984\n1580 <-> 427, 1128, 1218\n1581 <-> 486\n1582 <-> 491, 809, 1751, 1842\n1583 <-> 1150\n1584 <-> 1099, 1839\n1585 <-> 1817\n1586 <-> 1103\n1587 <-> 1379\n1588 <-> 744, 1112\n1589 <-> 1523\n1590 <-> 837, 1590\n1591 <-> 29, 1121, 1603\n1592 <-> 1157, 1592\n1593 <-> 575\n1594 <-> 950, 1767\n1595 <-> 339, 1131, 1391, 1482\n1596 <-> 1596\n1597 <-> 1745\n1598 <-> 1036\n1599 <-> 226, 510\n1600 <-> 38\n1601 <-> 485, 1695, 1801\n1602 <-> 205\n1603 <-> 1591\n1604 <-> 1604\n1605 <-> 5, 201, 479\n1606 <-> 313\n1607 <-> 432\n1608 <-> 145, 1906\n1609 <-> 276, 504, 1520\n1610 <-> 1075\n1611 <-> 1508, 1641\n1612 <-> 1110\n1613 <-> 285\n1614 <-> 152\n1615 <-> 351, 759, 1215\n1616 <-> 1087\n1617 <-> 396, 1448\n1618 <-> 1155, 1971\n1619 <-> 672, 961\n1620 <-> 179, 1739\n1621 <-> 1461\n1622 <-> 1529, 1893\n1623 <-> 803, 1558\n1624 <-> 500, 1436\n1625 <-> 682\n1626 <-> 131, 1428\n1627 <-> 314\n1628 <-> 95, 684\n1629 <-> 889, 1629\n1630 <-> 850, 1286\n1631 <-> 947, 1631, 1952\n1632 <-> 386, 1646\n1633 <-> 181\n1634 <-> 6, 1634\n1635 <-> 374, 989\n1636 <-> 687, 1496, 1839\n1637 <-> 54, 259, 739, 1458\n1638 <-> 157, 853\n1639 <-> 1253\n1640 <-> 888, 976, 1679\n1641 <-> 952, 1417, 1611, 1810\n1642 <-> 849, 1285, 1995\n1643 <-> 1774, 1993, 1996\n1644 <-> 516\n1645 <-> 780\n1646 <-> 107, 974, 1632\n1647 <-> 1516\n1648 <-> 77, 153, 794\n1649 <-> 1037\n1650 <-> 1843\n1651 <-> 236\n1652 <-> 825, 1090\n1653 <-> 564\n1654 <-> 1124, 1977\n1655 <-> 1133, 1466\n1656 <-> 154, 357, 557\n1657 <-> 669\n1658 <-> 1670\n1659 <-> 1360, 1840\n1660 <-> 69\n1661 <-> 286, 494, 829, 1152\n1662 <-> 1662, 1663\n1663 <-> 1213, 1412, 1662\n1664 <-> 49, 371, 1200, 1500, 1937\n1665 <-> 733\n1666 <-> 1414\n1667 <-> 329, 365, 1393\n1668 <-> 578, 1934\n1669 <-> 1060, 1935\n1670 <-> 726, 1658\n1671 <-> 863, 1312, 1919\n1672 <-> 255\n1673 <-> 996\n1674 <-> 190, 1559, 1815\n1675 <-> 1479, 1543\n1676 <-> 1165\n1677 <-> 1156\n1678 <-> 853, 1283, 1889\n1679 <-> 1640\n1680 <-> 1055\n1681 <-> 34, 1220\n1682 <-> 1690, 1757\n1683 <-> 1879\n1684 <-> 351, 793\n1685 <-> 504, 865\n1686 <-> 548, 1052, 1686\n1687 <-> 275\n1688 <-> 151, 164, 1435\n1689 <-> 63, 1170, 1172\n1690 <-> 38, 1682\n1691 <-> 391, 411, 789, 851\n1692 <-> 241\n1693 <-> 1445\n1694 <-> 1717\n1695 <-> 1601\n1696 <-> 14\n1697 <-> 978, 1992\n1698 <-> 1997\n1699 <-> 260\n1700 <-> 924\n1701 <-> 215, 303\n1702 <-> 1742\n1703 <-> 519, 1905\n1704 <-> 1025\n1705 <-> 105, 1212\n1706 <-> 727, 834, 1284\n1707 <-> 1707\n1708 <-> 257\n1709 <-> 218\n1710 <-> 1001\n1711 <-> 60, 204\n1712 <-> 1712\n1713 <-> 133, 207, 388\n1714 <-> 746, 953\n1715 <-> 562\n1716 <-> 1716\n1717 <-> 192, 1694\n1718 <-> 988\n1719 <-> 1094\n1720 <-> 815, 1266\n1721 <-> 1554\n1722 <-> 992\n1723 <-> 1723\n1724 <-> 992, 1493, 1745\n1725 <-> 677, 1731\n1726 <-> 29, 1453\n1727 <-> 420, 1858\n1728 <-> 631\n1729 <-> 1126\n1730 <-> 297, 1825\n1731 <-> 1725\n1732 <-> 1732, 1799\n1733 <-> 295\n1734 <-> 131\n1735 <-> 549, 802\n1736 <-> 10, 1757\n1737 <-> 988, 1768\n1738 <-> 972, 1844\n1739 <-> 641, 642, 1620, 1739\n1740 <-> 1538, 1961\n1741 <-> 1935\n1742 <-> 1092, 1702, 1903\n1743 <-> 1845, 1945\n1744 <-> 1335, 1744\n1745 <-> 1597, 1724, 1745\n1746 <-> 1975\n1747 <-> 209, 1122, 1464\n1748 <-> 1047\n1749 <-> 905\n1750 <-> 377, 1996\n1751 <-> 901, 1582\n1752 <-> 1342\n1753 <-> 1974, 1998\n1754 <-> 15, 102\n1755 <-> 782, 1821\n1756 <-> 1756\n1757 <-> 241, 1682, 1736, 1959\n1758 <-> 897\n1759 <-> 1871\n1760 <-> 576\n1761 <-> 733, 1761\n1762 <-> 615, 1882\n1763 <-> 1825\n1764 <-> 320\n1765 <-> 349, 721\n1766 <-> 1781\n1767 <-> 1594, 1767\n1768 <-> 1737\n1769 <-> 161, 385, 1547\n1770 <-> 1046\n1771 <-> 842, 1930\n1772 <-> 1246\n1773 <-> 1562\n1774 <-> 1643\n1775 <-> 1005\n1776 <-> 475, 483, 1146, 1822, 1928\n1777 <-> 1535, 1777\n1778 <-> 529, 1857\n1779 <-> 512, 1566\n1780 <-> 1780\n1781 <-> 55, 389, 1766\n1782 <-> 1249\n1783 <-> 181, 1094, 1933\n1784 <-> 616, 768\n1785 <-> 369, 546\n1786 <-> 493\n1787 <-> 307, 1787\n1788 <-> 1440, 1972\n1789 <-> 318\n1790 <-> 844, 1790\n1791 <-> 487, 899\n1792 <-> 189, 382, 1384\n1793 <-> 966, 1392\n1794 <-> 45, 862\n1795 <-> 1944\n1796 <-> 1064\n1797 <-> 33\n1798 <-> 1216, 1536\n1799 <-> 284, 1732, 1924\n1800 <-> 221, 914\n1801 <-> 1601\n1802 <-> 117, 583, 785\n1803 <-> 995\n1804 <-> 355, 784\n1805 <-> 129\n1806 <-> 1238, 1853\n1807 <-> 1261\n1808 <-> 461\n1809 <-> 180, 316, 602, 1186\n1810 <-> 1641\n1811 <-> 1353\n1812 <-> 159, 458, 559, 1833\n1813 <-> 1880\n1814 <-> 336, 793\n1815 <-> 399, 1674\n1816 <-> 1816\n1817 <-> 20, 1585\n1818 <-> 1017\n1819 <-> 800\n1820 <-> 824, 1121, 1898\n1821 <-> 1755\n1822 <-> 1776\n1823 <-> 1087\n1824 <-> 234, 1017\n1825 <-> 478, 1730, 1763\n1826 <-> 11, 384, 608, 1087, 1884\n1827 <-> 326, 629\n1828 <-> 33, 818\n1829 <-> 630\n1830 <-> 986\n1831 <-> 522, 983, 1107\n1832 <-> 943, 1317, 1860\n1833 <-> 369, 1812\n1834 <-> 1301\n1835 <-> 375\n1836 <-> 394, 652\n1837 <-> 36, 484\n1838 <-> 256, 1912\n1839 <-> 1584, 1636\n1840 <-> 93, 1356, 1659\n1841 <-> 1219\n1842 <-> 1582, 1892\n1843 <-> 805, 1119, 1650\n1844 <-> 208, 594, 1738\n1845 <-> 681, 1346, 1743\n1846 <-> 1846\n1847 <-> 1301, 1847\n1848 <-> 1279\n1849 <-> 1341\n1850 <-> 851, 1850\n1851 <-> 520, 963\n1852 <-> 524, 663, 991, 1936\n1853 <-> 568, 1806\n1854 <-> 405\n1855 <-> 736\n1856 <-> 587, 1380\n1857 <-> 1472, 1778, 1893\n1858 <-> 414, 1727, 1896, 1983\n1859 <-> 1859\n1860 <-> 280, 1832, 1895\n1861 <-> 1313\n1862 <-> 245\n1863 <-> 674, 1863\n1864 <-> 1245\n1865 <-> 884, 1090\n1866 <-> 418, 461\n1867 <-> 686, 1066\n1868 <-> 354, 755, 1909\n1869 <-> 238, 1454\n1870 <-> 713, 1371\n1871 <-> 667, 1354, 1759\n1872 <-> 253, 614, 1054\n1873 <-> 268\n1874 <-> 75, 1927\n1875 <-> 680, 959, 1269\n1876 <-> 628\n1877 <-> 20, 638\n1878 <-> 344, 1278, 1341, 1890\n1879 <-> 1683, 1879\n1880 <-> 199, 592, 1813\n1881 <-> 1182\n1882 <-> 196, 1294, 1762\n1883 <-> 822, 823\n1884 <-> 962, 1157, 1826\n1885 <-> 51, 1923\n1886 <-> 1142\n1887 <-> 294, 879\n1888 <-> 514, 791\n1889 <-> 1678\n1890 <-> 1481, 1878\n1891 <-> 17, 858\n1892 <-> 362, 1842\n1893 <-> 485, 648, 1174, 1622, 1857\n1894 <-> 890\n1895 <-> 1860\n1896 <-> 1858\n1897 <-> 1897\n1898 <-> 1820\n1899 <-> 916\n1900 <-> 1527\n1901 <-> 324, 790, 1361, 1901\n1902 <-> 594\n1903 <-> 650, 1437, 1742, 1903, 1968\n1904 <-> 317\n1905 <-> 679, 1162, 1703\n1906 <-> 1527, 1608, 1932\n1907 <-> 1907\n1908 <-> 1908\n1909 <-> 1868\n1910 <-> 870, 1296\n1911 <-> 223, 239, 402, 877\n1912 <-> 1167, 1838\n1913 <-> 1105\n1914 <-> 123, 166\n1915 <-> 1270, 1280\n1916 <-> 1351, 1553\n1917 <-> 1146\n1918 <-> 1042\n1919 <-> 1671\n1920 <-> 460\n1921 <-> 33, 1241\n1922 <-> 1067\n1923 <-> 1319, 1475, 1885\n1924 <-> 1799\n1925 <-> 290, 981\n1926 <-> 62, 460\n1927 <-> 1167, 1874\n1928 <-> 550, 1776\n1929 <-> 1551\n1930 <-> 1771\n1931 <-> 122, 386\n1932 <-> 1906\n1933 <-> 841, 1783\n1934 <-> 1227, 1668\n1935 <-> 1669, 1741\n1936 <-> 1519, 1852\n1937 <-> 71, 1664\n1938 <-> 283, 456\n1939 <-> 1103\n1940 <-> 0\n1941 <-> 222, 499, 1565, 1941\n1942 <-> 61, 311, 1574\n1943 <-> 161\n1944 <-> 193, 958, 1397, 1795\n1945 <-> 257, 881, 1743\n1946 <-> 1367\n1947 <-> 1154, 1190, 1408\n1948 <-> 1562, 1948\n1949 <-> 1188\n1950 <-> 348\n1951 <-> 178, 835, 1161\n1952 <-> 1631\n1953 <-> 1050\n1954 <-> 977, 1299, 1501\n1955 <-> 804\n1956 <-> 1956\n1957 <-> 323, 657\n1958 <-> 298, 953\n1959 <-> 1757\n1960 <-> 27, 1078\n1961 <-> 387, 861, 1148, 1740\n1962 <-> 732, 1962\n1963 <-> 1556\n1964 <-> 1964\n1965 <-> 1242\n1966 <-> 1203\n1967 <-> 974, 1403\n1968 <-> 1903\n1969 <-> 664\n1970 <-> 17, 509, 1970\n1971 <-> 1097, 1618\n1972 <-> 155, 1366, 1788\n1973 <-> 547, 990, 1263\n1974 <-> 184, 1753\n1975 <-> 229, 1746\n1976 <-> 899, 1110\n1977 <-> 165, 1654\n1978 <-> 969\n1979 <-> 696, 717\n1980 <-> 1111, 1188, 1504\n1981 <-> 595\n1982 <-> 1982\n1983 <-> 380, 1858\n1984 <-> 278, 1554\n1985 <-> 1562\n1986 <-> 1278\n1987 <-> 1334, 1546\n1988 <-> 404\n1989 <-> 588, 1016\n1990 <-> 682, 712, 1548\n1991 <-> 41, 895\n1992 <-> 1116, 1534, 1697\n1993 <-> 15, 1207, 1643\n1994 <-> 1530\n1995 <-> 1642\n1996 <-> 167, 1181, 1643, 1750\n1997 <-> 1533, 1698\n1998 <-> 95, 141, 1753\n1999 <-> 792'
def puzzle1():
programs = []
already_visited = []
ioi = [0]
num_programs = 0
for program in pipes.split('\n'):
programs.append([int(a) for a in program.split('>')[1].split(',')])
while len(IOI) != 0:
for pipe in programs[IOI[0]]:
if not pipe in IOI and (not pipe in already_visited):
IOI.append(pipe)
already_visited.append(IOI[0])
ioi = IOI[1:]
num_programs += 1
return num_programs
def puzzle2():
programs = []
group_num = 0
for program in pipes.split('\n'):
programs.append([int(a) for a in program.split('>')[1].split(',')])
groups = [-1] * len(programs)
for i in range(len(programs)):
if groups[i] == -1:
groups[i] = group_num
ioi = [i]
already_visited = []
while len(IOI) != 0:
for pipe in programs[IOI[0]]:
if not pipe in IOI and (not pipe in already_visited):
IOI.append(pipe)
already_visited.append(IOI[0])
groups[IOI[0]] = group_num
ioi = IOI[1:]
group_num += 1
return group_num
if __name__ == '__main__':
print('1: {}'.format(puzzle1()))
print('2: {}'.format(puzzle2())) |
"""EntryPointCalculator
Entry/Buy: price > btm + atr/2
Exit/Sell: price < top - atr/2
"""
BUY = 1
SELL = 2
class EntryPointCalculator(object):
def __init__(self, trade_type=BUY, atr_factor=1.0):
self.trade_type = trade_type
self.atr_factor = atr_factor
self.pivot = None
self.wait_for_trade = False
def __call__(self, tick):
trade = False
atr = tick["ATR"] * self.atr_factor
if self.trade_type == BUY:
if tick["Btm"]:
self.pivot = tick["Close"]
self.wait_for_trade = True
if self.pivot and self.wait_for_trade and tick["Close"] >= self.pivot + atr / 2.0:
self.wait_for_trade = False
trade = True
elif self.trade_type == SELL:
if tick["Top"]:
self.pivot = tick["Close"]
self.wait_for_trade = True
if self.pivot and self.wait_for_trade and tick["Close"] <= self.pivot - atr / 2.0:
self.wait_for_trade = False
trade = True
return trade
| """EntryPointCalculator
Entry/Buy: price > btm + atr/2
Exit/Sell: price < top - atr/2
"""
buy = 1
sell = 2
class Entrypointcalculator(object):
def __init__(self, trade_type=BUY, atr_factor=1.0):
self.trade_type = trade_type
self.atr_factor = atr_factor
self.pivot = None
self.wait_for_trade = False
def __call__(self, tick):
trade = False
atr = tick['ATR'] * self.atr_factor
if self.trade_type == BUY:
if tick['Btm']:
self.pivot = tick['Close']
self.wait_for_trade = True
if self.pivot and self.wait_for_trade and (tick['Close'] >= self.pivot + atr / 2.0):
self.wait_for_trade = False
trade = True
elif self.trade_type == SELL:
if tick['Top']:
self.pivot = tick['Close']
self.wait_for_trade = True
if self.pivot and self.wait_for_trade and (tick['Close'] <= self.pivot - atr / 2.0):
self.wait_for_trade = False
trade = True
return trade |
class Edge:
"""Lightweight edge structure for a graph."""
__slots__ = "_origin","_destination","_element"
def __init__(self, u, v, x):
"""Do not call constructor directly. Use Graph's insert_edge(u,v,x)."""
self._origin = u
self._destination = v
self._element = x
def endpoints(self):
"""Return (u,v) tuple for vertics u and v."""
return (self._origin,self._destination)
def opposite(self,v):
"""Return a vertex that is opposite of v on this edge."""
return self._destination if v is self._origin else self._origin
def element(self):
"""Return element associated with this edge."""
return self._element
def __hash_(self): # will allow edgge to be a map/set key
return hash((self._origin,self._destination))
| class Edge:
"""Lightweight edge structure for a graph."""
__slots__ = ('_origin', '_destination', '_element')
def __init__(self, u, v, x):
"""Do not call constructor directly. Use Graph's insert_edge(u,v,x)."""
self._origin = u
self._destination = v
self._element = x
def endpoints(self):
"""Return (u,v) tuple for vertics u and v."""
return (self._origin, self._destination)
def opposite(self, v):
"""Return a vertex that is opposite of v on this edge."""
return self._destination if v is self._origin else self._origin
def element(self):
"""Return element associated with this edge."""
return self._element
def __hash_(self):
return hash((self._origin, self._destination)) |
class InvalidHeader(Exception):
"""
- **API Code** : 1000
- **API Message** : Invalid header
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class InvalidRequest(Exception):
"""
- **API Code** : 1001
- **API Message** : Bad request. Error code-1001
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class BAD_SIGNATURE(Exception):
"""
- **API Code** : 1006
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class BLOG_NOT_FOUND(Exception):
"""
- **API Code** : 1202
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class SessionTimeout(Exception):
"""
- **API Code** : 2002
- **API Message** : Session timeout
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class InvalidSession(Exception):
"""
- **API Code** : 2004
- **API Message** : Bad request. Error code-2004
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class InvalidSecurityCode(Exception):
"""
- **API Code** : 2005
- **API Message** : The security code is incorrect. Please try again.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class PasswordTooShort(Exception):
"""
- **API Code** : 2006
- **API Message** : Password must contain 6 characters or more with no spaces.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class InvalidDeviceId(Exception):
"""
- **API Code** : 2007
- **API Message** : The deviceId is not correct
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class EmailNotRegistered(Exception):
"""
- **API Code** : 2009
- **API Message** : The email has not been registered
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class InvalidPassword(Exception):
"""
- **API Code** : 2010
- **API Message** : Password is incorrect. Forgot your password? Trying resetting it.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class CannotFollowDisabled(Exception):
"""
- **API Code** : 2011
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class PHONE_NUMBER_ALREADY_REGISTERED(Exception):
"""
- **API Code** : 2014
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class PHONE_NUMBER_NOT_EXIST(Exception):
"""
- **API Code** : 2016
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class InvalidEmail(Exception):
"""
- **API Code** : 2022
- **API Message** : The email format is invalid.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class INVALID_PTOKEN(Exception):
"""
- **API Code** : 2023
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class ZIDAlreadyChanged(Exception):
"""
- **API Code** : 2028
- **API Message** : Z-ID cannot be modified.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class USER_NOT_FOUND(Exception):
"""
- **API Code** : 2034
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class EMAIL_ALREADY_REGISTERED(Exception):
"""
- **API Code** : 2038
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class TooManyRequests(Exception):
"""
- **API Code** : 2043
- **API Message** : Too many requests. Please wait.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class AccountCreationLimit(Exception):
"""
- **API Code** : 3001
- **API Message** : A maximum of 3 accounts can be created from this device. If you forget your password, please reset it.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class InvalidNickname(Exception):
"""
- **API Code** : 3005
- **API Message** : This nickname is invalid, please try another one.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class CannotFollowSelf(Exception):
"""
- **API Code** : 3103
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class InvalidInvitationCode(Exception):
"""
- **API Code** : 3301
- **API Message** : The invitation code does not exist.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class InvitationCodeAlreadyUsed(Exception):
"""
- **API Code** : 3302
- **API Message** : The invitation code has been used by another user.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class CIRCLE_NOT_FOUND(Exception):
"""
- **API Code** : 4008
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class InvalidTag(Exception):
"""
- **API Code** : 5001
- **API Message** : The tag is invalid, please try another one.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class TagLimitReached(Exception):
"""
- **API Code** : 5002
- **API Message** : The tag count is exceed the max limitation.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class ChatDoesntExistOrNotFound(Exception):
"""
- **API Code** : 6001
- **API Message** : The chat does not exist.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class ROLE_NOT_FOUND(Exception):
"""
- **API Code** : 6003
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class FileTooLarge(Exception):
"""
- **API Code** : 7006
- **API Message** : This audio (``X`` MB) has exceeded the upload limit (2 MB).
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class BadRequest(Exception):
"""
- **API Code** : 9001
- **API Message** : Bad request. Error code-9001
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class SpecifyType(Exception):
"""
Raised when you need to specify the output of the command.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class WrongType(Exception):
"""
Raised when you attribute the function the wrong type.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class NotLoggedIn(Exception):
"""
Raised when you try to make a command but you aren't logged in.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class InvalidFileExtension(Exception):
"""
Raised when you try to upload a picture but the file type is unknown.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class InvalidUrl(Exception):
"""
Raised when you don't put a valid Project Z Url.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class InvalidRegion(Exception):
"""
Raised when you choose a region that doesn't exist. Use ``client.get_content_regions()`` to get the list of them.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class InvalidFile(Exception):
"""
Raised when you use a file that the type isn't ``BinaryIO``.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class LibraryUpdateAvailable(Exception):
"""
Raised when a new library update is available.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
def CheckException(data):
api_code = data["apiCode"]
if api_code == 1000: raise InvalidHeader(data)
elif api_code == 1001: raise InvalidRequest(data)
elif api_code == 1006: raise BAD_SIGNATURE(data)
elif api_code == 1202: raise BLOG_NOT_FOUND(data)
elif api_code == 2002: raise SessionTimeout(data)
elif api_code == 2004: raise InvalidSession(data)
elif api_code == 2005: raise InvalidSecurityCode(data)
elif api_code == 2006: raise PasswordTooShort(data)
elif api_code == 2007: raise InvalidDeviceId(data)
elif api_code == 2009: raise EmailNotRegistered(data)
elif api_code == 2010: raise InvalidPassword(data)
elif api_code == 2011: raise CannotFollowDisabled(data)
elif api_code == 2014: raise PHONE_NUMBER_ALREADY_REGISTERED(data)
elif api_code == 2016: raise PHONE_NUMBER_NOT_EXIST(data)
elif api_code == 2022: raise InvalidEmail(data)
elif api_code == 2023: raise INVALID_PTOKEN(data)
elif api_code == 2028: raise ZIDAlreadyChanged(data)
elif api_code == 2034: raise USER_NOT_FOUND(data)
elif api_code == 2038: raise EMAIL_ALREADY_REGISTERED(data)
elif api_code == 2043: raise TooManyRequests(data)
elif api_code == 3001: raise AccountCreationLimit(data)
elif api_code == 3005: raise InvalidNickname(data)
elif api_code == 3103: raise CannotFollowSelf(data)
elif api_code == 3301: raise InvalidInvitationCode(data)
elif api_code == 3302: raise InvitationCodeAlreadyUsed(data)
elif api_code == 4008: raise CIRCLE_NOT_FOUND(data)
elif api_code == 5001: raise InvalidTag(data)
elif api_code == 5002: raise TagLimitReached(data)
elif api_code == 6001: raise ChatDoesntExistOrNotFound(data)
elif api_code == 6003: raise ROLE_NOT_FOUND(data)
elif api_code == 7006: raise FileTooLarge(data)
elif api_code == 9001: raise BadRequest(data)
else: raise Exception(data) | class Invalidheader(Exception):
"""
- **API Code** : 1000
- **API Message** : Invalid header
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invalidrequest(Exception):
"""
- **API Code** : 1001
- **API Message** : Bad request. Error code-1001
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Bad_Signature(Exception):
"""
- **API Code** : 1006
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Blog_Not_Found(Exception):
"""
- **API Code** : 1202
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Sessiontimeout(Exception):
"""
- **API Code** : 2002
- **API Message** : Session timeout
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invalidsession(Exception):
"""
- **API Code** : 2004
- **API Message** : Bad request. Error code-2004
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invalidsecuritycode(Exception):
"""
- **API Code** : 2005
- **API Message** : The security code is incorrect. Please try again.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Passwordtooshort(Exception):
"""
- **API Code** : 2006
- **API Message** : Password must contain 6 characters or more with no spaces.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invaliddeviceid(Exception):
"""
- **API Code** : 2007
- **API Message** : The deviceId is not correct
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Emailnotregistered(Exception):
"""
- **API Code** : 2009
- **API Message** : The email has not been registered
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invalidpassword(Exception):
"""
- **API Code** : 2010
- **API Message** : Password is incorrect. Forgot your password? Trying resetting it.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Cannotfollowdisabled(Exception):
"""
- **API Code** : 2011
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Phone_Number_Already_Registered(Exception):
"""
- **API Code** : 2014
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Phone_Number_Not_Exist(Exception):
"""
- **API Code** : 2016
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invalidemail(Exception):
"""
- **API Code** : 2022
- **API Message** : The email format is invalid.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invalid_Ptoken(Exception):
"""
- **API Code** : 2023
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Zidalreadychanged(Exception):
"""
- **API Code** : 2028
- **API Message** : Z-ID cannot be modified.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class User_Not_Found(Exception):
"""
- **API Code** : 2034
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Email_Already_Registered(Exception):
"""
- **API Code** : 2038
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Toomanyrequests(Exception):
"""
- **API Code** : 2043
- **API Message** : Too many requests. Please wait.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Accountcreationlimit(Exception):
"""
- **API Code** : 3001
- **API Message** : A maximum of 3 accounts can be created from this device. If you forget your password, please reset it.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invalidnickname(Exception):
"""
- **API Code** : 3005
- **API Message** : This nickname is invalid, please try another one.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Cannotfollowself(Exception):
"""
- **API Code** : 3103
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invalidinvitationcode(Exception):
"""
- **API Code** : 3301
- **API Message** : The invitation code does not exist.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invitationcodealreadyused(Exception):
"""
- **API Code** : 3302
- **API Message** : The invitation code has been used by another user.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Circle_Not_Found(Exception):
"""
- **API Code** : 4008
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invalidtag(Exception):
"""
- **API Code** : 5001
- **API Message** : The tag is invalid, please try another one.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Taglimitreached(Exception):
"""
- **API Code** : 5002
- **API Message** : The tag count is exceed the max limitation.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Chatdoesntexistornotfound(Exception):
"""
- **API Code** : 6001
- **API Message** : The chat does not exist.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Role_Not_Found(Exception):
"""
- **API Code** : 6003
- **API Message** : ``Unknown``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Filetoolarge(Exception):
"""
- **API Code** : 7006
- **API Message** : This audio (``X`` MB) has exceeded the upload limit (2 MB).
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Badrequest(Exception):
"""
- **API Code** : 9001
- **API Message** : Bad request. Error code-9001
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Specifytype(Exception):
"""
Raised when you need to specify the output of the command.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Wrongtype(Exception):
"""
Raised when you attribute the function the wrong type.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Notloggedin(Exception):
"""
Raised when you try to make a command but you aren't logged in.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invalidfileextension(Exception):
"""
Raised when you try to upload a picture but the file type is unknown.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invalidurl(Exception):
"""
Raised when you don't put a valid Project Z Url.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invalidregion(Exception):
"""
Raised when you choose a region that doesn't exist. Use ``client.get_content_regions()`` to get the list of them.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Invalidfile(Exception):
"""
Raised when you use a file that the type isn't ``BinaryIO``.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
class Libraryupdateavailable(Exception):
"""
Raised when a new library update is available.
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
def check_exception(data):
api_code = data['apiCode']
if api_code == 1000:
raise invalid_header(data)
elif api_code == 1001:
raise invalid_request(data)
elif api_code == 1006:
raise bad_signature(data)
elif api_code == 1202:
raise blog_not_found(data)
elif api_code == 2002:
raise session_timeout(data)
elif api_code == 2004:
raise invalid_session(data)
elif api_code == 2005:
raise invalid_security_code(data)
elif api_code == 2006:
raise password_too_short(data)
elif api_code == 2007:
raise invalid_device_id(data)
elif api_code == 2009:
raise email_not_registered(data)
elif api_code == 2010:
raise invalid_password(data)
elif api_code == 2011:
raise cannot_follow_disabled(data)
elif api_code == 2014:
raise phone_number_already_registered(data)
elif api_code == 2016:
raise phone_number_not_exist(data)
elif api_code == 2022:
raise invalid_email(data)
elif api_code == 2023:
raise invalid_ptoken(data)
elif api_code == 2028:
raise zid_already_changed(data)
elif api_code == 2034:
raise user_not_found(data)
elif api_code == 2038:
raise email_already_registered(data)
elif api_code == 2043:
raise too_many_requests(data)
elif api_code == 3001:
raise account_creation_limit(data)
elif api_code == 3005:
raise invalid_nickname(data)
elif api_code == 3103:
raise cannot_follow_self(data)
elif api_code == 3301:
raise invalid_invitation_code(data)
elif api_code == 3302:
raise invitation_code_already_used(data)
elif api_code == 4008:
raise circle_not_found(data)
elif api_code == 5001:
raise invalid_tag(data)
elif api_code == 5002:
raise tag_limit_reached(data)
elif api_code == 6001:
raise chat_doesnt_exist_or_not_found(data)
elif api_code == 6003:
raise role_not_found(data)
elif api_code == 7006:
raise file_too_large(data)
elif api_code == 9001:
raise bad_request(data)
else:
raise exception(data) |
def generate_group_key(name: str):
return {
'PK': f'GROUP#{name.upper()}',
'SK': f'GROUP#{name.upper()}'
}
| def generate_group_key(name: str):
return {'PK': f'GROUP#{name.upper()}', 'SK': f'GROUP#{name.upper()}'} |
power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate Leakage': 0.00662954,
'Peak Dynamic': 0.0,
'Runtime Dynamic': 0.0,
'Subthreshold Leakage': 0.0691322,
'Subthreshold Leakage with power gating': 0.0259246},
'Core': [{'Area': 32.6082,
'Execution Unit/Area': 8.2042,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.110078,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.289148,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.557261,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.122718,
'Execution Unit/Instruction Scheduler/Area': 2.17927,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.522999,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.905645,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.519413,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.94806,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.431528,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 6.75523,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.105279,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0189591,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.179822,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.140214,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.285101,
'Execution Unit/Register Files/Runtime Dynamic': 0.159174,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.464681,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.0814,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155,
'Execution Unit/Runtime Dynamic': 3.88316,
'Execution Unit/Subthreshold Leakage': 1.83518,
'Execution Unit/Subthreshold Leakage with power gating': 0.709678,
'Gate Leakage': 0.372997,
'Instruction Fetch Unit/Area': 5.86007,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00331399,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00331399,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00290087,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.00113084,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00201419,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.011543,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0312603,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0590479,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.134792,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.440489,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.457813,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 8.96874,
'Instruction Fetch Unit/Runtime Dynamic': 1.0759,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932587,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0807418,
'L2/Runtime Dynamic': 0.0153871,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80969,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 4.99783,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.82083,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0351387,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.121668,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.121668,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 5.57471,
'Load Store Unit/Runtime Dynamic': 2.54253,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.300012,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.600024,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591622,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283406,
'Memory Management Unit/Area': 0.434579,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.106475,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.107492,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00813591,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.399995,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0727906,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.742569,
'Memory Management Unit/Runtime Dynamic': 0.180283,
'Memory Management Unit/Subthreshold Leakage': 0.0769113,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462,
'Peak Dynamic': 26.6837,
'Renaming Unit/Area': 0.369768,
'Renaming Unit/FP Front End RAT/Area': 0.168486,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.367293,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925,
'Renaming Unit/Free List/Area': 0.0414755,
'Renaming Unit/Free List/Gate Leakage': 4.15911e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0401324,
'Renaming Unit/Free List/Runtime Dynamic': 0.031163,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987,
'Renaming Unit/Gate Leakage': 0.00863632,
'Renaming Unit/Int Front End RAT/Area': 0.114751,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.265767,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781,
'Renaming Unit/Peak Dynamic': 4.56169,
'Renaming Unit/Runtime Dynamic': 0.664223,
'Renaming Unit/Subthreshold Leakage': 0.070483,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779,
'Runtime Dynamic': 8.36148,
'Subthreshold Leakage': 6.21877,
'Subthreshold Leakage with power gating': 2.58311},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0364225,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.231296,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.167096,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.247957,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.399945,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.201879,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.84978,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.257973,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.63915,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0315681,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0104004,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0900475,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0769175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.121616,
'Execution Unit/Register Files/Runtime Dynamic': 0.0873179,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.198813,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.518096,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 2.09187,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00181785,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00181785,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00162371,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000650641,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00110493,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00636433,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0159872,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0739427,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.70339,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.218692,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.251143,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 7.15017,
'Instruction Fetch Unit/Runtime Dynamic': 0.566128,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0400528,
'L2/Runtime Dynamic': 0.0106666,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.64147,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.16807,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0777864,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0777863,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 4.00879,
'Load Store Unit/Runtime Dynamic': 1.62947,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.191808,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.383615,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0680733,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0685959,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.29244,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0360843,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.565486,
'Memory Management Unit/Runtime Dynamic': 0.10468,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 19.9931,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0830406,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0121977,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.126534,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.221772,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 4.62458,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0603411,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.250083,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.259349,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.249152,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.401873,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.202852,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.853877,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.245195,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.79785,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0489966,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0104506,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.100866,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0772882,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.149862,
'Execution Unit/Register Files/Runtime Dynamic': 0.0877388,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.227584,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.538882,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 2.13596,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00172874,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00172874,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00155042,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000624638,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00111025,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00611814,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0149781,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0742991,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.72606,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.226296,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.252353,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 7.17394,
'Instruction Fetch Unit/Runtime Dynamic': 0.574045,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0211766,
'L2/Runtime Dynamic': 0.00488633,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.43835,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.06337,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0712149,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.071215,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.77464,
'Load Store Unit/Runtime Dynamic': 1.48579,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.175604,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.351208,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0623224,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0625822,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.293849,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0372702,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.557017,
'Memory Management Unit/Runtime Dynamic': 0.0998523,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 19.9141,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.128888,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0128096,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.125747,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.267444,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 4.56798,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.190515,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.352327,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 1.01422,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.299881,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.483697,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.244154,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.02773,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.187482,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 5.98524,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.191607,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0125783,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.162877,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0930246,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.354484,
'Execution Unit/Register Files/Runtime Dynamic': 0.105603,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.390775,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.788674,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 2.67971,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000870459,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000870459,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000764647,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.00029955,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00133631,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00384187,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00811442,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0894269,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.68832,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.231807,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.303734,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 8.1829,
'Instruction Fetch Unit/Runtime Dynamic': 0.636924,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0525827,
'L2/Runtime Dynamic': 0.0034163,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 2.96824,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.833238,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0560059,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0560059,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.23271,
'Load Store Unit/Runtime Dynamic': 1.16545,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.138101,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.276202,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0490125,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0497942,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.353679,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0380247,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.593983,
'Memory Management Unit/Runtime Dynamic': 0.0878189,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 21.6369,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.50403,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0196637,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.141035,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.66473,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 5.23805,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328}],
'DRAM': {'Area': 0,
'Gate Leakage': 0,
'Peak Dynamic': 0.6975723338144482,
'Runtime Dynamic': 0.6975723338144482,
'Subthreshold Leakage': 4.252,
'Subthreshold Leakage with power gating': 4.252},
'L3': [{'Area': 61.9075,
'Gate Leakage': 0.0484137,
'Peak Dynamic': 0.228277,
'Runtime Dynamic': 0.133249,
'Subthreshold Leakage': 6.80085,
'Subthreshold Leakage with power gating': 3.32364}],
'Processor': {'Area': 191.908,
'Gate Leakage': 1.53485,
'Peak Dynamic': 88.4561,
'Peak Power': 121.568,
'Runtime Dynamic': 22.9253,
'Subthreshold Leakage': 31.5774,
'Subthreshold Leakage with power gating': 13.9484,
'Total Cores/Area': 128.669,
'Total Cores/Gate Leakage': 1.4798,
'Total Cores/Peak Dynamic': 88.2278,
'Total Cores/Runtime Dynamic': 22.7921,
'Total Cores/Subthreshold Leakage': 24.7074,
'Total Cores/Subthreshold Leakage with power gating': 10.2429,
'Total L3s/Area': 61.9075,
'Total L3s/Gate Leakage': 0.0484137,
'Total L3s/Peak Dynamic': 0.228277,
'Total L3s/Runtime Dynamic': 0.133249,
'Total L3s/Subthreshold Leakage': 6.80085,
'Total L3s/Subthreshold Leakage with power gating': 3.32364,
'Total Leakage': 33.1122,
'Total NoCs/Area': 1.33155,
'Total NoCs/Gate Leakage': 0.00662954,
'Total NoCs/Peak Dynamic': 0.0,
'Total NoCs/Runtime Dynamic': 0.0,
'Total NoCs/Subthreshold Leakage': 0.0691322,
'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}} | power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.110078, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.289148, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.557261, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.522999, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.905645, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.519413, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.94806, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.431528, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 6.75523, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.105279, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0189591, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.179822, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.140214, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.285101, 'Execution Unit/Register Files/Runtime Dynamic': 0.159174, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.464681, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.0814, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 3.88316, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00331399, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00331399, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00290087, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.00113084, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00201419, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.011543, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0312603, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.134792, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.440489, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.457813, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96874, 'Instruction Fetch Unit/Runtime Dynamic': 1.0759, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0807418, 'L2/Runtime Dynamic': 0.0153871, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 4.99783, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.82083, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.121668, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.121668, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 5.57471, 'Load Store Unit/Runtime Dynamic': 2.54253, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.300012, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.600024, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.106475, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.107492, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0727906, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.742569, 'Memory Management Unit/Runtime Dynamic': 0.180283, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 26.6837, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.367293, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.031163, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.265767, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 0.664223, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 8.36148, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0364225, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.231296, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.167096, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.247957, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.399945, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.201879, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.84978, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.257973, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.63915, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0315681, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0104004, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0900475, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0769175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.121616, 'Execution Unit/Register Files/Runtime Dynamic': 0.0873179, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.198813, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.518096, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.09187, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00181785, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00181785, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00162371, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000650641, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00110493, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00636433, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0159872, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0739427, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.70339, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.218692, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.251143, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.15017, 'Instruction Fetch Unit/Runtime Dynamic': 0.566128, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0400528, 'L2/Runtime Dynamic': 0.0106666, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.64147, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.16807, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0777864, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0777863, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.00879, 'Load Store Unit/Runtime Dynamic': 1.62947, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.191808, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.383615, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0680733, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0685959, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.29244, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0360843, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.565486, 'Memory Management Unit/Runtime Dynamic': 0.10468, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.9931, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0830406, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0121977, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.126534, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.221772, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.62458, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0603411, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.250083, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.259349, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.249152, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.401873, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.202852, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.853877, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.245195, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.79785, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0489966, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0104506, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.100866, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0772882, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.149862, 'Execution Unit/Register Files/Runtime Dynamic': 0.0877388, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.227584, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.538882, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.13596, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00172874, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00172874, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00155042, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000624638, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00111025, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00611814, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0149781, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0742991, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.72606, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.226296, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.252353, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.17394, 'Instruction Fetch Unit/Runtime Dynamic': 0.574045, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0211766, 'L2/Runtime Dynamic': 0.00488633, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.43835, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.06337, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0712149, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.071215, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.77464, 'Load Store Unit/Runtime Dynamic': 1.48579, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.175604, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.351208, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0623224, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0625822, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.293849, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0372702, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.557017, 'Memory Management Unit/Runtime Dynamic': 0.0998523, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.9141, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.128888, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0128096, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.125747, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.267444, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.56798, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.190515, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.352327, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.01422, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.299881, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.483697, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.244154, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.02773, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.187482, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.98524, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.191607, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0125783, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.162877, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0930246, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.354484, 'Execution Unit/Register Files/Runtime Dynamic': 0.105603, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.390775, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.788674, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.67971, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000870459, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000870459, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000764647, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.00029955, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00133631, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00384187, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00811442, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0894269, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.68832, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.231807, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.303734, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.1829, 'Instruction Fetch Unit/Runtime Dynamic': 0.636924, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0525827, 'L2/Runtime Dynamic': 0.0034163, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 2.96824, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.833238, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0560059, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0560059, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.23271, 'Load Store Unit/Runtime Dynamic': 1.16545, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.138101, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.276202, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0490125, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0497942, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.353679, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0380247, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.593983, 'Memory Management Unit/Runtime Dynamic': 0.0878189, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 21.6369, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.50403, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0196637, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.141035, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.66473, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 5.23805, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 0.6975723338144482, 'Runtime Dynamic': 0.6975723338144482, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.228277, 'Runtime Dynamic': 0.133249, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 88.4561, 'Peak Power': 121.568, 'Runtime Dynamic': 22.9253, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 88.2278, 'Total Cores/Runtime Dynamic': 22.7921, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.228277, 'Total L3s/Runtime Dynamic': 0.133249, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}} |
N = int(input())
ans = 0
def sum(n):
return n * (n + 1) // 2
for i in range(N):
A, B = map(int, input().split())
ans += sum(B) - sum(A-1)
print(ans) | n = int(input())
ans = 0
def sum(n):
return n * (n + 1) // 2
for i in range(N):
(a, b) = map(int, input().split())
ans += sum(B) - sum(A - 1)
print(ans) |
"""
Helper functions that parse desired information from Trello cards (aka books).
"""
def get_created_action(card):
"""
Return the date when a card was created.
"""
if not card.actions:
return
for action in card.actions:
if action['type'] == 'createCard':
return action
def get_date_created_in_list(card, list_name):
"""
Return the date a card was created in the specified list.
"""
created_action = get_created_action(card)
if not created_action:
return
if created_action['data']['list']['name'] == list_name:
return created_action['date']
def get_list_change_date(card, list_before_name, list_after_name):
"""
Return the date of when a list changed from the specified before & after lists.
"""
if not card.actions:
return
for action in card.actions:
if all(key in action['data'] for key in ['listBefore', 'listAfter']):
if action['data']['listBefore']['name'] == list_before_name and action['data']['listAfter']['name'] == list_after_name:
return action['date']
def get_date_started(card):
"""
Return the date when a book (card) was started, i.e. moved to or created in the 'Reading' list.
"""
return get_date_created_in_list(card, 'Reading') or \
get_list_change_date(card, 'To Read', 'Reading') or \
get_list_change_date(card, 'Backlog', 'Reading')
def get_date_finished(card):
"""
Return the date when a book (card) was finished, i.e. moved from the 'Reading' to the 'Finished' list.
"""
return get_list_change_date(card, 'Reading', 'Finished')
def remove_cover_attachment_previews(cover_attachment):
"""
Remove the previews element from cover_attachment. It contains a lot of data. Then, return.
"""
del cover_attachment["previews"]
return cover_attachment | """
Helper functions that parse desired information from Trello cards (aka books).
"""
def get_created_action(card):
"""
Return the date when a card was created.
"""
if not card.actions:
return
for action in card.actions:
if action['type'] == 'createCard':
return action
def get_date_created_in_list(card, list_name):
"""
Return the date a card was created in the specified list.
"""
created_action = get_created_action(card)
if not created_action:
return
if created_action['data']['list']['name'] == list_name:
return created_action['date']
def get_list_change_date(card, list_before_name, list_after_name):
"""
Return the date of when a list changed from the specified before & after lists.
"""
if not card.actions:
return
for action in card.actions:
if all((key in action['data'] for key in ['listBefore', 'listAfter'])):
if action['data']['listBefore']['name'] == list_before_name and action['data']['listAfter']['name'] == list_after_name:
return action['date']
def get_date_started(card):
"""
Return the date when a book (card) was started, i.e. moved to or created in the 'Reading' list.
"""
return get_date_created_in_list(card, 'Reading') or get_list_change_date(card, 'To Read', 'Reading') or get_list_change_date(card, 'Backlog', 'Reading')
def get_date_finished(card):
"""
Return the date when a book (card) was finished, i.e. moved from the 'Reading' to the 'Finished' list.
"""
return get_list_change_date(card, 'Reading', 'Finished')
def remove_cover_attachment_previews(cover_attachment):
"""
Remove the previews element from cover_attachment. It contains a lot of data. Then, return.
"""
del cover_attachment['previews']
return cover_attachment |
class Colors:
def __init__(self, mode):
if(not mode):
self.block_E = (205,193,181)
self.scoreboard = (187,173,160)
self.block_2 = (238, 228, 218)
self.block_4 = (237, 224, 200)
self.block_8 = (242, 177, 121)
self.block_16 = (245, 149, 99)
self.block_32 = (246, 124, 95)
self.block_64 = (246, 94, 59)
self.block_128 = (237, 207, 114)
self.block_256 = (237, 204, 97)
self.block_512 = (237, 200, 80)
self.block_1024 = (237, 197, 63)
self.block_2048 = (237, 194, 46)
self.background = (235, 230, 228)
self.letter = (0,0,0)
else:
self.block_E = (16,16,16)
self.scoreboard = (29,36,42)
self.block_2 = (69,74,79)
self.block_4 = (42,54,62)
self.block_8 = (48,46,48)
self.block_16 = (75,46,41)
self.block_32 = (75,58,33)
self.block_64 = (25,78,85)
self.block_128 = (237, 207, 114)
self.block_256 = (237, 204, 97)
self.block_512 = (237, 200, 80)
self.block_1024 = (237, 197, 63)
self.block_2048 = (237, 194, 46)
self.background = (0, 0, 0)
self.letter = (255,255,255)
| class Colors:
def __init__(self, mode):
if not mode:
self.block_E = (205, 193, 181)
self.scoreboard = (187, 173, 160)
self.block_2 = (238, 228, 218)
self.block_4 = (237, 224, 200)
self.block_8 = (242, 177, 121)
self.block_16 = (245, 149, 99)
self.block_32 = (246, 124, 95)
self.block_64 = (246, 94, 59)
self.block_128 = (237, 207, 114)
self.block_256 = (237, 204, 97)
self.block_512 = (237, 200, 80)
self.block_1024 = (237, 197, 63)
self.block_2048 = (237, 194, 46)
self.background = (235, 230, 228)
self.letter = (0, 0, 0)
else:
self.block_E = (16, 16, 16)
self.scoreboard = (29, 36, 42)
self.block_2 = (69, 74, 79)
self.block_4 = (42, 54, 62)
self.block_8 = (48, 46, 48)
self.block_16 = (75, 46, 41)
self.block_32 = (75, 58, 33)
self.block_64 = (25, 78, 85)
self.block_128 = (237, 207, 114)
self.block_256 = (237, 204, 97)
self.block_512 = (237, 200, 80)
self.block_1024 = (237, 197, 63)
self.block_2048 = (237, 194, 46)
self.background = (0, 0, 0)
self.letter = (255, 255, 255) |
class Solution:
def wallsAndGates(self, rooms: List[List[int]]) -> None:
"""
Do not return anything, modify rooms in-place instead.
"""
INF = 2147483647
queue = [(i, j) for i, row in enumerate(rooms) for j, val in enumerate(row) if not val]
for i, j in queue:
for newi, newj in (i - 1, j), (i + 1, j), (i, j - 1), (i, j + 1):
if 0 <= newi < len(rooms) and 0 <= newj < len(rooms[0]) and rooms[newi][newj] == INF:
rooms[newi][newj] = rooms[i][j] + 1
queue.append((newi, newj))
| class Solution:
def walls_and_gates(self, rooms: List[List[int]]) -> None:
"""
Do not return anything, modify rooms in-place instead.
"""
inf = 2147483647
queue = [(i, j) for (i, row) in enumerate(rooms) for (j, val) in enumerate(row) if not val]
for (i, j) in queue:
for (newi, newj) in ((i - 1, j), (i + 1, j), (i, j - 1), (i, j + 1)):
if 0 <= newi < len(rooms) and 0 <= newj < len(rooms[0]) and (rooms[newi][newj] == INF):
rooms[newi][newj] = rooms[i][j] + 1
queue.append((newi, newj)) |
"""CHAPPS Tests
In designing an application like CHAPPS and learning how to test in Python at
the same time, it has been hard to follow a strictly test-driven strategy.
Nevertheless, I have striven to ensure that all features are covered with
tests.
Right now the main deficiency in testing is testing of the install procedure.
That said, there are probably small things here or there which are inadequately
covered.
The tests are only haphazardly documented, and contain some pretty glaring
examples of malignant style inconsistency. There are some comments, and there
is some amount of documentation.
.. todo::
clean up style weirdnesses within testing fixtures; provide better
documentation of tests
"""
| """CHAPPS Tests
In designing an application like CHAPPS and learning how to test in Python at
the same time, it has been hard to follow a strictly test-driven strategy.
Nevertheless, I have striven to ensure that all features are covered with
tests.
Right now the main deficiency in testing is testing of the install procedure.
That said, there are probably small things here or there which are inadequately
covered.
The tests are only haphazardly documented, and contain some pretty glaring
examples of malignant style inconsistency. There are some comments, and there
is some amount of documentation.
.. todo::
clean up style weirdnesses within testing fixtures; provide better
documentation of tests
""" |
class Solution:
def freqAlphabets(self, s: str) -> str:
map_table = {}
for c in 'abcdefghi':
map_table[str(ord(c) - ord('a') + 1)] = c
for c in 'jklmnopqrstuvwxyz':
map_table[str(ord(c) - ord('j') + 10) + '#'] = c
res = []
p = 0
while p < len(s):
if p + 2 < len(s) and s[p+2] == '#':
res.append(map_table[s[p:p+3]])
p += 3
else:
res.append(map_table[s[p]])
p += 1
return ''.join(res) | class Solution:
def freq_alphabets(self, s: str) -> str:
map_table = {}
for c in 'abcdefghi':
map_table[str(ord(c) - ord('a') + 1)] = c
for c in 'jklmnopqrstuvwxyz':
map_table[str(ord(c) - ord('j') + 10) + '#'] = c
res = []
p = 0
while p < len(s):
if p + 2 < len(s) and s[p + 2] == '#':
res.append(map_table[s[p:p + 3]])
p += 3
else:
res.append(map_table[s[p]])
p += 1
return ''.join(res) |
def sort012( a, arr_size):
lo = 0
hi = arr_size - 1
mid = 0
while mid <= hi:
if a[mid] == 0:
a[lo], a[mid] = a[mid], a[lo]
lo = lo + 1
mid = mid + 1
elif a[mid] == 1:
mid = mid + 1
else:
a[mid], a[hi] = a[hi], a[mid]
hi = hi - 1
return a
# Function to print array
def printArray( a):
for k in a:
print (k)
# Driver Program
arr = [0,2,0,1,1]
arr_size = len(arr)
arr = sort012( arr, arr_size)
print ("Array after segregation :\n")
printArray(arr)
| def sort012(a, arr_size):
lo = 0
hi = arr_size - 1
mid = 0
while mid <= hi:
if a[mid] == 0:
(a[lo], a[mid]) = (a[mid], a[lo])
lo = lo + 1
mid = mid + 1
elif a[mid] == 1:
mid = mid + 1
else:
(a[mid], a[hi]) = (a[hi], a[mid])
hi = hi - 1
return a
def print_array(a):
for k in a:
print(k)
arr = [0, 2, 0, 1, 1]
arr_size = len(arr)
arr = sort012(arr, arr_size)
print('Array after segregation :\n')
print_array(arr) |
'''
Jean-Luc Jackson & Connor Lester
CEE cinco zero cinco HW #4
11/07/16
'''
class Path(object):
'''
Class Hosts a Path Object.
Contained Attributes - Path ID, Length, and Node/Line Histories.
'''
def __init__(self, nodeHistory=[], lineHistory=[], length=0.0):
'''
CHANGE SO THAT passes node objects and line objects and can calculate length
by looping through lineHistory and summing up line.getLength() values.
affects Path() implementation in Graph class
'''
# Initialize List of Nodes Visited - Contains Node Objects
self.nodeHistory = nodeHistory
# Initialize List of Lines Traveled - Contains Line Objects
self.lineHistory = lineHistory
# Initialize Length to Zero
self.length = float(length)
# Create pathID
s = ''
for i in range(0,len(nodeHistory)):
s += str(nodeHistory[i].getID()) + ' -> '
self.ID = '( ' + s[:len(s) - 4] + ' )'
'''STANDARD CALLS'''
def __str__(self): # Print Statement
s = "Path {} has a length {} and has seen {} nodes and {} lines."\
.format(self.ID,self.length, len(self.nodeHistory), len(self.lineHistory))
return s
def __add__(self,otherPath): # Add Error If Trying To Add Integer/Float
# Step Through Line - Add Line to lineHistory
newLineHistory = self.lineHistory + otherPath.getLineHistory()
# Step On Node - Add Node to nodeHistory
newNodeHistory = self.nodeHistory + otherPath.getNodeHistory()
# Increase Path's Length
newLength = self.length + otherPath.getLength()
return Path(newNodeHistory, newLineHistory, newLength)
def __sub__(self,otherPath): # Add Error If Trying To Subtract Integer/Float
# Step Back Through Line - Remove Line From lineHistory
newLineHistory = self.lineHistory
newNodeHistory = self.nodeHistory
for line in otherPath.getLineHistory():
newLineHistory = self.lineHistory
self.lineHistory.remove(line)
# Step On Node - Removed Node From nodeHistory
for node in otherPath.getNodeHistory():
newNodeHistory = self.nodeHistory
self.nodeHistory.remove(node)
# Decrease Path's Length
newLength = self.length - otherPath.getLength()
return Path(newNodeHistory, newLineHistory, newLength)
'''INFORMATION CALLS'''
def getID(self):
return self.ID
def getLength(self):
# Return the Current Length
return self.length
def getNodeHistory(self):
# Return Current nodeHistory
return self.nodeHistory
def getLineHistory(self):
# Return Current lineHistory
return self.lineHistory
| """
Jean-Luc Jackson & Connor Lester
CEE cinco zero cinco HW #4
11/07/16
"""
class Path(object):
"""
Class Hosts a Path Object.
Contained Attributes - Path ID, Length, and Node/Line Histories.
"""
def __init__(self, nodeHistory=[], lineHistory=[], length=0.0):
"""
CHANGE SO THAT passes node objects and line objects and can calculate length
by looping through lineHistory and summing up line.getLength() values.
affects Path() implementation in Graph class
"""
self.nodeHistory = nodeHistory
self.lineHistory = lineHistory
self.length = float(length)
s = ''
for i in range(0, len(nodeHistory)):
s += str(nodeHistory[i].getID()) + ' -> '
self.ID = '( ' + s[:len(s) - 4] + ' )'
'STANDARD CALLS'
def __str__(self):
s = 'Path {} has a length {} and has seen {} nodes and {} lines.'.format(self.ID, self.length, len(self.nodeHistory), len(self.lineHistory))
return s
def __add__(self, otherPath):
new_line_history = self.lineHistory + otherPath.getLineHistory()
new_node_history = self.nodeHistory + otherPath.getNodeHistory()
new_length = self.length + otherPath.getLength()
return path(newNodeHistory, newLineHistory, newLength)
def __sub__(self, otherPath):
new_line_history = self.lineHistory
new_node_history = self.nodeHistory
for line in otherPath.getLineHistory():
new_line_history = self.lineHistory
self.lineHistory.remove(line)
for node in otherPath.getNodeHistory():
new_node_history = self.nodeHistory
self.nodeHistory.remove(node)
new_length = self.length - otherPath.getLength()
return path(newNodeHistory, newLineHistory, newLength)
'INFORMATION CALLS'
def get_id(self):
return self.ID
def get_length(self):
return self.length
def get_node_history(self):
return self.nodeHistory
def get_line_history(self):
return self.lineHistory |
[
[float("NaN"), float("NaN"), 99.67229382, 40.73319756],
[float("NaN"), float("NaN"), 84.22728964, 73.36769715],
[float("NaN"), float("NaN"), 99.73572432, 78.98000129],
[float("NaN"), float("NaN"), 99.04333678, 67.27961222],
[float("NaN"), float("NaN"), 97.11394797, 73.68663514],
[float("NaN"), float("NaN"), 96.999092, 93.46713072],
[float("NaN"), float("NaN"), 90.43694792, 103.68320983],
[float("NaN"), float("NaN"), 102.8519688, 101.11961417],
[float("NaN"), float("NaN"), 99.90993163, 85.42558373],
[float("NaN"), float("NaN"), 107.79366763, 88.03810986],
[float("NaN"), float("NaN"), 99.05794738, 119.65446618],
[float("NaN"), float("NaN"), 99.22083223, 116.59635974],
[float("NaN"), float("NaN"), 100.57947524, 130.20558594],
[float("NaN"), float("NaN"), 112.51261199, 118.96909335],
[float("NaN"), float("NaN"), 109.67004987, 73.94938547],
]
| [[float('NaN'), float('NaN'), 99.67229382, 40.73319756], [float('NaN'), float('NaN'), 84.22728964, 73.36769715], [float('NaN'), float('NaN'), 99.73572432, 78.98000129], [float('NaN'), float('NaN'), 99.04333678, 67.27961222], [float('NaN'), float('NaN'), 97.11394797, 73.68663514], [float('NaN'), float('NaN'), 96.999092, 93.46713072], [float('NaN'), float('NaN'), 90.43694792, 103.68320983], [float('NaN'), float('NaN'), 102.8519688, 101.11961417], [float('NaN'), float('NaN'), 99.90993163, 85.42558373], [float('NaN'), float('NaN'), 107.79366763, 88.03810986], [float('NaN'), float('NaN'), 99.05794738, 119.65446618], [float('NaN'), float('NaN'), 99.22083223, 116.59635974], [float('NaN'), float('NaN'), 100.57947524, 130.20558594], [float('NaN'), float('NaN'), 112.51261199, 118.96909335], [float('NaN'), float('NaN'), 109.67004987, 73.94938547]] |
#
# PySNMP MIB module IPFILTER (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IPFILTER
# Produced by pysmi-0.3.4 at Wed May 1 13:55:54 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)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Integer32, Gauge32, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, enterprises, Unsigned32, ModuleIdentity, TimeTicks, Counter64, NotificationType, ObjectIdentity, MibIdentifier, Bits, Counter32, iso = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "Gauge32", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "enterprises", "Unsigned32", "ModuleIdentity", "TimeTicks", "Counter64", "NotificationType", "ObjectIdentity", "MibIdentifier", "Bits", "Counter32", "iso")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
ucdExperimental, = mibBuilder.importSymbols("UCD-SNMP-MIB", "ucdExperimental")
ipFilter = MibIdentifier((1, 3, 6, 1, 4, 1, 2021, 13, 2))
ipfInTable = MibTable((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1), )
if mibBuilder.loadTexts: ipfInTable.setStatus('mandatory')
if mibBuilder.loadTexts: ipfInTable.setDescription('A table with IP Filter incoming rules and statistic')
ipfInEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1, 1), ).setIndexNames((0, "IPFILTER", "ipfInIndex"))
if mibBuilder.loadTexts: ipfInEntry.setStatus('mandatory')
if mibBuilder.loadTexts: ipfInEntry.setDescription('IP Filter incoming rules table entry')
ipfInIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfInIndex.setStatus('mandatory')
if mibBuilder.loadTexts: ipfInIndex.setDescription('Reference index for each incoming IP Filter rule')
ipfInRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1, 1, 2), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfInRule.setStatus('mandatory')
if mibBuilder.loadTexts: ipfInRule.setDescription('Textual representation of the incoming IP Filter rule')
ipfInHits = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfInHits.setStatus('mandatory')
if mibBuilder.loadTexts: ipfInHits.setDescription('Hits of the incoming IP Filter rule')
ipfOutTable = MibTable((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2), )
if mibBuilder.loadTexts: ipfOutTable.setStatus('mandatory')
if mibBuilder.loadTexts: ipfOutTable.setDescription('A table with IP Filter outgoing rules and statistic')
ipfOutEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2, 1), ).setIndexNames((0, "IPFILTER", "ipfOutIndex"))
if mibBuilder.loadTexts: ipfOutEntry.setStatus('mandatory')
if mibBuilder.loadTexts: ipfOutEntry.setDescription('IP Filter outgoing rules table entry')
ipfOutIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfOutIndex.setStatus('mandatory')
if mibBuilder.loadTexts: ipfOutIndex.setDescription('Reference index for each outgoing IP Filter rule')
ipfOutRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2, 1, 2), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfOutRule.setStatus('mandatory')
if mibBuilder.loadTexts: ipfOutRule.setDescription('Textual representation of the outgoing IP Filter rule')
ipfOutHits = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfOutHits.setStatus('mandatory')
if mibBuilder.loadTexts: ipfOutHits.setDescription('Hits of the outgoing IP Filter rule')
ipfAccInTable = MibTable((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3), )
if mibBuilder.loadTexts: ipfAccInTable.setStatus('mandatory')
if mibBuilder.loadTexts: ipfAccInTable.setDescription('A table with IP Filter incoming accounting rules and statistic')
ipfAccInEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1), ).setIndexNames((0, "IPFILTER", "ipfAccInIndex"))
if mibBuilder.loadTexts: ipfAccInEntry.setStatus('mandatory')
if mibBuilder.loadTexts: ipfAccInEntry.setDescription('IP FIlter incoming accounting rules table entry')
ipfAccInIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfAccInIndex.setStatus('mandatory')
if mibBuilder.loadTexts: ipfAccInIndex.setDescription('Reference index for each incoming accounting IP Filter rule')
ipfAccInRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1, 2), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfAccInRule.setStatus('mandatory')
if mibBuilder.loadTexts: ipfAccInRule.setDescription('Textual representation of the incoming accounting IP Filter rule')
ipfAccInHits = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfAccInHits.setStatus('mandatory')
if mibBuilder.loadTexts: ipfAccInHits.setDescription('Hits of the incoming accounting IP Filter rule')
ipfAccInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfAccInBytes.setStatus('mandatory')
if mibBuilder.loadTexts: ipfAccInBytes.setDescription('Bytes passed thru the incoming accounting IP Filter rule')
ipfAccOutTable = MibTable((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4), )
if mibBuilder.loadTexts: ipfAccOutTable.setStatus('mandatory')
if mibBuilder.loadTexts: ipfAccOutTable.setDescription('A table with IP Filter outgoing accounting rules and statistic')
ipfAccOutEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1), ).setIndexNames((0, "IPFILTER", "ipfAccOutIndex"))
if mibBuilder.loadTexts: ipfAccOutEntry.setStatus('mandatory')
if mibBuilder.loadTexts: ipfAccOutEntry.setDescription('IP Filter outgoing accounting rules table entry')
ipfAccOutIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfAccOutIndex.setStatus('mandatory')
if mibBuilder.loadTexts: ipfAccOutIndex.setDescription('Reference index for each outgoing accounting IP Filter rule')
ipfAccOutRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1, 2), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfAccOutRule.setStatus('mandatory')
if mibBuilder.loadTexts: ipfAccOutRule.setDescription('Textual representation of the outgoing accounting IP Filter rule')
ipfAccOutHits = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfAccOutHits.setStatus('mandatory')
if mibBuilder.loadTexts: ipfAccOutHits.setDescription('Hits of the outgoing accounting IP Filter rule')
ipfAccOutBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfAccOutBytes.setStatus('mandatory')
if mibBuilder.loadTexts: ipfAccOutBytes.setDescription('Bytes passed thru the outgoing accounting IP Filter rule')
mibBuilder.exportSymbols("IPFILTER", ipfAccInEntry=ipfAccInEntry, ipfOutRule=ipfOutRule, ipFilter=ipFilter, ipfInRule=ipfInRule, ipfAccOutEntry=ipfAccOutEntry, ipfAccOutIndex=ipfAccOutIndex, ipfAccOutHits=ipfAccOutHits, ipfInIndex=ipfInIndex, ipfAccInTable=ipfAccInTable, ipfAccOutRule=ipfAccOutRule, ipfAccOutBytes=ipfAccOutBytes, ipfAccInIndex=ipfAccInIndex, ipfInTable=ipfInTable, ipfInEntry=ipfInEntry, ipfAccInRule=ipfAccInRule, ipfInHits=ipfInHits, ipfOutTable=ipfOutTable, ipfAccOutTable=ipfAccOutTable, ipfOutIndex=ipfOutIndex, ipfAccInBytes=ipfAccInBytes, ipfOutHits=ipfOutHits, ipfAccInHits=ipfAccInHits, ipfOutEntry=ipfOutEntry)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, single_value_constraint, constraints_intersection, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(integer32, gauge32, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, enterprises, unsigned32, module_identity, time_ticks, counter64, notification_type, object_identity, mib_identifier, bits, counter32, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'Gauge32', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'enterprises', 'Unsigned32', 'ModuleIdentity', 'TimeTicks', 'Counter64', 'NotificationType', 'ObjectIdentity', 'MibIdentifier', 'Bits', 'Counter32', 'iso')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
(ucd_experimental,) = mibBuilder.importSymbols('UCD-SNMP-MIB', 'ucdExperimental')
ip_filter = mib_identifier((1, 3, 6, 1, 4, 1, 2021, 13, 2))
ipf_in_table = mib_table((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1))
if mibBuilder.loadTexts:
ipfInTable.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfInTable.setDescription('A table with IP Filter incoming rules and statistic')
ipf_in_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1, 1)).setIndexNames((0, 'IPFILTER', 'ipfInIndex'))
if mibBuilder.loadTexts:
ipfInEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfInEntry.setDescription('IP Filter incoming rules table entry')
ipf_in_index = mib_table_column((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfInIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfInIndex.setDescription('Reference index for each incoming IP Filter rule')
ipf_in_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1, 1, 2), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfInRule.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfInRule.setDescription('Textual representation of the incoming IP Filter rule')
ipf_in_hits = mib_table_column((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfInHits.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfInHits.setDescription('Hits of the incoming IP Filter rule')
ipf_out_table = mib_table((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2))
if mibBuilder.loadTexts:
ipfOutTable.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfOutTable.setDescription('A table with IP Filter outgoing rules and statistic')
ipf_out_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2, 1)).setIndexNames((0, 'IPFILTER', 'ipfOutIndex'))
if mibBuilder.loadTexts:
ipfOutEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfOutEntry.setDescription('IP Filter outgoing rules table entry')
ipf_out_index = mib_table_column((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfOutIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfOutIndex.setDescription('Reference index for each outgoing IP Filter rule')
ipf_out_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2, 1, 2), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfOutRule.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfOutRule.setDescription('Textual representation of the outgoing IP Filter rule')
ipf_out_hits = mib_table_column((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfOutHits.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfOutHits.setDescription('Hits of the outgoing IP Filter rule')
ipf_acc_in_table = mib_table((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3))
if mibBuilder.loadTexts:
ipfAccInTable.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfAccInTable.setDescription('A table with IP Filter incoming accounting rules and statistic')
ipf_acc_in_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1)).setIndexNames((0, 'IPFILTER', 'ipfAccInIndex'))
if mibBuilder.loadTexts:
ipfAccInEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfAccInEntry.setDescription('IP FIlter incoming accounting rules table entry')
ipf_acc_in_index = mib_table_column((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfAccInIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfAccInIndex.setDescription('Reference index for each incoming accounting IP Filter rule')
ipf_acc_in_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1, 2), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfAccInRule.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfAccInRule.setDescription('Textual representation of the incoming accounting IP Filter rule')
ipf_acc_in_hits = mib_table_column((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfAccInHits.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfAccInHits.setDescription('Hits of the incoming accounting IP Filter rule')
ipf_acc_in_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfAccInBytes.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfAccInBytes.setDescription('Bytes passed thru the incoming accounting IP Filter rule')
ipf_acc_out_table = mib_table((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4))
if mibBuilder.loadTexts:
ipfAccOutTable.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfAccOutTable.setDescription('A table with IP Filter outgoing accounting rules and statistic')
ipf_acc_out_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1)).setIndexNames((0, 'IPFILTER', 'ipfAccOutIndex'))
if mibBuilder.loadTexts:
ipfAccOutEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfAccOutEntry.setDescription('IP Filter outgoing accounting rules table entry')
ipf_acc_out_index = mib_table_column((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfAccOutIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfAccOutIndex.setDescription('Reference index for each outgoing accounting IP Filter rule')
ipf_acc_out_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1, 2), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfAccOutRule.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfAccOutRule.setDescription('Textual representation of the outgoing accounting IP Filter rule')
ipf_acc_out_hits = mib_table_column((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfAccOutHits.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfAccOutHits.setDescription('Hits of the outgoing accounting IP Filter rule')
ipf_acc_out_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfAccOutBytes.setStatus('mandatory')
if mibBuilder.loadTexts:
ipfAccOutBytes.setDescription('Bytes passed thru the outgoing accounting IP Filter rule')
mibBuilder.exportSymbols('IPFILTER', ipfAccInEntry=ipfAccInEntry, ipfOutRule=ipfOutRule, ipFilter=ipFilter, ipfInRule=ipfInRule, ipfAccOutEntry=ipfAccOutEntry, ipfAccOutIndex=ipfAccOutIndex, ipfAccOutHits=ipfAccOutHits, ipfInIndex=ipfInIndex, ipfAccInTable=ipfAccInTable, ipfAccOutRule=ipfAccOutRule, ipfAccOutBytes=ipfAccOutBytes, ipfAccInIndex=ipfAccInIndex, ipfInTable=ipfInTable, ipfInEntry=ipfInEntry, ipfAccInRule=ipfAccInRule, ipfInHits=ipfInHits, ipfOutTable=ipfOutTable, ipfAccOutTable=ipfAccOutTable, ipfOutIndex=ipfOutIndex, ipfAccInBytes=ipfAccInBytes, ipfOutHits=ipfOutHits, ipfAccInHits=ipfAccInHits, ipfOutEntry=ipfOutEntry) |
bunker = {category: [] for category in input().split(", ")}
n = int(input())
bunker['all_items_count'] = 0
bunker['all_quality'] = 0
for _ in range(n):
category, item_name, item_params = input().split(" - ")
item_quantity = int(item_params.split(";")[0].split(":")[1])
item_quality = int(item_params.split(";")[1].split(":")[1])
item_data = {item_name: {'quantity': item_quantity, 'quality': item_quality}}
bunker[category].append(item_data)
bunker['all_items_count'] += item_quantity
bunker['all_quality'] += item_quality
print(f"Count of items: {bunker['all_items_count']}")
print(f"Average quality: {(bunker['all_quality'] / (len(bunker) - 2)):.2f}")
print(*[f"{category} -> {', '.join([list(d.keys())[0] for d in value])}" for category, value in bunker.items() if isinstance(bunker[category], list)], sep='\n')
| bunker = {category: [] for category in input().split(', ')}
n = int(input())
bunker['all_items_count'] = 0
bunker['all_quality'] = 0
for _ in range(n):
(category, item_name, item_params) = input().split(' - ')
item_quantity = int(item_params.split(';')[0].split(':')[1])
item_quality = int(item_params.split(';')[1].split(':')[1])
item_data = {item_name: {'quantity': item_quantity, 'quality': item_quality}}
bunker[category].append(item_data)
bunker['all_items_count'] += item_quantity
bunker['all_quality'] += item_quality
print(f"Count of items: {bunker['all_items_count']}")
print(f"Average quality: {bunker['all_quality'] / (len(bunker) - 2):.2f}")
print(*[f"{category} -> {', '.join([list(d.keys())[0] for d in value])}" for (category, value) in bunker.items() if isinstance(bunker[category], list)], sep='\n') |
#
# PySNMP MIB module CPQCMC-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CPQCMC-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:11:28 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)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint")
compaq, = mibBuilder.importSymbols("CPQHOST-MIB", "compaq")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
sysLocation, sysName, sysDescr, sysContact = mibBuilder.importSymbols("SNMPv2-MIB", "sysLocation", "sysName", "sysDescr", "sysContact")
Bits, Counter64, Integer32, MibIdentifier, iso, NotificationType, Unsigned32, Counter32, NotificationType, ModuleIdentity, TimeTicks, Gauge32, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Counter64", "Integer32", "MibIdentifier", "iso", "NotificationType", "Unsigned32", "Counter32", "NotificationType", "ModuleIdentity", "TimeTicks", "Gauge32", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
cpqCmc = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153))
cpqCmcMibRev = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 1))
cpqCmcComponent = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2))
cpqCmcInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 1))
cpqCmcOsCommon = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 1, 1))
cpqCmcDevice = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2))
cpqCmcSetup = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2))
cpqCmcSetupConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1))
cpqCmcSetupGeneral = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1))
cpqCmcSetupEvents = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2))
cpqCmcSetupTemp1 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1))
cpqCmcSetupTemp2 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2))
cpqCmcSetupFan1 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 3))
cpqCmcSetupFan2 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 4))
cpqCmcSetupVoltage = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5))
cpqCmcSetupHumidity = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6))
cpqCmcSetupInput1 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7))
cpqCmcSetupInput2 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8))
cpqCmcSetupInput3 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9))
cpqCmcSetupInput4 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10))
cpqCmcSetupLock1 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11))
cpqCmcSetupLock2 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12))
cpqCmcSetupSmoke = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13))
cpqCmcSetupShock = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14))
cpqCmcSetupAux1 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15))
cpqCmcSetupAux2 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16))
cpqCmcSetupAlarm1 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 17))
cpqCmcSetupAlarm2 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 18))
cpqCmcSetupClock = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 3))
cpqCmcSetupThreshold = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2))
cpqCmcTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3))
cpqCmcValues = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3))
cpqCmcStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4))
cpqCmcControl = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5))
cpqCmcLog = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6))
cpqCmcMibRevMajor = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcMibRevMajor.setStatus('mandatory')
cpqCmcMibRevMinor = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcMibRevMinor.setStatus('mandatory')
cpqCmcMibCondition = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcMibCondition.setStatus('mandatory')
cpqCmcOsCommonPollFreq = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcOsCommonPollFreq.setStatus('mandatory')
cpqCmcDeviceCondition = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("overloadDC", 3), ("fuseDC", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcDeviceCondition.setStatus('mandatory')
cpqCmcsetLanguage = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("english", 2), ("french", 3), ("italian", 4), ("german", 5), ("spanish", 6), ("dutch", 7), ("japanese", 8)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcsetLanguage.setStatus('mandatory')
cpqCmcsetTempUnit = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("celsius", 2), ("fahrenheit", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcsetTempUnit.setStatus('mandatory')
cpqCmcsetAudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("enableSilence", 2), ("disableSilence", 3), ("off", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcsetAudibleAlarm.setStatus('mandatory')
cpqCmcPassword = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 6))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcPassword.setStatus('mandatory')
cpqCmcPasswordOption = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcPasswordOption.setStatus('mandatory')
cpqCmcquitRelay1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcquitRelay1.setStatus('mandatory')
cpqCmcquitRelay2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcquitRelay2.setStatus('mandatory')
cpqCmclogicRelay1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("closeAtAlarm", 2), ("openAtAlarm", 3), ("closeAtEPO", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmclogicRelay1.setStatus('mandatory')
cpqCmclogicRelay2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("closeAtAlarm", 2), ("openAtAlarm", 3), ("closeAtEPO", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmclogicRelay2.setStatus('mandatory')
cpqCmcSetupTemp1Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTemp1Avail.setStatus('mandatory')
cpqCmcSetupTemp1RelaysWarn = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTemp1RelaysWarn.setStatus('mandatory')
cpqCmcSetupTemp1RelaysMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTemp1RelaysMax.setStatus('mandatory')
cpqCmcSetupTemp1RelaysMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTemp1RelaysMin.setStatus('mandatory')
cpqCmcSetupTemp1AudibleAlarmWarn = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTemp1AudibleAlarmWarn.setStatus('mandatory')
cpqCmcSetupTemp1AudibleAlarmMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTemp1AudibleAlarmMax.setStatus('mandatory')
cpqCmcSetupTemp1AudibleAlarmMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTemp1AudibleAlarmMin.setStatus('mandatory')
cpqCmcSetupTemp2Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTemp2Avail.setStatus('mandatory')
cpqCmcSetupTemp2RelaysWarn = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTemp2RelaysWarn.setStatus('mandatory')
cpqCmcSetupTemp2RelaysMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTemp2RelaysMax.setStatus('mandatory')
cpqCmcSetupTemp2RelaysMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTemp2RelaysMin.setStatus('mandatory')
cpqCmcSetupTemp2AudibleAlarmWarn = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTemp2AudibleAlarmWarn.setStatus('mandatory')
cpqCmcSetupTemp2AudibleAlarmMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTemp2AudibleAlarmMax.setStatus('mandatory')
cpqCmcSetupTemp2AudibleAlarmMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTemp2AudibleAlarmMin.setStatus('mandatory')
cpqCmcSetupFan1Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupFan1Avail.setStatus('mandatory')
cpqCmcSetupFan1Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupFan1Relays.setStatus('mandatory')
cpqCmcSetupFan1AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupFan1AudibleAlarm.setStatus('mandatory')
cpqCmcSetupFan2Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 4, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupFan2Avail.setStatus('mandatory')
cpqCmcSetupFan2Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 4, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupFan2Relays.setStatus('mandatory')
cpqCmcSetupFan2AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 4, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupFan2AudibleAlarm.setStatus('mandatory')
cpqCmcSetupVoltageAvail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupVoltageAvail.setStatus('mandatory')
cpqCmcSetupVoltageRelaysMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupVoltageRelaysMax.setStatus('mandatory')
cpqCmcSetupVoltageRelaysMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupVoltageRelaysMin.setStatus('mandatory')
cpqCmcSetupVoltageAudibleAlarmMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupVoltageAudibleAlarmMax.setStatus('mandatory')
cpqCmcSetupVoltageAudibleAlarmMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupVoltageAudibleAlarmMin.setStatus('mandatory')
cpqCmcSetupHumidityAvail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupHumidityAvail.setStatus('mandatory')
cpqCmcSetupHumidityRelaysMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupHumidityRelaysMax.setStatus('mandatory')
cpqCmcSetupHumidityRelaysMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupHumidityRelaysMin.setStatus('mandatory')
cpqCmcSetupHumidityAudibleAlarmMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupHumidityAudibleAlarmMax.setStatus('mandatory')
cpqCmcSetupHumidityAudibleAlarmMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupHumidityAudibleAlarmMin.setStatus('mandatory')
cpqCmcSetupInput1Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput1Avail.setStatus('mandatory')
cpqCmcSetupInput1Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput1Relays.setStatus('mandatory')
cpqCmcSetupInput1AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput1AudibleAlarm.setStatus('mandatory')
cpqCmcSetupInput1FansOff = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("both", 2), ("fan1", 3), ("fan2", 4), ("noFan", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput1FansOff.setStatus('mandatory')
cpqCmcSetupInput1ShockSensor = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("on", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput1ShockSensor.setStatus('mandatory')
cpqCmcSetupInput1Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput1Description.setStatus('mandatory')
cpqCmcSetupInput1Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("none", 2), ("lock1", 3), ("lock2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput1Lock.setStatus('mandatory')
cpqCmcSetupInput2Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput2Avail.setStatus('mandatory')
cpqCmcSetupInput2Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput2Relays.setStatus('mandatory')
cpqCmcSetupInput2AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput2AudibleAlarm.setStatus('mandatory')
cpqCmcSetupInput2FansOff = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("both", 2), ("fan1", 3), ("fan2", 4), ("noFan", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput2FansOff.setStatus('mandatory')
cpqCmcSetupInput2ShockSensor = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("on", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput2ShockSensor.setStatus('mandatory')
cpqCmcSetupInput2Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput2Description.setStatus('mandatory')
cpqCmcSetupInput2Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("none", 2), ("lock1", 3), ("lock2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput2Lock.setStatus('mandatory')
cpqCmcSetupInput3Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput3Avail.setStatus('mandatory')
cpqCmcSetupInput3Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput3Relays.setStatus('mandatory')
cpqCmcSetupInput3AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput3AudibleAlarm.setStatus('mandatory')
cpqCmcSetupInput3FansOff = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("both", 2), ("fan1", 3), ("fan2", 4), ("noFan", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput3FansOff.setStatus('mandatory')
cpqCmcSetupInput3ShockSensor = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("on", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput3ShockSensor.setStatus('mandatory')
cpqCmcSetupInput3Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput3Description.setStatus('mandatory')
cpqCmcSetupInput3Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("none", 2), ("lock1", 3), ("lock2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput3Lock.setStatus('mandatory')
cpqCmcSetupInput4Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput4Avail.setStatus('mandatory')
cpqCmcSetupInput4Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput4Relays.setStatus('mandatory')
cpqCmcSetupInput4AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput4AudibleAlarm.setStatus('mandatory')
cpqCmcSetupInput4FansOff = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("both", 2), ("fan1", 3), ("fan2", 4), ("noFan", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput4FansOff.setStatus('mandatory')
cpqCmcSetupInput4ShockSensor = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("on", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput4ShockSensor.setStatus('mandatory')
cpqCmcSetupInput4Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput4Description.setStatus('mandatory')
cpqCmcSetupInput4Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("none", 2), ("lock1", 3), ("lock2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupInput4Lock.setStatus('mandatory')
cpqCmcSetupLock1Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock1Avail.setStatus('mandatory')
cpqCmcSetupLock1Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock1Relays.setStatus('mandatory')
cpqCmcSetupLock1RelaysDevice = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock1RelaysDevice.setStatus('mandatory')
cpqCmcSetupLock1AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock1AudibleAlarm.setStatus('mandatory')
cpqCmcSetupLock1AudibleAlarmDevice = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock1AudibleAlarmDevice.setStatus('mandatory')
cpqCmcSetupLock1Time = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 600))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock1Time.setStatus('mandatory')
cpqCmcSetupLock1PwrFailUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock1PwrFailUnlock.setStatus('mandatory')
cpqCmcSetupLock1BattLowUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock1BattLowUnlock.setStatus('mandatory')
cpqCmcSetupLock1NetFailUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock1NetFailUnlock.setStatus('mandatory')
cpqCmcSetupLock1LifeFailUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock1LifeFailUnlock.setStatus('mandatory')
cpqCmcSetupLock2Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock2Avail.setStatus('mandatory')
cpqCmcSetupLock2Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock2Relays.setStatus('mandatory')
cpqCmcSetupLock2RelaysDevice = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock2RelaysDevice.setStatus('mandatory')
cpqCmcSetupLock2AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock2AudibleAlarm.setStatus('mandatory')
cpqCmcSetupLock2AudibleAlarmDevice = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock2AudibleAlarmDevice.setStatus('mandatory')
cpqCmcSetupLock2Time = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 600))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock2Time.setStatus('mandatory')
cpqCmcSetupLock2PwrFailUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock2PwrFailUnlock.setStatus('mandatory')
cpqCmcSetupLock2BattLowUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock2BattLowUnlock.setStatus('mandatory')
cpqCmcSetupLock2NetFailUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock2NetFailUnlock.setStatus('mandatory')
cpqCmcSetupLock2LifeFailUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupLock2LifeFailUnlock.setStatus('mandatory')
cpqCmcSetupSmokeAvail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupSmokeAvail.setStatus('mandatory')
cpqCmcSetupSmokeRelays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupSmokeRelays.setStatus('mandatory')
cpqCmcSetupSmokeAudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupSmokeAudibleAlarm.setStatus('mandatory')
cpqCmcSetupSmokeFansOff = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("both", 2), ("fan1", 3), ("fan2", 4), ("noFan", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupSmokeFansOff.setStatus('mandatory')
cpqCmcSetupSmokeUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("both", 2), ("lock1", 3), ("lock2", 4), ("noLock", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupSmokeUnlock.setStatus('mandatory')
cpqCmcSetupShockAvail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupShockAvail.setStatus('mandatory')
cpqCmcSetupShockRelays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupShockRelays.setStatus('mandatory')
cpqCmcSetupShockAudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupShockAudibleAlarm.setStatus('mandatory')
cpqCmcSetupShockSensitivity = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupShockSensitivity.setStatus('mandatory')
cpqCmcSetupAux1Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAux1Avail.setStatus('mandatory')
cpqCmcSetupAux1Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAux1Relays.setStatus('mandatory')
cpqCmcSetupAux1AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAux1AudibleAlarm.setStatus('mandatory')
cpqCmcSetupAux1InputType = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("normOpen", 2), ("normClosed", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAux1InputType.setStatus('mandatory')
cpqCmcSetupAux1Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAux1Description.setStatus('mandatory')
cpqCmcSetupAux1Unlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("noLock", 2), ("lock1", 3), ("lock2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAux1Unlock.setStatus('mandatory')
cpqCmcSetupAux2Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAux2Avail.setStatus('mandatory')
cpqCmcSetupAux2Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAux2Relays.setStatus('mandatory')
cpqCmcSetupAux2AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAux2AudibleAlarm.setStatus('mandatory')
cpqCmcSetupAux2InputType = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("normOpen", 2), ("normClosed", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAux2InputType.setStatus('mandatory')
cpqCmcSetupAux2Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAux2Description.setStatus('mandatory')
cpqCmcSetupAux2Unlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("noLock", 2), ("lock1", 3), ("lock2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAux2Unlock.setStatus('mandatory')
cpqCmcSetupAlarm1Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 17, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAlarm1Relays.setStatus('mandatory')
cpqCmcSetupAlarm1AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 17, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAlarm1AudibleAlarm.setStatus('mandatory')
cpqCmcSetupAlarm1Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 17, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAlarm1Description.setStatus('mandatory')
cpqCmcSetupAlarm2Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 18, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAlarm2Relays.setStatus('mandatory')
cpqCmcSetupAlarm2AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 18, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAlarm2AudibleAlarm.setStatus('mandatory')
cpqCmcSetupAlarm2Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 18, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupAlarm2Description.setStatus('mandatory')
cpqCmcSetupDate = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 3, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupDate.setStatus('mandatory')
cpqCmcSetupTime = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 3, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetupTime.setStatus('mandatory')
cpqCmcThresholdMaxTemp1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcThresholdMaxTemp1.setStatus('mandatory')
cpqCmcThresholdWarningTemp1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcThresholdWarningTemp1.setStatus('mandatory')
cpqCmcThresholdMinTemp1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcThresholdMinTemp1.setStatus('mandatory')
cpqCmcThresholdMaxTemp2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcThresholdMaxTemp2.setStatus('mandatory')
cpqCmcThresholdWarningTemp2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcThresholdWarningTemp2.setStatus('mandatory')
cpqCmcThresholdMinTemp2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcThresholdMinTemp2.setStatus('mandatory')
cpqCmcThresholdFan1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcThresholdFan1.setStatus('mandatory')
cpqCmcThresholdFan1Hysteresis = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcThresholdFan1Hysteresis.setStatus('mandatory')
cpqCmcThresholdFan2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcThresholdFan2.setStatus('mandatory')
cpqCmcThresholdFan2Hysteresis = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcThresholdFan2Hysteresis.setStatus('mandatory')
cpqCmcThresholdMaxVoltage = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcThresholdMaxVoltage.setStatus('mandatory')
cpqCmcThresholdMinVoltage = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcThresholdMinVoltage.setStatus('mandatory')
cpqCmcThresholdMaxHumidity = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcThresholdMaxHumidity.setStatus('mandatory')
cpqCmcThresholdMinHumidity = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcThresholdMinHumidity.setStatus('mandatory')
cpqCmcTrapTableNumber = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcTrapTableNumber.setStatus('mandatory')
cpqCmcTrapTable = MibTable((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2), )
if mibBuilder.loadTexts: cpqCmcTrapTable.setStatus('mandatory')
cpqCmcTrapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2, 1), ).setIndexNames((0, "CPQCMC-MIB", "cpqCmcTrapIndex"))
if mibBuilder.loadTexts: cpqCmcTrapEntry.setStatus('mandatory')
cpqCmcTrapIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcTrapIndex.setStatus('mandatory')
cpqCmcTrapStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcTrapStatus.setStatus('mandatory')
cpqCmcTrapIPaddress = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcTrapIPaddress.setStatus('mandatory')
cpqCmcValueTemp1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcValueTemp1.setStatus('mandatory')
cpqCmcValueTemp2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcValueTemp2.setStatus('mandatory')
cpqCmcValueVoltage = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcValueVoltage.setStatus('mandatory')
cpqCmcValueHumidity = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcValueHumidity.setStatus('mandatory')
cpqCmcValueOperatingTime = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcValueOperatingTime.setStatus('mandatory')
cpqCmcStatusTemp1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("normal", 2), ("warning", 3), ("overMax", 4), ("underMin", 5), ("noSensor", 6), ("error", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusTemp1.setStatus('mandatory')
cpqCmcStatusTemp2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("normal", 2), ("warning", 3), ("overMax", 4), ("underMin", 5), ("noSensor", 6), ("error", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusTemp2.setStatus('mandatory')
cpqCmcStatusFan1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("other", 1), ("autoOff", 2), ("autoOn", 3), ("manualOff", 4), ("manualOn", 5), ("smokeOff", 6), ("doorOff", 7), ("noFan", 8), ("error", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusFan1.setStatus('mandatory')
cpqCmcStatusFan2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("other", 1), ("autoOff", 2), ("autoOn", 3), ("manualOff", 4), ("manualOn", 5), ("smokeOff", 6), ("doorOff", 7), ("noFan", 8), ("error", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusFan2.setStatus('mandatory')
cpqCmcStatusVoltage = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("normal", 2), ("overMax", 3), ("underMin", 4), ("noVoltage", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusVoltage.setStatus('mandatory')
cpqCmcStatusHumidity = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("normal", 2), ("overMax", 3), ("underMin", 4), ("noSensor", 5), ("error", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusHumidity.setStatus('mandatory')
cpqCmcStatusInput1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("closed", 2), ("open", 3), ("noSensor", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusInput1.setStatus('mandatory')
cpqCmcStatusInput2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("closed", 2), ("open", 3), ("noSensor", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusInput2.setStatus('mandatory')
cpqCmcStatusInput3 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("closed", 2), ("open", 3), ("noSensor", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusInput3.setStatus('mandatory')
cpqCmcStatusInput4 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("closed", 2), ("open", 3), ("noSensor", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusInput4.setStatus('mandatory')
cpqCmcStatusLock1Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=NamedValues(("other", 1), ("locked", 2), ("unlockedAuto", 3), ("unlockedTime", 4), ("unlockedSmoke", 5), ("unlockedKey", 6), ("unlockedPwrFail", 7), ("unlockedBattLow", 8), ("unlockedNetFail", 9), ("unlockedConnFail", 10), ("readyToLock", 11), ("alarm", 12), ("configError", 13), ("notAvail", 14)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusLock1Lock.setStatus('mandatory')
cpqCmcStatusLock2Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=NamedValues(("other", 1), ("locked", 2), ("unlockedAuto", 3), ("unlockedTime", 4), ("unlockedSmoke", 5), ("unlockedKey", 6), ("unlockedPwrFail", 7), ("unlockedBattLow", 8), ("unlockedNetFail", 9), ("unlockedConnFail", 10), ("readyToLock", 11), ("alarm", 12), ("configError", 13), ("notAvail", 14)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusLock2Lock.setStatus('mandatory')
cpqCmcStatusSmoke = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("cleared", 2), ("present", 3), ("noSensor", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusSmoke.setStatus('mandatory')
cpqCmcStatusShock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("cleared", 2), ("present", 3), ("noSensor", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusShock.setStatus('mandatory')
cpqCmcStatusAux1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("alarm", 3), ("noSensor", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusAux1.setStatus('mandatory')
cpqCmcStatusAux2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("alarm", 3), ("noSensor", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusAux2.setStatus('mandatory')
cpqCmcStatusAlarm1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("alarm", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusAlarm1.setStatus('mandatory')
cpqCmcStatusAlarm2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("alarm", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusAlarm2.setStatus('mandatory')
cpqCmcStatusLock1Dev = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("powerFail", 3), ("lowBattery", 4), ("replaceBatt", 5), ("missingBatt", 6), ("noConnect", 7), ("notAvail", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusLock1Dev.setStatus('mandatory')
cpqCmcStatusLock2Dev = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("powerFail", 3), ("lowBattery", 4), ("replaceBatt", 5), ("missingBatt", 6), ("noConnect", 7), ("notAvail", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcStatusLock2Dev.setStatus('mandatory')
cpqCmcStatusAccess = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcStatusAccess.setStatus('mandatory')
cpqCmcSetLock1Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("lockDoor", 2), ("openDoorTime", 3), ("openDoor", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetLock1Lock.setStatus('mandatory')
cpqCmcSetLock1Key = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enableBoth", 3), ("enableKeypad", 4), ("enableRemoteInput", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetLock1Key.setStatus('mandatory')
cpqCmcSetLock2Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("lockDoor", 2), ("openDoorTime", 3), ("openDoor", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetLock2Lock.setStatus('mandatory')
cpqCmcSetLock2Key = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enableBoth", 3), ("enableKeypad", 4), ("enableRemoteInput", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetLock2Key.setStatus('mandatory')
cpqCmcSetMessage = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetMessage.setStatus('mandatory')
cpqCmcSetAlarm1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("clearAlarm", 2), ("setAlarm", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetAlarm1.setStatus('mandatory')
cpqCmcSetAlarm2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("clearAlarm", 2), ("setAlarm", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetAlarm2.setStatus('mandatory')
cpqCmcSetFan1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("auto", 2), ("on", 3), ("off", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetFan1.setStatus('mandatory')
cpqCmcSetFan2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("auto", 2), ("on", 3), ("off", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetFan2.setStatus('mandatory')
cpqCmcSetQuitRelay1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("switched", 2), ("notSwitched", 3), ("quit", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetQuitRelay1.setStatus('mandatory')
cpqCmcSetQuitRelay2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("switched", 2), ("notSwitched", 3), ("quit", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cpqCmcSetQuitRelay2.setStatus('mandatory')
cpqCmcLogsNumber = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcLogsNumber.setStatus('mandatory')
cpqCmcLogTable = MibTable((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2), )
if mibBuilder.loadTexts: cpqCmcLogTable.setStatus('mandatory')
cpqCmcLogEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1), ).setIndexNames((0, "CPQCMC-MIB", "cpqCmcLogIndex"))
if mibBuilder.loadTexts: cpqCmcLogEntry.setStatus('mandatory')
cpqCmcLogIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcLogIndex.setStatus('mandatory')
cpqCmcLogDate = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 11))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcLogDate.setStatus('mandatory')
cpqCmcLogTime = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 11))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcLogTime.setStatus('mandatory')
cpqCmcLogText = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcLogText.setStatus('mandatory')
cpqCmcLogClass = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cpqCmcLogClass.setStatus('mandatory')
cpqCmcalarmTemp1 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153001)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusTemp1"))
cpqCmcalarmTemp2 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153002)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusTemp2"))
cpqCmcalarmFan1 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153003)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusFan1"))
cpqCmcalarmFan2 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153004)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusFan2"))
cpqCmcalarmVoltage = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153005)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusVoltage"))
cpqCmcalarmHumidity = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153006)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusHumidity"))
cpqCmcalarmInput1 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153007)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusInput1"))
cpqCmcalarmInput2 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153008)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusInput2"))
cpqCmcalarmInput3 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153009)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusInput3"))
cpqCmcalarmInput4 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153010)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusInput4"))
cpqCmcalarmLock1 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153011)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusLock1Lock"))
cpqCmcalarmLock2 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153012)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusLock2Lock"))
cpqCmcalarmSmoke = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153013)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusSmoke"))
cpqCmcalarmShock = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153014)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusShock"))
cpqCmcalarmAux1 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153015)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusAux1"))
cpqCmcalarmAux2 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153016)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusAux2"))
cpqCmcalarm1 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153017)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusAlarm1"))
cpqCmcalarm2 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153018)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusAlarm2"))
cpqCmcalarmLock1Dev = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153019)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusLock1Dev"))
cpqCmcalarmLock2Dev = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153020)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusLock2Dev"))
cpqCmcSetupChanged = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153100)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"))
mibBuilder.exportSymbols("CPQCMC-MIB", cpqCmcSetupLock1PwrFailUnlock=cpqCmcSetupLock1PwrFailUnlock, cpqCmcSetupTemp2AudibleAlarmMax=cpqCmcSetupTemp2AudibleAlarmMax, cpqCmcMibRev=cpqCmcMibRev, cpqCmcTrapStatus=cpqCmcTrapStatus, cpqCmcSetupTemp1RelaysMin=cpqCmcSetupTemp1RelaysMin, cpqCmcSetupInput4FansOff=cpqCmcSetupInput4FansOff, cpqCmcStatusAux1=cpqCmcStatusAux1, cpqCmcSetupInput3Relays=cpqCmcSetupInput3Relays, cpqCmcSetupAlarm2AudibleAlarm=cpqCmcSetupAlarm2AudibleAlarm, cpqCmcValueTemp2=cpqCmcValueTemp2, cpqCmcSetupVoltageAudibleAlarmMin=cpqCmcSetupVoltageAudibleAlarmMin, cpqCmcSetupLock2PwrFailUnlock=cpqCmcSetupLock2PwrFailUnlock, cpqCmcSetupInput1Description=cpqCmcSetupInput1Description, cpqCmcStatusTemp2=cpqCmcStatusTemp2, cpqCmcSetupLock2AudibleAlarmDevice=cpqCmcSetupLock2AudibleAlarmDevice, cpqCmcValues=cpqCmcValues, cpqCmcSetupInput2AudibleAlarm=cpqCmcSetupInput2AudibleAlarm, cpqCmcSetupSmokeRelays=cpqCmcSetupSmokeRelays, cpqCmcalarm2=cpqCmcalarm2, cpqCmcSetupLock1AudibleAlarm=cpqCmcSetupLock1AudibleAlarm, cpqCmcSetupAux1AudibleAlarm=cpqCmcSetupAux1AudibleAlarm, cpqCmcSetupAlarm2=cpqCmcSetupAlarm2, cpqCmcMibCondition=cpqCmcMibCondition, cpqCmcStatusInput4=cpqCmcStatusInput4, cpqCmcSetupInput4=cpqCmcSetupInput4, cpqCmcSetupTemp1RelaysMax=cpqCmcSetupTemp1RelaysMax, cpqCmcSetupInput3FansOff=cpqCmcSetupInput3FansOff, cpqCmcsetTempUnit=cpqCmcsetTempUnit, cpqCmcSetupTemp1AudibleAlarmWarn=cpqCmcSetupTemp1AudibleAlarmWarn, cpqCmcSetupInput4Relays=cpqCmcSetupInput4Relays, cpqCmcSetupTemp1AudibleAlarmMax=cpqCmcSetupTemp1AudibleAlarmMax, cpqCmcSetupInput4AudibleAlarm=cpqCmcSetupInput4AudibleAlarm, cpqCmcSetupShockRelays=cpqCmcSetupShockRelays, cpqCmcTrapIPaddress=cpqCmcTrapIPaddress, cpqCmcalarmAux1=cpqCmcalarmAux1, cpqCmcalarmLock1Dev=cpqCmcalarmLock1Dev, cpqCmcSetupInput1AudibleAlarm=cpqCmcSetupInput1AudibleAlarm, cpqCmcSetupAux2AudibleAlarm=cpqCmcSetupAux2AudibleAlarm, cpqCmcThresholdMaxTemp1=cpqCmcThresholdMaxTemp1, cpqCmcMibRevMajor=cpqCmcMibRevMajor, cpqCmcSetupClock=cpqCmcSetupClock, cpqCmcSetupShock=cpqCmcSetupShock, cpqCmcSetup=cpqCmcSetup, cpqCmcSetupInput3AudibleAlarm=cpqCmcSetupInput3AudibleAlarm, cpqCmcSetupAlarm1Relays=cpqCmcSetupAlarm1Relays, cpqCmcSetFan2=cpqCmcSetFan2, cpqCmcSetupHumidity=cpqCmcSetupHumidity, cpqCmcSetupLock2LifeFailUnlock=cpqCmcSetupLock2LifeFailUnlock, cpqCmclogicRelay2=cpqCmclogicRelay2, cpqCmcSetupSmoke=cpqCmcSetupSmoke, cpqCmcSetupTemp1RelaysWarn=cpqCmcSetupTemp1RelaysWarn, cpqCmcSetupTemp2Avail=cpqCmcSetupTemp2Avail, cpqCmcSetupAlarm1AudibleAlarm=cpqCmcSetupAlarm1AudibleAlarm, cpqCmcSetupFan2Relays=cpqCmcSetupFan2Relays, cpqCmcSetupTemp2AudibleAlarmWarn=cpqCmcSetupTemp2AudibleAlarmWarn, cpqCmcStatusShock=cpqCmcStatusShock, cpqCmcSetupFan1Relays=cpqCmcSetupFan1Relays, cpqCmcalarmInput3=cpqCmcalarmInput3, cpqCmcSetupLock1Avail=cpqCmcSetupLock1Avail, cpqCmcComponent=cpqCmcComponent, cpqCmcalarmShock=cpqCmcalarmShock, cpqCmcSetupAux1Description=cpqCmcSetupAux1Description, cpqCmcSetupGeneral=cpqCmcSetupGeneral, cpqCmcSetupLock1Time=cpqCmcSetupLock1Time, cpqCmcLog=cpqCmcLog, cpqCmcLogTable=cpqCmcLogTable, cpqCmcSetupHumidityRelaysMax=cpqCmcSetupHumidityRelaysMax, cpqCmcSetupVoltageRelaysMin=cpqCmcSetupVoltageRelaysMin, cpqCmcSetupSmokeUnlock=cpqCmcSetupSmokeUnlock, cpqCmcSetupAux1=cpqCmcSetupAux1, cpqCmcThresholdWarningTemp1=cpqCmcThresholdWarningTemp1, cpqCmcTraps=cpqCmcTraps, cpqCmcDevice=cpqCmcDevice, cpqCmcStatusLock1Dev=cpqCmcStatusLock1Dev, cpqCmcStatusAccess=cpqCmcStatusAccess, cpqCmcSetQuitRelay1=cpqCmcSetQuitRelay1, cpqCmcLogText=cpqCmcLogText, cpqCmcThresholdFan2Hysteresis=cpqCmcThresholdFan2Hysteresis, cpqCmcalarmSmoke=cpqCmcalarmSmoke, cpqCmcThresholdMaxHumidity=cpqCmcThresholdMaxHumidity, cpqCmcSetupAlarm1Description=cpqCmcSetupAlarm1Description, cpqCmcSetupLock2RelaysDevice=cpqCmcSetupLock2RelaysDevice, cpqCmcSetupLock1LifeFailUnlock=cpqCmcSetupLock1LifeFailUnlock, cpqCmcSetupTime=cpqCmcSetupTime, cpqCmcSetupConfig=cpqCmcSetupConfig, cpqCmcSetupInput3Lock=cpqCmcSetupInput3Lock, cpqCmcSetLock2Key=cpqCmcSetLock2Key, cpqCmcSetupLock1NetFailUnlock=cpqCmcSetupLock1NetFailUnlock, cpqCmcSetupLock1RelaysDevice=cpqCmcSetupLock1RelaysDevice, cpqCmcStatusFan1=cpqCmcStatusFan1, cpqCmcSetupInput2Relays=cpqCmcSetupInput2Relays, cpqCmcStatusVoltage=cpqCmcStatusVoltage, cpqCmcStatusHumidity=cpqCmcStatusHumidity, cpqCmcSetAlarm1=cpqCmcSetAlarm1, cpqCmcSetupHumidityAvail=cpqCmcSetupHumidityAvail, cpqCmcControl=cpqCmcControl, cpqCmcSetupInput4Lock=cpqCmcSetupInput4Lock, cpqCmcSetupInput2ShockSensor=cpqCmcSetupInput2ShockSensor, cpqCmcSetupInput3ShockSensor=cpqCmcSetupInput3ShockSensor, cpqCmcSetupLock1AudibleAlarmDevice=cpqCmcSetupLock1AudibleAlarmDevice, cpqCmcStatusInput1=cpqCmcStatusInput1, cpqCmcalarmHumidity=cpqCmcalarmHumidity, cpqCmcalarmTemp2=cpqCmcalarmTemp2, cpqCmcquitRelay2=cpqCmcquitRelay2, cpqCmcTrapEntry=cpqCmcTrapEntry, cpqCmcalarmAux2=cpqCmcalarmAux2, cpqCmcLogDate=cpqCmcLogDate, cpqCmcPasswordOption=cpqCmcPasswordOption, cpqCmcSetupSmokeAvail=cpqCmcSetupSmokeAvail, cpqCmcOsCommon=cpqCmcOsCommon, cpqCmcSetupSmokeAudibleAlarm=cpqCmcSetupSmokeAudibleAlarm, cpqCmcSetupTemp2=cpqCmcSetupTemp2, cpqCmcStatusLock1Lock=cpqCmcStatusLock1Lock, cpqCmcSetAlarm2=cpqCmcSetAlarm2, cpqCmcSetupLock1Relays=cpqCmcSetupLock1Relays, cpqCmcStatusLock2Lock=cpqCmcStatusLock2Lock, cpqCmcSetupVoltageRelaysMax=cpqCmcSetupVoltageRelaysMax, cpqCmcalarm1=cpqCmcalarm1, cpqCmcSetupLock2=cpqCmcSetupLock2, cpqCmcSetupInput2Lock=cpqCmcSetupInput2Lock, cpqCmcSetLock1Key=cpqCmcSetLock1Key, cpqCmcLogEntry=cpqCmcLogEntry, cpqCmcInterface=cpqCmcInterface, cpqCmcSetupInput1Avail=cpqCmcSetupInput1Avail, cpqCmcSetupInput2Description=cpqCmcSetupInput2Description, cpqCmcSetupAux1InputType=cpqCmcSetupAux1InputType, cpqCmcTrapTable=cpqCmcTrapTable, cpqCmcDeviceCondition=cpqCmcDeviceCondition, cpqCmcSetupInput2Avail=cpqCmcSetupInput2Avail, cpqCmcTrapIndex=cpqCmcTrapIndex, cpqCmcalarmLock1=cpqCmcalarmLock1, cpqCmcalarmTemp1=cpqCmcalarmTemp1, cpqCmcSetupAux2=cpqCmcSetupAux2, cpqCmcThresholdMaxVoltage=cpqCmcThresholdMaxVoltage, cpqCmcSetupTemp2RelaysMin=cpqCmcSetupTemp2RelaysMin, cpqCmcalarmInput2=cpqCmcalarmInput2, cpqCmcSetupAlarm1=cpqCmcSetupAlarm1, cpqCmcalarmInput4=cpqCmcalarmInput4, cpqCmcSetupHumidityAudibleAlarmMax=cpqCmcSetupHumidityAudibleAlarmMax, cpqCmcOsCommonPollFreq=cpqCmcOsCommonPollFreq, cpqCmcSetupTemp1Avail=cpqCmcSetupTemp1Avail, cpqCmcStatusInput3=cpqCmcStatusInput3, cpqCmcSetFan1=cpqCmcSetFan1, cpqCmcalarmFan1=cpqCmcalarmFan1, cpqCmcThresholdMinVoltage=cpqCmcThresholdMinVoltage, cpqCmcValueHumidity=cpqCmcValueHumidity, cpqCmcSetupInput2=cpqCmcSetupInput2, cpqCmcStatusAlarm1=cpqCmcStatusAlarm1, cpqCmcSetupVoltageAvail=cpqCmcSetupVoltageAvail, cpqCmcSetupLock2AudibleAlarm=cpqCmcSetupLock2AudibleAlarm, cpqCmcStatusLock2Dev=cpqCmcStatusLock2Dev, cpqCmcSetupInput3Avail=cpqCmcSetupInput3Avail, cpqCmcSetupInput1Lock=cpqCmcSetupInput1Lock, cpqCmcSetupLock2Relays=cpqCmcSetupLock2Relays, cpqCmcalarmLock2Dev=cpqCmcalarmLock2Dev, cpqCmcalarmLock2=cpqCmcalarmLock2, cpqCmcSetupLock2Avail=cpqCmcSetupLock2Avail, cpqCmcThresholdMinHumidity=cpqCmcThresholdMinHumidity, cpqCmcSetupLock1=cpqCmcSetupLock1, cpqCmcValueVoltage=cpqCmcValueVoltage, cpqCmcStatusInput2=cpqCmcStatusInput2, cpqCmcSetupTemp2RelaysWarn=cpqCmcSetupTemp2RelaysWarn, cpqCmcSetupAux1Unlock=cpqCmcSetupAux1Unlock, cpqCmcSetupInput3=cpqCmcSetupInput3, cpqCmcSetupAux2Description=cpqCmcSetupAux2Description, cpqCmcStatus=cpqCmcStatus, cpqCmcsetLanguage=cpqCmcsetLanguage, cpqCmcSetupLock2NetFailUnlock=cpqCmcSetupLock2NetFailUnlock, cpqCmcStatusSmoke=cpqCmcStatusSmoke, cpqCmcLogsNumber=cpqCmcLogsNumber, cpqCmcSetupDate=cpqCmcSetupDate, cpqCmcStatusTemp1=cpqCmcStatusTemp1, cpqCmcSetupVoltageAudibleAlarmMax=cpqCmcSetupVoltageAudibleAlarmMax, cpqCmclogicRelay1=cpqCmclogicRelay1, cpqCmcSetupShockSensitivity=cpqCmcSetupShockSensitivity, cpqCmcSetupAux1Avail=cpqCmcSetupAux1Avail, cpqCmcSetupLock2BattLowUnlock=cpqCmcSetupLock2BattLowUnlock, cpqCmcSetupEvents=cpqCmcSetupEvents, cpqCmcThresholdWarningTemp2=cpqCmcThresholdWarningTemp2, cpqCmcSetupFan2Avail=cpqCmcSetupFan2Avail, cpqCmcSetupFan1=cpqCmcSetupFan1, cpqCmcStatusFan2=cpqCmcStatusFan2, cpqCmcalarmInput1=cpqCmcalarmInput1, cpqCmcSetupFan2=cpqCmcSetupFan2, cpqCmcSetupAux1Relays=cpqCmcSetupAux1Relays, cpqCmcSetupInput4ShockSensor=cpqCmcSetupInput4ShockSensor, cpqCmcSetupLock1BattLowUnlock=cpqCmcSetupLock1BattLowUnlock, cpqCmcSetupAux2Relays=cpqCmcSetupAux2Relays, cpqCmcThresholdFan1=cpqCmcThresholdFan1, cpqCmcThresholdMaxTemp2=cpqCmcThresholdMaxTemp2, cpqCmcSetupInput1=cpqCmcSetupInput1, cpqCmcSetupInput4Description=cpqCmcSetupInput4Description, cpqCmcLogIndex=cpqCmcLogIndex, cpqCmcalarmVoltage=cpqCmcalarmVoltage, cpqCmcSetupVoltage=cpqCmcSetupVoltage, cpqCmcSetLock1Lock=cpqCmcSetLock1Lock, cpqCmcSetQuitRelay2=cpqCmcSetQuitRelay2, cpqCmcSetupChanged=cpqCmcSetupChanged, cpqCmcSetupInput2FansOff=cpqCmcSetupInput2FansOff, cpqCmcSetupInput3Description=cpqCmcSetupInput3Description, cpqCmcSetupAlarm2Relays=cpqCmcSetupAlarm2Relays, cpqCmcSetupFan1Avail=cpqCmcSetupFan1Avail, cpqCmcSetupHumidityAudibleAlarmMin=cpqCmcSetupHumidityAudibleAlarmMin, cpqCmcSetupShockAudibleAlarm=cpqCmcSetupShockAudibleAlarm, cpqCmcSetupFan1AudibleAlarm=cpqCmcSetupFan1AudibleAlarm, cpqCmcalarmFan2=cpqCmcalarmFan2, cpqCmcThresholdFan2=cpqCmcThresholdFan2, cpqCmcThresholdMinTemp1=cpqCmcThresholdMinTemp1, cpqCmcquitRelay1=cpqCmcquitRelay1, cpqCmcSetLock2Lock=cpqCmcSetLock2Lock, cpqCmcSetupLock2Time=cpqCmcSetupLock2Time, cpqCmcValueOperatingTime=cpqCmcValueOperatingTime, cpqCmcSetupTemp2RelaysMax=cpqCmcSetupTemp2RelaysMax, cpqCmcThresholdMinTemp2=cpqCmcThresholdMinTemp2, cpqCmcSetupThreshold=cpqCmcSetupThreshold, cpqCmcSetupInput1ShockSensor=cpqCmcSetupInput1ShockSensor, cpqCmcStatusAux2=cpqCmcStatusAux2, cpqCmcSetupAux2Unlock=cpqCmcSetupAux2Unlock, cpqCmcSetupTemp2AudibleAlarmMin=cpqCmcSetupTemp2AudibleAlarmMin, cpqCmcSetupFan2AudibleAlarm=cpqCmcSetupFan2AudibleAlarm, cpqCmcLogTime=cpqCmcLogTime, cpqCmcValueTemp1=cpqCmcValueTemp1, cpqCmcSetupAlarm2Description=cpqCmcSetupAlarm2Description, cpqCmcSetMessage=cpqCmcSetMessage, cpqCmcMibRevMinor=cpqCmcMibRevMinor, cpqCmcSetupTemp1=cpqCmcSetupTemp1, cpqCmcsetAudibleAlarm=cpqCmcsetAudibleAlarm, cpqCmcSetupInput1FansOff=cpqCmcSetupInput1FansOff, cpqCmcSetupTemp1AudibleAlarmMin=cpqCmcSetupTemp1AudibleAlarmMin, cpqCmcStatusAlarm2=cpqCmcStatusAlarm2, cpqCmcSetupAux2InputType=cpqCmcSetupAux2InputType, cpqCmcPassword=cpqCmcPassword, cpqCmcLogClass=cpqCmcLogClass, cpqCmcThresholdFan1Hysteresis=cpqCmcThresholdFan1Hysteresis, cpqCmcSetupHumidityRelaysMin=cpqCmcSetupHumidityRelaysMin, cpqCmcSetupInput1Relays=cpqCmcSetupInput1Relays, cpqCmcSetupInput4Avail=cpqCmcSetupInput4Avail, cpqCmcSetupAux2Avail=cpqCmcSetupAux2Avail, cpqCmcTrapTableNumber=cpqCmcTrapTableNumber, cpqCmcSetupShockAvail=cpqCmcSetupShockAvail, cpqCmc=cpqCmc, cpqCmcSetupSmokeFansOff=cpqCmcSetupSmokeFansOff)
| (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, constraints_intersection, single_value_constraint, constraints_union, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint')
(compaq,) = mibBuilder.importSymbols('CPQHOST-MIB', 'compaq')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(sys_location, sys_name, sys_descr, sys_contact) = mibBuilder.importSymbols('SNMPv2-MIB', 'sysLocation', 'sysName', 'sysDescr', 'sysContact')
(bits, counter64, integer32, mib_identifier, iso, notification_type, unsigned32, counter32, notification_type, module_identity, time_ticks, gauge32, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'Counter64', 'Integer32', 'MibIdentifier', 'iso', 'NotificationType', 'Unsigned32', 'Counter32', 'NotificationType', 'ModuleIdentity', 'TimeTicks', 'Gauge32', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
cpq_cmc = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153))
cpq_cmc_mib_rev = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 1))
cpq_cmc_component = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2))
cpq_cmc_interface = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 1))
cpq_cmc_os_common = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 1, 1))
cpq_cmc_device = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2))
cpq_cmc_setup = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2))
cpq_cmc_setup_config = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1))
cpq_cmc_setup_general = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1))
cpq_cmc_setup_events = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2))
cpq_cmc_setup_temp1 = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1))
cpq_cmc_setup_temp2 = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2))
cpq_cmc_setup_fan1 = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 3))
cpq_cmc_setup_fan2 = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 4))
cpq_cmc_setup_voltage = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5))
cpq_cmc_setup_humidity = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6))
cpq_cmc_setup_input1 = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7))
cpq_cmc_setup_input2 = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8))
cpq_cmc_setup_input3 = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9))
cpq_cmc_setup_input4 = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10))
cpq_cmc_setup_lock1 = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11))
cpq_cmc_setup_lock2 = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12))
cpq_cmc_setup_smoke = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13))
cpq_cmc_setup_shock = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14))
cpq_cmc_setup_aux1 = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15))
cpq_cmc_setup_aux2 = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16))
cpq_cmc_setup_alarm1 = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 17))
cpq_cmc_setup_alarm2 = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 18))
cpq_cmc_setup_clock = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 3))
cpq_cmc_setup_threshold = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2))
cpq_cmc_traps = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3))
cpq_cmc_values = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3))
cpq_cmc_status = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4))
cpq_cmc_control = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5))
cpq_cmc_log = mib_identifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6))
cpq_cmc_mib_rev_major = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcMibRevMajor.setStatus('mandatory')
cpq_cmc_mib_rev_minor = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcMibRevMinor.setStatus('mandatory')
cpq_cmc_mib_condition = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('ok', 2), ('degraded', 3), ('failed', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcMibCondition.setStatus('mandatory')
cpq_cmc_os_common_poll_freq = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcOsCommonPollFreq.setStatus('mandatory')
cpq_cmc_device_condition = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('ok', 2), ('overloadDC', 3), ('fuseDC', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcDeviceCondition.setStatus('mandatory')
cpq_cmcset_language = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('other', 1), ('english', 2), ('french', 3), ('italian', 4), ('german', 5), ('spanish', 6), ('dutch', 7), ('japanese', 8)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcsetLanguage.setStatus('mandatory')
cpq_cmcset_temp_unit = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('celsius', 2), ('fahrenheit', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcsetTempUnit.setStatus('mandatory')
cpq_cmcset_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('enableSilence', 2), ('disableSilence', 3), ('off', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcsetAudibleAlarm.setStatus('mandatory')
cpq_cmc_password = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 6))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcPassword.setStatus('mandatory')
cpq_cmc_password_option = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcPasswordOption.setStatus('mandatory')
cpq_cmcquit_relay1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcquitRelay1.setStatus('mandatory')
cpq_cmcquit_relay2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcquitRelay2.setStatus('mandatory')
cpq_cmclogic_relay1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('closeAtAlarm', 2), ('openAtAlarm', 3), ('closeAtEPO', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmclogicRelay1.setStatus('mandatory')
cpq_cmclogic_relay2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('closeAtAlarm', 2), ('openAtAlarm', 3), ('closeAtEPO', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmclogicRelay2.setStatus('mandatory')
cpq_cmc_setup_temp1_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTemp1Avail.setStatus('mandatory')
cpq_cmc_setup_temp1_relays_warn = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTemp1RelaysWarn.setStatus('mandatory')
cpq_cmc_setup_temp1_relays_max = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTemp1RelaysMax.setStatus('mandatory')
cpq_cmc_setup_temp1_relays_min = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTemp1RelaysMin.setStatus('mandatory')
cpq_cmc_setup_temp1_audible_alarm_warn = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTemp1AudibleAlarmWarn.setStatus('mandatory')
cpq_cmc_setup_temp1_audible_alarm_max = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTemp1AudibleAlarmMax.setStatus('mandatory')
cpq_cmc_setup_temp1_audible_alarm_min = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTemp1AudibleAlarmMin.setStatus('mandatory')
cpq_cmc_setup_temp2_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTemp2Avail.setStatus('mandatory')
cpq_cmc_setup_temp2_relays_warn = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTemp2RelaysWarn.setStatus('mandatory')
cpq_cmc_setup_temp2_relays_max = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTemp2RelaysMax.setStatus('mandatory')
cpq_cmc_setup_temp2_relays_min = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTemp2RelaysMin.setStatus('mandatory')
cpq_cmc_setup_temp2_audible_alarm_warn = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTemp2AudibleAlarmWarn.setStatus('mandatory')
cpq_cmc_setup_temp2_audible_alarm_max = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTemp2AudibleAlarmMax.setStatus('mandatory')
cpq_cmc_setup_temp2_audible_alarm_min = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTemp2AudibleAlarmMin.setStatus('mandatory')
cpq_cmc_setup_fan1_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupFan1Avail.setStatus('mandatory')
cpq_cmc_setup_fan1_relays = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 3, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupFan1Relays.setStatus('mandatory')
cpq_cmc_setup_fan1_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 3, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupFan1AudibleAlarm.setStatus('mandatory')
cpq_cmc_setup_fan2_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 4, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupFan2Avail.setStatus('mandatory')
cpq_cmc_setup_fan2_relays = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 4, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupFan2Relays.setStatus('mandatory')
cpq_cmc_setup_fan2_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 4, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupFan2AudibleAlarm.setStatus('mandatory')
cpq_cmc_setup_voltage_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupVoltageAvail.setStatus('mandatory')
cpq_cmc_setup_voltage_relays_max = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupVoltageRelaysMax.setStatus('mandatory')
cpq_cmc_setup_voltage_relays_min = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupVoltageRelaysMin.setStatus('mandatory')
cpq_cmc_setup_voltage_audible_alarm_max = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupVoltageAudibleAlarmMax.setStatus('mandatory')
cpq_cmc_setup_voltage_audible_alarm_min = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupVoltageAudibleAlarmMin.setStatus('mandatory')
cpq_cmc_setup_humidity_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupHumidityAvail.setStatus('mandatory')
cpq_cmc_setup_humidity_relays_max = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupHumidityRelaysMax.setStatus('mandatory')
cpq_cmc_setup_humidity_relays_min = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupHumidityRelaysMin.setStatus('mandatory')
cpq_cmc_setup_humidity_audible_alarm_max = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupHumidityAudibleAlarmMax.setStatus('mandatory')
cpq_cmc_setup_humidity_audible_alarm_min = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupHumidityAudibleAlarmMin.setStatus('mandatory')
cpq_cmc_setup_input1_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput1Avail.setStatus('mandatory')
cpq_cmc_setup_input1_relays = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput1Relays.setStatus('mandatory')
cpq_cmc_setup_input1_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput1AudibleAlarm.setStatus('mandatory')
cpq_cmc_setup_input1_fans_off = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('both', 2), ('fan1', 3), ('fan2', 4), ('noFan', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput1FansOff.setStatus('mandatory')
cpq_cmc_setup_input1_shock_sensor = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('off', 2), ('on', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput1ShockSensor.setStatus('mandatory')
cpq_cmc_setup_input1_description = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 18))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput1Description.setStatus('mandatory')
cpq_cmc_setup_input1_lock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('none', 2), ('lock1', 3), ('lock2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput1Lock.setStatus('mandatory')
cpq_cmc_setup_input2_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput2Avail.setStatus('mandatory')
cpq_cmc_setup_input2_relays = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput2Relays.setStatus('mandatory')
cpq_cmc_setup_input2_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput2AudibleAlarm.setStatus('mandatory')
cpq_cmc_setup_input2_fans_off = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('both', 2), ('fan1', 3), ('fan2', 4), ('noFan', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput2FansOff.setStatus('mandatory')
cpq_cmc_setup_input2_shock_sensor = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('off', 2), ('on', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput2ShockSensor.setStatus('mandatory')
cpq_cmc_setup_input2_description = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 18))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput2Description.setStatus('mandatory')
cpq_cmc_setup_input2_lock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('none', 2), ('lock1', 3), ('lock2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput2Lock.setStatus('mandatory')
cpq_cmc_setup_input3_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput3Avail.setStatus('mandatory')
cpq_cmc_setup_input3_relays = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput3Relays.setStatus('mandatory')
cpq_cmc_setup_input3_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput3AudibleAlarm.setStatus('mandatory')
cpq_cmc_setup_input3_fans_off = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('both', 2), ('fan1', 3), ('fan2', 4), ('noFan', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput3FansOff.setStatus('mandatory')
cpq_cmc_setup_input3_shock_sensor = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('off', 2), ('on', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput3ShockSensor.setStatus('mandatory')
cpq_cmc_setup_input3_description = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 18))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput3Description.setStatus('mandatory')
cpq_cmc_setup_input3_lock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('none', 2), ('lock1', 3), ('lock2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput3Lock.setStatus('mandatory')
cpq_cmc_setup_input4_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput4Avail.setStatus('mandatory')
cpq_cmc_setup_input4_relays = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput4Relays.setStatus('mandatory')
cpq_cmc_setup_input4_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput4AudibleAlarm.setStatus('mandatory')
cpq_cmc_setup_input4_fans_off = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('both', 2), ('fan1', 3), ('fan2', 4), ('noFan', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput4FansOff.setStatus('mandatory')
cpq_cmc_setup_input4_shock_sensor = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('off', 2), ('on', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput4ShockSensor.setStatus('mandatory')
cpq_cmc_setup_input4_description = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 18))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput4Description.setStatus('mandatory')
cpq_cmc_setup_input4_lock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('none', 2), ('lock1', 3), ('lock2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupInput4Lock.setStatus('mandatory')
cpq_cmc_setup_lock1_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock1Avail.setStatus('mandatory')
cpq_cmc_setup_lock1_relays = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock1Relays.setStatus('mandatory')
cpq_cmc_setup_lock1_relays_device = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock1RelaysDevice.setStatus('mandatory')
cpq_cmc_setup_lock1_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock1AudibleAlarm.setStatus('mandatory')
cpq_cmc_setup_lock1_audible_alarm_device = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock1AudibleAlarmDevice.setStatus('mandatory')
cpq_cmc_setup_lock1_time = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 6), integer32().subtype(subtypeSpec=value_range_constraint(3, 600))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock1Time.setStatus('mandatory')
cpq_cmc_setup_lock1_pwr_fail_unlock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('auto', 3), ('manual', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock1PwrFailUnlock.setStatus('mandatory')
cpq_cmc_setup_lock1_batt_low_unlock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('auto', 3), ('manual', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock1BattLowUnlock.setStatus('mandatory')
cpq_cmc_setup_lock1_net_fail_unlock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('auto', 3), ('manual', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock1NetFailUnlock.setStatus('mandatory')
cpq_cmc_setup_lock1_life_fail_unlock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('auto', 3), ('manual', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock1LifeFailUnlock.setStatus('mandatory')
cpq_cmc_setup_lock2_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock2Avail.setStatus('mandatory')
cpq_cmc_setup_lock2_relays = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock2Relays.setStatus('mandatory')
cpq_cmc_setup_lock2_relays_device = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock2RelaysDevice.setStatus('mandatory')
cpq_cmc_setup_lock2_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock2AudibleAlarm.setStatus('mandatory')
cpq_cmc_setup_lock2_audible_alarm_device = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock2AudibleAlarmDevice.setStatus('mandatory')
cpq_cmc_setup_lock2_time = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 6), integer32().subtype(subtypeSpec=value_range_constraint(3, 600))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock2Time.setStatus('mandatory')
cpq_cmc_setup_lock2_pwr_fail_unlock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('auto', 3), ('manual', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock2PwrFailUnlock.setStatus('mandatory')
cpq_cmc_setup_lock2_batt_low_unlock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('auto', 3), ('manual', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock2BattLowUnlock.setStatus('mandatory')
cpq_cmc_setup_lock2_net_fail_unlock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('auto', 3), ('manual', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock2NetFailUnlock.setStatus('mandatory')
cpq_cmc_setup_lock2_life_fail_unlock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('auto', 3), ('manual', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupLock2LifeFailUnlock.setStatus('mandatory')
cpq_cmc_setup_smoke_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupSmokeAvail.setStatus('mandatory')
cpq_cmc_setup_smoke_relays = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupSmokeRelays.setStatus('mandatory')
cpq_cmc_setup_smoke_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupSmokeAudibleAlarm.setStatus('mandatory')
cpq_cmc_setup_smoke_fans_off = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('both', 2), ('fan1', 3), ('fan2', 4), ('noFan', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupSmokeFansOff.setStatus('mandatory')
cpq_cmc_setup_smoke_unlock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('both', 2), ('lock1', 3), ('lock2', 4), ('noLock', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupSmokeUnlock.setStatus('mandatory')
cpq_cmc_setup_shock_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupShockAvail.setStatus('mandatory')
cpq_cmc_setup_shock_relays = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupShockRelays.setStatus('mandatory')
cpq_cmc_setup_shock_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupShockAudibleAlarm.setStatus('mandatory')
cpq_cmc_setup_shock_sensitivity = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 10))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupShockSensitivity.setStatus('mandatory')
cpq_cmc_setup_aux1_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAux1Avail.setStatus('mandatory')
cpq_cmc_setup_aux1_relays = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAux1Relays.setStatus('mandatory')
cpq_cmc_setup_aux1_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAux1AudibleAlarm.setStatus('mandatory')
cpq_cmc_setup_aux1_input_type = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('normOpen', 2), ('normClosed', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAux1InputType.setStatus('mandatory')
cpq_cmc_setup_aux1_description = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 18))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAux1Description.setStatus('mandatory')
cpq_cmc_setup_aux1_unlock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('noLock', 2), ('lock1', 3), ('lock2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAux1Unlock.setStatus('mandatory')
cpq_cmc_setup_aux2_avail = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('available', 2), ('notAvailable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAux2Avail.setStatus('mandatory')
cpq_cmc_setup_aux2_relays = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAux2Relays.setStatus('mandatory')
cpq_cmc_setup_aux2_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAux2AudibleAlarm.setStatus('mandatory')
cpq_cmc_setup_aux2_input_type = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('normOpen', 2), ('normClosed', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAux2InputType.setStatus('mandatory')
cpq_cmc_setup_aux2_description = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 18))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAux2Description.setStatus('mandatory')
cpq_cmc_setup_aux2_unlock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('noLock', 2), ('lock1', 3), ('lock2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAux2Unlock.setStatus('mandatory')
cpq_cmc_setup_alarm1_relays = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 17, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAlarm1Relays.setStatus('mandatory')
cpq_cmc_setup_alarm1_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 17, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAlarm1AudibleAlarm.setStatus('mandatory')
cpq_cmc_setup_alarm1_description = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 17, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 18))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAlarm1Description.setStatus('mandatory')
cpq_cmc_setup_alarm2_relays = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 18, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('relay1', 3), ('relay2', 4), ('both', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAlarm2Relays.setStatus('mandatory')
cpq_cmc_setup_alarm2_audible_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 18, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAlarm2AudibleAlarm.setStatus('mandatory')
cpq_cmc_setup_alarm2_description = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 18, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 18))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupAlarm2Description.setStatus('mandatory')
cpq_cmc_setup_date = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 3, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 10))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupDate.setStatus('mandatory')
cpq_cmc_setup_time = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 3, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetupTime.setStatus('mandatory')
cpq_cmc_threshold_max_temp1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 200))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcThresholdMaxTemp1.setStatus('mandatory')
cpq_cmc_threshold_warning_temp1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 200))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcThresholdWarningTemp1.setStatus('mandatory')
cpq_cmc_threshold_min_temp1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcThresholdMinTemp1.setStatus('mandatory')
cpq_cmc_threshold_max_temp2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 200))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcThresholdMaxTemp2.setStatus('mandatory')
cpq_cmc_threshold_warning_temp2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 200))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcThresholdWarningTemp2.setStatus('mandatory')
cpq_cmc_threshold_min_temp2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcThresholdMinTemp2.setStatus('mandatory')
cpq_cmc_threshold_fan1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 200))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcThresholdFan1.setStatus('mandatory')
cpq_cmc_threshold_fan1_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 20))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcThresholdFan1Hysteresis.setStatus('mandatory')
cpq_cmc_threshold_fan2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 200))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcThresholdFan2.setStatus('mandatory')
cpq_cmc_threshold_fan2_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 20))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcThresholdFan2Hysteresis.setStatus('mandatory')
cpq_cmc_threshold_max_voltage = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcThresholdMaxVoltage.setStatus('mandatory')
cpq_cmc_threshold_min_voltage = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcThresholdMinVoltage.setStatus('mandatory')
cpq_cmc_threshold_max_humidity = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcThresholdMaxHumidity.setStatus('mandatory')
cpq_cmc_threshold_min_humidity = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcThresholdMinHumidity.setStatus('mandatory')
cpq_cmc_trap_table_number = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcTrapTableNumber.setStatus('mandatory')
cpq_cmc_trap_table = mib_table((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2))
if mibBuilder.loadTexts:
cpqCmcTrapTable.setStatus('mandatory')
cpq_cmc_trap_entry = mib_table_row((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2, 1)).setIndexNames((0, 'CPQCMC-MIB', 'cpqCmcTrapIndex'))
if mibBuilder.loadTexts:
cpqCmcTrapEntry.setStatus('mandatory')
cpq_cmc_trap_index = mib_table_column((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcTrapIndex.setStatus('mandatory')
cpq_cmc_trap_status = mib_table_column((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcTrapStatus.setStatus('mandatory')
cpq_cmc_trap_i_paddress = mib_table_column((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcTrapIPaddress.setStatus('mandatory')
cpq_cmc_value_temp1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcValueTemp1.setStatus('mandatory')
cpq_cmc_value_temp2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcValueTemp2.setStatus('mandatory')
cpq_cmc_value_voltage = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcValueVoltage.setStatus('mandatory')
cpq_cmc_value_humidity = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcValueHumidity.setStatus('mandatory')
cpq_cmc_value_operating_time = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcValueOperatingTime.setStatus('mandatory')
cpq_cmc_status_temp1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('normal', 2), ('warning', 3), ('overMax', 4), ('underMin', 5), ('noSensor', 6), ('error', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusTemp1.setStatus('mandatory')
cpq_cmc_status_temp2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('normal', 2), ('warning', 3), ('overMax', 4), ('underMin', 5), ('noSensor', 6), ('error', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusTemp2.setStatus('mandatory')
cpq_cmc_status_fan1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('other', 1), ('autoOff', 2), ('autoOn', 3), ('manualOff', 4), ('manualOn', 5), ('smokeOff', 6), ('doorOff', 7), ('noFan', 8), ('error', 9)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusFan1.setStatus('mandatory')
cpq_cmc_status_fan2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('other', 1), ('autoOff', 2), ('autoOn', 3), ('manualOff', 4), ('manualOn', 5), ('smokeOff', 6), ('doorOff', 7), ('noFan', 8), ('error', 9)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusFan2.setStatus('mandatory')
cpq_cmc_status_voltage = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('normal', 2), ('overMax', 3), ('underMin', 4), ('noVoltage', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusVoltage.setStatus('mandatory')
cpq_cmc_status_humidity = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('normal', 2), ('overMax', 3), ('underMin', 4), ('noSensor', 5), ('error', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusHumidity.setStatus('mandatory')
cpq_cmc_status_input1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('closed', 2), ('open', 3), ('noSensor', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusInput1.setStatus('mandatory')
cpq_cmc_status_input2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('closed', 2), ('open', 3), ('noSensor', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusInput2.setStatus('mandatory')
cpq_cmc_status_input3 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('closed', 2), ('open', 3), ('noSensor', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusInput3.setStatus('mandatory')
cpq_cmc_status_input4 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('closed', 2), ('open', 3), ('noSensor', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusInput4.setStatus('mandatory')
cpq_cmc_status_lock1_lock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=named_values(('other', 1), ('locked', 2), ('unlockedAuto', 3), ('unlockedTime', 4), ('unlockedSmoke', 5), ('unlockedKey', 6), ('unlockedPwrFail', 7), ('unlockedBattLow', 8), ('unlockedNetFail', 9), ('unlockedConnFail', 10), ('readyToLock', 11), ('alarm', 12), ('configError', 13), ('notAvail', 14)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusLock1Lock.setStatus('mandatory')
cpq_cmc_status_lock2_lock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=named_values(('other', 1), ('locked', 2), ('unlockedAuto', 3), ('unlockedTime', 4), ('unlockedSmoke', 5), ('unlockedKey', 6), ('unlockedPwrFail', 7), ('unlockedBattLow', 8), ('unlockedNetFail', 9), ('unlockedConnFail', 10), ('readyToLock', 11), ('alarm', 12), ('configError', 13), ('notAvail', 14)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusLock2Lock.setStatus('mandatory')
cpq_cmc_status_smoke = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('cleared', 2), ('present', 3), ('noSensor', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusSmoke.setStatus('mandatory')
cpq_cmc_status_shock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('cleared', 2), ('present', 3), ('noSensor', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusShock.setStatus('mandatory')
cpq_cmc_status_aux1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('ok', 2), ('alarm', 3), ('noSensor', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusAux1.setStatus('mandatory')
cpq_cmc_status_aux2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('ok', 2), ('alarm', 3), ('noSensor', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusAux2.setStatus('mandatory')
cpq_cmc_status_alarm1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('ok', 2), ('alarm', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusAlarm1.setStatus('mandatory')
cpq_cmc_status_alarm2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('ok', 2), ('alarm', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusAlarm2.setStatus('mandatory')
cpq_cmc_status_lock1_dev = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('other', 1), ('ok', 2), ('powerFail', 3), ('lowBattery', 4), ('replaceBatt', 5), ('missingBatt', 6), ('noConnect', 7), ('notAvail', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusLock1Dev.setStatus('mandatory')
cpq_cmc_status_lock2_dev = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('other', 1), ('ok', 2), ('powerFail', 3), ('lowBattery', 4), ('replaceBatt', 5), ('missingBatt', 6), ('noConnect', 7), ('notAvail', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcStatusLock2Dev.setStatus('mandatory')
cpq_cmc_status_access = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcStatusAccess.setStatus('mandatory')
cpq_cmc_set_lock1_lock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('lockDoor', 2), ('openDoorTime', 3), ('openDoor', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetLock1Lock.setStatus('mandatory')
cpq_cmc_set_lock1_key = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enableBoth', 3), ('enableKeypad', 4), ('enableRemoteInput', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetLock1Key.setStatus('mandatory')
cpq_cmc_set_lock2_lock = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('lockDoor', 2), ('openDoorTime', 3), ('openDoor', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetLock2Lock.setStatus('mandatory')
cpq_cmc_set_lock2_key = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enableBoth', 3), ('enableKeypad', 4), ('enableRemoteInput', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetLock2Key.setStatus('mandatory')
cpq_cmc_set_message = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetMessage.setStatus('mandatory')
cpq_cmc_set_alarm1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('clearAlarm', 2), ('setAlarm', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetAlarm1.setStatus('mandatory')
cpq_cmc_set_alarm2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('clearAlarm', 2), ('setAlarm', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetAlarm2.setStatus('mandatory')
cpq_cmc_set_fan1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('auto', 2), ('on', 3), ('off', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetFan1.setStatus('mandatory')
cpq_cmc_set_fan2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('auto', 2), ('on', 3), ('off', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetFan2.setStatus('mandatory')
cpq_cmc_set_quit_relay1 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('switched', 2), ('notSwitched', 3), ('quit', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetQuitRelay1.setStatus('mandatory')
cpq_cmc_set_quit_relay2 = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('switched', 2), ('notSwitched', 3), ('quit', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cpqCmcSetQuitRelay2.setStatus('mandatory')
cpq_cmc_logs_number = mib_scalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcLogsNumber.setStatus('mandatory')
cpq_cmc_log_table = mib_table((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2))
if mibBuilder.loadTexts:
cpqCmcLogTable.setStatus('mandatory')
cpq_cmc_log_entry = mib_table_row((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1)).setIndexNames((0, 'CPQCMC-MIB', 'cpqCmcLogIndex'))
if mibBuilder.loadTexts:
cpqCmcLogEntry.setStatus('mandatory')
cpq_cmc_log_index = mib_table_column((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcLogIndex.setStatus('mandatory')
cpq_cmc_log_date = mib_table_column((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 11))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcLogDate.setStatus('mandatory')
cpq_cmc_log_time = mib_table_column((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 11))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcLogTime.setStatus('mandatory')
cpq_cmc_log_text = mib_table_column((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcLogText.setStatus('mandatory')
cpq_cmc_log_class = mib_table_column((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cpqCmcLogClass.setStatus('mandatory')
cpq_cmcalarm_temp1 = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153001)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusTemp1'))
cpq_cmcalarm_temp2 = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153002)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusTemp2'))
cpq_cmcalarm_fan1 = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153003)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusFan1'))
cpq_cmcalarm_fan2 = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153004)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusFan2'))
cpq_cmcalarm_voltage = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153005)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusVoltage'))
cpq_cmcalarm_humidity = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153006)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusHumidity'))
cpq_cmcalarm_input1 = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153007)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusInput1'))
cpq_cmcalarm_input2 = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153008)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusInput2'))
cpq_cmcalarm_input3 = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153009)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusInput3'))
cpq_cmcalarm_input4 = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153010)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusInput4'))
cpq_cmcalarm_lock1 = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153011)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusLock1Lock'))
cpq_cmcalarm_lock2 = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153012)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusLock2Lock'))
cpq_cmcalarm_smoke = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153013)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusSmoke'))
cpq_cmcalarm_shock = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153014)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusShock'))
cpq_cmcalarm_aux1 = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153015)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusAux1'))
cpq_cmcalarm_aux2 = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153016)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusAux2'))
cpq_cmcalarm1 = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153017)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusAlarm1'))
cpq_cmcalarm2 = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153018)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusAlarm2'))
cpq_cmcalarm_lock1_dev = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153019)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusLock1Dev'))
cpq_cmcalarm_lock2_dev = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153020)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('CPQCMC-MIB', 'cpqCmcStatusLock2Dev'))
cpq_cmc_setup_changed = notification_type((1, 3, 6, 1, 4, 1, 232, 153) + (0, 153100)).setObjects(('SNMPv2-MIB', 'sysDescr'), ('SNMPv2-MIB', 'sysContact'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'))
mibBuilder.exportSymbols('CPQCMC-MIB', cpqCmcSetupLock1PwrFailUnlock=cpqCmcSetupLock1PwrFailUnlock, cpqCmcSetupTemp2AudibleAlarmMax=cpqCmcSetupTemp2AudibleAlarmMax, cpqCmcMibRev=cpqCmcMibRev, cpqCmcTrapStatus=cpqCmcTrapStatus, cpqCmcSetupTemp1RelaysMin=cpqCmcSetupTemp1RelaysMin, cpqCmcSetupInput4FansOff=cpqCmcSetupInput4FansOff, cpqCmcStatusAux1=cpqCmcStatusAux1, cpqCmcSetupInput3Relays=cpqCmcSetupInput3Relays, cpqCmcSetupAlarm2AudibleAlarm=cpqCmcSetupAlarm2AudibleAlarm, cpqCmcValueTemp2=cpqCmcValueTemp2, cpqCmcSetupVoltageAudibleAlarmMin=cpqCmcSetupVoltageAudibleAlarmMin, cpqCmcSetupLock2PwrFailUnlock=cpqCmcSetupLock2PwrFailUnlock, cpqCmcSetupInput1Description=cpqCmcSetupInput1Description, cpqCmcStatusTemp2=cpqCmcStatusTemp2, cpqCmcSetupLock2AudibleAlarmDevice=cpqCmcSetupLock2AudibleAlarmDevice, cpqCmcValues=cpqCmcValues, cpqCmcSetupInput2AudibleAlarm=cpqCmcSetupInput2AudibleAlarm, cpqCmcSetupSmokeRelays=cpqCmcSetupSmokeRelays, cpqCmcalarm2=cpqCmcalarm2, cpqCmcSetupLock1AudibleAlarm=cpqCmcSetupLock1AudibleAlarm, cpqCmcSetupAux1AudibleAlarm=cpqCmcSetupAux1AudibleAlarm, cpqCmcSetupAlarm2=cpqCmcSetupAlarm2, cpqCmcMibCondition=cpqCmcMibCondition, cpqCmcStatusInput4=cpqCmcStatusInput4, cpqCmcSetupInput4=cpqCmcSetupInput4, cpqCmcSetupTemp1RelaysMax=cpqCmcSetupTemp1RelaysMax, cpqCmcSetupInput3FansOff=cpqCmcSetupInput3FansOff, cpqCmcsetTempUnit=cpqCmcsetTempUnit, cpqCmcSetupTemp1AudibleAlarmWarn=cpqCmcSetupTemp1AudibleAlarmWarn, cpqCmcSetupInput4Relays=cpqCmcSetupInput4Relays, cpqCmcSetupTemp1AudibleAlarmMax=cpqCmcSetupTemp1AudibleAlarmMax, cpqCmcSetupInput4AudibleAlarm=cpqCmcSetupInput4AudibleAlarm, cpqCmcSetupShockRelays=cpqCmcSetupShockRelays, cpqCmcTrapIPaddress=cpqCmcTrapIPaddress, cpqCmcalarmAux1=cpqCmcalarmAux1, cpqCmcalarmLock1Dev=cpqCmcalarmLock1Dev, cpqCmcSetupInput1AudibleAlarm=cpqCmcSetupInput1AudibleAlarm, cpqCmcSetupAux2AudibleAlarm=cpqCmcSetupAux2AudibleAlarm, cpqCmcThresholdMaxTemp1=cpqCmcThresholdMaxTemp1, cpqCmcMibRevMajor=cpqCmcMibRevMajor, cpqCmcSetupClock=cpqCmcSetupClock, cpqCmcSetupShock=cpqCmcSetupShock, cpqCmcSetup=cpqCmcSetup, cpqCmcSetupInput3AudibleAlarm=cpqCmcSetupInput3AudibleAlarm, cpqCmcSetupAlarm1Relays=cpqCmcSetupAlarm1Relays, cpqCmcSetFan2=cpqCmcSetFan2, cpqCmcSetupHumidity=cpqCmcSetupHumidity, cpqCmcSetupLock2LifeFailUnlock=cpqCmcSetupLock2LifeFailUnlock, cpqCmclogicRelay2=cpqCmclogicRelay2, cpqCmcSetupSmoke=cpqCmcSetupSmoke, cpqCmcSetupTemp1RelaysWarn=cpqCmcSetupTemp1RelaysWarn, cpqCmcSetupTemp2Avail=cpqCmcSetupTemp2Avail, cpqCmcSetupAlarm1AudibleAlarm=cpqCmcSetupAlarm1AudibleAlarm, cpqCmcSetupFan2Relays=cpqCmcSetupFan2Relays, cpqCmcSetupTemp2AudibleAlarmWarn=cpqCmcSetupTemp2AudibleAlarmWarn, cpqCmcStatusShock=cpqCmcStatusShock, cpqCmcSetupFan1Relays=cpqCmcSetupFan1Relays, cpqCmcalarmInput3=cpqCmcalarmInput3, cpqCmcSetupLock1Avail=cpqCmcSetupLock1Avail, cpqCmcComponent=cpqCmcComponent, cpqCmcalarmShock=cpqCmcalarmShock, cpqCmcSetupAux1Description=cpqCmcSetupAux1Description, cpqCmcSetupGeneral=cpqCmcSetupGeneral, cpqCmcSetupLock1Time=cpqCmcSetupLock1Time, cpqCmcLog=cpqCmcLog, cpqCmcLogTable=cpqCmcLogTable, cpqCmcSetupHumidityRelaysMax=cpqCmcSetupHumidityRelaysMax, cpqCmcSetupVoltageRelaysMin=cpqCmcSetupVoltageRelaysMin, cpqCmcSetupSmokeUnlock=cpqCmcSetupSmokeUnlock, cpqCmcSetupAux1=cpqCmcSetupAux1, cpqCmcThresholdWarningTemp1=cpqCmcThresholdWarningTemp1, cpqCmcTraps=cpqCmcTraps, cpqCmcDevice=cpqCmcDevice, cpqCmcStatusLock1Dev=cpqCmcStatusLock1Dev, cpqCmcStatusAccess=cpqCmcStatusAccess, cpqCmcSetQuitRelay1=cpqCmcSetQuitRelay1, cpqCmcLogText=cpqCmcLogText, cpqCmcThresholdFan2Hysteresis=cpqCmcThresholdFan2Hysteresis, cpqCmcalarmSmoke=cpqCmcalarmSmoke, cpqCmcThresholdMaxHumidity=cpqCmcThresholdMaxHumidity, cpqCmcSetupAlarm1Description=cpqCmcSetupAlarm1Description, cpqCmcSetupLock2RelaysDevice=cpqCmcSetupLock2RelaysDevice, cpqCmcSetupLock1LifeFailUnlock=cpqCmcSetupLock1LifeFailUnlock, cpqCmcSetupTime=cpqCmcSetupTime, cpqCmcSetupConfig=cpqCmcSetupConfig, cpqCmcSetupInput3Lock=cpqCmcSetupInput3Lock, cpqCmcSetLock2Key=cpqCmcSetLock2Key, cpqCmcSetupLock1NetFailUnlock=cpqCmcSetupLock1NetFailUnlock, cpqCmcSetupLock1RelaysDevice=cpqCmcSetupLock1RelaysDevice, cpqCmcStatusFan1=cpqCmcStatusFan1, cpqCmcSetupInput2Relays=cpqCmcSetupInput2Relays, cpqCmcStatusVoltage=cpqCmcStatusVoltage, cpqCmcStatusHumidity=cpqCmcStatusHumidity, cpqCmcSetAlarm1=cpqCmcSetAlarm1, cpqCmcSetupHumidityAvail=cpqCmcSetupHumidityAvail, cpqCmcControl=cpqCmcControl, cpqCmcSetupInput4Lock=cpqCmcSetupInput4Lock, cpqCmcSetupInput2ShockSensor=cpqCmcSetupInput2ShockSensor, cpqCmcSetupInput3ShockSensor=cpqCmcSetupInput3ShockSensor, cpqCmcSetupLock1AudibleAlarmDevice=cpqCmcSetupLock1AudibleAlarmDevice, cpqCmcStatusInput1=cpqCmcStatusInput1, cpqCmcalarmHumidity=cpqCmcalarmHumidity, cpqCmcalarmTemp2=cpqCmcalarmTemp2, cpqCmcquitRelay2=cpqCmcquitRelay2, cpqCmcTrapEntry=cpqCmcTrapEntry, cpqCmcalarmAux2=cpqCmcalarmAux2, cpqCmcLogDate=cpqCmcLogDate, cpqCmcPasswordOption=cpqCmcPasswordOption, cpqCmcSetupSmokeAvail=cpqCmcSetupSmokeAvail, cpqCmcOsCommon=cpqCmcOsCommon, cpqCmcSetupSmokeAudibleAlarm=cpqCmcSetupSmokeAudibleAlarm, cpqCmcSetupTemp2=cpqCmcSetupTemp2, cpqCmcStatusLock1Lock=cpqCmcStatusLock1Lock, cpqCmcSetAlarm2=cpqCmcSetAlarm2, cpqCmcSetupLock1Relays=cpqCmcSetupLock1Relays, cpqCmcStatusLock2Lock=cpqCmcStatusLock2Lock, cpqCmcSetupVoltageRelaysMax=cpqCmcSetupVoltageRelaysMax, cpqCmcalarm1=cpqCmcalarm1, cpqCmcSetupLock2=cpqCmcSetupLock2, cpqCmcSetupInput2Lock=cpqCmcSetupInput2Lock, cpqCmcSetLock1Key=cpqCmcSetLock1Key, cpqCmcLogEntry=cpqCmcLogEntry, cpqCmcInterface=cpqCmcInterface, cpqCmcSetupInput1Avail=cpqCmcSetupInput1Avail, cpqCmcSetupInput2Description=cpqCmcSetupInput2Description, cpqCmcSetupAux1InputType=cpqCmcSetupAux1InputType, cpqCmcTrapTable=cpqCmcTrapTable, cpqCmcDeviceCondition=cpqCmcDeviceCondition, cpqCmcSetupInput2Avail=cpqCmcSetupInput2Avail, cpqCmcTrapIndex=cpqCmcTrapIndex, cpqCmcalarmLock1=cpqCmcalarmLock1, cpqCmcalarmTemp1=cpqCmcalarmTemp1, cpqCmcSetupAux2=cpqCmcSetupAux2, cpqCmcThresholdMaxVoltage=cpqCmcThresholdMaxVoltage, cpqCmcSetupTemp2RelaysMin=cpqCmcSetupTemp2RelaysMin, cpqCmcalarmInput2=cpqCmcalarmInput2, cpqCmcSetupAlarm1=cpqCmcSetupAlarm1, cpqCmcalarmInput4=cpqCmcalarmInput4, cpqCmcSetupHumidityAudibleAlarmMax=cpqCmcSetupHumidityAudibleAlarmMax, cpqCmcOsCommonPollFreq=cpqCmcOsCommonPollFreq, cpqCmcSetupTemp1Avail=cpqCmcSetupTemp1Avail, cpqCmcStatusInput3=cpqCmcStatusInput3, cpqCmcSetFan1=cpqCmcSetFan1, cpqCmcalarmFan1=cpqCmcalarmFan1, cpqCmcThresholdMinVoltage=cpqCmcThresholdMinVoltage, cpqCmcValueHumidity=cpqCmcValueHumidity, cpqCmcSetupInput2=cpqCmcSetupInput2, cpqCmcStatusAlarm1=cpqCmcStatusAlarm1, cpqCmcSetupVoltageAvail=cpqCmcSetupVoltageAvail, cpqCmcSetupLock2AudibleAlarm=cpqCmcSetupLock2AudibleAlarm, cpqCmcStatusLock2Dev=cpqCmcStatusLock2Dev, cpqCmcSetupInput3Avail=cpqCmcSetupInput3Avail, cpqCmcSetupInput1Lock=cpqCmcSetupInput1Lock, cpqCmcSetupLock2Relays=cpqCmcSetupLock2Relays, cpqCmcalarmLock2Dev=cpqCmcalarmLock2Dev, cpqCmcalarmLock2=cpqCmcalarmLock2, cpqCmcSetupLock2Avail=cpqCmcSetupLock2Avail, cpqCmcThresholdMinHumidity=cpqCmcThresholdMinHumidity, cpqCmcSetupLock1=cpqCmcSetupLock1, cpqCmcValueVoltage=cpqCmcValueVoltage, cpqCmcStatusInput2=cpqCmcStatusInput2, cpqCmcSetupTemp2RelaysWarn=cpqCmcSetupTemp2RelaysWarn, cpqCmcSetupAux1Unlock=cpqCmcSetupAux1Unlock, cpqCmcSetupInput3=cpqCmcSetupInput3, cpqCmcSetupAux2Description=cpqCmcSetupAux2Description, cpqCmcStatus=cpqCmcStatus, cpqCmcsetLanguage=cpqCmcsetLanguage, cpqCmcSetupLock2NetFailUnlock=cpqCmcSetupLock2NetFailUnlock, cpqCmcStatusSmoke=cpqCmcStatusSmoke, cpqCmcLogsNumber=cpqCmcLogsNumber, cpqCmcSetupDate=cpqCmcSetupDate, cpqCmcStatusTemp1=cpqCmcStatusTemp1, cpqCmcSetupVoltageAudibleAlarmMax=cpqCmcSetupVoltageAudibleAlarmMax, cpqCmclogicRelay1=cpqCmclogicRelay1, cpqCmcSetupShockSensitivity=cpqCmcSetupShockSensitivity, cpqCmcSetupAux1Avail=cpqCmcSetupAux1Avail, cpqCmcSetupLock2BattLowUnlock=cpqCmcSetupLock2BattLowUnlock, cpqCmcSetupEvents=cpqCmcSetupEvents, cpqCmcThresholdWarningTemp2=cpqCmcThresholdWarningTemp2, cpqCmcSetupFan2Avail=cpqCmcSetupFan2Avail, cpqCmcSetupFan1=cpqCmcSetupFan1, cpqCmcStatusFan2=cpqCmcStatusFan2, cpqCmcalarmInput1=cpqCmcalarmInput1, cpqCmcSetupFan2=cpqCmcSetupFan2, cpqCmcSetupAux1Relays=cpqCmcSetupAux1Relays, cpqCmcSetupInput4ShockSensor=cpqCmcSetupInput4ShockSensor, cpqCmcSetupLock1BattLowUnlock=cpqCmcSetupLock1BattLowUnlock, cpqCmcSetupAux2Relays=cpqCmcSetupAux2Relays, cpqCmcThresholdFan1=cpqCmcThresholdFan1, cpqCmcThresholdMaxTemp2=cpqCmcThresholdMaxTemp2, cpqCmcSetupInput1=cpqCmcSetupInput1, cpqCmcSetupInput4Description=cpqCmcSetupInput4Description, cpqCmcLogIndex=cpqCmcLogIndex, cpqCmcalarmVoltage=cpqCmcalarmVoltage, cpqCmcSetupVoltage=cpqCmcSetupVoltage, cpqCmcSetLock1Lock=cpqCmcSetLock1Lock, cpqCmcSetQuitRelay2=cpqCmcSetQuitRelay2, cpqCmcSetupChanged=cpqCmcSetupChanged, cpqCmcSetupInput2FansOff=cpqCmcSetupInput2FansOff, cpqCmcSetupInput3Description=cpqCmcSetupInput3Description, cpqCmcSetupAlarm2Relays=cpqCmcSetupAlarm2Relays, cpqCmcSetupFan1Avail=cpqCmcSetupFan1Avail, cpqCmcSetupHumidityAudibleAlarmMin=cpqCmcSetupHumidityAudibleAlarmMin, cpqCmcSetupShockAudibleAlarm=cpqCmcSetupShockAudibleAlarm, cpqCmcSetupFan1AudibleAlarm=cpqCmcSetupFan1AudibleAlarm, cpqCmcalarmFan2=cpqCmcalarmFan2, cpqCmcThresholdFan2=cpqCmcThresholdFan2, cpqCmcThresholdMinTemp1=cpqCmcThresholdMinTemp1, cpqCmcquitRelay1=cpqCmcquitRelay1, cpqCmcSetLock2Lock=cpqCmcSetLock2Lock, cpqCmcSetupLock2Time=cpqCmcSetupLock2Time, cpqCmcValueOperatingTime=cpqCmcValueOperatingTime, cpqCmcSetupTemp2RelaysMax=cpqCmcSetupTemp2RelaysMax, cpqCmcThresholdMinTemp2=cpqCmcThresholdMinTemp2, cpqCmcSetupThreshold=cpqCmcSetupThreshold, cpqCmcSetupInput1ShockSensor=cpqCmcSetupInput1ShockSensor, cpqCmcStatusAux2=cpqCmcStatusAux2, cpqCmcSetupAux2Unlock=cpqCmcSetupAux2Unlock, cpqCmcSetupTemp2AudibleAlarmMin=cpqCmcSetupTemp2AudibleAlarmMin, cpqCmcSetupFan2AudibleAlarm=cpqCmcSetupFan2AudibleAlarm, cpqCmcLogTime=cpqCmcLogTime, cpqCmcValueTemp1=cpqCmcValueTemp1, cpqCmcSetupAlarm2Description=cpqCmcSetupAlarm2Description, cpqCmcSetMessage=cpqCmcSetMessage, cpqCmcMibRevMinor=cpqCmcMibRevMinor, cpqCmcSetupTemp1=cpqCmcSetupTemp1, cpqCmcsetAudibleAlarm=cpqCmcsetAudibleAlarm, cpqCmcSetupInput1FansOff=cpqCmcSetupInput1FansOff, cpqCmcSetupTemp1AudibleAlarmMin=cpqCmcSetupTemp1AudibleAlarmMin, cpqCmcStatusAlarm2=cpqCmcStatusAlarm2, cpqCmcSetupAux2InputType=cpqCmcSetupAux2InputType, cpqCmcPassword=cpqCmcPassword, cpqCmcLogClass=cpqCmcLogClass, cpqCmcThresholdFan1Hysteresis=cpqCmcThresholdFan1Hysteresis, cpqCmcSetupHumidityRelaysMin=cpqCmcSetupHumidityRelaysMin, cpqCmcSetupInput1Relays=cpqCmcSetupInput1Relays, cpqCmcSetupInput4Avail=cpqCmcSetupInput4Avail, cpqCmcSetupAux2Avail=cpqCmcSetupAux2Avail, cpqCmcTrapTableNumber=cpqCmcTrapTableNumber, cpqCmcSetupShockAvail=cpqCmcSetupShockAvail, cpqCmc=cpqCmc, cpqCmcSetupSmokeFansOff=cpqCmcSetupSmokeFansOff) |
terminal_colors = {
"green": "\033[32m",
"red": "\033[91m",
"reset": "\033[0m",
"yellow": "\033[93m"
}
class SignalsError(Exception):
def __init__(self, msg):
self.msg = msg
def __str__(self):
return colorize_string("red", "ERROR: {}".format(self.msg))
def colorize_string(color, msg):
return "{}{}{}".format(terminal_colors[color], msg, terminal_colors["reset"])
def warn(msg):
print(colorize_string("yellow", msg))
def progress(msg):
print(colorize_string("green", msg))
| terminal_colors = {'green': '\x1b[32m', 'red': '\x1b[91m', 'reset': '\x1b[0m', 'yellow': '\x1b[93m'}
class Signalserror(Exception):
def __init__(self, msg):
self.msg = msg
def __str__(self):
return colorize_string('red', 'ERROR: {}'.format(self.msg))
def colorize_string(color, msg):
return '{}{}{}'.format(terminal_colors[color], msg, terminal_colors['reset'])
def warn(msg):
print(colorize_string('yellow', msg))
def progress(msg):
print(colorize_string('green', msg)) |
def ts_test(test_file=None, more_data=[]):
native.sh_test(
name = test_file + "_test",
size = "small",
srcs = ["//util:run_tests.sh"],
# deps = [""],
data = [
test_file,
"@nodejs//:bin/node",
"//:node_modules/mocha/bin/mocha",
"//:node_modules/@types/node",
"//src:protoc-gen-ts_interfaces.ts",
] + more_data,
)
| def ts_test(test_file=None, more_data=[]):
native.sh_test(name=test_file + '_test', size='small', srcs=['//util:run_tests.sh'], data=[test_file, '@nodejs//:bin/node', '//:node_modules/mocha/bin/mocha', '//:node_modules/@types/node', '//src:protoc-gen-ts_interfaces.ts'] + more_data) |
class Solution:
def dominantIndex(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
maxnum = -1
secondmaxnum = -1
maxindex = 0
for i, num in enumerate(nums):
if num > maxnum:
secondmaxnum = maxnum
maxnum = num
maxindex = i
elif num > secondmaxnum:
secondmaxnum = num
return maxindex if maxnum >= 2 * secondmaxnum else -1
if __name__ == '__main__':
solution = Solution()
print(solution.dominantIndex([3, 6, 1, 0]))
print(solution.dominantIndex([1, 2, 3, 4]))
else:
pass
| class Solution:
def dominant_index(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
maxnum = -1
secondmaxnum = -1
maxindex = 0
for (i, num) in enumerate(nums):
if num > maxnum:
secondmaxnum = maxnum
maxnum = num
maxindex = i
elif num > secondmaxnum:
secondmaxnum = num
return maxindex if maxnum >= 2 * secondmaxnum else -1
if __name__ == '__main__':
solution = solution()
print(solution.dominantIndex([3, 6, 1, 0]))
print(solution.dominantIndex([1, 2, 3, 4]))
else:
pass |
cfg_sdd = {
'img_size': 608,
'conf_thres': 0.5,
'nms_thres': 0.3,
}
| cfg_sdd = {'img_size': 608, 'conf_thres': 0.5, 'nms_thres': 0.3} |
def fibonacci_seq(num):
i = 0
j = 0
k = 0
for i in range(num):
if i==0:
print(j)
elif i==1:
j = 1
print(j)
else:
temp = j
j = j+k
k = temp
print(j)
fibonacci_seq(10)
| def fibonacci_seq(num):
i = 0
j = 0
k = 0
for i in range(num):
if i == 0:
print(j)
elif i == 1:
j = 1
print(j)
else:
temp = j
j = j + k
k = temp
print(j)
fibonacci_seq(10) |
class Base:
# Base Class
command = ''
def __init__(self,command):
self.command = command
| class Base:
command = ''
def __init__(self, command):
self.command = command |
def series1():
num=int(input('enter number: '))
stop=int(input('n0. of elements in series: '))
sum1=0
for i in range (stop):
sum1+=num**i
print('SUM IS',sum1)
series1()
| def series1():
num = int(input('enter number: '))
stop = int(input('n0. of elements in series: '))
sum1 = 0
for i in range(stop):
sum1 += num ** i
print('SUM IS', sum1)
series1() |
addresses = [3, 225, 1, 225, 6, 6, 1100, 1, 238, 225, 104, 0, 1101, 32, 43, 225, 101, 68, 192, 224, 1001, 224, -160, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 2, 224, 1, 223, 224, 223, 1001, 118, 77, 224, 1001, 224, -87, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 6, 224, 1, 223, 224, 223, 1102, 5, 19, 225, 1102, 74, 50, 224, 101, -3700, 224, 224, 4, 224, 1002, 223, 8, 223, 1001, 224, 1, 224, 1, 223, 224, 223, 1102, 89, 18, 225, 1002, 14, 72, 224, 1001, 224, -3096, 224, 4, 224, 102, 8, 223, 223, 101, 5, 224, 224, 1, 223, 224, 223, 1101, 34, 53, 225, 1102, 54, 10, 225, 1, 113, 61, 224, 101, -39, 224, 224, 4, 224, 102, 8, 223, 223, 101, 2, 224, 224, 1, 223, 224, 223, 1101, 31, 61, 224, 101, -92, 224, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 4, 224, 1, 223, 224, 223, 1102, 75, 18, 225, 102, 48, 87, 224, 101, -4272, 224, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 7, 224, 1, 224, 223, 223, 1101, 23, 92, 225, 2, 165, 218, 224, 101, -3675, 224, 224, 4, 224, 1002, 223, 8, 223, 101, 1, 224, 224, 1, 223, 224, 223, 1102, 8, 49, 225, 4, 223, 99, 0, 0, 0, 677, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1105, 0, 99999, 1105, 227, 247, 1105, 1, 99999, 1005, 227, 99999, 1005, 0, 256, 1105, 1, 99999, 1106, 227, 99999, 1106, 0, 265, 1105, 1, 99999, 1006, 0, 99999, 1006, 227, 274, 1105, 1, 99999, 1105, 1, 280, 1105, 1, 99999, 1, 225, 225, 225, 1101, 294, 0, 0, 105, 1, 0, 1105, 1, 99999, 1106, 0, 300, 1105, 1, 99999, 1, 225, 225, 225, 1101, 314, 0, 0, 106, 0, 0, 1105, 1, 99999, 1107, 226, 226, 224, 1002, 223, 2, 223, 1005, 224, 329, 1001, 223, 1, 223, 1007, 677, 226, 224, 1002, 223, 2, 223, 1006, 224, 344, 1001, 223, 1, 223, 108,
677, 226, 224, 102, 2, 223, 223, 1006, 224, 359, 1001, 223, 1, 223, 7, 226, 226, 224, 1002, 223, 2, 223, 1005, 224, 374, 101, 1, 223, 223, 107, 677, 677, 224, 1002, 223, 2, 223, 1006, 224, 389, 1001, 223, 1, 223, 1007, 677, 677, 224, 1002, 223, 2, 223, 1006, 224, 404, 1001, 223, 1, 223, 1107, 677, 226, 224, 1002, 223, 2, 223, 1005, 224, 419, 1001, 223, 1, 223, 108, 226, 226, 224, 102, 2, 223, 223, 1006, 224, 434, 1001, 223, 1, 223, 1108, 226, 677, 224, 1002, 223, 2, 223, 1006, 224, 449, 1001, 223, 1, 223, 1108, 677, 226, 224, 102, 2, 223, 223, 1005, 224, 464, 1001, 223, 1, 223, 107, 226, 226, 224, 102, 2, 223, 223, 1006, 224, 479, 1001, 223, 1, 223, 1008, 226, 226, 224, 102, 2, 223, 223, 1005, 224, 494, 101, 1, 223, 223, 7, 677, 226, 224, 1002, 223, 2, 223, 1005, 224, 509, 101, 1, 223, 223, 8, 226, 677, 224, 1002, 223, 2, 223, 1006, 224, 524, 1001, 223, 1, 223, 1007, 226, 226, 224, 1002, 223, 2, 223, 1006, 224, 539, 101, 1, 223, 223, 1008, 677, 677, 224, 1002, 223, 2, 223, 1006, 224, 554, 101, 1, 223, 223, 1108, 677, 677, 224, 102, 2, 223, 223, 1006, 224, 569, 101, 1, 223, 223, 1107, 226, 677, 224, 102, 2, 223, 223, 1005, 224, 584, 1001, 223, 1, 223, 8, 677, 226, 224, 1002, 223, 2, 223, 1006, 224, 599, 101, 1, 223, 223, 1008, 677, 226, 224, 102, 2, 223, 223, 1006, 224, 614, 1001, 223, 1, 223, 7, 226, 677, 224, 1002, 223, 2, 223, 1005, 224, 629, 101, 1, 223, 223, 107, 226, 677, 224, 102, 2, 223, 223, 1005, 224, 644, 101, 1, 223, 223, 8, 677, 677, 224, 102, 2, 223, 223, 1005, 224, 659, 1001, 223, 1, 223, 108, 677, 677, 224, 1002, 223, 2, 223, 1005, 224, 674, 101, 1, 223, 223, 4, 223, 99, 226]
def getParamByMode(mode, step, index, inputs):
if mode == 0:
return inputs[inputs[index + step]]
return inputs[index + step]
def getParamsByMode(mode1, mode2, index, inputs):
return getParamByMode(mode1, 1, index, inputs), getParamByMode(mode2, 2, index, inputs)
def getParamModes(modes):
return [int(mode) for mode in [modes[2], modes[1], modes[2], modes[3:]]]
def addition(mode1, mode2, index, inputs):
param1, param2 = getParamsByMode(mode1, mode2, index, inputs)
inputs[inputs[index + 3]] = param1 + param2
def multiply(mode1, mode2, index, inputs):
param1, param2 = getParamsByMode(mode1, mode2, index, inputs)
inputs[inputs[index + 3]] = param1 * param2
def less(mode1, mode2, index, inputs):
param1, param2 = getParamsByMode(mode1, mode2, index, inputs)
inputs[inputs[index + 3]] = 1 if param1 < param2 else 0
def equal(mode1, mode2, index, inputs):
param1, param2 = getParamsByMode(mode1, mode2, index, inputs)
inputs[inputs[index + 3]] = 1 if param1 == param2 else 0
def jumpIfTrue(mode1, mode2, index, inputs):
param1, param2 = getParamsByMode(mode1, mode2, index, inputs)
return param2 if param1 != 0 else index + 3
def jumpIfFalse(mode1, mode2, index, inputs):
param1, param2 = getParamsByMode(mode1, mode2, index, inputs)
return param2 if param1 == 0 else index + 3
def computify(inputs, userInput):
index = 0
diagnostic = None
while inputs[index] != 99:
mode1, mode2, mode3, opcode = getParamModes(f"{inputs[index]:05}")
if opcode == 1:
addition(mode1, mode2, index, inputs)
index += 4
elif opcode == 2:
multiply(mode1, mode2, index, inputs)
index += 4
elif opcode == 3:
inputs[inputs[index + 1]] = userInput
index += 2
elif opcode == 4:
diagnostic = inputs[inputs[index + 1]]
index += 2
elif opcode == 5:
index = jumpIfTrue(mode1, mode2, index, inputs)
elif opcode == 6:
index = jumpIfFalse(mode1, mode2, index, inputs)
elif opcode == 7:
less(mode1, mode2, index, inputs)
index += 4
elif opcode == 8:
equal(mode1, mode2, index, inputs)
index += 4
return diagnostic
print(computify(addresses[:], 1))
print(computify(addresses[:], 5))
| addresses = [3, 225, 1, 225, 6, 6, 1100, 1, 238, 225, 104, 0, 1101, 32, 43, 225, 101, 68, 192, 224, 1001, 224, -160, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 2, 224, 1, 223, 224, 223, 1001, 118, 77, 224, 1001, 224, -87, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 6, 224, 1, 223, 224, 223, 1102, 5, 19, 225, 1102, 74, 50, 224, 101, -3700, 224, 224, 4, 224, 1002, 223, 8, 223, 1001, 224, 1, 224, 1, 223, 224, 223, 1102, 89, 18, 225, 1002, 14, 72, 224, 1001, 224, -3096, 224, 4, 224, 102, 8, 223, 223, 101, 5, 224, 224, 1, 223, 224, 223, 1101, 34, 53, 225, 1102, 54, 10, 225, 1, 113, 61, 224, 101, -39, 224, 224, 4, 224, 102, 8, 223, 223, 101, 2, 224, 224, 1, 223, 224, 223, 1101, 31, 61, 224, 101, -92, 224, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 4, 224, 1, 223, 224, 223, 1102, 75, 18, 225, 102, 48, 87, 224, 101, -4272, 224, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 7, 224, 1, 224, 223, 223, 1101, 23, 92, 225, 2, 165, 218, 224, 101, -3675, 224, 224, 4, 224, 1002, 223, 8, 223, 101, 1, 224, 224, 1, 223, 224, 223, 1102, 8, 49, 225, 4, 223, 99, 0, 0, 0, 677, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1105, 0, 99999, 1105, 227, 247, 1105, 1, 99999, 1005, 227, 99999, 1005, 0, 256, 1105, 1, 99999, 1106, 227, 99999, 1106, 0, 265, 1105, 1, 99999, 1006, 0, 99999, 1006, 227, 274, 1105, 1, 99999, 1105, 1, 280, 1105, 1, 99999, 1, 225, 225, 225, 1101, 294, 0, 0, 105, 1, 0, 1105, 1, 99999, 1106, 0, 300, 1105, 1, 99999, 1, 225, 225, 225, 1101, 314, 0, 0, 106, 0, 0, 1105, 1, 99999, 1107, 226, 226, 224, 1002, 223, 2, 223, 1005, 224, 329, 1001, 223, 1, 223, 1007, 677, 226, 224, 1002, 223, 2, 223, 1006, 224, 344, 1001, 223, 1, 223, 108, 677, 226, 224, 102, 2, 223, 223, 1006, 224, 359, 1001, 223, 1, 223, 7, 226, 226, 224, 1002, 223, 2, 223, 1005, 224, 374, 101, 1, 223, 223, 107, 677, 677, 224, 1002, 223, 2, 223, 1006, 224, 389, 1001, 223, 1, 223, 1007, 677, 677, 224, 1002, 223, 2, 223, 1006, 224, 404, 1001, 223, 1, 223, 1107, 677, 226, 224, 1002, 223, 2, 223, 1005, 224, 419, 1001, 223, 1, 223, 108, 226, 226, 224, 102, 2, 223, 223, 1006, 224, 434, 1001, 223, 1, 223, 1108, 226, 677, 224, 1002, 223, 2, 223, 1006, 224, 449, 1001, 223, 1, 223, 1108, 677, 226, 224, 102, 2, 223, 223, 1005, 224, 464, 1001, 223, 1, 223, 107, 226, 226, 224, 102, 2, 223, 223, 1006, 224, 479, 1001, 223, 1, 223, 1008, 226, 226, 224, 102, 2, 223, 223, 1005, 224, 494, 101, 1, 223, 223, 7, 677, 226, 224, 1002, 223, 2, 223, 1005, 224, 509, 101, 1, 223, 223, 8, 226, 677, 224, 1002, 223, 2, 223, 1006, 224, 524, 1001, 223, 1, 223, 1007, 226, 226, 224, 1002, 223, 2, 223, 1006, 224, 539, 101, 1, 223, 223, 1008, 677, 677, 224, 1002, 223, 2, 223, 1006, 224, 554, 101, 1, 223, 223, 1108, 677, 677, 224, 102, 2, 223, 223, 1006, 224, 569, 101, 1, 223, 223, 1107, 226, 677, 224, 102, 2, 223, 223, 1005, 224, 584, 1001, 223, 1, 223, 8, 677, 226, 224, 1002, 223, 2, 223, 1006, 224, 599, 101, 1, 223, 223, 1008, 677, 226, 224, 102, 2, 223, 223, 1006, 224, 614, 1001, 223, 1, 223, 7, 226, 677, 224, 1002, 223, 2, 223, 1005, 224, 629, 101, 1, 223, 223, 107, 226, 677, 224, 102, 2, 223, 223, 1005, 224, 644, 101, 1, 223, 223, 8, 677, 677, 224, 102, 2, 223, 223, 1005, 224, 659, 1001, 223, 1, 223, 108, 677, 677, 224, 1002, 223, 2, 223, 1005, 224, 674, 101, 1, 223, 223, 4, 223, 99, 226]
def get_param_by_mode(mode, step, index, inputs):
if mode == 0:
return inputs[inputs[index + step]]
return inputs[index + step]
def get_params_by_mode(mode1, mode2, index, inputs):
return (get_param_by_mode(mode1, 1, index, inputs), get_param_by_mode(mode2, 2, index, inputs))
def get_param_modes(modes):
return [int(mode) for mode in [modes[2], modes[1], modes[2], modes[3:]]]
def addition(mode1, mode2, index, inputs):
(param1, param2) = get_params_by_mode(mode1, mode2, index, inputs)
inputs[inputs[index + 3]] = param1 + param2
def multiply(mode1, mode2, index, inputs):
(param1, param2) = get_params_by_mode(mode1, mode2, index, inputs)
inputs[inputs[index + 3]] = param1 * param2
def less(mode1, mode2, index, inputs):
(param1, param2) = get_params_by_mode(mode1, mode2, index, inputs)
inputs[inputs[index + 3]] = 1 if param1 < param2 else 0
def equal(mode1, mode2, index, inputs):
(param1, param2) = get_params_by_mode(mode1, mode2, index, inputs)
inputs[inputs[index + 3]] = 1 if param1 == param2 else 0
def jump_if_true(mode1, mode2, index, inputs):
(param1, param2) = get_params_by_mode(mode1, mode2, index, inputs)
return param2 if param1 != 0 else index + 3
def jump_if_false(mode1, mode2, index, inputs):
(param1, param2) = get_params_by_mode(mode1, mode2, index, inputs)
return param2 if param1 == 0 else index + 3
def computify(inputs, userInput):
index = 0
diagnostic = None
while inputs[index] != 99:
(mode1, mode2, mode3, opcode) = get_param_modes(f'{inputs[index]:05}')
if opcode == 1:
addition(mode1, mode2, index, inputs)
index += 4
elif opcode == 2:
multiply(mode1, mode2, index, inputs)
index += 4
elif opcode == 3:
inputs[inputs[index + 1]] = userInput
index += 2
elif opcode == 4:
diagnostic = inputs[inputs[index + 1]]
index += 2
elif opcode == 5:
index = jump_if_true(mode1, mode2, index, inputs)
elif opcode == 6:
index = jump_if_false(mode1, mode2, index, inputs)
elif opcode == 7:
less(mode1, mode2, index, inputs)
index += 4
elif opcode == 8:
equal(mode1, mode2, index, inputs)
index += 4
return diagnostic
print(computify(addresses[:], 1))
print(computify(addresses[:], 5)) |
DATASET = 'forest-2'
CLASSES = 2
FEATURES = 54
NN_SIZE = 256
DIFFICULTY = 10000
class Override():
def __init__(self):
self.HPC_FILE = '../data/' + DATASET + '-hpc-fake'
override = Override() | dataset = 'forest-2'
classes = 2
features = 54
nn_size = 256
difficulty = 10000
class Override:
def __init__(self):
self.HPC_FILE = '../data/' + DATASET + '-hpc-fake'
override = override() |
def includeme(config):
config.add_static_view('static', 'static', cache_max_age=3600)
config.add_route('home', '/')
config.add_route('persons', '/services/persons')
config.add_route('person', '/services/person/{code}')
config.add_route('photo', '/services/person/{code}/photo')
| def includeme(config):
config.add_static_view('static', 'static', cache_max_age=3600)
config.add_route('home', '/')
config.add_route('persons', '/services/persons')
config.add_route('person', '/services/person/{code}')
config.add_route('photo', '/services/person/{code}/photo') |
class Solution:
def solve(self, nums):
k = Counter(nums).most_common(1)[0][1]
locs = defaultdict(list)
for i in range(len(nums)):
locs[nums[i]].append(i)
return min(locs[num][i+k-1]-locs[num][i]+1 for num in locs for i in range(len(locs[num])-k+1))
| class Solution:
def solve(self, nums):
k = counter(nums).most_common(1)[0][1]
locs = defaultdict(list)
for i in range(len(nums)):
locs[nums[i]].append(i)
return min((locs[num][i + k - 1] - locs[num][i] + 1 for num in locs for i in range(len(locs[num]) - k + 1))) |
# Copyright 2016 Google Inc. All Rights Reserved.
#
# 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.
#
################################################################################
#
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
ABSEIL_COMMIT = "99477fa9f1e89a7d8253c8aeee331864710d080c"
ABSEIL_SHA256 = "495e8e1c481018126b2a84bfe36e273907ce282b135e7d161e138e463d295f3d"
def absl_repositories(bind = True):
http_archive(
name = "com_google_absl",
strip_prefix = "abseil-cpp-" + ABSEIL_COMMIT,
url = "https://github.com/abseil/abseil-cpp/archive/" + ABSEIL_COMMIT + ".tar.gz",
sha256 = ABSEIL_SHA256,
)
def zlib_repositories(bind = True):
BUILD = """
# Copyright 2016 Google Inc. All Rights Reserved.
#
# 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.
#
################################################################################
#
licenses(["notice"])
exports_files(["README"])
cc_library(
name = "zlib",
srcs = [
"adler32.c",
"crc32.c",
"crc32.h",
"deflate.c",
"deflate.h",
"infback.c",
"inffast.c",
"inffast.h",
"inffixed.h",
"inflate.c",
"inflate.h",
"inftrees.c",
"inftrees.h",
"trees.c",
"trees.h",
"zconf.h",
"zutil.c",
"zutil.h",
],
hdrs = [
"zlib.h",
],
copts = [
"-Wno-shift-negative-value",
"-Wno-unknown-warning-option",
],
defines = [
"Z_SOLO",
],
visibility = [
"//visibility:public",
],
)
"""
http_archive(
name = "zlib",
strip_prefix = "zlib-1.2.11",
urls = ["https://github.com/madler/zlib/archive/v1.2.11.tar.gz"],
sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
build_file_content = BUILD,
)
PROTOBUF_COMMIT = "3.16.0" # Mar 04, 2021
PROTOBUF_SHA256 = "7892a35d979304a404400a101c46ce90e85ec9e2a766a86041bb361f626247f5"
RULES_PROTO_SHA = "97d8af4dc474595af3900dd85cb3a29ad28cc313" # Oct 31, 2019
RULES_PROTO_SHA256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208"
def protobuf_repositories(bind = True):
http_archive(
name = "com_google_protobuf",
strip_prefix = "protobuf-" + PROTOBUF_COMMIT,
url = "https://github.com/google/protobuf/archive/v" + PROTOBUF_COMMIT + ".tar.gz",
sha256 = PROTOBUF_SHA256,
)
http_archive(
name = "rules_proto",
sha256 = RULES_PROTO_SHA256,
strip_prefix = "rules_proto-" + RULES_PROTO_SHA,
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/" + RULES_PROTO_SHA + ".tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/" + RULES_PROTO_SHA + ".tar.gz",
],
)
GOOGLETEST_COMMIT = "703bd9caab50b139428cea1aaff9974ebee5742e" # v1.10.0: Oct 2, 2019
GOOGLETEST_SHA256 = "d17b1b83a57b3933565a6d0616fe261107326d47de20288d0949ed038e1c342d"
def googletest_repositories(bind = True):
http_archive(
name = "com_google_googletest",
strip_prefix = "googletest-" + GOOGLETEST_COMMIT,
url = "https://github.com/google/googletest/archive/" + GOOGLETEST_COMMIT + ".tar.gz",
sha256 = GOOGLETEST_SHA256,
)
GOOGLEAPIS_COMMIT = "1d5522ad1056f16a6d593b8f3038d831e64daeea" # Sept 03, 2020
GOOGLEAPIS_SHA256 = "cd13e547cffaad217c942084fd5ae0985a293d0cce3e788c20796e5e2ea54758"
def googleapis_repositories(bind = True):
http_archive(
name = "com_google_googleapis",
strip_prefix = "googleapis-" + GOOGLEAPIS_COMMIT,
url = "https://github.com/googleapis/googleapis/archive/" + GOOGLEAPIS_COMMIT + ".tar.gz",
sha256 = GOOGLEAPIS_SHA256,
)
| load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_archive')
abseil_commit = '99477fa9f1e89a7d8253c8aeee331864710d080c'
abseil_sha256 = '495e8e1c481018126b2a84bfe36e273907ce282b135e7d161e138e463d295f3d'
def absl_repositories(bind=True):
http_archive(name='com_google_absl', strip_prefix='abseil-cpp-' + ABSEIL_COMMIT, url='https://github.com/abseil/abseil-cpp/archive/' + ABSEIL_COMMIT + '.tar.gz', sha256=ABSEIL_SHA256)
def zlib_repositories(bind=True):
build = '\n# Copyright 2016 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the "License");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an "AS IS" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n################################################################################\n#\nlicenses(["notice"])\nexports_files(["README"])\ncc_library(\n name = "zlib",\n srcs = [\n "adler32.c",\n "crc32.c",\n "crc32.h",\n "deflate.c",\n "deflate.h",\n "infback.c",\n "inffast.c",\n "inffast.h",\n "inffixed.h",\n "inflate.c",\n "inflate.h",\n "inftrees.c",\n "inftrees.h",\n "trees.c",\n "trees.h",\n "zconf.h",\n "zutil.c",\n "zutil.h",\n ],\n hdrs = [\n "zlib.h",\n ],\n copts = [\n "-Wno-shift-negative-value",\n "-Wno-unknown-warning-option",\n ],\n defines = [\n "Z_SOLO",\n ],\n visibility = [\n "//visibility:public",\n ],\n)\n'
http_archive(name='zlib', strip_prefix='zlib-1.2.11', urls=['https://github.com/madler/zlib/archive/v1.2.11.tar.gz'], sha256='629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff', build_file_content=BUILD)
protobuf_commit = '3.16.0'
protobuf_sha256 = '7892a35d979304a404400a101c46ce90e85ec9e2a766a86041bb361f626247f5'
rules_proto_sha = '97d8af4dc474595af3900dd85cb3a29ad28cc313'
rules_proto_sha256 = '602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208'
def protobuf_repositories(bind=True):
http_archive(name='com_google_protobuf', strip_prefix='protobuf-' + PROTOBUF_COMMIT, url='https://github.com/google/protobuf/archive/v' + PROTOBUF_COMMIT + '.tar.gz', sha256=PROTOBUF_SHA256)
http_archive(name='rules_proto', sha256=RULES_PROTO_SHA256, strip_prefix='rules_proto-' + RULES_PROTO_SHA, urls=['https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/' + RULES_PROTO_SHA + '.tar.gz', 'https://github.com/bazelbuild/rules_proto/archive/' + RULES_PROTO_SHA + '.tar.gz'])
googletest_commit = '703bd9caab50b139428cea1aaff9974ebee5742e'
googletest_sha256 = 'd17b1b83a57b3933565a6d0616fe261107326d47de20288d0949ed038e1c342d'
def googletest_repositories(bind=True):
http_archive(name='com_google_googletest', strip_prefix='googletest-' + GOOGLETEST_COMMIT, url='https://github.com/google/googletest/archive/' + GOOGLETEST_COMMIT + '.tar.gz', sha256=GOOGLETEST_SHA256)
googleapis_commit = '1d5522ad1056f16a6d593b8f3038d831e64daeea'
googleapis_sha256 = 'cd13e547cffaad217c942084fd5ae0985a293d0cce3e788c20796e5e2ea54758'
def googleapis_repositories(bind=True):
http_archive(name='com_google_googleapis', strip_prefix='googleapis-' + GOOGLEAPIS_COMMIT, url='https://github.com/googleapis/googleapis/archive/' + GOOGLEAPIS_COMMIT + '.tar.gz', sha256=GOOGLEAPIS_SHA256) |
#!/usr/bin/env python
# encoding: utf-8
def run(whatweb, pluginname):
whatweb.recog_from_file(pluginname, "includes/js/tree.js", "PHPDISK")
| def run(whatweb, pluginname):
whatweb.recog_from_file(pluginname, 'includes/js/tree.js', 'PHPDISK') |
cur.execute('select * from examplefunc(?,?,?)',{'in1':1,'in2':1.1,'in3':'hello'})
out1=cur.fetchone()[0]
out2=cur.fetchone()[1]
out3=cur.fetchone()[2]
| cur.execute('select * from examplefunc(?,?,?)', {'in1': 1, 'in2': 1.1, 'in3': 'hello'})
out1 = cur.fetchone()[0]
out2 = cur.fetchone()[1]
out3 = cur.fetchone()[2] |
# Copyright (c) Microsoft Corporation
# Licensed under the MIT License.
name = 'raiutils'
_major = '0'
_minor = '0'
_patch = '1'
version = '{}.{}.{}'.format(_major, _minor, _patch)
| name = 'raiutils'
_major = '0'
_minor = '0'
_patch = '1'
version = '{}.{}.{}'.format(_major, _minor, _patch) |
class submarine:
def __init__(self):
self.hpos = 0 # Horizontal Position
self.depth = 0 # Depth
def _forward(self, dist):
self.hpos = self.hpos + dist
def _down(self, dist):
# print(f"moving depth from {self.depth} by {dist}")
self.depth = self.depth + dist
# print(f"depth is now: {self.depth}")
def _up(self, dist):
self.depth = self.depth - dist
def move(self, movestr):
(direction, distance) = movestr.split(' ')
distance = int(distance)
if direction == 'forward':
self._forward(distance)
elif direction == 'down':
self._down(distance)
elif direction == 'up':
self._up(distance)
| class Submarine:
def __init__(self):
self.hpos = 0
self.depth = 0
def _forward(self, dist):
self.hpos = self.hpos + dist
def _down(self, dist):
self.depth = self.depth + dist
def _up(self, dist):
self.depth = self.depth - dist
def move(self, movestr):
(direction, distance) = movestr.split(' ')
distance = int(distance)
if direction == 'forward':
self._forward(distance)
elif direction == 'down':
self._down(distance)
elif direction == 'up':
self._up(distance) |
class no_setters(object):
def __init__(self):
pass
def __getattribute__(self, name):
varname = f"_{name}" if not name.startswith('_') else name
try:
attr_tag = super(no_setters, self).__getattribute__("__attr_descriptor__")
except AttributeError:
attr_tag = "Attribute"
err = f"{name} is an invalid {attr_tag}."
try:
return super(no_setters, self).__getattribute__(varname)
except AttributeError:
pass
raise AttributeError(err)
def __setattr__(self, name, value):
return False
| class No_Setters(object):
def __init__(self):
pass
def __getattribute__(self, name):
varname = f'_{name}' if not name.startswith('_') else name
try:
attr_tag = super(no_setters, self).__getattribute__('__attr_descriptor__')
except AttributeError:
attr_tag = 'Attribute'
err = f'{name} is an invalid {attr_tag}.'
try:
return super(no_setters, self).__getattribute__(varname)
except AttributeError:
pass
raise attribute_error(err)
def __setattr__(self, name, value):
return False |
#
# PySNMP MIB module CISCO-LIVEDATA-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LIVEDATA-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:04:40 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)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance")
Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Counter64, Bits, TimeTicks, Gauge32, IpAddress, Integer32, MibIdentifier, ModuleIdentity, ObjectIdentity, NotificationType, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Counter64", "Bits", "TimeTicks", "Gauge32", "IpAddress", "Integer32", "MibIdentifier", "ModuleIdentity", "ObjectIdentity", "NotificationType", "Unsigned32")
DateAndTime, TruthValue, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "DateAndTime", "TruthValue", "TextualConvention", "DisplayString")
ciscoLivedataMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 814))
ciscoLivedataMIB.setRevisions(('2013-05-23 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: ciscoLivedataMIB.setRevisionsDescriptions(('Initial version of this MIB.',))
if mibBuilder.loadTexts: ciscoLivedataMIB.setLastUpdated('201308290000Z')
if mibBuilder.loadTexts: ciscoLivedataMIB.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts: ciscoLivedataMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-snmp@cisco.com')
if mibBuilder.loadTexts: ciscoLivedataMIB.setDescription("Cisco LiveData is the next generation reporting product for Cisco Unified Contact Center Enterprise (CCE). Cisco LiveData provides a horizontally scalable, highly available architecture to support systems with large numbers of reporting users. LiveData enables fast refresh rates on real-time data (3 seconds or less). A LiveData node consumes real-time data streams from one or more sources, processes the data and publishes the resulting data to solution consumers. Consumers may be database management systems, applications or reporting engines. Cisco LiveData aggregates and publishes real-time data and metrics pushed to it (e.g. from the CCE router and/or peripheral gateway components) to a message bus; Cisco Unified Intelligence Center (CUIC) and the CCE Administrator Workstation (AW) subscribe to this message bus to receive real-time data updates. CUIC users then build reports using this real-time data; other CCE clients may also query this real-time data from the CCE AW database. A LiveData cluster consists of one or more nodes; one is designated as the master with additional worker nodes as needed. A LiveData cluster may have a remote peer cluster that works cooperatively in a fault-tolerant model. LiveData cluster peers communicate with one another to negotiate who is the 'active' cluster and who is on 'standby' (only one cluster will be active at a time). If the active cluster fails, the standby cluster will transition to active and begin consuming the data streams previously consumed by the peer cluster. In small deployments, a LiveData cluster will be collocated with CUIC in the same server virtual machine; in larger deployments, a LiveData cluster may include several nodes that may or may not be collocated with CUIC. A single node in a LiveData cluster will have multiple services running in the guest virtual machine that are critical to the successful function of that node. Services may be distributed across the nodes of a cluster to balance the workload. Each node will establish and maintain connections to data sources in the solution. CISCO-LIVEDATA-MIB defines instrumentation unique to the LiveData servers (virtual machines). The instrumentation includes objects of: 1) a general nature - attributes of the device and application, 2) cluster status* and identity, 3) service status and identity and 4) connection status and attributes (including metrics). 5) events * It is important to note that cluster status is shared across all nodes of a cluster; cluster status is not device-specific unless there is only one node in the cluster. The MIB also defines a single notification type; all nodes in all clusters may emit notifications. Service and connection instrumentation is exposed as tables. The number of entries within each table may change over time, adapting to changes within the cluster. Glossary: --------- AW Administrator Workstation component of a Cisco Unified Contact Center Enterprise deployment. The AW collects and serves real-time and configuration data to the CCE solution. CCE (Cisco Unified) Contact Center Enterprise; CCE delivers intelligent contact routing, call treatment, network-to-desktop computer telephony integration, and multichannel contact management over an IP infrastructure. CUIC Cisco Unified Intelligence Center; CUIC is a web- based reporting application that provides real- time and historical reporting in an easy-to-use, wizard-based application for Cisco Contact Center products. UCCE Unified Contact Center Enterprise; see 'CCE'.")
class CldIndex(TextualConvention, Unsigned32):
description = 'This textual convention represents the index value of an entry in a table. In this MIB, table entries are sorted within a table in an ascending order based on its index value. Indexes for table entries are assigned by the SNMP agent.'
status = 'current'
displayHint = 'd'
subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1, 4294967295)
class CldSeverity(TextualConvention, Integer32):
description = "This textual convention indicates the severity level of a notification or a logged event (or trace) message. The severity levels are: 'emergency': Events of this severity indicate that a devastating failure has occurred; the system or service is unusable. Immediate operator intervention is required. 'alert': Events of this severity indicate that a devastating failure is imminent that will render the system unusable. Immediate operator attention is necessary. 'critical': Events of this severity indicate that a service-impacting failure is likely to occur soon which is the result of an error that was not appropriately handled by the system. Operator attention is needed as soon as possible. 'error': Events of this severity contain important operational state information and may indicate that the system has experienced a temporary impairment or an error that was appropriately handled by the system. An operator should review the notification soon as possible to determine if additional action is needed. 'warning': Events of this severity contain important operational state information that may be a precursor to an error occurrence. An operator should review the event soon to determine if additional action is needed. 'notice': Events of this severity contain health or operational state information that may be pertinent to the health of the system but do not require the immediate attention of the administrator. 'informational': Events of this severity contain interesting system-level information that is valuable to an administrator in time, however, the event itself does not indicate a fault or an impairment condition. 'debug': Events of this severity provide supplemental information that may be beneficial toward diagnosing or resolving a problem but do not necessarily provide operational health status."
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))
namedValues = NamedValues(("emergency", 1), ("alert", 2), ("critical", 3), ("error", 4), ("warning", 5), ("notice", 6), ("informational", 7), ("debug", 8))
ciscoLivedataMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 0))
ciscoLivedataMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1))
cldGeneral = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1))
cldCluster = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 2))
cldServices = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3))
cldReportingConnections = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4))
cldEvents = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5))
ciscoLivedataMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 2))
ciscoLivedataMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 1))
ciscoLivedataMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2))
cldServerName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 1), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldServerName.setStatus('current')
if mibBuilder.loadTexts: cldServerName.setDescription('This object indicates the fully-qualified domain name of the Cisco LiveData server.')
cldDescription = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 2), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldDescription.setStatus('current')
if mibBuilder.loadTexts: cldDescription.setDescription('This object indicates a textual description of the Cisco LiveData software installed on this server. This is typically the full name of the application.')
cldVersion = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 3), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldVersion.setStatus('current')
if mibBuilder.loadTexts: cldVersion.setDescription('This object indicates the version number of the Cisco LiveData software that is installed on this server.')
cldStartTime = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 4), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldStartTime.setStatus('current')
if mibBuilder.loadTexts: cldStartTime.setDescription('This object indicates the date and time that the Cisco LiveData software (the primary application service) was started on this server.')
cldTimeZoneName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 5), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldTimeZoneName.setStatus('current')
if mibBuilder.loadTexts: cldTimeZoneName.setDescription('This object indicates the textual name of the time zone where the Cisco LiveData server (host) is physically located.')
cldTimeZoneOffset = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 6), Integer32()).setUnits('minutes').setMaxAccess("readonly")
if mibBuilder.loadTexts: cldTimeZoneOffset.setStatus('current')
if mibBuilder.loadTexts: cldTimeZoneOffset.setDescription('This object indicates the number of minutes that the local time, in the time zone where the Cisco LiveData server (host) is physically located, differs from Greenwich Mean Time (GMT).')
cldEventNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 7), TruthValue().clone('true')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cldEventNotifEnable.setStatus('current')
if mibBuilder.loadTexts: cldEventNotifEnable.setDescription("This object specifies whether event generation is enabled in the SNMP entity. This object allows a management station to disable, during run time, all outgoing Cisco LiveData notifications. This is typically done during a maintenance window when many application components are frequently stopped, reconfigured and restarted, which can generate periodic floods of notifications that are not desirable during a maintenance period. Please note that this setting is persistent even after a restart of the agent; the management station must explicitly reset this object value back to 'true' to re-enable outgoing application notifications from this device. When the value of this object is 'true', notifications will be sent to configured management stations. When the value is set to 'false' by a management station, notifications will not be sent to configured management stations. The default value of this object is 'true'. The value of this object does not alter the normal table management behavior of the event table, i.e., generated events will be stored in the event table regardless of the value of this object.")
cldClusterID = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 2, 1), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldClusterID.setStatus('current')
if mibBuilder.loadTexts: cldClusterID.setDescription("This object indicates a cluster- unique textual identifier for this cluster (e.g. 'sideA').")
cldClusterStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("pairedActive", 1), ("pairedStandby", 2), ("isolatedActive", 3), ("isolatedStandby", 4), ("testing", 5), ("outOfService", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldClusterStatus.setStatus('current')
if mibBuilder.loadTexts: cldClusterStatus.setDescription("This object indicates the current status of this cluster of Cisco LiveData servers. A cluster is a group of one or more Cisco LiveData servers that work cooperatively to consume and process inbound real-time data from one or more data sources. Work is distributed between worker nodes within the cluster by the master node. A cluster may have a peer cluster in a fault-tolerant deployment model that will assume data processing duties in the event where its active peer cluster fails. 'pairedActive': The cluster is actively processing data and is communicating with its remote peer cluster. 'pairedStandby': The cluster is standing by (waiting to process data if necessary) and is communicating with its remote peer cluster. 'isolatedActive': The cluster is is actively processing data but has lost peer-to-peer communication with it's remote peer cluster. 'isolatedStandby': The cluster is standing by (waiting to process data if necessary) but has lost peer-to-peer communication with its remote peer cluster. 'testing': The cluster is unable to communicate with the remote peer cluster via the peer-to-peer connection and it is invoking the 'test-other-side' procedure to decide whether to become active or to go into a standby state. 'outOfService': The cluster is out of service.")
cldClusterAddress = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 2, 3), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldClusterAddress.setStatus('current')
if mibBuilder.loadTexts: cldClusterAddress.setDescription('This object indicates the hostname or the IP address of the remote peer cluster for peer-to-peer communication with the remote cluster.')
cldServiceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1), )
if mibBuilder.loadTexts: cldServiceTable.setStatus('current')
if mibBuilder.loadTexts: cldServiceTable.setDescription('The service table is a list of Cisco LiveData services. A service in this context is one or more executable processes that have been configured to run on this server. Service table objects include both the service name and the current run state of that service. A single LiveData server will have multiple running services, each of a different type, that encompass the LiveData solution on a particular server. Some of these services work cooperatively with similar or dependent services on other server nodes in the cluster. The SNMP agent constructs the service table at startup; the agent refreshes this table periodically during runtime to offer a near real-time status of configured services. Service table entries cannot be added to or deleted from the table by the management station. All objects in this table are read-only.')
cldServiceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-LIVEDATA-MIB", "cldServiceIndex"))
if mibBuilder.loadTexts: cldServiceEntry.setStatus('current')
if mibBuilder.loadTexts: cldServiceEntry.setDescription('Each service entry represents a Cisco LiveData service. The LiveData application software includes a collection of related services, each of which perform a specific, necessary function of the application.')
cldServiceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1, 1), CldIndex())
if mibBuilder.loadTexts: cldServiceIndex.setStatus('current')
if mibBuilder.loadTexts: cldServiceIndex.setDescription('The service index is a value that uniquely identifies an entry in the services table. This value is arbitrarily assigned by the SNMP agent.')
cldServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1, 2), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldServiceName.setStatus('current')
if mibBuilder.loadTexts: cldServiceName.setDescription('This object indicates a user-intuitive textual name for the Cisco LiveData service.')
cldServiceState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("unknown", 1), ("disabled", 2), ("starting", 3), ("started", 4), ("active", 5), ("stopping", 6), ("stopped", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldServiceState.setStatus('current')
if mibBuilder.loadTexts: cldServiceState.setDescription("This object indicates the last known state of the Cisco LiveData service. The object value identifies the run status of a configured service installed on the Cisco LiveData server. The possible service states are: 'unknown': The status of the service cannot be determined. 'disabled': The service has been explicitly disabled by an administrator. 'starting': The service is currently starting up but has not yet completed its startup procedure. 'started': The service has completed its startup procedure and is currently running. 'active': The service has been started, is currently running and is actively processing data. 'stopping': The service is stopping and is in the midst of its shutdown procedure. 'stopped': The service is stopped. The service may be dysfunctional or impaired, or it has been explicitly stopped by an administrator.")
cldServiceUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1, 4), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldServiceUpTime.setStatus('current')
if mibBuilder.loadTexts: cldServiceUpTime.setDescription('This object indicates the date and time that this service started.')
cldReportingConnectionTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1), )
if mibBuilder.loadTexts: cldReportingConnectionTable.setStatus('current')
if mibBuilder.loadTexts: cldReportingConnectionTable.setDescription('The reporting connection table is a list of Cisco LiveData server reporting connections. A LiveData server maintains a number of active connections to data sources; most often, these are contact center solution nodes that generate real- time data that is ultimately used for creating reports. Reporting connection table objects include objects that identify the reporting connection, the current state of that connection and a set of metrics and attributes that offer an indication of the connection health and performance. A single LiveData server may have multiple reporting connections, each to a different peer node and/or to multiple data sources from a single node. The SNMP agent constructs the reporting connection table at startup; the agent refreshes this table periodically during runtime when each LiveData service reports connection states. Reporting connection table entries cannot be added to or deleted from the table by the management station. All objects in this table are read-only.')
cldReportingConnectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1), ).setIndexNames((0, "CISCO-LIVEDATA-MIB", "cldRptConnIndex"))
if mibBuilder.loadTexts: cldReportingConnectionEntry.setStatus('current')
if mibBuilder.loadTexts: cldReportingConnectionEntry.setDescription('Each reporting connection entry represents a Cisco LiveData reporting connection. The LiveData application connects to a number of data sources, each of which sends real-time data as a stream to the LiveData server.')
cldRptConnIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 1), CldIndex())
if mibBuilder.loadTexts: cldRptConnIndex.setStatus('current')
if mibBuilder.loadTexts: cldRptConnIndex.setDescription('The reporting connection index is a value that uniquely identifies an entry in the reporting connection table. This value is arbitrarily assigned by the SNMP agent.')
cldRptConnServerID = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 2), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldRptConnServerID.setStatus('current')
if mibBuilder.loadTexts: cldRptConnServerID.setDescription('This object indicates a user-intuitive textual identification for the Cisco LiveData connection; this is indicative of the source of the real-time data streamed via this reporting connection.')
cldRptConnServerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 3), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldRptConnServerAddress.setStatus('current')
if mibBuilder.loadTexts: cldRptConnServerAddress.setDescription('This object indicates the hostname or IP address of the peer node in this reporting connection.')
cldRptConnState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("inactive", 1), ("active", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldRptConnState.setStatus('current')
if mibBuilder.loadTexts: cldRptConnState.setDescription('This object indicates the current state of this reporting connection; it is either active or inactive.')
cldRptConnStateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 5), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldRptConnStateTime.setStatus('current')
if mibBuilder.loadTexts: cldRptConnStateTime.setDescription('This object indicates the date and time that this reporting connection transitioned into its current state.')
cldRptConnEventRate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 6), Gauge32()).setUnits('events').setMaxAccess("readonly")
if mibBuilder.loadTexts: cldRptConnEventRate.setStatus('current')
if mibBuilder.loadTexts: cldRptConnEventRate.setDescription('This object indicates the number of events that are arriving via this connection per second.')
cldRptConnHeartbeatRTT = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 7), Gauge32()).setUnits('milliseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: cldRptConnHeartbeatRTT.setStatus('current')
if mibBuilder.loadTexts: cldRptConnHeartbeatRTT.setDescription('This object indicates the time, in milliseconds, for heartbeat requests to be returned from the peer node in this reporting connection.')
cldRptConnSocketConnects = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldRptConnSocketConnects.setStatus('current')
if mibBuilder.loadTexts: cldRptConnSocketConnects.setDescription('This object indicates the number of successful socket connections made to the peer node in this reporting connection.')
cldRptConnSocketDisconnects = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldRptConnSocketDisconnects.setStatus('current')
if mibBuilder.loadTexts: cldRptConnSocketDisconnects.setDescription('This object indicates the number of socket disconnects with the peer node in this reporting connection. This is used in conjunction with cldConnSocketConnects to identify unstable connections to a particular endpoint.')
cldRptConnMessagesDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 10), Counter32()).setUnits('messages').setMaxAccess("readonly")
if mibBuilder.loadTexts: cldRptConnMessagesDiscarded.setStatus('current')
if mibBuilder.loadTexts: cldRptConnMessagesDiscarded.setDescription('This object indicates the number of messages sent by the peer node in this reporting connection that have been discarded.')
cldRptConnDSCP = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldRptConnDSCP.setStatus('current')
if mibBuilder.loadTexts: cldRptConnDSCP.setDescription('This object indicates the Differentiated Services (DS) value currently used by this reporting connection for Quality of Service (QoS) marking.')
cldEventTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1), )
if mibBuilder.loadTexts: cldEventTable.setStatus('current')
if mibBuilder.loadTexts: cldEventTable.setDescription('The event table is a list of active Cisco LiveData events. The SNMP agent constructs the event table at startup and it fills the table as events are generated. Events with the same cldEventID value will overwrite existing events in the table with the same EventID (i.e. only the most recent will persist). Event table entries cannot be added to or deleted from the table by the management station. All objects in this table are read-only.')
cldEventEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1), ).setIndexNames((0, "CISCO-LIVEDATA-MIB", "cldEventIndex"))
if mibBuilder.loadTexts: cldEventEntry.setStatus('current')
if mibBuilder.loadTexts: cldEventEntry.setDescription('Each event entry represents a Cisco LiveData event. The LiveData application software generates events when an unusual condition has occurred that can potentially affect the functioning of the Cisco LiveData server.')
cldEventIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 1), CldIndex())
if mibBuilder.loadTexts: cldEventIndex.setStatus('current')
if mibBuilder.loadTexts: cldEventIndex.setDescription('The event index is a value that uniquely identifies an entry in the event table. This value is arbitrarily assigned by the SNMP agent.')
cldEventID = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldEventID.setStatus('current')
if mibBuilder.loadTexts: cldEventID.setDescription("This object indicates the unique numeric event message identifier that is assigned by the LiveData server to this event. This identifier is unique for each different event. The event ID can be used to correlate 'clear' state events to 'raise' state events.")
cldEventAppName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 3), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldEventAppName.setStatus('current')
if mibBuilder.loadTexts: cldEventAppName.setDescription('This object indicates the service- specific name of the Cisco LiveData functional service that generated this event.')
cldEventName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 4), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldEventName.setStatus('current')
if mibBuilder.loadTexts: cldEventName.setDescription('This object indicates the service-specific name of the Cisco LiveData event message. The object value is used to group similar events.')
cldEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("raise", 1), ("clear", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldEventState.setStatus('current')
if mibBuilder.loadTexts: cldEventState.setDescription("This object indicates the state (not to be confused with severity) of the event and potentially the current status of the functional component that generated the event. The possible states are: 'raise': A raise state identifies an event received as a result of a health-impacting condition, such as a process failure. A subsequent clear state event will follow when the error condition is resolved. A node which generates a 'raise' state event may be impaired and likely requires the attention of an administrator. 'clear': The clear state indicates that the condition which generated a previous raise notification has been resolved. This may occur automatically with fault-tolerant deployments or may be the result of administrator intervention.")
cldEventSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 6), CldSeverity()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldEventSeverity.setStatus('current')
if mibBuilder.loadTexts: cldEventSeverity.setDescription('This object indicates the severity level of this event.')
cldEventTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 7), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldEventTimestamp.setStatus('current')
if mibBuilder.loadTexts: cldEventTimestamp.setDescription('This object indicates the date and time that the event was generated on the originating device.')
cldEventText = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 8), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldEventText.setStatus('current')
if mibBuilder.loadTexts: cldEventText.setDescription('This object indicates the full text of the event which includes a description of the event that was generated, component state information and potentially a brief description of administrative action that may be necessary to correct the condition that caused the event to occur.')
cldEventNotif = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 814, 0, 1)).setObjects(("CISCO-LIVEDATA-MIB", "cldEventID"), ("CISCO-LIVEDATA-MIB", "cldServerName"), ("CISCO-LIVEDATA-MIB", "cldEventAppName"), ("CISCO-LIVEDATA-MIB", "cldEventName"), ("CISCO-LIVEDATA-MIB", "cldEventState"), ("CISCO-LIVEDATA-MIB", "cldEventSeverity"), ("CISCO-LIVEDATA-MIB", "cldEventTimestamp"), ("CISCO-LIVEDATA-MIB", "cldEventText"))
if mibBuilder.loadTexts: cldEventNotif.setStatus('current')
if mibBuilder.loadTexts: cldEventNotif.setDescription("The SNMP entity generates cldEventNotif when an unusual condition has occurred that can potentially affect the functioning of the Cisco LiveData server. This notification type describes operational state information of the service generating the notification when such service-impacting conditions occur. A notification is sent by a functional service of the Cisco LiveData server. The notification type includes the following objects: 'cldEventID': The unique numeric event message identifier for this event. 'cldServerName': The fully-qualified domain name of the Cisco LiveData server that generated the notification. 'cldEventAppName': The name of the Cisco LiveData functional service that generated this event. 'cldEventName': The service-specific name of the Cisco LiveData event message. 'cldEventState': The state of the event, either 'raise' or 'clear'. A 'raise' state event is generated when an unusual or service- impacting condition occurs while a 'clear' state event is generated when a prior condition has been resolved. 'cldEventSeverity': The severity level of this event; an integer value from 1 (emergency) to 8 (debug). 'cldEventTimestamp': The date and time that the event was generated. 'cldEventText': The full text of the event.")
ciscoLivedataMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 1, 1)).setObjects(("CISCO-LIVEDATA-MIB", "cldGeneralGroup"), ("CISCO-LIVEDATA-MIB", "cldClusterGroup"), ("CISCO-LIVEDATA-MIB", "cldServicesGroup"), ("CISCO-LIVEDATA-MIB", "cldRptConnectionsGroup"), ("CISCO-LIVEDATA-MIB", "cldEventsGroup"), ("CISCO-LIVEDATA-MIB", "cldMIBEventGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoLivedataMIBCompliance = ciscoLivedataMIBCompliance.setStatus('current')
if mibBuilder.loadTexts: ciscoLivedataMIBCompliance.setDescription('This object is the compliance statement for entities which implement the Cisco LiveData MIB.')
cldGeneralGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 1)).setObjects(("CISCO-LIVEDATA-MIB", "cldServerName"), ("CISCO-LIVEDATA-MIB", "cldDescription"), ("CISCO-LIVEDATA-MIB", "cldVersion"), ("CISCO-LIVEDATA-MIB", "cldStartTime"), ("CISCO-LIVEDATA-MIB", "cldTimeZoneName"), ("CISCO-LIVEDATA-MIB", "cldTimeZoneOffset"), ("CISCO-LIVEDATA-MIB", "cldEventNotifEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cldGeneralGroup = cldGeneralGroup.setStatus('current')
if mibBuilder.loadTexts: cldGeneralGroup.setDescription('The general group defines the general Cisco LiveData objects. All servers will populate these objects.')
cldClusterGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 2)).setObjects(("CISCO-LIVEDATA-MIB", "cldClusterID"), ("CISCO-LIVEDATA-MIB", "cldClusterStatus"), ("CISCO-LIVEDATA-MIB", "cldClusterAddress"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cldClusterGroup = cldClusterGroup.setStatus('current')
if mibBuilder.loadTexts: cldClusterGroup.setDescription('The cluster group defines the Cisco LiveData objects related to the cluster of LiveData servers. All servers will populate these objects.')
cldServicesGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 3)).setObjects(("CISCO-LIVEDATA-MIB", "cldServiceName"), ("CISCO-LIVEDATA-MIB", "cldServiceState"), ("CISCO-LIVEDATA-MIB", "cldServiceUpTime"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cldServicesGroup = cldServicesGroup.setStatus('current')
if mibBuilder.loadTexts: cldServicesGroup.setDescription('The services group defines the Cisco LiveData service table objects. All servers will populate these objects, however, the number of entries in the table will vary across servers and the types of services will vary as well.')
cldRptConnectionsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 4)).setObjects(("CISCO-LIVEDATA-MIB", "cldRptConnServerID"), ("CISCO-LIVEDATA-MIB", "cldRptConnServerAddress"), ("CISCO-LIVEDATA-MIB", "cldRptConnState"), ("CISCO-LIVEDATA-MIB", "cldRptConnStateTime"), ("CISCO-LIVEDATA-MIB", "cldRptConnEventRate"), ("CISCO-LIVEDATA-MIB", "cldRptConnHeartbeatRTT"), ("CISCO-LIVEDATA-MIB", "cldRptConnSocketConnects"), ("CISCO-LIVEDATA-MIB", "cldRptConnSocketDisconnects"), ("CISCO-LIVEDATA-MIB", "cldRptConnMessagesDiscarded"), ("CISCO-LIVEDATA-MIB", "cldRptConnDSCP"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cldRptConnectionsGroup = cldRptConnectionsGroup.setStatus('current')
if mibBuilder.loadTexts: cldRptConnectionsGroup.setDescription('The reporting connections group defines the Cisco LiveData connection table objects. All servers will populate these objects, however, the number of entries in the table will vary across servers.')
cldEventsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 5)).setObjects(("CISCO-LIVEDATA-MIB", "cldEventID"), ("CISCO-LIVEDATA-MIB", "cldEventAppName"), ("CISCO-LIVEDATA-MIB", "cldEventName"), ("CISCO-LIVEDATA-MIB", "cldEventState"), ("CISCO-LIVEDATA-MIB", "cldEventSeverity"), ("CISCO-LIVEDATA-MIB", "cldEventTimestamp"), ("CISCO-LIVEDATA-MIB", "cldEventText"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cldEventsGroup = cldEventsGroup.setStatus('current')
if mibBuilder.loadTexts: cldEventsGroup.setDescription('The events group defines the Cisco LiveData event table objects. All servers will populate these objects, however, the number of entries in the table will vary across servers.')
cldMIBEventGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 6)).setObjects(("CISCO-LIVEDATA-MIB", "cldEventNotif"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cldMIBEventGroup = cldMIBEventGroup.setStatus('current')
if mibBuilder.loadTexts: cldMIBEventGroup.setDescription('This group defines the notification types defined in this MIB.')
mibBuilder.exportSymbols("CISCO-LIVEDATA-MIB", cldEventEntry=cldEventEntry, cldServerName=cldServerName, cldRptConnState=cldRptConnState, cldEventsGroup=cldEventsGroup, cldCluster=cldCluster, ciscoLivedataMIBGroups=ciscoLivedataMIBGroups, ciscoLivedataMIB=ciscoLivedataMIB, cldEvents=cldEvents, cldEventID=cldEventID, cldEventTable=cldEventTable, cldEventText=cldEventText, CldSeverity=CldSeverity, cldRptConnHeartbeatRTT=cldRptConnHeartbeatRTT, cldServiceTable=cldServiceTable, cldRptConnIndex=cldRptConnIndex, cldRptConnectionsGroup=cldRptConnectionsGroup, cldClusterGroup=cldClusterGroup, cldServicesGroup=cldServicesGroup, cldReportingConnectionEntry=cldReportingConnectionEntry, cldRptConnServerAddress=cldRptConnServerAddress, CldIndex=CldIndex, ciscoLivedataMIBConform=ciscoLivedataMIBConform, cldRptConnStateTime=cldRptConnStateTime, cldRptConnSocketDisconnects=cldRptConnSocketDisconnects, cldTimeZoneOffset=cldTimeZoneOffset, cldEventNotif=cldEventNotif, cldVersion=cldVersion, cldStartTime=cldStartTime, cldMIBEventGroup=cldMIBEventGroup, cldGeneralGroup=cldGeneralGroup, cldClusterStatus=cldClusterStatus, ciscoLivedataMIBCompliances=ciscoLivedataMIBCompliances, cldServiceIndex=cldServiceIndex, cldEventSeverity=cldEventSeverity, ciscoLivedataMIBNotifs=ciscoLivedataMIBNotifs, cldEventIndex=cldEventIndex, ciscoLivedataMIBCompliance=ciscoLivedataMIBCompliance, cldEventTimestamp=cldEventTimestamp, cldGeneral=cldGeneral, cldServiceEntry=cldServiceEntry, cldEventName=cldEventName, cldTimeZoneName=cldTimeZoneName, cldEventAppName=cldEventAppName, cldRptConnEventRate=cldRptConnEventRate, cldServiceName=cldServiceName, cldServiceState=cldServiceState, cldClusterAddress=cldClusterAddress, cldServiceUpTime=cldServiceUpTime, cldDescription=cldDescription, cldRptConnServerID=cldRptConnServerID, cldRptConnSocketConnects=cldRptConnSocketConnects, cldRptConnDSCP=cldRptConnDSCP, cldReportingConnections=cldReportingConnections, cldEventState=cldEventState, cldClusterID=cldClusterID, cldReportingConnectionTable=cldReportingConnectionTable, cldServices=cldServices, PYSNMP_MODULE_ID=ciscoLivedataMIB, cldEventNotifEnable=cldEventNotifEnable, cldRptConnMessagesDiscarded=cldRptConnMessagesDiscarded, ciscoLivedataMIBObjects=ciscoLivedataMIBObjects)
| (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, value_size_constraint, constraints_union, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection')
(cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance')
(counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, counter64, bits, time_ticks, gauge32, ip_address, integer32, mib_identifier, module_identity, object_identity, notification_type, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'Counter64', 'Bits', 'TimeTicks', 'Gauge32', 'IpAddress', 'Integer32', 'MibIdentifier', 'ModuleIdentity', 'ObjectIdentity', 'NotificationType', 'Unsigned32')
(date_and_time, truth_value, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'DateAndTime', 'TruthValue', 'TextualConvention', 'DisplayString')
cisco_livedata_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 814))
ciscoLivedataMIB.setRevisions(('2013-05-23 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
ciscoLivedataMIB.setRevisionsDescriptions(('Initial version of this MIB.',))
if mibBuilder.loadTexts:
ciscoLivedataMIB.setLastUpdated('201308290000Z')
if mibBuilder.loadTexts:
ciscoLivedataMIB.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts:
ciscoLivedataMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-snmp@cisco.com')
if mibBuilder.loadTexts:
ciscoLivedataMIB.setDescription("Cisco LiveData is the next generation reporting product for Cisco Unified Contact Center Enterprise (CCE). Cisco LiveData provides a horizontally scalable, highly available architecture to support systems with large numbers of reporting users. LiveData enables fast refresh rates on real-time data (3 seconds or less). A LiveData node consumes real-time data streams from one or more sources, processes the data and publishes the resulting data to solution consumers. Consumers may be database management systems, applications or reporting engines. Cisco LiveData aggregates and publishes real-time data and metrics pushed to it (e.g. from the CCE router and/or peripheral gateway components) to a message bus; Cisco Unified Intelligence Center (CUIC) and the CCE Administrator Workstation (AW) subscribe to this message bus to receive real-time data updates. CUIC users then build reports using this real-time data; other CCE clients may also query this real-time data from the CCE AW database. A LiveData cluster consists of one or more nodes; one is designated as the master with additional worker nodes as needed. A LiveData cluster may have a remote peer cluster that works cooperatively in a fault-tolerant model. LiveData cluster peers communicate with one another to negotiate who is the 'active' cluster and who is on 'standby' (only one cluster will be active at a time). If the active cluster fails, the standby cluster will transition to active and begin consuming the data streams previously consumed by the peer cluster. In small deployments, a LiveData cluster will be collocated with CUIC in the same server virtual machine; in larger deployments, a LiveData cluster may include several nodes that may or may not be collocated with CUIC. A single node in a LiveData cluster will have multiple services running in the guest virtual machine that are critical to the successful function of that node. Services may be distributed across the nodes of a cluster to balance the workload. Each node will establish and maintain connections to data sources in the solution. CISCO-LIVEDATA-MIB defines instrumentation unique to the LiveData servers (virtual machines). The instrumentation includes objects of: 1) a general nature - attributes of the device and application, 2) cluster status* and identity, 3) service status and identity and 4) connection status and attributes (including metrics). 5) events * It is important to note that cluster status is shared across all nodes of a cluster; cluster status is not device-specific unless there is only one node in the cluster. The MIB also defines a single notification type; all nodes in all clusters may emit notifications. Service and connection instrumentation is exposed as tables. The number of entries within each table may change over time, adapting to changes within the cluster. Glossary: --------- AW Administrator Workstation component of a Cisco Unified Contact Center Enterprise deployment. The AW collects and serves real-time and configuration data to the CCE solution. CCE (Cisco Unified) Contact Center Enterprise; CCE delivers intelligent contact routing, call treatment, network-to-desktop computer telephony integration, and multichannel contact management over an IP infrastructure. CUIC Cisco Unified Intelligence Center; CUIC is a web- based reporting application that provides real- time and historical reporting in an easy-to-use, wizard-based application for Cisco Contact Center products. UCCE Unified Contact Center Enterprise; see 'CCE'.")
class Cldindex(TextualConvention, Unsigned32):
description = 'This textual convention represents the index value of an entry in a table. In this MIB, table entries are sorted within a table in an ascending order based on its index value. Indexes for table entries are assigned by the SNMP agent.'
status = 'current'
display_hint = 'd'
subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1, 4294967295)
class Cldseverity(TextualConvention, Integer32):
description = "This textual convention indicates the severity level of a notification or a logged event (or trace) message. The severity levels are: 'emergency': Events of this severity indicate that a devastating failure has occurred; the system or service is unusable. Immediate operator intervention is required. 'alert': Events of this severity indicate that a devastating failure is imminent that will render the system unusable. Immediate operator attention is necessary. 'critical': Events of this severity indicate that a service-impacting failure is likely to occur soon which is the result of an error that was not appropriately handled by the system. Operator attention is needed as soon as possible. 'error': Events of this severity contain important operational state information and may indicate that the system has experienced a temporary impairment or an error that was appropriately handled by the system. An operator should review the notification soon as possible to determine if additional action is needed. 'warning': Events of this severity contain important operational state information that may be a precursor to an error occurrence. An operator should review the event soon to determine if additional action is needed. 'notice': Events of this severity contain health or operational state information that may be pertinent to the health of the system but do not require the immediate attention of the administrator. 'informational': Events of this severity contain interesting system-level information that is valuable to an administrator in time, however, the event itself does not indicate a fault or an impairment condition. 'debug': Events of this severity provide supplemental information that may be beneficial toward diagnosing or resolving a problem but do not necessarily provide operational health status."
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))
named_values = named_values(('emergency', 1), ('alert', 2), ('critical', 3), ('error', 4), ('warning', 5), ('notice', 6), ('informational', 7), ('debug', 8))
cisco_livedata_mib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 0))
cisco_livedata_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1))
cld_general = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1))
cld_cluster = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 2))
cld_services = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3))
cld_reporting_connections = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4))
cld_events = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5))
cisco_livedata_mib_conform = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 2))
cisco_livedata_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 1))
cisco_livedata_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2))
cld_server_name = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 1), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldServerName.setStatus('current')
if mibBuilder.loadTexts:
cldServerName.setDescription('This object indicates the fully-qualified domain name of the Cisco LiveData server.')
cld_description = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 2), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldDescription.setStatus('current')
if mibBuilder.loadTexts:
cldDescription.setDescription('This object indicates a textual description of the Cisco LiveData software installed on this server. This is typically the full name of the application.')
cld_version = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 3), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldVersion.setStatus('current')
if mibBuilder.loadTexts:
cldVersion.setDescription('This object indicates the version number of the Cisco LiveData software that is installed on this server.')
cld_start_time = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 4), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldStartTime.setStatus('current')
if mibBuilder.loadTexts:
cldStartTime.setDescription('This object indicates the date and time that the Cisco LiveData software (the primary application service) was started on this server.')
cld_time_zone_name = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 5), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldTimeZoneName.setStatus('current')
if mibBuilder.loadTexts:
cldTimeZoneName.setDescription('This object indicates the textual name of the time zone where the Cisco LiveData server (host) is physically located.')
cld_time_zone_offset = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 6), integer32()).setUnits('minutes').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldTimeZoneOffset.setStatus('current')
if mibBuilder.loadTexts:
cldTimeZoneOffset.setDescription('This object indicates the number of minutes that the local time, in the time zone where the Cisco LiveData server (host) is physically located, differs from Greenwich Mean Time (GMT).')
cld_event_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 7), truth_value().clone('true')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cldEventNotifEnable.setStatus('current')
if mibBuilder.loadTexts:
cldEventNotifEnable.setDescription("This object specifies whether event generation is enabled in the SNMP entity. This object allows a management station to disable, during run time, all outgoing Cisco LiveData notifications. This is typically done during a maintenance window when many application components are frequently stopped, reconfigured and restarted, which can generate periodic floods of notifications that are not desirable during a maintenance period. Please note that this setting is persistent even after a restart of the agent; the management station must explicitly reset this object value back to 'true' to re-enable outgoing application notifications from this device. When the value of this object is 'true', notifications will be sent to configured management stations. When the value is set to 'false' by a management station, notifications will not be sent to configured management stations. The default value of this object is 'true'. The value of this object does not alter the normal table management behavior of the event table, i.e., generated events will be stored in the event table regardless of the value of this object.")
cld_cluster_id = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 2, 1), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldClusterID.setStatus('current')
if mibBuilder.loadTexts:
cldClusterID.setDescription("This object indicates a cluster- unique textual identifier for this cluster (e.g. 'sideA').")
cld_cluster_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('pairedActive', 1), ('pairedStandby', 2), ('isolatedActive', 3), ('isolatedStandby', 4), ('testing', 5), ('outOfService', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldClusterStatus.setStatus('current')
if mibBuilder.loadTexts:
cldClusterStatus.setDescription("This object indicates the current status of this cluster of Cisco LiveData servers. A cluster is a group of one or more Cisco LiveData servers that work cooperatively to consume and process inbound real-time data from one or more data sources. Work is distributed between worker nodes within the cluster by the master node. A cluster may have a peer cluster in a fault-tolerant deployment model that will assume data processing duties in the event where its active peer cluster fails. 'pairedActive': The cluster is actively processing data and is communicating with its remote peer cluster. 'pairedStandby': The cluster is standing by (waiting to process data if necessary) and is communicating with its remote peer cluster. 'isolatedActive': The cluster is is actively processing data but has lost peer-to-peer communication with it's remote peer cluster. 'isolatedStandby': The cluster is standing by (waiting to process data if necessary) but has lost peer-to-peer communication with its remote peer cluster. 'testing': The cluster is unable to communicate with the remote peer cluster via the peer-to-peer connection and it is invoking the 'test-other-side' procedure to decide whether to become active or to go into a standby state. 'outOfService': The cluster is out of service.")
cld_cluster_address = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 2, 3), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldClusterAddress.setStatus('current')
if mibBuilder.loadTexts:
cldClusterAddress.setDescription('This object indicates the hostname or the IP address of the remote peer cluster for peer-to-peer communication with the remote cluster.')
cld_service_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1))
if mibBuilder.loadTexts:
cldServiceTable.setStatus('current')
if mibBuilder.loadTexts:
cldServiceTable.setDescription('The service table is a list of Cisco LiveData services. A service in this context is one or more executable processes that have been configured to run on this server. Service table objects include both the service name and the current run state of that service. A single LiveData server will have multiple running services, each of a different type, that encompass the LiveData solution on a particular server. Some of these services work cooperatively with similar or dependent services on other server nodes in the cluster. The SNMP agent constructs the service table at startup; the agent refreshes this table periodically during runtime to offer a near real-time status of configured services. Service table entries cannot be added to or deleted from the table by the management station. All objects in this table are read-only.')
cld_service_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1)).setIndexNames((0, 'CISCO-LIVEDATA-MIB', 'cldServiceIndex'))
if mibBuilder.loadTexts:
cldServiceEntry.setStatus('current')
if mibBuilder.loadTexts:
cldServiceEntry.setDescription('Each service entry represents a Cisco LiveData service. The LiveData application software includes a collection of related services, each of which perform a specific, necessary function of the application.')
cld_service_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1, 1), cld_index())
if mibBuilder.loadTexts:
cldServiceIndex.setStatus('current')
if mibBuilder.loadTexts:
cldServiceIndex.setDescription('The service index is a value that uniquely identifies an entry in the services table. This value is arbitrarily assigned by the SNMP agent.')
cld_service_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1, 2), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldServiceName.setStatus('current')
if mibBuilder.loadTexts:
cldServiceName.setDescription('This object indicates a user-intuitive textual name for the Cisco LiveData service.')
cld_service_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('unknown', 1), ('disabled', 2), ('starting', 3), ('started', 4), ('active', 5), ('stopping', 6), ('stopped', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldServiceState.setStatus('current')
if mibBuilder.loadTexts:
cldServiceState.setDescription("This object indicates the last known state of the Cisco LiveData service. The object value identifies the run status of a configured service installed on the Cisco LiveData server. The possible service states are: 'unknown': The status of the service cannot be determined. 'disabled': The service has been explicitly disabled by an administrator. 'starting': The service is currently starting up but has not yet completed its startup procedure. 'started': The service has completed its startup procedure and is currently running. 'active': The service has been started, is currently running and is actively processing data. 'stopping': The service is stopping and is in the midst of its shutdown procedure. 'stopped': The service is stopped. The service may be dysfunctional or impaired, or it has been explicitly stopped by an administrator.")
cld_service_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1, 4), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldServiceUpTime.setStatus('current')
if mibBuilder.loadTexts:
cldServiceUpTime.setDescription('This object indicates the date and time that this service started.')
cld_reporting_connection_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1))
if mibBuilder.loadTexts:
cldReportingConnectionTable.setStatus('current')
if mibBuilder.loadTexts:
cldReportingConnectionTable.setDescription('The reporting connection table is a list of Cisco LiveData server reporting connections. A LiveData server maintains a number of active connections to data sources; most often, these are contact center solution nodes that generate real- time data that is ultimately used for creating reports. Reporting connection table objects include objects that identify the reporting connection, the current state of that connection and a set of metrics and attributes that offer an indication of the connection health and performance. A single LiveData server may have multiple reporting connections, each to a different peer node and/or to multiple data sources from a single node. The SNMP agent constructs the reporting connection table at startup; the agent refreshes this table periodically during runtime when each LiveData service reports connection states. Reporting connection table entries cannot be added to or deleted from the table by the management station. All objects in this table are read-only.')
cld_reporting_connection_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1)).setIndexNames((0, 'CISCO-LIVEDATA-MIB', 'cldRptConnIndex'))
if mibBuilder.loadTexts:
cldReportingConnectionEntry.setStatus('current')
if mibBuilder.loadTexts:
cldReportingConnectionEntry.setDescription('Each reporting connection entry represents a Cisco LiveData reporting connection. The LiveData application connects to a number of data sources, each of which sends real-time data as a stream to the LiveData server.')
cld_rpt_conn_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 1), cld_index())
if mibBuilder.loadTexts:
cldRptConnIndex.setStatus('current')
if mibBuilder.loadTexts:
cldRptConnIndex.setDescription('The reporting connection index is a value that uniquely identifies an entry in the reporting connection table. This value is arbitrarily assigned by the SNMP agent.')
cld_rpt_conn_server_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 2), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldRptConnServerID.setStatus('current')
if mibBuilder.loadTexts:
cldRptConnServerID.setDescription('This object indicates a user-intuitive textual identification for the Cisco LiveData connection; this is indicative of the source of the real-time data streamed via this reporting connection.')
cld_rpt_conn_server_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 3), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldRptConnServerAddress.setStatus('current')
if mibBuilder.loadTexts:
cldRptConnServerAddress.setDescription('This object indicates the hostname or IP address of the peer node in this reporting connection.')
cld_rpt_conn_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('inactive', 1), ('active', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldRptConnState.setStatus('current')
if mibBuilder.loadTexts:
cldRptConnState.setDescription('This object indicates the current state of this reporting connection; it is either active or inactive.')
cld_rpt_conn_state_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 5), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldRptConnStateTime.setStatus('current')
if mibBuilder.loadTexts:
cldRptConnStateTime.setDescription('This object indicates the date and time that this reporting connection transitioned into its current state.')
cld_rpt_conn_event_rate = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 6), gauge32()).setUnits('events').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldRptConnEventRate.setStatus('current')
if mibBuilder.loadTexts:
cldRptConnEventRate.setDescription('This object indicates the number of events that are arriving via this connection per second.')
cld_rpt_conn_heartbeat_rtt = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 7), gauge32()).setUnits('milliseconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldRptConnHeartbeatRTT.setStatus('current')
if mibBuilder.loadTexts:
cldRptConnHeartbeatRTT.setDescription('This object indicates the time, in milliseconds, for heartbeat requests to be returned from the peer node in this reporting connection.')
cld_rpt_conn_socket_connects = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldRptConnSocketConnects.setStatus('current')
if mibBuilder.loadTexts:
cldRptConnSocketConnects.setDescription('This object indicates the number of successful socket connections made to the peer node in this reporting connection.')
cld_rpt_conn_socket_disconnects = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldRptConnSocketDisconnects.setStatus('current')
if mibBuilder.loadTexts:
cldRptConnSocketDisconnects.setDescription('This object indicates the number of socket disconnects with the peer node in this reporting connection. This is used in conjunction with cldConnSocketConnects to identify unstable connections to a particular endpoint.')
cld_rpt_conn_messages_discarded = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 10), counter32()).setUnits('messages').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldRptConnMessagesDiscarded.setStatus('current')
if mibBuilder.loadTexts:
cldRptConnMessagesDiscarded.setDescription('This object indicates the number of messages sent by the peer node in this reporting connection that have been discarded.')
cld_rpt_conn_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldRptConnDSCP.setStatus('current')
if mibBuilder.loadTexts:
cldRptConnDSCP.setDescription('This object indicates the Differentiated Services (DS) value currently used by this reporting connection for Quality of Service (QoS) marking.')
cld_event_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1))
if mibBuilder.loadTexts:
cldEventTable.setStatus('current')
if mibBuilder.loadTexts:
cldEventTable.setDescription('The event table is a list of active Cisco LiveData events. The SNMP agent constructs the event table at startup and it fills the table as events are generated. Events with the same cldEventID value will overwrite existing events in the table with the same EventID (i.e. only the most recent will persist). Event table entries cannot be added to or deleted from the table by the management station. All objects in this table are read-only.')
cld_event_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1)).setIndexNames((0, 'CISCO-LIVEDATA-MIB', 'cldEventIndex'))
if mibBuilder.loadTexts:
cldEventEntry.setStatus('current')
if mibBuilder.loadTexts:
cldEventEntry.setDescription('Each event entry represents a Cisco LiveData event. The LiveData application software generates events when an unusual condition has occurred that can potentially affect the functioning of the Cisco LiveData server.')
cld_event_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 1), cld_index())
if mibBuilder.loadTexts:
cldEventIndex.setStatus('current')
if mibBuilder.loadTexts:
cldEventIndex.setDescription('The event index is a value that uniquely identifies an entry in the event table. This value is arbitrarily assigned by the SNMP agent.')
cld_event_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldEventID.setStatus('current')
if mibBuilder.loadTexts:
cldEventID.setDescription("This object indicates the unique numeric event message identifier that is assigned by the LiveData server to this event. This identifier is unique for each different event. The event ID can be used to correlate 'clear' state events to 'raise' state events.")
cld_event_app_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 3), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldEventAppName.setStatus('current')
if mibBuilder.loadTexts:
cldEventAppName.setDescription('This object indicates the service- specific name of the Cisco LiveData functional service that generated this event.')
cld_event_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 4), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldEventName.setStatus('current')
if mibBuilder.loadTexts:
cldEventName.setDescription('This object indicates the service-specific name of the Cisco LiveData event message. The object value is used to group similar events.')
cld_event_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('raise', 1), ('clear', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldEventState.setStatus('current')
if mibBuilder.loadTexts:
cldEventState.setDescription("This object indicates the state (not to be confused with severity) of the event and potentially the current status of the functional component that generated the event. The possible states are: 'raise': A raise state identifies an event received as a result of a health-impacting condition, such as a process failure. A subsequent clear state event will follow when the error condition is resolved. A node which generates a 'raise' state event may be impaired and likely requires the attention of an administrator. 'clear': The clear state indicates that the condition which generated a previous raise notification has been resolved. This may occur automatically with fault-tolerant deployments or may be the result of administrator intervention.")
cld_event_severity = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 6), cld_severity()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldEventSeverity.setStatus('current')
if mibBuilder.loadTexts:
cldEventSeverity.setDescription('This object indicates the severity level of this event.')
cld_event_timestamp = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 7), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldEventTimestamp.setStatus('current')
if mibBuilder.loadTexts:
cldEventTimestamp.setDescription('This object indicates the date and time that the event was generated on the originating device.')
cld_event_text = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 8), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldEventText.setStatus('current')
if mibBuilder.loadTexts:
cldEventText.setDescription('This object indicates the full text of the event which includes a description of the event that was generated, component state information and potentially a brief description of administrative action that may be necessary to correct the condition that caused the event to occur.')
cld_event_notif = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 814, 0, 1)).setObjects(('CISCO-LIVEDATA-MIB', 'cldEventID'), ('CISCO-LIVEDATA-MIB', 'cldServerName'), ('CISCO-LIVEDATA-MIB', 'cldEventAppName'), ('CISCO-LIVEDATA-MIB', 'cldEventName'), ('CISCO-LIVEDATA-MIB', 'cldEventState'), ('CISCO-LIVEDATA-MIB', 'cldEventSeverity'), ('CISCO-LIVEDATA-MIB', 'cldEventTimestamp'), ('CISCO-LIVEDATA-MIB', 'cldEventText'))
if mibBuilder.loadTexts:
cldEventNotif.setStatus('current')
if mibBuilder.loadTexts:
cldEventNotif.setDescription("The SNMP entity generates cldEventNotif when an unusual condition has occurred that can potentially affect the functioning of the Cisco LiveData server. This notification type describes operational state information of the service generating the notification when such service-impacting conditions occur. A notification is sent by a functional service of the Cisco LiveData server. The notification type includes the following objects: 'cldEventID': The unique numeric event message identifier for this event. 'cldServerName': The fully-qualified domain name of the Cisco LiveData server that generated the notification. 'cldEventAppName': The name of the Cisco LiveData functional service that generated this event. 'cldEventName': The service-specific name of the Cisco LiveData event message. 'cldEventState': The state of the event, either 'raise' or 'clear'. A 'raise' state event is generated when an unusual or service- impacting condition occurs while a 'clear' state event is generated when a prior condition has been resolved. 'cldEventSeverity': The severity level of this event; an integer value from 1 (emergency) to 8 (debug). 'cldEventTimestamp': The date and time that the event was generated. 'cldEventText': The full text of the event.")
cisco_livedata_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 1, 1)).setObjects(('CISCO-LIVEDATA-MIB', 'cldGeneralGroup'), ('CISCO-LIVEDATA-MIB', 'cldClusterGroup'), ('CISCO-LIVEDATA-MIB', 'cldServicesGroup'), ('CISCO-LIVEDATA-MIB', 'cldRptConnectionsGroup'), ('CISCO-LIVEDATA-MIB', 'cldEventsGroup'), ('CISCO-LIVEDATA-MIB', 'cldMIBEventGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_livedata_mib_compliance = ciscoLivedataMIBCompliance.setStatus('current')
if mibBuilder.loadTexts:
ciscoLivedataMIBCompliance.setDescription('This object is the compliance statement for entities which implement the Cisco LiveData MIB.')
cld_general_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 1)).setObjects(('CISCO-LIVEDATA-MIB', 'cldServerName'), ('CISCO-LIVEDATA-MIB', 'cldDescription'), ('CISCO-LIVEDATA-MIB', 'cldVersion'), ('CISCO-LIVEDATA-MIB', 'cldStartTime'), ('CISCO-LIVEDATA-MIB', 'cldTimeZoneName'), ('CISCO-LIVEDATA-MIB', 'cldTimeZoneOffset'), ('CISCO-LIVEDATA-MIB', 'cldEventNotifEnable'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cld_general_group = cldGeneralGroup.setStatus('current')
if mibBuilder.loadTexts:
cldGeneralGroup.setDescription('The general group defines the general Cisco LiveData objects. All servers will populate these objects.')
cld_cluster_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 2)).setObjects(('CISCO-LIVEDATA-MIB', 'cldClusterID'), ('CISCO-LIVEDATA-MIB', 'cldClusterStatus'), ('CISCO-LIVEDATA-MIB', 'cldClusterAddress'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cld_cluster_group = cldClusterGroup.setStatus('current')
if mibBuilder.loadTexts:
cldClusterGroup.setDescription('The cluster group defines the Cisco LiveData objects related to the cluster of LiveData servers. All servers will populate these objects.')
cld_services_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 3)).setObjects(('CISCO-LIVEDATA-MIB', 'cldServiceName'), ('CISCO-LIVEDATA-MIB', 'cldServiceState'), ('CISCO-LIVEDATA-MIB', 'cldServiceUpTime'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cld_services_group = cldServicesGroup.setStatus('current')
if mibBuilder.loadTexts:
cldServicesGroup.setDescription('The services group defines the Cisco LiveData service table objects. All servers will populate these objects, however, the number of entries in the table will vary across servers and the types of services will vary as well.')
cld_rpt_connections_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 4)).setObjects(('CISCO-LIVEDATA-MIB', 'cldRptConnServerID'), ('CISCO-LIVEDATA-MIB', 'cldRptConnServerAddress'), ('CISCO-LIVEDATA-MIB', 'cldRptConnState'), ('CISCO-LIVEDATA-MIB', 'cldRptConnStateTime'), ('CISCO-LIVEDATA-MIB', 'cldRptConnEventRate'), ('CISCO-LIVEDATA-MIB', 'cldRptConnHeartbeatRTT'), ('CISCO-LIVEDATA-MIB', 'cldRptConnSocketConnects'), ('CISCO-LIVEDATA-MIB', 'cldRptConnSocketDisconnects'), ('CISCO-LIVEDATA-MIB', 'cldRptConnMessagesDiscarded'), ('CISCO-LIVEDATA-MIB', 'cldRptConnDSCP'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cld_rpt_connections_group = cldRptConnectionsGroup.setStatus('current')
if mibBuilder.loadTexts:
cldRptConnectionsGroup.setDescription('The reporting connections group defines the Cisco LiveData connection table objects. All servers will populate these objects, however, the number of entries in the table will vary across servers.')
cld_events_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 5)).setObjects(('CISCO-LIVEDATA-MIB', 'cldEventID'), ('CISCO-LIVEDATA-MIB', 'cldEventAppName'), ('CISCO-LIVEDATA-MIB', 'cldEventName'), ('CISCO-LIVEDATA-MIB', 'cldEventState'), ('CISCO-LIVEDATA-MIB', 'cldEventSeverity'), ('CISCO-LIVEDATA-MIB', 'cldEventTimestamp'), ('CISCO-LIVEDATA-MIB', 'cldEventText'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cld_events_group = cldEventsGroup.setStatus('current')
if mibBuilder.loadTexts:
cldEventsGroup.setDescription('The events group defines the Cisco LiveData event table objects. All servers will populate these objects, however, the number of entries in the table will vary across servers.')
cld_mib_event_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 6)).setObjects(('CISCO-LIVEDATA-MIB', 'cldEventNotif'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cld_mib_event_group = cldMIBEventGroup.setStatus('current')
if mibBuilder.loadTexts:
cldMIBEventGroup.setDescription('This group defines the notification types defined in this MIB.')
mibBuilder.exportSymbols('CISCO-LIVEDATA-MIB', cldEventEntry=cldEventEntry, cldServerName=cldServerName, cldRptConnState=cldRptConnState, cldEventsGroup=cldEventsGroup, cldCluster=cldCluster, ciscoLivedataMIBGroups=ciscoLivedataMIBGroups, ciscoLivedataMIB=ciscoLivedataMIB, cldEvents=cldEvents, cldEventID=cldEventID, cldEventTable=cldEventTable, cldEventText=cldEventText, CldSeverity=CldSeverity, cldRptConnHeartbeatRTT=cldRptConnHeartbeatRTT, cldServiceTable=cldServiceTable, cldRptConnIndex=cldRptConnIndex, cldRptConnectionsGroup=cldRptConnectionsGroup, cldClusterGroup=cldClusterGroup, cldServicesGroup=cldServicesGroup, cldReportingConnectionEntry=cldReportingConnectionEntry, cldRptConnServerAddress=cldRptConnServerAddress, CldIndex=CldIndex, ciscoLivedataMIBConform=ciscoLivedataMIBConform, cldRptConnStateTime=cldRptConnStateTime, cldRptConnSocketDisconnects=cldRptConnSocketDisconnects, cldTimeZoneOffset=cldTimeZoneOffset, cldEventNotif=cldEventNotif, cldVersion=cldVersion, cldStartTime=cldStartTime, cldMIBEventGroup=cldMIBEventGroup, cldGeneralGroup=cldGeneralGroup, cldClusterStatus=cldClusterStatus, ciscoLivedataMIBCompliances=ciscoLivedataMIBCompliances, cldServiceIndex=cldServiceIndex, cldEventSeverity=cldEventSeverity, ciscoLivedataMIBNotifs=ciscoLivedataMIBNotifs, cldEventIndex=cldEventIndex, ciscoLivedataMIBCompliance=ciscoLivedataMIBCompliance, cldEventTimestamp=cldEventTimestamp, cldGeneral=cldGeneral, cldServiceEntry=cldServiceEntry, cldEventName=cldEventName, cldTimeZoneName=cldTimeZoneName, cldEventAppName=cldEventAppName, cldRptConnEventRate=cldRptConnEventRate, cldServiceName=cldServiceName, cldServiceState=cldServiceState, cldClusterAddress=cldClusterAddress, cldServiceUpTime=cldServiceUpTime, cldDescription=cldDescription, cldRptConnServerID=cldRptConnServerID, cldRptConnSocketConnects=cldRptConnSocketConnects, cldRptConnDSCP=cldRptConnDSCP, cldReportingConnections=cldReportingConnections, cldEventState=cldEventState, cldClusterID=cldClusterID, cldReportingConnectionTable=cldReportingConnectionTable, cldServices=cldServices, PYSNMP_MODULE_ID=ciscoLivedataMIB, cldEventNotifEnable=cldEventNotifEnable, cldRptConnMessagesDiscarded=cldRptConnMessagesDiscarded, ciscoLivedataMIBObjects=ciscoLivedataMIBObjects) |
__version__ = '0.2.14'
__package__ = 'django-politico-slackchat-renderer'
default_app_config = 'chatrender.apps.ChatrenderConfig'
| __version__ = '0.2.14'
__package__ = 'django-politico-slackchat-renderer'
default_app_config = 'chatrender.apps.ChatrenderConfig' |
# Fantasy Game Inventory
# Chapter 5 - Dictionaries and Data Structures
def display_inventory(inv, name=None):
if name is None:
print("Inventory:")
else:
print("Inventory of " + name + ":")
item_total = 0
for key, val in inv.items():
print(val, end=' ')
print(key)
item_total += inv[key] # inv[key] == val
print("Total number of items: " + str(item_total))
def add_to_inventory(inv, added_items):
for i in added_items:
inv.setdefault(i, 0) # if an item is not in the dict, add it
inv[i] += 1 # add 1 to inv for each item in added_items
inv_mike = {'rope': 1, 'torch': 6, 'gold coin': 42, 'dagger': 1, 'arrow': 12}
inv_jason = {'torch': 1, 'rope': 2, 'gold coin': 123, 'sword': 1, 'arrow': 45, 'longbow': 1}
display_inventory(inv_mike, "Mike")
print("\n")
dragon_loot = ['gold coin', 'dagger', 'gold coin', 'gold coin', 'ruby', 'diamond', 'sword']
add_to_inventory(inv_mike, dragon_loot)
display_inventory(inv_mike, "Mike")
add_to_inventory(inv_jason, dragon_loot)
display_inventory(inv_jason, "Jason")
| def display_inventory(inv, name=None):
if name is None:
print('Inventory:')
else:
print('Inventory of ' + name + ':')
item_total = 0
for (key, val) in inv.items():
print(val, end=' ')
print(key)
item_total += inv[key]
print('Total number of items: ' + str(item_total))
def add_to_inventory(inv, added_items):
for i in added_items:
inv.setdefault(i, 0)
inv[i] += 1
inv_mike = {'rope': 1, 'torch': 6, 'gold coin': 42, 'dagger': 1, 'arrow': 12}
inv_jason = {'torch': 1, 'rope': 2, 'gold coin': 123, 'sword': 1, 'arrow': 45, 'longbow': 1}
display_inventory(inv_mike, 'Mike')
print('\n')
dragon_loot = ['gold coin', 'dagger', 'gold coin', 'gold coin', 'ruby', 'diamond', 'sword']
add_to_inventory(inv_mike, dragon_loot)
display_inventory(inv_mike, 'Mike')
add_to_inventory(inv_jason, dragon_loot)
display_inventory(inv_jason, 'Jason') |
def cadastrar(*args):
try:
telaProduto = args[0]
telaErro = args[1]
cursor = args[2]
banco10 = args[3]
QtWidgets = args[4]
sabor = telaProduto.produto_cadastro.text()
valor = telaProduto.valor_cadastro.text()
ingredientes = telaProduto.ingredientes.text()
sabor = sabor.upper()
ingredientes = ingredientes.upper()
tamanho = 'Dez'
sql = "insert into dezPedacos(sabor, tamanho, valorProduto, ingredientes) values(%s, %s, %s, %s)"
dados = (str(sabor), str(tamanho), valor, str(ingredientes))
cursor.execute(sql, dados)
banco10.commit()
lista = []
sql = "select * from broto"
cursor.execute(sql)
dados1 = cursor.fetchall()
sql = "select * from seisPedacos"
cursor.execute(sql)
dados2 = cursor.fetchall()
sql = "select * from oitoPedacos"
cursor.execute(sql)
dados3 = cursor.fetchall()
sql = "select * from dezPedacos"
cursor.execute(sql)
dados4 = cursor.fetchall()
for j, k, l, m in zip(dados1, dados2, dados3, dados4):
lista.append(j)
lista.append(k)
lista.append(l)
lista.append(m)
telaProduto.tableWidget_cadastro.setRowCount(len(lista))
telaProduto.tableWidget_cadastro.setColumnCount(5)
for i in range(0, len(lista)):
for j in range(5):
telaProduto.tableWidget_cadastro.setItem(i, j, QtWidgets.QTableWidgetItem(str(lista[i][j])))
telaProduto.valor_cadastro.clear()
telaProduto.produto_cadastro.clear()
telaProduto.ingredientes.clear()
except:
telaErro.show()
telaErro.label.setText(" Erro!Campos vazios ou invalidos") | def cadastrar(*args):
try:
tela_produto = args[0]
tela_erro = args[1]
cursor = args[2]
banco10 = args[3]
qt_widgets = args[4]
sabor = telaProduto.produto_cadastro.text()
valor = telaProduto.valor_cadastro.text()
ingredientes = telaProduto.ingredientes.text()
sabor = sabor.upper()
ingredientes = ingredientes.upper()
tamanho = 'Dez'
sql = 'insert into dezPedacos(sabor, tamanho, valorProduto, ingredientes) values(%s, %s, %s, %s)'
dados = (str(sabor), str(tamanho), valor, str(ingredientes))
cursor.execute(sql, dados)
banco10.commit()
lista = []
sql = 'select * from broto'
cursor.execute(sql)
dados1 = cursor.fetchall()
sql = 'select * from seisPedacos'
cursor.execute(sql)
dados2 = cursor.fetchall()
sql = 'select * from oitoPedacos'
cursor.execute(sql)
dados3 = cursor.fetchall()
sql = 'select * from dezPedacos'
cursor.execute(sql)
dados4 = cursor.fetchall()
for (j, k, l, m) in zip(dados1, dados2, dados3, dados4):
lista.append(j)
lista.append(k)
lista.append(l)
lista.append(m)
telaProduto.tableWidget_cadastro.setRowCount(len(lista))
telaProduto.tableWidget_cadastro.setColumnCount(5)
for i in range(0, len(lista)):
for j in range(5):
telaProduto.tableWidget_cadastro.setItem(i, j, QtWidgets.QTableWidgetItem(str(lista[i][j])))
telaProduto.valor_cadastro.clear()
telaProduto.produto_cadastro.clear()
telaProduto.ingredientes.clear()
except:
telaErro.show()
telaErro.label.setText(' Erro!Campos vazios ou invalidos') |
# task websocket message types
TASK_LOG = 'task/log'
TASK_INIT = 'task/init'
TASK_FAIL = 'task/fail'
TASK_STATUS = 'task/status'
TASK_RETURN = 'task/return'
TASK_STATS = 'task/stats'
| task_log = 'task/log'
task_init = 'task/init'
task_fail = 'task/fail'
task_status = 'task/status'
task_return = 'task/return'
task_stats = 'task/stats' |
logo = """
____ ___ _____ _____ _____ _____ __ __ _ _ _______ ____
/ ___/ _ \| ___| ___| ____| ____| | \/ | / \ | |/ / ____| _ \
| | | | | | |_ | |_ | _| | _| | |\/| | / _ \ | ' /| _| | |_) |
| |__| |_| | _| | _| | |___| |___ | | | |/ ___ \| . \| |___| _ <
\____\___/|_| |_| |_____|_____| |_| |_/_/ \_\_|\_\_____|_| \_\
"""
| logo = "\n ____ ___ _____ _____ _____ _____ __ __ _ _ _______ ____ \n / ___/ _ \\| ___| ___| ____| ____| | \\/ | / \\ | |/ / ____| _ \\ \n | | | | | | |_ | |_ | _| | _| | |\\/| | / _ \\ | ' /| _| | |_) |\n | |__| |_| | _| | _| | |___| |___ | | | |/ ___ \\| . \\| |___| _ < \n \\____\\___/|_| |_| |_____|_____| |_| |_/_/ \\_\\_|\\_\\_____|_| \\_\n" |
def foo(bar):
return bar + 2
class Foo:
baz = staticmethod(foo)
f = Foo()
print(f.baz(10))
| def foo(bar):
return bar + 2
class Foo:
baz = staticmethod(foo)
f = foo()
print(f.baz(10)) |
def FirstFactorial(num: int):
fact = num
while num != 1:
print(1, fact)
num = num - 1
print(2, num)
fact = fact * num
return fact
# keep this function call here
print(3, FirstFactorial(int(input()))) | def first_factorial(num: int):
fact = num
while num != 1:
print(1, fact)
num = num - 1
print(2, num)
fact = fact * num
return fact
print(3, first_factorial(int(input()))) |
""" Convert DNA sequences to RNA """
def rna(seq):
seq = seq.upper()
return seq.replace('T','U')
| """ Convert DNA sequences to RNA """
def rna(seq):
seq = seq.upper()
return seq.replace('T', 'U') |
def basic_metrics(tally):
tp, tn, fp, fn, _ = tally
return {
"TPR": tp / (tp + fn),
"TNR": tn / (tn + fp),
"PPV": tp / (tp + fp),
"NPV": tn / (tn + fn),
"FPR": fp / (fp + tn),
"FNR": fn / (fn + tp)
}
| def basic_metrics(tally):
(tp, tn, fp, fn, _) = tally
return {'TPR': tp / (tp + fn), 'TNR': tn / (tn + fp), 'PPV': tp / (tp + fp), 'NPV': tn / (tn + fn), 'FPR': fp / (fp + tn), 'FNR': fn / (fn + tp)} |
# list all remote credentials
res = client.get_object_store_remote_credentials()
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# list first five remote credentials using default sort
res = client.get_object_store_remote_credentials(limit=5)
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# list first five remote credentials and sort by access key
res = client.get_object_store_remote_credentials(limit=5, sort='access_key_id')
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# list all remaining remote credentials
res = client.get_object_store_remote_credentials(continuation_token=res.continuation_token)
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# list with filter to see only remote credentials that are on a specific remote
res = client.get_object_store_remote_credentials(filter='name=\'s3target/*\'')
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# Other valid fields: ids, names, offset
# See section "Common Fields" for examples
| res = client.get_object_store_remote_credentials()
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
res = client.get_object_store_remote_credentials(limit=5)
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
res = client.get_object_store_remote_credentials(limit=5, sort='access_key_id')
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
res = client.get_object_store_remote_credentials(continuation_token=res.continuation_token)
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
res = client.get_object_store_remote_credentials(filter="name='s3target/*'")
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items)) |
PREFIXES = [
"Who is",
"What is",
"History of"
]
TOPIC_QUESTION = "Define a topic "
PREFIX_QUESTION = "Define a prefix"
def _generate_prefixes_option_string(prefixes):
prefixes_string = ""
for key, prefix_string in enumerate(prefixes, start=1):
prefixes_string = "{} {} {} \n".format(prefixes_string, str(key), prefix_string)
return prefixes_string
def get_topic_and_prefix_from_input():
topic_input = input("{}\n".format(TOPIC_QUESTION))
prefix_key_input = input("{}\n{}".format(PREFIX_QUESTION, _generate_prefixes_option_string(PREFIXES)))
return [str(topic_input), PREFIXES[int(prefix_key_input) - 1]]
| prefixes = ['Who is', 'What is', 'History of']
topic_question = 'Define a topic '
prefix_question = 'Define a prefix'
def _generate_prefixes_option_string(prefixes):
prefixes_string = ''
for (key, prefix_string) in enumerate(prefixes, start=1):
prefixes_string = '{} {} {} \n'.format(prefixes_string, str(key), prefix_string)
return prefixes_string
def get_topic_and_prefix_from_input():
topic_input = input('{}\n'.format(TOPIC_QUESTION))
prefix_key_input = input('{}\n{}'.format(PREFIX_QUESTION, _generate_prefixes_option_string(PREFIXES)))
return [str(topic_input), PREFIXES[int(prefix_key_input) - 1]] |
class A():
def disp(self):
print("A disp()")
class B(A):
pass
obj = B()
obj.disp() | class A:
def disp(self):
print('A disp()')
class B(A):
pass
obj = b()
obj.disp() |
"""Add one to a number."""
def add_one(a):
return a+1
def add_thousand(a):
return a+1000
def best_group():
return 'Sparks group obviously'
def do_literally_nothing_to_my_input(a):
return a
def Ramsey_made_it(x_1):
return x_1
| """Add one to a number."""
def add_one(a):
return a + 1
def add_thousand(a):
return a + 1000
def best_group():
return 'Sparks group obviously'
def do_literally_nothing_to_my_input(a):
return a
def ramsey_made_it(x_1):
return x_1 |
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def minCameraCover(self, root: TreeNode) -> int:
self.result, covered = 0, {None}
def dfs(node, parent = None):
if node:
dfs(node.left, node)
dfs(node.right, node)
if (parent is None and node not in covered) or node.left not in covered or node.right not in covered:
self.result += 1
covered.update({node, parent, node.left, node.right})
dfs(root)
return self.result | class Solution:
def min_camera_cover(self, root: TreeNode) -> int:
(self.result, covered) = (0, {None})
def dfs(node, parent=None):
if node:
dfs(node.left, node)
dfs(node.right, node)
if parent is None and node not in covered or node.left not in covered or node.right not in covered:
self.result += 1
covered.update({node, parent, node.left, node.right})
dfs(root)
return self.result |
# For PyInstaller/lib/ define the version here, since there is no
# package-resource.
__version__ = '0.12.1'
# updated from leycec-modulegraph-1e8f74ef92a5'
| __version__ = '0.12.1' |
"""
ASSIGNMENT OPERATORS
"""
__author__ = 'Sol Amour - amoursol@gmail.com'
__twitter__ = '@solamour'
__version__ = '1.0.0'
# Default values
num01 = 10
num02 = 5
plusEquals = num01 + num02 # Simple addition (10 + 5)
plusEquals += num01 # The positive assignment operator will take the right operand
# (num01) and add this to the left operand (plusEquals) before assingning the result
# back to the left operand (plusEquals): e.g original plusEquals (10+5) + num01(10)
# = 25 --> plusEquals == 25
subtractEquals = num01 + num02 # Simple addition (10 + 5)
subtractEquals -= num02 # The negative assignment operator will take the right operand
# (num02) and subtract this from the left operand (subtractEquals) before assingning the
# result back to the left operand (subtractEquals): e.g original subtractEquals (10+5) -
# num02(5) = 10 --> subtractEquals == 10
multiplyEquals = num01 + num02 # Simple addition (10 + 5)
multiplyEquals *= num01 # The multiplication assignment operator will take the right
# operand (num01) and multiply this to the left operand (multiplyEquals) before assingning
# the result back to the left operand (multiplyEquals): e.g original multiplyEquals (10+5)
# * num01(10) = 150 --> multiplyEquals == 150
divideEquals = num01 + num02 # Simple addition (10 + 5)
divideEquals /= num02 # The division assignment operator will take the right operand
# (num02) and divide this to the left operand (divideEquals) before assingning the result
#back to the left operand (divideEquals): e.g original divideEquals (10+5) / num02(5) = 3
# --> multiplyEquals == 3
modulusEquals = num01 + num02 # Simple addition (10 + 5)
modulusEquals %= num01 # The modulus assignment operator will take the right operand (num01)
# and take the remainder of this to the left operand (modulusEquals) before assingning the
# result back to the left operand (modulusEquals): e.g original modulusEquals (10+5) %
# num01(10) = 5 --> modulusEquals == 5
exponentEquals = num01 + num02 # Simple addition (10 + 5)
exponentEquals **= num02 # The exponent assignment operator will take the right operand
# (num02) and take the exponent of this to the left operand (exponentEquals) before assingning
# the result back to the left operand (exponentEquals): e.g original exponentEquals (10+5)
# ** num02(5) = 759375 --> modulusEquals == 759375
floorDivisionEquals = num01 + num02 # Simple addition (10 + 5)
floorDivisionEquals //= num02 # The floor division assignment operator will take the right
# operand (num02) and take the floor division of this to the left operand (floorDivisionEquals)
# before assingning the result back to the left operand (floorDivisionEquals): e.g original
# floorDivisionEquals (10+5) // num02(5) = 3 --> modulusEquals == 3
OUT = plusEquals, subtractEquals, multiplyEquals, divideEquals, modulusEquals, exponentEquals,
floorDivisionEquals
| """
ASSIGNMENT OPERATORS
"""
__author__ = 'Sol Amour - amoursol@gmail.com'
__twitter__ = '@solamour'
__version__ = '1.0.0'
num01 = 10
num02 = 5
plus_equals = num01 + num02
plus_equals += num01
subtract_equals = num01 + num02
subtract_equals -= num02
multiply_equals = num01 + num02
multiply_equals *= num01
divide_equals = num01 + num02
divide_equals /= num02
modulus_equals = num01 + num02
modulus_equals %= num01
exponent_equals = num01 + num02
exponent_equals **= num02
floor_division_equals = num01 + num02
floor_division_equals //= num02
out = (plusEquals, subtractEquals, multiplyEquals, divideEquals, modulusEquals, exponentEquals)
floorDivisionEquals |
n, a, b = map(int, input().split())
c = a + b
cnt = n // c
ans = a * cnt + min(n % c, a)
print(ans)
| (n, a, b) = map(int, input().split())
c = a + b
cnt = n // c
ans = a * cnt + min(n % c, a)
print(ans) |
def create(size, memory_buffer, temporary_directory, destination_directory, threads, buckets, bitfield,
chia_location='chia', temporary2_directory=None, farmer_public_key=None, pool_public_key=None,
exclude_final_directory=False):
flags = dict(
k=size,
b=memory_buffer,
t=temporary_directory,
d=destination_directory,
r=threads,
u=buckets,
)
if temporary2_directory is not None:
flags['2'] = temporary2_directory
if farmer_public_key is not None:
flags['f'] = farmer_public_key
if pool_public_key is not None:
flags['p'] = pool_public_key
if bitfield is False:
flags['e'] = ''
if exclude_final_directory:
flags['x'] = ''
data = [chia_location, 'plots', 'create']
for key, value in flags.items():
flag = f'-{key}'
data.append(flag)
if value == '':
continue
data.append(str(value))
return data
| def create(size, memory_buffer, temporary_directory, destination_directory, threads, buckets, bitfield, chia_location='chia', temporary2_directory=None, farmer_public_key=None, pool_public_key=None, exclude_final_directory=False):
flags = dict(k=size, b=memory_buffer, t=temporary_directory, d=destination_directory, r=threads, u=buckets)
if temporary2_directory is not None:
flags['2'] = temporary2_directory
if farmer_public_key is not None:
flags['f'] = farmer_public_key
if pool_public_key is not None:
flags['p'] = pool_public_key
if bitfield is False:
flags['e'] = ''
if exclude_final_directory:
flags['x'] = ''
data = [chia_location, 'plots', 'create']
for (key, value) in flags.items():
flag = f'-{key}'
data.append(flag)
if value == '':
continue
data.append(str(value))
return data |
#! /usr/bin/env python
"""
Warnings informing that something went differently that intended. Does not
include messages before exiting with code 1
"""
CONFIG_OPEN_FAIL = """
Failed to find or open {} config file. Using default.
"""
NO_TAX_FILE_FOUND = """
WARNING!!! No proper tax.summary file found. The analysis will be incomplete.
"""
JUNK_GROUPS_DETECTED = """
{} can distort the analysis due to size too small
"""
JUNK_REMOVED = """
{} will be removed
"""
| """
Warnings informing that something went differently that intended. Does not
include messages before exiting with code 1
"""
config_open_fail = '\nFailed to find or open {} config file. Using default.\n'
no_tax_file_found = '\nWARNING!!! No proper tax.summary file found. The analysis will be incomplete.\n'
junk_groups_detected = '\n{} can distort the analysis due to size too small\n'
junk_removed = '\n{} will be removed\n' |
class StreamerDoesNotExistException(Exception):
pass
class StreamerIsOfflineException(Exception):
pass
class WrongCookiesException(Exception):
pass
| class Streamerdoesnotexistexception(Exception):
pass
class Streamerisofflineexception(Exception):
pass
class Wrongcookiesexception(Exception):
pass |
def solution(A):
"""
Codility -
https://app.codility.com/demo/results/trainingKC23TS-77G/
100%
Idea is to maintain the start and end point marker for each disc/circle
Sort by start position of disc/circle
On each start position count the active circle/disc
On each end position reduce the active circle/disc
Count the total intersection using the active circle in each iteration
Reference -
https://www.youtube.com/watch?v=HV8tzIiidSw
http://www.lucainvernizzi.net/blog/2014/11/21/codility-beta-challenge-number-of-disc-intersections/
:param A:
:return: total intersections
"""
# contains start and end points of circle
circle_points = []
for i, a in enumerate(A):
# store start points and end points of circle
# as per problem statement -> The J-th disc is drawn with its center at (J, 0) and radius A[J].
# example 0-1, 0+1 second 1-5, 1+5
circle_points += [(i - a, True), (i + a, False)]
print("Original disc positions " + str(circle_points))
# Sort the array of disc, making sure that the start of a disk in a particular point P comes before the end of any disk at P.
circle_points.sort(key=lambda x: (x[0], not x[1]))
print("Sorted disc positions " + str(circle_points))
intersections, active_circles = 0, 0
# We now walk this array, keeping track of how thick the set of disk is at each new disc (below, the variable is called active_circles).
# Furthermore, we increase the number of intersection by active_circles if a new disk starts.
for _, is_beginning in circle_points:
# active circle found ie. starting disc found
if is_beginning:
# counting intersections by active circles ie. each active circle must be intersecting the comming new circle,
# we already know they are in sorted order by start position
intersections += active_circles
active_circles += 1
print(
"This is start disc -> intersections " + str(intersections) + " active_circles " + str(active_circles))
# ending circle position found, now active circle should be reduced by one
else:
print("Closing disc found.....")
print("Reduce active circle " + str(active_circles))
print()
active_circles -= 1
# ** is 10 to the power of 7
if intersections > 10 ** 7:
return -1
return intersections
result = solution([1, 5, 2, 1, 4, 0])
print("")
print("Solution " + str(result))
"""
solution_(A - steps run---
Original disc positions [(-1, True), (1, False), (-4, True), (6, False), (0, True), (4, False), (2, True), (4, False), (0, True), (8, False), (5, True), (5, False)]
Sorted disc positions [(-4, True), (-1, True), (0, True), (0, True), (1, False), (2, True), (4, False), (4, False), (5, True), (5, False), (6, False), (8, False)]
This is start disc -> intersections 0 active_circles 1
This is start disc -> intersections 1 active_circles 2
This is start disc -> intersections 3 active_circles 3
This is start disc -> intersections 6 active_circles 4
Closing disc found.....
Reduce active circle 4
This is start disc -> intersections 9 active_circles 4
Closing disc found.....
Reduce active circle 4
Closing disc found.....
Reduce active circle 3
This is start disc -> intersections 11 active_circles 3
Closing disc found.....
Reduce active circle 3
Closing disc found.....
Reduce active circle 2
Closing disc found.....
Reduce active circle 1
Solution 11
"""
| def solution(A):
"""
Codility -
https://app.codility.com/demo/results/trainingKC23TS-77G/
100%
Idea is to maintain the start and end point marker for each disc/circle
Sort by start position of disc/circle
On each start position count the active circle/disc
On each end position reduce the active circle/disc
Count the total intersection using the active circle in each iteration
Reference -
https://www.youtube.com/watch?v=HV8tzIiidSw
http://www.lucainvernizzi.net/blog/2014/11/21/codility-beta-challenge-number-of-disc-intersections/
:param A:
:return: total intersections
"""
circle_points = []
for (i, a) in enumerate(A):
circle_points += [(i - a, True), (i + a, False)]
print('Original disc positions ' + str(circle_points))
circle_points.sort(key=lambda x: (x[0], not x[1]))
print('Sorted disc positions ' + str(circle_points))
(intersections, active_circles) = (0, 0)
for (_, is_beginning) in circle_points:
if is_beginning:
intersections += active_circles
active_circles += 1
print('This is start disc -> intersections ' + str(intersections) + ' active_circles ' + str(active_circles))
else:
print('Closing disc found.....')
print('Reduce active circle ' + str(active_circles))
print()
active_circles -= 1
if intersections > 10 ** 7:
return -1
return intersections
result = solution([1, 5, 2, 1, 4, 0])
print('')
print('Solution ' + str(result))
'\nsolution_(A - steps run---\n Original disc positions [(-1, True), (1, False), (-4, True), (6, False), (0, True), (4, False), (2, True), (4, False), (0, True), (8, False), (5, True), (5, False)]\n Sorted disc positions [(-4, True), (-1, True), (0, True), (0, True), (1, False), (2, True), (4, False), (4, False), (5, True), (5, False), (6, False), (8, False)]\n This is start disc -> intersections 0 active_circles 1\n This is start disc -> intersections 1 active_circles 2\n This is start disc -> intersections 3 active_circles 3\n This is start disc -> intersections 6 active_circles 4\n Closing disc found.....\n Reduce active circle 4\n\n This is start disc -> intersections 9 active_circles 4\n Closing disc found.....\n Reduce active circle 4\n\n Closing disc found.....\n Reduce active circle 3\n\n This is start disc -> intersections 11 active_circles 3\n Closing disc found.....\n Reduce active circle 3\n\n Closing disc found.....\n Reduce active circle 2\n\n Closing disc found.....\n Reduce active circle 1\n\n\n Solution 11\n' |
class CollectionParams:
def __init__(self, dataset_count_map, system_count_map, dataset_collection_count, dataset_collection_count_map,
system_collection_count, system_collection_count_map, collection_count):
self.dataset_count_map = dataset_count_map
self.system_count_map = system_count_map
self.dataset_collection_count = dataset_collection_count
self.dataset_collection_count_map = dataset_collection_count_map
self.system_collection_count = system_collection_count
self.system_collection_count_map = system_collection_count_map
self.collection_count = collection_count
| class Collectionparams:
def __init__(self, dataset_count_map, system_count_map, dataset_collection_count, dataset_collection_count_map, system_collection_count, system_collection_count_map, collection_count):
self.dataset_count_map = dataset_count_map
self.system_count_map = system_count_map
self.dataset_collection_count = dataset_collection_count
self.dataset_collection_count_map = dataset_collection_count_map
self.system_collection_count = system_collection_count
self.system_collection_count_map = system_collection_count_map
self.collection_count = collection_count |
class Links(object) :
def __init__(self, links=None) :
"""initialize with a set of links default to none"""
self._links = []
if None != links:
self.add(links)
def add(self, links) :
"""links contains a map or array of maps in link-format"""
if isinstance(links, list) :
self._links.extend(links)
else :
self._links.append(links)
def get(self, selectMap=None) :
if selectMap == None or len(selectMap) == 0:
return(self._links)
else:
self._result = []
for index in self.select(selectMap) :
self._result.append(self._links[index])
return self._result
def selectMerge(self, selectMap, mergeMap) :
"""patch contains a selection map and merge map in JSON merge-patch format"""
self._linkList = self.select(selectMap)
if len(self._linkList) == 0:
self.add(mergeMap)
else:
# reverse the list so multiple deletions don't change the index of earlier elements
self._linkList.reverse()
for self._index in self._linkList :
if mergeMap == {} :
del self._links[self._index]
else:
for attribute in mergeMap:
if mergeMap[attribute] == None:
del self._links[self._index][attribute]
elif attribute not in self._links[self._index]:
self._links[self._index][attribute] = mergeMap[attribute]
else:
# merge attributes between lists and string values
if isinstance(self._links[self._index][attribute], list):
if isinstance(mergeMap[attribute], list) :
# adding a list to a list, factor out duplicates
self._links[self._index][attribute].extend( \
[ attr for attr in mergeMap[attribute] \
if attr not in self._links[self._index][attribute] ] )
elif mergeMap[attribute] not in self._links[self._index][attribute] :
self._links[self._index][attribute].append(mergeMap[attribute])
else:
if isinstance(mergeMap[attribute], list) :
# adding a list to a string results in a list
if self._links[self._index][attribute] in mergeMap[attribute] :
self._links[self._index][attribute] = mergeMap[attribute]
else:
self._links[self._index][attribute] = \
[self._links[self._index][attribute]].extend(mergeMap[attribute])
else:
# adding a string to a string results in a list
if mergeMap[attribute] != self._links[self._index][attribute]:
self._links[self._index][attribute] = \
[self._links[self._index][attribute], mergeMap[attribute]]
def select(self, selectMap) :
"""selectMap contains a selection map in query filter format"""
"""returns a list of indices to getLinks in the link array that match the query filter"""
self._selection = []
"""check all getLinks in the collection"""
for self._linkIndex in range(0, len(self._links)) :
self._selected = True
"""test each attribute in the selectMap"""
for attribute in selectMap :
if attribute not in self._links[self._linkIndex] :
self._selected = False
break
if isinstance(selectMap[attribute], list) :
"""multi value attributes in selectMap, all values must be present to select """
for self._attr_val in selectMap[attribute]:
if isinstance(self._links[self._linkIndex][attribute], list) :
"""multi value attribute in link"""
if self._attr_val not in self._links[self._linkIndex][attribute] :
self._selected = False
break
elif self._attr_val != self._links[self._linkIndex][attribute] :
"""single value attribute in link"""
self._selected = False
break
elif isinstance(self._links[self._linkIndex][attribute], list):
"""single value attribute in selectMap, multi value in link"""
if selectMap[attribute] not in self._links[self._linkIndex][attribute] :
self._selected = False
break
elif selectMap[attribute] != self._links[self._linkIndex][attribute] :
"""single value in both selectMap and link"""
self._selected = False
break
if self._selected :
self._selection.append(self._linkIndex)
return self._selection
| class Links(object):
def __init__(self, links=None):
"""initialize with a set of links default to none"""
self._links = []
if None != links:
self.add(links)
def add(self, links):
"""links contains a map or array of maps in link-format"""
if isinstance(links, list):
self._links.extend(links)
else:
self._links.append(links)
def get(self, selectMap=None):
if selectMap == None or len(selectMap) == 0:
return self._links
else:
self._result = []
for index in self.select(selectMap):
self._result.append(self._links[index])
return self._result
def select_merge(self, selectMap, mergeMap):
"""patch contains a selection map and merge map in JSON merge-patch format"""
self._linkList = self.select(selectMap)
if len(self._linkList) == 0:
self.add(mergeMap)
else:
self._linkList.reverse()
for self._index in self._linkList:
if mergeMap == {}:
del self._links[self._index]
else:
for attribute in mergeMap:
if mergeMap[attribute] == None:
del self._links[self._index][attribute]
elif attribute not in self._links[self._index]:
self._links[self._index][attribute] = mergeMap[attribute]
elif isinstance(self._links[self._index][attribute], list):
if isinstance(mergeMap[attribute], list):
self._links[self._index][attribute].extend([attr for attr in mergeMap[attribute] if attr not in self._links[self._index][attribute]])
elif mergeMap[attribute] not in self._links[self._index][attribute]:
self._links[self._index][attribute].append(mergeMap[attribute])
elif isinstance(mergeMap[attribute], list):
if self._links[self._index][attribute] in mergeMap[attribute]:
self._links[self._index][attribute] = mergeMap[attribute]
else:
self._links[self._index][attribute] = [self._links[self._index][attribute]].extend(mergeMap[attribute])
elif mergeMap[attribute] != self._links[self._index][attribute]:
self._links[self._index][attribute] = [self._links[self._index][attribute], mergeMap[attribute]]
def select(self, selectMap):
"""selectMap contains a selection map in query filter format"""
'returns a list of indices to getLinks in the link array that match the query filter'
self._selection = []
'check all getLinks in the collection'
for self._linkIndex in range(0, len(self._links)):
self._selected = True
'test each attribute in the selectMap'
for attribute in selectMap:
if attribute not in self._links[self._linkIndex]:
self._selected = False
break
if isinstance(selectMap[attribute], list):
'multi value attributes in selectMap, all values must be present to select '
for self._attr_val in selectMap[attribute]:
if isinstance(self._links[self._linkIndex][attribute], list):
'multi value attribute in link'
if self._attr_val not in self._links[self._linkIndex][attribute]:
self._selected = False
break
elif self._attr_val != self._links[self._linkIndex][attribute]:
'single value attribute in link'
self._selected = False
break
elif isinstance(self._links[self._linkIndex][attribute], list):
'single value attribute in selectMap, multi value in link'
if selectMap[attribute] not in self._links[self._linkIndex][attribute]:
self._selected = False
break
elif selectMap[attribute] != self._links[self._linkIndex][attribute]:
'single value in both selectMap and link'
self._selected = False
break
if self._selected:
self._selection.append(self._linkIndex)
return self._selection |
#https://atcoder.jp/contests/abc072/tasks/arc082_b
N = int(input())
p = list(map(int,input().split()))
now = count = 0
while(now<N):
if p[now]==now+1:
if now+1 != N:
tmp = p[now]
p[now] = p[now+1]
p[now+1] = tmp
now -= 1
count += 1
continue
else:
tmp = p[now]
p[now] = p[now-1]
p[now-1] = tmp
now -= 1
count += 1
continue
now += 1
print(count)
| n = int(input())
p = list(map(int, input().split()))
now = count = 0
while now < N:
if p[now] == now + 1:
if now + 1 != N:
tmp = p[now]
p[now] = p[now + 1]
p[now + 1] = tmp
now -= 1
count += 1
continue
else:
tmp = p[now]
p[now] = p[now - 1]
p[now - 1] = tmp
now -= 1
count += 1
continue
now += 1
print(count) |
#!/bin/python3
for j in range(int(input())):
st = input()
print(st[::2], st[1::2]) | for j in range(int(input())):
st = input()
print(st[::2], st[1::2]) |
class Solution(object):
def strStr(self, haystack, needle):
"""
:type haystack: str
:type needle: str
:rtype: int
"""
if not needle:
return 0
for i in range(len(haystack)):
if haystack[i]==needle[0] and haystack[i:i+len(needle)] == needle and i+len(needle) < len(haystack):
return i
return -1
haystack = "hello"
needle = "ll"
p = Solution()
print(p.strStr(haystack, needle)) | class Solution(object):
def str_str(self, haystack, needle):
"""
:type haystack: str
:type needle: str
:rtype: int
"""
if not needle:
return 0
for i in range(len(haystack)):
if haystack[i] == needle[0] and haystack[i:i + len(needle)] == needle and (i + len(needle) < len(haystack)):
return i
return -1
haystack = 'hello'
needle = 'll'
p = solution()
print(p.strStr(haystack, needle)) |
serial = 9221
def get_power(position):
rackID = position[0] + 10
power = rackID * position[1]
power += serial
power *= rackID
power = (abs(power)%1000)//100
power -= 5
return(power)
def get_square(tlpos, size=3):
total = 0
for x in range(tlpos[0], tlpos[0]+size):
for y in range(tlpos[1], tlpos[1]+size):
total += grid[x][y]
return(total)
grid = {}
for row in range(1, 301):
grid[row] = {}
for col in range(1, 301):
grid[row][col] = get_power((row, col))
top_sqr = (None, float("-inf"))
for row in range(1, 299):
print("Row {r}".format(r=row))
for col in range(1, 299):
for size in range(1, 301-max((row, col))):
c_squ = get_square((row, col), size)
if top_sqr[1] < c_squ:
top_sqr = ((row, col, size), c_squ)
print(",".join(map(str, top_sqr[0])))
| serial = 9221
def get_power(position):
rack_id = position[0] + 10
power = rackID * position[1]
power += serial
power *= rackID
power = abs(power) % 1000 // 100
power -= 5
return power
def get_square(tlpos, size=3):
total = 0
for x in range(tlpos[0], tlpos[0] + size):
for y in range(tlpos[1], tlpos[1] + size):
total += grid[x][y]
return total
grid = {}
for row in range(1, 301):
grid[row] = {}
for col in range(1, 301):
grid[row][col] = get_power((row, col))
top_sqr = (None, float('-inf'))
for row in range(1, 299):
print('Row {r}'.format(r=row))
for col in range(1, 299):
for size in range(1, 301 - max((row, col))):
c_squ = get_square((row, col), size)
if top_sqr[1] < c_squ:
top_sqr = ((row, col, size), c_squ)
print(','.join(map(str, top_sqr[0]))) |
BASE91_ALPHA = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#$%&()*+,./:;<=>?@[]^_`{|}~"'
MASK1 = 2**13 - 1
MASK2 = 2**14 - 1
MASK3 = 2**8 - 1
def b91encode(num):
encoded = ""
n = 0
b = 0
for digit in num.encode('latin-1'):
b |= (digit << n)
n += 8
if n > 13:
v = b & MASK1
if v > 88:
b >>= 13
n -= 13
else:
v = b & MASK2
b >>= 14
n -= 14
encoded += BASE91_ALPHA[v % 91] + BASE91_ALPHA[v // 91]
if n:
encoded += BASE91_ALPHA[b % 91]
if n > 7 or b > 90:
encoded += BASE91_ALPHA[b // 91]
return encoded
def b91decode(num):
decoded = ""
n = 0
b = 0
v = -1
for digit in num:
c = BASE91_ALPHA.index(digit)
if v < 0:
v = c
else:
v += c * 91
b |= (v << n)
if (v & MASK1) > 88:
n += 13
else:
n += 14
while n > 7:
decoded += chr(b & MASK3)
b >>= 8
n -= 8
v = -1
if v+1:
decoded += chr((b | v << n) & MASK3)
return decoded
def b91check(num):
return set(num).issubset(set(BASE91_ALPHA))
assert b91decode(b91encode(BASE91_ALPHA)) == BASE91_ALPHA | base91_alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#$%&()*+,./:;<=>?@[]^_`{|}~"'
mask1 = 2 ** 13 - 1
mask2 = 2 ** 14 - 1
mask3 = 2 ** 8 - 1
def b91encode(num):
encoded = ''
n = 0
b = 0
for digit in num.encode('latin-1'):
b |= digit << n
n += 8
if n > 13:
v = b & MASK1
if v > 88:
b >>= 13
n -= 13
else:
v = b & MASK2
b >>= 14
n -= 14
encoded += BASE91_ALPHA[v % 91] + BASE91_ALPHA[v // 91]
if n:
encoded += BASE91_ALPHA[b % 91]
if n > 7 or b > 90:
encoded += BASE91_ALPHA[b // 91]
return encoded
def b91decode(num):
decoded = ''
n = 0
b = 0
v = -1
for digit in num:
c = BASE91_ALPHA.index(digit)
if v < 0:
v = c
else:
v += c * 91
b |= v << n
if v & MASK1 > 88:
n += 13
else:
n += 14
while n > 7:
decoded += chr(b & MASK3)
b >>= 8
n -= 8
v = -1
if v + 1:
decoded += chr((b | v << n) & MASK3)
return decoded
def b91check(num):
return set(num).issubset(set(BASE91_ALPHA))
assert b91decode(b91encode(BASE91_ALPHA)) == BASE91_ALPHA |
DOMAIN = "modernforms"
DEVICES = "devices"
COORDINATORS = "coordinators"
CONF_FAN_HOST = "fan_host"
CONF_FAN_NAME = "fan_name"
CONF_ENABLE_LIGHT = "enable_fan_light"
SERVICE_REBOOT = "reboot"
| domain = 'modernforms'
devices = 'devices'
coordinators = 'coordinators'
conf_fan_host = 'fan_host'
conf_fan_name = 'fan_name'
conf_enable_light = 'enable_fan_light'
service_reboot = 'reboot' |
# you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(A, B):
L = len(A)
P_MOD = (1 << max(B)) - 1 # 2 ** max(B) - 1
sequenceSolution = []
fiboSeq = [0] * (L + 2)
fiboSeq[1] = 1
for i in range(2, L + 2):
fiboSeq[i] = (fiboSeq[i - 1] + fiboSeq[i - 2]) & P_MOD
# iterate through list
for i in range(L):
N = A[i]
MOD = (1 << B[i]) - 1
sequenceSolution.append(fiboSeq[N + 1] & MOD)
return sequenceSolution
| def solution(A, B):
l = len(A)
p_mod = (1 << max(B)) - 1
sequence_solution = []
fibo_seq = [0] * (L + 2)
fiboSeq[1] = 1
for i in range(2, L + 2):
fiboSeq[i] = fiboSeq[i - 1] + fiboSeq[i - 2] & P_MOD
for i in range(L):
n = A[i]
mod = (1 << B[i]) - 1
sequenceSolution.append(fiboSeq[N + 1] & MOD)
return sequenceSolution |
'''
Desafio CPF
CPF = 168.995.350-09
--------------------
1 * 10 = 10 # 1 * 11 = 11
6 * 9 = 12 # 6 * 10 = 60
8 * 8 = 24 # 8 * 9 = 72
9 * 7 = 63 # 9 * 8 = 72
9 * 6 = 54 # 9 * 7 = 63
5 * 5 = 25 # 5 * 6 = 30
3 * 4 = 12 # 3 * 5 = 15
5 * 3 = 15 # 5 * 4 = 20
0 * 2 = 0 # 0 * 3 = 0
# 0 * 2 = 0
total = 297 total = 343
11 - (297 % 11) = 11 11 - ( 343 % 11) = 9
11 > 9 = 0
digito 1 = 0 Digito 2 = 9
'''
# cpf = '16899535009'
cpf = input('Digite o numero do CPF: ')
cpf_parc = cpf[:-2]
if len(cpf) != 11:
print('Tamanho do numero de CPF incorreto!')
else:
# calculo do primeiro digito
s = 0
for c, v in enumerate(range(10, 1, -1)):
s += (int(cpf_parc[c]) * v )
r = 11 - (s % 11)
if r > 9:
cpf_parc += '0'
else:
cpf_parc += str(r)
# print( cpf_parc )
# Calculo do segundo digito
s = 0
for c, v in enumerate(range(11, 1, -1)):
s += (int(cpf_parc[c]) * v )
r = 11 - (s % 11)
if r > 9:
cpf_parc += '0'
else:
cpf_parc += str(r)
# print( cpf_parc )
fcpf = cpf[:3]+'.'+cpf[3:6]+'.'+cpf[6:9]+'-'+cpf[9:11] # CPF formatado
if cpf == cpf_parc:
print(f'Numero de CPF:{fcpf} esta CORRETO.')
else:
print(f'Numero de CPF:{fcpf} INCORRETO, favor verifique !')
| """
Desafio CPF
CPF = 168.995.350-09
--------------------
1 * 10 = 10 # 1 * 11 = 11
6 * 9 = 12 # 6 * 10 = 60
8 * 8 = 24 # 8 * 9 = 72
9 * 7 = 63 # 9 * 8 = 72
9 * 6 = 54 # 9 * 7 = 63
5 * 5 = 25 # 5 * 6 = 30
3 * 4 = 12 # 3 * 5 = 15
5 * 3 = 15 # 5 * 4 = 20
0 * 2 = 0 # 0 * 3 = 0
# 0 * 2 = 0
total = 297 total = 343
11 - (297 % 11) = 11 11 - ( 343 % 11) = 9
11 > 9 = 0
digito 1 = 0 Digito 2 = 9
"""
cpf = input('Digite o numero do CPF: ')
cpf_parc = cpf[:-2]
if len(cpf) != 11:
print('Tamanho do numero de CPF incorreto!')
else:
s = 0
for (c, v) in enumerate(range(10, 1, -1)):
s += int(cpf_parc[c]) * v
r = 11 - s % 11
if r > 9:
cpf_parc += '0'
else:
cpf_parc += str(r)
s = 0
for (c, v) in enumerate(range(11, 1, -1)):
s += int(cpf_parc[c]) * v
r = 11 - s % 11
if r > 9:
cpf_parc += '0'
else:
cpf_parc += str(r)
fcpf = cpf[:3] + '.' + cpf[3:6] + '.' + cpf[6:9] + '-' + cpf[9:11]
if cpf == cpf_parc:
print(f'Numero de CPF:{fcpf} esta CORRETO.')
else:
print(f'Numero de CPF:{fcpf} INCORRETO, favor verifique !') |
dict={"be":"b","before":"b4","are":"r","you":"u","please":"plz","people":"ppl","really":"rly","have":"haz","know":"no","fore":"4","for":"4","to":"2","too":"2"}
def n00bify(text):
text=text.replace("'","").replace(",","").replace(".","")
res=text.split()
for i,j in enumerate(res):
for k in range(len(j)-1):
if j[k:k+2].lower() in dict:
res[i]=j[:k]+dict[j[k:k+2].lower()]+j[k+2:] if j[k].islower() else j[:k]+dict[j[k:k+2].lower()].capitalize()+j[k+2:]
elif j[k:k+2].lower()=="oo":
res[i]=res[i].replace(j[k:k+2], "00")
for k in range(len(j)-2):
if j[k:k+3].lower() in dict:
res[i]=j[:k]+dict[j[k:k+3].lower()]+j[k+3:] if j[k].islower() else j[:k]+dict[j[k:k+3].lower()].capitalize()+j[k+3:]
for k in range(len(j)-3):
if j[k:k+4].lower() in dict:
res[i]=j[:k]+dict[j[k:k+4].lower()]+j[k+4:] if j[k].islower() else j[:k]+dict[j[k:k+4].lower()].capitalize()+j[k+4:]
for k in range(len(j)-5):
if j[k:k+6].lower() in dict:
res[i]=j[:k]+dict[j[k:k+6].lower()]+j[k+6:] if j[k].islower() else j[:k]+dict[j[k:k+6].lower()].capitalize()+j[k+6:]
res[i]=res[i].replace("S", "Z").replace("s", "z")
if res[0][0].lower() =="h":
for i,j in enumerate(res):
res[i]=j.upper()
elif res[0][0].lower()=="w":
res.insert(0,"LOL")
temp=" ".join(res)
if (len(temp)-temp.count("?")-temp.count("!"))>=32:
res.insert(1,"OMG") if res[0]=="LOL" else res.insert(0,"OMG")
for i,j in enumerate(res):
if (i+1)%2==0:
res[i]=j.upper()
if "?" in j:
res[i]=res[i].replace("?", "?"*len(res))
if "!" in j:
exclamation=""
for k in range(len(res)):
exclamation+="!" if k%2==0 else "1"
res[i]=res[i].replace("!", exclamation)
return " ".join(res) | dict = {'be': 'b', 'before': 'b4', 'are': 'r', 'you': 'u', 'please': 'plz', 'people': 'ppl', 'really': 'rly', 'have': 'haz', 'know': 'no', 'fore': '4', 'for': '4', 'to': '2', 'too': '2'}
def n00bify(text):
text = text.replace("'", '').replace(',', '').replace('.', '')
res = text.split()
for (i, j) in enumerate(res):
for k in range(len(j) - 1):
if j[k:k + 2].lower() in dict:
res[i] = j[:k] + dict[j[k:k + 2].lower()] + j[k + 2:] if j[k].islower() else j[:k] + dict[j[k:k + 2].lower()].capitalize() + j[k + 2:]
elif j[k:k + 2].lower() == 'oo':
res[i] = res[i].replace(j[k:k + 2], '00')
for k in range(len(j) - 2):
if j[k:k + 3].lower() in dict:
res[i] = j[:k] + dict[j[k:k + 3].lower()] + j[k + 3:] if j[k].islower() else j[:k] + dict[j[k:k + 3].lower()].capitalize() + j[k + 3:]
for k in range(len(j) - 3):
if j[k:k + 4].lower() in dict:
res[i] = j[:k] + dict[j[k:k + 4].lower()] + j[k + 4:] if j[k].islower() else j[:k] + dict[j[k:k + 4].lower()].capitalize() + j[k + 4:]
for k in range(len(j) - 5):
if j[k:k + 6].lower() in dict:
res[i] = j[:k] + dict[j[k:k + 6].lower()] + j[k + 6:] if j[k].islower() else j[:k] + dict[j[k:k + 6].lower()].capitalize() + j[k + 6:]
res[i] = res[i].replace('S', 'Z').replace('s', 'z')
if res[0][0].lower() == 'h':
for (i, j) in enumerate(res):
res[i] = j.upper()
elif res[0][0].lower() == 'w':
res.insert(0, 'LOL')
temp = ' '.join(res)
if len(temp) - temp.count('?') - temp.count('!') >= 32:
res.insert(1, 'OMG') if res[0] == 'LOL' else res.insert(0, 'OMG')
for (i, j) in enumerate(res):
if (i + 1) % 2 == 0:
res[i] = j.upper()
if '?' in j:
res[i] = res[i].replace('?', '?' * len(res))
if '!' in j:
exclamation = ''
for k in range(len(res)):
exclamation += '!' if k % 2 == 0 else '1'
res[i] = res[i].replace('!', exclamation)
return ' '.join(res) |
# Checks if the provided char is at least 5 chars long
def validateMinCharLength(field):
if len(field) >= 5:
return True
else:
return False
# validates that the value provided by the user is a float value above 0
def validateValue(value):
if isinstance(value, float):
if value > 0.0:
return True
return False
# validates that the number of units provided by the user is an integer value above 0
def validateUnits(units):
if isinstance(units, int):
if units > 0:
return True
return False | def validate_min_char_length(field):
if len(field) >= 5:
return True
else:
return False
def validate_value(value):
if isinstance(value, float):
if value > 0.0:
return True
return False
def validate_units(units):
if isinstance(units, int):
if units > 0:
return True
return False |
def sortByBinaryOnes (numList):
binary = [str((bin(i)[2:])) for i in numList]
ones = [i.count("1") for i in binary]
sorting = sorted(list(zip(ones, numList, binary)))
sorting.sort(key=lambda k: (k[0], -k[1]), reverse=True)
numList = [i[1] for i in sorting]
return numList
sortByBinaryOnes([1,15,5,7,3])
"""
http://www.codewars.com/kata/sort-by-binary-ones/train/python
In this example you need to implement a function that sort a list of integers based on it's binary representation.
The rules are simple:
sort the list based on the amount of 1's in the binary representation of each number.
if two numbers have the same amount of 1's, the shorter string goes first. (ex: "11" goes before "101" when sorting 3 and 5 respectively)
if the amount of 1's is same, lower decimal number goes first. (ex: 21 = "10101" and 25 = "11001", then 21 goes first as is lower)
Examples:
Input: [1,15,5,7,3]
( in binary strings is: ["1", "1111", "101", "111", "11"])
Output: [15, 7, 3, 5, 1]
(and after sortByBinaryOnes is: ["1111", "111", "11", "101", "1"])
def sortByBinaryOnes(numList):
def key(n):
s = format(n, 'b')
return -s.count('1'), len(s), n
return sorted(numList, key=key)
"""
| def sort_by_binary_ones(numList):
binary = [str(bin(i)[2:]) for i in numList]
ones = [i.count('1') for i in binary]
sorting = sorted(list(zip(ones, numList, binary)))
sorting.sort(key=lambda k: (k[0], -k[1]), reverse=True)
num_list = [i[1] for i in sorting]
return numList
sort_by_binary_ones([1, 15, 5, 7, 3])
'\n\nhttp://www.codewars.com/kata/sort-by-binary-ones/train/python\n\n\nIn this example you need to implement a function that sort a list of integers based on it\'s binary representation.\n\nThe rules are simple:\n\nsort the list based on the amount of 1\'s in the binary representation of each number.\nif two numbers have the same amount of 1\'s, the shorter string goes first. (ex: "11" goes before "101" when sorting 3 and 5 respectively)\nif the amount of 1\'s is same, lower decimal number goes first. (ex: 21 = "10101" and 25 = "11001", then 21 goes first as is lower)\nExamples:\n\nInput: [1,15,5,7,3]\n( in binary strings is: ["1", "1111", "101", "111", "11"])\nOutput: [15, 7, 3, 5, 1]\n(and after sortByBinaryOnes is: ["1111", "111", "11", "101", "1"])\n\n\n\ndef sortByBinaryOnes(numList):\n def key(n):\n s = format(n, \'b\')\n return -s.count(\'1\'), len(s), n\n return sorted(numList, key=key)\n' |
# 44. Wildcard Matching
# ---------------------
#
# Given an input string (`s`) and a pattern (`p`), implement wildcard pattern matching with support for `'?'` and `'*'`
# where:
#
# * `'?'` Matches any single character.
# * `'*'` Matches any sequence of characters (including the empty sequence).
#
# The matching should cover the **entire** input string (not partial).
#
# ### Constraints:
#
# * `0 <= s.length, p.length <= 2000`
# * `s` contains only lowercase English letters.
# * `p` contains only lowercase English letters, `'?'` or `'*'`.
#
# Source: https://leetcode.com/problems/wildcard-matching/
# ### Author's remark:
#
# This naive solution demonstrates surprisingly decent results:
#
# > Runtime: 48 ms, faster than 91.54% of Python3 online submissions for Wildcard Matching.
# > Memory Usage: 14.2 MB, less than 96.90% of Python3 online submissions for Wildcard Matching.
def substr(text, pat, offset=0):
m, n = 0, min(len(pat), len(text) - offset)
while m < n and (pat[m] == '?' or pat[m] == text[offset + m]):
m += 1
return m == len(pat)
def find(text, pat, offset=0):
for m in range(offset, len(text) - len(pat) + 1):
if substr(text, pat, m):
return m
return -1
def findall(text, pats):
m = 0
for pat in pats:
loc = find(text, pat, m)
if loc < 0:
break
yield loc
m = loc + len(pat)
class Solution:
def isMatch(self, s: str, p: str) -> bool:
pats = p.split('*')
if len(pats) == 1:
return len(s) == len(p) and substr(s, p)
else:
locs = list(findall(s, pats))
prefix, suffix = pats[0], pats[-1]
return len(locs) == len(pats) and substr(s[:len(prefix)], prefix) and substr(s[-len(suffix):], suffix)
if __name__ == '__main__':
s = Solution()
# Example 1:
#
# Input: s = "aa", p = "a"
# Output: false
# Explanation: "a" does not match the entire string "aa".
print(f"{s.isMatch(s='aa', p='a')} == false")
# Example 2:
#
# Input: s = "aa", p = "*"
# Output: true
# Explanation: '*' matches any sequence.
print(f"{s.isMatch(s='aa', p='*')} == true")
# Example 3:
#
# Input: s = "cb", p = "?a"
# Output: false
# Explanation: '?' matches 'c', but the second letter is 'a', which does not match 'b'.
print(f"{s.isMatch(s='cb', p='?a')} == false")
# Example 4:
#
# Input: s = "adceb", p = "*a*b"
# Output: true
# Explanation: The first '*' matches the empty sequence, while the second '*' matches the substring "dce".
print(f"{s.isMatch(s='adceb', p='*a*b')} == true")
# Example 5:
#
# Input: s = "acdcb", p = "a*c?b"
# Output: false
print(f"{s.isMatch(s='acdcb', p='a*c?b')} == false")
# Example 6:
#
# Input: s = "ab", p = "?*"
# Output: true
print(f"{s.isMatch(s='ab', p='?*')} == true")
# Example 7:
#
# Input: s = "", p = "ab*"
# Output: true
print(f"{s.isMatch(s='', p='ab*')} == false") | def substr(text, pat, offset=0):
(m, n) = (0, min(len(pat), len(text) - offset))
while m < n and (pat[m] == '?' or pat[m] == text[offset + m]):
m += 1
return m == len(pat)
def find(text, pat, offset=0):
for m in range(offset, len(text) - len(pat) + 1):
if substr(text, pat, m):
return m
return -1
def findall(text, pats):
m = 0
for pat in pats:
loc = find(text, pat, m)
if loc < 0:
break
yield loc
m = loc + len(pat)
class Solution:
def is_match(self, s: str, p: str) -> bool:
pats = p.split('*')
if len(pats) == 1:
return len(s) == len(p) and substr(s, p)
else:
locs = list(findall(s, pats))
(prefix, suffix) = (pats[0], pats[-1])
return len(locs) == len(pats) and substr(s[:len(prefix)], prefix) and substr(s[-len(suffix):], suffix)
if __name__ == '__main__':
s = solution()
print(f"{s.isMatch(s='aa', p='a')} == false")
print(f"{s.isMatch(s='aa', p='*')} == true")
print(f"{s.isMatch(s='cb', p='?a')} == false")
print(f"{s.isMatch(s='adceb', p='*a*b')} == true")
print(f"{s.isMatch(s='acdcb', p='a*c?b')} == false")
print(f"{s.isMatch(s='ab', p='?*')} == true")
print(f"{s.isMatch(s='', p='ab*')} == false") |
def grid_traveller_basic(n, m):
if n == 0 or m == 0:
return 0
if n < 2 and m < 2:
return min(n, m)
return grid_traveller_basic(n - 1, m) + grid_traveller_basic(n, m - 1)
def grid_traveller_memo(n, m, memo=dict()):
if n == 0 or m == 0:
return 0
if n < 2 and m < 2:
return min(n, m)
key = f"{n}{m}"
if key in memo:
return memo[key]
memo[key] = grid_traveller_memo(n - 1, m, memo) + grid_traveller_memo(
n, m - 1, memo
)
return memo[key]
def grid_traveller_table(n, m):
table = [[0 for x in range(n + 1)] for x in range(m + 1)]
table[1][1] = 1
for i in range(1, m + 1):
for j in range(1, n + 1):
cur = table[i][j]
if i < m:
table[i + 1][j] += cur
if j < n:
table[i][j + 1] += cur
return table[m][n]
| def grid_traveller_basic(n, m):
if n == 0 or m == 0:
return 0
if n < 2 and m < 2:
return min(n, m)
return grid_traveller_basic(n - 1, m) + grid_traveller_basic(n, m - 1)
def grid_traveller_memo(n, m, memo=dict()):
if n == 0 or m == 0:
return 0
if n < 2 and m < 2:
return min(n, m)
key = f'{n}{m}'
if key in memo:
return memo[key]
memo[key] = grid_traveller_memo(n - 1, m, memo) + grid_traveller_memo(n, m - 1, memo)
return memo[key]
def grid_traveller_table(n, m):
table = [[0 for x in range(n + 1)] for x in range(m + 1)]
table[1][1] = 1
for i in range(1, m + 1):
for j in range(1, n + 1):
cur = table[i][j]
if i < m:
table[i + 1][j] += cur
if j < n:
table[i][j + 1] += cur
return table[m][n] |
"""
@title: Winter is coming
@author: DSAghicha (Darshaan Aghicha)
@access: public
"""
def mandatory_courses(course: list[list[int]],answer: list[list[int]]) -> list[bool]:
result: list[bool] = []
indirect_dependency: list[int] = []
for i in range(len(course)):
if i + 1 < len(course) and course[i][1] == course[i+1][0]:
pr: list[int] = [course[i][0], course[i+1][1]]
indirect_dependency = pr if pr not in course else []
for answers in answer:
if indirect_dependency == answers:
result.append(True)
else:
result.append(answers in course)
return result
def main() -> None:
try:
num: int = int(input("Enter number of courses: "))
courses: list[list[int]] = []
for _ in range(num - 1):
print("Enter course: ", end='')
course = [int(x) for x in input().split(" ")]
if len(course) != 2:
raise ValueError
courses.append(course)
answers: list[list[int]] = []
for _ in range(2):
print("Enter answer: ", end='')
answer = [int(x) for x in input().split(" ")]
if len(answer) != 2:
raise ValueError
answers.append(answer)
output = mandatory_courses(courses, answers)
print(f"Output: {output}")
print(f"\n{'-' * 10}\n")
for i in range(len(answers)):
if output[i] is True:
print(f"Course {answers[i][0]} is mandatory to take up course {answers[i][1]}.")
elif output[i] is False:
print(f"Course {answers[i][0]} is not mandatory to take up course {answers[i][1]}.")
except ValueError:
print("\nInvalid Input!\n")
main()
if __name__ == "__main__":
main()
| """
@title: Winter is coming
@author: DSAghicha (Darshaan Aghicha)
@access: public
"""
def mandatory_courses(course: list[list[int]], answer: list[list[int]]) -> list[bool]:
result: list[bool] = []
indirect_dependency: list[int] = []
for i in range(len(course)):
if i + 1 < len(course) and course[i][1] == course[i + 1][0]:
pr: list[int] = [course[i][0], course[i + 1][1]]
indirect_dependency = pr if pr not in course else []
for answers in answer:
if indirect_dependency == answers:
result.append(True)
else:
result.append(answers in course)
return result
def main() -> None:
try:
num: int = int(input('Enter number of courses: '))
courses: list[list[int]] = []
for _ in range(num - 1):
print('Enter course: ', end='')
course = [int(x) for x in input().split(' ')]
if len(course) != 2:
raise ValueError
courses.append(course)
answers: list[list[int]] = []
for _ in range(2):
print('Enter answer: ', end='')
answer = [int(x) for x in input().split(' ')]
if len(answer) != 2:
raise ValueError
answers.append(answer)
output = mandatory_courses(courses, answers)
print(f'Output: {output}')
print(f"\n{'-' * 10}\n")
for i in range(len(answers)):
if output[i] is True:
print(f'Course {answers[i][0]} is mandatory to take up course {answers[i][1]}.')
elif output[i] is False:
print(f'Course {answers[i][0]} is not mandatory to take up course {answers[i][1]}.')
except ValueError:
print('\nInvalid Input!\n')
main()
if __name__ == '__main__':
main() |
[
{
'date': '2019-01-01',
'description': 'Nieuwjaar',
'locale': 'nl-BE',
'notes': '',
'region': '',
'type': 'NF'
},
{
'date': '2019-04-21',
'description': 'Pasen',
'locale': 'nl-BE',
'notes': '',
'region': '',
'type': 'NRV'
},
{
'date': '2019-04-22',
'description': 'Paasmaandag',
'locale': 'nl-BE',
'notes': '',
'region': '',
'type': 'NRV'
},
{
'date': '2019-05-01',
'description': 'Dag van de arbeid',
'locale': 'nl-BE',
'notes': '',
'region': '',
'type': 'NF'
},
{
'date': '2019-05-30',
'description': 'Onze Lieve Heer hemelvaart',
'locale': 'nl-BE',
'notes': '',
'region': '',
'type': 'NRV'
},
{
'date': '2019-06-09',
'description': 'Pinksteren',
'locale': 'nl-BE',
'notes': '',
'region': '',
'type': 'NRV'
},
{
'date': '2019-06-10',
'description': 'Pinkstermaandag',
'locale': 'nl-BE',
'notes': '',
'region': '',
'type': 'NRV'
},
{
'date': '2019-07-21',
'description': 'Nationale feestdag',
'locale': 'nl-BE',
'notes': '',
'region': '',
'type': 'NF'
},
{
'date': '2019-08-15',
'description': 'Onze Lieve Vrouw hemelvaart',
'locale': 'nl-BE',
'notes': '',
'region': '',
'type': 'NRF'
},
{
'date': '2019-11-01',
'description': 'Allerheiligen',
'locale': 'nl-BE',
'notes': '',
'region': '',
'type': 'NRF'
},
{
'date': '2019-11-11',
'description': 'Wapenstilstand',
'locale': 'nl-BE',
'notes': '',
'region': '',
'type': 'NF'
},
{
'date': '2019-12-25',
'description': 'Kerstmis',
'locale': 'nl-BE',
'notes': '',
'region': '',
'type': 'NRF'
}
] | [{'date': '2019-01-01', 'description': 'Nieuwjaar', 'locale': 'nl-BE', 'notes': '', 'region': '', 'type': 'NF'}, {'date': '2019-04-21', 'description': 'Pasen', 'locale': 'nl-BE', 'notes': '', 'region': '', 'type': 'NRV'}, {'date': '2019-04-22', 'description': 'Paasmaandag', 'locale': 'nl-BE', 'notes': '', 'region': '', 'type': 'NRV'}, {'date': '2019-05-01', 'description': 'Dag van de arbeid', 'locale': 'nl-BE', 'notes': '', 'region': '', 'type': 'NF'}, {'date': '2019-05-30', 'description': 'Onze Lieve Heer hemelvaart', 'locale': 'nl-BE', 'notes': '', 'region': '', 'type': 'NRV'}, {'date': '2019-06-09', 'description': 'Pinksteren', 'locale': 'nl-BE', 'notes': '', 'region': '', 'type': 'NRV'}, {'date': '2019-06-10', 'description': 'Pinkstermaandag', 'locale': 'nl-BE', 'notes': '', 'region': '', 'type': 'NRV'}, {'date': '2019-07-21', 'description': 'Nationale feestdag', 'locale': 'nl-BE', 'notes': '', 'region': '', 'type': 'NF'}, {'date': '2019-08-15', 'description': 'Onze Lieve Vrouw hemelvaart', 'locale': 'nl-BE', 'notes': '', 'region': '', 'type': 'NRF'}, {'date': '2019-11-01', 'description': 'Allerheiligen', 'locale': 'nl-BE', 'notes': '', 'region': '', 'type': 'NRF'}, {'date': '2019-11-11', 'description': 'Wapenstilstand', 'locale': 'nl-BE', 'notes': '', 'region': '', 'type': 'NF'}, {'date': '2019-12-25', 'description': 'Kerstmis', 'locale': 'nl-BE', 'notes': '', 'region': '', 'type': 'NRF'}] |
class NotEnoughSpace(Exception):
pass
class UnknownNodeType(Exception):
def __init__(self, expr):
self.expr = expr
def __str__(self):
attrs = ', '.join('%s=%s' % (a, getattr(self.expr, a))
for a in dir(self.expr)
if not a.startswith('_'))
return (('Unkown expression type: %s;\n\n'
'dir(expr) = %s\n\n'
'attrs: %s') % (type(self.expr),
dir(self.expr), attrs))
| class Notenoughspace(Exception):
pass
class Unknownnodetype(Exception):
def __init__(self, expr):
self.expr = expr
def __str__(self):
attrs = ', '.join(('%s=%s' % (a, getattr(self.expr, a)) for a in dir(self.expr) if not a.startswith('_')))
return 'Unkown expression type: %s;\n\ndir(expr) = %s\n\nattrs: %s' % (type(self.expr), dir(self.expr), attrs) |
default_min_token = -9223372036854775808
default_max_token = 9223372036854775807
split_q_size = 20000
worker_q_size = 20000
mapper_q_size = 20000
reducer_q_size = 20000
results_q_size = 20000
stats_q_size = 20000
# you can also specify your database credentials here
# when specified here, they will take precedence over same
# settings specified on the CLI
#
#db_user = "testuser"
#db_password = "testpass"
#ssl_cert = "test.cer.pem"
#ssl_key = "test.key.pem"
#ssl_cacert = "ca.crt" | default_min_token = -9223372036854775808
default_max_token = 9223372036854775807
split_q_size = 20000
worker_q_size = 20000
mapper_q_size = 20000
reducer_q_size = 20000
results_q_size = 20000
stats_q_size = 20000 |
class Solution():
def missingNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
note: the max num in nums is len(nums)
"""
n = len(nums)
return (n * (n + 1) // 2) - sum(nums)
| class Solution:
def missing_number(self, nums):
"""
:type nums: List[int]
:rtype: int
note: the max num in nums is len(nums)
"""
n = len(nums)
return n * (n + 1) // 2 - sum(nums) |
image_queries = {
"pixel": {"filename": "pixel.gif", "media_type": "image/gif"},
"gif": {"filename": "badge.gif", "media_type": "image/gif"},
"flat": {"filename": "badge-flat.svg", "media_type": "image/svg+xml"},
"flat-gif": {"filename": "badge-flat.gif", "media_type": "image/gif"},
"other": {"filename": "badge.svg", "media_type": "image/svg+xml"},
}
| image_queries = {'pixel': {'filename': 'pixel.gif', 'media_type': 'image/gif'}, 'gif': {'filename': 'badge.gif', 'media_type': 'image/gif'}, 'flat': {'filename': 'badge-flat.svg', 'media_type': 'image/svg+xml'}, 'flat-gif': {'filename': 'badge-flat.gif', 'media_type': 'image/gif'}, 'other': {'filename': 'badge.svg', 'media_type': 'image/svg+xml'}} |
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# @lint-ignore-every BUCKRESTRICTEDSYNTAX
"""
shape.bzl provides a convenient strongly-typed bridge from Buck bzl parse
time to Python runtime.
## Shape objects
Shape objects are immutable instances of a shape type, that have been
validated to match the shape type spec as described below.
## Shape Types
Shape types are a collection of strongly typed fields that can be validated
at Buck parse time (by `shape.new`) and at Python runtime (by `shape.loader`
implementations).
## Field Types
A shape field is a named member of a shape type. There are a variety of field
types available:
primitive types (bool, int, float, str)
other shapes
homogenous lists of a single `field` element type
dicts with homogenous key `field` types and homogenous `field` value type
heterogenous tuples with `field` element types
enums with string values
unions via shape.union(type1, type2, ...)
If using a union, use the most specific type first as Pydantic will attempt to
coerce to the types in the order listed
(see https://pydantic-docs.helpmanual.io/usage/types/#unions) for more info.
## Optional and Defaulted Fields
By default, fields are required to be set at instantiation time
(`shape.new`).
Fields declared with `shape.field(..., default='val')` do not have to be
instantiated explicitly.
Additionally, fields can be marked optional by using the `optional` kwarg in
`shape.field` (or any of the collection field types: `shape.list`,
`shape.tuple`, or `shape.dict`).
For example, `shape.field(int, optional=True)` denotes an integer field that
may or may not be set in a shape object.
Obviously, optional fields are still subject to the same type validation as
non-optional fields, but only if they have a non-None value.
## Loaders
`shape.loader` codegens a type-hinted Python library that is capable of
parsing and validating a shape object at runtime.
The return value of shape.loader is the fully-qualified name of the
`python_library` rule that contains the implementation of this loader.
## Serialization formats
shape.bzl provides two mechanisms to pass shape objects to Python runtime code.
`shape.json_file` dumps a shape object to an output file. This can be read
from a file or resource, using `read_resource` or `read_file` of the
generated loader class.
`shape.python_data` dumps a shape object to a raw python source file. This
is useful for some cases where a python_binary is expected to be fully
self-contained, but still require some build-time information. It is also
useful in cases when shapes are being dynamically generated based on inputs
to a macro. See the docblock of the function for an example.
## Naming Conventions
Shape types should be named with a suffix of '_t' to denote that it is a
shape type.
Shape instances should conform to whatever convention is used where they are
declared (usually snake_case variables).
## Example usage
Inspired by `image_actions/mount.bzl`:
```
mount_t = shape.shape(
mount_config=shape.shape(
build_source=shape.shape(
source=str,
type=str,
),
default_mountpoint=str,
is_directory=bool,
),
mountpoint = shape.field(str, optional=True),
target = shape.field(str, optional=True),
)
mount = shape.new(
mount_t,
mount_config=shape.new(
mount.mount_config,
build_source=shape.new(
mount.mount_config.build_source,
source="/etc/fbwhoami",
type="host",
),
default_mountpoint="/etc/fbwhoami",
is_directory=False,
),
)
```
See tests/shape_test.bzl for full example usage and selftests.
"""
load("@bazel_skylib//lib:shell.bzl", "shell")
load("@bazel_skylib//lib:types.bzl", "types")
load(":oss_shim.bzl", "buck_genrule", "python_library", "target_utils", "third_party")
load(":sha256.bzl", "sha256_b64")
load(":structs.bzl", "structs")
load(":target_helpers.bzl", "antlir_dep", "normalize_target")
_SERIALIZING_LOCATION_MSG = (
"shapes with layer/target fields cannot safely be serialized in the" +
" output of a buck target.\n" +
"For buck_genrule uses, consider passing an argument with the (shell quoted)" +
" result of 'shape.do_not_cache_me_json'\n" +
"For unit tests, consider setting an environment variable with the same" +
" JSON string"
)
_NO_DEFAULT = struct(no_default = True)
def _python_type(t):
if t == int:
return "int"
if t == bool:
return "bool"
if t == str:
return "str"
if _is_collection(t):
if t.collection == dict:
k, v = t.item_type
return "Mapping[{}, {}]".format(_python_type(k), _python_type(v))
if t.collection == list:
# list input is codegened as a homogenous tuple so that the
# resulting field in the python class reflects the readonly nature
# of the source
return "Tuple[{}, ...]".format(_python_type(t.item_type))
if t.collection == tuple:
return "Tuple[{}]".format(", ".join([_python_type(x) for x in t.item_type]))
if _is_enum(t):
return "_".join([str(v.capitalize()) for v in t.enum])
if _is_field(t):
python_type = _python_type(t.type)
if t.optional:
python_type = "Optional[{}]".format(python_type)
return python_type
if _is_shape(t):
# deterministically name the class based on the shape field names and types
# to allow for buck caching and proper starlark runtime compatibility
return "_" + sha256_b64(
str({key: _python_type(field) for key, field in t.fields.items()}),
).replace("-", "_")
if _is_union(t):
type_names = [_python_type(union_t) for union_t in t.union_types]
return "Union[{}]".format(", ".join(type_names))
# If t is a string, then it should be the name of a type that will exist in
# the Shape generated code context
if types.is_string(t):
return t
fail("unknown type {}".format(t)) # pragma: no cover
# Poor man's debug pretty-printing. Better version coming on a stack.
def _pretty(x):
return structs.to_dict(x) if structs.is_struct(x) else x
def _get_is_instance_error(val, t):
if not _is_instance(val, t):
return (
(
"{} is not an instance of {} -- note that structs & dicts " +
"are NOT currently automatically promoted to shape"
).format(
_pretty(val),
_pretty(t),
)
)
return None
def _check_type(x, t):
"""Check that x is an instance of t.
This is a little more complicated than `isinstance(x, t)`, and supports
more use cases. _check_type handles primitive types (bool, int, str),
shapes and collections (dict, list, tuple).
Return: None if successful, otherwise a str to be passed to `fail` at a
site that has more context for the user
"""
if t == int:
if types.is_int(x):
return None
return "expected int, got {}".format(x)
if t == bool:
if types.is_bool(x):
return None
return "expected bool, got {}".format(x)
if t == str:
if types.is_string(x):
return None
return "expected str, got {}".format(x)
if _is_enum(t):
if x in t.enum:
return None
return "expected one of {}, got {}".format(t.enum, x)
if t == "Path":
return _check_type(x, str)
if t == "Target":
type_error = _check_type(x, str)
if not type_error:
# If parsing the target works, we don't have an error
if target_utils.parse_target(x):
return None
else:
return type_error
if _is_field(t):
if t.optional and x == None:
return None
return _check_type(x, t.type)
if _is_shape(t):
# Don't need type-check the internals of `x` because we trust it to
# have been type-checked at the time of construction.
return _get_is_instance_error(x, t)
if _is_collection(t):
return _check_collection_type(x, t)
if _is_union(t):
_matched_type, error = _find_union_type(x, t)
return error
return "unsupported type {}".format(t) # pragma: no cover
# Returns a mutually exclusive tuple:
# ("matched type" or None, "error if no type matched" or None)
def _find_union_type(x, t):
type_errors = []
for union_t in t.union_types:
type_error = _check_type(x, union_t)
if type_error == None:
return union_t, None
type_errors.append(type_error)
return None, "{} not matched in union {}: {}".format(
x,
t.union_types,
"; ".join(type_errors),
)
# Returns a mutually exclusive tuple:
# ([tuple type, tuple element] or None, "type error" or None)
def _values_and_types_for_tuple(x, t):
if not _is_collection(t) or t.collection != tuple: # pragma: no cover
# This is an assertion, not a user error.
fail("{} is not a tuple type (value {})".format(_pretty(t), _pretty(x)))
if not types.is_list(x) and not types.is_tuple(x):
return None, "{} is not tuple".format(x)
if len(x) != len(t.item_type):
return None, "length of {} does not match {}".format(
_pretty(x),
_pretty(t.item_type),
)
# Explicit `list` since the tests run as Python, where `zip` is a generator
values_and_types = list(zip(x, t.item_type))
for i, (val, item_type) in enumerate(values_and_types):
type_error = _check_type(val, item_type)
if type_error:
return None, "item {}: {}".format(i, type_error)
return values_and_types, None
def _check_collection_type(x, t):
if t.collection == dict:
if not types.is_dict(x):
return "{} is not dict".format(x)
key_type, val_type = t.item_type
for key, val in x.items():
key_type_error = _check_type(key, key_type)
if key_type_error:
return "key: " + key_type_error
val_type_error = _check_type(val, val_type)
if val_type_error:
return "val: " + val_type_error
return None
if t.collection == list:
if not types.is_list(x) and not types.is_tuple(x):
return "{} is not list".format(x)
for i, val in enumerate(x):
type_error = _check_type(val, t.item_type)
if type_error:
return "item {}: {}".format(i, type_error)
return None
if t.collection == tuple:
_values_and_types, error = _values_and_types_for_tuple(x, t)
return error
return "unsupported collection type {}".format(t.collection) # pragma: no cover
def _shapes_for_field(field_or_type):
# recursively codegen classes for every shape that is contained in this
# field, or any level of nesting beneath
src = []
if _is_field(field_or_type):
field = field_or_type
if _is_shape(field.type):
src.extend(_codegen_shape(field.type))
if _is_collection(field.type):
item_types = []
# some collections have multiple types and some have only one
if types.is_list(field.type.item_type) or types.is_tuple(field.type.item_type):
item_types = list(field.type.item_type)
else:
item_types = [field.type.item_type]
for t in item_types:
src.extend(_shapes_for_field(t))
if _is_enum(field.type):
src.extend(_codegen_enum(field.type))
elif _is_shape(field_or_type):
src.extend(_codegen_shape(field_or_type))
return src
def _codegen_field(name, field):
# for nested shapes, the class definitions must be listed in the body
# before the fields, so that forward references are avoided
src = []
python_type = _python_type(field)
src.extend(_shapes_for_field(field))
if field.default == _NO_DEFAULT:
src.append("{}: {}".format(name, python_type))
else:
default_repr = repr(field.default)
if structs.is_struct(field.default):
default_repr = "{}(**{})".format(python_type, repr(
_as_serializable_dict(field.default),
))
src.append("{}: {} = {}".format(name, python_type, default_repr))
return src
def _codegen_shape(shape, classname = None):
if classname == None:
classname = _python_type(shape)
src = [
"class {}(Shape):".format(classname),
" __GENERATED_SHAPE__ = True",
]
for name, field in shape.fields.items():
src.extend([" " + line for line in _codegen_field(name, field)])
return src
def _codegen_enum(enum):
classname = _python_type(enum)
src = [
"class {}(Enum):".format(classname),
]
src.extend([" {} = {}".format(value.upper(), repr(value)) for value in enum.enum])
return src
def _field(type, optional = False, default = _NO_DEFAULT):
if optional and default == _NO_DEFAULT:
default = None
return struct(
type = type,
optional = optional,
default = default,
)
def _is_field(x):
return structs.is_struct(x) and sorted(structs.to_dict(x).keys()) == sorted(["type", "optional", "default"])
def _dict(key_type, val_type, **field_kwargs):
return _field(
type = struct(
collection = dict,
item_type = (key_type, val_type),
),
**field_kwargs
)
def _list(item_type, **field_kwargs):
return _field(
type = struct(
collection = list,
item_type = item_type,
),
**field_kwargs
)
def _tuple(*item_types, **field_kwargs):
return _field(
type = struct(
collection = tuple,
item_type = item_types,
),
**field_kwargs
)
def _is_collection(x):
return structs.is_struct(x) and sorted(structs.to_dict(x).keys()) == sorted(["collection", "item_type"])
def _is_union(x):
return structs.is_struct(x) and sorted(structs.to_dict(x).keys()) == sorted(["union_types"])
def _union_type(*union_types):
"""
Define a new union type that can be used when defining a field. Most
useful when a union type is meant to be typedef'd and reused. To define
a shape field directly, see shape.union.
Example usage:
```
mode_t = shape.union_t(int, str) # could be 0o644 or "a+rw"
type_a = shape.shape(mode=mode_t)
type_b = shape.shape(mode=shape.field(mode_t, optional=True))
```
"""
if len(union_types) == 0:
fail("union must specify at one type")
return struct(
union_types = union_types,
)
def _union(*union_types, **field_kwargs):
return _field(
type = _union_type(*union_types),
**field_kwargs
)
def _enum(*values, **field_kwargs):
# since enum values go into class member names, they must be strings
for val in values:
if not types.is_string(val):
fail("all enum values must be strings, got {}".format(_pretty(val)))
return _field(
type = struct(
enum = tuple(values),
),
**field_kwargs
)
def _is_enum(t):
return structs.is_struct(t) and sorted(structs.to_dict(t).keys()) == sorted(["enum"])
def _path(**field_kwargs):
return _field(type = "Path", **field_kwargs)
# A target is special kind of Path in that it will be resolved to an on-disk location
# when the shape is rendered to json. But when the shape instance is being
# used in bzl macros, the field will be a valid buck target.
def _target(**field_kwargs):
return _field(type = "Target", **field_kwargs)
def _shape(**fields):
"""
Define a new shape type with the fields as given by the kwargs.
Example usage:
```
shape.shape(hello=str)
```
"""
for name, f in fields.items():
# Avoid colliding with `__shape__`. Also, in Python, `_name` is private.
if name.startswith("_"):
fail("Shape field name {} must not start with _: {}".format(
name,
_pretty(fields),
))
# transparently convert fields that are just a type have no options to
# the rich field type for internal use
if not hasattr(f, "type") or _is_union(f):
fields[name] = _field(f)
return struct(
fields = fields,
# for external usage, make the fields top-level attributes
**{key: f.type for key, f in fields.items()}
)
def _is_shape(x):
if not structs.is_struct(x):
return False
if not hasattr(x, "fields"):
return False
return sorted(structs.to_dict(x).keys()) == sorted(["fields"] + list(x.fields.keys()))
def _shape_defaults_dict(shape):
defaults = {}
for key, field in shape.fields.items():
if field.default != _NO_DEFAULT:
defaults[key] = field.default
return defaults
def _new_shape(shape, **fields):
"""
Type check and instantiate a struct of the given shape type using the
values from the **fields kwargs.
Example usage:
```
example_t = shape.shape(hello=str)
example = shape.new(example_t, hello="world")
```
"""
with_defaults = _shape_defaults_dict(shape)
with_defaults.update(fields)
for field, value in fields.items():
if field not in shape.fields:
fail("field `{}` is not defined in the shape".format(field))
error = _check_type(value, shape.fields[field])
if error:
fail(error)
return struct(__shape__ = shape, **with_defaults)
def _loader(name, shape, classname = "shape", **kwargs): # pragma: no cover
"""codegen a fully type-hinted python source file to load the given shape"""
if not _is_shape(shape):
fail("expected shape type, got {}".format(shape))
python_src = "from typing import *\nfrom antlir.shape import *\n"
python_src += "\n".join(_codegen_shape(shape, classname))
buck_genrule(
name = "{}.py".format(name),
cmd = "echo {} > $OUT".format(shell.quote(python_src)),
# Antlir users should not directly use `shape`, but we do use it
# as an implementation detail of "builder" / "publisher" targets.
antlir_rule = "user-internal",
)
python_library(
name = name,
srcs = {":{}.py".format(name): "{}.py".format(name)},
deps = [antlir_dep(":shape")],
# Antlir users should not directly use `shape`, but we do use it
# as an implementation detail of "builder" / "publisher" targets.
antlir_rule = "user-internal",
**kwargs
)
return normalize_target(":" + name)
# Does a recursive (deep) copy of `val` which is expected to be of type
# `t` (in the `shape` sense of type compatibility).
#
# `opts` changes the output as follows:
#
# - Set `opts.include_dunder_shape == False` to strip `__shape__` from the
# resulting instance structs. This is desirable when serializing,
# because that field will e.g. fail with `struct.to_json()`.
#
# - `opts.on_target_fields` has 3 possible values:
#
# * "preserve": Leave the field as a `//target:path` string.
#
# * "fail": Fails at Buck parse-time. Used for scenarios that cannot
# reasonably support target -> buck output path resolution, like
# `shape.json_file()`. But, in the future, we should be able to
# migrate these to a `target_tagger.bzl`-style approach.
#
# * "uncacheable_location_macro"`, this will replace fields of
# type `Target` with a struct that has the target name and its on-disk
# path generated via a `$(location )` macro. This MUST NOT be
# included in cacheable Buck outputs.
def _recursive_copy_transform(val, t, opts):
if _is_shape(t):
error = _get_is_instance_error(val, t)
if error: # pragma: no cover -- an internal invariant, not a user error
fail(error)
new = {}
for name, field in t.fields.items():
new[name] = _recursive_copy_transform(
# The `_is_instance` above will ensure that `getattr` succeeds
getattr(val, name),
field,
opts,
)
if opts.include_dunder_shape:
if val.__shape__ != t: # pragma: no cover
fail("__shape__ {} didn't match type {}".format(
_pretty(val.__shape__),
_pretty(t),
))
new["__shape__"] = t
return struct(**new)
elif _is_field(t):
if t.optional and val == None:
return None
return _recursive_copy_transform(val, t.type, opts)
elif _is_collection(t):
if t.collection == dict:
return {
k: _recursive_copy_transform(v, t.item_type[1], opts)
for k, v in val.items()
}
elif t.collection == list:
return [
_recursive_copy_transform(v, t.item_type, opts)
for v in val
]
elif t.collection == tuple:
values_and_types, error = _values_and_types_for_tuple(val, t)
if error: # pragma: no cover
fail(error)
return [
_recursive_copy_transform(item_val, item_t, opts)
for (item_val, item_t) in values_and_types
]
# fall through to fail
elif _is_union(t):
matched_type, error = _find_union_type(val, t)
if error: # pragma: no cover
fail(error)
return _recursive_copy_transform(val, matched_type, opts)
elif t == "Target":
if opts.on_target_fields == "fail":
fail(_SERIALIZING_LOCATION_MSG)
elif opts.on_target_fields == "uncacheable_location_macro":
return struct(
name = val,
path = "$(location {})".format(val),
)
elif opts.on_target_fields == "preserve":
return val
fail(
# pragma: no cover
"Unknown on_target_fields: {}".format(opts.on_target_fields),
)
elif t == int or t == bool or t == str or t == "Path" or _is_enum(t):
return val
fail(
# pragma: no cover
"Unknown type {} for {}".format(_pretty(t), _pretty(val)),
)
def _safe_to_serialize_instance(instance):
return _recursive_copy_transform(
instance,
instance.__shape__,
struct(include_dunder_shape = False, on_target_fields = "fail"),
)
def _python_data(
name,
instance,
module = None,
classname = "shape",
**python_library_kwargs): # pragma: no cover
"""
Codegen a static shape data structure that can be directly 'import'ed by
Python. The object is available under the name "data". A common use case
is to call shape.python_data inline in a target's `deps`, with `module`
(defaults to `name`) then representing the name of the module that can be
imported in the underlying file.
Example usage:
```
python_binary(
name = provided_name,
deps = [
shape.python_data(
name = "bin_bzl_args",
instance = shape.new(
some_shape_t,
var = input_var,
),
),
],
...
)
```
can then be imported as:
from .bin_bzl_args import data
"""
shape = instance.__shape__
instance = _safe_to_serialize_instance(instance)
python_src = "from typing import *\nfrom antlir.shape import *\n"
python_src += "\n".join(_codegen_shape(shape, classname))
python_src += "\ndata = {classname}.parse_raw({shape_json})".format(
classname = classname,
shape_json = repr(instance.to_json()),
)
if not module:
module = name
buck_genrule(
name = "{}.py".format(name),
cmd = "echo {} >> $OUT".format(shell.quote(python_src)),
# Antlir users should not directly use `shape`, but we do use it
# as an implementation detail of "builder" / "publisher" targets.
antlir_rule = "user-internal",
)
python_library(
name = name,
srcs = {":{}.py".format(name): "{}.py".format(module)},
deps = [
antlir_dep(":shape"),
third_party.library("pydantic", platform = "python"),
],
# Antlir users should not directly use `shape`, but we do use it
# as an implementation detail of "builder" / "publisher" targets.
antlir_rule = "user-internal",
**python_library_kwargs
)
return normalize_target(":" + name)
def _json_file(name, instance, visibility = None): # pragma: no cover
"""
Serialize the given shape instance to a JSON file that can be used in the
`resources` section of a `python_binary` or a `$(location)` macro in a
`buck_genrule`.
Warning: this will fail to serialize any shape type that contains a
reference to a target location, as that cannot be safely cached by buck.
"""
instance = _safe_to_serialize_instance(instance).to_json()
buck_genrule(
name = name,
cmd = "echo {} > $OUT".format(shell.quote(instance)),
# Antlir users should not directly use `shape`, but we do use it
# as an implementation detail of "builder" / "publisher" targets.
antlir_rule = "user-internal",
visibility = visibility,
)
return normalize_target(":" + name)
def _do_not_cache_me_json(instance):
"""
Serialize the given shape instance to a JSON string, which is the only
way to safely refer to other Buck targets' locations in the case where
the binary being invoked with a certain shape instance is cached.
Warning: Do not ever put this into a target that can be cached, it should
only be used in cmdline args or environment variables.
"""
return _recursive_copy_transform(
instance,
instance.__shape__,
struct(
include_dunder_shape = False,
on_target_fields = "uncacheable_location_macro",
),
).to_json()
def _render_template(name, instance, template): # pragma: no cover
"""
Render the given Jinja2 template with the shape instance data to a file.
Warning: this will fail to serialize any shape type that contains a
reference to a target location, as that cannot be safely cached by buck.
"""
_json_file(name + "--data.json", instance)
buck_genrule(
name = name,
cmd = "$(exe {}-render) <$(location :{}--data.json) > $OUT".format(template, name),
antlir_rule = "user-internal",
)
return normalize_target(":" + name)
# Asserts that there are no "Buck target" in the shape. Contrast with
# `do_not_cache_me_json`.
#
# Converts a shape to a dict, as you would expected (field names are keys,
# values are scalars & collections as in the shape -- and nested shapes are
# also dicts).
def _as_serializable_dict(instance):
return structs.to_dict(_safe_to_serialize_instance(instance))
# Do not use this outside of `target_tagger.bzl`. Eventually, target tagger
# should be replaced by shape, so this is meant as a temporary shim.
#
# Unlike `as_serializable_dict`, does not fail on "Buck target" fields. Instead,
# these get represented as the target path (avoiding cacheability issues).
#
# target_tagger.bzl is the original form of matching target paths with their
# corresponding `$(location)`. Ideally, we should fold this functionality
# into shape. In the current implementation, it just needs to get the raw
# target path out of the shape, and nothing else.
def _as_dict_for_target_tagger(instance):
return structs.to_dict(_recursive_copy_transform(
instance,
instance.__shape__,
struct(
include_dunder_shape = False,
on_target_fields = "preserve",
),
))
# Returns True iff `instance` is a shape instance of any type.
def _is_any_instance(instance):
return structs.is_struct(instance) and hasattr(instance, "__shape__")
# Returns True iff `instance` is a `shape.new(shape, ...)`.
def _is_instance(instance, shape):
if not _is_shape(shape):
fail("Checking if {} is a shape instance, but {} is not a shape".format(
_pretty(instance),
_pretty(shape),
))
return (
structs.is_struct(instance) and
getattr(instance, "__shape__", None) == shape
)
# Converts `shape.new(foo_t, x='a', y=shape.new(bar_t, z=3))` to
# `{'x': 'a', 'y': shape.new(bar_t, z=3)}`.
#
# The primary use-case is unpacking a shape in order to construct a modified
# variant. E.g.
#
# def new_foo(a, b=3):
# if (a + b) % 1:
# fail("a + b must be even, got {} + {}".format(a, b))
# return shape.new(_foo_t, a=a, b=b, c=a+b)
#
# def modify_foo(foo, ... some overrides ...):
# d = shape.as_dict_shallow(instance)
# d.update(... some overrides ...)
# d.pop('c')
# return new_foo(**d)
#
# Notes:
# - This dict is NOT intended for serialization, since nested shape remain
# as shapes, and are not converted to `dict`.
# - There is no special treament for `shape.target` fields, they remain as
# `//target:path` strings.
# - `shape.new` is the mathematical inverse of `_as_dict_shallow`. On the
# other hand, we do not yet provide `_as_dict_deep`. The latter would
# NOT be invertible, since `shape` does not yet have a way of
# recursively converting nested dicts into nested shapes.
def _as_dict_shallow(instance):
return {
field: getattr(instance, field)
for field in instance.__shape__.fields
}
shape = struct(
shape = _shape,
new = _new_shape,
field = _field,
dict = _dict,
list = _list,
tuple = _tuple,
union = _union,
union_t = _union_type,
enum = _enum,
path = _path,
target = _target,
loader = _loader,
json_file = _json_file,
python_data = _python_data,
do_not_cache_me_json = _do_not_cache_me_json,
render_template = _render_template,
struct = struct,
# There is no vanilla "as_dict" because:
#
# (a) There are many different possible use-cases, and one size does
# not fit all. The variants below handle the existing uses, but
# there can be more. For example, if you want to mutate an
# existing shape, you currently cannot do that correctly without
# recursively constructing a new one. We would need to provide a
# proper recursive "new from dict" to allow that to happen.
#
# (b) It's usually the wrong tool for the job / a sign of tech debt.
# For example, it should be possible to convert all features to
# shape, and make target_tagger a first-class feature of shape.
# At that point, both of the below uses disappear.
as_dict_shallow = _as_dict_shallow,
as_dict_for_target_tagger = _as_dict_for_target_tagger,
as_serializable_dict = _as_serializable_dict,
is_instance = _is_instance,
is_any_instance = _is_any_instance,
pretty = _pretty,
)
| """
shape.bzl provides a convenient strongly-typed bridge from Buck bzl parse
time to Python runtime.
## Shape objects
Shape objects are immutable instances of a shape type, that have been
validated to match the shape type spec as described below.
## Shape Types
Shape types are a collection of strongly typed fields that can be validated
at Buck parse time (by `shape.new`) and at Python runtime (by `shape.loader`
implementations).
## Field Types
A shape field is a named member of a shape type. There are a variety of field
types available:
primitive types (bool, int, float, str)
other shapes
homogenous lists of a single `field` element type
dicts with homogenous key `field` types and homogenous `field` value type
heterogenous tuples with `field` element types
enums with string values
unions via shape.union(type1, type2, ...)
If using a union, use the most specific type first as Pydantic will attempt to
coerce to the types in the order listed
(see https://pydantic-docs.helpmanual.io/usage/types/#unions) for more info.
## Optional and Defaulted Fields
By default, fields are required to be set at instantiation time
(`shape.new`).
Fields declared with `shape.field(..., default='val')` do not have to be
instantiated explicitly.
Additionally, fields can be marked optional by using the `optional` kwarg in
`shape.field` (or any of the collection field types: `shape.list`,
`shape.tuple`, or `shape.dict`).
For example, `shape.field(int, optional=True)` denotes an integer field that
may or may not be set in a shape object.
Obviously, optional fields are still subject to the same type validation as
non-optional fields, but only if they have a non-None value.
## Loaders
`shape.loader` codegens a type-hinted Python library that is capable of
parsing and validating a shape object at runtime.
The return value of shape.loader is the fully-qualified name of the
`python_library` rule that contains the implementation of this loader.
## Serialization formats
shape.bzl provides two mechanisms to pass shape objects to Python runtime code.
`shape.json_file` dumps a shape object to an output file. This can be read
from a file or resource, using `read_resource` or `read_file` of the
generated loader class.
`shape.python_data` dumps a shape object to a raw python source file. This
is useful for some cases where a python_binary is expected to be fully
self-contained, but still require some build-time information. It is also
useful in cases when shapes are being dynamically generated based on inputs
to a macro. See the docblock of the function for an example.
## Naming Conventions
Shape types should be named with a suffix of '_t' to denote that it is a
shape type.
Shape instances should conform to whatever convention is used where they are
declared (usually snake_case variables).
## Example usage
Inspired by `image_actions/mount.bzl`:
```
mount_t = shape.shape(
mount_config=shape.shape(
build_source=shape.shape(
source=str,
type=str,
),
default_mountpoint=str,
is_directory=bool,
),
mountpoint = shape.field(str, optional=True),
target = shape.field(str, optional=True),
)
mount = shape.new(
mount_t,
mount_config=shape.new(
mount.mount_config,
build_source=shape.new(
mount.mount_config.build_source,
source="/etc/fbwhoami",
type="host",
),
default_mountpoint="/etc/fbwhoami",
is_directory=False,
),
)
```
See tests/shape_test.bzl for full example usage and selftests.
"""
load('@bazel_skylib//lib:shell.bzl', 'shell')
load('@bazel_skylib//lib:types.bzl', 'types')
load(':oss_shim.bzl', 'buck_genrule', 'python_library', 'target_utils', 'third_party')
load(':sha256.bzl', 'sha256_b64')
load(':structs.bzl', 'structs')
load(':target_helpers.bzl', 'antlir_dep', 'normalize_target')
_serializing_location_msg = 'shapes with layer/target fields cannot safely be serialized in the' + ' output of a buck target.\n' + 'For buck_genrule uses, consider passing an argument with the (shell quoted)' + " result of 'shape.do_not_cache_me_json'\n" + 'For unit tests, consider setting an environment variable with the same' + ' JSON string'
_no_default = struct(no_default=True)
def _python_type(t):
if t == int:
return 'int'
if t == bool:
return 'bool'
if t == str:
return 'str'
if _is_collection(t):
if t.collection == dict:
(k, v) = t.item_type
return 'Mapping[{}, {}]'.format(_python_type(k), _python_type(v))
if t.collection == list:
return 'Tuple[{}, ...]'.format(_python_type(t.item_type))
if t.collection == tuple:
return 'Tuple[{}]'.format(', '.join([_python_type(x) for x in t.item_type]))
if _is_enum(t):
return '_'.join([str(v.capitalize()) for v in t.enum])
if _is_field(t):
python_type = _python_type(t.type)
if t.optional:
python_type = 'Optional[{}]'.format(python_type)
return python_type
if _is_shape(t):
return '_' + sha256_b64(str({key: _python_type(field) for (key, field) in t.fields.items()})).replace('-', '_')
if _is_union(t):
type_names = [_python_type(union_t) for union_t in t.union_types]
return 'Union[{}]'.format(', '.join(type_names))
if types.is_string(t):
return t
fail('unknown type {}'.format(t))
def _pretty(x):
return structs.to_dict(x) if structs.is_struct(x) else x
def _get_is_instance_error(val, t):
if not _is_instance(val, t):
return ('{} is not an instance of {} -- note that structs & dicts ' + 'are NOT currently automatically promoted to shape').format(_pretty(val), _pretty(t))
return None
def _check_type(x, t):
"""Check that x is an instance of t.
This is a little more complicated than `isinstance(x, t)`, and supports
more use cases. _check_type handles primitive types (bool, int, str),
shapes and collections (dict, list, tuple).
Return: None if successful, otherwise a str to be passed to `fail` at a
site that has more context for the user
"""
if t == int:
if types.is_int(x):
return None
return 'expected int, got {}'.format(x)
if t == bool:
if types.is_bool(x):
return None
return 'expected bool, got {}'.format(x)
if t == str:
if types.is_string(x):
return None
return 'expected str, got {}'.format(x)
if _is_enum(t):
if x in t.enum:
return None
return 'expected one of {}, got {}'.format(t.enum, x)
if t == 'Path':
return _check_type(x, str)
if t == 'Target':
type_error = _check_type(x, str)
if not type_error:
if target_utils.parse_target(x):
return None
else:
return type_error
if _is_field(t):
if t.optional and x == None:
return None
return _check_type(x, t.type)
if _is_shape(t):
return _get_is_instance_error(x, t)
if _is_collection(t):
return _check_collection_type(x, t)
if _is_union(t):
(_matched_type, error) = _find_union_type(x, t)
return error
return 'unsupported type {}'.format(t)
def _find_union_type(x, t):
type_errors = []
for union_t in t.union_types:
type_error = _check_type(x, union_t)
if type_error == None:
return (union_t, None)
type_errors.append(type_error)
return (None, '{} not matched in union {}: {}'.format(x, t.union_types, '; '.join(type_errors)))
def _values_and_types_for_tuple(x, t):
if not _is_collection(t) or t.collection != tuple:
fail('{} is not a tuple type (value {})'.format(_pretty(t), _pretty(x)))
if not types.is_list(x) and (not types.is_tuple(x)):
return (None, '{} is not tuple'.format(x))
if len(x) != len(t.item_type):
return (None, 'length of {} does not match {}'.format(_pretty(x), _pretty(t.item_type)))
values_and_types = list(zip(x, t.item_type))
for (i, (val, item_type)) in enumerate(values_and_types):
type_error = _check_type(val, item_type)
if type_error:
return (None, 'item {}: {}'.format(i, type_error))
return (values_and_types, None)
def _check_collection_type(x, t):
if t.collection == dict:
if not types.is_dict(x):
return '{} is not dict'.format(x)
(key_type, val_type) = t.item_type
for (key, val) in x.items():
key_type_error = _check_type(key, key_type)
if key_type_error:
return 'key: ' + key_type_error
val_type_error = _check_type(val, val_type)
if val_type_error:
return 'val: ' + val_type_error
return None
if t.collection == list:
if not types.is_list(x) and (not types.is_tuple(x)):
return '{} is not list'.format(x)
for (i, val) in enumerate(x):
type_error = _check_type(val, t.item_type)
if type_error:
return 'item {}: {}'.format(i, type_error)
return None
if t.collection == tuple:
(_values_and_types, error) = _values_and_types_for_tuple(x, t)
return error
return 'unsupported collection type {}'.format(t.collection)
def _shapes_for_field(field_or_type):
src = []
if _is_field(field_or_type):
field = field_or_type
if _is_shape(field.type):
src.extend(_codegen_shape(field.type))
if _is_collection(field.type):
item_types = []
if types.is_list(field.type.item_type) or types.is_tuple(field.type.item_type):
item_types = list(field.type.item_type)
else:
item_types = [field.type.item_type]
for t in item_types:
src.extend(_shapes_for_field(t))
if _is_enum(field.type):
src.extend(_codegen_enum(field.type))
elif _is_shape(field_or_type):
src.extend(_codegen_shape(field_or_type))
return src
def _codegen_field(name, field):
src = []
python_type = _python_type(field)
src.extend(_shapes_for_field(field))
if field.default == _NO_DEFAULT:
src.append('{}: {}'.format(name, python_type))
else:
default_repr = repr(field.default)
if structs.is_struct(field.default):
default_repr = '{}(**{})'.format(python_type, repr(_as_serializable_dict(field.default)))
src.append('{}: {} = {}'.format(name, python_type, default_repr))
return src
def _codegen_shape(shape, classname=None):
if classname == None:
classname = _python_type(shape)
src = ['class {}(Shape):'.format(classname), ' __GENERATED_SHAPE__ = True']
for (name, field) in shape.fields.items():
src.extend([' ' + line for line in _codegen_field(name, field)])
return src
def _codegen_enum(enum):
classname = _python_type(enum)
src = ['class {}(Enum):'.format(classname)]
src.extend([' {} = {}'.format(value.upper(), repr(value)) for value in enum.enum])
return src
def _field(type, optional=False, default=_NO_DEFAULT):
if optional and default == _NO_DEFAULT:
default = None
return struct(type=type, optional=optional, default=default)
def _is_field(x):
return structs.is_struct(x) and sorted(structs.to_dict(x).keys()) == sorted(['type', 'optional', 'default'])
def _dict(key_type, val_type, **field_kwargs):
return _field(type=struct(collection=dict, item_type=(key_type, val_type)), **field_kwargs)
def _list(item_type, **field_kwargs):
return _field(type=struct(collection=list, item_type=item_type), **field_kwargs)
def _tuple(*item_types, **field_kwargs):
return _field(type=struct(collection=tuple, item_type=item_types), **field_kwargs)
def _is_collection(x):
return structs.is_struct(x) and sorted(structs.to_dict(x).keys()) == sorted(['collection', 'item_type'])
def _is_union(x):
return structs.is_struct(x) and sorted(structs.to_dict(x).keys()) == sorted(['union_types'])
def _union_type(*union_types):
"""
Define a new union type that can be used when defining a field. Most
useful when a union type is meant to be typedef'd and reused. To define
a shape field directly, see shape.union.
Example usage:
```
mode_t = shape.union_t(int, str) # could be 0o644 or "a+rw"
type_a = shape.shape(mode=mode_t)
type_b = shape.shape(mode=shape.field(mode_t, optional=True))
```
"""
if len(union_types) == 0:
fail('union must specify at one type')
return struct(union_types=union_types)
def _union(*union_types, **field_kwargs):
return _field(type=_union_type(*union_types), **field_kwargs)
def _enum(*values, **field_kwargs):
for val in values:
if not types.is_string(val):
fail('all enum values must be strings, got {}'.format(_pretty(val)))
return _field(type=struct(enum=tuple(values)), **field_kwargs)
def _is_enum(t):
return structs.is_struct(t) and sorted(structs.to_dict(t).keys()) == sorted(['enum'])
def _path(**field_kwargs):
return _field(type='Path', **field_kwargs)
def _target(**field_kwargs):
return _field(type='Target', **field_kwargs)
def _shape(**fields):
"""
Define a new shape type with the fields as given by the kwargs.
Example usage:
```
shape.shape(hello=str)
```
"""
for (name, f) in fields.items():
if name.startswith('_'):
fail('Shape field name {} must not start with _: {}'.format(name, _pretty(fields)))
if not hasattr(f, 'type') or _is_union(f):
fields[name] = _field(f)
return struct(fields=fields, **{key: f.type for (key, f) in fields.items()})
def _is_shape(x):
if not structs.is_struct(x):
return False
if not hasattr(x, 'fields'):
return False
return sorted(structs.to_dict(x).keys()) == sorted(['fields'] + list(x.fields.keys()))
def _shape_defaults_dict(shape):
defaults = {}
for (key, field) in shape.fields.items():
if field.default != _NO_DEFAULT:
defaults[key] = field.default
return defaults
def _new_shape(shape, **fields):
"""
Type check and instantiate a struct of the given shape type using the
values from the **fields kwargs.
Example usage:
```
example_t = shape.shape(hello=str)
example = shape.new(example_t, hello="world")
```
"""
with_defaults = _shape_defaults_dict(shape)
with_defaults.update(fields)
for (field, value) in fields.items():
if field not in shape.fields:
fail('field `{}` is not defined in the shape'.format(field))
error = _check_type(value, shape.fields[field])
if error:
fail(error)
return struct(__shape__=shape, **with_defaults)
def _loader(name, shape, classname='shape', **kwargs):
"""codegen a fully type-hinted python source file to load the given shape"""
if not _is_shape(shape):
fail('expected shape type, got {}'.format(shape))
python_src = 'from typing import *\nfrom antlir.shape import *\n'
python_src += '\n'.join(_codegen_shape(shape, classname))
buck_genrule(name='{}.py'.format(name), cmd='echo {} > $OUT'.format(shell.quote(python_src)), antlir_rule='user-internal')
python_library(name=name, srcs={':{}.py'.format(name): '{}.py'.format(name)}, deps=[antlir_dep(':shape')], antlir_rule='user-internal', **kwargs)
return normalize_target(':' + name)
def _recursive_copy_transform(val, t, opts):
if _is_shape(t):
error = _get_is_instance_error(val, t)
if error:
fail(error)
new = {}
for (name, field) in t.fields.items():
new[name] = _recursive_copy_transform(getattr(val, name), field, opts)
if opts.include_dunder_shape:
if val.__shape__ != t:
fail("__shape__ {} didn't match type {}".format(_pretty(val.__shape__), _pretty(t)))
new['__shape__'] = t
return struct(**new)
elif _is_field(t):
if t.optional and val == None:
return None
return _recursive_copy_transform(val, t.type, opts)
elif _is_collection(t):
if t.collection == dict:
return {k: _recursive_copy_transform(v, t.item_type[1], opts) for (k, v) in val.items()}
elif t.collection == list:
return [_recursive_copy_transform(v, t.item_type, opts) for v in val]
elif t.collection == tuple:
(values_and_types, error) = _values_and_types_for_tuple(val, t)
if error:
fail(error)
return [_recursive_copy_transform(item_val, item_t, opts) for (item_val, item_t) in values_and_types]
elif _is_union(t):
(matched_type, error) = _find_union_type(val, t)
if error:
fail(error)
return _recursive_copy_transform(val, matched_type, opts)
elif t == 'Target':
if opts.on_target_fields == 'fail':
fail(_SERIALIZING_LOCATION_MSG)
elif opts.on_target_fields == 'uncacheable_location_macro':
return struct(name=val, path='$(location {})'.format(val))
elif opts.on_target_fields == 'preserve':
return val
fail('Unknown on_target_fields: {}'.format(opts.on_target_fields))
elif t == int or t == bool or t == str or (t == 'Path') or _is_enum(t):
return val
fail('Unknown type {} for {}'.format(_pretty(t), _pretty(val)))
def _safe_to_serialize_instance(instance):
return _recursive_copy_transform(instance, instance.__shape__, struct(include_dunder_shape=False, on_target_fields='fail'))
def _python_data(name, instance, module=None, classname='shape', **python_library_kwargs):
"""
Codegen a static shape data structure that can be directly 'import'ed by
Python. The object is available under the name "data". A common use case
is to call shape.python_data inline in a target's `deps`, with `module`
(defaults to `name`) then representing the name of the module that can be
imported in the underlying file.
Example usage:
```
python_binary(
name = provided_name,
deps = [
shape.python_data(
name = "bin_bzl_args",
instance = shape.new(
some_shape_t,
var = input_var,
),
),
],
...
)
```
can then be imported as:
from .bin_bzl_args import data
"""
shape = instance.__shape__
instance = _safe_to_serialize_instance(instance)
python_src = 'from typing import *\nfrom antlir.shape import *\n'
python_src += '\n'.join(_codegen_shape(shape, classname))
python_src += '\ndata = {classname}.parse_raw({shape_json})'.format(classname=classname, shape_json=repr(instance.to_json()))
if not module:
module = name
buck_genrule(name='{}.py'.format(name), cmd='echo {} >> $OUT'.format(shell.quote(python_src)), antlir_rule='user-internal')
python_library(name=name, srcs={':{}.py'.format(name): '{}.py'.format(module)}, deps=[antlir_dep(':shape'), third_party.library('pydantic', platform='python')], antlir_rule='user-internal', **python_library_kwargs)
return normalize_target(':' + name)
def _json_file(name, instance, visibility=None):
"""
Serialize the given shape instance to a JSON file that can be used in the
`resources` section of a `python_binary` or a `$(location)` macro in a
`buck_genrule`.
Warning: this will fail to serialize any shape type that contains a
reference to a target location, as that cannot be safely cached by buck.
"""
instance = _safe_to_serialize_instance(instance).to_json()
buck_genrule(name=name, cmd='echo {} > $OUT'.format(shell.quote(instance)), antlir_rule='user-internal', visibility=visibility)
return normalize_target(':' + name)
def _do_not_cache_me_json(instance):
"""
Serialize the given shape instance to a JSON string, which is the only
way to safely refer to other Buck targets' locations in the case where
the binary being invoked with a certain shape instance is cached.
Warning: Do not ever put this into a target that can be cached, it should
only be used in cmdline args or environment variables.
"""
return _recursive_copy_transform(instance, instance.__shape__, struct(include_dunder_shape=False, on_target_fields='uncacheable_location_macro')).to_json()
def _render_template(name, instance, template):
"""
Render the given Jinja2 template with the shape instance data to a file.
Warning: this will fail to serialize any shape type that contains a
reference to a target location, as that cannot be safely cached by buck.
"""
_json_file(name + '--data.json', instance)
buck_genrule(name=name, cmd='$(exe {}-render) <$(location :{}--data.json) > $OUT'.format(template, name), antlir_rule='user-internal')
return normalize_target(':' + name)
def _as_serializable_dict(instance):
return structs.to_dict(_safe_to_serialize_instance(instance))
def _as_dict_for_target_tagger(instance):
return structs.to_dict(_recursive_copy_transform(instance, instance.__shape__, struct(include_dunder_shape=False, on_target_fields='preserve')))
def _is_any_instance(instance):
return structs.is_struct(instance) and hasattr(instance, '__shape__')
def _is_instance(instance, shape):
if not _is_shape(shape):
fail('Checking if {} is a shape instance, but {} is not a shape'.format(_pretty(instance), _pretty(shape)))
return structs.is_struct(instance) and getattr(instance, '__shape__', None) == shape
def _as_dict_shallow(instance):
return {field: getattr(instance, field) for field in instance.__shape__.fields}
shape = struct(shape=_shape, new=_new_shape, field=_field, dict=_dict, list=_list, tuple=_tuple, union=_union, union_t=_union_type, enum=_enum, path=_path, target=_target, loader=_loader, json_file=_json_file, python_data=_python_data, do_not_cache_me_json=_do_not_cache_me_json, render_template=_render_template, struct=struct, as_dict_shallow=_as_dict_shallow, as_dict_for_target_tagger=_as_dict_for_target_tagger, as_serializable_dict=_as_serializable_dict, is_instance=_is_instance, is_any_instance=_is_any_instance, pretty=_pretty) |
h = input()
j = int(h)**2
kl = h[::-1]
kll = int(kl)**2
h1 = str(kll)[::-1]
if str(j) == h1:
print("Adam number")
else:
print("Yeet") | h = input()
j = int(h) ** 2
kl = h[::-1]
kll = int(kl) ** 2
h1 = str(kll)[::-1]
if str(j) == h1:
print('Adam number')
else:
print('Yeet') |
# Copyright (c) 2017, Softbank Robotics Europe
# 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.
# List of known Softbank Robotics device models
device_model_list=[
"SOFTBANK_ROBOTICS__NAO_T2_V32",
"SOFTBANK_ROBOTICS__NAO_T2_V33",
"SOFTBANK_ROBOTICS__NAO_T2_V40",
"SOFTBANK_ROBOTICS__NAO_T2_V50",
"SOFTBANK_ROBOTICS__NAO_T14_V32",
"SOFTBANK_ROBOTICS__NAO_T14_V33",
"SOFTBANK_ROBOTICS__NAO_T14_V40",
"SOFTBANK_ROBOTICS__NAO_T14_V50",
"SOFTBANK_ROBOTICS__NAO_H21_V32",
"SOFTBANK_ROBOTICS__NAO_H21_V33",
"SOFTBANK_ROBOTICS__NAO_H21_V40",
"SOFTBANK_ROBOTICS__NAO_H21_V50",
"SOFTBANK_ROBOTICS__NAO_H25_V32",
"SOFTBANK_ROBOTICS__NAO_H25_V33",
"SOFTBANK_ROBOTICS__NAO_H25_V40",
"SOFTBANK_ROBOTICS__NAO_H25_V50",
"SOFTBANK_ROBOTICS__PEPPER_V17",
"SOFTBANK_ROBOTICS__PEPPER_V18",
] | device_model_list = ['SOFTBANK_ROBOTICS__NAO_T2_V32', 'SOFTBANK_ROBOTICS__NAO_T2_V33', 'SOFTBANK_ROBOTICS__NAO_T2_V40', 'SOFTBANK_ROBOTICS__NAO_T2_V50', 'SOFTBANK_ROBOTICS__NAO_T14_V32', 'SOFTBANK_ROBOTICS__NAO_T14_V33', 'SOFTBANK_ROBOTICS__NAO_T14_V40', 'SOFTBANK_ROBOTICS__NAO_T14_V50', 'SOFTBANK_ROBOTICS__NAO_H21_V32', 'SOFTBANK_ROBOTICS__NAO_H21_V33', 'SOFTBANK_ROBOTICS__NAO_H21_V40', 'SOFTBANK_ROBOTICS__NAO_H21_V50', 'SOFTBANK_ROBOTICS__NAO_H25_V32', 'SOFTBANK_ROBOTICS__NAO_H25_V33', 'SOFTBANK_ROBOTICS__NAO_H25_V40', 'SOFTBANK_ROBOTICS__NAO_H25_V50', 'SOFTBANK_ROBOTICS__PEPPER_V17', 'SOFTBANK_ROBOTICS__PEPPER_V18'] |
class PenHandler:
EAST_DEGREES = 0
NORTH_DEGREES = 90
WEST_DEGREES = 180
SOUTH_DEGREES = 270
DRAW_MULTIPLIER = 50
def __init__(self):
self.pens = {}
self.pen_current = None
self.pen_active = False
def draw(self, distance, degrees):
if not self.pen_active:
return
self.pen_current.setheading(degrees)
self.pen_current.forward(distance * self.DRAW_MULTIPLIER)
| class Penhandler:
east_degrees = 0
north_degrees = 90
west_degrees = 180
south_degrees = 270
draw_multiplier = 50
def __init__(self):
self.pens = {}
self.pen_current = None
self.pen_active = False
def draw(self, distance, degrees):
if not self.pen_active:
return
self.pen_current.setheading(degrees)
self.pen_current.forward(distance * self.DRAW_MULTIPLIER) |
load("@scala_things//:dependencies/dependencies.bzl", "java_dependency", "scala_dependency", "scala_fullver_dependency", "make_scala_versions", "apply_scala_version", "apply_scala_fullver_version")
load("@rules_jvm_external//:defs.bzl", "maven_install")
scala_versions = make_scala_versions(
"2",
"13",
"6",
)
grpc_version = "1.42.1"
project_deps = [
# gen
scala_dependency("com.thesamet.scalapb", "compilerplugin", "0.11.6"),
scala_dependency("com.thesamet.scalapb", "protoc-gen", "0.9.3"),
java_dependency("io.grpc", "grpc-stub", grpc_version),
java_dependency("io.grpc", "grpc-protobuf", grpc_version),
java_dependency("io.grpc", "grpc-netty", grpc_version),
java_dependency("io.grpc", "grpc-netty-shaded", grpc_version),
java_dependency("io.grpc", "grpc-services", grpc_version),
java_dependency("io.grpc", "protoc-gen-grpc-java", grpc_version),
scala_dependency("com.thesamet.scalapb", "scalapb-runtime", "0.11.6"),
scala_dependency("com.thesamet.scalapb", "scalapb-runtime-grpc", "0.11.6"),
# usage
scala_dependency("org.typelevel", "cats-effect", "3.2.9"),
java_dependency("io.grpc", "grpc-netty-shaded", grpc_version),
scala_dependency("co.fs2", "fs2-core", "3.1.2"),
scala_dependency("org.typelevel", "fs2-grpc-runtime", "2.3.0"),
]
def add_scala_fullver(s):
return apply_scala_fullver_version(scala_versions, s)
proto_lib_deps = [
"@maven//:org_typelevel_cats_core_2_13",
"@maven//:org_typelevel_cats_effect_2_13",
"@maven//:org_typelevel_cats_effect_kernel_2_13",
"@maven//:org_typelevel_cats_effect_std_2_13",
"@maven//:org_typelevel_cats_kernel_2_13",
"@maven//:co_fs2_fs2_core_2_13",
]
| load('@scala_things//:dependencies/dependencies.bzl', 'java_dependency', 'scala_dependency', 'scala_fullver_dependency', 'make_scala_versions', 'apply_scala_version', 'apply_scala_fullver_version')
load('@rules_jvm_external//:defs.bzl', 'maven_install')
scala_versions = make_scala_versions('2', '13', '6')
grpc_version = '1.42.1'
project_deps = [scala_dependency('com.thesamet.scalapb', 'compilerplugin', '0.11.6'), scala_dependency('com.thesamet.scalapb', 'protoc-gen', '0.9.3'), java_dependency('io.grpc', 'grpc-stub', grpc_version), java_dependency('io.grpc', 'grpc-protobuf', grpc_version), java_dependency('io.grpc', 'grpc-netty', grpc_version), java_dependency('io.grpc', 'grpc-netty-shaded', grpc_version), java_dependency('io.grpc', 'grpc-services', grpc_version), java_dependency('io.grpc', 'protoc-gen-grpc-java', grpc_version), scala_dependency('com.thesamet.scalapb', 'scalapb-runtime', '0.11.6'), scala_dependency('com.thesamet.scalapb', 'scalapb-runtime-grpc', '0.11.6'), scala_dependency('org.typelevel', 'cats-effect', '3.2.9'), java_dependency('io.grpc', 'grpc-netty-shaded', grpc_version), scala_dependency('co.fs2', 'fs2-core', '3.1.2'), scala_dependency('org.typelevel', 'fs2-grpc-runtime', '2.3.0')]
def add_scala_fullver(s):
return apply_scala_fullver_version(scala_versions, s)
proto_lib_deps = ['@maven//:org_typelevel_cats_core_2_13', '@maven//:org_typelevel_cats_effect_2_13', '@maven//:org_typelevel_cats_effect_kernel_2_13', '@maven//:org_typelevel_cats_effect_std_2_13', '@maven//:org_typelevel_cats_kernel_2_13', '@maven//:co_fs2_fs2_core_2_13'] |
def same_structure_as(original, other):
if not type(original) == type(other):
return False
if not len(original) == len(other):
return False
def get_structure(lis, struct=[]):
for i in range(len(lis)):
if type(lis[i]) == list:
struct.append(str(i) + ': yes')
get_structure(lis[i], struct)
else:
struct.append(i)
return struct
return get_structure(original, []) == get_structure(other, [])
if __name__ == '__main__':
print(same_structure_as([1, 1, 1], [2, 2, 2]))
print(same_structure_as([1, [1, 1]], [2, [2, 2]]))
print(same_structure_as([1, [1, 1]], [[2, 2], 2]))
print(same_structure_as([1, [1, 1]], [2, [2]]))
print(same_structure_as([[[], []]], [[[], []]]))
print(same_structure_as([[[], []]], [[1, 1]]))
print(same_structure_as([1, [[[1]]]], [2, [[[2]]]]))
print(same_structure_as([], 1))
print(same_structure_as([], {}))
print(same_structure_as([1, '[', ']'], ['[', ']', 1]))
| def same_structure_as(original, other):
if not type(original) == type(other):
return False
if not len(original) == len(other):
return False
def get_structure(lis, struct=[]):
for i in range(len(lis)):
if type(lis[i]) == list:
struct.append(str(i) + ': yes')
get_structure(lis[i], struct)
else:
struct.append(i)
return struct
return get_structure(original, []) == get_structure(other, [])
if __name__ == '__main__':
print(same_structure_as([1, 1, 1], [2, 2, 2]))
print(same_structure_as([1, [1, 1]], [2, [2, 2]]))
print(same_structure_as([1, [1, 1]], [[2, 2], 2]))
print(same_structure_as([1, [1, 1]], [2, [2]]))
print(same_structure_as([[[], []]], [[[], []]]))
print(same_structure_as([[[], []]], [[1, 1]]))
print(same_structure_as([1, [[[1]]]], [2, [[[2]]]]))
print(same_structure_as([], 1))
print(same_structure_as([], {}))
print(same_structure_as([1, '[', ']'], ['[', ']', 1])) |
ENDPOINTS = {
'auction': '/auctions/{auction_id}',
'contract': '/auctions/{auction_id}/contracts/{contract_id}',
'contracts': '/auctions/{auction_id}/contracts',
'item': '/auctions/{auction_id}/items/{item_id}',
'items': '/auctions/{auction_id}/items',
}
| endpoints = {'auction': '/auctions/{auction_id}', 'contract': '/auctions/{auction_id}/contracts/{contract_id}', 'contracts': '/auctions/{auction_id}/contracts', 'item': '/auctions/{auction_id}/items/{item_id}', 'items': '/auctions/{auction_id}/items'} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.