content stringlengths 7 1.05M |
|---|
#
# PySNMP MIB module OMNI-gx2EDFA-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OMNI-gx2EDFA-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:24:00 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")
ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion")
gx2EDFA, = mibBuilder.importSymbols("GX2HFC-MIB", "gx2EDFA")
motproxies, gi = mibBuilder.importSymbols("NLS-BBNIDENT-MIB", "motproxies", "gi")
trapChangedObjectId, trapPerceivedSeverity, trapNetworkElemOperState, trapNetworkElemAdminState, trapNetworkElemAlarmStatus, trapText, trapNETrapLastTrapTimeStamp, trapIdentifier, trapNetworkElemSerialNum, trapChangedValueInteger, trapChangedValueDisplayString, trapNetworkElemAvailStatus, trapNetworkElemModelNumber = mibBuilder.importSymbols("NLSBBN-TRAPS-MIB", "trapChangedObjectId", "trapPerceivedSeverity", "trapNetworkElemOperState", "trapNetworkElemAdminState", "trapNetworkElemAlarmStatus", "trapText", "trapNETrapLastTrapTimeStamp", "trapIdentifier", "trapNetworkElemSerialNum", "trapChangedValueInteger", "trapChangedValueDisplayString", "trapNetworkElemAvailStatus", "trapNetworkElemModelNumber")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
sysUpTime, = mibBuilder.importSymbols("SNMPv2-MIB", "sysUpTime")
MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, Counter64, Unsigned32, TimeTicks, Counter32, IpAddress, MibIdentifier, iso, ModuleIdentity, Bits, NotificationType, ObjectIdentity, Integer32, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "Counter64", "Unsigned32", "TimeTicks", "Counter32", "IpAddress", "MibIdentifier", "iso", "ModuleIdentity", "Bits", "NotificationType", "ObjectIdentity", "Integer32", "NotificationType")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
class Float(Counter32):
pass
gx2EDFADescriptor = MibIdentifier((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 1))
gx2EDFAAnalogTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2), )
if mibBuilder.loadTexts: gx2EDFAAnalogTable.setStatus('mandatory')
gx2EDFAAnalogEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1), ).setIndexNames((0, "OMNI-gx2EDFA-MIB", "edfagx2EDFAAnalogTableIndex"))
if mibBuilder.loadTexts: gx2EDFAAnalogEntry.setStatus('mandatory')
gx2EDFADigitalTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3), )
if mibBuilder.loadTexts: gx2EDFADigitalTable.setStatus('mandatory')
gx2EDFADigitalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2), ).setIndexNames((0, "OMNI-gx2EDFA-MIB", "edfagx2EDFADigitalTableIndex"))
if mibBuilder.loadTexts: gx2EDFADigitalEntry.setStatus('mandatory')
gx2EDFAStatusTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4), )
if mibBuilder.loadTexts: gx2EDFAStatusTable.setStatus('mandatory')
gx2EDFAStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3), ).setIndexNames((0, "OMNI-gx2EDFA-MIB", "edfagx2EDFAStatusTableIndex"))
if mibBuilder.loadTexts: gx2EDFAStatusEntry.setStatus('mandatory')
gx2EDFAFactoryTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5), )
if mibBuilder.loadTexts: gx2EDFAFactoryTable.setStatus('mandatory')
gx2EDFAFactoryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4), ).setIndexNames((0, "OMNI-gx2EDFA-MIB", "edfagx2EDFAFactoryTableIndex"))
if mibBuilder.loadTexts: gx2EDFAFactoryEntry.setStatus('mandatory')
gx2EDFAHoldTimeTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6), )
if mibBuilder.loadTexts: gx2EDFAHoldTimeTable.setStatus('mandatory')
gx2EDFAHoldTimeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6, 5), ).setIndexNames((0, "OMNI-gx2EDFA-MIB", "gx2EDFAHoldTimeTableIndex"), (0, "OMNI-gx2EDFA-MIB", "gx2EDFAHoldTimeSpecIndex"))
if mibBuilder.loadTexts: gx2EDFAHoldTimeEntry.setStatus('mandatory')
edfagx2EDFAAnalogTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfagx2EDFAAnalogTableIndex.setStatus('mandatory')
edfalabelModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelModTemp.setStatus('optional')
edfauomModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomModTemp.setStatus('optional')
edfamajorHighModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 4), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighModTemp.setStatus('mandatory')
edfamajorLowModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 5), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowModTemp.setStatus('mandatory')
edfaminorHighModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 6), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighModTemp.setStatus('mandatory')
edfaminorLowModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 7), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowModTemp.setStatus('mandatory')
edfacurrentValueModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 8), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueModTemp.setStatus('mandatory')
edfastateFlagModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagModTemp.setStatus('mandatory')
edfaminValueModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 10), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueModTemp.setStatus('mandatory')
edfamaxValueModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 11), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueModTemp.setStatus('mandatory')
edfaalarmStateModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateModTemp.setStatus('mandatory')
edfalabelOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelOptInPower.setStatus('optional')
edfauomOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomOptInPower.setStatus('optional')
edfamajorHighOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 15), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighOptInPower.setStatus('mandatory')
edfamajorLowOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 16), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowOptInPower.setStatus('mandatory')
edfaminorHighOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 17), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighOptInPower.setStatus('mandatory')
edfaminorLowOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 18), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowOptInPower.setStatus('mandatory')
edfacurrentValueOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 19), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueOptInPower.setStatus('mandatory')
edfastateFlagOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagOptInPower.setStatus('mandatory')
edfaminValueOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 21), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueOptInPower.setStatus('mandatory')
edfamaxValueOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 22), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueOptInPower.setStatus('mandatory')
edfaalarmStateOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateOptInPower.setStatus('mandatory')
edfalabelOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 24), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelOptOutPower.setStatus('optional')
edfauomOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 25), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomOptOutPower.setStatus('optional')
edfamajorHighOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 26), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighOptOutPower.setStatus('mandatory')
edfamajorLowOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 27), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowOptOutPower.setStatus('mandatory')
edfaminorHighOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 28), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighOptOutPower.setStatus('mandatory')
edfaminorLowOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 29), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowOptOutPower.setStatus('mandatory')
edfacurrentValueOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 30), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueOptOutPower.setStatus('mandatory')
edfastateFlagOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagOptOutPower.setStatus('mandatory')
edfaminValueOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 32), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueOptOutPower.setStatus('mandatory')
edfamaxValueOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 33), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueOptOutPower.setStatus('mandatory')
edfaalarmStateOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateOptOutPower.setStatus('mandatory')
edfalabelTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 35), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelTECTemp.setStatus('optional')
edfauomTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 36), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomTECTemp.setStatus('optional')
edfamajorHighTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 37), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighTECTemp.setStatus('mandatory')
edfamajorLowTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 38), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowTECTemp.setStatus('mandatory')
edfaminorHighTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 39), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighTECTemp.setStatus('mandatory')
edfaminorLowTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 40), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowTECTemp.setStatus('mandatory')
edfacurrentValueTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 41), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueTECTemp.setStatus('mandatory')
edfastateFlagTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagTECTemp.setStatus('mandatory')
edfaminValueTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 43), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueTECTemp.setStatus('mandatory')
edfamaxValueTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 44), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueTECTemp.setStatus('mandatory')
edfaalarmStateTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 45), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateTECTemp.setStatus('mandatory')
edfalabelTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 46), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelTECCurrent.setStatus('optional')
edfauomTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 47), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomTECCurrent.setStatus('optional')
edfamajorHighTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 48), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighTECCurrent.setStatus('mandatory')
edfamajorLowTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 49), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowTECCurrent.setStatus('mandatory')
edfaminorHighTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 50), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighTECCurrent.setStatus('mandatory')
edfaminorLowTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 51), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowTECCurrent.setStatus('mandatory')
edfacurrentValueTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 52), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueTECCurrent.setStatus('mandatory')
edfastateFlagTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 53), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagTECCurrent.setStatus('mandatory')
edfaminValueTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 54), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueTECCurrent.setStatus('mandatory')
edfamaxValueTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 55), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueTECCurrent.setStatus('mandatory')
edfaalarmStateTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 56), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateTECCurrent.setStatus('mandatory')
edfalabelLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 57), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelLaserCurrent.setStatus('optional')
edfauomLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 58), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomLaserCurrent.setStatus('optional')
edfamajorHighLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 59), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighLaserCurrent.setStatus('mandatory')
edfamajorLowLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 60), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowLaserCurrent.setStatus('mandatory')
edfaminorHighLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 61), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighLaserCurrent.setStatus('mandatory')
edfaminorLowLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 62), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowLaserCurrent.setStatus('mandatory')
edfacurrentValueLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 63), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueLaserCurrent.setStatus('mandatory')
edfastateFlagLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 64), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagLaserCurrent.setStatus('mandatory')
edfaminValueLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 65), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueLaserCurrent.setStatus('mandatory')
edfamaxValueLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 66), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueLaserCurrent.setStatus('mandatory')
edfaalarmStateLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 67), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateLaserCurrent.setStatus('mandatory')
edfalabelLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 68), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelLaserPower.setStatus('optional')
edfauomLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 69), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomLaserPower.setStatus('optional')
edfamajorHighLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 70), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighLaserPower.setStatus('mandatory')
edfamajorLowLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 71), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowLaserPower.setStatus('mandatory')
edfaminorHighLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 72), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighLaserPower.setStatus('mandatory')
edfaminorLowLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 73), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowLaserPower.setStatus('mandatory')
edfacurrentValueLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 74), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueLaserPower.setStatus('mandatory')
edfastateFlagLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 75), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagLaserPower.setStatus('mandatory')
edfaminValueLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 76), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueLaserPower.setStatus('mandatory')
edfamaxValueLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 77), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueLaserPower.setStatus('mandatory')
edfaalarmStateLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 78), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateLaserPower.setStatus('mandatory')
edfalabel12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 79), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabel12Volt.setStatus('optional')
edfauom12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 80), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauom12Volt.setStatus('optional')
edfamajorHigh12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 81), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHigh12Volt.setStatus('mandatory')
edfamajorLow12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 82), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLow12Volt.setStatus('mandatory')
edfaminorHigh12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 83), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHigh12Volt.setStatus('mandatory')
edfaminorLow12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 84), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLow12Volt.setStatus('mandatory')
edfacurrentValue12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 85), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValue12Volt.setStatus('mandatory')
edfastateFlag12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 86), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlag12Volt.setStatus('mandatory')
edfaminValue12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 87), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValue12Volt.setStatus('mandatory')
edfamaxValue12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 88), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValue12Volt.setStatus('mandatory')
edfaalarmState12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 89), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmState12Volt.setStatus('mandatory')
edfalabel37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 90), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabel37Volt.setStatus('optional')
edfauom37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 91), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauom37Volt.setStatus('optional')
edfamajorHigh37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 92), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHigh37Volt.setStatus('mandatory')
edfamajorLow37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 93), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLow37Volt.setStatus('mandatory')
edfaminorHigh37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 94), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHigh37Volt.setStatus('mandatory')
edfaminorLow37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 95), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLow37Volt.setStatus('mandatory')
edfacurrentValue37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 96), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValue37Volt.setStatus('mandatory')
edfastateFlag37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 97), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlag37Volt.setStatus('mandatory')
edfaminValue37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 98), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValue37Volt.setStatus('mandatory')
edfamaxValue37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 99), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValue37Volt.setStatus('mandatory')
edfaalarmState37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 100), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmState37Volt.setStatus('mandatory')
edfalabelFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 101), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelFanCurrent.setStatus('optional')
edfauomFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 102), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomFanCurrent.setStatus('optional')
edfamajorHighFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 103), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighFanCurrent.setStatus('mandatory')
edfamajorLowFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 104), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowFanCurrent.setStatus('mandatory')
edfaminorHighFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 105), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighFanCurrent.setStatus('mandatory')
edfaminorLowFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 106), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowFanCurrent.setStatus('mandatory')
edfacurrentValueFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 107), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueFanCurrent.setStatus('mandatory')
edfastateFlagFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 108), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagFanCurrent.setStatus('mandatory')
edfaminValueFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 109), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueFanCurrent.setStatus('mandatory')
edfamaxValueFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 110), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueFanCurrent.setStatus('mandatory')
edfaalarmStateFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 111), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateFanCurrent.setStatus('mandatory')
edfalabelOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 112), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelOPSetting.setStatus('optional')
edfauomOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 113), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomOPSetting.setStatus('optional')
edfamajorHighOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 114), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighOPSetting.setStatus('mandatory')
edfamajorLowOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 115), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowOPSetting.setStatus('mandatory')
edfaminorHighOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 116), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighOPSetting.setStatus('mandatory')
edfaminorLowOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 117), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowOPSetting.setStatus('mandatory')
edfacurrentValueOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 118), Float()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: edfacurrentValueOPSetting.setStatus('mandatory')
edfastateFlagOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 119), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagOPSetting.setStatus('mandatory')
edfaminValueOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 120), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueOPSetting.setStatus('mandatory')
edfamaxValueOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 121), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueOPSetting.setStatus('mandatory')
edfaalarmStateOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 122), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateOPSetting.setStatus('mandatory')
edfalabelLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 123), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelLPSetting.setStatus('optional')
edfauomLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 124), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomLPSetting.setStatus('optional')
edfamajorHighLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 125), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighLPSetting.setStatus('mandatory')
edfamajorLowLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 126), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowLPSetting.setStatus('mandatory')
edfaminorHighLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 127), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighLPSetting.setStatus('mandatory')
edfaminorLowLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 128), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowLPSetting.setStatus('mandatory')
edfacurrentValueLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 129), Float()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: edfacurrentValueLPSetting.setStatus('mandatory')
edfastateFlagLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 130), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagLPSetting.setStatus('mandatory')
edfaminValueLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 131), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueLPSetting.setStatus('mandatory')
edfamaxValueLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 132), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueLPSetting.setStatus('mandatory')
edfaalarmStateLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 133), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateLPSetting.setStatus('mandatory')
edfalabelCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 134), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelCGSetting.setStatus('optional')
edfauomCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 135), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomCGSetting.setStatus('optional')
edfamajorHighCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 136), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighCGSetting.setStatus('mandatory')
edfamajorLowCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 137), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowCGSetting.setStatus('mandatory')
edfaminorHighCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 138), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighCGSetting.setStatus('mandatory')
edfaminorLowCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 139), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowCGSetting.setStatus('mandatory')
edfacurrentValueCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 140), Float()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: edfacurrentValueCGSetting.setStatus('mandatory')
edfastateFlagCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 141), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagCGSetting.setStatus('mandatory')
edfaminValueCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 142), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueCGSetting.setStatus('mandatory')
edfamaxValueCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 143), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueCGSetting.setStatus('mandatory')
edfaalarmStateCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 144), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateCGSetting.setStatus('mandatory')
edfalabelOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 145), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelOptThreshold.setStatus('optional')
edfauomOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 146), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomOptThreshold.setStatus('optional')
edfamajorHighOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 147), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighOptThreshold.setStatus('mandatory')
edfamajorLowOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 148), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowOptThreshold.setStatus('mandatory')
edfaminorHighOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 149), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighOptThreshold.setStatus('mandatory')
edfaminorLowOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 150), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowOptThreshold.setStatus('mandatory')
edfacurrentValueOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 151), Float()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: edfacurrentValueOptThreshold.setStatus('mandatory')
edfastateFlagOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 152), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagOptThreshold.setStatus('mandatory')
edfaminValueOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 153), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueOptThreshold.setStatus('mandatory')
edfamaxValueOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 154), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueOptThreshold.setStatus('mandatory')
edfaalarmStateOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 155), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateOptThreshold.setStatus('mandatory')
edfagx2EDFADigitalTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfagx2EDFADigitalTableIndex.setStatus('mandatory')
edfalabelModeSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelModeSetting.setStatus('optional')
edfaenumModeSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaenumModeSetting.setStatus('optional')
edfavalueModeSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("power-out-preset", 1), ("power-out-set", 2), ("laser-power-preset", 3), ("laser-power-set", 4), ("constant-gain-preset", 5), ("constant-gain-set", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: edfavalueModeSetting.setStatus('mandatory')
edfastateFlagModeSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagModeSetting.setStatus('mandatory')
edfalabelModuleState = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelModuleState.setStatus('optional')
edfaenumModuleState = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaenumModuleState.setStatus('optional')
edfavalueModuleState = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: edfavalueModuleState.setStatus('mandatory')
edfastateFlagModuleState = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagModuleState.setStatus('mandatory')
edfalabelFactoryDefault = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelFactoryDefault.setStatus('optional')
edfaenumFactoryDefault = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaenumFactoryDefault.setStatus('optional')
edfavalueFactoryDefault = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: edfavalueFactoryDefault.setStatus('mandatory')
edfastateFlagFactoryDefault = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagFactoryDefault.setStatus('mandatory')
edfagx2EDFAStatusTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfagx2EDFAStatusTableIndex.setStatus('mandatory')
edfalabelBoot = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelBoot.setStatus('optional')
edfavalueBoot = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueBoot.setStatus('mandatory')
edfastateflagBoot = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagBoot.setStatus('mandatory')
edfalabelFlash = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelFlash.setStatus('optional')
edfavalueFlash = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueFlash.setStatus('mandatory')
edfastateflagFlash = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagFlash.setStatus('mandatory')
edfalabelFactoryDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelFactoryDataCRC.setStatus('optional')
edfavalueFactoryDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueFactoryDataCRC.setStatus('mandatory')
edfastateflagFactoryDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagFactoryDataCRC.setStatus('mandatory')
edfalabelAlarmDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelAlarmDataCRC.setStatus('optional')
edfavalueAlarmDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueAlarmDataCRC.setStatus('mandatory')
edfastateflagAlarmDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagAlarmDataCRC.setStatus('mandatory')
edfalabelCalibrationDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelCalibrationDataCRC.setStatus('optional')
edfavalueCalibrationDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueCalibrationDataCRC.setStatus('mandatory')
edfastateflagCalibrationDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagCalibrationDataCRC.setStatus('mandatory')
edfalabelOptInShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 17), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelOptInShutdown.setStatus('optional')
edfavalueOptInShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueOptInShutdown.setStatus('mandatory')
edfastateflagOptInShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagOptInShutdown.setStatus('mandatory')
edfalabelTECTempShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelTECTempShutdown.setStatus('optional')
edfavalueTECTempShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueTECTempShutdown.setStatus('mandatory')
edfastateflagTECTempShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagTECTempShutdown.setStatus('mandatory')
edfalabelTECShutOverride = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 23), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelTECShutOverride.setStatus('optional')
edfavalueTECShutOverride = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueTECShutOverride.setStatus('mandatory')
edfastateflagTECShutOverride = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagTECShutOverride.setStatus('mandatory')
edfalabelPowerFail = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 26), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelPowerFail.setStatus('optional')
edfavaluePowerFail = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavaluePowerFail.setStatus('mandatory')
edfastateflagPowerFail = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagPowerFail.setStatus('mandatory')
edfalabelKeySwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 29), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelKeySwitch.setStatus('optional')
edfavalueKeySwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueKeySwitch.setStatus('mandatory')
edfastateflagKeySwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagKeySwitch.setStatus('mandatory')
edfalabelLaserCurrShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 32), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelLaserCurrShutdown.setStatus('optional')
edfavalueLaserCurrShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueLaserCurrShutdown.setStatus('mandatory')
edfastateflagLaserCurrShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagLaserCurrShutdown.setStatus('mandatory')
edfalabelLaserPowShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 35), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelLaserPowShutdown.setStatus('optional')
edfavalueLaserPowShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 36), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueLaserPowShutdown.setStatus('mandatory')
edfastateflagLaserPowShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 37), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagLaserPowShutdown.setStatus('mandatory')
edfalabelADCStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 38), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelADCStatus.setStatus('optional')
edfavalueADCStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 39), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueADCStatus.setStatus('mandatory')
edfastateflagADCStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 40), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagADCStatus.setStatus('mandatory')
edfalabelConstGainStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 41), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelConstGainStatus.setStatus('optional')
edfavalueConstGainStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueConstGainStatus.setStatus('mandatory')
edfastateflagConstGainStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 43), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagConstGainStatus.setStatus('mandatory')
edfalabelStandbyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 44), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelStandbyStatus.setStatus('optional')
edfavalueStandbyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 45), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueStandbyStatus.setStatus('mandatory')
edfastateflagStandbyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 46), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagStandbyStatus.setStatus('mandatory')
edfagx2EDFAFactoryTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfagx2EDFAFactoryTableIndex.setStatus('mandatory')
edfabootControlByte = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfabootControlByte.setStatus('mandatory')
edfabootStatusByte = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfabootStatusByte.setStatus('mandatory')
edfabank0CRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfabank0CRC.setStatus('mandatory')
edfabank1CRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfabank1CRC.setStatus('mandatory')
edfaprgEEPROMByte = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaprgEEPROMByte.setStatus('mandatory')
edfafactoryCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfafactoryCRC.setStatus('mandatory')
edfacalculateCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("factory", 1), ("calibration", 2), ("alarmdata", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacalculateCRC.setStatus('mandatory')
edfahourMeter = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfahourMeter.setStatus('mandatory')
edfaflashPrgCntA = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaflashPrgCntA.setStatus('mandatory')
edfaflashPrgCntB = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaflashPrgCntB.setStatus('mandatory')
edfafwRev0 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 12), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfafwRev0.setStatus('mandatory')
edfafwRev1 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfafwRev1.setStatus('mandatory')
gx2EDFAHoldTimeTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6, 5, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: gx2EDFAHoldTimeTableIndex.setStatus('mandatory')
gx2EDFAHoldTimeSpecIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6, 5, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: gx2EDFAHoldTimeSpecIndex.setStatus('mandatory')
gx2EDFAHoldTimeData = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6, 5, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: gx2EDFAHoldTimeData.setStatus('mandatory')
trapEDFAConfigChangeInteger = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,1)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAConfigChangeDisplayString = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,2)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueDisplayString"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAModuleTemperatureAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,3)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAOpticalInPowerAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,4)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAOpticalOutPowerAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,5)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFATECTemperatureAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,6)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFATECCurrentAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,7)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFALaserCurrentAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,8)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFALaserPowerAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,9)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAPlus12CurrentAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,10)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAPlus37CurrentAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,11)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAFanCurrentAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,12)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAResetFacDefault = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,13)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAStandbyMode = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,14)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAOptInShutdown = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,15)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFATECTempShutdown = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,16)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAKeySwitch = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,17)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAPowerFail = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,18)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFALasCurrShutdown = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,19)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFALasPowerShutdown = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,20)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAInvalidMode = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,21)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAFlashAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,22)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFABoot0Alarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,23)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFABoot1Alarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,24)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAAlarmDataCRCAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,25)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAFactoryDataCRCAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,26)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFACalDataCRCAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,27)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAFacCalFloatAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,28)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAOptInThreshAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,29)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAGainErrorAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,30)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
mibBuilder.exportSymbols("OMNI-gx2EDFA-MIB", edfalabelPowerFail=edfalabelPowerFail, edfamajorHighModTemp=edfamajorHighModTemp, gx2EDFADescriptor=gx2EDFADescriptor, edfamajorLowOptThreshold=edfamajorLowOptThreshold, edfavalueTECShutOverride=edfavalueTECShutOverride, trapEDFAOpticalOutPowerAlarm=trapEDFAOpticalOutPowerAlarm, edfaminorLowTECTemp=edfaminorLowTECTemp, edfalabelTECTemp=edfalabelTECTemp, edfastateflagADCStatus=edfastateflagADCStatus, edfaflashPrgCntA=edfaflashPrgCntA, edfabank0CRC=edfabank0CRC, edfaalarmStateTECTemp=edfaalarmStateTECTemp, edfastateFlagTECCurrent=edfastateFlagTECCurrent, edfacurrentValueLaserPower=edfacurrentValueLaserPower, edfamajorLowFanCurrent=edfamajorLowFanCurrent, edfamajorLowCGSetting=edfamajorLowCGSetting, edfaminorHighCGSetting=edfaminorHighCGSetting, edfamajorHighOptThreshold=edfamajorHighOptThreshold, edfalabelADCStatus=edfalabelADCStatus, edfastateFlagLaserPower=edfastateFlagLaserPower, edfastateflagFlash=edfastateflagFlash, edfalabelCalibrationDataCRC=edfalabelCalibrationDataCRC, edfamajorHighCGSetting=edfamajorHighCGSetting, edfalabelFactoryDataCRC=edfalabelFactoryDataCRC, gx2EDFAFactoryTable=gx2EDFAFactoryTable, edfavalueFlash=edfavalueFlash, edfahourMeter=edfahourMeter, edfaminorHigh37Volt=edfaminorHigh37Volt, edfaminorHighOptInPower=edfaminorHighOptInPower, edfafactoryCRC=edfafactoryCRC, edfamajorLowModTemp=edfamajorLowModTemp, edfaminValueFanCurrent=edfaminValueFanCurrent, edfacurrentValueOPSetting=edfacurrentValueOPSetting, trapEDFALaserCurrentAlarm=trapEDFALaserCurrentAlarm, trapEDFAFanCurrentAlarm=trapEDFAFanCurrentAlarm, edfacurrentValue37Volt=edfacurrentValue37Volt, edfastateFlagLPSetting=edfastateFlagLPSetting, edfauomFanCurrent=edfauomFanCurrent, edfastateflagStandbyStatus=edfastateflagStandbyStatus, edfalabelLPSetting=edfalabelLPSetting, edfauomTECTemp=edfauomTECTemp, edfastateflagConstGainStatus=edfastateflagConstGainStatus, edfastateflagPowerFail=edfastateflagPowerFail, trapEDFAFacCalFloatAlarm=trapEDFAFacCalFloatAlarm, gx2EDFAStatusEntry=gx2EDFAStatusEntry, edfamajorLow12Volt=edfamajorLow12Volt, edfaminValueOptOutPower=edfaminValueOptOutPower, edfacurrentValueTECTemp=edfacurrentValueTECTemp, edfacurrentValueTECCurrent=edfacurrentValueTECCurrent, edfaalarmStateOPSetting=edfaalarmStateOPSetting, edfalabelTECShutOverride=edfalabelTECShutOverride, gx2EDFAFactoryEntry=gx2EDFAFactoryEntry, edfaminorLowFanCurrent=edfaminorLowFanCurrent, edfastateFlagFanCurrent=edfastateFlagFanCurrent, edfaminorLowOPSetting=edfaminorLowOPSetting, edfastateflagKeySwitch=edfastateflagKeySwitch, edfagx2EDFAFactoryTableIndex=edfagx2EDFAFactoryTableIndex, edfalabelConstGainStatus=edfalabelConstGainStatus, trapEDFAOpticalInPowerAlarm=trapEDFAOpticalInPowerAlarm, edfamajorLowLPSetting=edfamajorLowLPSetting, edfaalarmStateCGSetting=edfaalarmStateCGSetting, edfamaxValueTECCurrent=edfamaxValueTECCurrent, edfastateFlagOptOutPower=edfastateFlagOptOutPower, trapEDFAConfigChangeInteger=trapEDFAConfigChangeInteger, trapEDFAOptInThreshAlarm=trapEDFAOptInThreshAlarm, edfavalueFactoryDefault=edfavalueFactoryDefault, edfaminorLowLaserPower=edfaminorLowLaserPower, edfalabelOPSetting=edfalabelOPSetting, edfauomOptOutPower=edfauomOptOutPower, edfabootControlByte=edfabootControlByte, edfaprgEEPROMByte=edfaprgEEPROMByte, edfacurrentValueOptInPower=edfacurrentValueOptInPower, edfamajorHighFanCurrent=edfamajorHighFanCurrent, trapEDFABoot0Alarm=trapEDFABoot0Alarm, edfamaxValueTECTemp=edfamaxValueTECTemp, edfaminorHighOptOutPower=edfaminorHighOptOutPower, edfavaluePowerFail=edfavaluePowerFail, trapEDFALasCurrShutdown=trapEDFALasCurrShutdown, edfalabelLaserCurrent=edfalabelLaserCurrent, edfalabelOptInPower=edfalabelOptInPower, edfaminorLow12Volt=edfaminorLow12Volt, trapEDFAConfigChangeDisplayString=trapEDFAConfigChangeDisplayString, edfauom12Volt=edfauom12Volt, edfagx2EDFAAnalogTableIndex=edfagx2EDFAAnalogTableIndex, edfaalarmStateLaserPower=edfaalarmStateLaserPower, edfaminValueLPSetting=edfaminValueLPSetting, edfaminValueOptThreshold=edfaminValueOptThreshold, edfamajorHigh37Volt=edfamajorHigh37Volt, edfastateflagFactoryDataCRC=edfastateflagFactoryDataCRC, edfafwRev0=edfafwRev0, edfaminorHighLaserPower=edfaminorHighLaserPower, trapEDFAStandbyMode=trapEDFAStandbyMode, edfaminValue37Volt=edfaminValue37Volt, edfabank1CRC=edfabank1CRC, edfavalueAlarmDataCRC=edfavalueAlarmDataCRC, edfaminValueModTemp=edfaminValueModTemp, edfaminorHigh12Volt=edfaminorHigh12Volt, edfamaxValueOPSetting=edfamaxValueOPSetting, gx2EDFAAnalogEntry=gx2EDFAAnalogEntry, edfastateFlagOptThreshold=edfastateFlagOptThreshold, edfamajorHighLPSetting=edfamajorHighLPSetting, edfaminorLowLaserCurrent=edfaminorLowLaserCurrent, edfamajorLowOptOutPower=edfamajorLowOptOutPower, edfamaxValue37Volt=edfamaxValue37Volt, edfaminValue12Volt=edfaminValue12Volt, gx2EDFAAnalogTable=gx2EDFAAnalogTable, edfaminorLowOptInPower=edfaminorLowOptInPower, edfaminValueTECTemp=edfaminValueTECTemp, edfaalarmState12Volt=edfaalarmState12Volt, trapEDFALasPowerShutdown=trapEDFALasPowerShutdown, edfastateFlagFactoryDefault=edfastateFlagFactoryDefault, edfabootStatusByte=edfabootStatusByte, edfaminorHighTECCurrent=edfaminorHighTECCurrent, edfastateFlagOptInPower=edfastateFlagOptInPower, edfalabelCGSetting=edfalabelCGSetting, edfalabelModeSetting=edfalabelModeSetting, edfamajorHighOPSetting=edfamajorHighOPSetting, edfacurrentValueFanCurrent=edfacurrentValueFanCurrent, edfavalueLaserPowShutdown=edfavalueLaserPowShutdown, edfavalueFactoryDataCRC=edfavalueFactoryDataCRC, edfamaxValueOptThreshold=edfamaxValueOptThreshold, edfavalueCalibrationDataCRC=edfavalueCalibrationDataCRC, edfamaxValueOptInPower=edfamaxValueOptInPower, edfaalarmStateModTemp=edfaalarmStateModTemp, edfalabel37Volt=edfalabel37Volt, trapEDFAOptInShutdown=trapEDFAOptInShutdown, edfamajorLow37Volt=edfamajorLow37Volt, edfalabelOptOutPower=edfalabelOptOutPower, edfalabelAlarmDataCRC=edfalabelAlarmDataCRC, edfastateflagOptInShutdown=edfastateflagOptInShutdown, edfalabelKeySwitch=edfalabelKeySwitch, edfavalueConstGainStatus=edfavalueConstGainStatus, trapEDFALaserPowerAlarm=trapEDFALaserPowerAlarm, edfauomTECCurrent=edfauomTECCurrent, edfauomLaserPower=edfauomLaserPower, edfamaxValueLaserPower=edfamaxValueLaserPower, edfalabelFanCurrent=edfalabelFanCurrent, edfavalueTECTempShutdown=edfavalueTECTempShutdown, edfafwRev1=edfafwRev1, edfacalculateCRC=edfacalculateCRC, edfaalarmState37Volt=edfaalarmState37Volt, edfaminorHighLPSetting=edfaminorHighLPSetting, edfaminValueCGSetting=edfaminValueCGSetting, trapEDFATECTempShutdown=trapEDFATECTempShutdown, edfavalueModeSetting=edfavalueModeSetting, trapEDFAResetFacDefault=trapEDFAResetFacDefault, trapEDFAPowerFail=trapEDFAPowerFail, edfaminValueOptInPower=edfaminValueOptInPower, edfaminorLowLPSetting=edfaminorLowLPSetting, edfacurrentValueModTemp=edfacurrentValueModTemp, edfagx2EDFAStatusTableIndex=edfagx2EDFAStatusTableIndex, edfaminorHighOptThreshold=edfaminorHighOptThreshold, edfaenumModuleState=edfaenumModuleState, edfaminorLowTECCurrent=edfaminorLowTECCurrent, trapEDFAInvalidMode=trapEDFAInvalidMode, trapEDFAFlashAlarm=trapEDFAFlashAlarm, edfavalueStandbyStatus=edfavalueStandbyStatus, edfaminorHighFanCurrent=edfaminorHighFanCurrent, edfastateFlagOPSetting=edfastateFlagOPSetting, edfastateFlagCGSetting=edfastateFlagCGSetting, edfamajorLowTECTemp=edfamajorLowTECTemp, edfavalueADCStatus=edfavalueADCStatus, trapEDFAFactoryDataCRCAlarm=trapEDFAFactoryDataCRCAlarm, trapEDFAKeySwitch=trapEDFAKeySwitch, edfalabelOptInShutdown=edfalabelOptInShutdown, edfaalarmStateOptOutPower=edfaalarmStateOptOutPower, edfalabelLaserCurrShutdown=edfalabelLaserCurrShutdown, edfaalarmStateFanCurrent=edfaalarmStateFanCurrent, edfaalarmStateLPSetting=edfaalarmStateLPSetting, trapEDFATECCurrentAlarm=trapEDFATECCurrentAlarm, trapEDFAPlus12CurrentAlarm=trapEDFAPlus12CurrentAlarm, trapEDFAPlus37CurrentAlarm=trapEDFAPlus37CurrentAlarm, gx2EDFAHoldTimeSpecIndex=gx2EDFAHoldTimeSpecIndex, edfastateflagTECTempShutdown=edfastateflagTECTempShutdown, edfaalarmStateLaserCurrent=edfaalarmStateLaserCurrent, gx2EDFAHoldTimeData=gx2EDFAHoldTimeData, edfastateFlag12Volt=edfastateFlag12Volt, edfamajorHighTECTemp=edfamajorHighTECTemp, edfauomModTemp=edfauomModTemp, edfamaxValueLaserCurrent=edfamaxValueLaserCurrent, edfaminorHighOPSetting=edfaminorHighOPSetting, edfauomCGSetting=edfauomCGSetting, edfauom37Volt=edfauom37Volt, trapEDFAModuleTemperatureAlarm=trapEDFAModuleTemperatureAlarm, edfamaxValueModTemp=edfamaxValueModTemp, edfaminorLowCGSetting=edfaminorLowCGSetting, edfamajorHigh12Volt=edfamajorHigh12Volt, gx2EDFADigitalEntry=gx2EDFADigitalEntry, edfastateflagTECShutOverride=edfastateflagTECShutOverride, edfaminValueLaserCurrent=edfaminValueLaserCurrent, edfaflashPrgCntB=edfaflashPrgCntB, edfavalueLaserCurrShutdown=edfavalueLaserCurrShutdown, edfaminValueLaserPower=edfaminValueLaserPower, edfaalarmStateOptThreshold=edfaalarmStateOptThreshold, edfaenumModeSetting=edfaenumModeSetting, edfauomOPSetting=edfauomOPSetting, edfamajorLowOptInPower=edfamajorLowOptInPower, edfaminorLowModTemp=edfaminorLowModTemp, edfaminorHighModTemp=edfaminorHighModTemp, edfalabelLaserPower=edfalabelLaserPower, edfavalueOptInShutdown=edfavalueOptInShutdown, edfaenumFactoryDefault=edfaenumFactoryDefault, edfalabelFlash=edfalabelFlash, edfamajorHighOptInPower=edfamajorHighOptInPower, edfaalarmStateOptInPower=edfaalarmStateOptInPower, edfacurrentValue12Volt=edfacurrentValue12Volt, edfamaxValueFanCurrent=edfamaxValueFanCurrent, edfamaxValueLPSetting=edfamaxValueLPSetting, edfacurrentValueLaserCurrent=edfacurrentValueLaserCurrent, edfastateFlagModTemp=edfastateFlagModTemp, edfaminorLow37Volt=edfaminorLow37Volt, edfavalueKeySwitch=edfavalueKeySwitch, trapEDFAAlarmDataCRCAlarm=trapEDFAAlarmDataCRCAlarm, edfastateFlagTECTemp=edfastateFlagTECTemp, edfastateflagAlarmDataCRC=edfastateflagAlarmDataCRC, edfamajorLowLaserCurrent=edfamajorLowLaserCurrent, edfamajorHighLaserCurrent=edfamajorHighLaserCurrent, trapEDFATECTemperatureAlarm=trapEDFATECTemperatureAlarm, edfamajorHighLaserPower=edfamajorHighLaserPower, edfacurrentValueOptThreshold=edfacurrentValueOptThreshold, edfaminorHighLaserCurrent=edfaminorHighLaserCurrent, edfalabelBoot=edfalabelBoot, edfavalueBoot=edfavalueBoot, edfaminorHighTECTemp=edfaminorHighTECTemp, edfamajorHighTECCurrent=edfamajorHighTECCurrent, edfastateFlagModeSetting=edfastateFlagModeSetting, edfaminValueTECCurrent=edfaminValueTECCurrent, edfalabelFactoryDefault=edfalabelFactoryDefault, trapEDFAGainErrorAlarm=trapEDFAGainErrorAlarm, edfamaxValueCGSetting=edfamaxValueCGSetting, Float=Float, gx2EDFAStatusTable=gx2EDFAStatusTable, edfalabelLaserPowShutdown=edfalabelLaserPowShutdown, edfalabelModuleState=edfalabelModuleState, edfamajorLowLaserPower=edfamajorLowLaserPower, edfauomOptThreshold=edfauomOptThreshold, edfastateflagBoot=edfastateflagBoot, edfaminorLowOptThreshold=edfaminorLowOptThreshold, trapEDFABoot1Alarm=trapEDFABoot1Alarm, edfamajorLowTECCurrent=edfamajorLowTECCurrent, edfalabelStandbyStatus=edfalabelStandbyStatus, gx2EDFAHoldTimeEntry=gx2EDFAHoldTimeEntry, edfauomOptInPower=edfauomOptInPower, edfaminValueOPSetting=edfaminValueOPSetting, edfastateflagCalibrationDataCRC=edfastateflagCalibrationDataCRC, edfacurrentValueCGSetting=edfacurrentValueCGSetting, edfacurrentValueLPSetting=edfacurrentValueLPSetting, edfastateFlagModuleState=edfastateFlagModuleState, edfamajorHighOptOutPower=edfamajorHighOptOutPower, edfastateflagLaserPowShutdown=edfastateflagLaserPowShutdown, edfalabelOptThreshold=edfalabelOptThreshold, edfaminorLowOptOutPower=edfaminorLowOptOutPower, edfamajorLowOPSetting=edfamajorLowOPSetting, edfalabelTECTempShutdown=edfalabelTECTempShutdown)
mibBuilder.exportSymbols("OMNI-gx2EDFA-MIB", edfamaxValue12Volt=edfamaxValue12Volt, edfalabel12Volt=edfalabel12Volt, trapEDFACalDataCRCAlarm=trapEDFACalDataCRCAlarm, edfamaxValueOptOutPower=edfamaxValueOptOutPower, edfastateFlagLaserCurrent=edfastateFlagLaserCurrent, gx2EDFAHoldTimeTable=gx2EDFAHoldTimeTable, edfavalueModuleState=edfavalueModuleState, edfastateFlag37Volt=edfastateFlag37Volt, edfalabelModTemp=edfalabelModTemp, edfalabelTECCurrent=edfalabelTECCurrent, gx2EDFADigitalTable=gx2EDFADigitalTable, edfacurrentValueOptOutPower=edfacurrentValueOptOutPower, edfauomLaserCurrent=edfauomLaserCurrent, edfauomLPSetting=edfauomLPSetting, edfagx2EDFADigitalTableIndex=edfagx2EDFADigitalTableIndex, edfastateflagLaserCurrShutdown=edfastateflagLaserCurrShutdown, gx2EDFAHoldTimeTableIndex=gx2EDFAHoldTimeTableIndex, edfaalarmStateTECCurrent=edfaalarmStateTECCurrent)
|
class CQueue:
def __init__(self):
self.q = []
def appendTail(self, value: int) -> None:
self.q.append(value)
def deleteHead(self) -> int:
return self.q.pop(0) if self.q else -1
# Your CQueue object will be instantiated and called as such:
# obj = CQueue()
# obj.appendTail(value)
# param_2 = obj.deleteHead()
|
# -*- coding: utf-8 -*-
__author__ = "venkat"
__author_email__ = "venkatram0273@gmail.com"
def block_indentation():
if 10 > 10:
print("if statement indented")
elif 10 > 5:
print("elif statement indented")
else:
print("else default statement indented")
for i in range(10):
print(i)
print("For loop also indented")
a = 0
while a > 2:
print("While loop also indented with 4 spaces but not tab")
print(a)
a = a + 1
if __name__ == "__main__":
block_indentation()
|
# read numbers
numbers = []
with open("nums.txt", "r") as f:
lines = f.readlines()
numbers = [int(i) for i in lines]
print(numbers)
# part 1 soln
for x,el in enumerate(numbers):
for i in range(x+1, len(numbers)):
if el + numbers[i] == 2020:
print("YAY: {} {}".format(el, numbers[i]))
# part 2 soln
for x,el in enumerate(numbers):
for i in range(x+1, len(numbers)):
for j in range(i+1, len(numbers)):
if el + numbers[i] + numbers[j] == 2020:
print("YAY: {} {} {}".format(el, numbers[i], numbers[j]))
|
# -*- coding: UTF-8 -*-
def read_file(filepath):
with open(filepath,'rb') as file:
# yield (file.readlines())
for i in file:
yield i
a = read_file(r'D:\pythontest/test\python_100/2/base.txt')
print(next(a))
|
class Solution:
def destCity(self, paths: List[List[str]]) -> str:
start = (list(map(lambda x: x[0], paths)))
for path in paths:
if path[1] not in start: return path[1]
# dic = {}
# for i in range(len(paths)):
# dic[paths[i][0]] = paths[i][1]
# city = paths[0][0]
# while True:
# if city in dic.keys(): city = dic[city]
# else: return city
|
# Copyright 2020 Software Improvement Group
#
# 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.
#
"""
Module provides graph query and json query of a call graph in FASTEN json format.
"""
class GraphQuery:
def __init__(self,cg):
pass
def get_trans_callees(self, method):
return []
def get_trans_callers(self, method):
return []
|
# Crie um programa que tenha uma tupla com várias palavras. (Não usar acentos).
# Depois disso, você deve mostrar, para cada palavra, quais são suas vogais.
palavras = ('aprender', 'programar', 'linguagem', 'python', 'curso', 'gratis',
'estudar', 'praticar', 'trabalhar', 'mercado', 'programador', 'futuro')
for dicionario in palavras:
print(f'\nNa palavra {dicionario.upper()} temos ', end='')
for letra in dicionario:
if letra.lower() in 'aeiou':
print(letra, end=' ')
|
class Solution:
def rotatedDigits(self, n: int) -> int:
goodnums = set([2,5,6,9])
badnums = set([3,4,7])
ans = 0
for i in range(1,n+1):
good = False
num = i
while num:
remains = num % 10
if remains in goodnums:
good = True
elif remains in badnums:
good = False
break
num //= 10
if good:
ans += 1
return ans
|
# TODO: Chain class
"""
The Chain class will support chaining multiple Digests together.
The Chain feature should have support to be placed ANYWHERE within the ApiForm and chain together DigestFeatures
A single Digest Feature should run within the same thread/process and be relatively simple.
A series of Digest Features, or features that take more time should be placed into a chain, and chains should support
the ability to:
Run concurrently i.e. Support both -> ProcessPool/ThreadPool.
with Pool(5) as p:
res = p.map(DigestFeature, [df_1, df_2, df_3]))
Run serially: Support both -> Thread/Process
def mapper(f, df):
do stuff to df
return df
mapping = [f1, f2, f2]
def p_map(fs, df):
Process(target=f1, args=(df,))
df = Process result
Process(target=f2, args=(df,))
.
.
.
Chain example:
c = Chain(
DigestGetLatLongs(**kwargs),
DigestApiCallToGetCounty(**kwargs),
DigestGenerateMapWithLatLongAsPng(**kwargs),
DigestPostPngToGcs(**kwargs)
.
.
etc.
)
""" |
def d(n):
return n + sum(list(map(int, list(str(n)))))
nums = [x for x in range(1, 10001)]
for i in range(1, 10001):
if d(i) in nums:
nums.remove(d(i))
for num in nums:
print(num) |
class Node:
def __init__(self, data) -> None:
self.data = data
self.next = None
self.traversed = False
class LinkedList:
def __init__(self) -> None:
self.head = self.rear = None
def check_loop(node):
temp = node.head
if temp == None:
print("Empty!!")
return
while temp:
if temp.traversed:
print("Loop Exist!!")
return
temp.traversed = True
temp = temp.next
print("Loop Does Not Exist!!")
def loop_using_hash(node): # O(n) and O(n) in both time and space
temp = node.head
h = set()
if temp == None:
print("Empty!!")
return
while temp:
if temp in h:
print("Loop Exist!!")
return
h.add(temp)
temp = temp.next
print("Loop Does Not Exist!!")
def loop_using_floyd_cycle(node):
slow = node.head
fast = node.head
while slow and fast.next and fast:
slow = slow.next
fast = fast.next.next
if slow == fast:
print("Loop Exist!!")
return
print("Loop Does Not Exist!!")
linked_list = LinkedList()
first = Node(1)
second = Node(2)
third = Node(3)
forth = Node(4)
fifth = Node(5)
linked_list.head = linked_list.rear = first
first.next = second
second.next = third
third.next = forth
forth.next = fifth
fifth.next = second
check_loop(linked_list)
loop_using_hash(linked_list)
loop_using_floyd_cycle(linked_list)
|
def is_horiz_or_vert(line):
return line[0]["x"] == line[1]["x"] or line[0]["y"] == line[1]["y"]
def parse(input_line):
return [
{"x": int(x), "y": int(y)}
for x, y in [s.strip().split(",") for s in input_line.split("->")]
]
def do_it(input_lines, diagonals=False):
lines = [
line
for line in [parse(input_line) for input_line in input_lines]
if diagonals or is_horiz_or_vert(line)
]
max_x = max(point["x"] for line in lines for point in line)
max_y = max(point["y"] for line in lines for point in line)
plot = [[0 for _ in range(max_x + 1)] for _ in range(max_y + 1)]
for a, b in lines:
cur_x = a["x"]
cur_y = a["y"]
dest_x = b["x"]
dest_y = b["y"]
plot[cur_y][cur_x] += 1
while cur_x - dest_x != 0 or cur_y - dest_y != 0:
if cur_x < dest_x:
cur_x += 1
elif cur_x > dest_x:
cur_x -= 1
if cur_y < dest_y:
cur_y += 1
elif cur_y > dest_y:
cur_y -= 1
plot[cur_y][cur_x] += 1
return sum(1 for row in plot for point in row if point > 1)
def part_one(lines):
return do_it(lines)
def part_two(lines):
return do_it(lines, True)
|
windowWight=650
windowHeight=650
ellipseSize=200
def setup():
size(windowWight,windowHeight)
smooth()
background(255)
fill(50,80)
stroke(100)
strokeWeight(3)
noLoop()
def draw():
ellipse(windowWight/2, windowHeight/2 - ellipseSize/2, ellipseSize, ellipseSize)
ellipse(windowWight/2 - ellipseSize/2, windowHeight/2, ellipseSize, ellipseSize)
ellipse(windowWight/2 + ellipseSize/2, windowHeight/2, ellipseSize, ellipseSize)
ellipse(windowWight/2, windowHeight/2 + ellipseSize/2, ellipseSize, ellipseSize)
|
# list(map(int, input().split()))
# int(input())
def main(N, A):
ans = 0
for n in range(1, N+1, 2):
if A[n-1] % 2 == 1:
ans += 1
print(ans)
if __name__ == '__main__':
N = int(input())
A = list(map(int, input().split()))
main(N, A)
|
budget = 150.0
pi_string = '03.14159260'
age_string = '21'
# convert string to number
pi_float = float(pi_string)
age_int = int(age_string)
# convert and print to string
print('The budget is: $' + str(budget))
print('pi_string: ' + pi_string)
print('pi_float: ' + str(pi_float))
print('age_int: ' + str(age_int)) |
ficha=list()
while True:
nome=str(input('Nome: '))
nota1=float(input('Nota 1: '))
nota2=float(input('Nota 2: '))
media= (nota1+nota2)/2
ficha.append([nome, [nota1,nota2],media])
resp=str(input('Quer continuar? [S/N]: ')).strip().upper()
if resp in 'N':
break
print('-='*30)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright 2020, Yutong Xie, UIUC.
Convert sorted array to binary search tree using recursion.
'''
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution(object):
def sortedArrayToBST(self, nums):
"""
:type nums: List[int]
:rtype: TreeNode
"""
def helper(l, r):
if l > r:
return None
mid = (l+r)//2
root = TreeNode(nums[mid])
root.left = helper(l, mid-1)
root.right = helper(mid+1, r)
return root
root = helper(0, len(nums)-1)
return root
|
#exercice 1
#calories calculator. create 2 functions main, calories.
#It should calculate the amount of calories from
#the grams of carbs, fat and protein.
#calories from fat = fat gram x 9
#calories from carbs = carbs gram x 4
#calories from protein = protein gram x 4
#example:
#if item has 1 gram of fat, 2 grams of protein and
#3 grams of carbs
#1 x 9 + 2 x 4 + 3 x 4 = 29 calories total
#you will ask the user to enter fat, carbs and protein in main
#and calculate the total calories and print the answer
#in calories function.
def main():
fat = int(input("Please enter a number of grams of fat:\n"))
carbs = int(input("Please enter a number of grams of carbs:\n"))
protein = int(input("Please enter a number of grams of protein:\n"))
calories(fat, carbs, protein)
def calories(fat, carbs, protein):
total = fat * 9 + carbs * 4 + protein * 4
print("The grams of fat, carbs and protein equal to ",total, "calories")
main()
#exercice 2
#feet to inches
#1 foot = 12 inches
#you will create a feet_to_inches function
#it will take a number of feet and convert it to inches
#you will ask the user to input the number of feet in
#main() and print the number of inches in feet_to_inches(feet)
#HINT:
#main()
#feet_to_inches(feet)
def main():
feet = int(input("Please enter a number of feet:\n"))
feet_to_inches(feet)
def feet_to_inches(feet):
total = feet * 12
print("The number of feet equal to",total,"inches")
main()
#exercice 3
#maximum of 2 numbers
#write a function that accepts 2 floats it should print which number is bigger
#you should ask the user to input the 2 numbers in main() and max(num1, num2)
#should print the answer
#HINT:
#main()
#max(num1, num2)
#Example: if both numbers are 1 and 2
#then answer is 2 is bigger than 1
def main():
num1 = int(input("Please enter a number:\n"))
num2 = int(input("Please enter another number:\n"))
max(num1, num2)
def max(num1, num2):
if num1 > num2:
print(num1,"is bigger than",num2)
elif num2 > num1:
print(num2,"is bigger than",num1)
elif num1 == num2:
print("the numbers are equal")
main()
|
# 7-3. Multiples of Ten: Ask the user for a number, and then report whether the number is a multiple of 10 or not.
number = input("Tell me a number man :v : ")
number = int(number)
if number % 10 == 0:
print(str(number) + " is a multiple of 10.")
else:
print(str(number) + " is not a multiple of 10.") |
"""
https://www.codewars.com/kata/5168bb5dfe9a00b126000018/train/python
Given a string, return its reverse
"""
def solution(string):
return ''.join(reversed([char for char in string]))
def solution2(string):
return string[::-1]
print(solution2('world'))
|
# pylint: skip-file
# pylint: disable=too-many-instance-attributes
class GcloudConfig(GcloudCLI):
''' Class to wrap the gcloud config command'''
# pylint allows 5
# pylint: disable=too-many-arguments
def __init__(self,
project=None,
region=None):
''' Constructor for gcloud resource '''
super(GcloudConfig, self).__init__()
self._working_param = {}
if project:
self._working_param['name'] = 'project'
self._working_param['value'] = project
self._working_param['section'] = 'core'
elif region:
self._working_param['name'] = 'region'
self._working_param['value'] = region
self._working_param['section'] = 'compute'
self._current_config = self.get_compacted_config()
def get_compacted_config(self):
'''return compated config options'''
results = self._list_config()
compacted_results = {}
for config in results['results']:
compacted_results.update(results['results'][config])
return compacted_results
def list_config(self):
'''return config'''
results = self._list_config()
return results
def check_value(self, param, param_value):
'''check to see if param needs to be updated'''
return self._current_config[param] == param_value
def update(self):
''' do updates, if needed '''
if not self.check_value(self._working_param['name'], self._working_param['value']):
config_set_results = self._config_set(self._working_param['name'], self._working_param['value'],
self._working_param['section'])
list_config_results = self.list_config()
config_set_results['results'] = list_config_results['results']
return config_set_results
else:
list_config_results = self.list_config()
return {'results': list_config_results['results']}
|
"""
This file holds default settings value and it is used like template for creation userdef.py file.
If you want to change any variable listed below do that in generated userdef.py file.
"""
#args.gn template path
webRTCGnArgsTemplatePath='./webrtc/windows/templates/gns/args.gn'
#Path where nuget package and all of the files used to create the package are stored
nugetFolderPath = './webrtc/windows/nuget'
nugetVersionInfo = {
#Main version number of the NuGet package
'number': '66',
#False if not prerelease, Default is based on previous version, False if not prerelease
'prerelease': 'Default'
}
#Imput NuGet package version number manualy, used if selected version number does not exist on nuget.org, E.g., '1.66.0.3-Alpha'
manualNugetVersionNumber = False
#Path to a release notes file
releaseNotePath = 'releases.txt'
#List of NuGet packages used to manualy publish nuget packages, E.g., 'webrtc.1.66.0.3-Alpha.nupkg'
#Packages must be placed in a folder referenced in nugetFolderPath variable
nugetPackagesToPublish = []
#API key used to publish nuget packages nuget.org
nugetAPIKey = ''
#URL for the nuget server, if 'default' nuget.org is used
nugetServerURL = 'default'
#Output path where will be stored nuget package as well as libs and pdbs
#releaseOutputPath = '.'
#Supported platforms for specific host OS
supportedPlatformsForHostOs = {
'windows' : ['win', 'winuwp'],
'darwin' : ['ios', 'mac'],
'linux' : ['android', 'linux']
}
#Supported cpus for specific platform
supportedCPUsForPlatform = {
'winuwp' : ['arm', 'x86', 'x64'],
'win' : ['x86', 'x64'],
'ios' : ['arm'],
'mac' : [ 'x86', 'x64'],
'android' : ['arm'],
'linux' : [ 'x86', 'x64'],
}
#List of targets for which will be performed specified actions. Supported target is webrtc. In future it will be added support for ortc.
targets = [ 'webrtc' ]
#List of target cpus. Supported cpus are arm, x86 and x64
targetCPUs = [ 'arm', 'x86', 'x64' ]
#List of target platforms. Supported cpus are win and winuwp
targetPlatforms = [ 'win', 'winuwp' ]
#List of target configurations. Supported cpus are Release and Debug
targetConfigurations = [ 'Release', 'Debug' ]
#TODO: Implement logic to update zslib_eventing_tool.gni based on list of specified programming languages.
targetProgrammingLanguage = [ 'cx', 'cppwinrt', 'c', 'dotnet', 'python' ]
#=========== Supported actions: clean, createuserdef, prepare, build, backup, createnuget.
# In future it will be added support publishnuget, updatesample.
#'clean' : Based on cleanup options set in cleanupOptions dict, it can be choosen desired cleanup actions.
#'createuserdef' : Deletes existing userdef.py if exists and create a new from defaults.py.
#'prepare' : Prepares developement environemnt for selected targets for choosen cpus, platforms and configurations.
#'build' : Builds selected targets for choosen cpus, platforms and configurations.
#'backup': Backup latest build.
#'createnuget' : Creates nuget package.
#'uploadbackup' : Creates a zipp file with pdb files and nuget package based on configuration and uploads it to onedrive
#List of actions to perform
actions = [ 'prepare', 'build', 'backup' ]
#Flag if wrapper library should be built. If it is False, it will be built only native libraries
buildWrapper = True
#=========== cleanupOptions
#'actions' : ['cleanOutput', 'cleanIdls', 'cleanUserDef','cleanPrepare'],
#'targets' : If [], it will use values from targets variable above.
# If ['*'] it will delete output folders for all targets.
# If ['webrtc'] it will delete just webrtc target
#'cpus' : If [], it will use values from targetCPUs variable above.
# If ['*'] it will delete output folders for all cpus.
# If ['x64'] it will delete just x64 output folder
#'platforms' : If [], it will use values from targetPlatforms variable above.
# If ['*'] it will delete output folders for all platforms.
# If ['winuwp'] it will delete just winuwp output folder
#'configurations' : If [], it will use values from targetConfigurations variable above.
# If ['*'] it will delete output folders for all configurations.
# If ['Release'] it will delete just Release output folder
cleanupOptions = {
'actions' : ['cleanOutput'],
'targets' : [],
'cpus' : [],
'platforms' : [],
'configurations' : []
}
"""
Supported formats: %(funcName)s - function name, %(levelname)s - log level name, %(asctime)s - time, %(message)s - log message, %(filename)s - curremt python filename, %(lineno)d - log message line no, %(name)d - module name
For the rest of available attributes you can check on https://docs.python.org/3/library/logging.html#logrecord-attributes
"""
#logFormat = '[%(levelname)-17s] - %(asctime)s - %(message)s (%(filename)s:%(lineno)d)'
logFormat = '[%(levelname)-17s] - [%(name)-15s] - %(funcName)-30s - %(message)s (%(filename)s:%(lineno)d)'
#Supported log levels: DEBUG, INFO, WARNING, ERROR, CRITICAL (case sensitive)
logLevel = 'DEBUG'
#Log filename. If it is empty string, log will be shown in console.
#In other case, it will log to specified file in folder from where script is run.
logToFile = ''
#If true overwrite old log file, otherwise it will create a new log file with time suffix.
overwriteLogFile = False
#If set to False, log messages for different log levels will be shown colorized.
noColoredOutput = False
#If set to True script execution will be stopped on error.
stopExecutionOnError = False
#If set to True, shows trace log when script execution is stopped on error
showTraceOnError = True
#If set to True, shows all settings values when script execution is stopped on error
showSettingsValuesOnError = True
#If set to True, shows PATH variable when script execution is stopped on error
showPATHOnError = True
#Windows specific variables
#If VS is installed but it is not found,, it is required to set msvsPath variable
msvsPath = ''
#If set to True, output libraries and pdbs will be stored in Backup folder
enabledBackup = False
#Backup folder, in user working directory (folder from where script is run)
libsBackupPath = './Backup'
#Flag for overwriting current backup folder
overwriteBackup = False |
class TouchData:
x_distance = None
y_distance = None
x_offset = None
y_offset = None
relative_distance = None
is_external = None
in_range = None
def __init__(self, joystick, touch):
self.joystick = joystick
self.touch = touch
self._calculate()
def _calculate(self):
js = self.joystick
touch = self.touch
x_distance = js.center_x - touch.x
y_distance = js.center_y - touch.y
x_offset = touch.x - js.center_x
y_offset = touch.y - js.center_y
relative_distance = ((x_distance ** 2) + (y_distance ** 2)) ** 0.5
is_external = relative_distance > js._total_radius
in_range = relative_distance <= js._radius_difference
self._update(x_distance, y_distance, x_offset, y_offset,
relative_distance, is_external, in_range)
def _update(self, x_distance, y_distance, x_offset, y_offset,
relative_distance, is_external, in_range):
self.x_distance = x_distance
self.y_distance = y_distance
self.x_offset = x_offset
self.y_offset = y_offset
self.relative_distance = relative_distance
self.is_external = is_external
self.in_range = in_range
|
STYLE = {
'fore':
{ # 前景色
'black': 30, # 黑色
'red': 31, # 红色
'green': 32, # 绿色
'yellow': 33, # 黄色
'blue': 34, # 蓝色
'purple': 35, # 紫红色
'cyan': 36, # 青蓝色
'white': 37, # 白色
},
'back':
{ # 背景
'black': 40, # 黑色
'red': 41, # 红色
'green': 42, # 绿色
'yellow': 43, # 黄色
'blue': 44, # 蓝色
'purple': 45, # 紫红色
'cyan': 46, # 青蓝色
'white': 47, # 白色
},
'mode':
{ # 显示模式
'mormal': 0, # 终端默认设置
'bold': 1, # 高亮显示
'underline': 4, # 使用下划线
'blink': 5, # 闪烁
'invert': 7, # 反白显示
'hide': 8, # 不可见
},
'default':
{
'end': 0,
},
}
def UseStyle(string, mode='', fore='', back=''):
mode = '{}'.format(STYLE['mode'][mode] if STYLE['mode'].keys().__contains__(mode) else '')
fore = '{}'.format(STYLE['fore'][fore] if STYLE['fore'].keys().__contains__(fore) else '')
back = '{}'.format(STYLE['back'][back] if STYLE['back'].keys().__contains__(back) else '')
style = ';'.join([s for s in [mode, fore, back] if s])
style = '\033[{}m'.format(style if style else '')
end = '\033[{}m'.format(STYLE['default']['end'] if style else '')
return '{}{}{}'.format(style, string, end)
def cololrfull(content):
return UseStyle(content, back='cyan', fore='yellow', mode='bold')
def color_warn(content):
return UseStyle(content, back='white', fore='red', mode='bold')
def printc(values, sep=' ', end='\n', file=None):
print(cololrfull(values))
def printw(values, sep=' ', end='\n', file=None):
print(color_warn(values))
|
def testing_system(right_answer, Iras_answer):
if right_answer == Iras_answer:
print("YES")
else:
print("NO")
testing_system(int(input()), int(input())) |
#!/usr/bin/env python3
'''
lib/subl
sublime-ycmd sublime utility module.
'''
|
class StyleGenerator:
def __init__(self):
self.sidebar_style = {}
self.content_style = {}
def getSidebarStyle(self):
return self.sidebar_style
def getContentStyle(self):
return self.content_style
def setSidebarStyle(self, position="fixed", top=0, left=0, bottom=0, width="0rem", padding="0rem 0rem", backgroundcolor="#f8f9fa"):
self.sidebar_style = {
"position": position,
"top":top,
"left":left,
"bottom":bottom,
"width":width,
"padding":padding,
"background-color":backgroundcolor
}
def setContentStyle(self, marginleft="0rem", marginright="0rem", padding="0rem 0rem"):
self.content_style = {
"margin-left":marginleft,
"margin-right":marginright,
"padding":padding
}
|
# implementation of linked list using python 3
# Node class
class Node:
#function to initialize the node object
def __init__(self, data):
self.data = data #assign data
self.next = None #initialize next as null
#Linked list class
class LinkedList:
#function to initialize the linked
#list object
def __init__(self):
self.head = None
#function to print the contents of linked list
#starting from head
def printingList(self):
temp = self.head
while (temp):
print (temp.data)
temp = temp.next
#code execution starts here
if __name__ == '__main__':
#starts with empty list
llist = LinkedList()
llist.head = Node(1)
second = Node(2)
third = Node(3)
'''
Three nodes have been created.
We have reference to these blocks as
head -> secong -> third
'''
llist.head.next = second;
second.next = third;
llist.printingList()
|
def test_content_id_2():
content_id_head = pd.DataFrame({'Content_Rating': ['Everyone', 'Everyone', 'Everyone', 'Teen', 'Everyone']},
index=[101, 101, 101, 102, 101])
assert content_id_df.head().equals(content_id_head) |
#Mostrar a tabuada de qualquer número solicitado e repita até o usuário digitar um número negativo
n = cont = 0;
while True:
print('*=' * 25);
n = int(input(f'De qual número você deseja ver a tabuada? '));
print('*=' * 25);
if n < 0:
break;
while cont <= 10:
mult = n * cont;
print(f'{n} x {cont} = {mult}');
cont += 1;
print('Fim do programa da TABUADA. VOLTE SEMPRE!');
|
"""
PASSENGERS
"""
numPassengers = 2713
passenger_arriving = (
(0, 6, 4, 4, 1, 0, 4, 5, 3, 6, 1, 0), # 0
(4, 10, 2, 0, 1, 0, 5, 8, 5, 5, 3, 0), # 1
(1, 6, 3, 2, 5, 0, 4, 4, 5, 5, 1, 0), # 2
(3, 10, 6, 3, 3, 0, 5, 5, 4, 2, 0, 0), # 3
(2, 6, 4, 1, 0, 0, 7, 8, 6, 6, 1, 0), # 4
(4, 9, 8, 3, 3, 0, 4, 7, 6, 7, 0, 0), # 5
(2, 6, 8, 4, 1, 0, 5, 6, 5, 0, 5, 0), # 6
(2, 8, 4, 5, 2, 0, 5, 6, 4, 5, 2, 0), # 7
(4, 5, 7, 3, 3, 0, 4, 12, 5, 2, 3, 0), # 8
(3, 7, 4, 3, 3, 0, 6, 8, 9, 2, 4, 0), # 9
(7, 2, 4, 4, 2, 0, 1, 10, 4, 5, 2, 0), # 10
(1, 9, 6, 4, 3, 0, 4, 5, 7, 4, 1, 0), # 11
(2, 8, 5, 2, 1, 0, 1, 8, 5, 2, 1, 0), # 12
(6, 7, 8, 4, 0, 0, 2, 5, 4, 3, 1, 0), # 13
(4, 5, 3, 3, 3, 0, 6, 6, 12, 3, 1, 0), # 14
(2, 12, 6, 2, 2, 0, 3, 5, 7, 5, 4, 0), # 15
(4, 8, 7, 4, 3, 0, 7, 4, 4, 4, 3, 0), # 16
(1, 5, 5, 3, 1, 0, 4, 10, 0, 8, 2, 0), # 17
(2, 12, 8, 2, 3, 0, 7, 8, 4, 7, 4, 0), # 18
(2, 2, 6, 2, 2, 0, 6, 9, 4, 2, 1, 0), # 19
(5, 6, 10, 2, 0, 0, 4, 5, 0, 2, 2, 0), # 20
(2, 6, 11, 1, 1, 0, 5, 9, 4, 3, 1, 0), # 21
(4, 14, 5, 3, 3, 0, 4, 10, 2, 8, 1, 0), # 22
(4, 8, 10, 7, 2, 0, 7, 12, 2, 5, 4, 0), # 23
(3, 3, 7, 3, 4, 0, 6, 8, 4, 5, 2, 0), # 24
(4, 9, 3, 1, 3, 0, 9, 10, 7, 5, 4, 0), # 25
(4, 6, 6, 5, 0, 0, 4, 5, 2, 5, 3, 0), # 26
(2, 10, 4, 4, 3, 0, 6, 9, 4, 3, 2, 0), # 27
(5, 8, 6, 5, 2, 0, 8, 6, 8, 4, 3, 0), # 28
(7, 5, 6, 2, 4, 0, 8, 7, 8, 3, 4, 0), # 29
(5, 6, 6, 1, 4, 0, 5, 5, 3, 1, 0, 0), # 30
(3, 8, 8, 2, 1, 0, 9, 6, 12, 5, 4, 0), # 31
(8, 9, 3, 6, 1, 0, 6, 6, 4, 6, 2, 0), # 32
(1, 6, 6, 1, 0, 0, 2, 6, 2, 5, 4, 0), # 33
(7, 10, 12, 3, 2, 0, 6, 11, 8, 6, 3, 0), # 34
(6, 8, 9, 4, 2, 0, 12, 11, 6, 1, 3, 0), # 35
(3, 6, 4, 4, 2, 0, 8, 10, 3, 4, 1, 0), # 36
(3, 10, 6, 3, 5, 0, 3, 10, 4, 4, 3, 0), # 37
(4, 10, 4, 6, 2, 0, 2, 4, 6, 4, 3, 0), # 38
(4, 11, 3, 3, 1, 0, 3, 8, 4, 6, 1, 0), # 39
(4, 8, 5, 2, 0, 0, 2, 9, 4, 6, 1, 0), # 40
(4, 7, 7, 1, 1, 0, 7, 10, 7, 1, 4, 0), # 41
(2, 2, 6, 6, 2, 0, 5, 10, 4, 2, 4, 0), # 42
(5, 4, 7, 5, 0, 0, 9, 10, 6, 2, 2, 0), # 43
(5, 3, 2, 3, 1, 0, 8, 4, 2, 7, 0, 0), # 44
(4, 4, 7, 3, 2, 0, 7, 11, 2, 2, 4, 0), # 45
(2, 9, 8, 2, 3, 0, 8, 7, 7, 5, 3, 0), # 46
(5, 8, 6, 1, 2, 0, 2, 9, 11, 5, 1, 0), # 47
(3, 4, 8, 2, 3, 0, 8, 9, 2, 3, 0, 0), # 48
(6, 12, 9, 2, 2, 0, 4, 7, 5, 6, 4, 0), # 49
(7, 5, 7, 4, 0, 0, 5, 6, 7, 2, 1, 0), # 50
(5, 8, 4, 4, 0, 0, 5, 10, 7, 7, 1, 0), # 51
(4, 8, 6, 8, 4, 0, 7, 11, 2, 4, 1, 0), # 52
(3, 13, 6, 3, 0, 0, 4, 6, 1, 4, 1, 0), # 53
(2, 8, 5, 3, 3, 0, 7, 7, 3, 5, 1, 0), # 54
(5, 7, 5, 3, 1, 0, 7, 10, 3, 4, 0, 0), # 55
(3, 8, 2, 2, 1, 0, 2, 5, 5, 5, 0, 0), # 56
(3, 8, 5, 1, 2, 0, 7, 7, 4, 4, 1, 0), # 57
(7, 7, 7, 4, 0, 0, 4, 8, 4, 3, 2, 0), # 58
(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), # 59
)
station_arriving_intensity = (
(3.1795818700614573, 8.15575284090909, 9.59308322622108, 7.603532608695652, 8.571634615384614, 5.708152173913044), # 0
(3.20942641205736, 8.246449918455387, 9.644898645029993, 7.6458772644927535, 8.635879807692307, 5.706206567028985), # 1
(3.238930172666081, 8.335801683501682, 9.695484147386459, 7.687289855072463, 8.69876923076923, 5.704201449275362), # 2
(3.268068107989464, 8.42371171875, 9.744802779562981, 7.727735054347824, 8.760245192307693, 5.702137092391305), # 3
(3.296815174129353, 8.510083606902358, 9.792817587832047, 7.767177536231884, 8.82025, 5.700013768115941), # 4
(3.3251463271875914, 8.594820930660775, 9.839491618466152, 7.805581974637681, 8.87872596153846, 5.697831748188405), # 5
(3.353036523266023, 8.677827272727273, 9.88478791773779, 7.842913043478261, 8.935615384615383, 5.695591304347826), # 6
(3.380460718466491, 8.75900621580387, 9.92866953191945, 7.879135416666666, 8.990860576923078, 5.693292708333334), # 7
(3.40739386889084, 8.83826134259259, 9.971099507283634, 7.914213768115941, 9.044403846153847, 5.6909362318840575), # 8
(3.4338109306409126, 8.915496235795453, 10.012040890102828, 7.9481127717391304, 9.0961875, 5.68852214673913), # 9
(3.459686859818554, 8.990614478114479, 10.051456726649528, 7.980797101449276, 9.146153846153846, 5.68605072463768), # 10
(3.4849966125256073, 9.063519652251683, 10.089310063196228, 8.012231431159421, 9.194245192307692, 5.683522237318841), # 11
(3.509715144863916, 9.134115340909089, 10.125563946015424, 8.042380434782608, 9.240403846153844, 5.680936956521738), # 12
(3.5338174129353224, 9.20230512678872, 10.160181421379605, 8.071208786231884, 9.284572115384616, 5.678295153985506), # 13
(3.5572783728416737, 9.267992592592593, 10.193125535561265, 8.098681159420288, 9.326692307692307, 5.6755971014492745), # 14
(3.5800729806848106, 9.331081321022726, 10.224359334832902, 8.124762228260868, 9.36670673076923, 5.672843070652174), # 15
(3.6021761925665783, 9.391474894781144, 10.25384586546701, 8.149416666666665, 9.404557692307693, 5.6700333333333335), # 16
(3.6235629645888205, 9.449076896569863, 10.281548173736075, 8.172609148550725, 9.4401875, 5.667168161231884), # 17
(3.64420825285338, 9.503790909090908, 10.307429305912597, 8.194304347826087, 9.473538461538464, 5.664247826086956), # 18
(3.664087013462101, 9.555520515046295, 10.331452308269066, 8.214466938405796, 9.504552884615384, 5.661272599637681), # 19
(3.683174202516827, 9.604169297138045, 10.353580227077975, 8.2330615942029, 9.533173076923077, 5.658242753623187), # 20
(3.7014447761194034, 9.649640838068178, 10.373776108611827, 8.250052989130435, 9.559341346153845, 5.655158559782609), # 21
(3.7188736903716704, 9.69183872053872, 10.3920029991431, 8.26540579710145, 9.582999999999998, 5.652020289855073), # 22
(3.7354359013754754, 9.730666527251683, 10.408223944944302, 8.279084692028986, 9.604091346153846, 5.6488282155797105), # 23
(3.75110636523266, 9.76602784090909, 10.422401992287917, 8.291054347826087, 9.62255769230769, 5.645582608695652), # 24
(3.7658600380450684, 9.797826244212962, 10.434500187446444, 8.301279438405798, 9.638341346153844, 5.642283740942029), # 25
(3.779671875914545, 9.825965319865318, 10.444481576692374, 8.309724637681159, 9.651384615384615, 5.63893188405797), # 26
(3.792516834942932, 9.85034865056818, 10.452309206298198, 8.316354619565217, 9.661629807692309, 5.635527309782609), # 27
(3.804369871232075, 9.870879819023568, 10.457946122536418, 8.321134057971014, 9.66901923076923, 5.632070289855072), # 28
(3.815205940883816, 9.887462407933501, 10.461355371679518, 8.324027626811594, 9.673495192307692, 5.628561096014493), # 29
(3.8249999999999997, 9.9, 10.4625, 8.325, 9.674999999999999, 5.625), # 30
(3.834164434143222, 9.910414559659088, 10.461641938405796, 8.324824387254901, 9.674452393617022, 5.620051511744128), # 31
(3.843131010230179, 9.920691477272728, 10.459092028985506, 8.324300980392156, 9.672821276595744, 5.612429710144928), # 32
(3.8519037563938614, 9.930829474431818, 10.45488668478261, 8.323434926470588, 9.670124202127658, 5.6022092203898035), # 33
(3.860486700767263, 9.940827272727272, 10.449062318840578, 8.32223137254902, 9.666378723404256, 5.589464667666167), # 34
(3.8688838714833755, 9.950683593749998, 10.441655344202898, 8.320695465686274, 9.661602393617022, 5.574270677161419), # 35
(3.8770992966751923, 9.96039715909091, 10.432702173913043, 8.318832352941177, 9.655812765957448, 5.556701874062968), # 36
(3.885137004475703, 9.96996669034091, 10.422239221014491, 8.316647181372549, 9.64902739361702, 5.536832883558221), # 37
(3.893001023017902, 9.979390909090908, 10.410302898550723, 8.314145098039214, 9.641263829787233, 5.514738330834581), # 38
(3.900695380434782, 9.988668536931817, 10.396929619565215, 8.31133125, 9.632539627659574, 5.490492841079459), # 39
(3.908224104859335, 9.997798295454546, 10.382155797101449, 8.308210784313726, 9.62287234042553, 5.464171039480259), # 40
(3.915591224424552, 10.006778906249998, 10.366017844202899, 8.304788848039216, 9.612279521276594, 5.435847551224389), # 41
(3.9228007672634266, 10.015609090909093, 10.348552173913044, 8.301070588235293, 9.600778723404256, 5.40559700149925), # 42
(3.929856761508952, 10.024287571022725, 10.329795199275361, 8.297061151960785, 9.5883875, 5.373494015492254), # 43
(3.936763235294117, 10.032813068181818, 10.309783333333334, 8.292765686274508, 9.575123404255319, 5.339613218390804), # 44
(3.9435242167519178, 10.041184303977271, 10.288552989130435, 8.288189338235293, 9.561003989361701, 5.304029235382309), # 45
(3.9501437340153456, 10.0494, 10.266140579710147, 8.28333725490196, 9.546046808510638, 5.266816691654173), # 46
(3.956625815217391, 10.05745887784091, 10.24258251811594, 8.278214583333332, 9.530269414893617, 5.228050212393803), # 47
(3.962974488491049, 10.065359659090909, 10.217915217391303, 8.272826470588234, 9.513689361702127, 5.187804422788607), # 48
(3.9691937819693086, 10.073101065340907, 10.19217509057971, 8.26717806372549, 9.49632420212766, 5.146153948025987), # 49
(3.9752877237851663, 10.080681818181816, 10.165398550724637, 8.261274509803922, 9.478191489361702, 5.103173413293353), # 50
(3.9812603420716113, 10.088100639204544, 10.137622010869565, 8.255120955882353, 9.459308776595744, 5.0589374437781105), # 51
(3.987115664961637, 10.09535625, 10.10888188405797, 8.248722549019607, 9.439693617021277, 5.013520664667666), # 52
(3.992857720588235, 10.10244737215909, 10.079214583333332, 8.24208443627451, 9.419363563829787, 4.966997701149425), # 53
(3.9984905370843995, 10.109372727272726, 10.04865652173913, 8.235211764705882, 9.398336170212765, 4.919443178410794), # 54
(4.00401814258312, 10.116131036931817, 10.017244112318838, 8.22810968137255, 9.376628989361702, 4.87093172163918), # 55
(4.0094445652173905, 10.122721022727271, 9.985013768115941, 8.220783333333333, 9.354259574468085, 4.821537956021989), # 56
(4.014773833120205, 10.129141406250001, 9.952001902173912, 8.213237867647058, 9.331245478723403, 4.771336506746626), # 57
(4.0200099744245525, 10.135390909090907, 9.91824492753623, 8.20547843137255, 9.307604255319148, 4.7204019990005), # 58
(0.0, 0.0, 0.0, 0.0, 0.0, 0.0), # 59
)
passenger_arriving_acc = (
(0, 6, 4, 4, 1, 0, 4, 5, 3, 6, 1, 0), # 0
(4, 16, 6, 4, 2, 0, 9, 13, 8, 11, 4, 0), # 1
(5, 22, 9, 6, 7, 0, 13, 17, 13, 16, 5, 0), # 2
(8, 32, 15, 9, 10, 0, 18, 22, 17, 18, 5, 0), # 3
(10, 38, 19, 10, 10, 0, 25, 30, 23, 24, 6, 0), # 4
(14, 47, 27, 13, 13, 0, 29, 37, 29, 31, 6, 0), # 5
(16, 53, 35, 17, 14, 0, 34, 43, 34, 31, 11, 0), # 6
(18, 61, 39, 22, 16, 0, 39, 49, 38, 36, 13, 0), # 7
(22, 66, 46, 25, 19, 0, 43, 61, 43, 38, 16, 0), # 8
(25, 73, 50, 28, 22, 0, 49, 69, 52, 40, 20, 0), # 9
(32, 75, 54, 32, 24, 0, 50, 79, 56, 45, 22, 0), # 10
(33, 84, 60, 36, 27, 0, 54, 84, 63, 49, 23, 0), # 11
(35, 92, 65, 38, 28, 0, 55, 92, 68, 51, 24, 0), # 12
(41, 99, 73, 42, 28, 0, 57, 97, 72, 54, 25, 0), # 13
(45, 104, 76, 45, 31, 0, 63, 103, 84, 57, 26, 0), # 14
(47, 116, 82, 47, 33, 0, 66, 108, 91, 62, 30, 0), # 15
(51, 124, 89, 51, 36, 0, 73, 112, 95, 66, 33, 0), # 16
(52, 129, 94, 54, 37, 0, 77, 122, 95, 74, 35, 0), # 17
(54, 141, 102, 56, 40, 0, 84, 130, 99, 81, 39, 0), # 18
(56, 143, 108, 58, 42, 0, 90, 139, 103, 83, 40, 0), # 19
(61, 149, 118, 60, 42, 0, 94, 144, 103, 85, 42, 0), # 20
(63, 155, 129, 61, 43, 0, 99, 153, 107, 88, 43, 0), # 21
(67, 169, 134, 64, 46, 0, 103, 163, 109, 96, 44, 0), # 22
(71, 177, 144, 71, 48, 0, 110, 175, 111, 101, 48, 0), # 23
(74, 180, 151, 74, 52, 0, 116, 183, 115, 106, 50, 0), # 24
(78, 189, 154, 75, 55, 0, 125, 193, 122, 111, 54, 0), # 25
(82, 195, 160, 80, 55, 0, 129, 198, 124, 116, 57, 0), # 26
(84, 205, 164, 84, 58, 0, 135, 207, 128, 119, 59, 0), # 27
(89, 213, 170, 89, 60, 0, 143, 213, 136, 123, 62, 0), # 28
(96, 218, 176, 91, 64, 0, 151, 220, 144, 126, 66, 0), # 29
(101, 224, 182, 92, 68, 0, 156, 225, 147, 127, 66, 0), # 30
(104, 232, 190, 94, 69, 0, 165, 231, 159, 132, 70, 0), # 31
(112, 241, 193, 100, 70, 0, 171, 237, 163, 138, 72, 0), # 32
(113, 247, 199, 101, 70, 0, 173, 243, 165, 143, 76, 0), # 33
(120, 257, 211, 104, 72, 0, 179, 254, 173, 149, 79, 0), # 34
(126, 265, 220, 108, 74, 0, 191, 265, 179, 150, 82, 0), # 35
(129, 271, 224, 112, 76, 0, 199, 275, 182, 154, 83, 0), # 36
(132, 281, 230, 115, 81, 0, 202, 285, 186, 158, 86, 0), # 37
(136, 291, 234, 121, 83, 0, 204, 289, 192, 162, 89, 0), # 38
(140, 302, 237, 124, 84, 0, 207, 297, 196, 168, 90, 0), # 39
(144, 310, 242, 126, 84, 0, 209, 306, 200, 174, 91, 0), # 40
(148, 317, 249, 127, 85, 0, 216, 316, 207, 175, 95, 0), # 41
(150, 319, 255, 133, 87, 0, 221, 326, 211, 177, 99, 0), # 42
(155, 323, 262, 138, 87, 0, 230, 336, 217, 179, 101, 0), # 43
(160, 326, 264, 141, 88, 0, 238, 340, 219, 186, 101, 0), # 44
(164, 330, 271, 144, 90, 0, 245, 351, 221, 188, 105, 0), # 45
(166, 339, 279, 146, 93, 0, 253, 358, 228, 193, 108, 0), # 46
(171, 347, 285, 147, 95, 0, 255, 367, 239, 198, 109, 0), # 47
(174, 351, 293, 149, 98, 0, 263, 376, 241, 201, 109, 0), # 48
(180, 363, 302, 151, 100, 0, 267, 383, 246, 207, 113, 0), # 49
(187, 368, 309, 155, 100, 0, 272, 389, 253, 209, 114, 0), # 50
(192, 376, 313, 159, 100, 0, 277, 399, 260, 216, 115, 0), # 51
(196, 384, 319, 167, 104, 0, 284, 410, 262, 220, 116, 0), # 52
(199, 397, 325, 170, 104, 0, 288, 416, 263, 224, 117, 0), # 53
(201, 405, 330, 173, 107, 0, 295, 423, 266, 229, 118, 0), # 54
(206, 412, 335, 176, 108, 0, 302, 433, 269, 233, 118, 0), # 55
(209, 420, 337, 178, 109, 0, 304, 438, 274, 238, 118, 0), # 56
(212, 428, 342, 179, 111, 0, 311, 445, 278, 242, 119, 0), # 57
(219, 435, 349, 183, 111, 0, 315, 453, 282, 245, 121, 0), # 58
(219, 435, 349, 183, 111, 0, 315, 453, 282, 245, 121, 0), # 59
)
passenger_arriving_rate = (
(3.1795818700614573, 6.524602272727271, 5.755849935732647, 3.0414130434782605, 1.7143269230769227, 0.0, 5.708152173913044, 6.857307692307691, 4.562119565217391, 3.8372332904884314, 1.6311505681818177, 0.0), # 0
(3.20942641205736, 6.597159934764309, 5.786939187017996, 3.0583509057971012, 1.7271759615384612, 0.0, 5.706206567028985, 6.908703846153845, 4.587526358695652, 3.857959458011997, 1.6492899836910773, 0.0), # 1
(3.238930172666081, 6.668641346801345, 5.817290488431875, 3.074915942028985, 1.7397538461538458, 0.0, 5.704201449275362, 6.959015384615383, 4.612373913043478, 3.8781936589545833, 1.6671603367003363, 0.0), # 2
(3.268068107989464, 6.738969375, 5.846881667737788, 3.091094021739129, 1.7520490384615384, 0.0, 5.702137092391305, 7.0081961538461535, 4.636641032608694, 3.897921111825192, 1.68474234375, 0.0), # 3
(3.296815174129353, 6.808066885521885, 5.875690552699228, 3.106871014492753, 1.76405, 0.0, 5.700013768115941, 7.0562, 4.66030652173913, 3.9171270351328187, 1.7020167213804713, 0.0), # 4
(3.3251463271875914, 6.87585674452862, 5.903694971079691, 3.122232789855072, 1.775745192307692, 0.0, 5.697831748188405, 7.102980769230768, 4.6833491847826085, 3.9357966473864603, 1.718964186132155, 0.0), # 5
(3.353036523266023, 6.942261818181818, 5.930872750642674, 3.137165217391304, 1.7871230769230766, 0.0, 5.695591304347826, 7.148492307692306, 4.705747826086957, 3.953915167095116, 1.7355654545454544, 0.0), # 6
(3.380460718466491, 7.007204972643096, 5.95720171915167, 3.1516541666666664, 1.7981721153846155, 0.0, 5.693292708333334, 7.192688461538462, 4.727481249999999, 3.97146781276778, 1.751801243160774, 0.0), # 7
(3.40739386889084, 7.0706090740740715, 5.982659704370181, 3.165685507246376, 1.8088807692307691, 0.0, 5.6909362318840575, 7.2355230769230765, 4.7485282608695645, 3.9884398029134536, 1.7676522685185179, 0.0), # 8
(3.4338109306409126, 7.132396988636362, 6.007224534061696, 3.179245108695652, 1.8192374999999996, 0.0, 5.68852214673913, 7.2769499999999985, 4.768867663043478, 4.004816356041131, 1.7830992471590905, 0.0), # 9
(3.459686859818554, 7.1924915824915825, 6.030874035989717, 3.19231884057971, 1.829230769230769, 0.0, 5.68605072463768, 7.316923076923076, 4.7884782608695655, 4.020582690659811, 1.7981228956228956, 0.0), # 10
(3.4849966125256073, 7.250815721801346, 6.053586037917737, 3.204892572463768, 1.8388490384615384, 0.0, 5.683522237318841, 7.355396153846153, 4.807338858695652, 4.0357240252784905, 1.8127039304503365, 0.0), # 11
(3.509715144863916, 7.30729227272727, 6.0753383676092545, 3.2169521739130427, 1.8480807692307688, 0.0, 5.680936956521738, 7.392323076923075, 4.825428260869565, 4.050225578406169, 1.8268230681818176, 0.0), # 12
(3.5338174129353224, 7.361844101430976, 6.096108852827762, 3.228483514492753, 1.8569144230769232, 0.0, 5.678295153985506, 7.427657692307693, 4.84272527173913, 4.0640725685518415, 1.840461025357744, 0.0), # 13
(3.5572783728416737, 7.414394074074074, 6.115875321336759, 3.2394724637681147, 1.8653384615384612, 0.0, 5.6755971014492745, 7.461353846153845, 4.859208695652172, 4.077250214224506, 1.8535985185185184, 0.0), # 14
(3.5800729806848106, 7.46486505681818, 6.134615600899742, 3.249904891304347, 1.873341346153846, 0.0, 5.672843070652174, 7.493365384615384, 4.874857336956521, 4.089743733933161, 1.866216264204545, 0.0), # 15
(3.6021761925665783, 7.513179915824915, 6.152307519280206, 3.259766666666666, 1.8809115384615382, 0.0, 5.6700333333333335, 7.523646153846153, 4.889649999999999, 4.101538346186803, 1.8782949789562287, 0.0), # 16
(3.6235629645888205, 7.55926151725589, 6.168928904241645, 3.26904365942029, 1.8880374999999998, 0.0, 5.667168161231884, 7.552149999999999, 4.903565489130435, 4.11261926949443, 1.8898153793139725, 0.0), # 17
(3.64420825285338, 7.603032727272725, 6.184457583547558, 3.2777217391304343, 1.8947076923076926, 0.0, 5.664247826086956, 7.578830769230771, 4.916582608695652, 4.122971722365039, 1.9007581818181813, 0.0), # 18
(3.664087013462101, 7.644416412037035, 6.198871384961439, 3.285786775362318, 1.9009105769230765, 0.0, 5.661272599637681, 7.603642307692306, 4.928680163043477, 4.132580923307626, 1.9111041030092588, 0.0), # 19
(3.683174202516827, 7.683335437710435, 6.2121481362467845, 3.2932246376811594, 1.9066346153846152, 0.0, 5.658242753623187, 7.626538461538461, 4.93983695652174, 4.14143209083119, 1.9208338594276086, 0.0), # 20
(3.7014447761194034, 7.719712670454542, 6.224265665167096, 3.3000211956521737, 1.911868269230769, 0.0, 5.655158559782609, 7.647473076923076, 4.950031793478261, 4.14951044344473, 1.9299281676136355, 0.0), # 21
(3.7188736903716704, 7.753470976430976, 6.23520179948586, 3.3061623188405793, 1.9165999999999994, 0.0, 5.652020289855073, 7.666399999999998, 4.959243478260869, 4.15680119965724, 1.938367744107744, 0.0), # 22
(3.7354359013754754, 7.784533221801346, 6.244934366966581, 3.311633876811594, 1.920818269230769, 0.0, 5.6488282155797105, 7.683273076923076, 4.967450815217392, 4.163289577977721, 1.9461333054503365, 0.0), # 23
(3.75110636523266, 7.812822272727271, 6.25344119537275, 3.3164217391304347, 1.9245115384615379, 0.0, 5.645582608695652, 7.6980461538461515, 4.974632608695652, 4.168960796915166, 1.9532055681818177, 0.0), # 24
(3.7658600380450684, 7.838260995370368, 6.260700112467866, 3.320511775362319, 1.9276682692307685, 0.0, 5.642283740942029, 7.710673076923074, 4.980767663043479, 4.173800074978577, 1.959565248842592, 0.0), # 25
(3.779671875914545, 7.860772255892254, 6.266688946015424, 3.3238898550724634, 1.9302769230769228, 0.0, 5.63893188405797, 7.721107692307691, 4.985834782608695, 4.177792630676949, 1.9651930639730635, 0.0), # 26
(3.792516834942932, 7.8802789204545425, 6.2713855237789184, 3.326541847826087, 1.9323259615384616, 0.0, 5.635527309782609, 7.729303846153846, 4.98981277173913, 4.180923682519278, 1.9700697301136356, 0.0), # 27
(3.804369871232075, 7.8967038552188535, 6.2747676735218505, 3.328453623188405, 1.9338038461538458, 0.0, 5.632070289855072, 7.735215384615383, 4.992680434782608, 4.183178449014567, 1.9741759638047134, 0.0), # 28
(3.815205940883816, 7.9099699263468, 6.276813223007711, 3.3296110507246373, 1.9346990384615383, 0.0, 5.628561096014493, 7.738796153846153, 4.994416576086956, 4.184542148671807, 1.9774924815867, 0.0), # 29
(3.8249999999999997, 7.92, 6.2775, 3.3299999999999996, 1.9349999999999996, 0.0, 5.625, 7.739999999999998, 4.994999999999999, 4.185, 1.98, 0.0), # 30
(3.834164434143222, 7.92833164772727, 6.276985163043477, 3.3299297549019604, 1.9348904787234043, 0.0, 5.620051511744128, 7.739561914893617, 4.994894632352941, 4.184656775362318, 1.9820829119318175, 0.0), # 31
(3.843131010230179, 7.936553181818182, 6.275455217391303, 3.329720392156862, 1.9345642553191487, 0.0, 5.612429710144928, 7.738257021276595, 4.994580588235293, 4.1836368115942015, 1.9841382954545455, 0.0), # 32
(3.8519037563938614, 7.944663579545454, 6.272932010869566, 3.329373970588235, 1.9340248404255314, 0.0, 5.6022092203898035, 7.736099361702125, 4.994060955882353, 4.181954673913044, 1.9861658948863634, 0.0), # 33
(3.860486700767263, 7.952661818181817, 6.269437391304347, 3.3288925490196077, 1.9332757446808508, 0.0, 5.589464667666167, 7.733102978723403, 4.993338823529411, 4.179624927536231, 1.9881654545454543, 0.0), # 34
(3.8688838714833755, 7.960546874999998, 6.264993206521739, 3.328278186274509, 1.9323204787234043, 0.0, 5.574270677161419, 7.729281914893617, 4.9924172794117645, 4.176662137681159, 1.9901367187499994, 0.0), # 35
(3.8770992966751923, 7.968317727272727, 6.259621304347825, 3.3275329411764707, 1.9311625531914893, 0.0, 5.556701874062968, 7.724650212765957, 4.9912994117647065, 4.173080869565217, 1.9920794318181818, 0.0), # 36
(3.885137004475703, 7.975973352272726, 6.253343532608695, 3.3266588725490194, 1.9298054787234038, 0.0, 5.536832883558221, 7.719221914893615, 4.989988308823529, 4.168895688405796, 1.9939933380681816, 0.0), # 37
(3.893001023017902, 7.983512727272726, 6.246181739130434, 3.325658039215685, 1.9282527659574464, 0.0, 5.514738330834581, 7.713011063829786, 4.988487058823528, 4.164121159420289, 1.9958781818181814, 0.0), # 38
(3.900695380434782, 7.990934829545453, 6.238157771739129, 3.3245324999999997, 1.9265079255319146, 0.0, 5.490492841079459, 7.7060317021276585, 4.98679875, 4.1587718478260856, 1.9977337073863632, 0.0), # 39
(3.908224104859335, 7.998238636363636, 6.229293478260869, 3.32328431372549, 1.924574468085106, 0.0, 5.464171039480259, 7.698297872340424, 4.984926470588236, 4.1528623188405795, 1.999559659090909, 0.0), # 40
(3.915591224424552, 8.005423124999998, 6.219610706521739, 3.321915539215686, 1.9224559042553186, 0.0, 5.435847551224389, 7.689823617021275, 4.982873308823529, 4.146407137681159, 2.0013557812499996, 0.0), # 41
(3.9228007672634266, 8.012487272727274, 6.209131304347826, 3.320428235294117, 1.920155744680851, 0.0, 5.40559700149925, 7.680622978723404, 4.980642352941175, 4.1394208695652175, 2.0031218181818184, 0.0), # 42
(3.929856761508952, 8.01943005681818, 6.1978771195652165, 3.3188244607843136, 1.9176774999999997, 0.0, 5.373494015492254, 7.670709999999999, 4.978236691176471, 4.131918079710144, 2.004857514204545, 0.0), # 43
(3.936763235294117, 8.026250454545455, 6.18587, 3.317106274509803, 1.9150246808510636, 0.0, 5.339613218390804, 7.660098723404254, 4.975659411764705, 4.123913333333333, 2.0065626136363637, 0.0), # 44
(3.9435242167519178, 8.032947443181817, 6.1731317934782615, 3.315275735294117, 1.91220079787234, 0.0, 5.304029235382309, 7.64880319148936, 4.972913602941175, 4.115421195652174, 2.008236860795454, 0.0), # 45
(3.9501437340153456, 8.03952, 6.159684347826087, 3.313334901960784, 1.9092093617021275, 0.0, 5.266816691654173, 7.63683744680851, 4.970002352941176, 4.106456231884058, 2.00988, 0.0), # 46
(3.956625815217391, 8.045967102272726, 6.1455495108695635, 3.3112858333333324, 1.9060538829787232, 0.0, 5.228050212393803, 7.624215531914893, 4.966928749999999, 4.097033007246376, 2.0114917755681816, 0.0), # 47
(3.962974488491049, 8.052287727272727, 6.130749130434782, 3.309130588235293, 1.9027378723404254, 0.0, 5.187804422788607, 7.610951489361701, 4.96369588235294, 4.087166086956521, 2.013071931818182, 0.0), # 48
(3.9691937819693086, 8.058480852272725, 6.115305054347826, 3.306871225490196, 1.899264840425532, 0.0, 5.146153948025987, 7.597059361702128, 4.960306838235294, 4.076870036231884, 2.014620213068181, 0.0), # 49
(3.9752877237851663, 8.064545454545453, 6.099239130434782, 3.3045098039215683, 1.8956382978723403, 0.0, 5.103173413293353, 7.582553191489361, 4.956764705882353, 4.066159420289854, 2.016136363636363, 0.0), # 50
(3.9812603420716113, 8.070480511363634, 6.082573206521739, 3.302048382352941, 1.8918617553191486, 0.0, 5.0589374437781105, 7.567447021276594, 4.953072573529411, 4.055048804347826, 2.0176201278409085, 0.0), # 51
(3.987115664961637, 8.076284999999999, 6.065329130434782, 3.299489019607843, 1.8879387234042553, 0.0, 5.013520664667666, 7.551754893617021, 4.949233529411765, 4.043552753623188, 2.0190712499999997, 0.0), # 52
(3.992857720588235, 8.081957897727271, 6.047528749999999, 3.2968337745098037, 1.8838727127659571, 0.0, 4.966997701149425, 7.5354908510638285, 4.945250661764706, 4.0316858333333325, 2.020489474431818, 0.0), # 53
(3.9984905370843995, 8.08749818181818, 6.0291939130434775, 3.294084705882353, 1.8796672340425529, 0.0, 4.919443178410794, 7.5186689361702115, 4.941127058823529, 4.019462608695651, 2.021874545454545, 0.0), # 54
(4.00401814258312, 8.092904829545454, 6.010346467391303, 3.2912438725490194, 1.8753257978723403, 0.0, 4.87093172163918, 7.501303191489361, 4.936865808823529, 4.006897644927535, 2.0232262073863634, 0.0), # 55
(4.0094445652173905, 8.098176818181816, 5.991008260869564, 3.288313333333333, 1.8708519148936167, 0.0, 4.821537956021989, 7.483407659574467, 4.9324699999999995, 3.994005507246376, 2.024544204545454, 0.0), # 56
(4.014773833120205, 8.103313125, 5.971201141304347, 3.285295147058823, 1.8662490957446805, 0.0, 4.771336506746626, 7.464996382978722, 4.927942720588234, 3.980800760869564, 2.02582828125, 0.0), # 57
(4.0200099744245525, 8.108312727272725, 5.950946956521738, 3.2821913725490197, 1.8615208510638295, 0.0, 4.7204019990005, 7.446083404255318, 4.923287058823529, 3.9672979710144918, 2.0270781818181813, 0.0), # 58
(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), # 59
)
passenger_allighting_rate = (
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 0
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 1
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 2
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 3
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 4
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 5
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 6
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 7
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 8
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 9
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 10
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 11
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 12
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 13
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 14
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 15
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 16
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 17
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 18
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 19
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 20
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 21
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 22
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 23
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 24
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 25
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 26
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 27
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 28
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 29
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 30
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 31
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 32
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 33
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 34
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 35
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 36
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 37
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 38
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 39
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 40
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 41
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 42
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 43
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 44
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 45
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 46
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 47
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 48
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 49
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 50
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 51
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 52
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 53
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 54
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 55
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 56
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 57
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 58
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 59
)
"""
parameters for reproducibiliy. More information: https://numpy.org/doc/stable/reference/random/parallel.html
"""
#initial entropy
entropy = 258194110137029475889902652135037600173
#index for seed sequence child
child_seed_index = (
1, # 0
4, # 1
)
|
#!/usr/bin/python
__all__ = [
'__title__', '__summary__', '__uri__', '__version__', '__author__',
'__email__', '__license__', '__copyright__',
]
__title__ = 'django-simple-datatable'
__summary__ = 'Simple datatable'
__uri__ = 'https://github.com/2375452377/django-simple-datatable.git'
__version__ = '0.1.1'
__author__ = 'Terrence Luo'
__email__ = 'Terrence.luo@coassets.com.cn'
__license__ = 'MIT'
__copyright__ = 'Copyright 2015 {0}'.format(__author__)
|
'''
def square(num):
return num*num
a = square(10)
print(a)
'''
# Lamda function --> Function creating using an expression using lamda keyword
square = lambda num: num*num # creating a square lamda function which takes num as input and multiply num*num and return to square
num = 10
a=square(num)
print(a)
sum = lambda a,b,c: a+b+c
s= sum(num,4,6) # return 20 , take first value num =10
print(s)
|
HTTP_METHOD_DELETE = "DELETE"
HTTP_METHOD_GET = "GET"
HTTP_METHOD_POST = "POST"
HTTP_METHOD_PUT = "PUT"
|
GYRO_FSR_250DPS = 0
GYRO_FSR_500DPS = 1
GYRO_FSR_1000DPS = 2
GYRO_FSR_2000DPS = 3
|
# Hash Table; Two pointers; string
# Given a string, find the length of the longest substring without repeating characters.
#
# Example 1:
#
# Input: "abcabcbb"
# Output: 3
# Explanation: The answer is "abc", with the length of 3.
# Example 2:
#
# Input: "bbbbb"
# Output: 1
# Explanation: The answer is "b", with the length of 1.
# Example 3:
#
# Input: "pwwkew"
# Output: 3
# Explanation: The answer is "wke", with the length of 3.
# Note that the answer must be a substring, "pwke" is a subsequence and not a substring.
class Solution(object):
def lengthOfLongestSubstring(self, s):
"""
:type s: str
:rtype: int
"""
dic, res, start = {}, 0, 0
for i, ch in enumerate(s):
if ch in dic:
res = max(res, i-start)
start = max(start, dic[ch]+1)
dic[ch] = i
return max(res, len(s)-start)
|
ACTIONS_MAP = {
"attack": "do_combat",
"area": "do_combat",
"block": "do_combat",
"disrupt": "do_combat",
"dodge": "do_combat",
"change character": "change_class",
"change class": "change_class",
}
|
#!/usr/bin/env python3
count = 0
while count < 5:
print(count)
count += 1
|
# A sample config file
emailInformation = dict(
fromEmail = 'senderAccount',
toEmail = 'toAccount',
username = 'sender username',
password = 'sender password'
)
dropboxInfo = dict(
token = 'dropbox token'
) |
# -*- coding: utf-8 -*-
# Copyright 2019 Cohesity Inc.
class SchedulingPolicyProtoMonthlySchedule(object):
"""Implementation of the 'SchedulingPolicyProto_MonthlySchedule' model.
TODO: type model description here.
Attributes:
count (int): Count of the day on which to perform the backup (look
above for a more detailed description).
day (int): The day of the month the backup is to be performed.
"""
# Create a mapping from Model property names to API property names
_names = {
"count":'count',
"day":'day'
}
def __init__(self,
count=None,
day=None):
"""Constructor for the SchedulingPolicyProtoMonthlySchedule class"""
# Initialize members of the class
self.count = count
self.day = day
@classmethod
def from_dictionary(cls,
dictionary):
"""Creates an instance of this model from a dictionary
Args:
dictionary (dictionary): A dictionary representation of the object as
obtained from the deserialization of the server's response. The keys
MUST match property names in the API description.
Returns:
object: An instance of this structure class.
"""
if dictionary is None:
return None
# Extract variables from the dictionary
count = dictionary.get('count')
day = dictionary.get('day')
# Return an object of this model
return cls(count,
day)
|
# -*- mode: python -*-
# vi: set ft=python :
"""
Downloads a precompiled version of buildifier and makes it available to the
WORKSPACE.
Example:
WORKSPACE:
load("@drake//tools/workspace:mirrors.bzl", "DEFAULT_MIRRORS")
load("@drake//tools/workspace/buildifier:repository.bzl", "buildifier_repository") # noqa
buildifier_repository(name = "foo", mirrors = DEFAULT_MIRRORS)
BUILD:
sh_binary(
name = "foobar",
srcs = ["bar.sh"],
data = ["@foo//:buildifier"],
)
Argument:
name: A unique name for this rule.
"""
load("@drake//tools/workspace:os.bzl", "determine_os")
load(
"@drake//tools/workspace:metadata.bzl",
"generate_repository_metadata",
)
def _impl(repository_ctx):
# Enumerate the possible binaries.
version = "4.0.1"
mac_urls = [
x.format(version = version, filename = "buildifier-darwin-amd64")
for x in repository_ctx.attr.mirrors.get("buildifier")
]
mac_sha256 = "f4d0ede5af04b32671b9a086ae061df8f621f48ea139b01b3715bfa068219e4a" # noqa
ubuntu_urls = [
x.format(version = version, filename = "buildifier-linux-amd64")
for x in repository_ctx.attr.mirrors.get("buildifier")
]
ubuntu_sha256 = "069a03fc1fa46135e3f71e075696e09389344710ccee798b2722c50a2d92d55a" # noqa
# Choose which binary to use on the current OS.
os_result = determine_os(repository_ctx)
if os_result.error != None:
fail(os_result.error)
if os_result.is_macos:
urls = mac_urls
sha256 = mac_sha256
elif os_result.is_ubuntu:
urls = ubuntu_urls
sha256 = ubuntu_sha256
else:
fail("Operating system is NOT supported", attr = os_result)
# Fetch the binary from mirrors.
output = repository_ctx.path("buildifier")
repository_ctx.download(urls, output, sha256, executable = True)
# Add the BUILD file.
repository_ctx.symlink(
Label("@drake//tools/workspace/buildifier:package.BUILD.bazel"),
"BUILD.bazel",
)
# Create a summary file for for Drake maintainers. We need to list all
# possible binaries so Drake's mirroring scripts will fetch everything.
generate_repository_metadata(
repository_ctx,
repository_rule_type = "manual",
version = version,
downloads = [
{
"urls": mac_urls,
"sha256": mac_sha256,
},
{
"urls": ubuntu_urls,
"sha256": ubuntu_sha256,
},
],
)
buildifier_repository = repository_rule(
attrs = {
"mirrors": attr.string_list_dict(),
},
implementation = _impl,
)
|
def largest_palindrome_product(digit_num):
pals = list()
for i in range(1,10**digit_num):
for j in range(1,10**digit_num):
n = (10**digit_num-i)*(10**digit_num-j)
p = ""
for i in range(1,len(str(n))+1):
p = p + str(n)[-i]
if p == str(n):
pals.append(n)
largest_pal = 0
for _ in pals:
if _ > largest_pal:
largest_pal = _
return largest_pal
assert largest_palindrome_product(3) == 90909
assert largest_palindrome_product(2) == 9009
print(largest_palindrome_product(1))
|
def LEFT(i):
return 2*i + 1
def RIGHT(i):
return 2*i + 2
def swap(A, i, j):
temp = A[i]
A[i] = A[j]
A[j] = temp
def heapify(A, i, size):
left = LEFT(i)
right = RIGHT(i)
largest = i
if left < size and A[left] > A[i]:
largest = left
if right < size and A[right] > A[largest]:
largest = right
if largest != i:
swap(A, i, largest)
heapify(A, largest, size)
def pop(A, size):
if size <= 0:
return -1
top = A[0]
A[0] = A[size - 1]
heapify(A, 0, size - 1)
return top
def heapsort(A):
n = len(A)
i = (n - 2) // 2
while i >= 0:
heapify(A, i, n)
i = i - 1
while n:
A[n - 1] = pop(A, n)
n = n - 1
if __name__ == '__main__':
A = [6, 4, 7, 1, 9, -2]
heapsort(A)
print(A) |
print('Normalmente, quantos litros de sangue uma pessoa tem? Em média, quantos são retirados numa doação de sangue? \n a) Tem entre 2 a 4 litros. São retirados 450 mililitros. \n b) Tem entre 4 a 6 litros. São retirados 450 mililitros. \n c) Tem 10 litros. São retirados 2 litros. \n d) Tem 7 litros. São retirados 1,5 litros. \n e) Tem 0,5 litros. São retirados 0,5 litros. \n resposta:' )
resposta = input().lower()
if resposta == "b":
print(":) PARABÉNSSS, você acertou!!! ^_^ ")
elif resposta == "a":
print(':( não foi desta vez')
elif resposta == "c":
print('Você errou bobinho(a) ¯\_(ツ)_/¯')
elif resposta == "d":
print(':’( Você pode tantar quantas vezes quiser! ')
elif resposta == "e" :
print ( 'Não fique triste, você pode tentar mais vezes! ಠ_ಠ' )
else:
print('Você não selecionou a, b, c, d ou ae, tente novamente!!')
|
# точка в правоъгълник
# Проверка дали точка {x, y} се намира вътре в правоъгълника {x1, y1} – {x2, y2}. Входните данни се четат от конзолата и се състоят от 6 реда:
# десетичните числа x1, y1, x2, y2, x и y (като се гарантира, че x1 < x2 и y1 < y2).
x1 = float(input())
y1 = float(input())
x2 = float(input())
y2 = float(input())
x = float(input())
y = float(input())
if x1 <= x <= x2 and y1 <= y <= y2:
print('Inside')
else:
print('Outside') |
class APIException(Exception):
"""
Encapsulates HTTP errors thrown by the microcosm API.
"""
def __init__(self, error_message, status_code=None, detail=None):
self.status_code = status_code
self.detail = detail
super(APIException, self).__init__(error_message)
def __str__(self):
return 'HTTP status: %d: %s' % (self.status_code, self.message) |
# -*- coding:utf-8 -*-
__author__ = 'lee'
"""
数据库自定义异常
"""
class ExistError(Exception):
def __init__(self, exist, message):
self.exist = exist
self.message = message
def __str__(self):
return repr(self.message)
class NotExistError(Exception):
def __init__(self, notexist, message):
self.notexist = notexist
self.message = message
def __str__(self):
return repr(self.message)
class OutRangeError(Exception):
def __init__(self, table, message):
self.table = table
self.message = message
def __str__(self):
return repr(self.message)
class InsertError(Exception):
def __init__(self, table, message):
self.table = table
self.message = message
def __str__(self):
return repr(self.message)
class CommonError(Exception):
def __init__(self, message):
self.message = message
def __str__(self):
return repr(self.message)
|
# -*- coding: utf-8 -*-
"""
@author: mwahdan
"""
class NluDataset:
def __init__(self, text, tags, intents):
self.text = text
self.tags = tags
self.intents = intents |
""" Model for Player """
class Player:
""" Player class """
def __init__(self, player_name):
self.name = player_name
def say_hello(self):
""" Function used by player to introduce him/her self """
print("Hello, I'm ", self.name)
def score_runs(self, runs):
""" Function used to capture runs scored by a player """
print(self.name + " has just scored " + str(runs) + " runs" )
def main():
srt = Player("Sachin Tendulkar")
srt.say_hello()
srt.score_runs(100)
vk = Player("Virat Kohli")
vk.say_hello()
vk.score_runs(50)
if __name__ == '__main__':
main() |
values = {
frozenset(("id=72", "vaultUserPermissions%5B2%5D=readOnly")): {
"status_code": "200",
"text": {
"responseData": {},
"responseHeader": {
"now": 1492630700324,
"requestId": "WPe8rAoQgF4AADVcyb0AAAAv",
"status": "ok",
},
"responseStatus": "ok",
},
},
frozenset(("vaultUserPermissions%5B274%5D=disabled", "id=95")): {
"status_code": "200",
"text": {
"responseData": {},
"responseHeader": {
"now": 1492630700324,
"requestId": "WPe8rAoQgF4AADVcyb0AAAAv",
"status": "ok",
},
"responseStatus": "ok",
},
},
frozenset(("vaultUserPermissions%5B274%5D=disabled", "id=12")): {
"status_code": "200",
"text": {
"responseData": {},
"responseHeader": {
"now": 1492630700324,
"requestId": "WPe8rAoQgF4AADVcyb0AAAAv",
"status": "ok",
},
"responseStatus": "ok",
},
},
frozenset(("vaultUserPermissions%5B274%5D=readOnly", "id=72")): {
"status_code": "200",
"text": {
"responseData": {},
"responseHeader": {
"now": 1492630700324,
"requestId": "WPe8rAoQgF4AADVcyb0AAAAv",
"status": "ok",
},
"responseStatus": "ok",
},
},
frozenset(("vaultUserPermissions%5B274%5D=readOnly", "id=14")): {
"status_code": "500",
"text": {
"responseData": {},
"responseHeader": {
"now": 1492630700324,
"requestId": "WPe8rAoQgF4AADVcyb0AAAAv",
"status": "ok",
},
"responseStatus": "ok",
},
},
frozenset(("vaultUserPermissions%5B274%5D=disabled", "id=72")): {
"status_code": "200",
"text": {
"responseData": {},
"responseHeader": {
"now": 1492630700324,
"requestId": "WPe8rAoQgF4AADVcyb0AAAAv",
"status": "ok",
},
"responseStatus": "ok",
},
},
}
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def get_inputs():
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# I N P U T S #
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# Atmosphere options
Atmosphere = 0 # 0 for mutant US62/US76 standard atmosphere, 1 for NRLMSISE-00
#nrlmsise-00 options.
nrlmsise00_year = 0.
nrlmsise00_doy = 172.
nrlmsise00_sec = 29000.
nrlmsise00_lst = 16.
nrlmsise00_f107a = 150.
nrlmsise00_f107 = 150.
nrlmsise00_ap = 4.
# Aerodynamics solver options
ContinuumMethod = 0 # 1 for Classic Newtonian, 0 for Modified Newtonian
# Spacecraft dimensions and parameters
GeometryChoice = 0 # choice of box or plate or sphere (at the moment only box is available)
scWidth = 3.4 # Width [m]
scDepth = 4.8 # Depth [m]
scHeight = 2.35 # Height [m]
scDensity = 1000. # Density of spacecraft [kg/m3]
# Initial Spacecraft Conditions
FlightPathAngle = -0.5 # Positive down [deg]
Heading = 102. # Measured clockwise from North [deg]
Speed = 7500. # Velocity
Latitude = -79.8489 # [deg] Actually Declination. Geodetic Latitude input will be implemented soon
Longitude = -10 # [deg]
Altitude = 200e3 # Initial altitude [m]
Pitch = 0. # Euler Angle 1 measured from Geocentric coordinate system
Yaw = 0. # Euler Angle 2 measured from Geocentric coordinate system
Roll = 0. # Euler Angle 3 measured from Geocentric coordinate system
omega_x = 0. #3.14 # Angular velocity about the BODY x- axis [deg/s]
omega_y = 1. #0.314 # Angular velocity about the BODY y- axis [deg/s]
omega_z = 0. #314 # Angular velocity about the BODY z- axis [deg/s]
# Integration parameters
ndt = 1001 # Number of output steps
tmax = 1500 # time [s]
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# P O S T P R O C E S S I N G O P T I O N S #
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# Postprocessing Options
Run_name = 'Run01'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# M O D E L P A R A M E T E R S #
# (Not necessary to touch this) #
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Earthmu = 398600.4415e9 # Earth gravity constant
EarthRad = 6378.137e3 # Earth radius
EarthJ2 = 1.0826230e-3 # Earth J2
EarthOmega = 4.1780741e-3 # Earth angular velocity [deg/s]
KnFM = 10 # Knudsen number for free-molecular flow
KnCont = 0.001 # Knudsen number for continuum flow
a1 = 3./8 # Bridging function coefficient 1
a2 = 1./8 # Bridging function coefficient 2
SigN = 0.9 # Normal momentum accomodation coefficient
SigT = 0.9 # Tangential momentum accomodation coefficient
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# A S S E M B L E I N P U T S #
# (Not necessary to touch this) #
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
inputDictionary = dict([('Atmosphere' , Atmosphere),
('nrlmsise00_year' , nrlmsise00_year),
('nrlmsise00_doy' , nrlmsise00_doy),
('nrlmsise00_sec' , nrlmsise00_sec),
('nrlmsise00_lst' , nrlmsise00_lst),
('nrlmsise00_f107a' ,nrlmsise00_f107a),
('nrlmsise00_f107' , nrlmsise00_f107),
('nrlmsise00_ap' , nrlmsise00_ap),
('ContinuumMethod' , ContinuumMethod),
('GeometryChoice' , GeometryChoice),
('scWidth' , scWidth),
('scDepth' , scDepth),
('scHeight' , scHeight),
('scDensity' , scDensity),
('tmax' , tmax),
('ndt' , ndt),
('FlightPathAngle' , FlightPathAngle),
('Heading' , Heading),
('Speed' , Speed),
('Latitude' , Latitude),
('Longitude' , Longitude),
('Altitude' , Altitude),
('Pitch' , Pitch),
('Yaw' , Yaw),
('Roll' , Roll),
('omega_x' , omega_x),
('omega_y' , omega_y),
('omega_z' , omega_z),
('Earthmu' , Earthmu),
('EarthRad' , EarthRad),
('EarthJ2' , EarthJ2),
('EarthOmega' , EarthOmega),
('KnFM' , KnFM),
('KnCont' , KnCont),
('a1' , a1),
('a2' , a2),
('SigN' , SigN),
('SigT' , SigT)])
return inputDictionary
|
IX86_UNCONDITIONAL_JMP_CALLS = ["JMP", "JMP_SHORT", "JMP_FAR", "CALL"]
IX86_CONDITIONAL_JMP_CALLS = [
"JA",
"JA_SHORT",
"JNBE",
"JNBE_SHORT",
"JAE",
"JAE_SHORT",
"JNB",
"JNB_SHORT",
"JB",
"JB_SHORT",
"JBAE",
"JBAE_SHORT",
"JC",
"JC_SHORT",
"JBE",
"JBE_SHORT",
"JBZ",
"JBZ_SHORT",
"JBNA",
"JBNA_SHORT",
"JE",
"JE_SHORT",
"JZ",
"JZ_SHORT",
"JG",
"JG_SHORT",
"JNLE",
"JNLE_SHORT",
"JGE",
"JGE_SHORT",
"JNL",
"JNL_SHORT",
"JL",
"JL_SHORT",
"JNGE",
"JNGE_SHORT",
"JLE",
"JLE_SHORT",
"JNG",
"JNG_SHORT",
"JNE",
"JNE_SHORT",
"JNZ",
"JNZ_SHORT",
"JNO",
"JNO_SHORT",
"JNS",
"JNS_SHORT",
"JNP",
"JNP_SHORT",
"JPO",
"JPO_SHORT",
"JO",
"JO_SHORT",
"JP",
"JP_SHORT",
"JPE",
"JPE_SHORT",
"JS",
"JS_SHORT",
]
|
# Programowanie I R
# Zadania - seria 4.
# Zadanie 2.
#***********************************************************************************
# Klasa Stack
#***********************************************************************************
class Stack:
def __init__(self):
self._items = []
def is_empty(self):
return not self._items
def push(self, item):
if item:
self._items.append(item)
return True
else:
return False
def pop(self):
if self.is_empty():
return None
else:
return self._items.pop()
def peek(self):
if self.is_empty():
return None
else:
return self._items[-1]
def size(self):
return len(self._items)
#***********************************************************************************
# Główny kod programu
#***********************************************************************************
s = Stack()
for arg in sys.argv[1:]:
s.push(arg)
while not s.is_empty():
print(s.pop()) |
#!/usr/bin/env python
#Lists
categoryList = []
factList = []
caseList = []
saList = []
ruleList = []
erList = []
foList = []
evalList = []
#Operations
AND = " AND "
OR = " OR "
NEG = " NEG "
IMPLY = " IMPLY "
EQUALS = " EQUALS "
LESSER = " LESSER "
GREATER = " GREATER "
#Classes
class Category(object):
def __init__(self, name=None, description=None):
self.name = name
self.description = description
class Fact(object):
def __init__(self, name=None, category=None, description=None, value=None):
self.name = name
self.category = category
self.description = description
self.value = value
class SecurityAttribute(object):
def __init__(self, name=None, description=None):
self.name = name
self.description = description
class Rule(object):
def __init__(self, elements=[]):
self.elements = elements #facts + operators
class EvaluationRule(object):
def __init__(self, elements=None, influence=None, security_attribute=None):
self.elements = elements #facts + operators
self.influence = influence #influence value
self.security_attribute = security_attribute
class FactsOrder(object):
def __init__(self, elements=[], security_attribute=None):
self.elements = elements
self.security_attribute = security_attribute
class Case(object):
def __init__(self, casename=None, facts=None, description=None):
self.casename = casename
self.facts = facts
self.description = description
class Evaluation(object):
def __init__(self, elements=[], description=None, results_name=[], results_value=[]):
self.elements = elements
self.description = description
self.results = results #dictionary - sec_att: value |
def median3():
numbers1 = input("What numbers are we finding the median of?: ")
numbers1 = numbers1.split(",")
num = []
for i in numbers1:
i = float(i)
n = num.append(i)
n1 = num.sort()
z = len(num)
if z % 2 == 0:
median1 = num[z//2]
median2 = num[z//2-1]
median = (median1 + median2)/2
else:
median = num[z//2]
median = float(median)
print(f"The Median is: {median}")
median3()
|
POSTGRES_USER=test
POSTGRES_PASSWORD=password
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DB=example |
"""
Given a string s formed by digits ('0' - '9') and '#' . We want to map s to
English lowercase characters as follows:
- Characters ('a' to 'i') are represented by ('1' to '9') respectively.
- Characters ('j' to 'z') are represented by ('10#' to '26#')
respectively.
Return the string formed after mapping.
It's guaranteed that a unique mapping will always exist.
Example:
Input: s = "10#11#12"
Output: "jkab"
Explanation: "j" -> "10#" , "k" -> "11#" , "a" -> "1" , "b" -> "2".
Example:
Input: s = "1326#"
Output: "acz"
Example:
Input: s = "25#"
Output: "y"
Example:
Input: s = "12345678910#11#12#13#14#15#16#17#18#19#20#21#22#23#24#25#26#"
Output: "abcdefghijklmnopqrstuvwxyz"
Constraints:
- 1 <= s.length <= 1000
- s[i] only contains digits letters ('0'-'9') and '#' letter.
- s will be valid string such that mapping is always possible.
"""
#Difficulty: Easy
#40 / 40 test cases passed.
#Runtime: 24 ms
#Memory Usage: 13.6 MB
#Runtime: 24 ms, faster than 95.15% of Python3 online submissions for Decrypt String from Alphabet to Integer Mapping.
#Memory Usage: 13.6 MB, less than 97.44% of Python3 online submissions for Decrypt String from Alphabet to Integer Mapping.
class Solution:
def freqAlphabets(self, s: str) -> str:
string = ''
length = len(s) - 1
while length >= 0:
if s[length] == '#':
string = chr(96 + int(s[length-2:length])) + string
s = s[:length-2]
else:
string = chr(96 + int(s[length])) + string
s = s[:length]
length = len(s) - 1
return string
|
# Reverse Cipher
# https://www.nostarch.com/crackingcodes/ (BSD Licensed)
# message = 'Three can keep a secret, if two of them are dead.'
# message = '.daed era meht fo owt fi ,terces a peek nac eerhT'
message = input('Enter message: ')
translated = ''
i = len(message) - 1
while i >= 0:
translated = translated + message[i]
print('i is', i, ', message[i] is', message[i], ', translated is', translated)
i = i - 1
print(translated)
|
# Input: nums = [0,1,2,2,3,0,4,2], val = 2
# Output: 5, nums = [0,1,4,0,3]
def removeElement(arr, element):
dictonary = {}
output = 0
for iter in arr:
if iter in dictonary:
dictonary[iter] += 1
else:
dictonary[iter] = 1
# {0: 2, 1: 1, 3: 1, 4: 1}
delete = int(dictonary.get(element))
for i in range(delete):
arr.remove(element)
del dictonary[element]
output = sum(dictonary.values())
return arr, output
arr = [0, 1, 2, 2, 3, 0, 4, 2]
element = 2
nums, output = removeElement(arr, 2)
print(nums, "::", output)
|
# Define a coverage report
#
# Arguments:
# name : prefix of generated targets
# tests : list of test targets run for the report
# srcpath_include : (optional) list of path prefixes used to restrict data from matching sourcefiles
# srcpath_exclude : (optional) list of path prefixes used to exclude data from matching sourcefiles
#
# Generated Targets:
# name.suite : test_suite of tests
# name.lcov.unfiltered : merger of LCOV tracefiles from individual tests
# name.lcov : filtered version of merged LCOV tracefile
#
# Sourcepath Filtering:
# - A path matching any prefix in srcpath_include is included
# - A path matching any prefix in srcpath_exclude is excluded
# - A path that is both included and excluded is treated as excluded
# - If srcpath_included is omitted or empty then all paths are treated as included
# - The filtered tracefile contains all paths that are included and not excluded
def coverage_report(name, tests, srcpath_include = [], srcpath_exclude = []):
native.test_suite(
name = name + ".suite",
tests = ["@{}".format(t) for t in tests],
)
lcovs = ["@results//:{}.LCOVTracefile".format(t[2:].replace(":", "/")) for t in tests]
native.genrule(
name = "{}.lcov.unfiltered".format(name),
srcs = lcovs,
outs = ["{}/lcov.unfiltered".format(name)],
tools = [":merge_lcov"],
cmd = "python $(location :merge_lcov) $(SRCS) >$@",
)
spi = " ".join(srcpath_include)
spe = " ".join(["-" + x for x in srcpath_exclude])
native.genrule(
name = "{}.lcov".format(name),
srcs = ["{}.lcov.unfiltered".format(name)],
outs = ["{}/lcov".format(name)],
tools = [":filter_lcov"],
cmd = "python $(location :filter_lcov) <$< >$@ {} {}".format(spi, spe),
)
|
nota1 = float(input('\033[36mQual sua primeira nota? '))
nota2 = float(input('Qual a sua segunda nota? '))
med = (nota1 + nota2) / 2
print('\033[35mSua média é {:.1f}'.format(med))
if med < 5.0:
print('Seu Resultado: \033[31mREPROVADO')
elif 7 > med >= 5:
print('Seu Resultado: \033[33mRECUPERAÇÃO')
else:
print('Seu Resultado: \033[32mAPROVADO')
|
# arrays
bonus = [0.005, 0.12, 0.345, 0.68, 1.125, 1.68, 2.345, 3.12, 4.005, 5 , 6.105, 7.32 ]
loss = [0]
probability = [0.359, 0.330, 0.3 , 0.27 , 0.24, 0.21 , 0.18, 0.15 , 0.12, 0.09 , 0.06, 0.03 ]
time = []
cookies_lost = []
# constants
cps = 11.696 #quadrillion
# counters
total_time = 0
# calculations
i = 0
while i < 11:
loss.append(bonus[i] - bonus[i-1])
i = i + 1
i = 0
while i < 12:
time.append(100/probability[i])
cookies_lost.append(cps*loss[i]*time[i])
i = i + 1
# questions
current_wrinklers = int(input("How many Wrinklers do you have? - "))
spend = float(input("How much are you spending? [quad] - "))
gain = float(input("what's the cps gain? [%] - "))
# calculations
cookies_gained = cps * gain/100 * time[current_wrinklers-1]
change = cookies_gained - cookies_lost[current_wrinklers-1]
# results
print("the wrinkler will be offline for " + str(time[current_wrinklers-1]) + " s")
print("you will gain " + str(cookies_gained) + " quadrillion cookies")
print("you will lose " + str(cookies_lost[current_wrinklers-1]) + " quadrillion cookies")
print("total chage - " + str(change) + " quadrillion cookies")
|
#
# PySNMP MIB module RADLAN-CDB-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RADLAN-CDB-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:45:42 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")
ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint")
rnd, = mibBuilder.importSymbols("RADLAN-MIB", "rnd")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Counter64, MibIdentifier, ModuleIdentity, TimeTicks, Gauge32, Bits, Unsigned32, Counter32, Integer32, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, iso, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "MibIdentifier", "ModuleIdentity", "TimeTicks", "Gauge32", "Bits", "Unsigned32", "Counter32", "Integer32", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "iso", "ObjectIdentity")
DisplayString, TruthValue, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TruthValue", "TextualConvention")
rlCDB = ModuleIdentity((1, 3, 6, 1, 4, 1, 89, 94))
rlCDB.setRevisions(('2007-01-02 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: rlCDB.setRevisionsDescriptions(('Initial revision.',))
if mibBuilder.loadTexts: rlCDB.setLastUpdated('200701020000Z')
if mibBuilder.loadTexts: rlCDB.setOrganization('Radlan - a MARVELL company. Marvell Semiconductor, Inc.')
if mibBuilder.loadTexts: rlCDB.setContactInfo('www.marvell.com')
if mibBuilder.loadTexts: rlCDB.setDescription('This private MIB module defines CDB private MIBs.')
rlStartupCDBChanged = MibScalar((1, 3, 6, 1, 4, 1, 89, 94, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlStartupCDBChanged.setStatus('current')
if mibBuilder.loadTexts: rlStartupCDBChanged.setDescription("Indicates whether the startup CDB has changed between the router's last two reboots")
rlManualReboot = MibScalar((1, 3, 6, 1, 4, 1, 89, 94, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlManualReboot.setStatus('current')
if mibBuilder.loadTexts: rlManualReboot.setDescription('Indicates whether the device was shutdown orderly before reboot or not (i.e. power failure)')
rlStartupCDBEmpty = MibScalar((1, 3, 6, 1, 4, 1, 89, 94, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlStartupCDBEmpty.setStatus('current')
if mibBuilder.loadTexts: rlStartupCDBEmpty.setDescription('Indicates whether the startup-cdb is empty, meaning: does not include any user configuration.')
mibBuilder.exportSymbols("RADLAN-CDB-MIB", rlCDB=rlCDB, PYSNMP_MODULE_ID=rlCDB, rlStartupCDBChanged=rlStartupCDBChanged, rlStartupCDBEmpty=rlStartupCDBEmpty, rlManualReboot=rlManualReboot)
|
# atom
# : OPEN_PAREN (yield_expr | testlist_comp)? CLOSE_PAREN
# | OPEN_BRACKET testlist_comp? CLOSE_BRACKET
# | OPEN_BRACE dictorsetmaker? CLOSE_BRACE
# | REVERSE_QUOTE testlist COMMA? REVERSE_QUOTE
# | dotted_name
# | ELLIPSIS
# | name
# | PRINT
# | EXEC
# | MINUS? number
# | NONE
# | STRING+
# ;
# OPEN_PAREN CLOSE_PAREN
()
# OPEN_PAREN yield_expr CLOSE_PAREN
def f():
(yield)
# OPEN_PAREN testlist_comp CLOSE_PAREN
(x, a, q == 1)
# OPEN_BRACKET CLOSE_BRACKET
[]
# OPEN_BRACKET testlist_comp CLOSE_BRACKET
[1, 3, b, p == 1]
# OPEN_BRACE CLOSE_BRACE
{}
# OPEN_BRACE dictorsetmaker CLOSE_BRACE
{x : y for x, y in a}
# dotted_name
b.a
# ELLIPSIS
...
# name
f
# number
90
# MINUS number
-1
# NONE
None
# STRING
"12312313"
# STRING STRING
"1231231" "123151"
|
name = "Maciek"
age = 22
print("imie:", name, "\nwiek:", age)
fovoruite_language = "Python"
print(age + 4)
fact_or_fiction = 3 < 5
print(fact_or_fiction)
|
#encoding: utf8
"""
(C) 2012 by Maho (?ukasz Mach)
License: GPL
Poor man's i18n support for Pyjamas.
_("identifier") returns you translated version of "identifier". If you want
original (English) version, just do nothing. If you want other language
(eg. PL), please import translation_pl in your project, when it's content
is:
from pyjamas.locale import msgs
msgs["Week"] = "Tydzień"
msgs["Jan"] = "Sty"
msgs["January"] = "Styczeń"
msgs["Other eng identifier you'd like to translate"] = "Inny ang. identyfikator który chciałbyś przetłumaczyć"
"""
msgs = {}
def _(identifier):
return msgs.get(identifier,identifier)
|
# def test_one():
# assert sum([1, 12], 2) == 15
#
#
# test_one()
def my_unit_test(func):
def wrapper(a):
print(f'my unit test started for {a}')
func(a)
print('my unit test ended')
return wrapper
# @my_unit_test
# def test_one(a):
# assert sum([1, 12], a) == 15
# test_one(1)
@my_unit_test
def test_2(a):
assert a in [1, 2, 3]
test_2(1)
my_unit_test(test_2(3))
# test_one(1 + 1)
# test_2(2)
# my_unit_test(test_one)(2)
|
'''
this util is made to validate the subdomains getting added into the hosts
if they're like the main subdomain the program is scanning. then it should pass
otherwise it shouldn't return anything
'''
def vSubdomains(sList, huntingTarget):
mainSubdomains = []
for singleSubdomain in sList:
if singleSubdomain[-len(huntingTarget):] == huntingTarget:
mainSubdomains.append(singleSubdomain)
else:
pass
return mainSubdomains
|
n = int(input('Enter number: '))
flag = False
if n > 1:
for i in range(2, int(n**0.5)+1): # we only need to check up to square root
if n % i == 0:
print(f"{n} divides by {i}")
flag = True
break
if flag:
print(n, 'is not a prime number')
else:
print(n, 'is a prime number') |
# https://github.com/carpedm20/emoji
# http://www.unicode.org/emoji/charts/full-emoji-list.html
class Button:
Camera = u'\U0001F4F7'
FileFolder = u'\U0001F4C1'
FileFolderOpen = u'\U0001F4C2'
RightArrowUp = u'\U00002934'
RightArrowDown = u'\U00002935'
CrossMarkRed = u'\U0000274C'
CheckMark = u'\U00002714'
CheckMarkGreen = u'\U00002705'
CircleArrow = u'\U0001F504'
QuestionMark = u'\U00002754'
MarkWarning = u'\U000026A0'
NoEntry = u'\U000026D4'
Like = u'\U0001F44D'
Dislike = u'\U0001F44E\U0001F3FF'
Writing = u'\U0000270D'
Automobile = u'\U0001F697'
Hourglass = u'\U000023F3'
WatchClock = u'\U0000231A'
AlarmClock = u'\U000023F0'
Bell = u'\U0001F514'
Telephone = u'\U0000260E'
HammerWork = u'\U00002692'
WrenchWork = u'\U0001F527'
Worker = u'\U0001F477'
ManShadow = u'\U0001F464'
GroupShadow = u'\U0001F465'
Money = u'\U0001F4B0'
Calendar = u'\U0001F4C5'
Clipboard = u'\U0001F4CB'
WasteBasket = u'\U0001F5D1'
ChequeredFlag = u'\U0001F3C1'
Man = u'\U0001F468'
SpeakingHead = u'\U0001F5E3'
class Country:
UnitedKingdom = u'\U0001F1EC\U0001F1E7'
Russia = u'\U0001F1F7\U0001F1FA'
Armenia = u'\U0001F1E6\U0001F1F2'
Azerbaijan = u'\U0001F1E6\U0001F1FF'
Belarus = u'\U0001F1E7\U0001F1FE'
China = u'\U0001F1E8\U0001F1F3'
Estonia = u'\U0001F1EA\U0001F1EA'
Georgia = u'\U0001F1EC\U0001F1EA'
Kyrgyzstan = u'\U0001F1F0\U0001F1EC'
Kazakhstan = u'\U0001F1F0\U0001F1FF'
Lithuania = u'\U0001F1F1\U0001F1F9'
Latvia = u'\U0001F1F1\U0001F1FB'
Moldova = u'\U0001F1F2\U0001F1E9'
Poland = u'\U0001F1F5\U0001F1F1'
Tajikistan = u'\U0001F1F9\U0001F1EF'
Turkmenistan = u'\U0001F1F9\U0001F1F2'
Ukraine = u'\U0001F1FA\U0001F1E6'
Uzbekistan = u'\U0001F1FA\U0001F1FF'
USA = u'\U0001F1FA\U0001F1F8'
|
def parse_password_data(string):
# This function the password data into the 4 usable components: e.g. "1-9 x: xwjgxtmrzxzmkx"
minbound, maxbound, letter, passwords = [], [], [], []
for line in string:
firstpart = line.split(sep = '-')
secondpart = firstpart[-1].split(sep = ' ', maxsplit = 1)
thirdpart = secondpart[-1].split(sep = ': ')
minbound.append(int(firstpart[0]))
maxbound.append(int(secondpart[0]))
letter.append(str(thirdpart[0]))
passwords.append(str(thirdpart[-1]))
return minbound, maxbound, letter, passwords
def password_analyzer_one(minbound, maxbound, letter, passwords):
# This function test the validity of the password based on the rules:
# Each line gives the password policy and then the password.
# The password policy indicates the lowest and highest number of times a given letter must appear for the password to be valid.
# For example, "1-3 a" means that the password must contain a at least 1 time and at most 3 times.
valid_count = 0
for i in range(len(passwords)):
occurances = passwords[i].count(letter[i])
if minbound[i] <= occurances <= maxbound[i]:
valid_count += 1
return valid_count
def password_analyzer_two(minbound, maxbound, letter, passwords):
# This function test the validity of the password based on the rules:
# Each policy actually describes two positions in the password, where 1 means the first character, 2 means the second character, and so on.
# (Be careful; Toboggan Corporate Policies have no concept of "index zero"!)
# Exactly one of these positions must contain the given letter.
# Other occurrences of the letter are irrelevant for the purposes of policy enforcement.
valid_count = 0
for i in range(len(passwords)):
firstpos = passwords[i][minbound[i]-1] == letter[i]
secondpos = passwords[i][maxbound[i]-1] == letter[i]
# XOR hack
if firstpos != secondpos:
valid_count += 1
return valid_count |
def indenter():
return " " * 4
def indent(n, lines, start, stop):
i = n * indenter()
for j in range(start, stop):
lines[j] = i + lines[j]
return lines
def check_shape(shape, typename):
if len(shape) == 1 and typename == "Polyvertex":
return True
if len(shape) != 2:
return False
if shape[1] == 3 and typename == "Triangle":
return True
if shape[1] == 4 and typename == "Quadrilateral":
return True
if shape[1] == 8 and typename == "Hexahedron":
return True
return False
def join_as_string(arg, sep):
return sep.join([str(i) for i in arg])
|
__all__ = [
'CommandHelpers',
'CommandManager',
'CommandRegistry',
'CommandManagerCallback'
]
|
"""
Given an integer, n, and n space-separated integers as input, create a tuple, t, of those n integers. Then compute and print the result of
hash(t).
Note: hash() is one of the functions in the __builtins__ module, so it need not be imported.
"""
if __name__ == '__main__':
n = int(input("Enter the length\n"))
integer_list = map(int, input().split())
t = tuple(integer_list)
print(hash(t))
|
# ------------------------------------------------------------------------
# File: model_info.py
# ------------------------------------------------------------------------
# Licensed Materials - Property of IBM
# 5725-A06 5725-A29 5724-Y48 5724-Y49 5724-Y54 5724-Y55 5655-Y21
# Copyright IBM Corporation 2008, 2020. All Rights Reserved.
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with
# IBM Corp.
# ------------------------------------------------------------------------
"""Modeling information IDs returned by the Callable Library.
This module defines symbolic names for the integer modeling information
IDs returned by the Callable Library. The names to which the modeling
information IDs are assigned are the same names used in the Callable
Library, all of which begin with CPXMI. The modeling information IDs are
accessible through the modeling assistance callback. These symbolic names
can be used to test if a particular modeling issue has been detected.
See `Cplex.set_modeling_assistance_callback`.
"""
CPXMI_BIGM_COEF = 1040
"""See :macros:`CPXMI_BIGM_COEF` in the C API."""
CPXMI_BIGM_TO_IND = 1041
"""See :macros:`CPXMI_BIGM_TO_IND` in the C API."""
CPXMI_BIGM_VARBOUND = 1042
"""See :macros:`CPXMI_BIGM_VARBOUND` in the C API."""
CPXMI_CANCEL_TOL = 1045
"""See :macros:`CPXMI_CANCEL_TOL` in the C API."""
CPXMI_EPGAP_LARGE = 1038
"""See :macros:`CPXMI_EPGAP_LARGE` in the C API."""
CPXMI_EPGAP_OBJOFFSET = 1037
"""See :macros:`CPXMI_EPGAP_OBJOFFSET` in the C API."""
CPXMI_FEAS_TOL = 1043
"""See :macros:`CPXMI_FEAS_TOL` in the C API."""
CPXMI_FRACTION_SCALING = 1047
"""See :macros:`CPXMI_FRACTION_SCALING` in the C API."""
CPXMI_IND_NZ_LARGE_NUM = 1019
"""See :macros:`CPXMI_IND_NZ_LARGE_NUM` in the C API."""
CPXMI_IND_NZ_SMALL_NUM = 1020
"""See :macros:`CPXMI_IND_NZ_SMALL_NUM` in the C API."""
CPXMI_IND_RHS_LARGE_NUM = 1021
"""See :macros:`CPXMI_IND_RHS_LARGE_NUM` in the C API."""
CPXMI_IND_RHS_SMALL_NUM = 1022
"""See :macros:`CPXMI_IND_RHS_SMALL_NUM` in the C API."""
CPXMI_KAPPA_ILLPOSED = 1035
"""See :macros:`CPXMI_KAPPA_ILLPOSED` in the C API."""
CPXMI_KAPPA_SUSPICIOUS = 1033
"""See :macros:`CPXMI_KAPPA_SUSPICIOUS` in the C API."""
CPXMI_KAPPA_UNSTABLE = 1034
"""See :macros:`CPXMI_KAPPA_UNSTABLE` in the C API."""
CPXMI_LB_LARGE_NUM = 1003
"""See :macros:`CPXMI_LB_LARGE_NUM` in the C API."""
CPXMI_LB_SMALL_NUM = 1004
"""See :macros:`CPXMI_LB_SMALL_NUM` in the C API."""
CPXMI_LC_NZ_LARGE_NUM = 1023
"""See :macros:`CPXMI_LC_NZ_LARGE_NUM` in the C API."""
CPXMI_LC_NZ_SMALL_NUM = 1024
"""See :macros:`CPXMI_LC_NZ_SMALL_NUM` in the C API."""
CPXMI_LC_RHS_LARGE_NUM = 1025
"""See :macros:`CPXMI_LC_RHS_LARGE_NUM` in the C API."""
CPXMI_LC_RHS_SMALL_NUM = 1026
"""See :macros:`CPXMI_LC_RHS_SMALL_NUM` in the C API."""
CPXMI_MULTIOBJ_COEFFS = 1062
"""See :macros:`CPXMI_MULTIOBJ_COEFFS` in the C API."""
CPXMI_MULTIOBJ_LARGE_NUM = 1058
"""See :macros:`CPXMI_MULTIOBJ_LARGE_NUM` in the C API."""
CPXMI_MULTIOBJ_MIX = 1063
"""See :macros:`CPXMI_MULTIOBJ_MIX` in the C API."""
CPXMI_MULTIOBJ_OPT_TOL = 1060
"""See :macros:`CPXMI_MULTIOBJ_OPT_TOL` in the C API."""
CPXMI_MULTIOBJ_SMALL_NUM = 1059
"""See :macros:`CPXMI_MULTIOBJ_SMALL_NUM` in the C API."""
CPXMI_NZ_LARGE_NUM = 1009
"""See :macros:`CPXMI_NZ_LARGE_NUM` in the C API."""
CPXMI_NZ_SMALL_NUM = 1010
"""See :macros:`CPXMI_NZ_SMALL_NUM` in the C API."""
CPXMI_OBJ_LARGE_NUM = 1001
"""See :macros:`CPXMI_OBJ_LARGE_NUM` in the C API."""
CPXMI_OBJ_SMALL_NUM = 1002
"""See :macros:`CPXMI_OBJ_SMALL_NUM` in the C API."""
CPXMI_OPT_TOL = 1044
"""See :macros:`CPXMI_OPT_TOL` in the C API."""
CPXMI_PWL_SLOPE_LARGE_NUM = 1064
"""See :macros:`CPXMI_PWL_SLOPE_LARGE_NUM` in the C API."""
CPXMI_PWL_SLOPE_SMALL_NUM = 1065
"""See :macros:`CPXMI_PWL_SLOPE_SMALL_NUM` in the C API."""
CPXMI_QC_LINNZ_LARGE_NUM = 1015
"""See :macros:`CPXMI_QC_LINNZ_LARGE_NUM` in the C API."""
CPXMI_QC_LINNZ_SMALL_NUM = 1016
"""See :macros:`CPXMI_QC_LINNZ_SMALL_NUM` in the C API."""
CPXMI_QC_QNZ_LARGE_NUM = 1017
"""See :macros:`CPXMI_QC_QNZ_LARGE_NUM` in the C API."""
CPXMI_QC_QNZ_SMALL_NUM = 1018
"""See :macros:`CPXMI_QC_QNZ_SMALL_NUM` in the C API."""
CPXMI_QC_RHS_LARGE_NUM = 1013
"""See :macros:`CPXMI_QC_RHS_LARGE_NUM` in the C API."""
CPXMI_QC_RHS_SMALL_NUM = 1014
"""See :macros:`CPXMI_QC_RHS_SMALL_NUM` in the C API."""
CPXMI_QOBJ_LARGE_NUM = 1011
"""See :macros:`CPXMI_QOBJ_LARGE_NUM` in the C API."""
CPXMI_QOBJ_SMALL_NUM = 1012
"""See :macros:`CPXMI_QOBJ_SMALL_NUM` in the C API."""
CPXMI_QOPT_TOL = 1046
"""See :macros:`CPXMI_QOPT_TOL` in the C API."""
CPXMI_RHS_LARGE_NUM = 1007
"""See :macros:`CPXMI_RHS_LARGE_NUM` in the C API."""
CPXMI_RHS_SMALL_NUM = 1008
"""See :macros:`CPXMI_RHS_SMALL_NUM` in the C API."""
CPXMI_SAMECOEFF_COL = 1050
"""See :macros:`CPXMI_SAMECOEFF_COL` in the C API."""
CPXMI_SAMECOEFF_IND = 1051
"""See :macros:`CPXMI_SAMECOEFF_IND` in the C API."""
CPXMI_SAMECOEFF_LAZY = 1054
"""See :macros:`CPXMI_SAMECOEFF_LAZY` in the C API."""
CPXMI_SAMECOEFF_MULTIOBJ = 1061
"""See :macros:`CPXMI_SAMECOEFF_MULTIOBJ` in the C API."""
CPXMI_SAMECOEFF_OBJ = 1057
"""See :macros:`CPXMI_SAMECOEFF_OBJ` in the C API."""
CPXMI_SAMECOEFF_QLIN = 1052
"""See :macros:`CPXMI_SAMECOEFF_QLIN` in the C API."""
CPXMI_SAMECOEFF_QUAD = 1053
"""See :macros:`CPXMI_SAMECOEFF_QUAD` in the C API."""
CPXMI_SAMECOEFF_RHS = 1056
"""See :macros:`CPXMI_SAMECOEFF_RHS` in the C API."""
CPXMI_SAMECOEFF_ROW = 1049
"""See :macros:`CPXMI_SAMECOEFF_ROW` in the C API."""
CPXMI_SAMECOEFF_UCUT = 1055
"""See :macros:`CPXMI_SAMECOEFF_UCUT` in the C API."""
CPXMI_SINGLE_PRECISION = 1036
"""See :macros:`CPXMI_SINGLE_PRECISION` in the C API."""
CPXMI_SYMMETRY_BREAKING_INEQ = 1039
"""See :macros:`CPXMI_SYMMETRY_BREAKING_INEQ` in the C API."""
CPXMI_UB_LARGE_NUM = 1005
"""See :macros:`CPXMI_UB_LARGE_NUM` in the C API."""
CPXMI_UB_SMALL_NUM = 1006
"""See :macros:`CPXMI_UB_SMALL_NUM` in the C API."""
CPXMI_UC_NZ_LARGE_NUM = 1027
"""See :macros:`CPXMI_UC_NZ_LARGE_NUM` in the C API."""
CPXMI_UC_NZ_SMALL_NUM = 1028
"""See :macros:`CPXMI_UC_NZ_SMALL_NUM` in the C API."""
CPXMI_UC_RHS_LARGE_NUM = 1029
"""See :macros:`CPXMI_UC_RHS_LARGE_NUM` in the C API."""
CPXMI_UC_RHS_SMALL_NUM = 1030
"""See :macros:`CPXMI_UC_RHS_SMALL_NUM` in the C API."""
CPXMI_WIDE_COEFF_RANGE = 1048
"""See :macros:`CPXMI_WIDE_COEFF_RANGE` in the C API."""
|
def test_checkboxes(env, similar, template, expected):
template = env.from_string(template)
assert similar(template.render(), expected)
def test_checkboxes_with_id_and_name(env, similar, template, expected):
template = env.from_string(template)
assert similar(template.render(), expected)
def test_checkboxes_with_hints_on_items(env, similar, template, expected):
template = env.from_string(template)
assert similar(template.render(), expected)
def test_checkboxes_with_disabled_item(env, similar, template, expected):
template = env.from_string(template)
assert similar(template.render(), expected)
def test_checkboxes_with_legend_as_page_heading(env, similar, template, expected):
template = env.from_string(template)
assert similar(template.render(), expected)
def test_checkboxes_with_a_medium_legend(env, similar, template, expected):
template = env.from_string(template)
assert similar(template.render(), expected)
def test_checkboxes_without_fieldset(env, similar, template, expected):
template = env.from_string(template)
assert similar(template.render(), expected)
def test_checkboxes_with_all_fieldset_attributes(env, similar, template, expected):
template = env.from_string(template)
assert similar(template.render(), expected)
def test_checkboxes_with_error_message(env, similar, template, expected):
template = env.from_string(template)
assert similar(template.render(), expected)
|
# coding: utf-8
# Aluno: Misael Augusto
# Matrícula: 117110525
# Problema: Filtrando ELementos e Alterando uma Lista
def filtra_altera_lista(num, lista):
for i in range(len(lista) -1, -1, -1):
if i % num > 0:
lista.pop(i)
|
with open('assets/day08.txt', 'r') as file:
lines = [line for line in file.read().splitlines()]
collection = []
for line in lines:
inputs, outputs = tuple(line.split('|'))
collection.append({
'input': [digit for digit in inputs.strip().split(' ')],
'output': [digit for digit in outputs.strip().split(' ')],
})
segments = [6, 2, 5, 5, 4, 5, 6, 3, 7, 6]
unique_segments = [number for number in segments if 1 == segments.count(number)]
unique_occurrences = 0
outputs = []
for input_output in collection:
inputs = sorted(input_output['input'], key=len)
one, seven, four, eight = tuple([
set(list(inputs[0])),
set(list(inputs[1])),
set(list(inputs[2])),
set(list(inputs[9])),
])
possibilities = [set(list(inputs[6])), set(list(inputs[7])), set(list(inputs[8]))]
for possibility in possibilities:
if 2 == len(eight.difference(four).intersection(possibility)):
nine = possibility
elif 2 == len(one.intersection(possibility)):
zero = possibility
else:
six = possibility
possibilities = [set(list(inputs[3])), set(list(inputs[4])), set(list(inputs[5]))]
for possibility in possibilities:
if 4 == len(nine.intersection(possibility)):
two = possibility
elif 5 == len(six.intersection(possibility)):
five = possibility
else:
three = possibility
resolved = [zero, one, two, three, four, five, six, seven, eight, nine]
output = ''
for digit in input_output['output']:
if len(digit) in unique_segments:
unique_occurrences += 1
output += str(resolved.index(set(list(digit))))
outputs.append(int(output))
print(f"Unique segment occurrences: {unique_occurrences}")
print(f"Combined output values: {sum(outputs)}")
|
"""" Ayuda en operaciones con ficheros de forma eficiente
"""
def count_of_matches_in_a_file(file_path, matches):
"""Cuenta el numero de coincidencias en un archivo dada la ruta del fichero y la función de coincidencia
:param file_path: La ruta del fichero de texto a analizar
:param matches: La función de coincidencia
:return: El número de líneas en el que se cumple la condicion dad por la función matches
"""
count = 0
with open(file_path, "r") as file:
for line in file:
if matches(line):
count = count + 1
return count
|
'''
try:
f = open('file1.txt', 'r')
except IOError:
print('Problem with Input Output...\n')
else:
print('No Problem with Input Output...')
'''
try:
f = open('file1.txt', 'w')
except IOError:
print('Problem with Input Output...\n')
else:
print('No Problem with Input Output...')
|
lines_colors = [
"Red",
"DodgerBlue",
"LimeGreen",
"Gold",
"MediumSlateBlue",
"Brown",
"Olive",
"Orange",
"DarkGoldenRod",
"Salmon",
"Fuchsia",
"Aqua",
"LightSlateGray",
"MediumBlue",
"GreenYellow",
"DarkRed",
"DarkMagenta",
"Khaki",
"MediumSpringGreen",
"OrangeRed",
"DarkGreen",
"LightPink",
"DarkSlateBlue",
"Yellow",
"Turquoise",
"SaddleBrown",
"Maroon",
"Ivory",
"SpringGreen",
"BlueViolet",
"Coral",
"Teal",
"Navy",
"LightGoldenRodYellow",
"DarkOliveGreen",
"Coral",
"Red",
"DodgerBlue",
"LimeGreen",
"Gold",
"MediumSlateBlue",
"Brown",
"Olive",
"Orange",
"DarkGoldenRod",
"Salmon",
"Fuchsia",
"Aqua",
"LightSlateGray",
"MediumBlue",
"GreenYellow",
"DarkRed",
"DarkMagenta",
"Khaki",
"MediumSpringGreen",
"OrangeRed",
"DarkGreen",
"LightPink",
"DarkSlateBlue",
"Yellow",
"Turquoise",
"SaddleBrown",
"Maroon",
"Ivory",
"SpringGreen",
"BlueViolet",
"Coral",
"Teal",
"Navy",
"LightGoldenRodYellow",
"DarkOliveGreen",
"Coral",
"Red",
"DodgerBlue",
"LimeGreen",
"Gold",
"MediumSlateBlue",
"Brown",
"Olive",
"Orange",
"DarkGoldenRod",
"Salmon",
"Fuchsia",
"Aqua",
"LightSlateGray",
"MediumBlue",
"GreenYellow",
"DarkRed",
"DarkMagenta",
"Khaki",
"MediumSpringGreen",
"OrangeRed",
"DarkGreen",
"LightPink",
"DarkSlateBlue",
"Yellow",
"Turquoise",
"SaddleBrown",
"Maroon",
"Ivory",
"SpringGreen",
"BlueViolet",
"Coral",
"Teal",
"Navy",
"LightGoldenRodYellow",
"DarkOliveGreen",
"Coral",
"Red",
"DodgerBlue",
"LimeGreen",
"Gold",
"MediumSlateBlue",
"Brown",
"Olive",
"Orange",
"DarkGoldenRod",
"Salmon",
"Fuchsia",
"Aqua",
"LightSlateGray",
"MediumBlue",
"GreenYellow",
"DarkRed",
"DarkMagenta",
"Khaki",
"MediumSpringGreen",
"OrangeRed",
"DarkGreen",
"LightPink",
"DarkSlateBlue",
"Yellow",
"Turquoise",
"SaddleBrown",
"Maroon",
"Ivory",
"SpringGreen",
"BlueViolet",
"Coral",
"Teal",
"Navy",
"LightGoldenRodYellow",
"DarkOliveGreen",
"Coral",
"Red",
"DodgerBlue",
"LimeGreen",
"Gold",
"MediumSlateBlue",
"Brown",
"Olive",
"Orange",
"DarkGoldenRod",
"Salmon",
"Fuchsia",
"Aqua",
"LightSlateGray",
"MediumBlue",
"GreenYellow",
"DarkRed",
"DarkMagenta",
"Khaki",
"MediumSpringGreen",
"OrangeRed",
"DarkGreen",
"LightPink",
"DarkSlateBlue",
"Yellow",
"Turquoise",
"SaddleBrown",
"Maroon",
"Ivory",
"SpringGreen",
"BlueViolet",
"Coral",
"Teal",
"Navy",
"LightGoldenRodYellow",
"DarkOliveGreen",
"Coral",
]
|
#main class
class Characters:
def __init__(self,
name="none",
lastname="none",
age="none",
hp="50",
title="none",
language="none",
race="human or unknown",
weakness="none"
):
# instance variable unique to each instance
self.name = name
self.lastname = lastname
self.age = age
self.hp = hp
self.title = title
self.race = race
self.weakness = weakness
self.language = language
def character_info(self):
return f"ID:{self.name} {self.lastname}\n" \
f"age:{self.age}\n" \
f"Hp:{self.hp} \n" \
f"race:{self.race}\n" \
f"title:{self.title}\n" \
f"weakness:{self.weakness}\n" \
f"language:{self.language}\n" \
f"that's all buddy"
#These classes are inheritors of the main class.
class WarriorPerson(Characters):
def __init__(self,
name="none",
lastname="none",
age="none",
hp="50",
title="none",
language="none",
race="human or unknown",
weakness="none"):
super().__init__(name, lastname, age, hp, title, language, race, weakness)
self.hp = int(int(self.hp) + 100)
class RegularHumanPerson(Characters):
def __init__(self,
name="none",
lastname="none",
age="none",
hp="50",
title="none",
language="none",
race="human or unknown",
weakness="none"):
super().__init__(name, lastname, age, hp, title, language, race, weakness)
self.hp = int(int(self.hp) - 30)
class WitchPerson(Characters):
def __init__(self,
name="none",
lastname="none",
age="none",
hp="50",
title="none",
language="none",
race="human or unknown",
weakness="none"):
super().__init__(name, lastname, age, hp, title, language, race, weakness)
self.hp = int(int(self.hp) - 120)
class VampirePerson(Characters):
def __init__(self,
name="none",
lastname="none",
age="none",
hp="50",
title="none",
language="none",
race="human or unknown",
weakness="none"):
super().__init__(name, lastname, age, hp, title, language, race, weakness)
self.hp = int(int(self.hp) + 450)
regular_human = RegularHumanPerson(
name="john",
lastname="smith",
age="45",
title="The man who be normal",
language="He knows only English",
race="Human",
weakness="who knows"
)
old_warrior = WarriorPerson(
name="Berserker",
lastname="",
age="345",
title="old warrior",
language="English and old vikings language",
race="Human",
weakness="Science"
)
old_which = WitchPerson(
name="Sarah",
lastname="",
age="600",
title="Girl of beast",
language="She knows little bit old english and witch language",
race="Human",
weakness="Science and light of angel"
)
young_Vampire = VampirePerson(
name="Deacon",
lastname="",
age="783",
language="She knows little bit old english and new english",
race="vampire",
weakness="stake"
)
|
#!/usr/bin/python3
# -*- coding: utf-8 -*-
class SimParameters(object):
def __init__(self):
self.run_time = 0
self.name = "default"
def debug(self):
print('SimParameters instance :')
print('---------------------------------------------------')
|
class Digit(object):
def __init__(self, representation):
self._digit_representation = representation
def scale(self, scale_factor=1):
if scale_factor == 1:
return self
scaled_lines = []
for line in self._digit_representation:
scaled_lines.append(line[0] + line[1]*scale_factor + line[2])
scaled_digit = []
scaled_digit.append(scaled_lines[0])
for _ in xrange(scale_factor):
scaled_digit.append(scaled_lines[1])
scaled_digit.append(scaled_lines[2])
for _ in xrange(scale_factor):
scaled_digit.append(scaled_lines[3])
scaled_digit.append(scaled_lines[4])
return Digit(scaled_digit)
def get_representation(self):
return self._digit_representation
class Digits(object):
def __init__(self, digit_representations, scale_factor=1):
self._digits = [Digit(representation).scale(scale_factor)
for _, representation in enumerate(digit_representations)]
def get_digit(self, digit):
return self._digits[int(digit)] #This is an indexed getter
def assemble_numbers(self, numbers):
def concat_lists(list1, list2):
if list1 is None:
return list2
return [a+b for a, b in zip(list1, list2)]
new_representation = None
for number in str(numbers):
digit = self.get_digit(number)
new_representation = concat_lists(new_representation, digit.get_representation())
return new_representation
def print_numbers(self, numbers, printer):
for line in self.assemble_numbers(numbers):
printer(line)
class DigitReader(object):
def __init__(self, resource_directory):
self._resource_directory = resource_directory
def read_digits(self, scale_factor=1):
return Digits([self._read_digit_from_file(number) for number in xrange(10)], scale_factor)
def _read_digit_from_file(self, digit):
file_name = self._resource_directory + str(digit) + ".txt"
with open(file_name) as file_handle:
return [line.replace('\n', '') for line in file_handle.readlines()]
|
class Stemmer:
'''
Stemmer object, this is a simplified Porter stemmer,
our stemmer is rule based, most of its functions replace suffix of a word to a new
suffix base on several rules to change the word to its stem
'''
def __init__(self):
self.buffer = "" # buffer for word to be stemmed
self.p0 = 0 # start of sterm
self.p = 0 # end of the sterm
self.j = 0 # general offset
def is_cons(self, index):
'''
if buffer[index] is a consonant.
'''
consonant_list = ['a', 'e', 'i', 'o', 'u']
if self.buffer[index] in consonant_list:
return False
elif self.buffer[index] == 'y':
if index == self.p0:
return True
else:
return not self.is_cons(index - 1)
else:
return True
def count_cons(self):
'''
count the consonant in buffer[p0:j+1].
'''
cnt = 0
i = self.p0
while True:
if i > self.j:
return cnt
if not(self.is_cons(i)):
break
i += 1
i += 1
while True:
while True:
if i > self.j:
return cnt
if self.is_cons(i):
break
i += 1
i += 1
cnt += 1
while True:
if i > self.j:
return cnt
if not self.is_cons(i):
break
i += 1
i += 1
def vowel_in_stem(self):
'''
if buffer[p0:j+1] contains a vowel
'''
for i in range(self.p0, self.j + 1):
if not self.is_cons(i):
return True
return False
def double_cons(self, index):
'''
if buffer[index-1:index+1] contain a double consonant
'''
if index < (self.p0 + 1):
return True
elif self.buffer[index] != self.buffer[index-1]:
return False
else:
return self.is_cons(index)
def end_with(self, string):
'''
if buffer[p0:p+1] ends with string
'''
lens= len(string)
if lens > (self.p - self.p0 + 1):
return False
elif self.buffer[self.p - lens + 1 : self.p + 1] != string:
return False
self.j = self.p - lens
return True
def change_tail(self, string):
'''
change buffer[j+1,k+1] to string, update k
'''
lens = len(string)
self.buffer = self.buffer[:self.j + 1] + string + self.buffer[self.j + lens + 1:]
self.p = self.j + lens
def replace(self, string):
if self.count_cons()>0:
self.change_tail(string)
def step1(self):
'''
remove pluarals/ed/ing
'''
if self.end_with("sses"):
self.change_tail("ss")
elif self.end_with("ies"):
self.change_tail("i")
elif self.end_with("s") and not self.end_with("ss"):
self.change_tail("")
if self.end_with("eed"):
self.replace("ee")
elif (self.end_with("ed") or self.end_with("ing")) and self.vowel_in_stem():
self.change_tail("")
if self.end_with("at"):
self.change_tail("ate")
elif self.end_with("bl"):
self.change_tail("ble")
elif self.end_with("iz"):
self.change_tail("ize")
def step2(self):
'''
chage last y to i if there is another vowel in the stem.
'''
if self.end_with("y") and self.vowel_in_stem():
self.buffer = self.buffer[:self.p] + 'i' + self.buffer[self.p + 1:]
def step3(self):
'''
change double suffices to single ones.
'''
if self.end_with("ational"):
self.replace("ate")
elif self.end_with("tional"):
self.replace("tion")
elif self.end_with("enci"):
self.replace("ence")
elif self.end_with("anci"):
self.replace("ance")
elif self.end_with("izer"):
self.replace("ize")
elif self.end_with("bli"):
self.replace("ble")
elif self.end_with("alli"):
self.replace("al")
elif self.end_with("entli"):
self.replace("ent")
elif self.end_with("eli"):
self.replace("e")
elif self.end_with("ousli"):
self.replace("ous")
elif self.end_with("ization"):
self.replace("ize")
elif self.end_with("ation"):
self.replace("ate")
elif self.end_with("ator"):
self.replace("ate")
elif self.end_with("alism"):
self.replace("al")
elif self.end_with("iveness"):
self.replace("ive")
elif self.end_with("fulness"):
self.replace("ful")
elif self.end_with("ousness"):
self.replace("ous")
elif self.end_with("aliti"):
self.replace("al")
elif self.end_with("iviti"):
self.replace("ive")
elif self.end_with("biliti"):
self.replace("ble")
elif self.end_with("logi"):
self.replace("log")
def step4(self):
'''
ic,full,ness
'''
if self.end_with("icate"):
self.replace("ic")
elif self.end_with("ative"):
self.replace("")
elif self.end_with("alize"):
self.replace("al")
elif self.end_with("iciti"):
self.replace("ic")
elif self.end_with("ical"):
self.replace("ic")
elif self.end_with("ful"):
self.replace("")
elif self.end_with("ness"):
self.replace("")
def stem(self, word):
self.buffer = word
self.p = len(word)-1
self.p0 = 0
self.step1()
self.step2()
self.step3()
self.step4()
return self.buffer[self.p0:self.p+1]
|
"""
CONHECENDO ALGUMAS FUNÇÕES BOOLEAN
"""
e = (input('Digite algo: '))
print('O tipo primtivo desse valor é {}'.format(type(e)))
print('Só tem espaço?',e.isspace())
print('É um número? ',e.isnumeric())
print('É alfabético? ',e.isalpha())
print('É alfanumérico? ',e.isalnum())
print('Está em maiúsculo? ',e.isupper())
print('Está em minúsculo? ',e.islower())
print('Está capitalizada? ',e.istitle())
n = (input('Digite algo: '))
print(type(n))
b = bool(input('Digite algo: '))
print(b)
#Métodos de testes para tipos |
def mult(m,n):
ans = 0
while n>0:
ans+=m
n-=1
return ans |
loci = 20000000 #!!!
sample = 26
mu = 2e-6
rr = 1.05e-6
Na = 1000
Bt = 67
|
#
# PySNMP MIB module ELTEX-MES-SMON-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ELTEX-MES-SMON-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:01:55 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint")
dot1dBasePort, = mibBuilder.importSymbols("BRIDGE-MIB", "dot1dBasePort")
eltMes, = mibBuilder.importSymbols("ELTEX-MES", "eltMes")
VlanId, = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanId")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, Counter32, ModuleIdentity, IpAddress, Counter64, Integer32, TimeTicks, ObjectIdentity, NotificationType, Unsigned32, iso, Gauge32, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "Counter32", "ModuleIdentity", "IpAddress", "Counter64", "Integer32", "TimeTicks", "ObjectIdentity", "NotificationType", "Unsigned32", "iso", "Gauge32", "MibIdentifier")
DisplayString, TruthValue, TextualConvention, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TruthValue", "TextualConvention", "RowStatus")
class EltPortCopyRemoteDirectionType(TextualConvention, Integer32):
description = 'copy remote direction type: 1- Rx 2- Tx'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("eltPortCopyRemoteRx", 1), ("eltPortCopyRemoteTx", 2))
eltMesSmon = ModuleIdentity((1, 3, 6, 1, 4, 1, 35265, 1, 23, 84))
eltMesSmon.setRevisions(('2016-02-10 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: eltMesSmon.setRevisionsDescriptions(('Initial revision.',))
if mibBuilder.loadTexts: eltMesSmon.setLastUpdated('201602100000Z')
if mibBuilder.loadTexts: eltMesSmon.setOrganization('Eltex Enterprise, Ltd.')
if mibBuilder.loadTexts: eltMesSmon.setContactInfo('www.eltex.nsk.ru')
if mibBuilder.loadTexts: eltMesSmon.setDescription('This private MIB module defines SMON private MIBs.')
eltPortCopyRemoteTable = MibTable((1, 3, 6, 1, 4, 1, 35265, 1, 23, 84, 1), )
if mibBuilder.loadTexts: eltPortCopyRemoteTable.setStatus('current')
if mibBuilder.loadTexts: eltPortCopyRemoteTable.setDescription('A supplementing table for eltPortCopyRemoteTable.')
eltPortCopyRemoteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 35265, 1, 23, 84, 1, 1), ).setIndexNames((0, "ELTEX-MES-SMON-MIB", "eltPortCopyRemoteDirection"))
if mibBuilder.loadTexts: eltPortCopyRemoteEntry.setStatus('current')
if mibBuilder.loadTexts: eltPortCopyRemoteEntry.setDescription('Each entry specifies vlan tag and user priority added by analyzer to a mirrored Rx/Tx packets.')
eltPortCopyRemoteDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 23, 84, 1, 1, 1), EltPortCopyRemoteDirectionType())
if mibBuilder.loadTexts: eltPortCopyRemoteDirection.setStatus('current')
if mibBuilder.loadTexts: eltPortCopyRemoteDirection.setDescription('This field defines a direction')
eltPortCopyRemoteVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 23, 84, 1, 1, 2), VlanId()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eltPortCopyRemoteVlan.setStatus('current')
if mibBuilder.loadTexts: eltPortCopyRemoteVlan.setDescription('This field defines an RSPAN VLAN id')
eltPortCopyRemotePrio = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 23, 84, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eltPortCopyRemotePrio.setStatus('current')
if mibBuilder.loadTexts: eltPortCopyRemotePrio.setDescription('This field defines an RSPAN user priority')
eltPortCopyRemoteStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 23, 84, 1, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: eltPortCopyRemoteStatus.setStatus('current')
if mibBuilder.loadTexts: eltPortCopyRemoteStatus.setDescription('This field defines a row status')
mibBuilder.exportSymbols("ELTEX-MES-SMON-MIB", eltPortCopyRemoteStatus=eltPortCopyRemoteStatus, eltPortCopyRemoteVlan=eltPortCopyRemoteVlan, PYSNMP_MODULE_ID=eltMesSmon, eltPortCopyRemoteDirection=eltPortCopyRemoteDirection, EltPortCopyRemoteDirectionType=EltPortCopyRemoteDirectionType, eltPortCopyRemotePrio=eltPortCopyRemotePrio, eltPortCopyRemoteTable=eltPortCopyRemoteTable, eltPortCopyRemoteEntry=eltPortCopyRemoteEntry, eltMesSmon=eltMesSmon)
|
try:
number=float(input("Enter a number between 0.0 and 1.0: "))
if number < 0 or number > 1:
print("Bad score!")
elif number >= 0.9:
print("A")
elif number >= 0.8:
print("B")
elif number >= 0.7:
print("C")
elif number >= 0.6:
print("D")
else:
print("F")
except:
print("Bad score!") |
"""
class BinaryTreeNode(object):
def __init__(self, value):
self.value = value
self.left = None
self.right = None
def insert_left(self, value):
self.left = BinaryTreeNode(value)
return self.left
def insert_right(self, value):
self.right = BinaryTreeNode(value)
return self.right
"""
def find_largest(root_node):
# set the current_node to the root_node
current_node = root_node
# while there is a current_node
while current_node:
# if current_node does not have a right child node
if current_node.right is None:
# return current_node's value
return current_node.value
# set current_node to current_node's right child node
current_node = current_node.right
def find_second_largest(root_node):
# Perform a biased DFT
# keep going down to the right child node until
# there is no right child node anymore
# at that point return the last node parent node if there is no left child
# if there is a left child, the second maximum will be
# the largest value from the left subtree
# alternatively, if the root_node only has a left subtree
# the second largest will be the largest value from the
# left subtree
# if the root_node is empty or does not have any child nodes
if (root_node.value is None) or (root_node.right is None and root_node.left is None):
# raise exception
raise ValueError("Root node cannot be empty or be a single node")
# if there is a left subtree without a right
if root_node.left and root_node.right is None:
# return the largest value from the left subtree
return find_largest(root_node.left)
# initialize the current_node to the root_node
current_node = root_node
# initialize the previous_node to None
previous_node = None
# loop while current_node
while current_node:
# if the current_node does not have a right child node
if current_node.right is None:
# if current_node has a left child node
if current_node.left is not None:
# return the largest value from the left subtree
return find_largest(current_node.left)
# return the current_node's value
return previous_node.value
# set the previous_node to the current_node
previous_node = current_node
# set current_node to the current_node's right child node
current_node = current_node.right
|
# Any or All
# Problem Link: https://www.hackerrank.com/challenges/any-or-all/problem
_ = int(input())
l = input().split()
print(all([int(i) > 0 for i in l]) and any([j == j[::-1] for j in l]))
|
print(2 not in [1,2,3])
print(2 not in [4,5])
print(1 not in [1] not in [[1]])
print(3 not in [1] not in [[1]])
|
"""
№283. К.Ю. Поляков.
На числовой прямой даны отрезки A = [80; 90], B = [30; 50] и C = [10; N] и функция
F(x) = (¬(x ∈ A) -> (x ∈ B)) && (¬(x ∈ C) -> (x ∈ A))
При каком наименьшем числе N функция F(x) истинна более чем для 25 целых чисел x?
"""
a = {i for i in range(80, 91)}
b = {i for i in range(30, 51)}
c = set()
for n in range(100):
c.add(n)
if (len(a) + len(b & c)) > 25:
print(n)
break |
def sum_of_numbers_in_an_integer(num):
answer = 0
while num > 0:
last_num = num % 10
num = num // 10
answer += last_num
print(answer)
def main():
num = int(input("Enter a number: " ))
sum_of_numbers_in_an_integer(num)
main() |
'''
Created on 2017. 4. 12.
@author: Byoungho Kang
'''
class Calculator:
def __init__(self, first, second):
self.first = first
self.second = second
def plus(self):
return self.first + self.second
def minus(self):
return self.first - self.second
def multiply(self):
return self.first * self.second
def divide(self):
return self.first / self.second
c = Calculator(3, 4)
print(c.plus(), c.minus(), c.multiply(), c.divide()) |
#Questao 9
fila = []
print("Fila: ", fila)
fila.append("Tarefa E")
print("Inserindo um elemento no final da fila: ", fila)
fila.append("Tarefa I")
print("Inserindo outro elemento no final da fila: ", fila)
fila.append("Tarefa C")
print("Inserindo outro elemento no final da fila: ", fila)
fila.append("Tarefa F")
print("Inserindo outro elemento no final da fila: ", fila)
fila.append("Tarefa B")
print("Inserindo outro elemento no final da fila: ", fila)
fila.append("Tarefa H")
print("Inserindo outro elemento no final da fila: ", fila)
fila.append("Tarefa J")
print("Inserindo outro elemento no final da fila: ", fila)
fila.append("Tarefa A")
print("Inserindo outro elemento no final da fila: ", fila)
fila.append("Tarefa D")
print("Inserindo outro elemento no final da fila: ", fila)
fila.append("Tarefa G")
print("Inserindo outro elemento no final da fila: ", fila)
|
def hello(verb, path, query):
return "Server received your " + verb + " request" + str(query) + "\r\n"
def register(urlMapper):
urlMapper["/hello"] = hello
|
###############################################
# list comprehension
x = [1, 2, 3, 4, 5, 6]
y = []
# metodo tradicional
for k in x:
y.append(k ** 2)
print(y)
# método list comprehension
y = [i**2 for i in x]
print(y)
# list comprehension condicional
y = [i**2 for i in x if i % 2 == 0]
print(y)
###############################################
# enumerate exibe o indice e o valor de uma lista
for k, v in enumerate(y):
print(k, v)
###############################################
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.