content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
class Cue:
def __init__(self):
pass
def power_to_speed(self, power, ball=None):
# Translate a power (0-100) to the ball's velocity.
# Ball object passed in in case this depends on ball weight.
return power*10
def on_hit(self, ball):
# Apply some effect to ball on hit
pass
class BasicCue(Cue):
pass | class Cue:
def __init__(self):
pass
def power_to_speed(self, power, ball=None):
return power * 10
def on_hit(self, ball):
pass
class Basiccue(Cue):
pass |
#
# PySNMP MIB module UAS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/UAS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:28:15 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")
SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
ObjectIdentity, enterprises, IpAddress, Integer32, iso, Unsigned32, Bits, MibIdentifier, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, ModuleIdentity, TimeTicks, Gauge32, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "enterprises", "IpAddress", "Integer32", "iso", "Unsigned32", "Bits", "MibIdentifier", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "ModuleIdentity", "TimeTicks", "Gauge32", "Counter64")
PhysAddress, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "PhysAddress", "TextualConvention", "DisplayString")
zxUasMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 3902, 1006, 1))
if mibBuilder.loadTexts: zxUasMib.setLastUpdated('200503081500Z')
if mibBuilder.loadTexts: zxUasMib.setOrganization('ZTE Co.')
if mibBuilder.loadTexts: zxUasMib.setContactInfo('')
if mibBuilder.loadTexts: zxUasMib.setDescription('This mib defines management information objects for uas')
zte = MibIdentifier((1, 3, 6, 1, 4, 1, 3902))
zxUas = MibIdentifier((1, 3, 6, 1, 4, 1, 3902, 1006))
zxUasMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1))
zxUasTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 2))
zxUasSystemGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 1))
zxUasServiceMgmtGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2))
zxUasStaticsGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3))
zxUasPppStatics = MibIdentifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1))
zxUasInterfaceIPPoolTable = MibTable((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1), )
if mibBuilder.loadTexts: zxUasInterfaceIPPoolTable.setStatus('current')
if mibBuilder.loadTexts: zxUasInterfaceIPPoolTable.setDescription('This table contains IP Pool entry')
zxUasInterfaceIPPoolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1), ).setIndexNames((0, "UAS-MIB", "zxUasIPPoolName"), (0, "UAS-MIB", "zxUasIPPoolVirtualRouteField"), (0, "UAS-MIB", "zxUasIPPoolInterfaceName"), (0, "UAS-MIB", "zxUasIPPoolID"), (0, "UAS-MIB", "zxUasIPPoolStartIPAddr"), (0, "UAS-MIB", "zxUasIPPoolEndIPAddr"))
if mibBuilder.loadTexts: zxUasInterfaceIPPoolEntry.setStatus('current')
if mibBuilder.loadTexts: zxUasInterfaceIPPoolEntry.setDescription('This list contains IP Pool parameters and is indexed by zxUasIPPoolName')
zxUasIPPoolName = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasIPPoolName.setStatus('current')
if mibBuilder.loadTexts: zxUasIPPoolName.setDescription('IP Pool name.')
zxUasIPPoolVirtualRouteField = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasIPPoolVirtualRouteField.setStatus('current')
if mibBuilder.loadTexts: zxUasIPPoolVirtualRouteField.setDescription('IP pool virtual route field name.')
zxUasIPPoolInterfaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasIPPoolInterfaceName.setStatus('current')
if mibBuilder.loadTexts: zxUasIPPoolInterfaceName.setDescription('VBUI global port.')
zxUasIPPoolID = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasIPPoolID.setStatus('current')
if mibBuilder.loadTexts: zxUasIPPoolID.setDescription('IP Pool ID.')
zxUasIPPoolStartIPAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 5), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasIPPoolStartIPAddr.setStatus('current')
if mibBuilder.loadTexts: zxUasIPPoolStartIPAddr.setDescription('start IP address.')
zxUasIPPoolEndIPAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 6), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasIPPoolEndIPAddr.setStatus('current')
if mibBuilder.loadTexts: zxUasIPPoolEndIPAddr.setDescription('end IP Address.')
zxUasIPPoolFreeIPNum = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasIPPoolFreeIPNum.setStatus('current')
if mibBuilder.loadTexts: zxUasIPPoolFreeIPNum.setDescription('free IP Num.')
zxUasIPPoolUsedIPNum = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasIPPoolUsedIPNum.setStatus('current')
if mibBuilder.loadTexts: zxUasIPPoolUsedIPNum.setDescription('used IP Num.')
zxUasIPPoolUnavailableIPNum = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasIPPoolUnavailableIPNum.setStatus('current')
if mibBuilder.loadTexts: zxUasIPPoolUnavailableIPNum.setDescription('unavailable IP Num.')
zxUasIPPoolBindToDomainFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("unreserved", 1), ("reserved", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasIPPoolBindToDomainFlag.setStatus('current')
if mibBuilder.loadTexts: zxUasIPPoolBindToDomainFlag.setDescription('this flag is used for binding to domain.')
zxUasActiveSubscriberTable = MibTable((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2), )
if mibBuilder.loadTexts: zxUasActiveSubscriberTable.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberTable.setDescription('This table contains active subscriber entry')
zxUasActiveSubscriberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1), ).setIndexNames((0, "UAS-MIB", "zxUasActiveSubscriberVirtualRouteField"), (0, "UAS-MIB", "zxUasActiveSubscriberIPAddr"), (0, "UAS-MIB", "zxUasActiveSubscriberType"), (0, "UAS-MIB", "zxUasActiveSubscriberPPPID"))
if mibBuilder.loadTexts: zxUasActiveSubscriberEntry.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberEntry.setDescription('This list contains active subscriber parameters and is indexed by zxUasActiveSubscriberIndex ')
zxUasActiveSubscriberVirtualRouteField = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberVirtualRouteField.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberVirtualRouteField.setDescription('active subscriber virtual route field name.')
zxUasActiveSubscriberIPAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberIPAddr.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberIPAddr.setDescription('active subscriber IP address.')
zxUasActiveSubscriberType = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("ppp", 1), ("ipdhcp", 2), ("remotedhcp", 3), ("ipdhcprelay", 4), ("iphost", 5), ("remotehost", 6), ("vpn", 7), ("brg", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberType.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberType.setDescription('active subscriber type.')
zxUasActiveSubscriberPPPID = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberPPPID.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberPPPID.setDescription('PPP active subscriber ID.')
zxUasActiveSubscriberName = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberName.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberName.setDescription('active subscriber name.')
zxUasActiveSubscriberInterfaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberInterfaceName.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberInterfaceName.setDescription('active subscriber VBUI global port.')
zxUasActiveSubscriberDoaminID = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberDoaminID.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberDoaminID.setDescription('active subscriber domain ID.')
zxUasActiveSubscriberSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberSlot.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberSlot.setDescription('active subscriber slot.')
zxUasActiveSubscriberPort = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberPort.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberPort.setDescription('active subscriber port.')
zxUasActiveSubscriberVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberVlanId.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberVlanId.setDescription('active subscriber VlanId.')
zxUasActiveSubscriberVpi = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberVpi.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberVpi.setDescription('active subscriber vpi value.')
zxUasActiveSubscriberVci = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberVci.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberVci.setDescription('active subscriber vci value.')
zxUasActiveSubscriberMACAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 13), PhysAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberMACAddr.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberMACAddr.setDescription('active subscriber host MAC address.')
zxUasActiveSubscriberUpOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberUpOctets.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberUpOctets.setDescription('active subscriber up flow.')
zxUasActiveSubscriberUpGigaOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberUpGigaOctets.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberUpGigaOctets.setDescription('active subscriber up flow extend.')
zxUasActiveSubscriberDownOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberDownOctets.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberDownOctets.setDescription('active subscriber down flow.')
zxUasActiveSubscriberDownGigaOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberDownGigaOctets.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberDownGigaOctets.setDescription('active subscriber down flow extend.')
zxUasActiveDhcpSubscriberAuthFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 18), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveDhcpSubscriberAuthFlag.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveDhcpSubscriberAuthFlag.setDescription('DHCP subscriber authentication status.')
zxUasActiveSubscriberUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 19), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberUpTime.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberUpTime.setDescription('active subscriber create time.')
zxUasTail = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("true", 1), ("false", 0))))
if mibBuilder.loadTexts: zxUasTail.setStatus('current')
if mibBuilder.loadTexts: zxUasTail.setDescription(' null node')
zxUasPppCallCount = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasPppCallCount.setStatus('current')
if mibBuilder.loadTexts: zxUasPppCallCount.setDescription('ppp calling counts.')
zxUasPppCallFailedCount = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasPppCallFailedCount.setStatus('current')
if mibBuilder.loadTexts: zxUasPppCallFailedCount.setDescription('ppp calling failed counts.')
zxUasPppLinkBreakFailedCount = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasPppLinkBreakFailedCount.setStatus('current')
if mibBuilder.loadTexts: zxUasPppLinkBreakFailedCount.setDescription('ppp linkbreak failed counts.')
zxUasPppAbnormalCloseCount = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasPppAbnormalCloseCount.setStatus('current')
if mibBuilder.loadTexts: zxUasPppAbnormalCloseCount.setDescription('abnormal close counts.')
zxUasActiveSubscriberStaticsTable = MibTable((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 2), )
if mibBuilder.loadTexts: zxUasActiveSubscriberStaticsTable.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberStaticsTable.setDescription('This table contains active subscriber statics Entry')
zxUasActiveSubscriberStaticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 2, 1), ).setIndexNames((0, "UAS-MIB", "zxUasActiveSubscriberType"))
if mibBuilder.loadTexts: zxUasActiveSubscriberStaticsEntry.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberStaticsEntry.setDescription('This list contains active subscriber statics parameters and is indexed by zxUasActiveSubscriberType')
zxUasActiveSubscriberNum = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasActiveSubscriberNum.setStatus('current')
if mibBuilder.loadTexts: zxUasActiveSubscriberNum.setDescription('ppp users num,iphost users num,dhcp users num and vpn users num.')
zxUasMaxSubscriberOnlineCount = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineCount.setStatus('current')
if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineCount.setDescription('The subscriber peak online in the history')
zxUasMaxSubscriberOnlineClear = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("normal", 0), ("clear", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineClear.setStatus('current')
if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineClear.setDescription('Clear subscriber peak online in the history')
zxUasMaxSubscriberOnlineTime = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineTime.setStatus('current')
if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineTime.setDescription('The time which the max subscriber occured.')
mibBuilder.exportSymbols("UAS-MIB", zxUasActiveSubscriberNum=zxUasActiveSubscriberNum, zxUasMibObjects=zxUasMibObjects, zxUasIPPoolUnavailableIPNum=zxUasIPPoolUnavailableIPNum, zxUas=zxUas, zxUasActiveSubscriberName=zxUasActiveSubscriberName, zxUasActiveSubscriberStaticsTable=zxUasActiveSubscriberStaticsTable, zxUasActiveSubscriberUpOctets=zxUasActiveSubscriberUpOctets, zxUasActiveSubscriberVpi=zxUasActiveSubscriberVpi, zxUasPppCallCount=zxUasPppCallCount, zxUasActiveSubscriberVirtualRouteField=zxUasActiveSubscriberVirtualRouteField, zxUasSystemGroup=zxUasSystemGroup, zxUasMaxSubscriberOnlineClear=zxUasMaxSubscriberOnlineClear, zxUasActiveSubscriberEntry=zxUasActiveSubscriberEntry, zxUasActiveSubscriberIPAddr=zxUasActiveSubscriberIPAddr, zxUasServiceMgmtGroup=zxUasServiceMgmtGroup, zxUasActiveSubscriberPPPID=zxUasActiveSubscriberPPPID, zxUasActiveSubscriberDoaminID=zxUasActiveSubscriberDoaminID, zxUasInterfaceIPPoolTable=zxUasInterfaceIPPoolTable, zxUasActiveSubscriberTable=zxUasActiveSubscriberTable, zxUasIPPoolVirtualRouteField=zxUasIPPoolVirtualRouteField, zxUasActiveSubscriberInterfaceName=zxUasActiveSubscriberInterfaceName, zte=zte, zxUasIPPoolInterfaceName=zxUasIPPoolInterfaceName, zxUasActiveSubscriberVlanId=zxUasActiveSubscriberVlanId, PYSNMP_MODULE_ID=zxUasMib, zxUasActiveDhcpSubscriberAuthFlag=zxUasActiveDhcpSubscriberAuthFlag, zxUasActiveSubscriberSlot=zxUasActiveSubscriberSlot, zxUasMaxSubscriberOnlineCount=zxUasMaxSubscriberOnlineCount, zxUasActiveSubscriberUpTime=zxUasActiveSubscriberUpTime, zxUasPppAbnormalCloseCount=zxUasPppAbnormalCloseCount, zxUasActiveSubscriberMACAddr=zxUasActiveSubscriberMACAddr, zxUasIPPoolID=zxUasIPPoolID, zxUasActiveSubscriberPort=zxUasActiveSubscriberPort, zxUasStaticsGroup=zxUasStaticsGroup, zxUasActiveSubscriberUpGigaOctets=zxUasActiveSubscriberUpGigaOctets, zxUasMaxSubscriberOnlineTime=zxUasMaxSubscriberOnlineTime, zxUasActiveSubscriberType=zxUasActiveSubscriberType, zxUasMib=zxUasMib, zxUasTraps=zxUasTraps, zxUasInterfaceIPPoolEntry=zxUasInterfaceIPPoolEntry, zxUasIPPoolName=zxUasIPPoolName, zxUasIPPoolEndIPAddr=zxUasIPPoolEndIPAddr, zxUasActiveSubscriberVci=zxUasActiveSubscriberVci, zxUasActiveSubscriberDownOctets=zxUasActiveSubscriberDownOctets, zxUasIPPoolStartIPAddr=zxUasIPPoolStartIPAddr, zxUasActiveSubscriberDownGigaOctets=zxUasActiveSubscriberDownGigaOctets, zxUasIPPoolBindToDomainFlag=zxUasIPPoolBindToDomainFlag, zxUasPppCallFailedCount=zxUasPppCallFailedCount, zxUasPppLinkBreakFailedCount=zxUasPppLinkBreakFailedCount, zxUasActiveSubscriberStaticsEntry=zxUasActiveSubscriberStaticsEntry, zxUasIPPoolUsedIPNum=zxUasIPPoolUsedIPNum, zxUasIPPoolFreeIPNum=zxUasIPPoolFreeIPNum, zxUasPppStatics=zxUasPppStatics, zxUasTail=zxUasTail)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_intersection, value_range_constraint, constraints_union, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion', 'ValueSizeConstraint')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(object_identity, enterprises, ip_address, integer32, iso, unsigned32, bits, mib_identifier, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, module_identity, time_ticks, gauge32, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'enterprises', 'IpAddress', 'Integer32', 'iso', 'Unsigned32', 'Bits', 'MibIdentifier', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'ModuleIdentity', 'TimeTicks', 'Gauge32', 'Counter64')
(phys_address, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'PhysAddress', 'TextualConvention', 'DisplayString')
zx_uas_mib = module_identity((1, 3, 6, 1, 4, 1, 3902, 1006, 1))
if mibBuilder.loadTexts:
zxUasMib.setLastUpdated('200503081500Z')
if mibBuilder.loadTexts:
zxUasMib.setOrganization('ZTE Co.')
if mibBuilder.loadTexts:
zxUasMib.setContactInfo('')
if mibBuilder.loadTexts:
zxUasMib.setDescription('This mib defines management information objects for uas')
zte = mib_identifier((1, 3, 6, 1, 4, 1, 3902))
zx_uas = mib_identifier((1, 3, 6, 1, 4, 1, 3902, 1006))
zx_uas_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1))
zx_uas_traps = mib_identifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 2))
zx_uas_system_group = mib_identifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 1))
zx_uas_service_mgmt_group = mib_identifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2))
zx_uas_statics_group = mib_identifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3))
zx_uas_ppp_statics = mib_identifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1))
zx_uas_interface_ip_pool_table = mib_table((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1))
if mibBuilder.loadTexts:
zxUasInterfaceIPPoolTable.setStatus('current')
if mibBuilder.loadTexts:
zxUasInterfaceIPPoolTable.setDescription('This table contains IP Pool entry')
zx_uas_interface_ip_pool_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1)).setIndexNames((0, 'UAS-MIB', 'zxUasIPPoolName'), (0, 'UAS-MIB', 'zxUasIPPoolVirtualRouteField'), (0, 'UAS-MIB', 'zxUasIPPoolInterfaceName'), (0, 'UAS-MIB', 'zxUasIPPoolID'), (0, 'UAS-MIB', 'zxUasIPPoolStartIPAddr'), (0, 'UAS-MIB', 'zxUasIPPoolEndIPAddr'))
if mibBuilder.loadTexts:
zxUasInterfaceIPPoolEntry.setStatus('current')
if mibBuilder.loadTexts:
zxUasInterfaceIPPoolEntry.setDescription('This list contains IP Pool parameters and is indexed by zxUasIPPoolName')
zx_uas_ip_pool_name = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasIPPoolName.setStatus('current')
if mibBuilder.loadTexts:
zxUasIPPoolName.setDescription('IP Pool name.')
zx_uas_ip_pool_virtual_route_field = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasIPPoolVirtualRouteField.setStatus('current')
if mibBuilder.loadTexts:
zxUasIPPoolVirtualRouteField.setDescription('IP pool virtual route field name.')
zx_uas_ip_pool_interface_name = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasIPPoolInterfaceName.setStatus('current')
if mibBuilder.loadTexts:
zxUasIPPoolInterfaceName.setDescription('VBUI global port.')
zx_uas_ip_pool_id = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasIPPoolID.setStatus('current')
if mibBuilder.loadTexts:
zxUasIPPoolID.setDescription('IP Pool ID.')
zx_uas_ip_pool_start_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 5), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasIPPoolStartIPAddr.setStatus('current')
if mibBuilder.loadTexts:
zxUasIPPoolStartIPAddr.setDescription('start IP address.')
zx_uas_ip_pool_end_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 6), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasIPPoolEndIPAddr.setStatus('current')
if mibBuilder.loadTexts:
zxUasIPPoolEndIPAddr.setDescription('end IP Address.')
zx_uas_ip_pool_free_ip_num = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasIPPoolFreeIPNum.setStatus('current')
if mibBuilder.loadTexts:
zxUasIPPoolFreeIPNum.setDescription('free IP Num.')
zx_uas_ip_pool_used_ip_num = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasIPPoolUsedIPNum.setStatus('current')
if mibBuilder.loadTexts:
zxUasIPPoolUsedIPNum.setDescription('used IP Num.')
zx_uas_ip_pool_unavailable_ip_num = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasIPPoolUnavailableIPNum.setStatus('current')
if mibBuilder.loadTexts:
zxUasIPPoolUnavailableIPNum.setDescription('unavailable IP Num.')
zx_uas_ip_pool_bind_to_domain_flag = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('unreserved', 1), ('reserved', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasIPPoolBindToDomainFlag.setStatus('current')
if mibBuilder.loadTexts:
zxUasIPPoolBindToDomainFlag.setDescription('this flag is used for binding to domain.')
zx_uas_active_subscriber_table = mib_table((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2))
if mibBuilder.loadTexts:
zxUasActiveSubscriberTable.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberTable.setDescription('This table contains active subscriber entry')
zx_uas_active_subscriber_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1)).setIndexNames((0, 'UAS-MIB', 'zxUasActiveSubscriberVirtualRouteField'), (0, 'UAS-MIB', 'zxUasActiveSubscriberIPAddr'), (0, 'UAS-MIB', 'zxUasActiveSubscriberType'), (0, 'UAS-MIB', 'zxUasActiveSubscriberPPPID'))
if mibBuilder.loadTexts:
zxUasActiveSubscriberEntry.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberEntry.setDescription('This list contains active subscriber parameters and is indexed by zxUasActiveSubscriberIndex ')
zx_uas_active_subscriber_virtual_route_field = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberVirtualRouteField.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberVirtualRouteField.setDescription('active subscriber virtual route field name.')
zx_uas_active_subscriber_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberIPAddr.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberIPAddr.setDescription('active subscriber IP address.')
zx_uas_active_subscriber_type = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('ppp', 1), ('ipdhcp', 2), ('remotedhcp', 3), ('ipdhcprelay', 4), ('iphost', 5), ('remotehost', 6), ('vpn', 7), ('brg', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberType.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberType.setDescription('active subscriber type.')
zx_uas_active_subscriber_pppid = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberPPPID.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberPPPID.setDescription('PPP active subscriber ID.')
zx_uas_active_subscriber_name = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberName.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberName.setDescription('active subscriber name.')
zx_uas_active_subscriber_interface_name = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberInterfaceName.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberInterfaceName.setDescription('active subscriber VBUI global port.')
zx_uas_active_subscriber_doamin_id = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberDoaminID.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberDoaminID.setDescription('active subscriber domain ID.')
zx_uas_active_subscriber_slot = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberSlot.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberSlot.setDescription('active subscriber slot.')
zx_uas_active_subscriber_port = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberPort.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberPort.setDescription('active subscriber port.')
zx_uas_active_subscriber_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberVlanId.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberVlanId.setDescription('active subscriber VlanId.')
zx_uas_active_subscriber_vpi = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberVpi.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberVpi.setDescription('active subscriber vpi value.')
zx_uas_active_subscriber_vci = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberVci.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberVci.setDescription('active subscriber vci value.')
zx_uas_active_subscriber_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 13), phys_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberMACAddr.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberMACAddr.setDescription('active subscriber host MAC address.')
zx_uas_active_subscriber_up_octets = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberUpOctets.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberUpOctets.setDescription('active subscriber up flow.')
zx_uas_active_subscriber_up_giga_octets = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberUpGigaOctets.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberUpGigaOctets.setDescription('active subscriber up flow extend.')
zx_uas_active_subscriber_down_octets = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberDownOctets.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberDownOctets.setDescription('active subscriber down flow.')
zx_uas_active_subscriber_down_giga_octets = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberDownGigaOctets.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberDownGigaOctets.setDescription('active subscriber down flow extend.')
zx_uas_active_dhcp_subscriber_auth_flag = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 18), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveDhcpSubscriberAuthFlag.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveDhcpSubscriberAuthFlag.setDescription('DHCP subscriber authentication status.')
zx_uas_active_subscriber_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 19), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberUpTime.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberUpTime.setDescription('active subscriber create time.')
zx_uas_tail = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('true', 1), ('false', 0))))
if mibBuilder.loadTexts:
zxUasTail.setStatus('current')
if mibBuilder.loadTexts:
zxUasTail.setDescription(' null node')
zx_uas_ppp_call_count = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasPppCallCount.setStatus('current')
if mibBuilder.loadTexts:
zxUasPppCallCount.setDescription('ppp calling counts.')
zx_uas_ppp_call_failed_count = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasPppCallFailedCount.setStatus('current')
if mibBuilder.loadTexts:
zxUasPppCallFailedCount.setDescription('ppp calling failed counts.')
zx_uas_ppp_link_break_failed_count = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasPppLinkBreakFailedCount.setStatus('current')
if mibBuilder.loadTexts:
zxUasPppLinkBreakFailedCount.setDescription('ppp linkbreak failed counts.')
zx_uas_ppp_abnormal_close_count = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasPppAbnormalCloseCount.setStatus('current')
if mibBuilder.loadTexts:
zxUasPppAbnormalCloseCount.setDescription('abnormal close counts.')
zx_uas_active_subscriber_statics_table = mib_table((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 2))
if mibBuilder.loadTexts:
zxUasActiveSubscriberStaticsTable.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberStaticsTable.setDescription('This table contains active subscriber statics Entry')
zx_uas_active_subscriber_statics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 2, 1)).setIndexNames((0, 'UAS-MIB', 'zxUasActiveSubscriberType'))
if mibBuilder.loadTexts:
zxUasActiveSubscriberStaticsEntry.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberStaticsEntry.setDescription('This list contains active subscriber statics parameters and is indexed by zxUasActiveSubscriberType')
zx_uas_active_subscriber_num = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasActiveSubscriberNum.setStatus('current')
if mibBuilder.loadTexts:
zxUasActiveSubscriberNum.setDescription('ppp users num,iphost users num,dhcp users num and vpn users num.')
zx_uas_max_subscriber_online_count = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasMaxSubscriberOnlineCount.setStatus('current')
if mibBuilder.loadTexts:
zxUasMaxSubscriberOnlineCount.setDescription('The subscriber peak online in the history')
zx_uas_max_subscriber_online_clear = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('normal', 0), ('clear', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
zxUasMaxSubscriberOnlineClear.setStatus('current')
if mibBuilder.loadTexts:
zxUasMaxSubscriberOnlineClear.setDescription('Clear subscriber peak online in the history')
zx_uas_max_subscriber_online_time = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zxUasMaxSubscriberOnlineTime.setStatus('current')
if mibBuilder.loadTexts:
zxUasMaxSubscriberOnlineTime.setDescription('The time which the max subscriber occured.')
mibBuilder.exportSymbols('UAS-MIB', zxUasActiveSubscriberNum=zxUasActiveSubscriberNum, zxUasMibObjects=zxUasMibObjects, zxUasIPPoolUnavailableIPNum=zxUasIPPoolUnavailableIPNum, zxUas=zxUas, zxUasActiveSubscriberName=zxUasActiveSubscriberName, zxUasActiveSubscriberStaticsTable=zxUasActiveSubscriberStaticsTable, zxUasActiveSubscriberUpOctets=zxUasActiveSubscriberUpOctets, zxUasActiveSubscriberVpi=zxUasActiveSubscriberVpi, zxUasPppCallCount=zxUasPppCallCount, zxUasActiveSubscriberVirtualRouteField=zxUasActiveSubscriberVirtualRouteField, zxUasSystemGroup=zxUasSystemGroup, zxUasMaxSubscriberOnlineClear=zxUasMaxSubscriberOnlineClear, zxUasActiveSubscriberEntry=zxUasActiveSubscriberEntry, zxUasActiveSubscriberIPAddr=zxUasActiveSubscriberIPAddr, zxUasServiceMgmtGroup=zxUasServiceMgmtGroup, zxUasActiveSubscriberPPPID=zxUasActiveSubscriberPPPID, zxUasActiveSubscriberDoaminID=zxUasActiveSubscriberDoaminID, zxUasInterfaceIPPoolTable=zxUasInterfaceIPPoolTable, zxUasActiveSubscriberTable=zxUasActiveSubscriberTable, zxUasIPPoolVirtualRouteField=zxUasIPPoolVirtualRouteField, zxUasActiveSubscriberInterfaceName=zxUasActiveSubscriberInterfaceName, zte=zte, zxUasIPPoolInterfaceName=zxUasIPPoolInterfaceName, zxUasActiveSubscriberVlanId=zxUasActiveSubscriberVlanId, PYSNMP_MODULE_ID=zxUasMib, zxUasActiveDhcpSubscriberAuthFlag=zxUasActiveDhcpSubscriberAuthFlag, zxUasActiveSubscriberSlot=zxUasActiveSubscriberSlot, zxUasMaxSubscriberOnlineCount=zxUasMaxSubscriberOnlineCount, zxUasActiveSubscriberUpTime=zxUasActiveSubscriberUpTime, zxUasPppAbnormalCloseCount=zxUasPppAbnormalCloseCount, zxUasActiveSubscriberMACAddr=zxUasActiveSubscriberMACAddr, zxUasIPPoolID=zxUasIPPoolID, zxUasActiveSubscriberPort=zxUasActiveSubscriberPort, zxUasStaticsGroup=zxUasStaticsGroup, zxUasActiveSubscriberUpGigaOctets=zxUasActiveSubscriberUpGigaOctets, zxUasMaxSubscriberOnlineTime=zxUasMaxSubscriberOnlineTime, zxUasActiveSubscriberType=zxUasActiveSubscriberType, zxUasMib=zxUasMib, zxUasTraps=zxUasTraps, zxUasInterfaceIPPoolEntry=zxUasInterfaceIPPoolEntry, zxUasIPPoolName=zxUasIPPoolName, zxUasIPPoolEndIPAddr=zxUasIPPoolEndIPAddr, zxUasActiveSubscriberVci=zxUasActiveSubscriberVci, zxUasActiveSubscriberDownOctets=zxUasActiveSubscriberDownOctets, zxUasIPPoolStartIPAddr=zxUasIPPoolStartIPAddr, zxUasActiveSubscriberDownGigaOctets=zxUasActiveSubscriberDownGigaOctets, zxUasIPPoolBindToDomainFlag=zxUasIPPoolBindToDomainFlag, zxUasPppCallFailedCount=zxUasPppCallFailedCount, zxUasPppLinkBreakFailedCount=zxUasPppLinkBreakFailedCount, zxUasActiveSubscriberStaticsEntry=zxUasActiveSubscriberStaticsEntry, zxUasIPPoolUsedIPNum=zxUasIPPoolUsedIPNum, zxUasIPPoolFreeIPNum=zxUasIPPoolFreeIPNum, zxUasPppStatics=zxUasPppStatics, zxUasTail=zxUasTail) |
def maior_primo(num):
if num < 2:
return False
else:
for n in range(2, num):
while num % n == 0:
return num - 1
return num
| def maior_primo(num):
if num < 2:
return False
else:
for n in range(2, num):
while num % n == 0:
return num - 1
return num |
class DragEventArgs(EventArgs):
"""
Provides data for the System.Windows.Forms.Control.DragDrop,System.Windows.Forms.Control.DragEnter,or System.Windows.Forms.Control.DragOver event.
DragEventArgs(data: IDataObject,keyState: int,x: int,y: int,allowedEffect: DragDropEffects,effect: DragDropEffects)
"""
@staticmethod
def __new__(self, data, keyState, x, y, allowedEffect, effect):
""" __new__(cls: type,data: IDataObject,keyState: int,x: int,y: int,allowedEffect: DragDropEffects,effect: DragDropEffects) """
pass
AllowedEffect = property(
lambda self: object(), lambda self, v: None, lambda self: None
)
"""Gets which drag-and-drop operations are allowed by the originator (or source) of the drag event.
Get: AllowedEffect(self: DragEventArgs) -> DragDropEffects
"""
Data = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Gets the System.Windows.Forms.IDataObject that contains the data associated with this event.
Get: Data(self: DragEventArgs) -> IDataObject
"""
Effect = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Gets or sets the target drop effect in a drag-and-drop operation.
Get: Effect(self: DragEventArgs) -> DragDropEffects
Set: Effect(self: DragEventArgs)=value
"""
KeyState = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Gets the current state of the SHIFT,CTRL,and ALT keys,as well as the state of the mouse buttons.
Get: KeyState(self: DragEventArgs) -> int
"""
X = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Gets the x-coordinate of the mouse pointer,in screen coordinates.
Get: X(self: DragEventArgs) -> int
"""
Y = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Gets the y-coordinate of the mouse pointer,in screen coordinates.
Get: Y(self: DragEventArgs) -> int
"""
| class Drageventargs(EventArgs):
"""
Provides data for the System.Windows.Forms.Control.DragDrop,System.Windows.Forms.Control.DragEnter,or System.Windows.Forms.Control.DragOver event.
DragEventArgs(data: IDataObject,keyState: int,x: int,y: int,allowedEffect: DragDropEffects,effect: DragDropEffects)
"""
@staticmethod
def __new__(self, data, keyState, x, y, allowedEffect, effect):
""" __new__(cls: type,data: IDataObject,keyState: int,x: int,y: int,allowedEffect: DragDropEffects,effect: DragDropEffects) """
pass
allowed_effect = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets which drag-and-drop operations are allowed by the originator (or source) of the drag event.\n\n\n\nGet: AllowedEffect(self: DragEventArgs) -> DragDropEffects\n\n\n\n'
data = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets the System.Windows.Forms.IDataObject that contains the data associated with this event.\n\n\n\nGet: Data(self: DragEventArgs) -> IDataObject\n\n\n\n'
effect = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets or sets the target drop effect in a drag-and-drop operation.\n\n\n\nGet: Effect(self: DragEventArgs) -> DragDropEffects\n\n\n\nSet: Effect(self: DragEventArgs)=value\n\n'
key_state = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets the current state of the SHIFT,CTRL,and ALT keys,as well as the state of the mouse buttons.\n\n\n\nGet: KeyState(self: DragEventArgs) -> int\n\n\n\n'
x = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets the x-coordinate of the mouse pointer,in screen coordinates.\n\n\n\nGet: X(self: DragEventArgs) -> int\n\n\n\n'
y = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets the y-coordinate of the mouse pointer,in screen coordinates.\n\n\n\nGet: Y(self: DragEventArgs) -> int\n\n\n\n' |
"""
max dimensions (width & height) of the material
if the part is larger than the max dimensions then part must be `pieced` together
kerf
if our laser beam has a width of 20 mm (kerf - aka the thickness of the blade)
and we do not factor this into our calculations (i.e., a kerf value of 0)
then we would take off 10 mm too much material from the edge of the shape
if we use a kerf value of 10, then 5 mm too much material from the edge would be taken off
if we use a kerf value of 20 then 0 mm too much material would be taken off
-10 (-5) --> 15 (even looser fit -- taking off 15 mm too much)
0 (0) --> 10 (looser fit)
8 (4) --> 6
10 (5) --> 5
12 (6) --> 4
14 (7) --> 3
16 (8) --> 2
20 (10) --> 0 (tighter fit)
30 (15) --> +5 (even tighter fit -- adding on additional material)
The burn correction value is the half (i.e., radius) of the laser's diameter (i.e., width or kerf)
Note: The way the burn param works is a bit counter intuitive. Bigger burn values make a
tighter fit. Smaller values make a looser fit.
Small changes in the burn param can make a notable difference. Typical steps for adjustment
are 0.01 mm or even 0.005 mm to choose between different amounts of force needed to press
plywood together.
fingers
with of fingers / space-between-fingers is a multiple (whole or fractional) of the material thickness
with of the beginning / end space is a multiple (whole or fractional?) of the finger width
the number of fingers plus space-between-fingers is always an odd number
"""
| """
max dimensions (width & height) of the material
if the part is larger than the max dimensions then part must be `pieced` together
kerf
if our laser beam has a width of 20 mm (kerf - aka the thickness of the blade)
and we do not factor this into our calculations (i.e., a kerf value of 0)
then we would take off 10 mm too much material from the edge of the shape
if we use a kerf value of 10, then 5 mm too much material from the edge would be taken off
if we use a kerf value of 20 then 0 mm too much material would be taken off
-10 (-5) --> 15 (even looser fit -- taking off 15 mm too much)
0 (0) --> 10 (looser fit)
8 (4) --> 6
10 (5) --> 5
12 (6) --> 4
14 (7) --> 3
16 (8) --> 2
20 (10) --> 0 (tighter fit)
30 (15) --> +5 (even tighter fit -- adding on additional material)
The burn correction value is the half (i.e., radius) of the laser's diameter (i.e., width or kerf)
Note: The way the burn param works is a bit counter intuitive. Bigger burn values make a
tighter fit. Smaller values make a looser fit.
Small changes in the burn param can make a notable difference. Typical steps for adjustment
are 0.01 mm or even 0.005 mm to choose between different amounts of force needed to press
plywood together.
fingers
with of fingers / space-between-fingers is a multiple (whole or fractional) of the material thickness
with of the beginning / end space is a multiple (whole or fractional?) of the finger width
the number of fingers plus space-between-fingers is always an odd number
""" |
# Demo Python If ... Else - And
'''
And
The 'and' keyword is a logical operator, and is used to combine conditional statements.
'''
# Test if a is greater than b, AND if c is greater than a:
a = 200
b = 33
c = 500
if a > b and c > a:
print("Both conditions are True") | """
And
The 'and' keyword is a logical operator, and is used to combine conditional statements.
"""
a = 200
b = 33
c = 500
if a > b and c > a:
print('Both conditions are True') |
def timesize(t):
if t<60:
return f"{t:.2f}s"
elif t<3600:
return f"{t/60:.2f}m"
elif t<86400:
return f"{t/3600:.2f}h"
else:
return f"{t/86400:.2f}d"
| def timesize(t):
if t < 60:
return f'{t:.2f}s'
elif t < 3600:
return f'{t / 60:.2f}m'
elif t < 86400:
return f'{t / 3600:.2f}h'
else:
return f'{t / 86400:.2f}d' |
# .txt mesh converter
def txt_mesh_converter(mesh_filename):
# txt mesh converter, returns mesh variables
with open(mesh_filename, 'r') as mesh_file:
lines = mesh_file.readlines()
# remove blank lines
lines_list = []
for line in lines:
if line.strip():
lines_list.append(line)
surfaces_start = lines_list.index('$Surfaces\n')
surfaces_end = lines_list.index('$EndSurfaces\n')
surfaces_elements_start = lines_list.index('$SurfacesElements\n')
surfaces_elements_end = lines_list.index('$EndSurfacesElements\n')
boundaries_start = lines_list.index('$Boundaries\n')
boundaries_end = lines_list.index('$EndBoundaries\n')
boundaries_nodes_start = lines_list.index('$BoundariesNodes\n')
boundaries_nodes_end = lines_list.index('$EndBoundariesNodes\n')
nodes_start = lines_list.index('$Nodes\n')
nodes_end = lines_list.index('$EndNodes\n')
elements_start = lines_list.index('$Elements\n')
elements_end = lines_list.index('$EndElements\n')
surfaces = [lines_list[i] for i in range(surfaces_start + 1, surfaces_end)]
surfaces_tags = []
surfaces_names = []
for i in range(len(surfaces)):
surfaces[i] = surfaces[i].split()
surfaces_tags.append(int(surfaces[i][0]))
surfaces_names.append(surfaces[i][1])
boundaries = [lines_list[i] for i in range(boundaries_start + 1, boundaries_end)]
boundaries_tags = []
boundaries_names = []
for i in range(len(boundaries)):
boundaries[i] = boundaries[i].split()
boundaries_tags.append(int(boundaries[i][0]))
boundaries_names.append(boundaries[i][1])
nodes = [lines_list[i] for i in range(nodes_start + 1, nodes_end)]
nodes_tags = []
x_nodes_coordinates = []
y_nodes_coordinates = []
for i in range(len(nodes)):
nodes[i] = nodes[i].split()
nodes_tags.append(int(nodes[i][0]))
x_nodes_coordinates.append(float(nodes[i][1]))
y_nodes_coordinates.append(float(nodes[i][2]))
elements = [lines_list[i] for i in range(elements_start + 1, elements_end)]
elements_tags = []
connectivity = []
for i in range(1, len(elements)):
elements[i] = elements[i].split()
element_connectivity = [nodes_tags.index(int(elements[i][j])) for j in range(1, len(elements[i]))]
if elements[0].lower() == 'c\n':
tmp_element_connectivity = list(element_connectivity)
element_connectivity = [tmp_element_connectivity[j] for j in [0, 3, 2, 1]]
elements_tags.append(int(elements[i][0]))
connectivity.append(element_connectivity)
surfaces_elements_list = [lines_list[i] for i in range(surfaces_elements_start + 1, surfaces_elements_end)]
number_of_surfaces = int(surfaces_elements_list[0])
surface_elements = [i for i in range(number_of_surfaces)]
for i in range(1, len(surfaces_elements_list), 2):
surfaces_elements_list[i] = surfaces_elements_list[i][0].split()
surfaces_elements_list[i + 1] = surfaces_elements_list[i + 1].split()
index_ = surfaces_tags.index(int(surfaces_elements_list[i][0]))
elements_list = [elements_tags.index(int(surfaces_elements_list[i + 1][j])) for j in
range(len(surfaces_elements_list[i + 1]))]
surface_elements[index_] = list(elements_list)
boundaries_nodes_list = [lines_list[i] for i in range(boundaries_nodes_start + 1, boundaries_nodes_end)]
number_of_boundaries = int(boundaries_nodes_list[0])
boundary_nodes = [i for i in range(number_of_boundaries)]
for i in range(1, len(boundaries_nodes_list), 2):
boundaries_nodes_list[i] = boundaries_nodes_list[i].split()
boundaries_nodes_list[i + 1] = boundaries_nodes_list[i + 1].split()
index_ = boundaries_tags.index(int(boundaries_nodes_list[i][0]))
nodes_list = [nodes_tags.index(int(boundaries_nodes_list[i + 1][j])) for j in
range(len(boundaries_nodes_list[i + 1]))]
boundary_nodes[index_] = list(nodes_list)
return surfaces_names, boundaries_names, x_nodes_coordinates, y_nodes_coordinates, \
connectivity, surface_elements, boundary_nodes
| def txt_mesh_converter(mesh_filename):
with open(mesh_filename, 'r') as mesh_file:
lines = mesh_file.readlines()
lines_list = []
for line in lines:
if line.strip():
lines_list.append(line)
surfaces_start = lines_list.index('$Surfaces\n')
surfaces_end = lines_list.index('$EndSurfaces\n')
surfaces_elements_start = lines_list.index('$SurfacesElements\n')
surfaces_elements_end = lines_list.index('$EndSurfacesElements\n')
boundaries_start = lines_list.index('$Boundaries\n')
boundaries_end = lines_list.index('$EndBoundaries\n')
boundaries_nodes_start = lines_list.index('$BoundariesNodes\n')
boundaries_nodes_end = lines_list.index('$EndBoundariesNodes\n')
nodes_start = lines_list.index('$Nodes\n')
nodes_end = lines_list.index('$EndNodes\n')
elements_start = lines_list.index('$Elements\n')
elements_end = lines_list.index('$EndElements\n')
surfaces = [lines_list[i] for i in range(surfaces_start + 1, surfaces_end)]
surfaces_tags = []
surfaces_names = []
for i in range(len(surfaces)):
surfaces[i] = surfaces[i].split()
surfaces_tags.append(int(surfaces[i][0]))
surfaces_names.append(surfaces[i][1])
boundaries = [lines_list[i] for i in range(boundaries_start + 1, boundaries_end)]
boundaries_tags = []
boundaries_names = []
for i in range(len(boundaries)):
boundaries[i] = boundaries[i].split()
boundaries_tags.append(int(boundaries[i][0]))
boundaries_names.append(boundaries[i][1])
nodes = [lines_list[i] for i in range(nodes_start + 1, nodes_end)]
nodes_tags = []
x_nodes_coordinates = []
y_nodes_coordinates = []
for i in range(len(nodes)):
nodes[i] = nodes[i].split()
nodes_tags.append(int(nodes[i][0]))
x_nodes_coordinates.append(float(nodes[i][1]))
y_nodes_coordinates.append(float(nodes[i][2]))
elements = [lines_list[i] for i in range(elements_start + 1, elements_end)]
elements_tags = []
connectivity = []
for i in range(1, len(elements)):
elements[i] = elements[i].split()
element_connectivity = [nodes_tags.index(int(elements[i][j])) for j in range(1, len(elements[i]))]
if elements[0].lower() == 'c\n':
tmp_element_connectivity = list(element_connectivity)
element_connectivity = [tmp_element_connectivity[j] for j in [0, 3, 2, 1]]
elements_tags.append(int(elements[i][0]))
connectivity.append(element_connectivity)
surfaces_elements_list = [lines_list[i] for i in range(surfaces_elements_start + 1, surfaces_elements_end)]
number_of_surfaces = int(surfaces_elements_list[0])
surface_elements = [i for i in range(number_of_surfaces)]
for i in range(1, len(surfaces_elements_list), 2):
surfaces_elements_list[i] = surfaces_elements_list[i][0].split()
surfaces_elements_list[i + 1] = surfaces_elements_list[i + 1].split()
index_ = surfaces_tags.index(int(surfaces_elements_list[i][0]))
elements_list = [elements_tags.index(int(surfaces_elements_list[i + 1][j])) for j in range(len(surfaces_elements_list[i + 1]))]
surface_elements[index_] = list(elements_list)
boundaries_nodes_list = [lines_list[i] for i in range(boundaries_nodes_start + 1, boundaries_nodes_end)]
number_of_boundaries = int(boundaries_nodes_list[0])
boundary_nodes = [i for i in range(number_of_boundaries)]
for i in range(1, len(boundaries_nodes_list), 2):
boundaries_nodes_list[i] = boundaries_nodes_list[i].split()
boundaries_nodes_list[i + 1] = boundaries_nodes_list[i + 1].split()
index_ = boundaries_tags.index(int(boundaries_nodes_list[i][0]))
nodes_list = [nodes_tags.index(int(boundaries_nodes_list[i + 1][j])) for j in range(len(boundaries_nodes_list[i + 1]))]
boundary_nodes[index_] = list(nodes_list)
return (surfaces_names, boundaries_names, x_nodes_coordinates, y_nodes_coordinates, connectivity, surface_elements, boundary_nodes) |
getAllObjects = [
{
"id": 1,
"keyName": "SPREAD",
"name": "SPREAD"
}
]
| get_all_objects = [{'id': 1, 'keyName': 'SPREAD', 'name': 'SPREAD'}] |
"""
[2017-10-20] Challenge #336 [Hard] Van der Waerden numbers
https://www.reddit.com/r/dailyprogrammer/comments/77m6l4/20171020_challenge_336_hard_van_der_waerden/
# Description
This one came to me via the always interesting [Data Genetics
blog](http://datagenetics.com/blog/august12017/index.html).
Van der Waerden's theorem relates to ways that collections can be colored, in order, avoiding spacing of colors that
are a defined length arithmetic progression apart. They are named after the Dutch mathematician B. L. van der Waerden.
_W(c,k)_ can be defined as the smallest value where c represents the number of colors in the sequence, and k represents
the number of elements in the arithmetic progression.
In mathematics, an arithmetic progression is a sequence of numbers such that the difference between the consecutive
terms is constant. For instance, the sequence 5, 7, 9, 11, 13, 15, ... is an arithmetic progression with common
difference of 2.
[Van der Waerden numbers](https://en.wikipedia.org/wiki/Van_der_Waerden_number) (W) are defined as the smallest
arrangement of _c_ different colors such that there exists an arithmetic sequence of length _k_. The simplest
non-trivial example is _W(2,3)_. Consider two colors, **B** and **R**:
B R R B B R R B
If we add a **B** to the sequence, we already have **B** at positions 1, 5 and 9 - a difference of 4. If we add an
**R** to the sequence, we have an **R** at positions 3, 6 and 9 - a difference of 3. There is no way of coloring 1
through 9 without creating a three step progression of one color or another, so _W(2,3)=9_.
Adding a color - _W(3,3)_ - causes the value to jump to 27; adding a length requirement to the arithmetic sequence -
_W(2,4)_ - causes the value to increase to 35.
Van der Waerden numbers are an open area of research, with exact values known for only a limited number of
combinations.
Your challenge today is to write a program that can calculate the Van der Waerden number for some small values.
# Input Description
You'll be given two integers per line indicating _c_ and _k_. Example:
2 3
# Output Description
Your program should emit the Van der Waerden number _W(c,k)_ for that input. Example:
W(2,3) = 9
# Challenge Input
2 6
4 3
3 4
# Challenge Output
W(2,6) = 1132
W(4,3) = 76
W(3,4) = 293
"""
def main():
pass
if __name__ == "__main__":
main()
| """
[2017-10-20] Challenge #336 [Hard] Van der Waerden numbers
https://www.reddit.com/r/dailyprogrammer/comments/77m6l4/20171020_challenge_336_hard_van_der_waerden/
# Description
This one came to me via the always interesting [Data Genetics
blog](http://datagenetics.com/blog/august12017/index.html).
Van der Waerden's theorem relates to ways that collections can be colored, in order, avoiding spacing of colors that
are a defined length arithmetic progression apart. They are named after the Dutch mathematician B. L. van der Waerden.
_W(c,k)_ can be defined as the smallest value where c represents the number of colors in the sequence, and k represents
the number of elements in the arithmetic progression.
In mathematics, an arithmetic progression is a sequence of numbers such that the difference between the consecutive
terms is constant. For instance, the sequence 5, 7, 9, 11, 13, 15, ... is an arithmetic progression with common
difference of 2.
[Van der Waerden numbers](https://en.wikipedia.org/wiki/Van_der_Waerden_number) (W) are defined as the smallest
arrangement of _c_ different colors such that there exists an arithmetic sequence of length _k_. The simplest
non-trivial example is _W(2,3)_. Consider two colors, **B** and **R**:
B R R B B R R B
If we add a **B** to the sequence, we already have **B** at positions 1, 5 and 9 - a difference of 4. If we add an
**R** to the sequence, we have an **R** at positions 3, 6 and 9 - a difference of 3. There is no way of coloring 1
through 9 without creating a three step progression of one color or another, so _W(2,3)=9_.
Adding a color - _W(3,3)_ - causes the value to jump to 27; adding a length requirement to the arithmetic sequence -
_W(2,4)_ - causes the value to increase to 35.
Van der Waerden numbers are an open area of research, with exact values known for only a limited number of
combinations.
Your challenge today is to write a program that can calculate the Van der Waerden number for some small values.
# Input Description
You'll be given two integers per line indicating _c_ and _k_. Example:
2 3
# Output Description
Your program should emit the Van der Waerden number _W(c,k)_ for that input. Example:
W(2,3) = 9
# Challenge Input
2 6
4 3
3 4
# Challenge Output
W(2,6) = 1132
W(4,3) = 76
W(3,4) = 293
"""
def main():
pass
if __name__ == '__main__':
main() |
#
# PySNMP MIB module CISCO-OPTICAL-MONITOR-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-OPTICAL-MONITOR-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:51:58 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex")
NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance")
MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Counter32, Bits, Gauge32, ObjectIdentity, IpAddress, Counter64, ModuleIdentity, Integer32, TimeTicks, NotificationType, iso, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Counter32", "Bits", "Gauge32", "ObjectIdentity", "IpAddress", "Counter64", "ModuleIdentity", "Integer32", "TimeTicks", "NotificationType", "iso", "MibIdentifier")
TextualConvention, DisplayString, TimeStamp = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString", "TimeStamp")
ciscoOpticalMonitorMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 264))
ciscoOpticalMonitorMIB.setRevisions(('2007-01-02 00:00', '2002-05-10 00:00',))
if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setLastUpdated('200701020000Z')
if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setOrganization('Cisco Systems, Inc.')
class OpticalParameterType(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))
namedValues = NamedValues(("power", 1), ("acPower", 2), ("ambientTemp", 3), ("laserTemp", 4), ("biasCurrent", 5), ("peltierCurrent", 6), ("xcvrVoltage", 7))
class OpticalParameterValue(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(-1000000, 1000000)
class OpticalIfDirection(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3))
namedValues = NamedValues(("receive", 1), ("transmit", 2), ("notApplicable", 3))
class OpticalIfMonLocation(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3))
namedValues = NamedValues(("beforeAdjustment", 1), ("afterAdjustment", 2), ("notApplicable", 3))
class OpticalAlarmStatus(TextualConvention, OctetString):
reference = 'Telcordia Technologies Generic Requirements GR-2918-CORE, Issue 4, December 1999, Section 8.11'
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 1)
fixedLength = 1
class OpticalAlarmSeverity(TextualConvention, Integer32):
reference = 'Telcordia Technologies Generic Requirements GR-474-CORE, Issue 1, December 1997, Section 2.2'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))
namedValues = NamedValues(("critical", 1), ("major", 2), ("minor", 3), ("notAlarmed", 4), ("notReported", 5), ("cleared", 6))
class OpticalAlarmSeverityOrZero(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 6)
class OpticalPMPeriod(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("fifteenMin", 1), ("twentyFourHour", 2))
cOpticalMonitorMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1))
cOpticalMonGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1))
cOpticalPMGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2))
cOpticalMonTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1), )
if mibBuilder.loadTexts: cOpticalMonTable.setStatus('current')
cOpticalMonEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonDirection"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonLocation"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonParameterType"))
if mibBuilder.loadTexts: cOpticalMonEntry.setStatus('current')
cOpticalMonDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 1), OpticalIfDirection())
if mibBuilder.loadTexts: cOpticalMonDirection.setStatus('current')
cOpticalMonLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 2), OpticalIfMonLocation())
if mibBuilder.loadTexts: cOpticalMonLocation.setStatus('current')
cOpticalMonParameterType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 3), OpticalParameterType())
if mibBuilder.loadTexts: cOpticalMonParameterType.setStatus('current')
cOpticalParameterValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 4), OpticalParameterValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalParameterValue.setStatus('current')
cOpticalParamHighAlarmThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 5), OpticalParameterValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cOpticalParamHighAlarmThresh.setStatus('current')
cOpticalParamHighAlarmSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 6), OpticalAlarmSeverity()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cOpticalParamHighAlarmSev.setStatus('current')
cOpticalParamHighWarningThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 7), OpticalParameterValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cOpticalParamHighWarningThresh.setStatus('current')
cOpticalParamHighWarningSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 8), OpticalAlarmSeverity()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cOpticalParamHighWarningSev.setStatus('current')
cOpticalParamLowAlarmThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 9), OpticalParameterValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cOpticalParamLowAlarmThresh.setStatus('current')
cOpticalParamLowAlarmSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 10), OpticalAlarmSeverity()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cOpticalParamLowAlarmSev.setStatus('current')
cOpticalParamLowWarningThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 11), OpticalParameterValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cOpticalParamLowWarningThresh.setStatus('current')
cOpticalParamLowWarningSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 12), OpticalAlarmSeverity()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cOpticalParamLowWarningSev.setStatus('current')
cOpticalParamAlarmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 13), OpticalAlarmStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalParamAlarmStatus.setStatus('current')
cOpticalParamAlarmCurMaxThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 14), OpticalParameterValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalParamAlarmCurMaxThresh.setStatus('current')
cOpticalParamAlarmCurMaxSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 15), OpticalAlarmSeverity()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalParamAlarmCurMaxSev.setStatus('current')
cOpticalParamAlarmLastChange = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 16), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalParamAlarmLastChange.setStatus('current')
cOpticalMon15MinValidIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 17), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalMon15MinValidIntervals.setStatus('current')
cOpticalMon24HrValidIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 18), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalMon24HrValidIntervals.setStatus('current')
cOpticalParamThreshSource = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 19), Bits().clone(namedValues=NamedValues(("highAlarmDefThresh", 0), ("highWarnDefThresh", 1), ("lowAlarmDefThresh", 2), ("lowWarnDefThresh", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cOpticalParamThreshSource.setStatus('current')
cOpticalNotifyEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 2), OpticalAlarmSeverityOrZero()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cOpticalNotifyEnable.setStatus('current')
cOpticalMonEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 3), Bits().clone(namedValues=NamedValues(("all", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cOpticalMonEnable.setStatus('current')
cOpticalMonPollInterval = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 4), Unsigned32()).setUnits('minutes').setMaxAccess("readwrite")
if mibBuilder.loadTexts: cOpticalMonPollInterval.setStatus('current')
cOpticalMonIfTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5), )
if mibBuilder.loadTexts: cOpticalMonIfTable.setStatus('current')
cOpticalMonIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: cOpticalMonIfEntry.setStatus('current')
cOpticalMonIfTimeInSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5, 1, 1), Unsigned32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalMonIfTimeInSlot.setStatus('current')
cOpticalPMCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1), )
if mibBuilder.loadTexts: cOpticalPMCurrentTable.setStatus('current')
cOpticalPMCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1), ).setIndexNames((0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentPeriod"), (0, "IF-MIB", "ifIndex"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentDirection"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentLocation"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentParamType"))
if mibBuilder.loadTexts: cOpticalPMCurrentEntry.setStatus('current')
cOpticalPMCurrentPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 1), OpticalPMPeriod())
if mibBuilder.loadTexts: cOpticalPMCurrentPeriod.setStatus('current')
cOpticalPMCurrentDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 2), OpticalIfDirection())
if mibBuilder.loadTexts: cOpticalPMCurrentDirection.setStatus('current')
cOpticalPMCurrentLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 3), OpticalIfMonLocation())
if mibBuilder.loadTexts: cOpticalPMCurrentLocation.setStatus('current')
cOpticalPMCurrentParamType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 4), OpticalParameterType())
if mibBuilder.loadTexts: cOpticalPMCurrentParamType.setStatus('current')
cOpticalPMCurrentMaxParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 5), OpticalParameterValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalPMCurrentMaxParam.setStatus('current')
cOpticalPMCurrentMinParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 6), OpticalParameterValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalPMCurrentMinParam.setStatus('current')
cOpticalPMCurrentMeanParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 7), OpticalParameterValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalPMCurrentMeanParam.setStatus('current')
cOpticalPMCurrentUnavailSecs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 86400))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalPMCurrentUnavailSecs.setStatus('current')
cOpticalPMIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2), )
if mibBuilder.loadTexts: cOpticalPMIntervalTable.setStatus('current')
cOpticalPMIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1), ).setIndexNames((0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalPeriod"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalNumber"), (0, "IF-MIB", "ifIndex"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalDirection"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalLocation"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalParamType"))
if mibBuilder.loadTexts: cOpticalPMIntervalEntry.setStatus('current')
cOpticalPMIntervalPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 1), OpticalPMPeriod())
if mibBuilder.loadTexts: cOpticalPMIntervalPeriod.setStatus('current')
cOpticalPMIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 96)))
if mibBuilder.loadTexts: cOpticalPMIntervalNumber.setStatus('current')
cOpticalPMIntervalDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 3), OpticalIfDirection())
if mibBuilder.loadTexts: cOpticalPMIntervalDirection.setStatus('current')
cOpticalPMIntervalLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 4), OpticalIfMonLocation())
if mibBuilder.loadTexts: cOpticalPMIntervalLocation.setStatus('current')
cOpticalPMIntervalParamType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 5), OpticalParameterType())
if mibBuilder.loadTexts: cOpticalPMIntervalParamType.setStatus('current')
cOpticalPMIntervalMaxParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 6), OpticalParameterValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalPMIntervalMaxParam.setStatus('current')
cOpticalPMIntervalMinParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 7), OpticalParameterValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalPMIntervalMinParam.setStatus('current')
cOpticalPMIntervalMeanParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 8), OpticalParameterValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalPMIntervalMeanParam.setStatus('current')
cOpticalPMIntervalUnavailSecs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 86400))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cOpticalPMIntervalUnavailSecs.setStatus('current')
cOpticalMonitorMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 2))
cOpticalMonNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 2, 0))
cOpticalMonParameterStatus = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 264, 2, 0, 1)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParameterValue"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmStatus"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmCurMaxThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmCurMaxSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmLastChange"))
if mibBuilder.loadTexts: cOpticalMonParameterStatus.setStatus('current')
cOpticalMonitorMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3))
cOpticalMonitorMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1))
cOpticalMonitorMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2))
cOpticalMonitorMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1, 1)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBMonGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBThresholdGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBSeverityGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBPMGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBNotifyEnableGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBNotifGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cOpticalMonitorMIBCompliance = cOpticalMonitorMIBCompliance.setStatus('deprecated')
cOpticalMonitorMIBComplianceRev = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1, 2)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBMonGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBThresholdGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBSeverityGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBPMGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonIfTimeGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBNotifyEnableGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBNotifGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBEnableConfigGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBIntervalConfigGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonThreshSourceGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cOpticalMonitorMIBComplianceRev = cOpticalMonitorMIBComplianceRev.setStatus('current')
cOpticalMIBMonGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 1)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParameterValue"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cOpticalMIBMonGroup = cOpticalMIBMonGroup.setStatus('current')
cOpticalMIBThresholdGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 2)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamHighAlarmThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamHighWarningThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamLowAlarmThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamLowWarningThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmStatus"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmCurMaxThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmLastChange"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cOpticalMIBThresholdGroup = cOpticalMIBThresholdGroup.setStatus('current')
cOpticalMIBSeverityGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 3)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamHighAlarmSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamHighWarningSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamLowAlarmSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamLowWarningSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmCurMaxSev"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cOpticalMIBSeverityGroup = cOpticalMIBSeverityGroup.setStatus('current')
cOpticalMIBPMGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 4)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMon15MinValidIntervals"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMon24HrValidIntervals"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentMaxParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentMinParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentMeanParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentUnavailSecs"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalMaxParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalMinParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalMeanParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalUnavailSecs"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cOpticalMIBPMGroup = cOpticalMIBPMGroup.setStatus('current')
cOpticalMIBNotifyEnableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 5)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalNotifyEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cOpticalMIBNotifyEnableGroup = cOpticalMIBNotifyEnableGroup.setStatus('current')
cOpticalMIBNotifGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 6)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonParameterStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cOpticalMIBNotifGroup = cOpticalMIBNotifGroup.setStatus('current')
cOpticalMonIfTimeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 7)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonIfTimeInSlot"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cOpticalMonIfTimeGroup = cOpticalMonIfTimeGroup.setStatus('current')
cOpticalMIBEnableConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 8)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cOpticalMIBEnableConfigGroup = cOpticalMIBEnableConfigGroup.setStatus('current')
cOpticalMIBIntervalConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 9)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonPollInterval"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cOpticalMIBIntervalConfigGroup = cOpticalMIBIntervalConfigGroup.setStatus('current')
cOpticalMonThreshSourceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 10)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamThreshSource"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cOpticalMonThreshSourceGroup = cOpticalMonThreshSourceGroup.setStatus('current')
mibBuilder.exportSymbols("CISCO-OPTICAL-MONITOR-MIB", cOpticalParamHighAlarmThresh=cOpticalParamHighAlarmThresh, cOpticalParamHighWarningThresh=cOpticalParamHighWarningThresh, cOpticalPMCurrentLocation=cOpticalPMCurrentLocation, cOpticalMIBMonGroup=cOpticalMIBMonGroup, cOpticalMonNotificationPrefix=cOpticalMonNotificationPrefix, cOpticalMonGroup=cOpticalMonGroup, cOpticalMonIfTimeInSlot=cOpticalMonIfTimeInSlot, cOpticalMonitorMIBNotifications=cOpticalMonitorMIBNotifications, OpticalParameterType=OpticalParameterType, cOpticalMonEntry=cOpticalMonEntry, OpticalPMPeriod=OpticalPMPeriod, cOpticalMIBNotifGroup=cOpticalMIBNotifGroup, cOpticalMIBIntervalConfigGroup=cOpticalMIBIntervalConfigGroup, OpticalIfDirection=OpticalIfDirection, ciscoOpticalMonitorMIB=ciscoOpticalMonitorMIB, cOpticalMonParameterType=cOpticalMonParameterType, cOpticalPMCurrentTable=cOpticalPMCurrentTable, cOpticalMonEnable=cOpticalMonEnable, cOpticalMIBEnableConfigGroup=cOpticalMIBEnableConfigGroup, cOpticalMonitorMIBCompliance=cOpticalMonitorMIBCompliance, cOpticalPMGroup=cOpticalPMGroup, cOpticalPMIntervalMaxParam=cOpticalPMIntervalMaxParam, cOpticalMonIfTimeGroup=cOpticalMonIfTimeGroup, cOpticalPMCurrentUnavailSecs=cOpticalPMCurrentUnavailSecs, cOpticalMonIfTable=cOpticalMonIfTable, cOpticalParamHighWarningSev=cOpticalParamHighWarningSev, cOpticalParamThreshSource=cOpticalParamThreshSource, cOpticalMIBSeverityGroup=cOpticalMIBSeverityGroup, OpticalIfMonLocation=OpticalIfMonLocation, cOpticalMonThreshSourceGroup=cOpticalMonThreshSourceGroup, cOpticalPMCurrentPeriod=cOpticalPMCurrentPeriod, cOpticalMIBThresholdGroup=cOpticalMIBThresholdGroup, cOpticalMonitorMIBConformance=cOpticalMonitorMIBConformance, cOpticalPMCurrentMinParam=cOpticalPMCurrentMinParam, cOpticalPMIntervalEntry=cOpticalPMIntervalEntry, cOpticalParamLowWarningThresh=cOpticalParamLowWarningThresh, cOpticalMonitorMIBComplianceRev=cOpticalMonitorMIBComplianceRev, cOpticalParamLowWarningSev=cOpticalParamLowWarningSev, cOpticalPMIntervalParamType=cOpticalPMIntervalParamType, cOpticalPMIntervalUnavailSecs=cOpticalPMIntervalUnavailSecs, cOpticalPMCurrentEntry=cOpticalPMCurrentEntry, OpticalAlarmSeverityOrZero=OpticalAlarmSeverityOrZero, cOpticalParamLowAlarmThresh=cOpticalParamLowAlarmThresh, cOpticalPMCurrentMeanParam=cOpticalPMCurrentMeanParam, cOpticalPMIntervalNumber=cOpticalPMIntervalNumber, cOpticalMIBNotifyEnableGroup=cOpticalMIBNotifyEnableGroup, cOpticalMonIfEntry=cOpticalMonIfEntry, cOpticalPMCurrentMaxParam=cOpticalPMCurrentMaxParam, cOpticalPMIntervalPeriod=cOpticalPMIntervalPeriod, cOpticalPMIntervalMinParam=cOpticalPMIntervalMinParam, cOpticalParamAlarmCurMaxSev=cOpticalParamAlarmCurMaxSev, cOpticalPMCurrentParamType=cOpticalPMCurrentParamType, cOpticalParamLowAlarmSev=cOpticalParamLowAlarmSev, cOpticalParamAlarmCurMaxThresh=cOpticalParamAlarmCurMaxThresh, cOpticalParamHighAlarmSev=cOpticalParamHighAlarmSev, cOpticalMonitorMIBCompliances=cOpticalMonitorMIBCompliances, OpticalAlarmStatus=OpticalAlarmStatus, cOpticalMonDirection=cOpticalMonDirection, cOpticalMonitorMIBObjects=cOpticalMonitorMIBObjects, cOpticalParamAlarmLastChange=cOpticalParamAlarmLastChange, cOpticalPMIntervalDirection=cOpticalPMIntervalDirection, cOpticalParameterValue=cOpticalParameterValue, PYSNMP_MODULE_ID=ciscoOpticalMonitorMIB, cOpticalMonLocation=cOpticalMonLocation, cOpticalParamAlarmStatus=cOpticalParamAlarmStatus, cOpticalMonParameterStatus=cOpticalMonParameterStatus, cOpticalPMIntervalLocation=cOpticalPMIntervalLocation, OpticalParameterValue=OpticalParameterValue, cOpticalMonitorMIBGroups=cOpticalMonitorMIBGroups, cOpticalNotifyEnable=cOpticalNotifyEnable, cOpticalMIBPMGroup=cOpticalMIBPMGroup, cOpticalMon24HrValidIntervals=cOpticalMon24HrValidIntervals, cOpticalPMIntervalTable=cOpticalPMIntervalTable, cOpticalMonTable=cOpticalMonTable, cOpticalPMCurrentDirection=cOpticalPMCurrentDirection, cOpticalMon15MinValidIntervals=cOpticalMon15MinValidIntervals, cOpticalMonPollInterval=cOpticalMonPollInterval, OpticalAlarmSeverity=OpticalAlarmSeverity, cOpticalPMIntervalMeanParam=cOpticalPMIntervalMeanParam)
| (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, single_value_constraint, value_size_constraint, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection')
(cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt')
(if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex')
(notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance')
(mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, counter32, bits, gauge32, object_identity, ip_address, counter64, module_identity, integer32, time_ticks, notification_type, iso, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'Counter32', 'Bits', 'Gauge32', 'ObjectIdentity', 'IpAddress', 'Counter64', 'ModuleIdentity', 'Integer32', 'TimeTicks', 'NotificationType', 'iso', 'MibIdentifier')
(textual_convention, display_string, time_stamp) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString', 'TimeStamp')
cisco_optical_monitor_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 264))
ciscoOpticalMonitorMIB.setRevisions(('2007-01-02 00:00', '2002-05-10 00:00'))
if mibBuilder.loadTexts:
ciscoOpticalMonitorMIB.setLastUpdated('200701020000Z')
if mibBuilder.loadTexts:
ciscoOpticalMonitorMIB.setOrganization('Cisco Systems, Inc.')
class Opticalparametertype(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))
named_values = named_values(('power', 1), ('acPower', 2), ('ambientTemp', 3), ('laserTemp', 4), ('biasCurrent', 5), ('peltierCurrent', 6), ('xcvrVoltage', 7))
class Opticalparametervalue(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + value_range_constraint(-1000000, 1000000)
class Opticalifdirection(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3))
named_values = named_values(('receive', 1), ('transmit', 2), ('notApplicable', 3))
class Opticalifmonlocation(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3))
named_values = named_values(('beforeAdjustment', 1), ('afterAdjustment', 2), ('notApplicable', 3))
class Opticalalarmstatus(TextualConvention, OctetString):
reference = 'Telcordia Technologies Generic Requirements GR-2918-CORE, Issue 4, December 1999, Section 8.11'
status = 'current'
subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 1)
fixed_length = 1
class Opticalalarmseverity(TextualConvention, Integer32):
reference = 'Telcordia Technologies Generic Requirements GR-474-CORE, Issue 1, December 1997, Section 2.2'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))
named_values = named_values(('critical', 1), ('major', 2), ('minor', 3), ('notAlarmed', 4), ('notReported', 5), ('cleared', 6))
class Opticalalarmseverityorzero(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 6)
class Opticalpmperiod(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('fifteenMin', 1), ('twentyFourHour', 2))
c_optical_monitor_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1))
c_optical_mon_group = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1))
c_optical_pm_group = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2))
c_optical_mon_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1))
if mibBuilder.loadTexts:
cOpticalMonTable.setStatus('current')
c_optical_mon_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonDirection'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonLocation'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonParameterType'))
if mibBuilder.loadTexts:
cOpticalMonEntry.setStatus('current')
c_optical_mon_direction = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 1), optical_if_direction())
if mibBuilder.loadTexts:
cOpticalMonDirection.setStatus('current')
c_optical_mon_location = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 2), optical_if_mon_location())
if mibBuilder.loadTexts:
cOpticalMonLocation.setStatus('current')
c_optical_mon_parameter_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 3), optical_parameter_type())
if mibBuilder.loadTexts:
cOpticalMonParameterType.setStatus('current')
c_optical_parameter_value = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 4), optical_parameter_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalParameterValue.setStatus('current')
c_optical_param_high_alarm_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 5), optical_parameter_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cOpticalParamHighAlarmThresh.setStatus('current')
c_optical_param_high_alarm_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 6), optical_alarm_severity()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cOpticalParamHighAlarmSev.setStatus('current')
c_optical_param_high_warning_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 7), optical_parameter_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cOpticalParamHighWarningThresh.setStatus('current')
c_optical_param_high_warning_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 8), optical_alarm_severity()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cOpticalParamHighWarningSev.setStatus('current')
c_optical_param_low_alarm_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 9), optical_parameter_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cOpticalParamLowAlarmThresh.setStatus('current')
c_optical_param_low_alarm_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 10), optical_alarm_severity()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cOpticalParamLowAlarmSev.setStatus('current')
c_optical_param_low_warning_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 11), optical_parameter_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cOpticalParamLowWarningThresh.setStatus('current')
c_optical_param_low_warning_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 12), optical_alarm_severity()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cOpticalParamLowWarningSev.setStatus('current')
c_optical_param_alarm_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 13), optical_alarm_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalParamAlarmStatus.setStatus('current')
c_optical_param_alarm_cur_max_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 14), optical_parameter_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalParamAlarmCurMaxThresh.setStatus('current')
c_optical_param_alarm_cur_max_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 15), optical_alarm_severity()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalParamAlarmCurMaxSev.setStatus('current')
c_optical_param_alarm_last_change = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 16), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalParamAlarmLastChange.setStatus('current')
c_optical_mon15_min_valid_intervals = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 17), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 96))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalMon15MinValidIntervals.setStatus('current')
c_optical_mon24_hr_valid_intervals = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 18), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalMon24HrValidIntervals.setStatus('current')
c_optical_param_thresh_source = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 19), bits().clone(namedValues=named_values(('highAlarmDefThresh', 0), ('highWarnDefThresh', 1), ('lowAlarmDefThresh', 2), ('lowWarnDefThresh', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cOpticalParamThreshSource.setStatus('current')
c_optical_notify_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 2), optical_alarm_severity_or_zero()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cOpticalNotifyEnable.setStatus('current')
c_optical_mon_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 3), bits().clone(namedValues=named_values(('all', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cOpticalMonEnable.setStatus('current')
c_optical_mon_poll_interval = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 4), unsigned32()).setUnits('minutes').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cOpticalMonPollInterval.setStatus('current')
c_optical_mon_if_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5))
if mibBuilder.loadTexts:
cOpticalMonIfTable.setStatus('current')
c_optical_mon_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
cOpticalMonIfEntry.setStatus('current')
c_optical_mon_if_time_in_slot = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5, 1, 1), unsigned32()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalMonIfTimeInSlot.setStatus('current')
c_optical_pm_current_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1))
if mibBuilder.loadTexts:
cOpticalPMCurrentTable.setStatus('current')
c_optical_pm_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1)).setIndexNames((0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentPeriod'), (0, 'IF-MIB', 'ifIndex'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentDirection'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentLocation'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentParamType'))
if mibBuilder.loadTexts:
cOpticalPMCurrentEntry.setStatus('current')
c_optical_pm_current_period = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 1), optical_pm_period())
if mibBuilder.loadTexts:
cOpticalPMCurrentPeriod.setStatus('current')
c_optical_pm_current_direction = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 2), optical_if_direction())
if mibBuilder.loadTexts:
cOpticalPMCurrentDirection.setStatus('current')
c_optical_pm_current_location = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 3), optical_if_mon_location())
if mibBuilder.loadTexts:
cOpticalPMCurrentLocation.setStatus('current')
c_optical_pm_current_param_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 4), optical_parameter_type())
if mibBuilder.loadTexts:
cOpticalPMCurrentParamType.setStatus('current')
c_optical_pm_current_max_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 5), optical_parameter_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalPMCurrentMaxParam.setStatus('current')
c_optical_pm_current_min_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 6), optical_parameter_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalPMCurrentMinParam.setStatus('current')
c_optical_pm_current_mean_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 7), optical_parameter_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalPMCurrentMeanParam.setStatus('current')
c_optical_pm_current_unavail_secs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 86400))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalPMCurrentUnavailSecs.setStatus('current')
c_optical_pm_interval_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2))
if mibBuilder.loadTexts:
cOpticalPMIntervalTable.setStatus('current')
c_optical_pm_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1)).setIndexNames((0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalPeriod'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalNumber'), (0, 'IF-MIB', 'ifIndex'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalDirection'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalLocation'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalParamType'))
if mibBuilder.loadTexts:
cOpticalPMIntervalEntry.setStatus('current')
c_optical_pm_interval_period = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 1), optical_pm_period())
if mibBuilder.loadTexts:
cOpticalPMIntervalPeriod.setStatus('current')
c_optical_pm_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 96)))
if mibBuilder.loadTexts:
cOpticalPMIntervalNumber.setStatus('current')
c_optical_pm_interval_direction = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 3), optical_if_direction())
if mibBuilder.loadTexts:
cOpticalPMIntervalDirection.setStatus('current')
c_optical_pm_interval_location = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 4), optical_if_mon_location())
if mibBuilder.loadTexts:
cOpticalPMIntervalLocation.setStatus('current')
c_optical_pm_interval_param_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 5), optical_parameter_type())
if mibBuilder.loadTexts:
cOpticalPMIntervalParamType.setStatus('current')
c_optical_pm_interval_max_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 6), optical_parameter_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalPMIntervalMaxParam.setStatus('current')
c_optical_pm_interval_min_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 7), optical_parameter_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalPMIntervalMinParam.setStatus('current')
c_optical_pm_interval_mean_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 8), optical_parameter_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalPMIntervalMeanParam.setStatus('current')
c_optical_pm_interval_unavail_secs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 86400))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cOpticalPMIntervalUnavailSecs.setStatus('current')
c_optical_monitor_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 2))
c_optical_mon_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 2, 0))
c_optical_mon_parameter_status = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 264, 2, 0, 1)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParameterValue'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmStatus'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmCurMaxThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmCurMaxSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmLastChange'))
if mibBuilder.loadTexts:
cOpticalMonParameterStatus.setStatus('current')
c_optical_monitor_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3))
c_optical_monitor_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1))
c_optical_monitor_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2))
c_optical_monitor_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1, 1)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBMonGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBThresholdGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBSeverityGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBPMGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBNotifyEnableGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBNotifGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
c_optical_monitor_mib_compliance = cOpticalMonitorMIBCompliance.setStatus('deprecated')
c_optical_monitor_mib_compliance_rev = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1, 2)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBMonGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBThresholdGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBSeverityGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBPMGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonIfTimeGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBNotifyEnableGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBNotifGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBEnableConfigGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBIntervalConfigGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonThreshSourceGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
c_optical_monitor_mib_compliance_rev = cOpticalMonitorMIBComplianceRev.setStatus('current')
c_optical_mib_mon_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 1)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParameterValue'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
c_optical_mib_mon_group = cOpticalMIBMonGroup.setStatus('current')
c_optical_mib_threshold_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 2)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamHighAlarmThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamHighWarningThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamLowAlarmThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamLowWarningThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmStatus'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmCurMaxThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmLastChange'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
c_optical_mib_threshold_group = cOpticalMIBThresholdGroup.setStatus('current')
c_optical_mib_severity_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 3)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamHighAlarmSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamHighWarningSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamLowAlarmSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamLowWarningSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmCurMaxSev'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
c_optical_mib_severity_group = cOpticalMIBSeverityGroup.setStatus('current')
c_optical_mibpm_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 4)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMon15MinValidIntervals'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMon24HrValidIntervals'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentMaxParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentMinParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentMeanParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentUnavailSecs'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalMaxParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalMinParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalMeanParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalUnavailSecs'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
c_optical_mibpm_group = cOpticalMIBPMGroup.setStatus('current')
c_optical_mib_notify_enable_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 5)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalNotifyEnable'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
c_optical_mib_notify_enable_group = cOpticalMIBNotifyEnableGroup.setStatus('current')
c_optical_mib_notif_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 6)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonParameterStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
c_optical_mib_notif_group = cOpticalMIBNotifGroup.setStatus('current')
c_optical_mon_if_time_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 7)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonIfTimeInSlot'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
c_optical_mon_if_time_group = cOpticalMonIfTimeGroup.setStatus('current')
c_optical_mib_enable_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 8)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonEnable'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
c_optical_mib_enable_config_group = cOpticalMIBEnableConfigGroup.setStatus('current')
c_optical_mib_interval_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 9)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonPollInterval'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
c_optical_mib_interval_config_group = cOpticalMIBIntervalConfigGroup.setStatus('current')
c_optical_mon_thresh_source_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 10)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamThreshSource'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
c_optical_mon_thresh_source_group = cOpticalMonThreshSourceGroup.setStatus('current')
mibBuilder.exportSymbols('CISCO-OPTICAL-MONITOR-MIB', cOpticalParamHighAlarmThresh=cOpticalParamHighAlarmThresh, cOpticalParamHighWarningThresh=cOpticalParamHighWarningThresh, cOpticalPMCurrentLocation=cOpticalPMCurrentLocation, cOpticalMIBMonGroup=cOpticalMIBMonGroup, cOpticalMonNotificationPrefix=cOpticalMonNotificationPrefix, cOpticalMonGroup=cOpticalMonGroup, cOpticalMonIfTimeInSlot=cOpticalMonIfTimeInSlot, cOpticalMonitorMIBNotifications=cOpticalMonitorMIBNotifications, OpticalParameterType=OpticalParameterType, cOpticalMonEntry=cOpticalMonEntry, OpticalPMPeriod=OpticalPMPeriod, cOpticalMIBNotifGroup=cOpticalMIBNotifGroup, cOpticalMIBIntervalConfigGroup=cOpticalMIBIntervalConfigGroup, OpticalIfDirection=OpticalIfDirection, ciscoOpticalMonitorMIB=ciscoOpticalMonitorMIB, cOpticalMonParameterType=cOpticalMonParameterType, cOpticalPMCurrentTable=cOpticalPMCurrentTable, cOpticalMonEnable=cOpticalMonEnable, cOpticalMIBEnableConfigGroup=cOpticalMIBEnableConfigGroup, cOpticalMonitorMIBCompliance=cOpticalMonitorMIBCompliance, cOpticalPMGroup=cOpticalPMGroup, cOpticalPMIntervalMaxParam=cOpticalPMIntervalMaxParam, cOpticalMonIfTimeGroup=cOpticalMonIfTimeGroup, cOpticalPMCurrentUnavailSecs=cOpticalPMCurrentUnavailSecs, cOpticalMonIfTable=cOpticalMonIfTable, cOpticalParamHighWarningSev=cOpticalParamHighWarningSev, cOpticalParamThreshSource=cOpticalParamThreshSource, cOpticalMIBSeverityGroup=cOpticalMIBSeverityGroup, OpticalIfMonLocation=OpticalIfMonLocation, cOpticalMonThreshSourceGroup=cOpticalMonThreshSourceGroup, cOpticalPMCurrentPeriod=cOpticalPMCurrentPeriod, cOpticalMIBThresholdGroup=cOpticalMIBThresholdGroup, cOpticalMonitorMIBConformance=cOpticalMonitorMIBConformance, cOpticalPMCurrentMinParam=cOpticalPMCurrentMinParam, cOpticalPMIntervalEntry=cOpticalPMIntervalEntry, cOpticalParamLowWarningThresh=cOpticalParamLowWarningThresh, cOpticalMonitorMIBComplianceRev=cOpticalMonitorMIBComplianceRev, cOpticalParamLowWarningSev=cOpticalParamLowWarningSev, cOpticalPMIntervalParamType=cOpticalPMIntervalParamType, cOpticalPMIntervalUnavailSecs=cOpticalPMIntervalUnavailSecs, cOpticalPMCurrentEntry=cOpticalPMCurrentEntry, OpticalAlarmSeverityOrZero=OpticalAlarmSeverityOrZero, cOpticalParamLowAlarmThresh=cOpticalParamLowAlarmThresh, cOpticalPMCurrentMeanParam=cOpticalPMCurrentMeanParam, cOpticalPMIntervalNumber=cOpticalPMIntervalNumber, cOpticalMIBNotifyEnableGroup=cOpticalMIBNotifyEnableGroup, cOpticalMonIfEntry=cOpticalMonIfEntry, cOpticalPMCurrentMaxParam=cOpticalPMCurrentMaxParam, cOpticalPMIntervalPeriod=cOpticalPMIntervalPeriod, cOpticalPMIntervalMinParam=cOpticalPMIntervalMinParam, cOpticalParamAlarmCurMaxSev=cOpticalParamAlarmCurMaxSev, cOpticalPMCurrentParamType=cOpticalPMCurrentParamType, cOpticalParamLowAlarmSev=cOpticalParamLowAlarmSev, cOpticalParamAlarmCurMaxThresh=cOpticalParamAlarmCurMaxThresh, cOpticalParamHighAlarmSev=cOpticalParamHighAlarmSev, cOpticalMonitorMIBCompliances=cOpticalMonitorMIBCompliances, OpticalAlarmStatus=OpticalAlarmStatus, cOpticalMonDirection=cOpticalMonDirection, cOpticalMonitorMIBObjects=cOpticalMonitorMIBObjects, cOpticalParamAlarmLastChange=cOpticalParamAlarmLastChange, cOpticalPMIntervalDirection=cOpticalPMIntervalDirection, cOpticalParameterValue=cOpticalParameterValue, PYSNMP_MODULE_ID=ciscoOpticalMonitorMIB, cOpticalMonLocation=cOpticalMonLocation, cOpticalParamAlarmStatus=cOpticalParamAlarmStatus, cOpticalMonParameterStatus=cOpticalMonParameterStatus, cOpticalPMIntervalLocation=cOpticalPMIntervalLocation, OpticalParameterValue=OpticalParameterValue, cOpticalMonitorMIBGroups=cOpticalMonitorMIBGroups, cOpticalNotifyEnable=cOpticalNotifyEnable, cOpticalMIBPMGroup=cOpticalMIBPMGroup, cOpticalMon24HrValidIntervals=cOpticalMon24HrValidIntervals, cOpticalPMIntervalTable=cOpticalPMIntervalTable, cOpticalMonTable=cOpticalMonTable, cOpticalPMCurrentDirection=cOpticalPMCurrentDirection, cOpticalMon15MinValidIntervals=cOpticalMon15MinValidIntervals, cOpticalMonPollInterval=cOpticalMonPollInterval, OpticalAlarmSeverity=OpticalAlarmSeverity, cOpticalPMIntervalMeanParam=cOpticalPMIntervalMeanParam) |
class MetaDato:
def __init__(self, nombreTabla, campos):
pass
def calcularRegistros(self):
pass
def getRegistro(self):
pass
| class Metadato:
def __init__(self, nombreTabla, campos):
pass
def calcular_registros(self):
pass
def get_registro(self):
pass |
# day3 - sonar sweeps
#
def count_bits(bits, pos):
ones = sum([int(b[pos]) for b in bits])
zeros = len(bits) - ones
return (ones, zeros)
def power(bits):
width = len(bits[0])
gamma = []
epsilon = []
for i in range(0, width):
(ones, zeros) = count_bits(bits, i)
print(f"ones = {ones} zeros = {zeros}")
gamma.append("1" if ones > zeros else "0")
epsilon.append("0" if ones > zeros else "1")
gamma_b = "".join(gamma)
epsilon_b = "".join(epsilon)
print(f"gamma_b = {gamma_b} epsilon_v = {epsilon_b}")
gamma_v = int("".join(gamma), 2)
epsilon_v = int("".join(epsilon), 2)
print(f"gamma_v = {gamma_v} epsilon_v = {epsilon_v}")
print(f"power = {gamma_v * epsilon_v}")
def life_support(bits):
width = len(bits[0])
oxygen = list(bits)
scrubber = list(bits)
for i in range(0, width):
(ones, zeros) = count_bits(oxygen, i)
obit = "1" if ones >= zeros else "0"
print(f"obit = {obit}")
oxygen = [x for x in oxygen if x[i] == obit]
print(f"o = {oxygen}")
for i in range(0, width):
(ones, zeros) = count_bits(scrubber, i)
sbit = "0" if zeros <= ones else "1"
print(f"sbit = {sbit}")
scrubber = [x for x in scrubber if x[i] == sbit]
print(f"s = {scrubber}")
if len(scrubber) == 1:
break
print(f"o = {oxygen}, s = {scrubber}")
oxygen_v = int(oxygen[0], 2)
scrubber_v = int(scrubber[0], 2)
print(f"o = {oxygen_v}, s = {scrubber_v}, life_support = {oxygen_v*scrubber_v}")
test_data = """
00100
11110
10110
10111
10101
01111
00111
11100
10000
11001
00010
01010""".split()
data = """
010111111011
010010101110
011001001100
001000001010
111100101000
111010101100
000111101111
010011010011
100010111011
101011000111
100111101010
101101101101
110010110110
100110011100
001110011000
011000101010
001100111101
100011101111
100111011001
011100101101
111101000111
111000101011
001001000101
010110011000
110100100001
010010010011
100100100100
011011001000
111101011101
101011110011
110011101101
001001000100
100111101110
101101101010
111110101000
111011011001
111110101101
110101010100
011100110000
000010111110
111011111111
010111111110
101001110101
001111010100
001111110001
000010000000
010001101000
100001001111
101111000010
000011110001
110111101110
000000100111
010100000111
011111100001
100011110001
101000001111
101010111001
001101100100
001100111001
001000011010
001001111100
011001011001
101011001010
100101101101
000101011110
101100110111
011000010110
110101000110
011010100101
110011100110
111101000010
111110101011
110101100101
101110101010
100110001011
000110101100
010100001001
010011001110
101010010101
101010000101
100100001011
010010100101
011000111111
001010000001
000001100111
010101101111
101110000110
100101001001
010000101001
001101011001
011101111110
011110011100
110100110111
000101011010
100000010011
011100111000
001110101000
001001001000
110101011101
000011001111
101000011010
100011110010
100100010111
110001010100
111010100110
101001010100
110100111101
111000010111
010001111000
000101010110
010100000100
001000110010
100111001100
111001000100
011100001011
100110001010
000010100111
001010111110
101100110001
010100100001
011001110010
010011100101
011111010110
111000010010
011110110101
110101101100
101010110110
000111000001
001111111101
110011101010
011000110010
101110101011
110100001100
001000011000
110110110010
101111000111
000111111001
111100110100
010010011010
010010111010
000001101000
000101010101
110111110101
111001110110
110011001100
011110011001
000010110101
011011000111
010101010110
001011010100
100001111001
011000111010
011100010000
110001011010
110010110111
001101010101
000110011000
000010011110
101100111001
100011001110
100010000000
001111010001
011100010011
010001000010
110010010111
011011111101
010011010100
100001101001
101100110110
000000101011
111000110111
111101010110
111110000000
101010000111
011010110110
100110100111
001011001011
110011111000
010111100110
001100101010
110001001000
000100000111
000001011100
000100000000
100010100000
110001011011
110110111101
100110010001
001101001110
011111011000
110010000100
100011010110
011001100000
010101001110
111100000001
110100010111
000001000011
101100010011
000100011111
111000001001
101100011100
010110010001
000110000010
110000101111
011010011100
111000011110
100110110001
100000011100
101010001011
010111001100
100111110111
111100001011
010100100100
100111100101
111100000111
101001001101
111001111000
001110010100
111010011001
010100111111
110111010011
100100000001
001101111111
111101001100
000111101010
000100101001
111011011101
010001110111
111010100001
001101010100
101010011100
000011100100
100101101010
011111100000
011011001110
000101000111
010010111111
001100111011
000001101001
001110110001
010011011110
001011011000
100000111010
001000100101
010001100011
011001000111
010110101010
101000001001
110101011000
001100000101
100110011001
000011001001
100110111001
111101101001
011011001001
010001100111
001100011100
011111101111
100100111010
101111110011
110111001110
000111100000
011110000101
111110100010
001011001101
110100101011
011100001101
111001111100
111110100110
000010010100
010111110010
001110001101
011111010011
110110111010
101001110000
011110110011
000111011000
010111000110
001011100010
001110000010
010111000011
010011111110
011000010000
101111011110
101010000110
011100011101
011101101100
100110101001
000000011001
100101010010
110011010101
010100100111
011101011100
011001111001
000001001000
001000101011
010110111101
100110010010
010010010110
000000111001
011111110101
011111001000
100100011111
000001111000
111101010010
101010100100
011010111101
000001011011
101111100001
100011000000
110011001010
000100010111
100000010000
101111010110
010010010001
101011100001
101001011100
001111000011
111000100010
001101110110
001110111011
100001110010
000001110001
111100001000
100010011101
000011000110
111100100110
000111110111
000100111001
011001110001
111101010001
110110101100
010001011001
001101111110
000101111010
110100100110
111011001110
110011010100
010000100011
011000111001
110001110001
101000000001
101011000101
011010000110
000010111000
010011100011
111101101110
001111010010
100011011100
111110111010
000010110010
101000011100
010011101011
110001011000
000000010011
001101010010
110111111011
111101011100
111001010011
110111100101
111000111001
001110010010
001011101101
110100100111
101011100000
011000100101
110101010010
000110000111
111111001000
000011100110
101101110011
001110011111
110000101110
110011100101
101110100101
001000111000
101111000011
100111111011
011010101111
101101001000
000101101110
111101000011
000011000010
000101010010
101001011101
110011010011
111010010001
110100010001
010100001010
110111101010
100111000101
101001100010
011010011011
101011101101
011001100001
001000110111
000100101000
010000000111
111111110000
001011110110
100010010001
100110101111
110110010000
100110011011
001100110101
100011101100
000011011001
010110100001
011110101111
101011011000
101110111001
111000010000
011100000010
100110100101
010101011111
100000111001
011000111100
101100100111
101011111000
111101111101
101000100011
101000010101
111001010010
101110000111
101010000001
000100100111
100001011101
110010101010
000000100100
011101000101
110010001101
111011101110
111111111110
011100000111
101111110010
000101100110
000110001011
100100011000
010001101111
011110010000
100011011111
010101101010
000011100000
000101001110
001001110001
111110011001
101110000000
010001010010
110001000110
101011001110
010001101001
000000011011
101001010011
011010000100
001100001100
100010001001
100000111111
001000000000
100110110100
100111110000
101001110001
000110101101
000111001010
101100011011
110001101000
000111101110
110110010011
100010001000
001010001100
001011111110
001110000111
110010100000
100001110101
000110111101
110010011000
111110111011
101000000011
011010011110
110000001111
011000110100
111111001101
000010110100
101100001100
110000101011
010000001110
101001101000
011000000100
101101011000
100111111100
110001001010
001010101100
111010001110
101110100110
011110010001
111011111010
000001100110
010001100101
100101001111
111001001011
111101101010
011011000001
010111010101
110001111110
110100101110
111101011011
011000101011
010100111100
011000000111
101000101001
111000110001
101000110001
001111010011
100000010100
001001101101
010101110001
100110000101
011000101101
001110110010
100111000001
011001000001
000101101000
101000101110
000100001110
111110101111
011110110001
101001110010
000000111010
101111010010
011110011010
101000011111
000100001100
110001111001
110000110101
111010011100
001000111011
111110001111
011011011000
000110110001
101001010010
111010100011
000001111100
110010000001
110101111011
100011001001
010011100001
101101011111
100000001010
001011001000
000011100010
011110111000
000110111011
010111001011
011100011000
101010011011
001001011110
000110001010
111011010101
010101110010
011100101001
100000110010
111100111001
001011011101
110101101001
001000111110
101011000011
001110111111
100101010110
111011011110
010111111001
011001010001
110101111111
110100100101
111111110001
010011000101
011101101010
101111000100
011101000100
001110110110
010011011000
000011011010
110000000110
001100001101
111001111001
100001100101
100100010011
111011111000
001001111110
101101000000
000001100001
001100001011
110011011111
010101111110
001110011100
111111000100
010011000010
101100010000
000010110111
110100000101
110100010010
111001100101
010000010001
101100100110
001111101100
011100110110
000000111101
001000000100
010101101101
100101101000
001001010101
000000001111
110111110100
000010110110
001000000010
011000101000
100101001101
010110101110
100010110001
010111010000
001111011001
000011110100
100100111000
011011100110
100100010110
000001111101
010111011011
110001000101
111100010001
101001000111
110100010000
001010000111
101001110111
010010010010
100010111100
001101000011
011001110011
000100101111
010110011101
001001011010
111011101001
111111000000
111110000111
110000001011
010000110010
011100011001
011001100011
001101000110
011001011111
100111100000
110111010100
101101000001
110011101000
001010110101
100101010001
101000101100
010110001000
111011111011
000010010001
010111011010
011101101011
001000101110
101010100111
001011000111
011011010110
110111101111
100001110001
100100101111
110000010011
011110111011
000110000100
110000111111
100110101100
001101110101
011100000100
001100011110
010111010010
001110101101
100110001110
100100010000
001000001101
011101110011
011001100110
110101000011
100101001010
111111101111
010011000100
100111000111
101100101100
010110000100
111100000100
000000101001
000011110010
011011110111
011101110001
111110000001
011000011001
100001101111
110000011010
110110101010
110100110000
111111000011
100011100010
100100010010
110100011000
000110000110
001101001000
101011110111
000011110111
001001100100
100010110011
100111111000
000001111010
110001111101
100011111111
111001001101
011111101011
101111110111
100111000011
010010001010
010101101011
011011110000
110111000000
010011101111
010001010101
111110101010
001010101010
001100101101
111011000111
101001000001
000101000100
010011110010
001110100010
110111001000
111011001101
111110001010
110000100001
000000010101
000010011001
011100100111
001101111010
000001100100
011111101100
110100011111
010110000000
001010101001
000010010011
111100000110
110101000101
010110001011
111001001000
010110101111
001000000001
111100001101
001000110110
110001101001
001110001011
111101101011
011101111100
100011001011
001000001001
000001001100
100100110111
111111101101
001110100000
001001001001
001111001100
101100101111
101100110010
101000100001
101000010110
100000010101
011010011000
101101101110
011101001100
101011111100
101110101000
110010100100
011111011110
110010011101
110100100011
111111100100
011011011101
011100100001
101011110000
001100100011
000111111000
110010001010
100001001001
110010001000
111010001001
010110111111
101011001101
101010011110
011011110001
101010100011
100000110111
100011101001
101110010011
101011011011
110010010000
011110100011
010010110110
100110010111
110100000110
101011101011
001100010100
101101010000
110110001001
010010001101
111011010110
111100001110
000101111001
100001000001
101111101001
100101101110
000011001101
000001000110
111110001011
000010101111
011101101101
000000000110
111111101010
101001110110
111011000100
001011101111
110010111010
110011110001
111100011111
110110010001
100101110000
010001001011
101100010100
110100001010
001011101001
110110000001
001101001001
100000111100
001101101010
010000110011
011111101110
110001110011
011110011000
000010001010
001110000100
000110101111
100011111000
100101100010
111111110010
101100011001
011100100000
100001100011
001010011110
111100011010
010110100010
101110010010
001011110010
100010111000
001100110010
001001101001
011111101101
101100111100
011010011101
101011100100
111000001000
010111011100
001010000000
011110000110
110101101110
000111000101
101001011010
110010100010
100101110010
000101100100
010100110010
011001000010
110010011010
010100001011
011001111110
011000101001
011101011011
010010000111
000001110111
100010101001
111100011101
100010001011
111100101100
011111010101
111100101110
111101001110
111000010110
000000110110
011110000001
000111011110
111010111010
101010001101
111110101100
000111110010
110000111101
111101110101
101010101100
101110110010
110110011010
111110110001
011101111011
101011111011
100111101101
000110011001
100101101011
110101101101
010111110100
001111110010
101010101000
011001100100
101011111111
001001000001
010100100110
111100011100
011100011010
000011011110
001011101010
010010001110
101101101111
000101000010
010111100010
010010010000
111000000101
010001100010
101100001111
011110111100
100011000010
010100001111
011100101110
011000111110
111101010000
110100111000
001010001111
111100011011
101000111110
100000011011
010110000001
001111100111
001111101111
011001011100
111001000011
110011101111
001101100011
101100111111
011111101010
010000011110
001111111111
010001001001
111010101000
110100001001
111111010111
000101110100
101101100000
001101100001
001111111000
100111101001
000110010001
100011101011
000010000101
101010001100
000111110011
001010110001
111110001110
010011100010
100011010000
100001010010
100011000101
110011000100
010000010000
110100110011
100011000111
010111101010
101011000010
110000101100
111100001111
000110100001
010010110001
111000100110
000110111110
100101000000
011101001010
101111011011
111011101111
000000010100
110011101110
111001110111
011111000111
111111011100
110010011111
111111110111
001110110011
000010010010
100100100001
111010000101
001001110011
101001101111
101110101110
101000101111""".split()
power(data)
life_support(data) | def count_bits(bits, pos):
ones = sum([int(b[pos]) for b in bits])
zeros = len(bits) - ones
return (ones, zeros)
def power(bits):
width = len(bits[0])
gamma = []
epsilon = []
for i in range(0, width):
(ones, zeros) = count_bits(bits, i)
print(f'ones = {ones} zeros = {zeros}')
gamma.append('1' if ones > zeros else '0')
epsilon.append('0' if ones > zeros else '1')
gamma_b = ''.join(gamma)
epsilon_b = ''.join(epsilon)
print(f'gamma_b = {gamma_b} epsilon_v = {epsilon_b}')
gamma_v = int(''.join(gamma), 2)
epsilon_v = int(''.join(epsilon), 2)
print(f'gamma_v = {gamma_v} epsilon_v = {epsilon_v}')
print(f'power = {gamma_v * epsilon_v}')
def life_support(bits):
width = len(bits[0])
oxygen = list(bits)
scrubber = list(bits)
for i in range(0, width):
(ones, zeros) = count_bits(oxygen, i)
obit = '1' if ones >= zeros else '0'
print(f'obit = {obit}')
oxygen = [x for x in oxygen if x[i] == obit]
print(f'o = {oxygen}')
for i in range(0, width):
(ones, zeros) = count_bits(scrubber, i)
sbit = '0' if zeros <= ones else '1'
print(f'sbit = {sbit}')
scrubber = [x for x in scrubber if x[i] == sbit]
print(f's = {scrubber}')
if len(scrubber) == 1:
break
print(f'o = {oxygen}, s = {scrubber}')
oxygen_v = int(oxygen[0], 2)
scrubber_v = int(scrubber[0], 2)
print(f'o = {oxygen_v}, s = {scrubber_v}, life_support = {oxygen_v * scrubber_v}')
test_data = '\n00100\n11110\n10110\n10111\n10101\n01111\n00111\n11100\n10000\n11001\n00010\n01010'.split()
data = '\n010111111011\n010010101110\n011001001100\n001000001010\n111100101000\n111010101100\n000111101111\n010011010011\n100010111011\n101011000111\n100111101010\n101101101101\n110010110110\n100110011100\n001110011000\n011000101010\n001100111101\n100011101111\n100111011001\n011100101101\n111101000111\n111000101011\n001001000101\n010110011000\n110100100001\n010010010011\n100100100100\n011011001000\n111101011101\n101011110011\n110011101101\n001001000100\n100111101110\n101101101010\n111110101000\n111011011001\n111110101101\n110101010100\n011100110000\n000010111110\n111011111111\n010111111110\n101001110101\n001111010100\n001111110001\n000010000000\n010001101000\n100001001111\n101111000010\n000011110001\n110111101110\n000000100111\n010100000111\n011111100001\n100011110001\n101000001111\n101010111001\n001101100100\n001100111001\n001000011010\n001001111100\n011001011001\n101011001010\n100101101101\n000101011110\n101100110111\n011000010110\n110101000110\n011010100101\n110011100110\n111101000010\n111110101011\n110101100101\n101110101010\n100110001011\n000110101100\n010100001001\n010011001110\n101010010101\n101010000101\n100100001011\n010010100101\n011000111111\n001010000001\n000001100111\n010101101111\n101110000110\n100101001001\n010000101001\n001101011001\n011101111110\n011110011100\n110100110111\n000101011010\n100000010011\n011100111000\n001110101000\n001001001000\n110101011101\n000011001111\n101000011010\n100011110010\n100100010111\n110001010100\n111010100110\n101001010100\n110100111101\n111000010111\n010001111000\n000101010110\n010100000100\n001000110010\n100111001100\n111001000100\n011100001011\n100110001010\n000010100111\n001010111110\n101100110001\n010100100001\n011001110010\n010011100101\n011111010110\n111000010010\n011110110101\n110101101100\n101010110110\n000111000001\n001111111101\n110011101010\n011000110010\n101110101011\n110100001100\n001000011000\n110110110010\n101111000111\n000111111001\n111100110100\n010010011010\n010010111010\n000001101000\n000101010101\n110111110101\n111001110110\n110011001100\n011110011001\n000010110101\n011011000111\n010101010110\n001011010100\n100001111001\n011000111010\n011100010000\n110001011010\n110010110111\n001101010101\n000110011000\n000010011110\n101100111001\n100011001110\n100010000000\n001111010001\n011100010011\n010001000010\n110010010111\n011011111101\n010011010100\n100001101001\n101100110110\n000000101011\n111000110111\n111101010110\n111110000000\n101010000111\n011010110110\n100110100111\n001011001011\n110011111000\n010111100110\n001100101010\n110001001000\n000100000111\n000001011100\n000100000000\n100010100000\n110001011011\n110110111101\n100110010001\n001101001110\n011111011000\n110010000100\n100011010110\n011001100000\n010101001110\n111100000001\n110100010111\n000001000011\n101100010011\n000100011111\n111000001001\n101100011100\n010110010001\n000110000010\n110000101111\n011010011100\n111000011110\n100110110001\n100000011100\n101010001011\n010111001100\n100111110111\n111100001011\n010100100100\n100111100101\n111100000111\n101001001101\n111001111000\n001110010100\n111010011001\n010100111111\n110111010011\n100100000001\n001101111111\n111101001100\n000111101010\n000100101001\n111011011101\n010001110111\n111010100001\n001101010100\n101010011100\n000011100100\n100101101010\n011111100000\n011011001110\n000101000111\n010010111111\n001100111011\n000001101001\n001110110001\n010011011110\n001011011000\n100000111010\n001000100101\n010001100011\n011001000111\n010110101010\n101000001001\n110101011000\n001100000101\n100110011001\n000011001001\n100110111001\n111101101001\n011011001001\n010001100111\n001100011100\n011111101111\n100100111010\n101111110011\n110111001110\n000111100000\n011110000101\n111110100010\n001011001101\n110100101011\n011100001101\n111001111100\n111110100110\n000010010100\n010111110010\n001110001101\n011111010011\n110110111010\n101001110000\n011110110011\n000111011000\n010111000110\n001011100010\n001110000010\n010111000011\n010011111110\n011000010000\n101111011110\n101010000110\n011100011101\n011101101100\n100110101001\n000000011001\n100101010010\n110011010101\n010100100111\n011101011100\n011001111001\n000001001000\n001000101011\n010110111101\n100110010010\n010010010110\n000000111001\n011111110101\n011111001000\n100100011111\n000001111000\n111101010010\n101010100100\n011010111101\n000001011011\n101111100001\n100011000000\n110011001010\n000100010111\n100000010000\n101111010110\n010010010001\n101011100001\n101001011100\n001111000011\n111000100010\n001101110110\n001110111011\n100001110010\n000001110001\n111100001000\n100010011101\n000011000110\n111100100110\n000111110111\n000100111001\n011001110001\n111101010001\n110110101100\n010001011001\n001101111110\n000101111010\n110100100110\n111011001110\n110011010100\n010000100011\n011000111001\n110001110001\n101000000001\n101011000101\n011010000110\n000010111000\n010011100011\n111101101110\n001111010010\n100011011100\n111110111010\n000010110010\n101000011100\n010011101011\n110001011000\n000000010011\n001101010010\n110111111011\n111101011100\n111001010011\n110111100101\n111000111001\n001110010010\n001011101101\n110100100111\n101011100000\n011000100101\n110101010010\n000110000111\n111111001000\n000011100110\n101101110011\n001110011111\n110000101110\n110011100101\n101110100101\n001000111000\n101111000011\n100111111011\n011010101111\n101101001000\n000101101110\n111101000011\n000011000010\n000101010010\n101001011101\n110011010011\n111010010001\n110100010001\n010100001010\n110111101010\n100111000101\n101001100010\n011010011011\n101011101101\n011001100001\n001000110111\n000100101000\n010000000111\n111111110000\n001011110110\n100010010001\n100110101111\n110110010000\n100110011011\n001100110101\n100011101100\n000011011001\n010110100001\n011110101111\n101011011000\n101110111001\n111000010000\n011100000010\n100110100101\n010101011111\n100000111001\n011000111100\n101100100111\n101011111000\n111101111101\n101000100011\n101000010101\n111001010010\n101110000111\n101010000001\n000100100111\n100001011101\n110010101010\n000000100100\n011101000101\n110010001101\n111011101110\n111111111110\n011100000111\n101111110010\n000101100110\n000110001011\n100100011000\n010001101111\n011110010000\n100011011111\n010101101010\n000011100000\n000101001110\n001001110001\n111110011001\n101110000000\n010001010010\n110001000110\n101011001110\n010001101001\n000000011011\n101001010011\n011010000100\n001100001100\n100010001001\n100000111111\n001000000000\n100110110100\n100111110000\n101001110001\n000110101101\n000111001010\n101100011011\n110001101000\n000111101110\n110110010011\n100010001000\n001010001100\n001011111110\n001110000111\n110010100000\n100001110101\n000110111101\n110010011000\n111110111011\n101000000011\n011010011110\n110000001111\n011000110100\n111111001101\n000010110100\n101100001100\n110000101011\n010000001110\n101001101000\n011000000100\n101101011000\n100111111100\n110001001010\n001010101100\n111010001110\n101110100110\n011110010001\n111011111010\n000001100110\n010001100101\n100101001111\n111001001011\n111101101010\n011011000001\n010111010101\n110001111110\n110100101110\n111101011011\n011000101011\n010100111100\n011000000111\n101000101001\n111000110001\n101000110001\n001111010011\n100000010100\n001001101101\n010101110001\n100110000101\n011000101101\n001110110010\n100111000001\n011001000001\n000101101000\n101000101110\n000100001110\n111110101111\n011110110001\n101001110010\n000000111010\n101111010010\n011110011010\n101000011111\n000100001100\n110001111001\n110000110101\n111010011100\n001000111011\n111110001111\n011011011000\n000110110001\n101001010010\n111010100011\n000001111100\n110010000001\n110101111011\n100011001001\n010011100001\n101101011111\n100000001010\n001011001000\n000011100010\n011110111000\n000110111011\n010111001011\n011100011000\n101010011011\n001001011110\n000110001010\n111011010101\n010101110010\n011100101001\n100000110010\n111100111001\n001011011101\n110101101001\n001000111110\n101011000011\n001110111111\n100101010110\n111011011110\n010111111001\n011001010001\n110101111111\n110100100101\n111111110001\n010011000101\n011101101010\n101111000100\n011101000100\n001110110110\n010011011000\n000011011010\n110000000110\n001100001101\n111001111001\n100001100101\n100100010011\n111011111000\n001001111110\n101101000000\n000001100001\n001100001011\n110011011111\n010101111110\n001110011100\n111111000100\n010011000010\n101100010000\n000010110111\n110100000101\n110100010010\n111001100101\n010000010001\n101100100110\n001111101100\n011100110110\n000000111101\n001000000100\n010101101101\n100101101000\n001001010101\n000000001111\n110111110100\n000010110110\n001000000010\n011000101000\n100101001101\n010110101110\n100010110001\n010111010000\n001111011001\n000011110100\n100100111000\n011011100110\n100100010110\n000001111101\n010111011011\n110001000101\n111100010001\n101001000111\n110100010000\n001010000111\n101001110111\n010010010010\n100010111100\n001101000011\n011001110011\n000100101111\n010110011101\n001001011010\n111011101001\n111111000000\n111110000111\n110000001011\n010000110010\n011100011001\n011001100011\n001101000110\n011001011111\n100111100000\n110111010100\n101101000001\n110011101000\n001010110101\n100101010001\n101000101100\n010110001000\n111011111011\n000010010001\n010111011010\n011101101011\n001000101110\n101010100111\n001011000111\n011011010110\n110111101111\n100001110001\n100100101111\n110000010011\n011110111011\n000110000100\n110000111111\n100110101100\n001101110101\n011100000100\n001100011110\n010111010010\n001110101101\n100110001110\n100100010000\n001000001101\n011101110011\n011001100110\n110101000011\n100101001010\n111111101111\n010011000100\n100111000111\n101100101100\n010110000100\n111100000100\n000000101001\n000011110010\n011011110111\n011101110001\n111110000001\n011000011001\n100001101111\n110000011010\n110110101010\n110100110000\n111111000011\n100011100010\n100100010010\n110100011000\n000110000110\n001101001000\n101011110111\n000011110111\n001001100100\n100010110011\n100111111000\n000001111010\n110001111101\n100011111111\n111001001101\n011111101011\n101111110111\n100111000011\n010010001010\n010101101011\n011011110000\n110111000000\n010011101111\n010001010101\n111110101010\n001010101010\n001100101101\n111011000111\n101001000001\n000101000100\n010011110010\n001110100010\n110111001000\n111011001101\n111110001010\n110000100001\n000000010101\n000010011001\n011100100111\n001101111010\n000001100100\n011111101100\n110100011111\n010110000000\n001010101001\n000010010011\n111100000110\n110101000101\n010110001011\n111001001000\n010110101111\n001000000001\n111100001101\n001000110110\n110001101001\n001110001011\n111101101011\n011101111100\n100011001011\n001000001001\n000001001100\n100100110111\n111111101101\n001110100000\n001001001001\n001111001100\n101100101111\n101100110010\n101000100001\n101000010110\n100000010101\n011010011000\n101101101110\n011101001100\n101011111100\n101110101000\n110010100100\n011111011110\n110010011101\n110100100011\n111111100100\n011011011101\n011100100001\n101011110000\n001100100011\n000111111000\n110010001010\n100001001001\n110010001000\n111010001001\n010110111111\n101011001101\n101010011110\n011011110001\n101010100011\n100000110111\n100011101001\n101110010011\n101011011011\n110010010000\n011110100011\n010010110110\n100110010111\n110100000110\n101011101011\n001100010100\n101101010000\n110110001001\n010010001101\n111011010110\n111100001110\n000101111001\n100001000001\n101111101001\n100101101110\n000011001101\n000001000110\n111110001011\n000010101111\n011101101101\n000000000110\n111111101010\n101001110110\n111011000100\n001011101111\n110010111010\n110011110001\n111100011111\n110110010001\n100101110000\n010001001011\n101100010100\n110100001010\n001011101001\n110110000001\n001101001001\n100000111100\n001101101010\n010000110011\n011111101110\n110001110011\n011110011000\n000010001010\n001110000100\n000110101111\n100011111000\n100101100010\n111111110010\n101100011001\n011100100000\n100001100011\n001010011110\n111100011010\n010110100010\n101110010010\n001011110010\n100010111000\n001100110010\n001001101001\n011111101101\n101100111100\n011010011101\n101011100100\n111000001000\n010111011100\n001010000000\n011110000110\n110101101110\n000111000101\n101001011010\n110010100010\n100101110010\n000101100100\n010100110010\n011001000010\n110010011010\n010100001011\n011001111110\n011000101001\n011101011011\n010010000111\n000001110111\n100010101001\n111100011101\n100010001011\n111100101100\n011111010101\n111100101110\n111101001110\n111000010110\n000000110110\n011110000001\n000111011110\n111010111010\n101010001101\n111110101100\n000111110010\n110000111101\n111101110101\n101010101100\n101110110010\n110110011010\n111110110001\n011101111011\n101011111011\n100111101101\n000110011001\n100101101011\n110101101101\n010111110100\n001111110010\n101010101000\n011001100100\n101011111111\n001001000001\n010100100110\n111100011100\n011100011010\n000011011110\n001011101010\n010010001110\n101101101111\n000101000010\n010111100010\n010010010000\n111000000101\n010001100010\n101100001111\n011110111100\n100011000010\n010100001111\n011100101110\n011000111110\n111101010000\n110100111000\n001010001111\n111100011011\n101000111110\n100000011011\n010110000001\n001111100111\n001111101111\n011001011100\n111001000011\n110011101111\n001101100011\n101100111111\n011111101010\n010000011110\n001111111111\n010001001001\n111010101000\n110100001001\n111111010111\n000101110100\n101101100000\n001101100001\n001111111000\n100111101001\n000110010001\n100011101011\n000010000101\n101010001100\n000111110011\n001010110001\n111110001110\n010011100010\n100011010000\n100001010010\n100011000101\n110011000100\n010000010000\n110100110011\n100011000111\n010111101010\n101011000010\n110000101100\n111100001111\n000110100001\n010010110001\n111000100110\n000110111110\n100101000000\n011101001010\n101111011011\n111011101111\n000000010100\n110011101110\n111001110111\n011111000111\n111111011100\n110010011111\n111111110111\n001110110011\n000010010010\n100100100001\n111010000101\n001001110011\n101001101111\n101110101110\n101000101111'.split()
power(data)
life_support(data) |
# WARNING: Do not edit by hand, this file was generated by Crank:
#
# https://github.com/gocardless/crank
#
class InstalmentSchedule(object):
"""A thin wrapper around a instalment_schedule, providing easy access to its
attributes.
Example:
instalment_schedule = client.instalment_schedules.get()
instalment_schedule.id
"""
def __init__(self, attributes, api_response):
self.attributes = attributes
self.api_response = api_response
@property
def created_at(self):
return self.attributes.get('created_at')
@property
def currency(self):
return self.attributes.get('currency')
@property
def id(self):
return self.attributes.get('id')
@property
def links(self):
return self.Links(self.attributes.get('links'))
@property
def metadata(self):
return self.attributes.get('metadata')
@property
def name(self):
return self.attributes.get('name')
@property
def payment_errors(self):
return self.attributes.get('payment_errors')
@property
def status(self):
return self.attributes.get('status')
@property
def total_amount(self):
return self.attributes.get('total_amount')
class Links(object):
"""Wrapper for the response's 'links' attribute."""
def __init__(self, attributes):
self.attributes = attributes
@property
def customer(self):
return self.attributes.get('customer')
@property
def mandate(self):
return self.attributes.get('mandate')
@property
def payments(self):
return self.attributes.get('payments')
| class Instalmentschedule(object):
"""A thin wrapper around a instalment_schedule, providing easy access to its
attributes.
Example:
instalment_schedule = client.instalment_schedules.get()
instalment_schedule.id
"""
def __init__(self, attributes, api_response):
self.attributes = attributes
self.api_response = api_response
@property
def created_at(self):
return self.attributes.get('created_at')
@property
def currency(self):
return self.attributes.get('currency')
@property
def id(self):
return self.attributes.get('id')
@property
def links(self):
return self.Links(self.attributes.get('links'))
@property
def metadata(self):
return self.attributes.get('metadata')
@property
def name(self):
return self.attributes.get('name')
@property
def payment_errors(self):
return self.attributes.get('payment_errors')
@property
def status(self):
return self.attributes.get('status')
@property
def total_amount(self):
return self.attributes.get('total_amount')
class Links(object):
"""Wrapper for the response's 'links' attribute."""
def __init__(self, attributes):
self.attributes = attributes
@property
def customer(self):
return self.attributes.get('customer')
@property
def mandate(self):
return self.attributes.get('mandate')
@property
def payments(self):
return self.attributes.get('payments') |
nama = str(input("Masukkan Nama "))
nim = int(input("Masukkan NIM "))
uts = int(input("Masukkan Nilai UTS : "))
uas = int(input("Masukkan Nilai UAS : "))
hitungRataRata = (uts+uas)/2
if int(hitungRataRata) <= 40:
nilai = 'E'
elif int(hitungRataRata) <= 60:
nilai = 'D'
elif int(hitungRataRata) <= 70:
nilai = 'C'
elif int(hitungRataRata) <= 80:
nilai = 'B'
elif int(hitungRataRata) <= 100:
nilai = 'A'
print("Nama :",nama)
print("NIM :",nim)
print("Nilai rata-rata anda",int(hitungRataRata))
print("Anda mendapatkan Nilai",nilai) | nama = str(input('Masukkan Nama '))
nim = int(input('Masukkan NIM '))
uts = int(input('Masukkan Nilai UTS : '))
uas = int(input('Masukkan Nilai UAS : '))
hitung_rata_rata = (uts + uas) / 2
if int(hitungRataRata) <= 40:
nilai = 'E'
elif int(hitungRataRata) <= 60:
nilai = 'D'
elif int(hitungRataRata) <= 70:
nilai = 'C'
elif int(hitungRataRata) <= 80:
nilai = 'B'
elif int(hitungRataRata) <= 100:
nilai = 'A'
print('Nama :', nama)
print('NIM :', nim)
print('Nilai rata-rata anda', int(hitungRataRata))
print('Anda mendapatkan Nilai', nilai) |
'''
Pattern
Plus star pattern:
Enter number of rows: 5
+
+
+
+
+++++++++
+
+
+
+
'''
number_rows=int(input('Enter number of rows: '))
for row in range(1,number_rows+1):
for column in range(1,number_rows+1):
if number_rows%2!=0:
if row==((number_rows//2)+1) or column==((number_rows//2)+1) :
print('*',end=" ")
else:
print(' ',end=' ')
else:
if row==(((number_rows+1)//2)+1) or column==(((number_rows+1)//2)+1) :
print('*',end=" ")
else:
print(' ',end=' ')
print('\n',end='')
#print(f'Row=> {row}, column=> {column}') | """
Pattern
Plus star pattern:
Enter number of rows: 5
+
+
+
+
+++++++++
+
+
+
+
"""
number_rows = int(input('Enter number of rows: '))
for row in range(1, number_rows + 1):
for column in range(1, number_rows + 1):
if number_rows % 2 != 0:
if row == number_rows // 2 + 1 or column == number_rows // 2 + 1:
print('*', end=' ')
else:
print(' ', end=' ')
elif row == (number_rows + 1) // 2 + 1 or column == (number_rows + 1) // 2 + 1:
print('*', end=' ')
else:
print(' ', end=' ')
print('\n', end='') |
class Solution:
def maxRotateFunction(self, A: List[int]) -> int:
n = len(A)
if n <= 1: return 0
if n == 2: return max(A)
result = -inf
for i in range(n):
result = max(result, sum([((j + i) % n) * v for j, v in enumerate(A)]))
return result
| class Solution:
def max_rotate_function(self, A: List[int]) -> int:
n = len(A)
if n <= 1:
return 0
if n == 2:
return max(A)
result = -inf
for i in range(n):
result = max(result, sum([(j + i) % n * v for (j, v) in enumerate(A)]))
return result |
def demo_map():
num_list = list( range(1, 6) )
## Example_#1:
# compute x^2 for each element
result = list( map( lambda x:x**2, num_list) )
# [1, 4, 9, 16, 25]
print( result )
## Example_#2:
# compute 3x + 1 for each element
result = list( map( lambda x:3*x+1, num_list) )
# [4, 7, 10, 13, 16]
print( result )
## Example_#3:
# compute sqrt(x) for each element
result = list( map( lambda x:x**(0.5), num_list) )
# [1.0, 1.4142135623730951, 1.7320508075688772, 2.0, 2.23606797749979]
print( result )
str_list = ["apple", "banana", "cat", "dog", "elephant"]
## Example_#4:
# Capitalize each word
result = list( map( lambda x:x.capitalize(), str_list) )
# ['Apple', 'Banana', 'Cat', 'Dog', 'Elephant']
print( result )
## Example_#5:
# Transfer each word into uppercase
result = list( map( lambda x:x.upper(), str_list) )
# ['APPLE', 'BANANA', 'CAT', 'DOG', 'ELEPHANT']
print( result )
def demo_input_with_map():
with open("input.txt", 'r') as f:
input_content = f.readline()
print("\ninput_content is:\n{}".format(input_content) )
# read one line, separator is white space set
# convert each token to integer and save in list
num_list = list( map(int, input_content.split() ) )
# [1, 2, 3, 4, 5]
print( num_list )
input_content = f.readline()
print("\ninput_content is:\n{}".format(input_content) )
# read one line, separator is ','
# convert each token to integer and save in list
num_list = list( map(int, input_content.split(sep = ',') ) )
# [1, 2, 3, 4, 5]
print( num_list )
input_content = f.readline()
print("\ninput_content is:\n{}".format(input_content) )
# read one line, separator is white space
# convert each token to integer and save in list
str_list = list( map(str, input_content.split(sep = ' ') ) )
# ['apple', 'banana', 'cat', 'dog', 'elephant']
print( str_list )
if __name__ == '__main__':
demo_map()
demo_input_with_map()
| def demo_map():
num_list = list(range(1, 6))
result = list(map(lambda x: x ** 2, num_list))
print(result)
result = list(map(lambda x: 3 * x + 1, num_list))
print(result)
result = list(map(lambda x: x ** 0.5, num_list))
print(result)
str_list = ['apple', 'banana', 'cat', 'dog', 'elephant']
result = list(map(lambda x: x.capitalize(), str_list))
print(result)
result = list(map(lambda x: x.upper(), str_list))
print(result)
def demo_input_with_map():
with open('input.txt', 'r') as f:
input_content = f.readline()
print('\ninput_content is:\n{}'.format(input_content))
num_list = list(map(int, input_content.split()))
print(num_list)
input_content = f.readline()
print('\ninput_content is:\n{}'.format(input_content))
num_list = list(map(int, input_content.split(sep=',')))
print(num_list)
input_content = f.readline()
print('\ninput_content is:\n{}'.format(input_content))
str_list = list(map(str, input_content.split(sep=' ')))
print(str_list)
if __name__ == '__main__':
demo_map()
demo_input_with_map() |
class Solution:
def numWaterBottles(self, numBottles: int, numExchange: int) -> int:
ans = numBottles // (numExchange - 1) + numBottles
return ans if numBottles % (numExchange - 1) else ans - 1
| class Solution:
def num_water_bottles(self, numBottles: int, numExchange: int) -> int:
ans = numBottles // (numExchange - 1) + numBottles
return ans if numBottles % (numExchange - 1) else ans - 1 |
class JouleHeatFraction:
"""The JouleHeatFraction object defines the fraction of electric energy released as heat.
Notes
-----
This object can be accessed by:
.. code-block:: python
import material
mdb.models[name].materials[name].jouleHeatFraction
import odbMaterial
session.odbs[name].materials[name].jouleHeatFraction
The corresponding analysis keywords are:
- JOULE HEAT FRACTION
"""
def __init__(self, fraction: float = 1):
"""This method creates a JouleHeatFraction object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].materials[name].JouleHeatFraction
session.odbs[name].materials[name].JouleHeatFraction
Parameters
----------
fraction
A Float specifying the fraction of electrical energy released as heat, including any
unit conversion factor. The default value is 1.0.
Returns
-------
A JouleHeatFraction object.
Raises
------
RangeError
"""
pass
def setValues(self):
"""This method modifies the JouleHeatFraction object.
Raises
------
RangeError
"""
pass
| class Jouleheatfraction:
"""The JouleHeatFraction object defines the fraction of electric energy released as heat.
Notes
-----
This object can be accessed by:
.. code-block:: python
import material
mdb.models[name].materials[name].jouleHeatFraction
import odbMaterial
session.odbs[name].materials[name].jouleHeatFraction
The corresponding analysis keywords are:
- JOULE HEAT FRACTION
"""
def __init__(self, fraction: float=1):
"""This method creates a JouleHeatFraction object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].materials[name].JouleHeatFraction
session.odbs[name].materials[name].JouleHeatFraction
Parameters
----------
fraction
A Float specifying the fraction of electrical energy released as heat, including any
unit conversion factor. The default value is 1.0.
Returns
-------
A JouleHeatFraction object.
Raises
------
RangeError
"""
pass
def set_values(self):
"""This method modifies the JouleHeatFraction object.
Raises
------
RangeError
"""
pass |
self.description = "Sysupgrade with a set of sync packages replacing a set of local ones"
sp1 = pmpkg("pkg2")
sp1.replaces = ["pkg1"]
sp2 = pmpkg("pkg3")
sp2.replaces = ["pkg1"]
sp3 = pmpkg("pkg4")
sp3.replaces = ["pkg1", "pkg0"]
sp4 = pmpkg("pkg5")
sp4.replaces = ["pkg0"]
for p in sp1, sp2, sp3, sp4:
self.addpkg2db("sync", p)
lp1 = pmpkg("pkg1")
lp2 = pmpkg("pkg0")
for p in lp1, lp2:
self.addpkg2db("local", p)
self.args = "-Su"
self.addrule("PACMAN_RETCODE=0")
for p in lp1, lp2:
self.addrule("!PKG_EXIST=%s" % p.name)
for p in sp1, sp2, sp3, sp4:
self.addrule("PKG_EXIST=%s" % p.name)
| self.description = 'Sysupgrade with a set of sync packages replacing a set of local ones'
sp1 = pmpkg('pkg2')
sp1.replaces = ['pkg1']
sp2 = pmpkg('pkg3')
sp2.replaces = ['pkg1']
sp3 = pmpkg('pkg4')
sp3.replaces = ['pkg1', 'pkg0']
sp4 = pmpkg('pkg5')
sp4.replaces = ['pkg0']
for p in (sp1, sp2, sp3, sp4):
self.addpkg2db('sync', p)
lp1 = pmpkg('pkg1')
lp2 = pmpkg('pkg0')
for p in (lp1, lp2):
self.addpkg2db('local', p)
self.args = '-Su'
self.addrule('PACMAN_RETCODE=0')
for p in (lp1, lp2):
self.addrule('!PKG_EXIST=%s' % p.name)
for p in (sp1, sp2, sp3, sp4):
self.addrule('PKG_EXIST=%s' % p.name) |
class NullDisplay:
def __init__(self, board=None):
pass
def show_results(self):
pass
def draw(self):
pass | class Nulldisplay:
def __init__(self, board=None):
pass
def show_results(self):
pass
def draw(self):
pass |
n=int(input("How Many Time you Chack the Condition: "))
for i in range(1,n+1):
num=int(input("Enter The Number To be Chack Even or Odd: "))
if(num%2==0):
print("The Enterd Number is Even")
else:
print("The Enterd Number is odd")
| n = int(input('How Many Time you Chack the Condition: '))
for i in range(1, n + 1):
num = int(input('Enter The Number To be Chack Even or Odd: '))
if num % 2 == 0:
print('The Enterd Number is Even')
else:
print('The Enterd Number is odd') |
class ShareInstance():
__session = None
@classmethod
def share(cls, **kwargs):
if not cls.__session:
cls.__session = cls(**kwargs)
return cls.__session
# Expand dict
class Dict(dict):
def get(self, key, default=None, sep='.'):
keys = key.split(sep)
for i, key in enumerate(keys):
try:
value = self[key]
if len(keys[i + 1:]) and isinstance(value, Dict):
return value.get(sep.join(keys[i + 1:]), default=default, sep=sep)
return value
except KeyError:
return self.dict_to_dict(default)
def __getitem__(self, k):
return self.dict_to_dict(super().__getitem__(k))
@staticmethod
def dict_to_dict(value):
return Dict(value) if isinstance(value, dict) else value
class DataHelper:
__origin: dict = {}
__mappers: dict = {}
def __init__(self, data: dict = {}, **kwargs):
new_data = data.copy()
new_data.update(kwargs)
self.__generate_mappers()
self.__origin = new_data
for key, val in new_data.items():
if str(key) in self.__mappers:
self.__dict__[self.__mappers[str(key)]] = val
elif key in self.__annotations__:
self.__dict__[key] = val
def __generate_mappers(self):
for key, val in self.__annotations__.items():
try:
val = self.__getattribute__(key)
if isinstance(val, str) and val.startswith('key:'):
tags = val.split(';')
self.__dict__[key] = None
for tag in tags:
tag_info = tag.split(':')
if tag_info[0] == 'key':
self.__mappers[tag_info[1]] = key
elif tag_info[0] == 'default':
self.__dict__[key] = tag_info[1]
except (KeyError, AttributeError):
pass
def get_origin(self) -> dict:
return self.__origin
def __str__(self):
return str(self.__class__) + ": " + str(self.__dict__)
| class Shareinstance:
__session = None
@classmethod
def share(cls, **kwargs):
if not cls.__session:
cls.__session = cls(**kwargs)
return cls.__session
class Dict(dict):
def get(self, key, default=None, sep='.'):
keys = key.split(sep)
for (i, key) in enumerate(keys):
try:
value = self[key]
if len(keys[i + 1:]) and isinstance(value, Dict):
return value.get(sep.join(keys[i + 1:]), default=default, sep=sep)
return value
except KeyError:
return self.dict_to_dict(default)
def __getitem__(self, k):
return self.dict_to_dict(super().__getitem__(k))
@staticmethod
def dict_to_dict(value):
return dict(value) if isinstance(value, dict) else value
class Datahelper:
__origin: dict = {}
__mappers: dict = {}
def __init__(self, data: dict={}, **kwargs):
new_data = data.copy()
new_data.update(kwargs)
self.__generate_mappers()
self.__origin = new_data
for (key, val) in new_data.items():
if str(key) in self.__mappers:
self.__dict__[self.__mappers[str(key)]] = val
elif key in self.__annotations__:
self.__dict__[key] = val
def __generate_mappers(self):
for (key, val) in self.__annotations__.items():
try:
val = self.__getattribute__(key)
if isinstance(val, str) and val.startswith('key:'):
tags = val.split(';')
self.__dict__[key] = None
for tag in tags:
tag_info = tag.split(':')
if tag_info[0] == 'key':
self.__mappers[tag_info[1]] = key
elif tag_info[0] == 'default':
self.__dict__[key] = tag_info[1]
except (KeyError, AttributeError):
pass
def get_origin(self) -> dict:
return self.__origin
def __str__(self):
return str(self.__class__) + ': ' + str(self.__dict__) |
emoji_dict = {
"anger": ["\U0001F92C", "data/emoji/emoji_u1f92c.png"],
"disgust": ["\U0001F616", "data/emoji/emoji_u1f616.png"],
"fear": ["\U0001F633", "data/emoji/emoji_u1f633.png"],
"happy": ["\U0001F604", "data/emoji/emoji_u1f604.png"],
"neutral": ["\U0001F612", "data/emoji/emoji_u1f612.png"],
"sadness": ["\U0001F61E", "data/emoji/emoji_u1f61e.png"],
"surprise": ["\U0001F62F", "data/emoji/emoji_u1f62f.png"],
}
emotions = ["anger", "disgust", "fear", "happy",
"neutral", "sadness", "surprise"]
| emoji_dict = {'anger': ['🤬', 'data/emoji/emoji_u1f92c.png'], 'disgust': ['😖', 'data/emoji/emoji_u1f616.png'], 'fear': ['😳', 'data/emoji/emoji_u1f633.png'], 'happy': ['😄', 'data/emoji/emoji_u1f604.png'], 'neutral': ['😒', 'data/emoji/emoji_u1f612.png'], 'sadness': ['😞', 'data/emoji/emoji_u1f61e.png'], 'surprise': ['😯', 'data/emoji/emoji_u1f62f.png']}
emotions = ['anger', 'disgust', 'fear', 'happy', 'neutral', 'sadness', 'surprise'] |
# Section 5.16 snippets
# Creating a Two-Dimensional List
a = [[77, 68, 86, 73], [96, 87, 89, 81], [70, 90, 86, 81]]
# Illustrating a Two-Dimensional List
# Identifying the Elements in a Two-Dimensional List
for row in a:
for item in row:
print(item, end=' ')
print()
# How the Nested Loops Execute
for i, row in enumerate(a):
for j, item in enumerate(row):
print(f'a[{i}][{j}]={item} ', end=' ')
print()
##########################################################################
# (C) Copyright 2019 by Deitel & Associates, Inc. and #
# Pearson Education, Inc. All Rights Reserved. #
# #
# DISCLAIMER: The authors and publisher of this book have used their #
# best efforts in preparing the book. These efforts include the #
# development, research, and testing of the theories and programs #
# to determine their effectiveness. The authors and publisher make #
# no warranty of any kind, expressed or implied, with regard to these #
# programs or to the documentation contained in these books. The authors #
# and publisher shall not be liable in any event for incidental or #
# consequential damages in connection with, or arising out of, the #
# furnishing, performance, or use of these programs. #
##########################################################################
| a = [[77, 68, 86, 73], [96, 87, 89, 81], [70, 90, 86, 81]]
for row in a:
for item in row:
print(item, end=' ')
print()
for (i, row) in enumerate(a):
for (j, item) in enumerate(row):
print(f'a[{i}][{j}]={item} ', end=' ')
print() |
package_name = 'cms_search'
name = 'django-cms-search'
author = 'Benjamin Wohlwend'
author_email = 'piquadrat@gmail.com'
description = "An extension to django CMS to provide multilingual Haystack indexes"
version = __import__(package_name).__version__
project_url = 'http://github.com/piquadrat/%s' % name
license = 'BSD'
| package_name = 'cms_search'
name = 'django-cms-search'
author = 'Benjamin Wohlwend'
author_email = 'piquadrat@gmail.com'
description = 'An extension to django CMS to provide multilingual Haystack indexes'
version = __import__(package_name).__version__
project_url = 'http://github.com/piquadrat/%s' % name
license = 'BSD' |
# Space: O(1)
# Time: O(n)
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def addOneRow(self, root, v, d):
if d==1:
new_node = TreeNode(v)
new_node.left = root
return new_node
def helper(root, cur_level, required_level, required_val, direction):
if root is None and cur_level == required_level:
new_node = TreeNode(required_val)
return new_node
if root is None: return root
if cur_level == required_level:
new_node = TreeNode(required_val)
if direction == 'left':
new_node.left = root
if direction == 'right':
new_node.right = root
return new_node
root.left = helper(root.left, cur_level + 1, required_level, required_val, 'left')
root.right = helper(root.right, cur_level + 1, required_level, required_val, 'right')
return root
return helper(root, 1, d, v, '')
| class Solution:
def add_one_row(self, root, v, d):
if d == 1:
new_node = tree_node(v)
new_node.left = root
return new_node
def helper(root, cur_level, required_level, required_val, direction):
if root is None and cur_level == required_level:
new_node = tree_node(required_val)
return new_node
if root is None:
return root
if cur_level == required_level:
new_node = tree_node(required_val)
if direction == 'left':
new_node.left = root
if direction == 'right':
new_node.right = root
return new_node
root.left = helper(root.left, cur_level + 1, required_level, required_val, 'left')
root.right = helper(root.right, cur_level + 1, required_level, required_val, 'right')
return root
return helper(root, 1, d, v, '') |
# COSINE FUNCTION
def cosine(x) -> float:
"""
Returns cosine of x radians
"""
return 0.0 | def cosine(x) -> float:
"""
Returns cosine of x radians
"""
return 0.0 |
'''
Selection sort is an O(n^2) sorting algorithm. The logic is to find the smallest element in
the unsorted portion of the array and swapping it in the right position. In the worst-case
it takes n(n+1)/2 accesses. '''
def selsort(A,l,r):
''' Convention is that array elements are indexed from l to r-1.'''
for i in range(l,r-1):
next_smallest_idx = i
for j in range(i+1,r):
if A[j] < A[next_smallest_idx] :
next_smallest_idx = j
A[i],A[next_smallest_idx] = A[next_smallest_idx],A[i]
return A
def main():
try :
A = list(map(int,input("Enter array (space-separated) : ").split()))
# Enter array. Split to get individual values. Map each elem to int type.
# Convert map object to list
except :
print("Wrong input entered. Aborting ...")
exit()
A_sorted = selsort(A,0,len(A))
print(A_sorted)
if sorted(A) != A_sorted :
print("\Wrong output.\n")
if __name__ == "__main__" :
main()
| """
Selection sort is an O(n^2) sorting algorithm. The logic is to find the smallest element in
the unsorted portion of the array and swapping it in the right position. In the worst-case
it takes n(n+1)/2 accesses. """
def selsort(A, l, r):
""" Convention is that array elements are indexed from l to r-1."""
for i in range(l, r - 1):
next_smallest_idx = i
for j in range(i + 1, r):
if A[j] < A[next_smallest_idx]:
next_smallest_idx = j
(A[i], A[next_smallest_idx]) = (A[next_smallest_idx], A[i])
return A
def main():
try:
a = list(map(int, input('Enter array (space-separated) : ').split()))
except:
print('Wrong input entered. Aborting ...')
exit()
a_sorted = selsort(A, 0, len(A))
print(A_sorted)
if sorted(A) != A_sorted:
print('\\Wrong output.\n')
if __name__ == '__main__':
main() |
def dominator(arr):
res = 0
if len(arr) == 0:
return -1
for x in arr:
if arr.count(x) > len(arr) / 2:
res = x
break
else:
res = -1
return res
| def dominator(arr):
res = 0
if len(arr) == 0:
return -1
for x in arr:
if arr.count(x) > len(arr) / 2:
res = x
break
else:
res = -1
return res |
def move(instruction, x, y, w_x, w_y):
if instruction[0] == 'N':
w_y += instruction[1]
if instruction[0] == 'S':
w_y -= instruction[1]
if instruction[0] == 'E':
w_x += instruction[1]
if instruction[0] == 'W':
w_x -= instruction[1]
if instruction[0] in ['L', 'R']:
w_x, w_y = turn(w_x, w_y, instruction[0], instruction[1])
if instruction[0] == 'F':
x, y = move_forward(instruction[1], x, y, w_x, w_y)
return x, y, w_x, w_y
def turn(w_x, w_y, direction_to_switch, degrees):
count_direction_switches = degrees // 90
if direction_to_switch == 'L':
for _ in range(count_direction_switches):
w_x, w_y = -w_y, w_x
elif direction_to_switch == 'R':
for _ in range(count_direction_switches):
w_x, w_y = w_y, -w_x
return w_x, w_y
def move_forward(value, x, y, w_x, w_y):
return x + value * w_x, y + value * w_y
def part2(instructions):
x = 0
y = 0
w_x = 10
w_y = 1
for instruction in instructions:
x, y, w_x, w_y = move(instruction, x, y, w_x, w_y)
print('Part 2:', abs(x) + abs(y))
if __name__ == '__main__':
with open('in.txt') as file:
instructions = [[line[0], int(line[1:])] for line in file.read().splitlines()]
part2(instructions)
| def move(instruction, x, y, w_x, w_y):
if instruction[0] == 'N':
w_y += instruction[1]
if instruction[0] == 'S':
w_y -= instruction[1]
if instruction[0] == 'E':
w_x += instruction[1]
if instruction[0] == 'W':
w_x -= instruction[1]
if instruction[0] in ['L', 'R']:
(w_x, w_y) = turn(w_x, w_y, instruction[0], instruction[1])
if instruction[0] == 'F':
(x, y) = move_forward(instruction[1], x, y, w_x, w_y)
return (x, y, w_x, w_y)
def turn(w_x, w_y, direction_to_switch, degrees):
count_direction_switches = degrees // 90
if direction_to_switch == 'L':
for _ in range(count_direction_switches):
(w_x, w_y) = (-w_y, w_x)
elif direction_to_switch == 'R':
for _ in range(count_direction_switches):
(w_x, w_y) = (w_y, -w_x)
return (w_x, w_y)
def move_forward(value, x, y, w_x, w_y):
return (x + value * w_x, y + value * w_y)
def part2(instructions):
x = 0
y = 0
w_x = 10
w_y = 1
for instruction in instructions:
(x, y, w_x, w_y) = move(instruction, x, y, w_x, w_y)
print('Part 2:', abs(x) + abs(y))
if __name__ == '__main__':
with open('in.txt') as file:
instructions = [[line[0], int(line[1:])] for line in file.read().splitlines()]
part2(instructions) |
DEBUG = True
TEMPLATE_DEBUG = True
# THIS MUST BE HTTPS
DOMAIN_NAME="https://52.34.71.182:8000"
#CSRF_COOKIE_SECURE = False
#SESSION_COOKIE_SECURE = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'expfactory.db',
}
}
#DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
# 'NAME': 'expfactory',
# 'USER': 'expfactory',
# 'PASSWORD':'expfactory',
# 'HOST': 'localhost',
# 'PORT': '5432',
# }
#}
STATIC_ROOT = 'assets/'
STATIC_URL = '/assets/'
MEDIA_ROOT = 'static/'
MEDIA_URL = '/static/'
| debug = True
template_debug = True
domain_name = 'https://52.34.71.182:8000'
databases = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'expfactory.db'}}
static_root = 'assets/'
static_url = '/assets/'
media_root = 'static/'
media_url = '/static/' |
# Writes down all combinations of plates
COMBINATIONS = [1.25, 2.5, 5, 10, 25]
# 1 kg is 2.20... pounds
KILOS_POUNDS_CONVERSION_RATE = 2.20462
# Function that asks for str input
def get_input_in_kilos():
return input("Enter weight in kilos: ")
# function that converts punds to kilos
def convert_kilos_to_pounds(kilos):
return kilos * KILOS_POUNDS_CONVERSION_RATE
def break_down_into_combinations(weight, options):
# An empty list
combination = []
# Variable difference is the same as weight
difference = weight
# variable which sorts the options in reverse
sorted_options = sorted(options, reverse=True)
# variable which is equal to zero
current_option_index = 0
# while loop which will keep looping as long as current_option_index is bigger than length of sorted_options
while current_option_index < len(sorted_options):
# Variable which says current_option is 0 in the sorted list
current_option = sorted_options[current_option_index]
# if current_option is less than or equal the weight
if current_option <= difference:
# then remove and apply difference fomr current_option
difference -= current_option
# Then append to combination the current option
combination.append(current_option)
# Else just take add and apply 1 to current_option_index
else:
current_option_index += 1
return combination
def main():
kilos = int(get_input_in_kilos())
pounds = convert_kilos_to_pounds(kilos)
weights = break_down_into_combinations(pounds, COMBINATIONS)
print(weights)
main()
| combinations = [1.25, 2.5, 5, 10, 25]
kilos_pounds_conversion_rate = 2.20462
def get_input_in_kilos():
return input('Enter weight in kilos: ')
def convert_kilos_to_pounds(kilos):
return kilos * KILOS_POUNDS_CONVERSION_RATE
def break_down_into_combinations(weight, options):
combination = []
difference = weight
sorted_options = sorted(options, reverse=True)
current_option_index = 0
while current_option_index < len(sorted_options):
current_option = sorted_options[current_option_index]
if current_option <= difference:
difference -= current_option
combination.append(current_option)
else:
current_option_index += 1
return combination
def main():
kilos = int(get_input_in_kilos())
pounds = convert_kilos_to_pounds(kilos)
weights = break_down_into_combinations(pounds, COMBINATIONS)
print(weights)
main() |
class Fila:
def __init__(self, maxx):
self.limit = maxx
self.elementos = [0] * maxx
self.ini = -1
self.end = -1
self._size = 0
self.offset = -1
def __len__(self):
return self._size
def insert(self, elem):
if ((self._size) >= self.limit) or (self.ini - self.end - 1 == 0):
raise IndexError("Fila cheia!!")
else:
if (self.ini < 0):
self.ini = 0
self.end = 0
self.offset = 0
elif (self.end < self.limit):
self.end += 1
self.offset = self.end
if (self.offset > self.limit - 1):
self.offset = 0
self.end = self.offset
else:
self.offset += 1
self.end = self.offset
self._size += 1
self.elementos[self.offset] = elem
def remove(self):
if (self._size <=0):
print("Lista vazia")
else:
if (self.ini <= self.limit - 1):
data = self.elementos[self.ini]
self.elementos[self.ini] = 0
self.ini += 1
else:
data = self.elementos[self.ini]
self.ini = 0
self._size -=1
return data
def consult(self):
if (self._size > 0):
return self.elementos[self.ini]
def destroi(self):
self.elementos = [0] * self.limit
self.ini = -1
self.end = -1
self._size = 0
self.offset = -1
f = Fila(3)
f.insert(23)
f.insert(80)
f.insert(10)
f.insert(10) | class Fila:
def __init__(self, maxx):
self.limit = maxx
self.elementos = [0] * maxx
self.ini = -1
self.end = -1
self._size = 0
self.offset = -1
def __len__(self):
return self._size
def insert(self, elem):
if self._size >= self.limit or self.ini - self.end - 1 == 0:
raise index_error('Fila cheia!!')
else:
if self.ini < 0:
self.ini = 0
self.end = 0
self.offset = 0
elif self.end < self.limit:
self.end += 1
self.offset = self.end
if self.offset > self.limit - 1:
self.offset = 0
self.end = self.offset
else:
self.offset += 1
self.end = self.offset
self._size += 1
self.elementos[self.offset] = elem
def remove(self):
if self._size <= 0:
print('Lista vazia')
else:
if self.ini <= self.limit - 1:
data = self.elementos[self.ini]
self.elementos[self.ini] = 0
self.ini += 1
else:
data = self.elementos[self.ini]
self.ini = 0
self._size -= 1
return data
def consult(self):
if self._size > 0:
return self.elementos[self.ini]
def destroi(self):
self.elementos = [0] * self.limit
self.ini = -1
self.end = -1
self._size = 0
self.offset = -1
f = fila(3)
f.insert(23)
f.insert(80)
f.insert(10)
f.insert(10) |
# O(N^2)
def can_make_target1(arr, target):
for i in range(len(arr)):
for j in range(i, len(arr)):
if arr[i] + arr[j] == target:
return True
return False
# O(N)
def can_make_target2(arr, target):
looking_for = set()
for a in arr:
if a in looking_for:
return True
else:
looking_for.add(target - a)
return False
| def can_make_target1(arr, target):
for i in range(len(arr)):
for j in range(i, len(arr)):
if arr[i] + arr[j] == target:
return True
return False
def can_make_target2(arr, target):
looking_for = set()
for a in arr:
if a in looking_for:
return True
else:
looking_for.add(target - a)
return False |
# A somewhat special node as it is designed for use in skip list, in addition to having two pointers \
# it has three (next, previous and down).
# This class is used by SortedLinkList, but is somewhat different to a regular link list node.
class Node:
def __init__(self, value, next=None, down=None, prev=None):
self.value = value
self.next = next
self.down = down
self.prev = prev | class Node:
def __init__(self, value, next=None, down=None, prev=None):
self.value = value
self.next = next
self.down = down
self.prev = prev |
expected_output = {
'rib_table': {
'ipv4': {
'num_multicast_tables': 1,
'num_unicast_tables': 3,
'total_multicast_prefixes': 0,
'total_unicast_prefixes': 14
}
}
}
| expected_output = {'rib_table': {'ipv4': {'num_multicast_tables': 1, 'num_unicast_tables': 3, 'total_multicast_prefixes': 0, 'total_unicast_prefixes': 14}}} |
"""
Complexities:
Runtime O(n log n): 2 sort() executions with O(n log n) each, while iteration with O(n+n)
Space O(1)
"""
def min_platforms(arrivals, departures):
"""
:param: arrival - list of arrival time
:param: departure - list of departure time
TODO - complete this method and return the minimum number of platforms (int) required
so that no train has to wait for other(s) to leave
"""
arrivals.sort()
departures.sort()
min_required_platfotms = 1
required_platforms = 1
i = 1
j = 0
while j < len(departures) and i < len(arrivals):
if departures[j] > arrivals[i]:
i += 1
required_platforms = (i - j)
min_required_platfotms = max(min_required_platfotms, required_platforms)
else:
j += 1
required_platforms -= 1
return min_required_platfotms
def _test_function(test_case):
arrival = test_case[0]
departure = test_case[1]
solution = test_case[2]
output = min_platforms(arrival, departure)
print(f"required platforms: {output}")
if output == solution:
print("Pass")
else:
print("Fail")
arrival = [900, 940, 950, 1100, 1500, 1800]
departure = [910, 1200, 1120, 1130, 1900, 2000]
test_case = [arrival, departure, 3]
_test_function(test_case)
arrival = [200, 210, 300, 320, 350, 500]
departure = [230, 340, 320, 430, 400, 520]
test_case = [arrival, departure, 2]
_test_function(test_case) | """
Complexities:
Runtime O(n log n): 2 sort() executions with O(n log n) each, while iteration with O(n+n)
Space O(1)
"""
def min_platforms(arrivals, departures):
"""
:param: arrival - list of arrival time
:param: departure - list of departure time
TODO - complete this method and return the minimum number of platforms (int) required
so that no train has to wait for other(s) to leave
"""
arrivals.sort()
departures.sort()
min_required_platfotms = 1
required_platforms = 1
i = 1
j = 0
while j < len(departures) and i < len(arrivals):
if departures[j] > arrivals[i]:
i += 1
required_platforms = i - j
min_required_platfotms = max(min_required_platfotms, required_platforms)
else:
j += 1
required_platforms -= 1
return min_required_platfotms
def _test_function(test_case):
arrival = test_case[0]
departure = test_case[1]
solution = test_case[2]
output = min_platforms(arrival, departure)
print(f'required platforms: {output}')
if output == solution:
print('Pass')
else:
print('Fail')
arrival = [900, 940, 950, 1100, 1500, 1800]
departure = [910, 1200, 1120, 1130, 1900, 2000]
test_case = [arrival, departure, 3]
_test_function(test_case)
arrival = [200, 210, 300, 320, 350, 500]
departure = [230, 340, 320, 430, 400, 520]
test_case = [arrival, departure, 2]
_test_function(test_case) |
#
# @lc app=leetcode id=993 lang=python3
#
# [993] Cousins in Binary Tree
#
# @lc code=start
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def isCousins(self, root: TreeNode, x: int, y: int):
pre = 0
curval = 0
self.x = x
self.y = y
self.xdetail = []
self.ydetail = []
self.finder(0, 0, root)
if not self.xdetail or not self.ydetail:
return False
if self.xdetail[0] == self.ydetail[0]:
return False
if self.xdetail[1] != self.ydetail[1]:
return False
return True
def finder(self, pre, level, node):
if not node:
return
if not self.xdetail or not self.ydetail:
if node.val == self.x:
self.xdetail = [pre, level]
elif node.val == self.y:
self.ydetail = [pre, level]
else:
self.finder(node.val, level + 1, node.left)
self.finder(node.val, level + 1, node.right)
# @lc code=end
| class Treenode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def is_cousins(self, root: TreeNode, x: int, y: int):
pre = 0
curval = 0
self.x = x
self.y = y
self.xdetail = []
self.ydetail = []
self.finder(0, 0, root)
if not self.xdetail or not self.ydetail:
return False
if self.xdetail[0] == self.ydetail[0]:
return False
if self.xdetail[1] != self.ydetail[1]:
return False
return True
def finder(self, pre, level, node):
if not node:
return
if not self.xdetail or not self.ydetail:
if node.val == self.x:
self.xdetail = [pre, level]
elif node.val == self.y:
self.ydetail = [pre, level]
else:
self.finder(node.val, level + 1, node.left)
self.finder(node.val, level + 1, node.right) |
# number one solution
def is_ipv4_address(s):
"""
Return True if 's' is a valid IPv4 address
"""
# split the string on dots
s_split = s.split('.')
return len(s_split) == 4 and all(num.isdigit() and 0 <= int(num) < 256 for num in s_split)
# my Solution
def isIPv4Address(inputString):
# I should have thought about using .split() function
inputString = inputString + '.'
print(inputString)
start = 0
ipNum = []
for i in range(len(inputString)):
if inputString[i] == '.':
target = (inputString[start:i])
if target != '' and target.isdigit():
target = int(inputString[start:i])
else:
target = -1
ipNum.append(target)
start = i + 1
return all(0 <= x <= 255 for x in ipNum) and len(ipNum) == 4
s = "172.16.254.1"
print(is_ipv4_address(s))
| def is_ipv4_address(s):
"""
Return True if 's' is a valid IPv4 address
"""
s_split = s.split('.')
return len(s_split) == 4 and all((num.isdigit() and 0 <= int(num) < 256 for num in s_split))
def is_i_pv4_address(inputString):
input_string = inputString + '.'
print(inputString)
start = 0
ip_num = []
for i in range(len(inputString)):
if inputString[i] == '.':
target = inputString[start:i]
if target != '' and target.isdigit():
target = int(inputString[start:i])
else:
target = -1
ipNum.append(target)
start = i + 1
return all((0 <= x <= 255 for x in ipNum)) and len(ipNum) == 4
s = '172.16.254.1'
print(is_ipv4_address(s)) |
class StringParser:
def __init__(self):
self.parse_trees = []
def register(self,tree):
self.parse_trees.append(tree)
def parse(self, string):
for tree in self.parse_trees:
return tree.parse(string) | class Stringparser:
def __init__(self):
self.parse_trees = []
def register(self, tree):
self.parse_trees.append(tree)
def parse(self, string):
for tree in self.parse_trees:
return tree.parse(string) |
# -*- coding:utf-8 -*-
# https://leetcode.com/problems/unique-paths-ii/description/
class Solution(object):
def uniquePathsWithObstacles(self, obstacleGrid):
"""
:type obstacleGrid: List[List[int]]
:rtype: int
"""
if not obstacleGrid or not obstacleGrid[0]:
return
m = len(obstacleGrid)
n = len(obstacleGrid[0])
if obstacleGrid[0][0] or obstacleGrid[-1][-1]:
return 0
dp = [[0] * (n + 1) for i in range(m + 1)]
dp[1][1] = 1
for i in range(1, m + 1):
for j in range(1, n + 1):
if not obstacleGrid[i-1][j-1]:
dp[i][j] += dp[i][j-1] + dp[i-1][j]
return dp[m][n] | class Solution(object):
def unique_paths_with_obstacles(self, obstacleGrid):
"""
:type obstacleGrid: List[List[int]]
:rtype: int
"""
if not obstacleGrid or not obstacleGrid[0]:
return
m = len(obstacleGrid)
n = len(obstacleGrid[0])
if obstacleGrid[0][0] or obstacleGrid[-1][-1]:
return 0
dp = [[0] * (n + 1) for i in range(m + 1)]
dp[1][1] = 1
for i in range(1, m + 1):
for j in range(1, n + 1):
if not obstacleGrid[i - 1][j - 1]:
dp[i][j] += dp[i][j - 1] + dp[i - 1][j]
return dp[m][n] |
def merge(pairs):
pairs = sorted(pairs)
j,tmp = 0, []
while j < len(pairs):
a = pairs[j]
if j < len(pairs) - 1:
b = pairs[j+1]
if a[1] == b[0]:
a = (a[0], b[1])
j += 1
tmp += [a]
j += 1
return tmp
print(merge(sorted(set([(1,2),(2,3),(4,5),(5,6),(1,2)]))))
| def merge(pairs):
pairs = sorted(pairs)
(j, tmp) = (0, [])
while j < len(pairs):
a = pairs[j]
if j < len(pairs) - 1:
b = pairs[j + 1]
if a[1] == b[0]:
a = (a[0], b[1])
j += 1
tmp += [a]
j += 1
return tmp
print(merge(sorted(set([(1, 2), (2, 3), (4, 5), (5, 6), (1, 2)])))) |
def corner_move(game):
return list(set(game.possible_moves()) & {1, 3, 7, 9})
def center_move(game):
return list(set(game.possible_moves()) & {5})
def side_move(game):
return list(set(game.possible_moves()) & {2, 4, 6, 8})
def test_if_win_is_possible(game, to_check=None):
if to_check is None:
to_check = game.active_player
possible_moves = []
for move in game.possible_moves():
game.make_move(move, to_check)
if game.check_winner(to_check):
possible_moves.append(move)
game.unmake_move(move)
return possible_moves
def test_if_fork_is_possible(game, to_check=None):
if to_check is None:
to_check = game.active_player
possible_moves = []
for move in game.possible_moves():
game.make_move(move, to_check)
if len(test_if_win_is_possible(game, to_check)) > 1:
possible_moves.append(move)
game.unmake_move(move)
return possible_moves
def force_player_to_block(game):
possible_moves = []
for move in game.possible_moves():
game.make_move(move)
possible_win_moves = test_if_win_is_possible(game, game.COMPUTER)
if possible_win_moves:
game.make_move(possible_win_moves[0], game.PLAYER)
if len(test_if_win_is_possible(game, game.PLAYER)) < 2:
possible_moves.append(move)
game.unmake_move(possible_win_moves[0])
game.unmake_move(move)
return possible_moves
# ai functions:
def corner_center_side(game):
possible_moves = corner_move(game)
if len(possible_moves) > 0:
return possible_moves
possible_moves = center_move(game)
if len(possible_moves) > 0:
return possible_moves
possible_moves = side_move(game)
if len(possible_moves) > 0:
return possible_moves
def center_corner_side(game):
possible_moves = center_move(game)
if len(possible_moves) > 0:
return possible_moves
possible_moves = corner_move(game)
if len(possible_moves) > 0:
return possible_moves
possible_moves = side_move(game)
if len(possible_moves) > 0:
return possible_moves
| def corner_move(game):
return list(set(game.possible_moves()) & {1, 3, 7, 9})
def center_move(game):
return list(set(game.possible_moves()) & {5})
def side_move(game):
return list(set(game.possible_moves()) & {2, 4, 6, 8})
def test_if_win_is_possible(game, to_check=None):
if to_check is None:
to_check = game.active_player
possible_moves = []
for move in game.possible_moves():
game.make_move(move, to_check)
if game.check_winner(to_check):
possible_moves.append(move)
game.unmake_move(move)
return possible_moves
def test_if_fork_is_possible(game, to_check=None):
if to_check is None:
to_check = game.active_player
possible_moves = []
for move in game.possible_moves():
game.make_move(move, to_check)
if len(test_if_win_is_possible(game, to_check)) > 1:
possible_moves.append(move)
game.unmake_move(move)
return possible_moves
def force_player_to_block(game):
possible_moves = []
for move in game.possible_moves():
game.make_move(move)
possible_win_moves = test_if_win_is_possible(game, game.COMPUTER)
if possible_win_moves:
game.make_move(possible_win_moves[0], game.PLAYER)
if len(test_if_win_is_possible(game, game.PLAYER)) < 2:
possible_moves.append(move)
game.unmake_move(possible_win_moves[0])
game.unmake_move(move)
return possible_moves
def corner_center_side(game):
possible_moves = corner_move(game)
if len(possible_moves) > 0:
return possible_moves
possible_moves = center_move(game)
if len(possible_moves) > 0:
return possible_moves
possible_moves = side_move(game)
if len(possible_moves) > 0:
return possible_moves
def center_corner_side(game):
possible_moves = center_move(game)
if len(possible_moves) > 0:
return possible_moves
possible_moves = corner_move(game)
if len(possible_moves) > 0:
return possible_moves
possible_moves = side_move(game)
if len(possible_moves) > 0:
return possible_moves |
class Solution:
def maxProfit(self, prices) -> int:
'''
Notice that we can complete as many transactions as we like.
Therefore, a greedy rule are easily came out, that we buy it
on the low price day which compares with the next day and
sell it on the high price day which compares with next day.
'''
last_buy_day=0
is_buy = False
profit = 0
for i in range(len(prices)):
if i == len(prices)-1:
if is_buy:
profit += prices[i] - prices[last_buy_day]
elif prices[i] < prices[i+1] and not is_buy:
last_buy_day = i
is_buy = True
elif prices[i] > prices[i+1] and is_buy:
profit += prices[i] - prices[last_buy_day]
is_buy = False
return profit
print(Solution().maxProfit([1,2,3,4,5]))
| class Solution:
def max_profit(self, prices) -> int:
"""
Notice that we can complete as many transactions as we like.
Therefore, a greedy rule are easily came out, that we buy it
on the low price day which compares with the next day and
sell it on the high price day which compares with next day.
"""
last_buy_day = 0
is_buy = False
profit = 0
for i in range(len(prices)):
if i == len(prices) - 1:
if is_buy:
profit += prices[i] - prices[last_buy_day]
elif prices[i] < prices[i + 1] and (not is_buy):
last_buy_day = i
is_buy = True
elif prices[i] > prices[i + 1] and is_buy:
profit += prices[i] - prices[last_buy_day]
is_buy = False
return profit
print(solution().maxProfit([1, 2, 3, 4, 5])) |
def part1():
values = [i.split(" ") for i in open("input.txt").read().split("\n")]
lights = [[False]*50 ,[False]*50,[False]*50,[False]*50,[False]*50,[False]*50]
for command in values:
if command[0] == "rect":
length, height = (int(i) for i in command[1].split("x"))
for i in range(length):
for j in range(height):
lights[j][i] = True
pass
elif command[1] == "column":
column, rotation = int(command[2].split("=")[1]), int(command[-1])
for _ in range(rotation):
stored = lights[-1][column]
for i in range(5,0,-1):
lights[i][column] = lights[i-1][column]
lights[0][column] = stored
else:
row, rotation = int(command[2].split("=")[1]), int(command[-1])
for _ in range(rotation):
stored = lights[row][-1]
for i in range(49, 0, -1):
lights[row][i] = lights[row][i-1]
lights[row][0] = stored
total = 0
for i in lights:
for j in i:
total += j
return total
def part2():
values = [i.split(" ") for i in open("input.txt").read().split("\n")]
lights = [[False]*50 ,[False]*50,[False]*50,[False]*50,[False]*50,[False]*50]
for command in values:
if command[0] == "rect":
length, height = (int(i) for i in command[1].split("x"))
for i in range(length):
for j in range(height):
lights[j][i] = True
pass
elif command[1] == "column":
column, rotation = int(command[2].split("=")[1]), int(command[-1])
for _ in range(rotation):
stored = lights[-1][column]
for i in range(5,0,-1):
lights[i][column] = lights[i-1][column]
lights[0][column] = stored
else:
row, rotation = int(command[2].split("=")[1]), int(command[-1])
for _ in range(rotation):
stored = lights[row][-1]
for i in range(49, 0, -1):
lights[row][i] = lights[row][i-1]
lights[row][0] = stored
total = 0
for i in lights:
toPrint = ""
count = 0
for j in i:
toPrint += "#" if j else " "
count = (count+1) % 5
if count == 0:
toPrint += " "
print(toPrint)
return total
print(f"Answer to part 1: {part1()}")
print(f"Answer to part 2: {part2()}") | def part1():
values = [i.split(' ') for i in open('input.txt').read().split('\n')]
lights = [[False] * 50, [False] * 50, [False] * 50, [False] * 50, [False] * 50, [False] * 50]
for command in values:
if command[0] == 'rect':
(length, height) = (int(i) for i in command[1].split('x'))
for i in range(length):
for j in range(height):
lights[j][i] = True
pass
elif command[1] == 'column':
(column, rotation) = (int(command[2].split('=')[1]), int(command[-1]))
for _ in range(rotation):
stored = lights[-1][column]
for i in range(5, 0, -1):
lights[i][column] = lights[i - 1][column]
lights[0][column] = stored
else:
(row, rotation) = (int(command[2].split('=')[1]), int(command[-1]))
for _ in range(rotation):
stored = lights[row][-1]
for i in range(49, 0, -1):
lights[row][i] = lights[row][i - 1]
lights[row][0] = stored
total = 0
for i in lights:
for j in i:
total += j
return total
def part2():
values = [i.split(' ') for i in open('input.txt').read().split('\n')]
lights = [[False] * 50, [False] * 50, [False] * 50, [False] * 50, [False] * 50, [False] * 50]
for command in values:
if command[0] == 'rect':
(length, height) = (int(i) for i in command[1].split('x'))
for i in range(length):
for j in range(height):
lights[j][i] = True
pass
elif command[1] == 'column':
(column, rotation) = (int(command[2].split('=')[1]), int(command[-1]))
for _ in range(rotation):
stored = lights[-1][column]
for i in range(5, 0, -1):
lights[i][column] = lights[i - 1][column]
lights[0][column] = stored
else:
(row, rotation) = (int(command[2].split('=')[1]), int(command[-1]))
for _ in range(rotation):
stored = lights[row][-1]
for i in range(49, 0, -1):
lights[row][i] = lights[row][i - 1]
lights[row][0] = stored
total = 0
for i in lights:
to_print = ''
count = 0
for j in i:
to_print += '#' if j else ' '
count = (count + 1) % 5
if count == 0:
to_print += ' '
print(toPrint)
return total
print(f'Answer to part 1: {part1()}')
print(f'Answer to part 2: {part2()}') |
# https://blog.csdn.net/Violet_ljp/article/details/80556460
# https://www.youtube.com/watch?v=pcKY4hjDrxk
# https://github.com/minsuk-heo/problemsolving/tree/master/graph
def bfs(graph, start):
vertexList, edgeList = graph
visitedList = []
queue = [start]
adjacencyList = [[] for vertex in vertexList]
# fill adjacencyList from graph
# adjacency is the combination of array and linked list
for edge in edgeList:
# edge is each edgelist tuple
# edge[0] is the vertex that leading the connection with other vertices
adjacencyList[edge[0]].append(edge[1])
# bfs
# the property of queue is FIFO
# if queue is not empty
while queue:
# first pop out the queue value and regard it as the vertex of adjacencylist
current = queue.pop()
# find all nerghbors in adjacency list
for neighbor in adjacencyList[current]:
# use visitedList as flag to denote the neighbor access or not
if not neighbor in visitedList:
queue.insert(0,neighbor)
# add queue's popped element to the final bfs spanning tree
visitedList.append(current)
return visitedList
# test
vertexList = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
edgeList = [(0,1), (1,2), (1,3), (3,4), (4,5), (1,6)]
graphs = (vertexList, edgeList)
print(bfs(graphs, 0)) | def bfs(graph, start):
(vertex_list, edge_list) = graph
visited_list = []
queue = [start]
adjacency_list = [[] for vertex in vertexList]
for edge in edgeList:
adjacencyList[edge[0]].append(edge[1])
while queue:
current = queue.pop()
for neighbor in adjacencyList[current]:
if not neighbor in visitedList:
queue.insert(0, neighbor)
visitedList.append(current)
return visitedList
vertex_list = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
edge_list = [(0, 1), (1, 2), (1, 3), (3, 4), (4, 5), (1, 6)]
graphs = (vertexList, edgeList)
print(bfs(graphs, 0)) |
######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Mark Pilgrim - port to Python
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA
######################### END LICENSE BLOCK #########################
# GB2312 most frequently used character table
#
# Char to FreqOrder table , from hz6763
# 512 --> 0.79 -- 0.79
# 1024 --> 0.92 -- 0.13
# 2048 --> 0.98 -- 0.06
# 6768 --> 1.00 -- 0.02
#
# Ideal Distribution Ratio = 0.79135/(1-0.79135) = 3.79
# Random Distribution Ration = 512 / (3755 - 512) = 0.157
#
# Typical Distribution Ratio about 25% of Ideal one, still much higher that RDR
GB2312_TYPICAL_DISTRIBUTION_RATIO = 0.9
GB2312_TABLE_SIZE = 3760
GB2312CharToFreqOrder = ( \
1671, 749, 1443, 2364, 3924, 3807, 2330, 3921, 1704, 3463, 2691, 1511, 1515, 572, 3191, 2205,
2361, 224, 2558, 479, 1711, 963, 3162, 440, 4060, 1905, 2966, 2947, 3580, 2647, 3961, 3842,
2204, 869, 4207, 970, 2678, 5626, 2944, 2956, 1479, 4048, 514, 3595, 588, 1346, 2820, 3409,
249, 4088, 1746, 1873, 2047, 1774, 581, 1813, 358, 1174, 3590, 1014, 1561, 4844, 2245, 670,
1636, 3112, 889, 1286, 953, 556, 2327, 3060, 1290, 3141, 613, 185, 3477, 1367, 850, 3820,
1715, 2428, 2642, 2303, 2732, 3041, 2562, 2648, 3566, 3946, 1349, 388, 3098, 2091, 1360, 3585,
152, 1687, 1539, 738, 1559, 59, 1232, 2925, 2267, 1388, 1249, 1741, 1679, 2960, 151, 1566,
1125, 1352, 4271, 924, 4296, 385, 3166, 4459, 310, 1245, 2850, 70, 3285, 2729, 3534, 3575,
2398, 3298, 3466, 1960, 2265, 217, 3647, 864, 1909, 2084, 4401, 2773, 1010, 3269, 5152, 853,
3051, 3121, 1244, 4251, 1895, 364, 1499, 1540, 2313, 1180, 3655, 2268, 562, 715, 2417, 3061,
544, 336, 3768, 2380, 1752, 4075, 950, 280, 2425, 4382, 183, 2759, 3272, 333, 4297, 2155,
1688, 2356, 1444, 1039, 4540, 736, 1177, 3349, 2443, 2368, 2144, 2225, 565, 196, 1482, 3406,
927, 1335, 4147, 692, 878, 1311, 1653, 3911, 3622, 1378, 4200, 1840, 2969, 3149, 2126, 1816,
2534, 1546, 2393, 2760, 737, 2494, 13, 447, 245, 2747, 38, 2765, 2129, 2589, 1079, 606,
360, 471, 3755, 2890, 404, 848, 699, 1785, 1236, 370, 2221, 1023, 3746, 2074, 2026, 2023,
2388, 1581, 2119, 812, 1141, 3091, 2536, 1519, 804, 2053, 406, 1596, 1090, 784, 548, 4414,
1806, 2264, 2936, 1100, 343, 4114, 5096, 622, 3358, 743, 3668, 1510, 1626, 5020, 3567, 2513,
3195, 4115, 5627, 2489, 2991, 24, 2065, 2697, 1087, 2719, 48, 1634, 315, 68, 985, 2052,
198, 2239, 1347, 1107, 1439, 597, 2366, 2172, 871, 3307, 919, 2487, 2790, 1867, 236, 2570,
1413, 3794, 906, 3365, 3381, 1701, 1982, 1818, 1524, 2924, 1205, 616, 2586, 2072, 2004, 575,
253, 3099, 32, 1365, 1182, 197, 1714, 2454, 1201, 554, 3388, 3224, 2748, 756, 2587, 250,
2567, 1507, 1517, 3529, 1922, 2761, 2337, 3416, 1961, 1677, 2452, 2238, 3153, 615, 911, 1506,
1474, 2495, 1265, 1906, 2749, 3756, 3280, 2161, 898, 2714, 1759, 3450, 2243, 2444, 563, 26,
3286, 2266, 3769, 3344, 2707, 3677, 611, 1402, 531, 1028, 2871, 4548, 1375, 261, 2948, 835,
1190, 4134, 353, 840, 2684, 1900, 3082, 1435, 2109, 1207, 1674, 329, 1872, 2781, 4055, 2686,
2104, 608, 3318, 2423, 2957, 2768, 1108, 3739, 3512, 3271, 3985, 2203, 1771, 3520, 1418, 2054,
1681, 1153, 225, 1627, 2929, 162, 2050, 2511, 3687, 1954, 124, 1859, 2431, 1684, 3032, 2894,
585, 4805, 3969, 2869, 2704, 2088, 2032, 2095, 3656, 2635, 4362, 2209, 256, 518, 2042, 2105,
3777, 3657, 643, 2298, 1148, 1779, 190, 989, 3544, 414, 11, 2135, 2063, 2979, 1471, 403,
3678, 126, 770, 1563, 671, 2499, 3216, 2877, 600, 1179, 307, 2805, 4937, 1268, 1297, 2694,
252, 4032, 1448, 1494, 1331, 1394, 127, 2256, 222, 1647, 1035, 1481, 3056, 1915, 1048, 873,
3651, 210, 33, 1608, 2516, 200, 1520, 415, 102, 0, 3389, 1287, 817, 91, 3299, 2940,
836, 1814, 549, 2197, 1396, 1669, 2987, 3582, 2297, 2848, 4528, 1070, 687, 20, 1819, 121,
1552, 1364, 1461, 1968, 2617, 3540, 2824, 2083, 177, 948, 4938, 2291, 110, 4549, 2066, 648,
3359, 1755, 2110, 2114, 4642, 4845, 1693, 3937, 3308, 1257, 1869, 2123, 208, 1804, 3159, 2992,
2531, 2549, 3361, 2418, 1350, 2347, 2800, 2568, 1291, 2036, 2680, 72, 842, 1990, 212, 1233,
1154, 1586, 75, 2027, 3410, 4900, 1823, 1337, 2710, 2676, 728, 2810, 1522, 3026, 4995, 157,
755, 1050, 4022, 710, 785, 1936, 2194, 2085, 1406, 2777, 2400, 150, 1250, 4049, 1206, 807,
1910, 534, 529, 3309, 1721, 1660, 274, 39, 2827, 661, 2670, 1578, 925, 3248, 3815, 1094,
4278, 4901, 4252, 41, 1150, 3747, 2572, 2227, 4501, 3658, 4902, 3813, 3357, 3617, 2884, 2258,
887, 538, 4187, 3199, 1294, 2439, 3042, 2329, 2343, 2497, 1255, 107, 543, 1527, 521, 3478,
3568, 194, 5062, 15, 961, 3870, 1241, 1192, 2664, 66, 5215, 3260, 2111, 1295, 1127, 2152,
3805, 4135, 901, 1164, 1976, 398, 1278, 530, 1460, 748, 904, 1054, 1966, 1426, 53, 2909,
509, 523, 2279, 1534, 536, 1019, 239, 1685, 460, 2353, 673, 1065, 2401, 3600, 4298, 2272,
1272, 2363, 284, 1753, 3679, 4064, 1695, 81, 815, 2677, 2757, 2731, 1386, 859, 500, 4221,
2190, 2566, 757, 1006, 2519, 2068, 1166, 1455, 337, 2654, 3203, 1863, 1682, 1914, 3025, 1252,
1409, 1366, 847, 714, 2834, 2038, 3209, 964, 2970, 1901, 885, 2553, 1078, 1756, 3049, 301,
1572, 3326, 688, 2130, 1996, 2429, 1805, 1648, 2930, 3421, 2750, 3652, 3088, 262, 1158, 1254,
389, 1641, 1812, 526, 1719, 923, 2073, 1073, 1902, 468, 489, 4625, 1140, 857, 2375, 3070,
3319, 2863, 380, 116, 1328, 2693, 1161, 2244, 273, 1212, 1884, 2769, 3011, 1775, 1142, 461,
3066, 1200, 2147, 2212, 790, 702, 2695, 4222, 1601, 1058, 434, 2338, 5153, 3640, 67, 2360,
4099, 2502, 618, 3472, 1329, 416, 1132, 830, 2782, 1807, 2653, 3211, 3510, 1662, 192, 2124,
296, 3979, 1739, 1611, 3684, 23, 118, 324, 446, 1239, 1225, 293, 2520, 3814, 3795, 2535,
3116, 17, 1074, 467, 2692, 2201, 387, 2922, 45, 1326, 3055, 1645, 3659, 2817, 958, 243,
1903, 2320, 1339, 2825, 1784, 3289, 356, 576, 865, 2315, 2381, 3377, 3916, 1088, 3122, 1713,
1655, 935, 628, 4689, 1034, 1327, 441, 800, 720, 894, 1979, 2183, 1528, 5289, 2702, 1071,
4046, 3572, 2399, 1571, 3281, 79, 761, 1103, 327, 134, 758, 1899, 1371, 1615, 879, 442,
215, 2605, 2579, 173, 2048, 2485, 1057, 2975, 3317, 1097, 2253, 3801, 4263, 1403, 1650, 2946,
814, 4968, 3487, 1548, 2644, 1567, 1285, 2, 295, 2636, 97, 946, 3576, 832, 141, 4257,
3273, 760, 3821, 3521, 3156, 2607, 949, 1024, 1733, 1516, 1803, 1920, 2125, 2283, 2665, 3180,
1501, 2064, 3560, 2171, 1592, 803, 3518, 1416, 732, 3897, 4258, 1363, 1362, 2458, 119, 1427,
602, 1525, 2608, 1605, 1639, 3175, 694, 3064, 10, 465, 76, 2000, 4846, 4208, 444, 3781,
1619, 3353, 2206, 1273, 3796, 740, 2483, 320, 1723, 2377, 3660, 2619, 1359, 1137, 1762, 1724,
2345, 2842, 1850, 1862, 912, 821, 1866, 612, 2625, 1735, 2573, 3369, 1093, 844, 89, 937,
930, 1424, 3564, 2413, 2972, 1004, 3046, 3019, 2011, 711, 3171, 1452, 4178, 428, 801, 1943,
432, 445, 2811, 206, 4136, 1472, 730, 349, 73, 397, 2802, 2547, 998, 1637, 1167, 789,
396, 3217, 154, 1218, 716, 1120, 1780, 2819, 4826, 1931, 3334, 3762, 2139, 1215, 2627, 552,
3664, 3628, 3232, 1405, 2383, 3111, 1356, 2652, 3577, 3320, 3101, 1703, 640, 1045, 1370, 1246,
4996, 371, 1575, 2436, 1621, 2210, 984, 4033, 1734, 2638, 16, 4529, 663, 2755, 3255, 1451,
3917, 2257, 1253, 1955, 2234, 1263, 2951, 214, 1229, 617, 485, 359, 1831, 1969, 473, 2310,
750, 2058, 165, 80, 2864, 2419, 361, 4344, 2416, 2479, 1134, 796, 3726, 1266, 2943, 860,
2715, 938, 390, 2734, 1313, 1384, 248, 202, 877, 1064, 2854, 522, 3907, 279, 1602, 297,
2357, 395, 3740, 137, 2075, 944, 4089, 2584, 1267, 3802, 62, 1533, 2285, 178, 176, 780,
2440, 201, 3707, 590, 478, 1560, 4354, 2117, 1075, 30, 74, 4643, 4004, 1635, 1441, 2745,
776, 2596, 238, 1077, 1692, 1912, 2844, 605, 499, 1742, 3947, 241, 3053, 980, 1749, 936,
2640, 4511, 2582, 515, 1543, 2162, 5322, 2892, 2993, 890, 2148, 1924, 665, 1827, 3581, 1032,
968, 3163, 339, 1044, 1896, 270, 583, 1791, 1720, 4367, 1194, 3488, 3669, 43, 2523, 1657,
163, 2167, 290, 1209, 1622, 3378, 550, 634, 2508, 2510, 695, 2634, 2384, 2512, 1476, 1414,
220, 1469, 2341, 2138, 2852, 3183, 2900, 4939, 2865, 3502, 1211, 3680, 854, 3227, 1299, 2976,
3172, 186, 2998, 1459, 443, 1067, 3251, 1495, 321, 1932, 3054, 909, 753, 1410, 1828, 436,
2441, 1119, 1587, 3164, 2186, 1258, 227, 231, 1425, 1890, 3200, 3942, 247, 959, 725, 5254,
2741, 577, 2158, 2079, 929, 120, 174, 838, 2813, 591, 1115, 417, 2024, 40, 3240, 1536,
1037, 291, 4151, 2354, 632, 1298, 2406, 2500, 3535, 1825, 1846, 3451, 205, 1171, 345, 4238,
18, 1163, 811, 685, 2208, 1217, 425, 1312, 1508, 1175, 4308, 2552, 1033, 587, 1381, 3059,
2984, 3482, 340, 1316, 4023, 3972, 792, 3176, 519, 777, 4690, 918, 933, 4130, 2981, 3741,
90, 3360, 2911, 2200, 5184, 4550, 609, 3079, 2030, 272, 3379, 2736, 363, 3881, 1130, 1447,
286, 779, 357, 1169, 3350, 3137, 1630, 1220, 2687, 2391, 747, 1277, 3688, 2618, 2682, 2601,
1156, 3196, 5290, 4034, 3102, 1689, 3596, 3128, 874, 219, 2783, 798, 508, 1843, 2461, 269,
1658, 1776, 1392, 1913, 2983, 3287, 2866, 2159, 2372, 829, 4076, 46, 4253, 2873, 1889, 1894,
915, 1834, 1631, 2181, 2318, 298, 664, 2818, 3555, 2735, 954, 3228, 3117, 527, 3511, 2173,
681, 2712, 3033, 2247, 2346, 3467, 1652, 155, 2164, 3382, 113, 1994, 450, 899, 494, 994,
1237, 2958, 1875, 2336, 1926, 3727, 545, 1577, 1550, 633, 3473, 204, 1305, 3072, 2410, 1956,
2471, 707, 2134, 841, 2195, 2196, 2663, 3843, 1026, 4940, 990, 3252, 4997, 368, 1092, 437,
3212, 3258, 1933, 1829, 675, 2977, 2893, 412, 943, 3723, 4644, 3294, 3283, 2230, 2373, 5154,
2389, 2241, 2661, 2323, 1404, 2524, 593, 787, 677, 3008, 1275, 2059, 438, 2709, 2609, 2240,
2269, 2246, 1446, 36, 1568, 1373, 3892, 1574, 2301, 1456, 3962, 693, 2276, 5216, 2035, 1143,
2720, 1919, 1797, 1811, 2763, 4137, 2597, 1830, 1699, 1488, 1198, 2090, 424, 1694, 312, 3634,
3390, 4179, 3335, 2252, 1214, 561, 1059, 3243, 2295, 2561, 975, 5155, 2321, 2751, 3772, 472,
1537, 3282, 3398, 1047, 2077, 2348, 2878, 1323, 3340, 3076, 690, 2906, 51, 369, 170, 3541,
1060, 2187, 2688, 3670, 2541, 1083, 1683, 928, 3918, 459, 109, 4427, 599, 3744, 4286, 143,
2101, 2730, 2490, 82, 1588, 3036, 2121, 281, 1860, 477, 4035, 1238, 2812, 3020, 2716, 3312,
1530, 2188, 2055, 1317, 843, 636, 1808, 1173, 3495, 649, 181, 1002, 147, 3641, 1159, 2414,
3750, 2289, 2795, 813, 3123, 2610, 1136, 4368, 5, 3391, 4541, 2174, 420, 429, 1728, 754,
1228, 2115, 2219, 347, 2223, 2733, 735, 1518, 3003, 2355, 3134, 1764, 3948, 3329, 1888, 2424,
1001, 1234, 1972, 3321, 3363, 1672, 1021, 1450, 1584, 226, 765, 655, 2526, 3404, 3244, 2302,
3665, 731, 594, 2184, 319, 1576, 621, 658, 2656, 4299, 2099, 3864, 1279, 2071, 2598, 2739,
795, 3086, 3699, 3908, 1707, 2352, 2402, 1382, 3136, 2475, 1465, 4847, 3496, 3865, 1085, 3004,
2591, 1084, 213, 2287, 1963, 3565, 2250, 822, 793, 4574, 3187, 1772, 1789, 3050, 595, 1484,
1959, 2770, 1080, 2650, 456, 422, 2996, 940, 3322, 4328, 4345, 3092, 2742, 965, 2784, 739,
4124, 952, 1358, 2498, 2949, 2565, 332, 2698, 2378, 660, 2260, 2473, 4194, 3856, 2919, 535,
1260, 2651, 1208, 1428, 1300, 1949, 1303, 2942, 433, 2455, 2450, 1251, 1946, 614, 1269, 641,
1306, 1810, 2737, 3078, 2912, 564, 2365, 1419, 1415, 1497, 4460, 2367, 2185, 1379, 3005, 1307,
3218, 2175, 1897, 3063, 682, 1157, 4040, 4005, 1712, 1160, 1941, 1399, 394, 402, 2952, 1573,
1151, 2986, 2404, 862, 299, 2033, 1489, 3006, 346, 171, 2886, 3401, 1726, 2932, 168, 2533,
47, 2507, 1030, 3735, 1145, 3370, 1395, 1318, 1579, 3609, 4560, 2857, 4116, 1457, 2529, 1965,
504, 1036, 2690, 2988, 2405, 745, 5871, 849, 2397, 2056, 3081, 863, 2359, 3857, 2096, 99,
1397, 1769, 2300, 4428, 1643, 3455, 1978, 1757, 3718, 1440, 35, 4879, 3742, 1296, 4228, 2280,
160, 5063, 1599, 2013, 166, 520, 3479, 1646, 3345, 3012, 490, 1937, 1545, 1264, 2182, 2505,
1096, 1188, 1369, 1436, 2421, 1667, 2792, 2460, 1270, 2122, 727, 3167, 2143, 806, 1706, 1012,
1800, 3037, 960, 2218, 1882, 805, 139, 2456, 1139, 1521, 851, 1052, 3093, 3089, 342, 2039,
744, 5097, 1468, 1502, 1585, 2087, 223, 939, 326, 2140, 2577, 892, 2481, 1623, 4077, 982,
3708, 135, 2131, 87, 2503, 3114, 2326, 1106, 876, 1616, 547, 2997, 2831, 2093, 3441, 4530,
4314, 9, 3256, 4229, 4148, 659, 1462, 1986, 1710, 2046, 2913, 2231, 4090, 4880, 5255, 3392,
3274, 1368, 3689, 4645, 1477, 705, 3384, 3635, 1068, 1529, 2941, 1458, 3782, 1509, 100, 1656,
2548, 718, 2339, 408, 1590, 2780, 3548, 1838, 4117, 3719, 1345, 3530, 717, 3442, 2778, 3220,
2898, 1892, 4590, 3614, 3371, 2043, 1998, 1224, 3483, 891, 635, 584, 2559, 3355, 733, 1766,
1729, 1172, 3789, 1891, 2307, 781, 2982, 2271, 1957, 1580, 5773, 2633, 2005, 4195, 3097, 1535,
3213, 1189, 1934, 5693, 3262, 586, 3118, 1324, 1598, 517, 1564, 2217, 1868, 1893, 4445, 3728,
2703, 3139, 1526, 1787, 1992, 3882, 2875, 1549, 1199, 1056, 2224, 1904, 2711, 5098, 4287, 338,
1993, 3129, 3489, 2689, 1809, 2815, 1997, 957, 1855, 3898, 2550, 3275, 3057, 1105, 1319, 627,
1505, 1911, 1883, 3526, 698, 3629, 3456, 1833, 1431, 746, 77, 1261, 2017, 2296, 1977, 1885,
125, 1334, 1600, 525, 1798, 1109, 2222, 1470, 1945, 559, 2236, 1186, 3443, 2476, 1929, 1411,
2411, 3135, 1777, 3372, 2621, 1841, 1613, 3229, 668, 1430, 1839, 2643, 2916, 195, 1989, 2671,
2358, 1387, 629, 3205, 2293, 5256, 4439, 123, 1310, 888, 1879, 4300, 3021, 3605, 1003, 1162,
3192, 2910, 2010, 140, 2395, 2859, 55, 1082, 2012, 2901, 662, 419, 2081, 1438, 680, 2774,
4654, 3912, 1620, 1731, 1625, 5035, 4065, 2328, 512, 1344, 802, 5443, 2163, 2311, 2537, 524,
3399, 98, 1155, 2103, 1918, 2606, 3925, 2816, 1393, 2465, 1504, 3773, 2177, 3963, 1478, 4346,
180, 1113, 4655, 3461, 2028, 1698, 833, 2696, 1235, 1322, 1594, 4408, 3623, 3013, 3225, 2040,
3022, 541, 2881, 607, 3632, 2029, 1665, 1219, 639, 1385, 1686, 1099, 2803, 3231, 1938, 3188,
2858, 427, 676, 2772, 1168, 2025, 454, 3253, 2486, 3556, 230, 1950, 580, 791, 1991, 1280,
1086, 1974, 2034, 630, 257, 3338, 2788, 4903, 1017, 86, 4790, 966, 2789, 1995, 1696, 1131,
259, 3095, 4188, 1308, 179, 1463, 5257, 289, 4107, 1248, 42, 3413, 1725, 2288, 896, 1947,
774, 4474, 4254, 604, 3430, 4264, 392, 2514, 2588, 452, 237, 1408, 3018, 988, 4531, 1970,
3034, 3310, 540, 2370, 1562, 1288, 2990, 502, 4765, 1147, 4, 1853, 2708, 207, 294, 2814,
4078, 2902, 2509, 684, 34, 3105, 3532, 2551, 644, 709, 2801, 2344, 573, 1727, 3573, 3557,
2021, 1081, 3100, 4315, 2100, 3681, 199, 2263, 1837, 2385, 146, 3484, 1195, 2776, 3949, 997,
1939, 3973, 1008, 1091, 1202, 1962, 1847, 1149, 4209, 5444, 1076, 493, 117, 5400, 2521, 972,
1490, 2934, 1796, 4542, 2374, 1512, 2933, 2657, 413, 2888, 1135, 2762, 2314, 2156, 1355, 2369,
766, 2007, 2527, 2170, 3124, 2491, 2593, 2632, 4757, 2437, 234, 3125, 3591, 1898, 1750, 1376,
1942, 3468, 3138, 570, 2127, 2145, 3276, 4131, 962, 132, 1445, 4196, 19, 941, 3624, 3480,
3366, 1973, 1374, 4461, 3431, 2629, 283, 2415, 2275, 808, 2887, 3620, 2112, 2563, 1353, 3610,
955, 1089, 3103, 1053, 96, 88, 4097, 823, 3808, 1583, 399, 292, 4091, 3313, 421, 1128,
642, 4006, 903, 2539, 1877, 2082, 596, 29, 4066, 1790, 722, 2157, 130, 995, 1569, 769,
1485, 464, 513, 2213, 288, 1923, 1101, 2453, 4316, 133, 486, 2445, 50, 625, 487, 2207,
57, 423, 481, 2962, 159, 3729, 1558, 491, 303, 482, 501, 240, 2837, 112, 3648, 2392,
1783, 362, 8, 3433, 3422, 610, 2793, 3277, 1390, 1284, 1654, 21, 3823, 734, 367, 623,
193, 287, 374, 1009, 1483, 816, 476, 313, 2255, 2340, 1262, 2150, 2899, 1146, 2581, 782,
2116, 1659, 2018, 1880, 255, 3586, 3314, 1110, 2867, 2137, 2564, 986, 2767, 5185, 2006, 650,
158, 926, 762, 881, 3157, 2717, 2362, 3587, 306, 3690, 3245, 1542, 3077, 2427, 1691, 2478,
2118, 2985, 3490, 2438, 539, 2305, 983, 129, 1754, 355, 4201, 2386, 827, 2923, 104, 1773,
2838, 2771, 411, 2905, 3919, 376, 767, 122, 1114, 828, 2422, 1817, 3506, 266, 3460, 1007,
1609, 4998, 945, 2612, 4429, 2274, 726, 1247, 1964, 2914, 2199, 2070, 4002, 4108, 657, 3323,
1422, 579, 455, 2764, 4737, 1222, 2895, 1670, 824, 1223, 1487, 2525, 558, 861, 3080, 598,
2659, 2515, 1967, 752, 2583, 2376, 2214, 4180, 977, 704, 2464, 4999, 2622, 4109, 1210, 2961,
819, 1541, 142, 2284, 44, 418, 457, 1126, 3730, 4347, 4626, 1644, 1876, 3671, 1864, 302,
1063, 5694, 624, 723, 1984, 3745, 1314, 1676, 2488, 1610, 1449, 3558, 3569, 2166, 2098, 409,
1011, 2325, 3704, 2306, 818, 1732, 1383, 1824, 1844, 3757, 999, 2705, 3497, 1216, 1423, 2683,
2426, 2954, 2501, 2726, 2229, 1475, 2554, 5064, 1971, 1794, 1666, 2014, 1343, 783, 724, 191,
2434, 1354, 2220, 5065, 1763, 2752, 2472, 4152, 131, 175, 2885, 3434, 92, 1466, 4920, 2616,
3871, 3872, 3866, 128, 1551, 1632, 669, 1854, 3682, 4691, 4125, 1230, 188, 2973, 3290, 1302,
1213, 560, 3266, 917, 763, 3909, 3249, 1760, 868, 1958, 764, 1782, 2097, 145, 2277, 3774,
4462, 64, 1491, 3062, 971, 2132, 3606, 2442, 221, 1226, 1617, 218, 323, 1185, 3207, 3147,
571, 619, 1473, 1005, 1744, 2281, 449, 1887, 2396, 3685, 275, 375, 3816, 1743, 3844, 3731,
845, 1983, 2350, 4210, 1377, 773, 967, 3499, 3052, 3743, 2725, 4007, 1697, 1022, 3943, 1464,
3264, 2855, 2722, 1952, 1029, 2839, 2467, 84, 4383, 2215, 820, 1391, 2015, 2448, 3672, 377,
1948, 2168, 797, 2545, 3536, 2578, 2645, 94, 2874, 1678, 405, 1259, 3071, 771, 546, 1315,
470, 1243, 3083, 895, 2468, 981, 969, 2037, 846, 4181, 653, 1276, 2928, 14, 2594, 557,
3007, 2474, 156, 902, 1338, 1740, 2574, 537, 2518, 973, 2282, 2216, 2433, 1928, 138, 2903,
1293, 2631, 1612, 646, 3457, 839, 2935, 111, 496, 2191, 2847, 589, 3186, 149, 3994, 2060,
4031, 2641, 4067, 3145, 1870, 37, 3597, 2136, 1025, 2051, 3009, 3383, 3549, 1121, 1016, 3261,
1301, 251, 2446, 2599, 2153, 872, 3246, 637, 334, 3705, 831, 884, 921, 3065, 3140, 4092,
2198, 1944, 246, 2964, 108, 2045, 1152, 1921, 2308, 1031, 203, 3173, 4170, 1907, 3890, 810,
1401, 2003, 1690, 506, 647, 1242, 2828, 1761, 1649, 3208, 2249, 1589, 3709, 2931, 5156, 1708,
498, 666, 2613, 834, 3817, 1231, 184, 2851, 1124, 883, 3197, 2261, 3710, 1765, 1553, 2658,
1178, 2639, 2351, 93, 1193, 942, 2538, 2141, 4402, 235, 1821, 870, 1591, 2192, 1709, 1871,
3341, 1618, 4126, 2595, 2334, 603, 651, 69, 701, 268, 2662, 3411, 2555, 1380, 1606, 503,
448, 254, 2371, 2646, 574, 1187, 2309, 1770, 322, 2235, 1292, 1801, 305, 566, 1133, 229,
2067, 2057, 706, 167, 483, 2002, 2672, 3295, 1820, 3561, 3067, 316, 378, 2746, 3452, 1112,
136, 1981, 507, 1651, 2917, 1117, 285, 4591, 182, 2580, 3522, 1304, 335, 3303, 1835, 2504,
1795, 1792, 2248, 674, 1018, 2106, 2449, 1857, 2292, 2845, 976, 3047, 1781, 2600, 2727, 1389,
1281, 52, 3152, 153, 265, 3950, 672, 3485, 3951, 4463, 430, 1183, 365, 278, 2169, 27,
1407, 1336, 2304, 209, 1340, 1730, 2202, 1852, 2403, 2883, 979, 1737, 1062, 631, 2829, 2542,
3876, 2592, 825, 2086, 2226, 3048, 3625, 352, 1417, 3724, 542, 991, 431, 1351, 3938, 1861,
2294, 826, 1361, 2927, 3142, 3503, 1738, 463, 2462, 2723, 582, 1916, 1595, 2808, 400, 3845,
3891, 2868, 3621, 2254, 58, 2492, 1123, 910, 2160, 2614, 1372, 1603, 1196, 1072, 3385, 1700,
3267, 1980, 696, 480, 2430, 920, 799, 1570, 2920, 1951, 2041, 4047, 2540, 1321, 4223, 2469,
3562, 2228, 1271, 2602, 401, 2833, 3351, 2575, 5157, 907, 2312, 1256, 410, 263, 3507, 1582,
996, 678, 1849, 2316, 1480, 908, 3545, 2237, 703, 2322, 667, 1826, 2849, 1531, 2604, 2999,
2407, 3146, 2151, 2630, 1786, 3711, 469, 3542, 497, 3899, 2409, 858, 837, 4446, 3393, 1274,
786, 620, 1845, 2001, 3311, 484, 308, 3367, 1204, 1815, 3691, 2332, 1532, 2557, 1842, 2020,
2724, 1927, 2333, 4440, 567, 22, 1673, 2728, 4475, 1987, 1858, 1144, 1597, 101, 1832, 3601,
12, 974, 3783, 4391, 951, 1412, 1, 3720, 453, 4608, 4041, 528, 1041, 1027, 3230, 2628,
1129, 875, 1051, 3291, 1203, 2262, 1069, 2860, 2799, 2149, 2615, 3278, 144, 1758, 3040, 31,
475, 1680, 366, 2685, 3184, 311, 1642, 4008, 2466, 5036, 1593, 1493, 2809, 216, 1420, 1668,
233, 304, 2128, 3284, 232, 1429, 1768, 1040, 2008, 3407, 2740, 2967, 2543, 242, 2133, 778,
1565, 2022, 2620, 505, 2189, 2756, 1098, 2273, 372, 1614, 708, 553, 2846, 2094, 2278, 169,
3626, 2835, 4161, 228, 2674, 3165, 809, 1454, 1309, 466, 1705, 1095, 900, 3423, 880, 2667,
3751, 5258, 2317, 3109, 2571, 4317, 2766, 1503, 1342, 866, 4447, 1118, 63, 2076, 314, 1881,
1348, 1061, 172, 978, 3515, 1747, 532, 511, 3970, 6, 601, 905, 2699, 3300, 1751, 276,
1467, 3725, 2668, 65, 4239, 2544, 2779, 2556, 1604, 578, 2451, 1802, 992, 2331, 2624, 1320,
3446, 713, 1513, 1013, 103, 2786, 2447, 1661, 886, 1702, 916, 654, 3574, 2031, 1556, 751,
2178, 2821, 2179, 1498, 1538, 2176, 271, 914, 2251, 2080, 1325, 638, 1953, 2937, 3877, 2432,
2754, 95, 3265, 1716, 260, 1227, 4083, 775, 106, 1357, 3254, 426, 1607, 555, 2480, 772,
1985, 244, 2546, 474, 495, 1046, 2611, 1851, 2061, 71, 2089, 1675, 2590, 742, 3758, 2843,
3222, 1433, 267, 2180, 2576, 2826, 2233, 2092, 3913, 2435, 956, 1745, 3075, 856, 2113, 1116,
451, 3, 1988, 2896, 1398, 993, 2463, 1878, 2049, 1341, 2718, 2721, 2870, 2108, 712, 2904,
4363, 2753, 2324, 277, 2872, 2349, 2649, 384, 987, 435, 691, 3000, 922, 164, 3939, 652,
1500, 1184, 4153, 2482, 3373, 2165, 4848, 2335, 3775, 3508, 3154, 2806, 2830, 1554, 2102, 1664,
2530, 1434, 2408, 893, 1547, 2623, 3447, 2832, 2242, 2532, 3169, 2856, 3223, 2078, 49, 3770,
3469, 462, 318, 656, 2259, 3250, 3069, 679, 1629, 2758, 344, 1138, 1104, 3120, 1836, 1283,
3115, 2154, 1437, 4448, 934, 759, 1999, 794, 2862, 1038, 533, 2560, 1722, 2342, 855, 2626,
1197, 1663, 4476, 3127, 85, 4240, 2528, 25, 1111, 1181, 3673, 407, 3470, 4561, 2679, 2713,
768, 1925, 2841, 3986, 1544, 1165, 932, 373, 1240, 2146, 1930, 2673, 721, 4766, 354, 4333,
391, 2963, 187, 61, 3364, 1442, 1102, 330, 1940, 1767, 341, 3809, 4118, 393, 2496, 2062,
2211, 105, 331, 300, 439, 913, 1332, 626, 379, 3304, 1557, 328, 689, 3952, 309, 1555,
931, 317, 2517, 3027, 325, 569, 686, 2107, 3084, 60, 1042, 1333, 2794, 264, 3177, 4014,
1628, 258, 3712, 7, 4464, 1176, 1043, 1778, 683, 114, 1975, 78, 1492, 383, 1886, 510,
386, 645, 5291, 2891, 2069, 3305, 4138, 3867, 2939, 2603, 2493, 1935, 1066, 1848, 3588, 1015,
1282, 1289, 4609, 697, 1453, 3044, 2666, 3611, 1856, 2412, 54, 719, 1330, 568, 3778, 2459,
1748, 788, 492, 551, 1191, 1000, 488, 3394, 3763, 282, 1799, 348, 2016, 1523, 3155, 2390,
1049, 382, 2019, 1788, 1170, 729, 2968, 3523, 897, 3926, 2785, 2938, 3292, 350, 2319, 3238,
1718, 1717, 2655, 3453, 3143, 4465, 161, 2889, 2980, 2009, 1421, 56, 1908, 1640, 2387, 2232,
1917, 1874, 2477, 4921, 148, 83, 3438, 592, 4245, 2882, 1822, 1055, 741, 115, 1496, 1624,
381, 1638, 4592, 1020, 516, 3214, 458, 947, 4575, 1432, 211, 1514, 2926, 1865, 2142, 189,
852, 1221, 1400, 1486, 882, 2299, 4036, 351, 28, 1122, 700, 6479, 6480, 6481, 6482, 6483, # last 512
# Everything below is of no interest for detection purpose
5508, 6484, 3900, 3414, 3974, 4441, 4024, 3537, 4037, 5628, 5099, 3633, 6485, 3148, 6486, 3636,
5509, 3257, 5510, 5973, 5445, 5872, 4941, 4403, 3174, 4627, 5873, 6276, 2286, 4230, 5446, 5874,
5122, 6102, 6103, 4162, 5447, 5123, 5323, 4849, 6277, 3980, 3851, 5066, 4246, 5774, 5067, 6278,
3001, 2807, 5695, 3346, 5775, 5974, 5158, 5448, 6487, 5975, 5976, 5776, 3598, 6279, 5696, 4806,
4211, 4154, 6280, 6488, 6489, 6490, 6281, 4212, 5037, 3374, 4171, 6491, 4562, 4807, 4722, 4827,
5977, 6104, 4532, 4079, 5159, 5324, 5160, 4404, 3858, 5359, 5875, 3975, 4288, 4610, 3486, 4512,
5325, 3893, 5360, 6282, 6283, 5560, 2522, 4231, 5978, 5186, 5449, 2569, 3878, 6284, 5401, 3578,
4415, 6285, 4656, 5124, 5979, 2506, 4247, 4449, 3219, 3417, 4334, 4969, 4329, 6492, 4576, 4828,
4172, 4416, 4829, 5402, 6286, 3927, 3852, 5361, 4369, 4830, 4477, 4867, 5876, 4173, 6493, 6105,
4657, 6287, 6106, 5877, 5450, 6494, 4155, 4868, 5451, 3700, 5629, 4384, 6288, 6289, 5878, 3189,
4881, 6107, 6290, 6495, 4513, 6496, 4692, 4515, 4723, 5100, 3356, 6497, 6291, 3810, 4080, 5561,
3570, 4430, 5980, 6498, 4355, 5697, 6499, 4724, 6108, 6109, 3764, 4050, 5038, 5879, 4093, 3226,
6292, 5068, 5217, 4693, 3342, 5630, 3504, 4831, 4377, 4466, 4309, 5698, 4431, 5777, 6293, 5778,
4272, 3706, 6110, 5326, 3752, 4676, 5327, 4273, 5403, 4767, 5631, 6500, 5699, 5880, 3475, 5039,
6294, 5562, 5125, 4348, 4301, 4482, 4068, 5126, 4593, 5700, 3380, 3462, 5981, 5563, 3824, 5404,
4970, 5511, 3825, 4738, 6295, 6501, 5452, 4516, 6111, 5881, 5564, 6502, 6296, 5982, 6503, 4213,
4163, 3454, 6504, 6112, 4009, 4450, 6113, 4658, 6297, 6114, 3035, 6505, 6115, 3995, 4904, 4739,
4563, 4942, 4110, 5040, 3661, 3928, 5362, 3674, 6506, 5292, 3612, 4791, 5565, 4149, 5983, 5328,
5259, 5021, 4725, 4577, 4564, 4517, 4364, 6298, 5405, 4578, 5260, 4594, 4156, 4157, 5453, 3592,
3491, 6507, 5127, 5512, 4709, 4922, 5984, 5701, 4726, 4289, 6508, 4015, 6116, 5128, 4628, 3424,
4241, 5779, 6299, 4905, 6509, 6510, 5454, 5702, 5780, 6300, 4365, 4923, 3971, 6511, 5161, 3270,
3158, 5985, 4100, 867, 5129, 5703, 6117, 5363, 3695, 3301, 5513, 4467, 6118, 6512, 5455, 4232,
4242, 4629, 6513, 3959, 4478, 6514, 5514, 5329, 5986, 4850, 5162, 5566, 3846, 4694, 6119, 5456,
4869, 5781, 3779, 6301, 5704, 5987, 5515, 4710, 6302, 5882, 6120, 4392, 5364, 5705, 6515, 6121,
6516, 6517, 3736, 5988, 5457, 5989, 4695, 2457, 5883, 4551, 5782, 6303, 6304, 6305, 5130, 4971,
6122, 5163, 6123, 4870, 3263, 5365, 3150, 4871, 6518, 6306, 5783, 5069, 5706, 3513, 3498, 4409,
5330, 5632, 5366, 5458, 5459, 3991, 5990, 4502, 3324, 5991, 5784, 3696, 4518, 5633, 4119, 6519,
4630, 5634, 4417, 5707, 4832, 5992, 3418, 6124, 5993, 5567, 4768, 5218, 6520, 4595, 3458, 5367,
6125, 5635, 6126, 4202, 6521, 4740, 4924, 6307, 3981, 4069, 4385, 6308, 3883, 2675, 4051, 3834,
4302, 4483, 5568, 5994, 4972, 4101, 5368, 6309, 5164, 5884, 3922, 6127, 6522, 6523, 5261, 5460,
5187, 4164, 5219, 3538, 5516, 4111, 3524, 5995, 6310, 6311, 5369, 3181, 3386, 2484, 5188, 3464,
5569, 3627, 5708, 6524, 5406, 5165, 4677, 4492, 6312, 4872, 4851, 5885, 4468, 5996, 6313, 5709,
5710, 6128, 2470, 5886, 6314, 5293, 4882, 5785, 3325, 5461, 5101, 6129, 5711, 5786, 6525, 4906,
6526, 6527, 4418, 5887, 5712, 4808, 2907, 3701, 5713, 5888, 6528, 3765, 5636, 5331, 6529, 6530,
3593, 5889, 3637, 4943, 3692, 5714, 5787, 4925, 6315, 6130, 5462, 4405, 6131, 6132, 6316, 5262,
6531, 6532, 5715, 3859, 5716, 5070, 4696, 5102, 3929, 5788, 3987, 4792, 5997, 6533, 6534, 3920,
4809, 5000, 5998, 6535, 2974, 5370, 6317, 5189, 5263, 5717, 3826, 6536, 3953, 5001, 4883, 3190,
5463, 5890, 4973, 5999, 4741, 6133, 6134, 3607, 5570, 6000, 4711, 3362, 3630, 4552, 5041, 6318,
6001, 2950, 2953, 5637, 4646, 5371, 4944, 6002, 2044, 4120, 3429, 6319, 6537, 5103, 4833, 6538,
6539, 4884, 4647, 3884, 6003, 6004, 4758, 3835, 5220, 5789, 4565, 5407, 6540, 6135, 5294, 4697,
4852, 6320, 6321, 3206, 4907, 6541, 6322, 4945, 6542, 6136, 6543, 6323, 6005, 4631, 3519, 6544,
5891, 6545, 5464, 3784, 5221, 6546, 5571, 4659, 6547, 6324, 6137, 5190, 6548, 3853, 6549, 4016,
4834, 3954, 6138, 5332, 3827, 4017, 3210, 3546, 4469, 5408, 5718, 3505, 4648, 5790, 5131, 5638,
5791, 5465, 4727, 4318, 6325, 6326, 5792, 4553, 4010, 4698, 3439, 4974, 3638, 4335, 3085, 6006,
5104, 5042, 5166, 5892, 5572, 6327, 4356, 4519, 5222, 5573, 5333, 5793, 5043, 6550, 5639, 5071,
4503, 6328, 6139, 6551, 6140, 3914, 3901, 5372, 6007, 5640, 4728, 4793, 3976, 3836, 4885, 6552,
4127, 6553, 4451, 4102, 5002, 6554, 3686, 5105, 6555, 5191, 5072, 5295, 4611, 5794, 5296, 6556,
5893, 5264, 5894, 4975, 5466, 5265, 4699, 4976, 4370, 4056, 3492, 5044, 4886, 6557, 5795, 4432,
4769, 4357, 5467, 3940, 4660, 4290, 6141, 4484, 4770, 4661, 3992, 6329, 4025, 4662, 5022, 4632,
4835, 4070, 5297, 4663, 4596, 5574, 5132, 5409, 5895, 6142, 4504, 5192, 4664, 5796, 5896, 3885,
5575, 5797, 5023, 4810, 5798, 3732, 5223, 4712, 5298, 4084, 5334, 5468, 6143, 4052, 4053, 4336,
4977, 4794, 6558, 5335, 4908, 5576, 5224, 4233, 5024, 4128, 5469, 5225, 4873, 6008, 5045, 4729,
4742, 4633, 3675, 4597, 6559, 5897, 5133, 5577, 5003, 5641, 5719, 6330, 6560, 3017, 2382, 3854,
4406, 4811, 6331, 4393, 3964, 4946, 6561, 2420, 3722, 6562, 4926, 4378, 3247, 1736, 4442, 6332,
5134, 6333, 5226, 3996, 2918, 5470, 4319, 4003, 4598, 4743, 4744, 4485, 3785, 3902, 5167, 5004,
5373, 4394, 5898, 6144, 4874, 1793, 3997, 6334, 4085, 4214, 5106, 5642, 4909, 5799, 6009, 4419,
4189, 3330, 5899, 4165, 4420, 5299, 5720, 5227, 3347, 6145, 4081, 6335, 2876, 3930, 6146, 3293,
3786, 3910, 3998, 5900, 5300, 5578, 2840, 6563, 5901, 5579, 6147, 3531, 5374, 6564, 6565, 5580,
4759, 5375, 6566, 6148, 3559, 5643, 6336, 6010, 5517, 6337, 6338, 5721, 5902, 3873, 6011, 6339,
6567, 5518, 3868, 3649, 5722, 6568, 4771, 4947, 6569, 6149, 4812, 6570, 2853, 5471, 6340, 6341,
5644, 4795, 6342, 6012, 5723, 6343, 5724, 6013, 4349, 6344, 3160, 6150, 5193, 4599, 4514, 4493,
5168, 4320, 6345, 4927, 3666, 4745, 5169, 5903, 5005, 4928, 6346, 5725, 6014, 4730, 4203, 5046,
4948, 3395, 5170, 6015, 4150, 6016, 5726, 5519, 6347, 5047, 3550, 6151, 6348, 4197, 4310, 5904,
6571, 5581, 2965, 6152, 4978, 3960, 4291, 5135, 6572, 5301, 5727, 4129, 4026, 5905, 4853, 5728,
5472, 6153, 6349, 4533, 2700, 4505, 5336, 4678, 3583, 5073, 2994, 4486, 3043, 4554, 5520, 6350,
6017, 5800, 4487, 6351, 3931, 4103, 5376, 6352, 4011, 4321, 4311, 4190, 5136, 6018, 3988, 3233,
4350, 5906, 5645, 4198, 6573, 5107, 3432, 4191, 3435, 5582, 6574, 4139, 5410, 6353, 5411, 3944,
5583, 5074, 3198, 6575, 6354, 4358, 6576, 5302, 4600, 5584, 5194, 5412, 6577, 6578, 5585, 5413,
5303, 4248, 5414, 3879, 4433, 6579, 4479, 5025, 4854, 5415, 6355, 4760, 4772, 3683, 2978, 4700,
3797, 4452, 3965, 3932, 3721, 4910, 5801, 6580, 5195, 3551, 5907, 3221, 3471, 3029, 6019, 3999,
5908, 5909, 5266, 5267, 3444, 3023, 3828, 3170, 4796, 5646, 4979, 4259, 6356, 5647, 5337, 3694,
6357, 5648, 5338, 4520, 4322, 5802, 3031, 3759, 4071, 6020, 5586, 4836, 4386, 5048, 6581, 3571,
4679, 4174, 4949, 6154, 4813, 3787, 3402, 3822, 3958, 3215, 3552, 5268, 4387, 3933, 4950, 4359,
6021, 5910, 5075, 3579, 6358, 4234, 4566, 5521, 6359, 3613, 5049, 6022, 5911, 3375, 3702, 3178,
4911, 5339, 4521, 6582, 6583, 4395, 3087, 3811, 5377, 6023, 6360, 6155, 4027, 5171, 5649, 4421,
4249, 2804, 6584, 2270, 6585, 4000, 4235, 3045, 6156, 5137, 5729, 4140, 4312, 3886, 6361, 4330,
6157, 4215, 6158, 3500, 3676, 4929, 4331, 3713, 4930, 5912, 4265, 3776, 3368, 5587, 4470, 4855,
3038, 4980, 3631, 6159, 6160, 4132, 4680, 6161, 6362, 3923, 4379, 5588, 4255, 6586, 4121, 6587,
6363, 4649, 6364, 3288, 4773, 4774, 6162, 6024, 6365, 3543, 6588, 4274, 3107, 3737, 5050, 5803,
4797, 4522, 5589, 5051, 5730, 3714, 4887, 5378, 4001, 4523, 6163, 5026, 5522, 4701, 4175, 2791,
3760, 6589, 5473, 4224, 4133, 3847, 4814, 4815, 4775, 3259, 5416, 6590, 2738, 6164, 6025, 5304,
3733, 5076, 5650, 4816, 5590, 6591, 6165, 6592, 3934, 5269, 6593, 3396, 5340, 6594, 5804, 3445,
3602, 4042, 4488, 5731, 5732, 3525, 5591, 4601, 5196, 6166, 6026, 5172, 3642, 4612, 3202, 4506,
4798, 6366, 3818, 5108, 4303, 5138, 5139, 4776, 3332, 4304, 2915, 3415, 4434, 5077, 5109, 4856,
2879, 5305, 4817, 6595, 5913, 3104, 3144, 3903, 4634, 5341, 3133, 5110, 5651, 5805, 6167, 4057,
5592, 2945, 4371, 5593, 6596, 3474, 4182, 6367, 6597, 6168, 4507, 4279, 6598, 2822, 6599, 4777,
4713, 5594, 3829, 6169, 3887, 5417, 6170, 3653, 5474, 6368, 4216, 2971, 5228, 3790, 4579, 6369,
5733, 6600, 6601, 4951, 4746, 4555, 6602, 5418, 5475, 6027, 3400, 4665, 5806, 6171, 4799, 6028,
5052, 6172, 3343, 4800, 4747, 5006, 6370, 4556, 4217, 5476, 4396, 5229, 5379, 5477, 3839, 5914,
5652, 5807, 4714, 3068, 4635, 5808, 6173, 5342, 4192, 5078, 5419, 5523, 5734, 6174, 4557, 6175,
4602, 6371, 6176, 6603, 5809, 6372, 5735, 4260, 3869, 5111, 5230, 6029, 5112, 6177, 3126, 4681,
5524, 5915, 2706, 3563, 4748, 3130, 6178, 4018, 5525, 6604, 6605, 5478, 4012, 4837, 6606, 4534,
4193, 5810, 4857, 3615, 5479, 6030, 4082, 3697, 3539, 4086, 5270, 3662, 4508, 4931, 5916, 4912,
5811, 5027, 3888, 6607, 4397, 3527, 3302, 3798, 2775, 2921, 2637, 3966, 4122, 4388, 4028, 4054,
1633, 4858, 5079, 3024, 5007, 3982, 3412, 5736, 6608, 3426, 3236, 5595, 3030, 6179, 3427, 3336,
3279, 3110, 6373, 3874, 3039, 5080, 5917, 5140, 4489, 3119, 6374, 5812, 3405, 4494, 6031, 4666,
4141, 6180, 4166, 6032, 5813, 4981, 6609, 5081, 4422, 4982, 4112, 3915, 5653, 3296, 3983, 6375,
4266, 4410, 5654, 6610, 6181, 3436, 5082, 6611, 5380, 6033, 3819, 5596, 4535, 5231, 5306, 5113,
6612, 4952, 5918, 4275, 3113, 6613, 6376, 6182, 6183, 5814, 3073, 4731, 4838, 5008, 3831, 6614,
4888, 3090, 3848, 4280, 5526, 5232, 3014, 5655, 5009, 5737, 5420, 5527, 6615, 5815, 5343, 5173,
5381, 4818, 6616, 3151, 4953, 6617, 5738, 2796, 3204, 4360, 2989, 4281, 5739, 5174, 5421, 5197,
3132, 5141, 3849, 5142, 5528, 5083, 3799, 3904, 4839, 5480, 2880, 4495, 3448, 6377, 6184, 5271,
5919, 3771, 3193, 6034, 6035, 5920, 5010, 6036, 5597, 6037, 6378, 6038, 3106, 5422, 6618, 5423,
5424, 4142, 6619, 4889, 5084, 4890, 4313, 5740, 6620, 3437, 5175, 5307, 5816, 4199, 5198, 5529,
5817, 5199, 5656, 4913, 5028, 5344, 3850, 6185, 2955, 5272, 5011, 5818, 4567, 4580, 5029, 5921,
3616, 5233, 6621, 6622, 6186, 4176, 6039, 6379, 6380, 3352, 5200, 5273, 2908, 5598, 5234, 3837,
5308, 6623, 6624, 5819, 4496, 4323, 5309, 5201, 6625, 6626, 4983, 3194, 3838, 4167, 5530, 5922,
5274, 6381, 6382, 3860, 3861, 5599, 3333, 4292, 4509, 6383, 3553, 5481, 5820, 5531, 4778, 6187,
3955, 3956, 4324, 4389, 4218, 3945, 4325, 3397, 2681, 5923, 4779, 5085, 4019, 5482, 4891, 5382,
5383, 6040, 4682, 3425, 5275, 4094, 6627, 5310, 3015, 5483, 5657, 4398, 5924, 3168, 4819, 6628,
5925, 6629, 5532, 4932, 4613, 6041, 6630, 4636, 6384, 4780, 4204, 5658, 4423, 5821, 3989, 4683,
5822, 6385, 4954, 6631, 5345, 6188, 5425, 5012, 5384, 3894, 6386, 4490, 4104, 6632, 5741, 5053,
6633, 5823, 5926, 5659, 5660, 5927, 6634, 5235, 5742, 5824, 4840, 4933, 4820, 6387, 4859, 5928,
4955, 6388, 4143, 3584, 5825, 5346, 5013, 6635, 5661, 6389, 5014, 5484, 5743, 4337, 5176, 5662,
6390, 2836, 6391, 3268, 6392, 6636, 6042, 5236, 6637, 4158, 6638, 5744, 5663, 4471, 5347, 3663,
4123, 5143, 4293, 3895, 6639, 6640, 5311, 5929, 5826, 3800, 6189, 6393, 6190, 5664, 5348, 3554,
3594, 4749, 4603, 6641, 5385, 4801, 6043, 5827, 4183, 6642, 5312, 5426, 4761, 6394, 5665, 6191,
4715, 2669, 6643, 6644, 5533, 3185, 5427, 5086, 5930, 5931, 5386, 6192, 6044, 6645, 4781, 4013,
5745, 4282, 4435, 5534, 4390, 4267, 6045, 5746, 4984, 6046, 2743, 6193, 3501, 4087, 5485, 5932,
5428, 4184, 4095, 5747, 4061, 5054, 3058, 3862, 5933, 5600, 6646, 5144, 3618, 6395, 3131, 5055,
5313, 6396, 4650, 4956, 3855, 6194, 3896, 5202, 4985, 4029, 4225, 6195, 6647, 5828, 5486, 5829,
3589, 3002, 6648, 6397, 4782, 5276, 6649, 6196, 6650, 4105, 3803, 4043, 5237, 5830, 6398, 4096,
3643, 6399, 3528, 6651, 4453, 3315, 4637, 6652, 3984, 6197, 5535, 3182, 3339, 6653, 3096, 2660,
6400, 6654, 3449, 5934, 4250, 4236, 6047, 6401, 5831, 6655, 5487, 3753, 4062, 5832, 6198, 6199,
6656, 3766, 6657, 3403, 4667, 6048, 6658, 4338, 2897, 5833, 3880, 2797, 3780, 4326, 6659, 5748,
5015, 6660, 5387, 4351, 5601, 4411, 6661, 3654, 4424, 5935, 4339, 4072, 5277, 4568, 5536, 6402,
6662, 5238, 6663, 5349, 5203, 6200, 5204, 6201, 5145, 4536, 5016, 5056, 4762, 5834, 4399, 4957,
6202, 6403, 5666, 5749, 6664, 4340, 6665, 5936, 5177, 5667, 6666, 6667, 3459, 4668, 6404, 6668,
6669, 4543, 6203, 6670, 4276, 6405, 4480, 5537, 6671, 4614, 5205, 5668, 6672, 3348, 2193, 4763,
6406, 6204, 5937, 5602, 4177, 5669, 3419, 6673, 4020, 6205, 4443, 4569, 5388, 3715, 3639, 6407,
6049, 4058, 6206, 6674, 5938, 4544, 6050, 4185, 4294, 4841, 4651, 4615, 5488, 6207, 6408, 6051,
5178, 3241, 3509, 5835, 6208, 4958, 5836, 4341, 5489, 5278, 6209, 2823, 5538, 5350, 5206, 5429,
6675, 4638, 4875, 4073, 3516, 4684, 4914, 4860, 5939, 5603, 5389, 6052, 5057, 3237, 5490, 3791,
6676, 6409, 6677, 4821, 4915, 4106, 5351, 5058, 4243, 5539, 4244, 5604, 4842, 4916, 5239, 3028,
3716, 5837, 5114, 5605, 5390, 5940, 5430, 6210, 4332, 6678, 5540, 4732, 3667, 3840, 6053, 4305,
3408, 5670, 5541, 6410, 2744, 5240, 5750, 6679, 3234, 5606, 6680, 5607, 5671, 3608, 4283, 4159,
4400, 5352, 4783, 6681, 6411, 6682, 4491, 4802, 6211, 6412, 5941, 6413, 6414, 5542, 5751, 6683,
4669, 3734, 5942, 6684, 6415, 5943, 5059, 3328, 4670, 4144, 4268, 6685, 6686, 6687, 6688, 4372,
3603, 6689, 5944, 5491, 4373, 3440, 6416, 5543, 4784, 4822, 5608, 3792, 4616, 5838, 5672, 3514,
5391, 6417, 4892, 6690, 4639, 6691, 6054, 5673, 5839, 6055, 6692, 6056, 5392, 6212, 4038, 5544,
5674, 4497, 6057, 6693, 5840, 4284, 5675, 4021, 4545, 5609, 6418, 4454, 6419, 6213, 4113, 4472,
5314, 3738, 5087, 5279, 4074, 5610, 4959, 4063, 3179, 4750, 6058, 6420, 6214, 3476, 4498, 4716,
5431, 4960, 4685, 6215, 5241, 6694, 6421, 6216, 6695, 5841, 5945, 6422, 3748, 5946, 5179, 3905,
5752, 5545, 5947, 4374, 6217, 4455, 6423, 4412, 6218, 4803, 5353, 6696, 3832, 5280, 6219, 4327,
4702, 6220, 6221, 6059, 4652, 5432, 6424, 3749, 4751, 6425, 5753, 4986, 5393, 4917, 5948, 5030,
5754, 4861, 4733, 6426, 4703, 6697, 6222, 4671, 5949, 4546, 4961, 5180, 6223, 5031, 3316, 5281,
6698, 4862, 4295, 4934, 5207, 3644, 6427, 5842, 5950, 6428, 6429, 4570, 5843, 5282, 6430, 6224,
5088, 3239, 6060, 6699, 5844, 5755, 6061, 6431, 2701, 5546, 6432, 5115, 5676, 4039, 3993, 3327,
4752, 4425, 5315, 6433, 3941, 6434, 5677, 4617, 4604, 3074, 4581, 6225, 5433, 6435, 6226, 6062,
4823, 5756, 5116, 6227, 3717, 5678, 4717, 5845, 6436, 5679, 5846, 6063, 5847, 6064, 3977, 3354,
6437, 3863, 5117, 6228, 5547, 5394, 4499, 4524, 6229, 4605, 6230, 4306, 4500, 6700, 5951, 6065,
3693, 5952, 5089, 4366, 4918, 6701, 6231, 5548, 6232, 6702, 6438, 4704, 5434, 6703, 6704, 5953,
4168, 6705, 5680, 3420, 6706, 5242, 4407, 6066, 3812, 5757, 5090, 5954, 4672, 4525, 3481, 5681,
4618, 5395, 5354, 5316, 5955, 6439, 4962, 6707, 4526, 6440, 3465, 4673, 6067, 6441, 5682, 6708,
5435, 5492, 5758, 5683, 4619, 4571, 4674, 4804, 4893, 4686, 5493, 4753, 6233, 6068, 4269, 6442,
6234, 5032, 4705, 5146, 5243, 5208, 5848, 6235, 6443, 4963, 5033, 4640, 4226, 6236, 5849, 3387,
6444, 6445, 4436, 4437, 5850, 4843, 5494, 4785, 4894, 6709, 4361, 6710, 5091, 5956, 3331, 6237,
4987, 5549, 6069, 6711, 4342, 3517, 4473, 5317, 6070, 6712, 6071, 4706, 6446, 5017, 5355, 6713,
6714, 4988, 5436, 6447, 4734, 5759, 6715, 4735, 4547, 4456, 4754, 6448, 5851, 6449, 6450, 3547,
5852, 5318, 6451, 6452, 5092, 4205, 6716, 6238, 4620, 4219, 5611, 6239, 6072, 4481, 5760, 5957,
5958, 4059, 6240, 6453, 4227, 4537, 6241, 5761, 4030, 4186, 5244, 5209, 3761, 4457, 4876, 3337,
5495, 5181, 6242, 5959, 5319, 5612, 5684, 5853, 3493, 5854, 6073, 4169, 5613, 5147, 4895, 6074,
5210, 6717, 5182, 6718, 3830, 6243, 2798, 3841, 6075, 6244, 5855, 5614, 3604, 4606, 5496, 5685,
5118, 5356, 6719, 6454, 5960, 5357, 5961, 6720, 4145, 3935, 4621, 5119, 5962, 4261, 6721, 6455,
4786, 5963, 4375, 4582, 6245, 6246, 6247, 6076, 5437, 4877, 5856, 3376, 4380, 6248, 4160, 6722,
5148, 6456, 5211, 6457, 6723, 4718, 6458, 6724, 6249, 5358, 4044, 3297, 6459, 6250, 5857, 5615,
5497, 5245, 6460, 5498, 6725, 6251, 6252, 5550, 3793, 5499, 2959, 5396, 6461, 6462, 4572, 5093,
5500, 5964, 3806, 4146, 6463, 4426, 5762, 5858, 6077, 6253, 4755, 3967, 4220, 5965, 6254, 4989,
5501, 6464, 4352, 6726, 6078, 4764, 2290, 5246, 3906, 5438, 5283, 3767, 4964, 2861, 5763, 5094,
6255, 6256, 4622, 5616, 5859, 5860, 4707, 6727, 4285, 4708, 4824, 5617, 6257, 5551, 4787, 5212,
4965, 4935, 4687, 6465, 6728, 6466, 5686, 6079, 3494, 4413, 2995, 5247, 5966, 5618, 6729, 5967,
5764, 5765, 5687, 5502, 6730, 6731, 6080, 5397, 6467, 4990, 6258, 6732, 4538, 5060, 5619, 6733,
4719, 5688, 5439, 5018, 5149, 5284, 5503, 6734, 6081, 4607, 6259, 5120, 3645, 5861, 4583, 6260,
4584, 4675, 5620, 4098, 5440, 6261, 4863, 2379, 3306, 4585, 5552, 5689, 4586, 5285, 6735, 4864,
6736, 5286, 6082, 6737, 4623, 3010, 4788, 4381, 4558, 5621, 4587, 4896, 3698, 3161, 5248, 4353,
4045, 6262, 3754, 5183, 4588, 6738, 6263, 6739, 6740, 5622, 3936, 6741, 6468, 6742, 6264, 5095,
6469, 4991, 5968, 6743, 4992, 6744, 6083, 4897, 6745, 4256, 5766, 4307, 3108, 3968, 4444, 5287,
3889, 4343, 6084, 4510, 6085, 4559, 6086, 4898, 5969, 6746, 5623, 5061, 4919, 5249, 5250, 5504,
5441, 6265, 5320, 4878, 3242, 5862, 5251, 3428, 6087, 6747, 4237, 5624, 5442, 6266, 5553, 4539,
6748, 2585, 3533, 5398, 4262, 6088, 5150, 4736, 4438, 6089, 6267, 5505, 4966, 6749, 6268, 6750,
6269, 5288, 5554, 3650, 6090, 6091, 4624, 6092, 5690, 6751, 5863, 4270, 5691, 4277, 5555, 5864,
6752, 5692, 4720, 4865, 6470, 5151, 4688, 4825, 6753, 3094, 6754, 6471, 3235, 4653, 6755, 5213,
5399, 6756, 3201, 4589, 5865, 4967, 6472, 5866, 6473, 5019, 3016, 6757, 5321, 4756, 3957, 4573,
6093, 4993, 5767, 4721, 6474, 6758, 5625, 6759, 4458, 6475, 6270, 6760, 5556, 4994, 5214, 5252,
6271, 3875, 5768, 6094, 5034, 5506, 4376, 5769, 6761, 2120, 6476, 5253, 5770, 6762, 5771, 5970,
3990, 5971, 5557, 5558, 5772, 6477, 6095, 2787, 4641, 5972, 5121, 6096, 6097, 6272, 6763, 3703,
5867, 5507, 6273, 4206, 6274, 4789, 6098, 6764, 3619, 3646, 3833, 3804, 2394, 3788, 4936, 3978,
4866, 4899, 6099, 6100, 5559, 6478, 6765, 3599, 5868, 6101, 5869, 5870, 6275, 6766, 4527, 6767)
| gb2312_typical_distribution_ratio = 0.9
gb2312_table_size = 3760
gb2312_char_to_freq_order = (1671, 749, 1443, 2364, 3924, 3807, 2330, 3921, 1704, 3463, 2691, 1511, 1515, 572, 3191, 2205, 2361, 224, 2558, 479, 1711, 963, 3162, 440, 4060, 1905, 2966, 2947, 3580, 2647, 3961, 3842, 2204, 869, 4207, 970, 2678, 5626, 2944, 2956, 1479, 4048, 514, 3595, 588, 1346, 2820, 3409, 249, 4088, 1746, 1873, 2047, 1774, 581, 1813, 358, 1174, 3590, 1014, 1561, 4844, 2245, 670, 1636, 3112, 889, 1286, 953, 556, 2327, 3060, 1290, 3141, 613, 185, 3477, 1367, 850, 3820, 1715, 2428, 2642, 2303, 2732, 3041, 2562, 2648, 3566, 3946, 1349, 388, 3098, 2091, 1360, 3585, 152, 1687, 1539, 738, 1559, 59, 1232, 2925, 2267, 1388, 1249, 1741, 1679, 2960, 151, 1566, 1125, 1352, 4271, 924, 4296, 385, 3166, 4459, 310, 1245, 2850, 70, 3285, 2729, 3534, 3575, 2398, 3298, 3466, 1960, 2265, 217, 3647, 864, 1909, 2084, 4401, 2773, 1010, 3269, 5152, 853, 3051, 3121, 1244, 4251, 1895, 364, 1499, 1540, 2313, 1180, 3655, 2268, 562, 715, 2417, 3061, 544, 336, 3768, 2380, 1752, 4075, 950, 280, 2425, 4382, 183, 2759, 3272, 333, 4297, 2155, 1688, 2356, 1444, 1039, 4540, 736, 1177, 3349, 2443, 2368, 2144, 2225, 565, 196, 1482, 3406, 927, 1335, 4147, 692, 878, 1311, 1653, 3911, 3622, 1378, 4200, 1840, 2969, 3149, 2126, 1816, 2534, 1546, 2393, 2760, 737, 2494, 13, 447, 245, 2747, 38, 2765, 2129, 2589, 1079, 606, 360, 471, 3755, 2890, 404, 848, 699, 1785, 1236, 370, 2221, 1023, 3746, 2074, 2026, 2023, 2388, 1581, 2119, 812, 1141, 3091, 2536, 1519, 804, 2053, 406, 1596, 1090, 784, 548, 4414, 1806, 2264, 2936, 1100, 343, 4114, 5096, 622, 3358, 743, 3668, 1510, 1626, 5020, 3567, 2513, 3195, 4115, 5627, 2489, 2991, 24, 2065, 2697, 1087, 2719, 48, 1634, 315, 68, 985, 2052, 198, 2239, 1347, 1107, 1439, 597, 2366, 2172, 871, 3307, 919, 2487, 2790, 1867, 236, 2570, 1413, 3794, 906, 3365, 3381, 1701, 1982, 1818, 1524, 2924, 1205, 616, 2586, 2072, 2004, 575, 253, 3099, 32, 1365, 1182, 197, 1714, 2454, 1201, 554, 3388, 3224, 2748, 756, 2587, 250, 2567, 1507, 1517, 3529, 1922, 2761, 2337, 3416, 1961, 1677, 2452, 2238, 3153, 615, 911, 1506, 1474, 2495, 1265, 1906, 2749, 3756, 3280, 2161, 898, 2714, 1759, 3450, 2243, 2444, 563, 26, 3286, 2266, 3769, 3344, 2707, 3677, 611, 1402, 531, 1028, 2871, 4548, 1375, 261, 2948, 835, 1190, 4134, 353, 840, 2684, 1900, 3082, 1435, 2109, 1207, 1674, 329, 1872, 2781, 4055, 2686, 2104, 608, 3318, 2423, 2957, 2768, 1108, 3739, 3512, 3271, 3985, 2203, 1771, 3520, 1418, 2054, 1681, 1153, 225, 1627, 2929, 162, 2050, 2511, 3687, 1954, 124, 1859, 2431, 1684, 3032, 2894, 585, 4805, 3969, 2869, 2704, 2088, 2032, 2095, 3656, 2635, 4362, 2209, 256, 518, 2042, 2105, 3777, 3657, 643, 2298, 1148, 1779, 190, 989, 3544, 414, 11, 2135, 2063, 2979, 1471, 403, 3678, 126, 770, 1563, 671, 2499, 3216, 2877, 600, 1179, 307, 2805, 4937, 1268, 1297, 2694, 252, 4032, 1448, 1494, 1331, 1394, 127, 2256, 222, 1647, 1035, 1481, 3056, 1915, 1048, 873, 3651, 210, 33, 1608, 2516, 200, 1520, 415, 102, 0, 3389, 1287, 817, 91, 3299, 2940, 836, 1814, 549, 2197, 1396, 1669, 2987, 3582, 2297, 2848, 4528, 1070, 687, 20, 1819, 121, 1552, 1364, 1461, 1968, 2617, 3540, 2824, 2083, 177, 948, 4938, 2291, 110, 4549, 2066, 648, 3359, 1755, 2110, 2114, 4642, 4845, 1693, 3937, 3308, 1257, 1869, 2123, 208, 1804, 3159, 2992, 2531, 2549, 3361, 2418, 1350, 2347, 2800, 2568, 1291, 2036, 2680, 72, 842, 1990, 212, 1233, 1154, 1586, 75, 2027, 3410, 4900, 1823, 1337, 2710, 2676, 728, 2810, 1522, 3026, 4995, 157, 755, 1050, 4022, 710, 785, 1936, 2194, 2085, 1406, 2777, 2400, 150, 1250, 4049, 1206, 807, 1910, 534, 529, 3309, 1721, 1660, 274, 39, 2827, 661, 2670, 1578, 925, 3248, 3815, 1094, 4278, 4901, 4252, 41, 1150, 3747, 2572, 2227, 4501, 3658, 4902, 3813, 3357, 3617, 2884, 2258, 887, 538, 4187, 3199, 1294, 2439, 3042, 2329, 2343, 2497, 1255, 107, 543, 1527, 521, 3478, 3568, 194, 5062, 15, 961, 3870, 1241, 1192, 2664, 66, 5215, 3260, 2111, 1295, 1127, 2152, 3805, 4135, 901, 1164, 1976, 398, 1278, 530, 1460, 748, 904, 1054, 1966, 1426, 53, 2909, 509, 523, 2279, 1534, 536, 1019, 239, 1685, 460, 2353, 673, 1065, 2401, 3600, 4298, 2272, 1272, 2363, 284, 1753, 3679, 4064, 1695, 81, 815, 2677, 2757, 2731, 1386, 859, 500, 4221, 2190, 2566, 757, 1006, 2519, 2068, 1166, 1455, 337, 2654, 3203, 1863, 1682, 1914, 3025, 1252, 1409, 1366, 847, 714, 2834, 2038, 3209, 964, 2970, 1901, 885, 2553, 1078, 1756, 3049, 301, 1572, 3326, 688, 2130, 1996, 2429, 1805, 1648, 2930, 3421, 2750, 3652, 3088, 262, 1158, 1254, 389, 1641, 1812, 526, 1719, 923, 2073, 1073, 1902, 468, 489, 4625, 1140, 857, 2375, 3070, 3319, 2863, 380, 116, 1328, 2693, 1161, 2244, 273, 1212, 1884, 2769, 3011, 1775, 1142, 461, 3066, 1200, 2147, 2212, 790, 702, 2695, 4222, 1601, 1058, 434, 2338, 5153, 3640, 67, 2360, 4099, 2502, 618, 3472, 1329, 416, 1132, 830, 2782, 1807, 2653, 3211, 3510, 1662, 192, 2124, 296, 3979, 1739, 1611, 3684, 23, 118, 324, 446, 1239, 1225, 293, 2520, 3814, 3795, 2535, 3116, 17, 1074, 467, 2692, 2201, 387, 2922, 45, 1326, 3055, 1645, 3659, 2817, 958, 243, 1903, 2320, 1339, 2825, 1784, 3289, 356, 576, 865, 2315, 2381, 3377, 3916, 1088, 3122, 1713, 1655, 935, 628, 4689, 1034, 1327, 441, 800, 720, 894, 1979, 2183, 1528, 5289, 2702, 1071, 4046, 3572, 2399, 1571, 3281, 79, 761, 1103, 327, 134, 758, 1899, 1371, 1615, 879, 442, 215, 2605, 2579, 173, 2048, 2485, 1057, 2975, 3317, 1097, 2253, 3801, 4263, 1403, 1650, 2946, 814, 4968, 3487, 1548, 2644, 1567, 1285, 2, 295, 2636, 97, 946, 3576, 832, 141, 4257, 3273, 760, 3821, 3521, 3156, 2607, 949, 1024, 1733, 1516, 1803, 1920, 2125, 2283, 2665, 3180, 1501, 2064, 3560, 2171, 1592, 803, 3518, 1416, 732, 3897, 4258, 1363, 1362, 2458, 119, 1427, 602, 1525, 2608, 1605, 1639, 3175, 694, 3064, 10, 465, 76, 2000, 4846, 4208, 444, 3781, 1619, 3353, 2206, 1273, 3796, 740, 2483, 320, 1723, 2377, 3660, 2619, 1359, 1137, 1762, 1724, 2345, 2842, 1850, 1862, 912, 821, 1866, 612, 2625, 1735, 2573, 3369, 1093, 844, 89, 937, 930, 1424, 3564, 2413, 2972, 1004, 3046, 3019, 2011, 711, 3171, 1452, 4178, 428, 801, 1943, 432, 445, 2811, 206, 4136, 1472, 730, 349, 73, 397, 2802, 2547, 998, 1637, 1167, 789, 396, 3217, 154, 1218, 716, 1120, 1780, 2819, 4826, 1931, 3334, 3762, 2139, 1215, 2627, 552, 3664, 3628, 3232, 1405, 2383, 3111, 1356, 2652, 3577, 3320, 3101, 1703, 640, 1045, 1370, 1246, 4996, 371, 1575, 2436, 1621, 2210, 984, 4033, 1734, 2638, 16, 4529, 663, 2755, 3255, 1451, 3917, 2257, 1253, 1955, 2234, 1263, 2951, 214, 1229, 617, 485, 359, 1831, 1969, 473, 2310, 750, 2058, 165, 80, 2864, 2419, 361, 4344, 2416, 2479, 1134, 796, 3726, 1266, 2943, 860, 2715, 938, 390, 2734, 1313, 1384, 248, 202, 877, 1064, 2854, 522, 3907, 279, 1602, 297, 2357, 395, 3740, 137, 2075, 944, 4089, 2584, 1267, 3802, 62, 1533, 2285, 178, 176, 780, 2440, 201, 3707, 590, 478, 1560, 4354, 2117, 1075, 30, 74, 4643, 4004, 1635, 1441, 2745, 776, 2596, 238, 1077, 1692, 1912, 2844, 605, 499, 1742, 3947, 241, 3053, 980, 1749, 936, 2640, 4511, 2582, 515, 1543, 2162, 5322, 2892, 2993, 890, 2148, 1924, 665, 1827, 3581, 1032, 968, 3163, 339, 1044, 1896, 270, 583, 1791, 1720, 4367, 1194, 3488, 3669, 43, 2523, 1657, 163, 2167, 290, 1209, 1622, 3378, 550, 634, 2508, 2510, 695, 2634, 2384, 2512, 1476, 1414, 220, 1469, 2341, 2138, 2852, 3183, 2900, 4939, 2865, 3502, 1211, 3680, 854, 3227, 1299, 2976, 3172, 186, 2998, 1459, 443, 1067, 3251, 1495, 321, 1932, 3054, 909, 753, 1410, 1828, 436, 2441, 1119, 1587, 3164, 2186, 1258, 227, 231, 1425, 1890, 3200, 3942, 247, 959, 725, 5254, 2741, 577, 2158, 2079, 929, 120, 174, 838, 2813, 591, 1115, 417, 2024, 40, 3240, 1536, 1037, 291, 4151, 2354, 632, 1298, 2406, 2500, 3535, 1825, 1846, 3451, 205, 1171, 345, 4238, 18, 1163, 811, 685, 2208, 1217, 425, 1312, 1508, 1175, 4308, 2552, 1033, 587, 1381, 3059, 2984, 3482, 340, 1316, 4023, 3972, 792, 3176, 519, 777, 4690, 918, 933, 4130, 2981, 3741, 90, 3360, 2911, 2200, 5184, 4550, 609, 3079, 2030, 272, 3379, 2736, 363, 3881, 1130, 1447, 286, 779, 357, 1169, 3350, 3137, 1630, 1220, 2687, 2391, 747, 1277, 3688, 2618, 2682, 2601, 1156, 3196, 5290, 4034, 3102, 1689, 3596, 3128, 874, 219, 2783, 798, 508, 1843, 2461, 269, 1658, 1776, 1392, 1913, 2983, 3287, 2866, 2159, 2372, 829, 4076, 46, 4253, 2873, 1889, 1894, 915, 1834, 1631, 2181, 2318, 298, 664, 2818, 3555, 2735, 954, 3228, 3117, 527, 3511, 2173, 681, 2712, 3033, 2247, 2346, 3467, 1652, 155, 2164, 3382, 113, 1994, 450, 899, 494, 994, 1237, 2958, 1875, 2336, 1926, 3727, 545, 1577, 1550, 633, 3473, 204, 1305, 3072, 2410, 1956, 2471, 707, 2134, 841, 2195, 2196, 2663, 3843, 1026, 4940, 990, 3252, 4997, 368, 1092, 437, 3212, 3258, 1933, 1829, 675, 2977, 2893, 412, 943, 3723, 4644, 3294, 3283, 2230, 2373, 5154, 2389, 2241, 2661, 2323, 1404, 2524, 593, 787, 677, 3008, 1275, 2059, 438, 2709, 2609, 2240, 2269, 2246, 1446, 36, 1568, 1373, 3892, 1574, 2301, 1456, 3962, 693, 2276, 5216, 2035, 1143, 2720, 1919, 1797, 1811, 2763, 4137, 2597, 1830, 1699, 1488, 1198, 2090, 424, 1694, 312, 3634, 3390, 4179, 3335, 2252, 1214, 561, 1059, 3243, 2295, 2561, 975, 5155, 2321, 2751, 3772, 472, 1537, 3282, 3398, 1047, 2077, 2348, 2878, 1323, 3340, 3076, 690, 2906, 51, 369, 170, 3541, 1060, 2187, 2688, 3670, 2541, 1083, 1683, 928, 3918, 459, 109, 4427, 599, 3744, 4286, 143, 2101, 2730, 2490, 82, 1588, 3036, 2121, 281, 1860, 477, 4035, 1238, 2812, 3020, 2716, 3312, 1530, 2188, 2055, 1317, 843, 636, 1808, 1173, 3495, 649, 181, 1002, 147, 3641, 1159, 2414, 3750, 2289, 2795, 813, 3123, 2610, 1136, 4368, 5, 3391, 4541, 2174, 420, 429, 1728, 754, 1228, 2115, 2219, 347, 2223, 2733, 735, 1518, 3003, 2355, 3134, 1764, 3948, 3329, 1888, 2424, 1001, 1234, 1972, 3321, 3363, 1672, 1021, 1450, 1584, 226, 765, 655, 2526, 3404, 3244, 2302, 3665, 731, 594, 2184, 319, 1576, 621, 658, 2656, 4299, 2099, 3864, 1279, 2071, 2598, 2739, 795, 3086, 3699, 3908, 1707, 2352, 2402, 1382, 3136, 2475, 1465, 4847, 3496, 3865, 1085, 3004, 2591, 1084, 213, 2287, 1963, 3565, 2250, 822, 793, 4574, 3187, 1772, 1789, 3050, 595, 1484, 1959, 2770, 1080, 2650, 456, 422, 2996, 940, 3322, 4328, 4345, 3092, 2742, 965, 2784, 739, 4124, 952, 1358, 2498, 2949, 2565, 332, 2698, 2378, 660, 2260, 2473, 4194, 3856, 2919, 535, 1260, 2651, 1208, 1428, 1300, 1949, 1303, 2942, 433, 2455, 2450, 1251, 1946, 614, 1269, 641, 1306, 1810, 2737, 3078, 2912, 564, 2365, 1419, 1415, 1497, 4460, 2367, 2185, 1379, 3005, 1307, 3218, 2175, 1897, 3063, 682, 1157, 4040, 4005, 1712, 1160, 1941, 1399, 394, 402, 2952, 1573, 1151, 2986, 2404, 862, 299, 2033, 1489, 3006, 346, 171, 2886, 3401, 1726, 2932, 168, 2533, 47, 2507, 1030, 3735, 1145, 3370, 1395, 1318, 1579, 3609, 4560, 2857, 4116, 1457, 2529, 1965, 504, 1036, 2690, 2988, 2405, 745, 5871, 849, 2397, 2056, 3081, 863, 2359, 3857, 2096, 99, 1397, 1769, 2300, 4428, 1643, 3455, 1978, 1757, 3718, 1440, 35, 4879, 3742, 1296, 4228, 2280, 160, 5063, 1599, 2013, 166, 520, 3479, 1646, 3345, 3012, 490, 1937, 1545, 1264, 2182, 2505, 1096, 1188, 1369, 1436, 2421, 1667, 2792, 2460, 1270, 2122, 727, 3167, 2143, 806, 1706, 1012, 1800, 3037, 960, 2218, 1882, 805, 139, 2456, 1139, 1521, 851, 1052, 3093, 3089, 342, 2039, 744, 5097, 1468, 1502, 1585, 2087, 223, 939, 326, 2140, 2577, 892, 2481, 1623, 4077, 982, 3708, 135, 2131, 87, 2503, 3114, 2326, 1106, 876, 1616, 547, 2997, 2831, 2093, 3441, 4530, 4314, 9, 3256, 4229, 4148, 659, 1462, 1986, 1710, 2046, 2913, 2231, 4090, 4880, 5255, 3392, 3274, 1368, 3689, 4645, 1477, 705, 3384, 3635, 1068, 1529, 2941, 1458, 3782, 1509, 100, 1656, 2548, 718, 2339, 408, 1590, 2780, 3548, 1838, 4117, 3719, 1345, 3530, 717, 3442, 2778, 3220, 2898, 1892, 4590, 3614, 3371, 2043, 1998, 1224, 3483, 891, 635, 584, 2559, 3355, 733, 1766, 1729, 1172, 3789, 1891, 2307, 781, 2982, 2271, 1957, 1580, 5773, 2633, 2005, 4195, 3097, 1535, 3213, 1189, 1934, 5693, 3262, 586, 3118, 1324, 1598, 517, 1564, 2217, 1868, 1893, 4445, 3728, 2703, 3139, 1526, 1787, 1992, 3882, 2875, 1549, 1199, 1056, 2224, 1904, 2711, 5098, 4287, 338, 1993, 3129, 3489, 2689, 1809, 2815, 1997, 957, 1855, 3898, 2550, 3275, 3057, 1105, 1319, 627, 1505, 1911, 1883, 3526, 698, 3629, 3456, 1833, 1431, 746, 77, 1261, 2017, 2296, 1977, 1885, 125, 1334, 1600, 525, 1798, 1109, 2222, 1470, 1945, 559, 2236, 1186, 3443, 2476, 1929, 1411, 2411, 3135, 1777, 3372, 2621, 1841, 1613, 3229, 668, 1430, 1839, 2643, 2916, 195, 1989, 2671, 2358, 1387, 629, 3205, 2293, 5256, 4439, 123, 1310, 888, 1879, 4300, 3021, 3605, 1003, 1162, 3192, 2910, 2010, 140, 2395, 2859, 55, 1082, 2012, 2901, 662, 419, 2081, 1438, 680, 2774, 4654, 3912, 1620, 1731, 1625, 5035, 4065, 2328, 512, 1344, 802, 5443, 2163, 2311, 2537, 524, 3399, 98, 1155, 2103, 1918, 2606, 3925, 2816, 1393, 2465, 1504, 3773, 2177, 3963, 1478, 4346, 180, 1113, 4655, 3461, 2028, 1698, 833, 2696, 1235, 1322, 1594, 4408, 3623, 3013, 3225, 2040, 3022, 541, 2881, 607, 3632, 2029, 1665, 1219, 639, 1385, 1686, 1099, 2803, 3231, 1938, 3188, 2858, 427, 676, 2772, 1168, 2025, 454, 3253, 2486, 3556, 230, 1950, 580, 791, 1991, 1280, 1086, 1974, 2034, 630, 257, 3338, 2788, 4903, 1017, 86, 4790, 966, 2789, 1995, 1696, 1131, 259, 3095, 4188, 1308, 179, 1463, 5257, 289, 4107, 1248, 42, 3413, 1725, 2288, 896, 1947, 774, 4474, 4254, 604, 3430, 4264, 392, 2514, 2588, 452, 237, 1408, 3018, 988, 4531, 1970, 3034, 3310, 540, 2370, 1562, 1288, 2990, 502, 4765, 1147, 4, 1853, 2708, 207, 294, 2814, 4078, 2902, 2509, 684, 34, 3105, 3532, 2551, 644, 709, 2801, 2344, 573, 1727, 3573, 3557, 2021, 1081, 3100, 4315, 2100, 3681, 199, 2263, 1837, 2385, 146, 3484, 1195, 2776, 3949, 997, 1939, 3973, 1008, 1091, 1202, 1962, 1847, 1149, 4209, 5444, 1076, 493, 117, 5400, 2521, 972, 1490, 2934, 1796, 4542, 2374, 1512, 2933, 2657, 413, 2888, 1135, 2762, 2314, 2156, 1355, 2369, 766, 2007, 2527, 2170, 3124, 2491, 2593, 2632, 4757, 2437, 234, 3125, 3591, 1898, 1750, 1376, 1942, 3468, 3138, 570, 2127, 2145, 3276, 4131, 962, 132, 1445, 4196, 19, 941, 3624, 3480, 3366, 1973, 1374, 4461, 3431, 2629, 283, 2415, 2275, 808, 2887, 3620, 2112, 2563, 1353, 3610, 955, 1089, 3103, 1053, 96, 88, 4097, 823, 3808, 1583, 399, 292, 4091, 3313, 421, 1128, 642, 4006, 903, 2539, 1877, 2082, 596, 29, 4066, 1790, 722, 2157, 130, 995, 1569, 769, 1485, 464, 513, 2213, 288, 1923, 1101, 2453, 4316, 133, 486, 2445, 50, 625, 487, 2207, 57, 423, 481, 2962, 159, 3729, 1558, 491, 303, 482, 501, 240, 2837, 112, 3648, 2392, 1783, 362, 8, 3433, 3422, 610, 2793, 3277, 1390, 1284, 1654, 21, 3823, 734, 367, 623, 193, 287, 374, 1009, 1483, 816, 476, 313, 2255, 2340, 1262, 2150, 2899, 1146, 2581, 782, 2116, 1659, 2018, 1880, 255, 3586, 3314, 1110, 2867, 2137, 2564, 986, 2767, 5185, 2006, 650, 158, 926, 762, 881, 3157, 2717, 2362, 3587, 306, 3690, 3245, 1542, 3077, 2427, 1691, 2478, 2118, 2985, 3490, 2438, 539, 2305, 983, 129, 1754, 355, 4201, 2386, 827, 2923, 104, 1773, 2838, 2771, 411, 2905, 3919, 376, 767, 122, 1114, 828, 2422, 1817, 3506, 266, 3460, 1007, 1609, 4998, 945, 2612, 4429, 2274, 726, 1247, 1964, 2914, 2199, 2070, 4002, 4108, 657, 3323, 1422, 579, 455, 2764, 4737, 1222, 2895, 1670, 824, 1223, 1487, 2525, 558, 861, 3080, 598, 2659, 2515, 1967, 752, 2583, 2376, 2214, 4180, 977, 704, 2464, 4999, 2622, 4109, 1210, 2961, 819, 1541, 142, 2284, 44, 418, 457, 1126, 3730, 4347, 4626, 1644, 1876, 3671, 1864, 302, 1063, 5694, 624, 723, 1984, 3745, 1314, 1676, 2488, 1610, 1449, 3558, 3569, 2166, 2098, 409, 1011, 2325, 3704, 2306, 818, 1732, 1383, 1824, 1844, 3757, 999, 2705, 3497, 1216, 1423, 2683, 2426, 2954, 2501, 2726, 2229, 1475, 2554, 5064, 1971, 1794, 1666, 2014, 1343, 783, 724, 191, 2434, 1354, 2220, 5065, 1763, 2752, 2472, 4152, 131, 175, 2885, 3434, 92, 1466, 4920, 2616, 3871, 3872, 3866, 128, 1551, 1632, 669, 1854, 3682, 4691, 4125, 1230, 188, 2973, 3290, 1302, 1213, 560, 3266, 917, 763, 3909, 3249, 1760, 868, 1958, 764, 1782, 2097, 145, 2277, 3774, 4462, 64, 1491, 3062, 971, 2132, 3606, 2442, 221, 1226, 1617, 218, 323, 1185, 3207, 3147, 571, 619, 1473, 1005, 1744, 2281, 449, 1887, 2396, 3685, 275, 375, 3816, 1743, 3844, 3731, 845, 1983, 2350, 4210, 1377, 773, 967, 3499, 3052, 3743, 2725, 4007, 1697, 1022, 3943, 1464, 3264, 2855, 2722, 1952, 1029, 2839, 2467, 84, 4383, 2215, 820, 1391, 2015, 2448, 3672, 377, 1948, 2168, 797, 2545, 3536, 2578, 2645, 94, 2874, 1678, 405, 1259, 3071, 771, 546, 1315, 470, 1243, 3083, 895, 2468, 981, 969, 2037, 846, 4181, 653, 1276, 2928, 14, 2594, 557, 3007, 2474, 156, 902, 1338, 1740, 2574, 537, 2518, 973, 2282, 2216, 2433, 1928, 138, 2903, 1293, 2631, 1612, 646, 3457, 839, 2935, 111, 496, 2191, 2847, 589, 3186, 149, 3994, 2060, 4031, 2641, 4067, 3145, 1870, 37, 3597, 2136, 1025, 2051, 3009, 3383, 3549, 1121, 1016, 3261, 1301, 251, 2446, 2599, 2153, 872, 3246, 637, 334, 3705, 831, 884, 921, 3065, 3140, 4092, 2198, 1944, 246, 2964, 108, 2045, 1152, 1921, 2308, 1031, 203, 3173, 4170, 1907, 3890, 810, 1401, 2003, 1690, 506, 647, 1242, 2828, 1761, 1649, 3208, 2249, 1589, 3709, 2931, 5156, 1708, 498, 666, 2613, 834, 3817, 1231, 184, 2851, 1124, 883, 3197, 2261, 3710, 1765, 1553, 2658, 1178, 2639, 2351, 93, 1193, 942, 2538, 2141, 4402, 235, 1821, 870, 1591, 2192, 1709, 1871, 3341, 1618, 4126, 2595, 2334, 603, 651, 69, 701, 268, 2662, 3411, 2555, 1380, 1606, 503, 448, 254, 2371, 2646, 574, 1187, 2309, 1770, 322, 2235, 1292, 1801, 305, 566, 1133, 229, 2067, 2057, 706, 167, 483, 2002, 2672, 3295, 1820, 3561, 3067, 316, 378, 2746, 3452, 1112, 136, 1981, 507, 1651, 2917, 1117, 285, 4591, 182, 2580, 3522, 1304, 335, 3303, 1835, 2504, 1795, 1792, 2248, 674, 1018, 2106, 2449, 1857, 2292, 2845, 976, 3047, 1781, 2600, 2727, 1389, 1281, 52, 3152, 153, 265, 3950, 672, 3485, 3951, 4463, 430, 1183, 365, 278, 2169, 27, 1407, 1336, 2304, 209, 1340, 1730, 2202, 1852, 2403, 2883, 979, 1737, 1062, 631, 2829, 2542, 3876, 2592, 825, 2086, 2226, 3048, 3625, 352, 1417, 3724, 542, 991, 431, 1351, 3938, 1861, 2294, 826, 1361, 2927, 3142, 3503, 1738, 463, 2462, 2723, 582, 1916, 1595, 2808, 400, 3845, 3891, 2868, 3621, 2254, 58, 2492, 1123, 910, 2160, 2614, 1372, 1603, 1196, 1072, 3385, 1700, 3267, 1980, 696, 480, 2430, 920, 799, 1570, 2920, 1951, 2041, 4047, 2540, 1321, 4223, 2469, 3562, 2228, 1271, 2602, 401, 2833, 3351, 2575, 5157, 907, 2312, 1256, 410, 263, 3507, 1582, 996, 678, 1849, 2316, 1480, 908, 3545, 2237, 703, 2322, 667, 1826, 2849, 1531, 2604, 2999, 2407, 3146, 2151, 2630, 1786, 3711, 469, 3542, 497, 3899, 2409, 858, 837, 4446, 3393, 1274, 786, 620, 1845, 2001, 3311, 484, 308, 3367, 1204, 1815, 3691, 2332, 1532, 2557, 1842, 2020, 2724, 1927, 2333, 4440, 567, 22, 1673, 2728, 4475, 1987, 1858, 1144, 1597, 101, 1832, 3601, 12, 974, 3783, 4391, 951, 1412, 1, 3720, 453, 4608, 4041, 528, 1041, 1027, 3230, 2628, 1129, 875, 1051, 3291, 1203, 2262, 1069, 2860, 2799, 2149, 2615, 3278, 144, 1758, 3040, 31, 475, 1680, 366, 2685, 3184, 311, 1642, 4008, 2466, 5036, 1593, 1493, 2809, 216, 1420, 1668, 233, 304, 2128, 3284, 232, 1429, 1768, 1040, 2008, 3407, 2740, 2967, 2543, 242, 2133, 778, 1565, 2022, 2620, 505, 2189, 2756, 1098, 2273, 372, 1614, 708, 553, 2846, 2094, 2278, 169, 3626, 2835, 4161, 228, 2674, 3165, 809, 1454, 1309, 466, 1705, 1095, 900, 3423, 880, 2667, 3751, 5258, 2317, 3109, 2571, 4317, 2766, 1503, 1342, 866, 4447, 1118, 63, 2076, 314, 1881, 1348, 1061, 172, 978, 3515, 1747, 532, 511, 3970, 6, 601, 905, 2699, 3300, 1751, 276, 1467, 3725, 2668, 65, 4239, 2544, 2779, 2556, 1604, 578, 2451, 1802, 992, 2331, 2624, 1320, 3446, 713, 1513, 1013, 103, 2786, 2447, 1661, 886, 1702, 916, 654, 3574, 2031, 1556, 751, 2178, 2821, 2179, 1498, 1538, 2176, 271, 914, 2251, 2080, 1325, 638, 1953, 2937, 3877, 2432, 2754, 95, 3265, 1716, 260, 1227, 4083, 775, 106, 1357, 3254, 426, 1607, 555, 2480, 772, 1985, 244, 2546, 474, 495, 1046, 2611, 1851, 2061, 71, 2089, 1675, 2590, 742, 3758, 2843, 3222, 1433, 267, 2180, 2576, 2826, 2233, 2092, 3913, 2435, 956, 1745, 3075, 856, 2113, 1116, 451, 3, 1988, 2896, 1398, 993, 2463, 1878, 2049, 1341, 2718, 2721, 2870, 2108, 712, 2904, 4363, 2753, 2324, 277, 2872, 2349, 2649, 384, 987, 435, 691, 3000, 922, 164, 3939, 652, 1500, 1184, 4153, 2482, 3373, 2165, 4848, 2335, 3775, 3508, 3154, 2806, 2830, 1554, 2102, 1664, 2530, 1434, 2408, 893, 1547, 2623, 3447, 2832, 2242, 2532, 3169, 2856, 3223, 2078, 49, 3770, 3469, 462, 318, 656, 2259, 3250, 3069, 679, 1629, 2758, 344, 1138, 1104, 3120, 1836, 1283, 3115, 2154, 1437, 4448, 934, 759, 1999, 794, 2862, 1038, 533, 2560, 1722, 2342, 855, 2626, 1197, 1663, 4476, 3127, 85, 4240, 2528, 25, 1111, 1181, 3673, 407, 3470, 4561, 2679, 2713, 768, 1925, 2841, 3986, 1544, 1165, 932, 373, 1240, 2146, 1930, 2673, 721, 4766, 354, 4333, 391, 2963, 187, 61, 3364, 1442, 1102, 330, 1940, 1767, 341, 3809, 4118, 393, 2496, 2062, 2211, 105, 331, 300, 439, 913, 1332, 626, 379, 3304, 1557, 328, 689, 3952, 309, 1555, 931, 317, 2517, 3027, 325, 569, 686, 2107, 3084, 60, 1042, 1333, 2794, 264, 3177, 4014, 1628, 258, 3712, 7, 4464, 1176, 1043, 1778, 683, 114, 1975, 78, 1492, 383, 1886, 510, 386, 645, 5291, 2891, 2069, 3305, 4138, 3867, 2939, 2603, 2493, 1935, 1066, 1848, 3588, 1015, 1282, 1289, 4609, 697, 1453, 3044, 2666, 3611, 1856, 2412, 54, 719, 1330, 568, 3778, 2459, 1748, 788, 492, 551, 1191, 1000, 488, 3394, 3763, 282, 1799, 348, 2016, 1523, 3155, 2390, 1049, 382, 2019, 1788, 1170, 729, 2968, 3523, 897, 3926, 2785, 2938, 3292, 350, 2319, 3238, 1718, 1717, 2655, 3453, 3143, 4465, 161, 2889, 2980, 2009, 1421, 56, 1908, 1640, 2387, 2232, 1917, 1874, 2477, 4921, 148, 83, 3438, 592, 4245, 2882, 1822, 1055, 741, 115, 1496, 1624, 381, 1638, 4592, 1020, 516, 3214, 458, 947, 4575, 1432, 211, 1514, 2926, 1865, 2142, 189, 852, 1221, 1400, 1486, 882, 2299, 4036, 351, 28, 1122, 700, 6479, 6480, 6481, 6482, 6483, 5508, 6484, 3900, 3414, 3974, 4441, 4024, 3537, 4037, 5628, 5099, 3633, 6485, 3148, 6486, 3636, 5509, 3257, 5510, 5973, 5445, 5872, 4941, 4403, 3174, 4627, 5873, 6276, 2286, 4230, 5446, 5874, 5122, 6102, 6103, 4162, 5447, 5123, 5323, 4849, 6277, 3980, 3851, 5066, 4246, 5774, 5067, 6278, 3001, 2807, 5695, 3346, 5775, 5974, 5158, 5448, 6487, 5975, 5976, 5776, 3598, 6279, 5696, 4806, 4211, 4154, 6280, 6488, 6489, 6490, 6281, 4212, 5037, 3374, 4171, 6491, 4562, 4807, 4722, 4827, 5977, 6104, 4532, 4079, 5159, 5324, 5160, 4404, 3858, 5359, 5875, 3975, 4288, 4610, 3486, 4512, 5325, 3893, 5360, 6282, 6283, 5560, 2522, 4231, 5978, 5186, 5449, 2569, 3878, 6284, 5401, 3578, 4415, 6285, 4656, 5124, 5979, 2506, 4247, 4449, 3219, 3417, 4334, 4969, 4329, 6492, 4576, 4828, 4172, 4416, 4829, 5402, 6286, 3927, 3852, 5361, 4369, 4830, 4477, 4867, 5876, 4173, 6493, 6105, 4657, 6287, 6106, 5877, 5450, 6494, 4155, 4868, 5451, 3700, 5629, 4384, 6288, 6289, 5878, 3189, 4881, 6107, 6290, 6495, 4513, 6496, 4692, 4515, 4723, 5100, 3356, 6497, 6291, 3810, 4080, 5561, 3570, 4430, 5980, 6498, 4355, 5697, 6499, 4724, 6108, 6109, 3764, 4050, 5038, 5879, 4093, 3226, 6292, 5068, 5217, 4693, 3342, 5630, 3504, 4831, 4377, 4466, 4309, 5698, 4431, 5777, 6293, 5778, 4272, 3706, 6110, 5326, 3752, 4676, 5327, 4273, 5403, 4767, 5631, 6500, 5699, 5880, 3475, 5039, 6294, 5562, 5125, 4348, 4301, 4482, 4068, 5126, 4593, 5700, 3380, 3462, 5981, 5563, 3824, 5404, 4970, 5511, 3825, 4738, 6295, 6501, 5452, 4516, 6111, 5881, 5564, 6502, 6296, 5982, 6503, 4213, 4163, 3454, 6504, 6112, 4009, 4450, 6113, 4658, 6297, 6114, 3035, 6505, 6115, 3995, 4904, 4739, 4563, 4942, 4110, 5040, 3661, 3928, 5362, 3674, 6506, 5292, 3612, 4791, 5565, 4149, 5983, 5328, 5259, 5021, 4725, 4577, 4564, 4517, 4364, 6298, 5405, 4578, 5260, 4594, 4156, 4157, 5453, 3592, 3491, 6507, 5127, 5512, 4709, 4922, 5984, 5701, 4726, 4289, 6508, 4015, 6116, 5128, 4628, 3424, 4241, 5779, 6299, 4905, 6509, 6510, 5454, 5702, 5780, 6300, 4365, 4923, 3971, 6511, 5161, 3270, 3158, 5985, 4100, 867, 5129, 5703, 6117, 5363, 3695, 3301, 5513, 4467, 6118, 6512, 5455, 4232, 4242, 4629, 6513, 3959, 4478, 6514, 5514, 5329, 5986, 4850, 5162, 5566, 3846, 4694, 6119, 5456, 4869, 5781, 3779, 6301, 5704, 5987, 5515, 4710, 6302, 5882, 6120, 4392, 5364, 5705, 6515, 6121, 6516, 6517, 3736, 5988, 5457, 5989, 4695, 2457, 5883, 4551, 5782, 6303, 6304, 6305, 5130, 4971, 6122, 5163, 6123, 4870, 3263, 5365, 3150, 4871, 6518, 6306, 5783, 5069, 5706, 3513, 3498, 4409, 5330, 5632, 5366, 5458, 5459, 3991, 5990, 4502, 3324, 5991, 5784, 3696, 4518, 5633, 4119, 6519, 4630, 5634, 4417, 5707, 4832, 5992, 3418, 6124, 5993, 5567, 4768, 5218, 6520, 4595, 3458, 5367, 6125, 5635, 6126, 4202, 6521, 4740, 4924, 6307, 3981, 4069, 4385, 6308, 3883, 2675, 4051, 3834, 4302, 4483, 5568, 5994, 4972, 4101, 5368, 6309, 5164, 5884, 3922, 6127, 6522, 6523, 5261, 5460, 5187, 4164, 5219, 3538, 5516, 4111, 3524, 5995, 6310, 6311, 5369, 3181, 3386, 2484, 5188, 3464, 5569, 3627, 5708, 6524, 5406, 5165, 4677, 4492, 6312, 4872, 4851, 5885, 4468, 5996, 6313, 5709, 5710, 6128, 2470, 5886, 6314, 5293, 4882, 5785, 3325, 5461, 5101, 6129, 5711, 5786, 6525, 4906, 6526, 6527, 4418, 5887, 5712, 4808, 2907, 3701, 5713, 5888, 6528, 3765, 5636, 5331, 6529, 6530, 3593, 5889, 3637, 4943, 3692, 5714, 5787, 4925, 6315, 6130, 5462, 4405, 6131, 6132, 6316, 5262, 6531, 6532, 5715, 3859, 5716, 5070, 4696, 5102, 3929, 5788, 3987, 4792, 5997, 6533, 6534, 3920, 4809, 5000, 5998, 6535, 2974, 5370, 6317, 5189, 5263, 5717, 3826, 6536, 3953, 5001, 4883, 3190, 5463, 5890, 4973, 5999, 4741, 6133, 6134, 3607, 5570, 6000, 4711, 3362, 3630, 4552, 5041, 6318, 6001, 2950, 2953, 5637, 4646, 5371, 4944, 6002, 2044, 4120, 3429, 6319, 6537, 5103, 4833, 6538, 6539, 4884, 4647, 3884, 6003, 6004, 4758, 3835, 5220, 5789, 4565, 5407, 6540, 6135, 5294, 4697, 4852, 6320, 6321, 3206, 4907, 6541, 6322, 4945, 6542, 6136, 6543, 6323, 6005, 4631, 3519, 6544, 5891, 6545, 5464, 3784, 5221, 6546, 5571, 4659, 6547, 6324, 6137, 5190, 6548, 3853, 6549, 4016, 4834, 3954, 6138, 5332, 3827, 4017, 3210, 3546, 4469, 5408, 5718, 3505, 4648, 5790, 5131, 5638, 5791, 5465, 4727, 4318, 6325, 6326, 5792, 4553, 4010, 4698, 3439, 4974, 3638, 4335, 3085, 6006, 5104, 5042, 5166, 5892, 5572, 6327, 4356, 4519, 5222, 5573, 5333, 5793, 5043, 6550, 5639, 5071, 4503, 6328, 6139, 6551, 6140, 3914, 3901, 5372, 6007, 5640, 4728, 4793, 3976, 3836, 4885, 6552, 4127, 6553, 4451, 4102, 5002, 6554, 3686, 5105, 6555, 5191, 5072, 5295, 4611, 5794, 5296, 6556, 5893, 5264, 5894, 4975, 5466, 5265, 4699, 4976, 4370, 4056, 3492, 5044, 4886, 6557, 5795, 4432, 4769, 4357, 5467, 3940, 4660, 4290, 6141, 4484, 4770, 4661, 3992, 6329, 4025, 4662, 5022, 4632, 4835, 4070, 5297, 4663, 4596, 5574, 5132, 5409, 5895, 6142, 4504, 5192, 4664, 5796, 5896, 3885, 5575, 5797, 5023, 4810, 5798, 3732, 5223, 4712, 5298, 4084, 5334, 5468, 6143, 4052, 4053, 4336, 4977, 4794, 6558, 5335, 4908, 5576, 5224, 4233, 5024, 4128, 5469, 5225, 4873, 6008, 5045, 4729, 4742, 4633, 3675, 4597, 6559, 5897, 5133, 5577, 5003, 5641, 5719, 6330, 6560, 3017, 2382, 3854, 4406, 4811, 6331, 4393, 3964, 4946, 6561, 2420, 3722, 6562, 4926, 4378, 3247, 1736, 4442, 6332, 5134, 6333, 5226, 3996, 2918, 5470, 4319, 4003, 4598, 4743, 4744, 4485, 3785, 3902, 5167, 5004, 5373, 4394, 5898, 6144, 4874, 1793, 3997, 6334, 4085, 4214, 5106, 5642, 4909, 5799, 6009, 4419, 4189, 3330, 5899, 4165, 4420, 5299, 5720, 5227, 3347, 6145, 4081, 6335, 2876, 3930, 6146, 3293, 3786, 3910, 3998, 5900, 5300, 5578, 2840, 6563, 5901, 5579, 6147, 3531, 5374, 6564, 6565, 5580, 4759, 5375, 6566, 6148, 3559, 5643, 6336, 6010, 5517, 6337, 6338, 5721, 5902, 3873, 6011, 6339, 6567, 5518, 3868, 3649, 5722, 6568, 4771, 4947, 6569, 6149, 4812, 6570, 2853, 5471, 6340, 6341, 5644, 4795, 6342, 6012, 5723, 6343, 5724, 6013, 4349, 6344, 3160, 6150, 5193, 4599, 4514, 4493, 5168, 4320, 6345, 4927, 3666, 4745, 5169, 5903, 5005, 4928, 6346, 5725, 6014, 4730, 4203, 5046, 4948, 3395, 5170, 6015, 4150, 6016, 5726, 5519, 6347, 5047, 3550, 6151, 6348, 4197, 4310, 5904, 6571, 5581, 2965, 6152, 4978, 3960, 4291, 5135, 6572, 5301, 5727, 4129, 4026, 5905, 4853, 5728, 5472, 6153, 6349, 4533, 2700, 4505, 5336, 4678, 3583, 5073, 2994, 4486, 3043, 4554, 5520, 6350, 6017, 5800, 4487, 6351, 3931, 4103, 5376, 6352, 4011, 4321, 4311, 4190, 5136, 6018, 3988, 3233, 4350, 5906, 5645, 4198, 6573, 5107, 3432, 4191, 3435, 5582, 6574, 4139, 5410, 6353, 5411, 3944, 5583, 5074, 3198, 6575, 6354, 4358, 6576, 5302, 4600, 5584, 5194, 5412, 6577, 6578, 5585, 5413, 5303, 4248, 5414, 3879, 4433, 6579, 4479, 5025, 4854, 5415, 6355, 4760, 4772, 3683, 2978, 4700, 3797, 4452, 3965, 3932, 3721, 4910, 5801, 6580, 5195, 3551, 5907, 3221, 3471, 3029, 6019, 3999, 5908, 5909, 5266, 5267, 3444, 3023, 3828, 3170, 4796, 5646, 4979, 4259, 6356, 5647, 5337, 3694, 6357, 5648, 5338, 4520, 4322, 5802, 3031, 3759, 4071, 6020, 5586, 4836, 4386, 5048, 6581, 3571, 4679, 4174, 4949, 6154, 4813, 3787, 3402, 3822, 3958, 3215, 3552, 5268, 4387, 3933, 4950, 4359, 6021, 5910, 5075, 3579, 6358, 4234, 4566, 5521, 6359, 3613, 5049, 6022, 5911, 3375, 3702, 3178, 4911, 5339, 4521, 6582, 6583, 4395, 3087, 3811, 5377, 6023, 6360, 6155, 4027, 5171, 5649, 4421, 4249, 2804, 6584, 2270, 6585, 4000, 4235, 3045, 6156, 5137, 5729, 4140, 4312, 3886, 6361, 4330, 6157, 4215, 6158, 3500, 3676, 4929, 4331, 3713, 4930, 5912, 4265, 3776, 3368, 5587, 4470, 4855, 3038, 4980, 3631, 6159, 6160, 4132, 4680, 6161, 6362, 3923, 4379, 5588, 4255, 6586, 4121, 6587, 6363, 4649, 6364, 3288, 4773, 4774, 6162, 6024, 6365, 3543, 6588, 4274, 3107, 3737, 5050, 5803, 4797, 4522, 5589, 5051, 5730, 3714, 4887, 5378, 4001, 4523, 6163, 5026, 5522, 4701, 4175, 2791, 3760, 6589, 5473, 4224, 4133, 3847, 4814, 4815, 4775, 3259, 5416, 6590, 2738, 6164, 6025, 5304, 3733, 5076, 5650, 4816, 5590, 6591, 6165, 6592, 3934, 5269, 6593, 3396, 5340, 6594, 5804, 3445, 3602, 4042, 4488, 5731, 5732, 3525, 5591, 4601, 5196, 6166, 6026, 5172, 3642, 4612, 3202, 4506, 4798, 6366, 3818, 5108, 4303, 5138, 5139, 4776, 3332, 4304, 2915, 3415, 4434, 5077, 5109, 4856, 2879, 5305, 4817, 6595, 5913, 3104, 3144, 3903, 4634, 5341, 3133, 5110, 5651, 5805, 6167, 4057, 5592, 2945, 4371, 5593, 6596, 3474, 4182, 6367, 6597, 6168, 4507, 4279, 6598, 2822, 6599, 4777, 4713, 5594, 3829, 6169, 3887, 5417, 6170, 3653, 5474, 6368, 4216, 2971, 5228, 3790, 4579, 6369, 5733, 6600, 6601, 4951, 4746, 4555, 6602, 5418, 5475, 6027, 3400, 4665, 5806, 6171, 4799, 6028, 5052, 6172, 3343, 4800, 4747, 5006, 6370, 4556, 4217, 5476, 4396, 5229, 5379, 5477, 3839, 5914, 5652, 5807, 4714, 3068, 4635, 5808, 6173, 5342, 4192, 5078, 5419, 5523, 5734, 6174, 4557, 6175, 4602, 6371, 6176, 6603, 5809, 6372, 5735, 4260, 3869, 5111, 5230, 6029, 5112, 6177, 3126, 4681, 5524, 5915, 2706, 3563, 4748, 3130, 6178, 4018, 5525, 6604, 6605, 5478, 4012, 4837, 6606, 4534, 4193, 5810, 4857, 3615, 5479, 6030, 4082, 3697, 3539, 4086, 5270, 3662, 4508, 4931, 5916, 4912, 5811, 5027, 3888, 6607, 4397, 3527, 3302, 3798, 2775, 2921, 2637, 3966, 4122, 4388, 4028, 4054, 1633, 4858, 5079, 3024, 5007, 3982, 3412, 5736, 6608, 3426, 3236, 5595, 3030, 6179, 3427, 3336, 3279, 3110, 6373, 3874, 3039, 5080, 5917, 5140, 4489, 3119, 6374, 5812, 3405, 4494, 6031, 4666, 4141, 6180, 4166, 6032, 5813, 4981, 6609, 5081, 4422, 4982, 4112, 3915, 5653, 3296, 3983, 6375, 4266, 4410, 5654, 6610, 6181, 3436, 5082, 6611, 5380, 6033, 3819, 5596, 4535, 5231, 5306, 5113, 6612, 4952, 5918, 4275, 3113, 6613, 6376, 6182, 6183, 5814, 3073, 4731, 4838, 5008, 3831, 6614, 4888, 3090, 3848, 4280, 5526, 5232, 3014, 5655, 5009, 5737, 5420, 5527, 6615, 5815, 5343, 5173, 5381, 4818, 6616, 3151, 4953, 6617, 5738, 2796, 3204, 4360, 2989, 4281, 5739, 5174, 5421, 5197, 3132, 5141, 3849, 5142, 5528, 5083, 3799, 3904, 4839, 5480, 2880, 4495, 3448, 6377, 6184, 5271, 5919, 3771, 3193, 6034, 6035, 5920, 5010, 6036, 5597, 6037, 6378, 6038, 3106, 5422, 6618, 5423, 5424, 4142, 6619, 4889, 5084, 4890, 4313, 5740, 6620, 3437, 5175, 5307, 5816, 4199, 5198, 5529, 5817, 5199, 5656, 4913, 5028, 5344, 3850, 6185, 2955, 5272, 5011, 5818, 4567, 4580, 5029, 5921, 3616, 5233, 6621, 6622, 6186, 4176, 6039, 6379, 6380, 3352, 5200, 5273, 2908, 5598, 5234, 3837, 5308, 6623, 6624, 5819, 4496, 4323, 5309, 5201, 6625, 6626, 4983, 3194, 3838, 4167, 5530, 5922, 5274, 6381, 6382, 3860, 3861, 5599, 3333, 4292, 4509, 6383, 3553, 5481, 5820, 5531, 4778, 6187, 3955, 3956, 4324, 4389, 4218, 3945, 4325, 3397, 2681, 5923, 4779, 5085, 4019, 5482, 4891, 5382, 5383, 6040, 4682, 3425, 5275, 4094, 6627, 5310, 3015, 5483, 5657, 4398, 5924, 3168, 4819, 6628, 5925, 6629, 5532, 4932, 4613, 6041, 6630, 4636, 6384, 4780, 4204, 5658, 4423, 5821, 3989, 4683, 5822, 6385, 4954, 6631, 5345, 6188, 5425, 5012, 5384, 3894, 6386, 4490, 4104, 6632, 5741, 5053, 6633, 5823, 5926, 5659, 5660, 5927, 6634, 5235, 5742, 5824, 4840, 4933, 4820, 6387, 4859, 5928, 4955, 6388, 4143, 3584, 5825, 5346, 5013, 6635, 5661, 6389, 5014, 5484, 5743, 4337, 5176, 5662, 6390, 2836, 6391, 3268, 6392, 6636, 6042, 5236, 6637, 4158, 6638, 5744, 5663, 4471, 5347, 3663, 4123, 5143, 4293, 3895, 6639, 6640, 5311, 5929, 5826, 3800, 6189, 6393, 6190, 5664, 5348, 3554, 3594, 4749, 4603, 6641, 5385, 4801, 6043, 5827, 4183, 6642, 5312, 5426, 4761, 6394, 5665, 6191, 4715, 2669, 6643, 6644, 5533, 3185, 5427, 5086, 5930, 5931, 5386, 6192, 6044, 6645, 4781, 4013, 5745, 4282, 4435, 5534, 4390, 4267, 6045, 5746, 4984, 6046, 2743, 6193, 3501, 4087, 5485, 5932, 5428, 4184, 4095, 5747, 4061, 5054, 3058, 3862, 5933, 5600, 6646, 5144, 3618, 6395, 3131, 5055, 5313, 6396, 4650, 4956, 3855, 6194, 3896, 5202, 4985, 4029, 4225, 6195, 6647, 5828, 5486, 5829, 3589, 3002, 6648, 6397, 4782, 5276, 6649, 6196, 6650, 4105, 3803, 4043, 5237, 5830, 6398, 4096, 3643, 6399, 3528, 6651, 4453, 3315, 4637, 6652, 3984, 6197, 5535, 3182, 3339, 6653, 3096, 2660, 6400, 6654, 3449, 5934, 4250, 4236, 6047, 6401, 5831, 6655, 5487, 3753, 4062, 5832, 6198, 6199, 6656, 3766, 6657, 3403, 4667, 6048, 6658, 4338, 2897, 5833, 3880, 2797, 3780, 4326, 6659, 5748, 5015, 6660, 5387, 4351, 5601, 4411, 6661, 3654, 4424, 5935, 4339, 4072, 5277, 4568, 5536, 6402, 6662, 5238, 6663, 5349, 5203, 6200, 5204, 6201, 5145, 4536, 5016, 5056, 4762, 5834, 4399, 4957, 6202, 6403, 5666, 5749, 6664, 4340, 6665, 5936, 5177, 5667, 6666, 6667, 3459, 4668, 6404, 6668, 6669, 4543, 6203, 6670, 4276, 6405, 4480, 5537, 6671, 4614, 5205, 5668, 6672, 3348, 2193, 4763, 6406, 6204, 5937, 5602, 4177, 5669, 3419, 6673, 4020, 6205, 4443, 4569, 5388, 3715, 3639, 6407, 6049, 4058, 6206, 6674, 5938, 4544, 6050, 4185, 4294, 4841, 4651, 4615, 5488, 6207, 6408, 6051, 5178, 3241, 3509, 5835, 6208, 4958, 5836, 4341, 5489, 5278, 6209, 2823, 5538, 5350, 5206, 5429, 6675, 4638, 4875, 4073, 3516, 4684, 4914, 4860, 5939, 5603, 5389, 6052, 5057, 3237, 5490, 3791, 6676, 6409, 6677, 4821, 4915, 4106, 5351, 5058, 4243, 5539, 4244, 5604, 4842, 4916, 5239, 3028, 3716, 5837, 5114, 5605, 5390, 5940, 5430, 6210, 4332, 6678, 5540, 4732, 3667, 3840, 6053, 4305, 3408, 5670, 5541, 6410, 2744, 5240, 5750, 6679, 3234, 5606, 6680, 5607, 5671, 3608, 4283, 4159, 4400, 5352, 4783, 6681, 6411, 6682, 4491, 4802, 6211, 6412, 5941, 6413, 6414, 5542, 5751, 6683, 4669, 3734, 5942, 6684, 6415, 5943, 5059, 3328, 4670, 4144, 4268, 6685, 6686, 6687, 6688, 4372, 3603, 6689, 5944, 5491, 4373, 3440, 6416, 5543, 4784, 4822, 5608, 3792, 4616, 5838, 5672, 3514, 5391, 6417, 4892, 6690, 4639, 6691, 6054, 5673, 5839, 6055, 6692, 6056, 5392, 6212, 4038, 5544, 5674, 4497, 6057, 6693, 5840, 4284, 5675, 4021, 4545, 5609, 6418, 4454, 6419, 6213, 4113, 4472, 5314, 3738, 5087, 5279, 4074, 5610, 4959, 4063, 3179, 4750, 6058, 6420, 6214, 3476, 4498, 4716, 5431, 4960, 4685, 6215, 5241, 6694, 6421, 6216, 6695, 5841, 5945, 6422, 3748, 5946, 5179, 3905, 5752, 5545, 5947, 4374, 6217, 4455, 6423, 4412, 6218, 4803, 5353, 6696, 3832, 5280, 6219, 4327, 4702, 6220, 6221, 6059, 4652, 5432, 6424, 3749, 4751, 6425, 5753, 4986, 5393, 4917, 5948, 5030, 5754, 4861, 4733, 6426, 4703, 6697, 6222, 4671, 5949, 4546, 4961, 5180, 6223, 5031, 3316, 5281, 6698, 4862, 4295, 4934, 5207, 3644, 6427, 5842, 5950, 6428, 6429, 4570, 5843, 5282, 6430, 6224, 5088, 3239, 6060, 6699, 5844, 5755, 6061, 6431, 2701, 5546, 6432, 5115, 5676, 4039, 3993, 3327, 4752, 4425, 5315, 6433, 3941, 6434, 5677, 4617, 4604, 3074, 4581, 6225, 5433, 6435, 6226, 6062, 4823, 5756, 5116, 6227, 3717, 5678, 4717, 5845, 6436, 5679, 5846, 6063, 5847, 6064, 3977, 3354, 6437, 3863, 5117, 6228, 5547, 5394, 4499, 4524, 6229, 4605, 6230, 4306, 4500, 6700, 5951, 6065, 3693, 5952, 5089, 4366, 4918, 6701, 6231, 5548, 6232, 6702, 6438, 4704, 5434, 6703, 6704, 5953, 4168, 6705, 5680, 3420, 6706, 5242, 4407, 6066, 3812, 5757, 5090, 5954, 4672, 4525, 3481, 5681, 4618, 5395, 5354, 5316, 5955, 6439, 4962, 6707, 4526, 6440, 3465, 4673, 6067, 6441, 5682, 6708, 5435, 5492, 5758, 5683, 4619, 4571, 4674, 4804, 4893, 4686, 5493, 4753, 6233, 6068, 4269, 6442, 6234, 5032, 4705, 5146, 5243, 5208, 5848, 6235, 6443, 4963, 5033, 4640, 4226, 6236, 5849, 3387, 6444, 6445, 4436, 4437, 5850, 4843, 5494, 4785, 4894, 6709, 4361, 6710, 5091, 5956, 3331, 6237, 4987, 5549, 6069, 6711, 4342, 3517, 4473, 5317, 6070, 6712, 6071, 4706, 6446, 5017, 5355, 6713, 6714, 4988, 5436, 6447, 4734, 5759, 6715, 4735, 4547, 4456, 4754, 6448, 5851, 6449, 6450, 3547, 5852, 5318, 6451, 6452, 5092, 4205, 6716, 6238, 4620, 4219, 5611, 6239, 6072, 4481, 5760, 5957, 5958, 4059, 6240, 6453, 4227, 4537, 6241, 5761, 4030, 4186, 5244, 5209, 3761, 4457, 4876, 3337, 5495, 5181, 6242, 5959, 5319, 5612, 5684, 5853, 3493, 5854, 6073, 4169, 5613, 5147, 4895, 6074, 5210, 6717, 5182, 6718, 3830, 6243, 2798, 3841, 6075, 6244, 5855, 5614, 3604, 4606, 5496, 5685, 5118, 5356, 6719, 6454, 5960, 5357, 5961, 6720, 4145, 3935, 4621, 5119, 5962, 4261, 6721, 6455, 4786, 5963, 4375, 4582, 6245, 6246, 6247, 6076, 5437, 4877, 5856, 3376, 4380, 6248, 4160, 6722, 5148, 6456, 5211, 6457, 6723, 4718, 6458, 6724, 6249, 5358, 4044, 3297, 6459, 6250, 5857, 5615, 5497, 5245, 6460, 5498, 6725, 6251, 6252, 5550, 3793, 5499, 2959, 5396, 6461, 6462, 4572, 5093, 5500, 5964, 3806, 4146, 6463, 4426, 5762, 5858, 6077, 6253, 4755, 3967, 4220, 5965, 6254, 4989, 5501, 6464, 4352, 6726, 6078, 4764, 2290, 5246, 3906, 5438, 5283, 3767, 4964, 2861, 5763, 5094, 6255, 6256, 4622, 5616, 5859, 5860, 4707, 6727, 4285, 4708, 4824, 5617, 6257, 5551, 4787, 5212, 4965, 4935, 4687, 6465, 6728, 6466, 5686, 6079, 3494, 4413, 2995, 5247, 5966, 5618, 6729, 5967, 5764, 5765, 5687, 5502, 6730, 6731, 6080, 5397, 6467, 4990, 6258, 6732, 4538, 5060, 5619, 6733, 4719, 5688, 5439, 5018, 5149, 5284, 5503, 6734, 6081, 4607, 6259, 5120, 3645, 5861, 4583, 6260, 4584, 4675, 5620, 4098, 5440, 6261, 4863, 2379, 3306, 4585, 5552, 5689, 4586, 5285, 6735, 4864, 6736, 5286, 6082, 6737, 4623, 3010, 4788, 4381, 4558, 5621, 4587, 4896, 3698, 3161, 5248, 4353, 4045, 6262, 3754, 5183, 4588, 6738, 6263, 6739, 6740, 5622, 3936, 6741, 6468, 6742, 6264, 5095, 6469, 4991, 5968, 6743, 4992, 6744, 6083, 4897, 6745, 4256, 5766, 4307, 3108, 3968, 4444, 5287, 3889, 4343, 6084, 4510, 6085, 4559, 6086, 4898, 5969, 6746, 5623, 5061, 4919, 5249, 5250, 5504, 5441, 6265, 5320, 4878, 3242, 5862, 5251, 3428, 6087, 6747, 4237, 5624, 5442, 6266, 5553, 4539, 6748, 2585, 3533, 5398, 4262, 6088, 5150, 4736, 4438, 6089, 6267, 5505, 4966, 6749, 6268, 6750, 6269, 5288, 5554, 3650, 6090, 6091, 4624, 6092, 5690, 6751, 5863, 4270, 5691, 4277, 5555, 5864, 6752, 5692, 4720, 4865, 6470, 5151, 4688, 4825, 6753, 3094, 6754, 6471, 3235, 4653, 6755, 5213, 5399, 6756, 3201, 4589, 5865, 4967, 6472, 5866, 6473, 5019, 3016, 6757, 5321, 4756, 3957, 4573, 6093, 4993, 5767, 4721, 6474, 6758, 5625, 6759, 4458, 6475, 6270, 6760, 5556, 4994, 5214, 5252, 6271, 3875, 5768, 6094, 5034, 5506, 4376, 5769, 6761, 2120, 6476, 5253, 5770, 6762, 5771, 5970, 3990, 5971, 5557, 5558, 5772, 6477, 6095, 2787, 4641, 5972, 5121, 6096, 6097, 6272, 6763, 3703, 5867, 5507, 6273, 4206, 6274, 4789, 6098, 6764, 3619, 3646, 3833, 3804, 2394, 3788, 4936, 3978, 4866, 4899, 6099, 6100, 5559, 6478, 6765, 3599, 5868, 6101, 5869, 5870, 6275, 6766, 4527, 6767) |
# from collections import Counter, defaultdict
# class Solution:
# def smallerNumbersThanCurrent(self, nums: List[int]) -> List[int]:
# count = Counter(nums)
# # print('count: {}'.format(count))
# tmp = nums.copy() #list(set(nums.copy()))
# tmp.sort()
# # print('tmp: {}'.format(tmp))
# lastIdx = defaultdict(int)
# for i, num in enumerate(tmp):
# lastIdx[num] = i
# smallerThanIt = {}
# for t in tmp:
# smallerThanIt[t] = lastIdx[t] - (count[t] - 1)
# ans = []
# for num in nums:
# ans.append(smallerThanIt[num])
# return ans
class Solution:
def smallerNumbersThanCurrent(self, nums: List[int]) -> List[int]:
tmp = [0] * (max(nums) + 1)
for num in nums:
tmp[num] += 1
ans = []
for num in nums:
ans.append(sum(tmp[:num]))
return ans
| class Solution:
def smaller_numbers_than_current(self, nums: List[int]) -> List[int]:
tmp = [0] * (max(nums) + 1)
for num in nums:
tmp[num] += 1
ans = []
for num in nums:
ans.append(sum(tmp[:num]))
return ans |
#Task https://adventofcode.com/2020/day/2
inputExample = [['2-3','r','rrnr'],
['5-10','n','ltnnnknnvcnnn'],
['7-9','p','jtpptpllpj'],
['2-5','s','slssssszssssssss'],
['16-17','d','dddddddddddddddlp'],
['2-5','q','bbwqqbkmdhqmjhn'],
['7-10','m','qmpgmmsmmmmkmmkj'],
['1-3','a','abcde'],
['4-7','g','vczggdgbgxgg']]
def getValidPasswords(inputL):
validPasswords = 0
for row in inputL:
ic = 0
rule = row[0].split('-')
#client has a last minute change request
#occurence = row[2].count(row[1])
#if occurence >= int(rule[0]) and occurence <= int(rule[1]):
# validPasswords += 1
for idx, c in enumerate(row[2]):
if(row[1] == c):
if(idx == int(rule[0])-1):
ic += 1
if(idx == int(rule[1])-1):
ic += 1
if(ic == 1):
validPasswords += 1
return validPasswords
print(getValidPasswords(inputExample))
| input_example = [['2-3', 'r', 'rrnr'], ['5-10', 'n', 'ltnnnknnvcnnn'], ['7-9', 'p', 'jtpptpllpj'], ['2-5', 's', 'slssssszssssssss'], ['16-17', 'd', 'dddddddddddddddlp'], ['2-5', 'q', 'bbwqqbkmdhqmjhn'], ['7-10', 'm', 'qmpgmmsmmmmkmmkj'], ['1-3', 'a', 'abcde'], ['4-7', 'g', 'vczggdgbgxgg']]
def get_valid_passwords(inputL):
valid_passwords = 0
for row in inputL:
ic = 0
rule = row[0].split('-')
for (idx, c) in enumerate(row[2]):
if row[1] == c:
if idx == int(rule[0]) - 1:
ic += 1
if idx == int(rule[1]) - 1:
ic += 1
if ic == 1:
valid_passwords += 1
return validPasswords
print(get_valid_passwords(inputExample)) |
#!/usr/bin/env python
# coding: utf-8
class tokenargs(object):
'''Wraps builtin list with checks for illegal characters in token arguments.'''
# Disallow these characters inside token arguments
illegal = '[]:'
# Replace simple inputs with illegal characters with their legal equivalents
replace = {
"':'": '58',
"'['": '91',
"']'": '93'
}
def __init__(self, items=None):
'''Construct a new list of token arguments.'''
self.list = list()
if items is not None: self.reset(items)
def __setitem__(self, item, value):
'''Set an item in the list.'''
self.list[item] = self.sanitize(value)
def __getitem__(self, item):
'''Get an item from the list.'''
result = self.list[item]
if isinstance(result, list):
return tokenargs(result)
else:
return result
def __delitem__(self, item):
'''Remove an item from the list.'''
del self.list[item]
def __str__(self):
'''Get a string representation.'''
return ':'.join(self.list)
def __add__(self, items):
'''Concatenate two lists of arguments.'''
result = tokenargs(self.list)
result.add(tokenargs(items))
return result
def __radd__(self, items):
'''Concatenate two lists of arguments.'''
return tokenargs(tokenargs(items) + self.list)
def __iadd__(self, item):
'''Add an item or items to the end of the list.'''
self.add(item)
return self
def __isub__(self, item):
'''Remove some number of items from the end of the list.'''
self.sub(item)
return self
def __contains__(self, item):
'''Check if the list contains an item.'''
try:
item = self.sanitize(item)
except:
return False
else:
return item in self.list
def __iter__(self):
'''Iterate through items in the list.'''
return self.list.__iter__()
def __len__(self):
'''Get the number of items in the list.'''
return self.list.__len__()
def __mul__(self, count):
'''Concatenate the list with itself some number of times.'''
return tokenargs(self.list * count)
def __imul__(self, count):
'''Concatenate the list with itself some number of times.'''
self.list *= count
return self
def __eq__(self, other):
'''Check equivalency with another list of arguments.'''
return len(self.list) == len(other) and all(self.list[index] == str(item) for index, item in enumerate(other))
def copy(self):
'''Make a copy of the argument list.'''
return tokenargs(self.list)
def reset(self, items):
'''Reset list to contain specified items.'''
if items is None:
self.clear()
elif isinstance(items, basestring):
self.reset(items.split(':'))
else:
self.list[:] = self.sanitize(items)
def set(self, index, item=None):
'''
Set a single argument given an index or, if no index is given, set
the argument at index 0.
'''
if item is None:
item = index
index = 0
self.list[index] = self.sanitize(item)
def clear(self):
'''Remove all items from the list.'''
del self.list[:]
def sanitize(self, value, replace=True):
'''
Internal: Utility method for sanitizing a string intended to be
evaluated as an arugment for a token.
'''
if isinstance(value, basestring):
value = str(value)
if replace and value in tokenargs.replace:
value = tokenargs.replace[value]
else:
if any([char in value for char in tokenargs.illegal]):
raise ValueError('Illegal character in argument %s.' % value)
return value
else:
try:
return (self.sanitize(item, replace) for item in value)
except:
return self.sanitize(str(value), replace)
def append(self, item):
'''Append a single item to the list.'''
self.list.append(self.sanitize(item))
def extend(self, items):
'''Append multiple items to the list.'''
if isinstance(items, basestring):
self.extend(items.split(':'))
else:
self.list.extend(self.sanitize(items))
def insert(self, index, item):
'''Insert an item at some index.'''
self.list.insert(index, self.sanitize(item))
def add(self, item, *args):
'''Add an item or items to the end of the list.'''
if isinstance(item, basestring):
self.extend(item.split(':'))
elif hasattr(item, '__iter__') or hasattr(item, '__getitem__'):
self.extend(item)
else:
self.add(str(item))
if args:
self.add(args)
def remove(self, item):
self.list.remove(self.sanitize(item))
def sub(self, item):
'''Remove some number of items from the end of the list.'''
try:
self.list[:] = self.list[:-item]
except:
self.remove(item)
| class Tokenargs(object):
"""Wraps builtin list with checks for illegal characters in token arguments."""
illegal = '[]:'
replace = {"':'": '58', "'['": '91', "']'": '93'}
def __init__(self, items=None):
"""Construct a new list of token arguments."""
self.list = list()
if items is not None:
self.reset(items)
def __setitem__(self, item, value):
"""Set an item in the list."""
self.list[item] = self.sanitize(value)
def __getitem__(self, item):
"""Get an item from the list."""
result = self.list[item]
if isinstance(result, list):
return tokenargs(result)
else:
return result
def __delitem__(self, item):
"""Remove an item from the list."""
del self.list[item]
def __str__(self):
"""Get a string representation."""
return ':'.join(self.list)
def __add__(self, items):
"""Concatenate two lists of arguments."""
result = tokenargs(self.list)
result.add(tokenargs(items))
return result
def __radd__(self, items):
"""Concatenate two lists of arguments."""
return tokenargs(tokenargs(items) + self.list)
def __iadd__(self, item):
"""Add an item or items to the end of the list."""
self.add(item)
return self
def __isub__(self, item):
"""Remove some number of items from the end of the list."""
self.sub(item)
return self
def __contains__(self, item):
"""Check if the list contains an item."""
try:
item = self.sanitize(item)
except:
return False
else:
return item in self.list
def __iter__(self):
"""Iterate through items in the list."""
return self.list.__iter__()
def __len__(self):
"""Get the number of items in the list."""
return self.list.__len__()
def __mul__(self, count):
"""Concatenate the list with itself some number of times."""
return tokenargs(self.list * count)
def __imul__(self, count):
"""Concatenate the list with itself some number of times."""
self.list *= count
return self
def __eq__(self, other):
"""Check equivalency with another list of arguments."""
return len(self.list) == len(other) and all((self.list[index] == str(item) for (index, item) in enumerate(other)))
def copy(self):
"""Make a copy of the argument list."""
return tokenargs(self.list)
def reset(self, items):
"""Reset list to contain specified items."""
if items is None:
self.clear()
elif isinstance(items, basestring):
self.reset(items.split(':'))
else:
self.list[:] = self.sanitize(items)
def set(self, index, item=None):
"""
Set a single argument given an index or, if no index is given, set
the argument at index 0.
"""
if item is None:
item = index
index = 0
self.list[index] = self.sanitize(item)
def clear(self):
"""Remove all items from the list."""
del self.list[:]
def sanitize(self, value, replace=True):
"""
Internal: Utility method for sanitizing a string intended to be
evaluated as an arugment for a token.
"""
if isinstance(value, basestring):
value = str(value)
if replace and value in tokenargs.replace:
value = tokenargs.replace[value]
elif any([char in value for char in tokenargs.illegal]):
raise value_error('Illegal character in argument %s.' % value)
return value
else:
try:
return (self.sanitize(item, replace) for item in value)
except:
return self.sanitize(str(value), replace)
def append(self, item):
"""Append a single item to the list."""
self.list.append(self.sanitize(item))
def extend(self, items):
"""Append multiple items to the list."""
if isinstance(items, basestring):
self.extend(items.split(':'))
else:
self.list.extend(self.sanitize(items))
def insert(self, index, item):
"""Insert an item at some index."""
self.list.insert(index, self.sanitize(item))
def add(self, item, *args):
"""Add an item or items to the end of the list."""
if isinstance(item, basestring):
self.extend(item.split(':'))
elif hasattr(item, '__iter__') or hasattr(item, '__getitem__'):
self.extend(item)
else:
self.add(str(item))
if args:
self.add(args)
def remove(self, item):
self.list.remove(self.sanitize(item))
def sub(self, item):
"""Remove some number of items from the end of the list."""
try:
self.list[:] = self.list[:-item]
except:
self.remove(item) |
#
# PySNMP MIB module SAF-IPRADIO (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SAF-IPRADIO
# Produced by pysmi-0.3.4 at Wed May 1 14:59:57 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection")
ifEntry, = mibBuilder.importSymbols("IF-MIB", "ifEntry")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Counter32, Integer32, Gauge32, MibIdentifier, TimeTicks, IpAddress, Bits, Counter64, ObjectIdentity, iso, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Unsigned32, enterprises = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "Integer32", "Gauge32", "MibIdentifier", "TimeTicks", "IpAddress", "Bits", "Counter64", "ObjectIdentity", "iso", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Unsigned32", "enterprises")
DisplayString, TextualConvention, DateAndTime = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "DateAndTime")
saf = MibIdentifier((1, 3, 6, 1, 4, 1, 7571))
tehnika = MibIdentifier((1, 3, 6, 1, 4, 1, 7571, 100))
microwaveRadio = MibIdentifier((1, 3, 6, 1, 4, 1, 7571, 100, 1))
pointToPoint = MibIdentifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1))
safip = MibIdentifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5))
ipRadio = MibIdentifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1))
ipRadioCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1))
ipRadioMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 2))
ipRadioStat = MibIdentifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3))
ipRadioCfgGeneral = MibIdentifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1))
ipRadioCfgNetwork = MibIdentifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 2))
ipRadioStatEth = MibIdentifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2))
modemStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4))
product = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: product.setStatus('mandatory')
if mibBuilder.loadTexts: product.setDescription('Name of the model.')
description = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: description.setStatus('mandatory')
if mibBuilder.loadTexts: description.setDescription('Description of the model.')
radioName = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: radioName.setStatus('mandatory')
if mibBuilder.loadTexts: radioName.setDescription('(same as PROMPT>).')
sysDateAndTime = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 4), DateAndTime()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sysDateAndTime.setStatus('mandatory')
if mibBuilder.loadTexts: sysDateAndTime.setDescription('Current date and time set. For SET tenths of seconds ignored.')
sysTemperature = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sysTemperature.setStatus('mandatory')
if mibBuilder.loadTexts: sysTemperature.setDescription('Unit temperature in degrees by Celsius. NB - sw before 2009.03.18 shows in *10 degrees')
license = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: license.setStatus('mandatory')
if mibBuilder.loadTexts: license.setDescription("To set license information. Read allways 'OK'.")
licenseMask = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: licenseMask.setStatus('mandatory')
if mibBuilder.loadTexts: licenseMask.setDescription('Read license mask.')
writeConfig = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 2, 1), Integer32()).setMaxAccess("writeonly")
if mibBuilder.loadTexts: writeConfig.setStatus('mandatory')
if mibBuilder.loadTexts: writeConfig.setDescription('Write Config')
restartcpu = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 2, 2), Integer32()).setMaxAccess("writeonly")
if mibBuilder.loadTexts: restartcpu.setStatus('mandatory')
if mibBuilder.loadTexts: restartcpu.setDescription("Restart of Mng CPU. Values: 1 - 'cold' restart; 3 - sw")
loopbacks = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 4, 5, 12))).clone(namedValues=NamedValues(("error", 1), ("off", 2), ("if", 4), ("modem", 5), ("multi", 12)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: loopbacks.setStatus('mandatory')
if mibBuilder.loadTexts: loopbacks.setDescription("Set loopback for 1 minute. value error(1) is not writable. Status of loopbacks. Values: 1 - 'error' (not writable); 2 - 'off'; 3 - 'rf' (radio frequency loopback); N/A 2008.10.21 4 - 'if' (intermediate frequency loopback); 5 - 'modem' (modem loopback); 6 - 'far' (far end loopback); N/A 2008.10.21 7 - 'ethernet' (Ethernet loopback); N/A 2008.10.21 8 - 'e1t1-1' (E1/T1 channel 1 loopback); N/A from firmware 1.51 9 - 'e1t1-2' (E1/T1 channel 2 loopback); N/A from firmware 1.51 10 - 'e1t1-3' (E1/T1 channel 3 loopback); N/A from firmware 1.51 11 - 'e1t1-4' (E1/T1 channel 4 loopback); N/A from firmware 1.51 12 - 'multi' (E1/T1 multi - look channel tributary mask)")
loopback_tributary_mask = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 2, 4), Integer32()).setLabel("loopback-tributary-mask").setMaxAccess("readonly")
if mibBuilder.loadTexts: loopback_tributary_mask.setStatus('mandatory')
if mibBuilder.loadTexts: loopback_tributary_mask.setDescription('Loopback mask for E1/T1 channels')
localIp = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 2, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: localIp.setStatus('mandatory')
if mibBuilder.loadTexts: localIp.setDescription('IPv4 Ethernet address of the local unit in a number format(XXX.XXX.XXX.XXX)')
localIpMask = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 2, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: localIpMask.setStatus('mandatory')
if mibBuilder.loadTexts: localIpMask.setDescription('IPv4 Ethernet mask of the local unit in a number format (XXX.XXX.XXX.XXX)')
remoteIp = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 2, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: remoteIp.setStatus('mandatory')
if mibBuilder.loadTexts: remoteIp.setDescription('IPv4 Ethernet address of the remote unit in a number format (XXX.XXX.XXX.XXX).')
radioTable = MibTable((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10), )
if mibBuilder.loadTexts: radioTable.setStatus('mandatory')
if mibBuilder.loadTexts: radioTable.setDescription('Radio table.')
radioEntry = MibTableRow((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1), ).setIndexNames((0, "SAF-IPRADIO", "radioIndex"))
if mibBuilder.loadTexts: radioEntry.setStatus('mandatory')
if mibBuilder.loadTexts: radioEntry.setDescription('Entry containing objects in radio table.')
radioIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("local", 1), ("remote", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioIndex.setStatus('mandatory')
if mibBuilder.loadTexts: radioIndex.setDescription("A unique value for each radio. Its value represents UNIT: 1 - for 'local'; 2 - for 'remote'")
radioGenStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioGenStatus.setStatus('mandatory')
if mibBuilder.loadTexts: radioGenStatus.setDescription("A General status of each radio: 1 - 'OK'; 2 - 'error'")
radioSide = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("high", 1), ("low", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: radioSide.setStatus('mandatory')
if mibBuilder.loadTexts: radioSide.setDescription('Side for duplex communication.')
radioTxPower = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: radioTxPower.setStatus('mandatory')
if mibBuilder.loadTexts: radioTxPower.setDescription('Tx power of radio transmitter in dBm.')
radioRxLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioRxLevel.setStatus('mandatory')
if mibBuilder.loadTexts: radioRxLevel.setDescription('Received signal level in dBm.')
radioDuplexShift = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: radioDuplexShift.setStatus('mandatory')
if mibBuilder.loadTexts: radioDuplexShift.setDescription('Utilized duplex shift in KHz.')
radioLoopback = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioLoopback.setStatus('mandatory')
if mibBuilder.loadTexts: radioLoopback.setDescription('Radio loopback on/off. To set use loopback command.')
radioTxMute = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: radioTxMute.setStatus('mandatory')
if mibBuilder.loadTexts: radioTxMute.setDescription("Status of 'Tx mute': 1 - Tx is muted; 2 - Tx is not muted.")
radioTxFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: radioTxFrequency.setStatus('mandatory')
if mibBuilder.loadTexts: radioTxFrequency.setDescription('Tx frequency in kHz.')
radioRxFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioRxFrequency.setStatus('mandatory')
if mibBuilder.loadTexts: radioRxFrequency.setDescription('Rx frequency in kHz.')
aTPCTable = MibTable((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 11), )
if mibBuilder.loadTexts: aTPCTable.setStatus('mandatory')
if mibBuilder.loadTexts: aTPCTable.setDescription('ATPC table')
aTPCEntry = MibTableRow((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 11, 1), ).setIndexNames((0, "SAF-IPRADIO", "atpcIndex"))
if mibBuilder.loadTexts: aTPCEntry.setStatus('mandatory')
if mibBuilder.loadTexts: aTPCEntry.setDescription('Entry containing objects in ATPC table.')
atpcIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("local", 1), ("remote", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: atpcIndex.setStatus('mandatory')
if mibBuilder.loadTexts: atpcIndex.setDescription("Its value represents UNIT 1 for 'local'; 2 for 'remote'.")
atpcEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 11, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: atpcEnabled.setStatus('mandatory')
if mibBuilder.loadTexts: atpcEnabled.setDescription("ATPC status: 1 for 'on'; 2 for 'off'.")
atpcTxPowerCorrection = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 11, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: atpcTxPowerCorrection.setStatus('mandatory')
if mibBuilder.loadTexts: atpcTxPowerCorrection.setDescription('ATPC Tx power correction in dBm.')
modemTable = MibTable((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12), )
if mibBuilder.loadTexts: modemTable.setStatus('mandatory')
if mibBuilder.loadTexts: modemTable.setDescription('CFIP modem table.')
modemEntry = MibTableRow((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1), ).setIndexNames((0, "SAF-IPRADIO", "modemIndex"))
if mibBuilder.loadTexts: modemEntry.setStatus('mandatory')
if mibBuilder.loadTexts: modemEntry.setDescription('Entry containing objects in modem table.')
modemIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("local", 1), ("remote", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemIndex.setStatus('mandatory')
if mibBuilder.loadTexts: modemIndex.setDescription('Value represents UNIT: 1 for local; 2 for remote.')
modemGeneralStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemGeneralStatus.setStatus('mandatory')
if mibBuilder.loadTexts: modemGeneralStatus.setDescription("A General status of each modem: 1 - 'OK'; 2 - 'error'")
modemBandwith = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: modemBandwith.setStatus('mandatory')
if mibBuilder.loadTexts: modemBandwith.setDescription('Modem bandwidth set in KHz.')
modemE1T1Channels = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: modemE1T1Channels.setStatus('mandatory')
if mibBuilder.loadTexts: modemE1T1Channels.setDescription('Number of E1 or T1 channels set.')
modemModulation = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 33, 34, 40, 41, 42, 49, 50, 57, 58))).clone(namedValues=NamedValues(("qpsk", 1), ("psk8", 2), ("qam16", 3), ("qam32", 4), ("qam64", 5), ("qam128", 6), ("qam256", 7), ("qpsklimited", 8), ("wqpsk", 9), ("wpsk8", 10), ("wqam16", 11), ("wqam32", 12), ("wqam64", 13), ("wqam128", 14), ("wqam256", 15), ("acmqpsk", 17), ("acmpsk8", 18), ("acmqam16", 19), ("acmqam32", 20), ("acmqam64", 21), ("acmqam128", 22), ("acmqam256", 23), ("acmwqpsk", 25), ("acmwpsk8", 26), ("acmwqam16", 27), ("acmwqam32", 28), ("acmwqam64", 29), ("acmwqam128", 30), ("acmwqam256", 31), ("qam4", 33), ("qam8", 34), ("qam4limited", 40), ("wqam4", 41), ("wqam8", 42), ("acmqam4", 49), ("acmqam8", 50), ("acmwqam4", 57), ("acmwqam8", 58)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemModulation.setStatus('mandatory')
if mibBuilder.loadTexts: modemModulation.setDescription('Modem modulation set. Modulution values are following: QPSK - 1, 8PSK - 2, 16QAM - 3, 32QAM - 4, 64QAM - 5, 128QAM - 6, 256QAM - 7. The combination of wide band and ACM calculates as (modulation + 8*is_wide + 16*is_ACM). Note: not all of listed modulations supported by hardware. Plese check manual.')
modemTotalCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemTotalCapacity.setStatus('mandatory')
if mibBuilder.loadTexts: modemTotalCapacity.setDescription('Total capacity set in Kbps.')
modemEthernetCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemEthernetCapacity.setStatus('mandatory')
if mibBuilder.loadTexts: modemEthernetCapacity.setDescription('Ethernet capacity set in Kbps.')
modemAcqStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemAcqStatus.setStatus('mandatory')
if mibBuilder.loadTexts: modemAcqStatus.setDescription(' ')
modemLastAcqError = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("success", 1), ("erragc", 2), ("errtiming", 3), ("errfreqsweep", 4), ("errmse", 5), ("errbit", 6), ("errservice", 7), ("errblind", 8), ("errtimeout", 9), ("errstopped", 10), ("errfatal", 11)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemLastAcqError.setStatus('mandatory')
if mibBuilder.loadTexts: modemLastAcqError.setDescription(' ')
modemRadialMSE = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemRadialMSE.setStatus('mandatory')
if mibBuilder.loadTexts: modemRadialMSE.setDescription("Radial mean square error value *10 in dB. Radial MSE is a method for estimating the signal to noise ratio. ACM engine uses normalized MSE, which is the inverse of SNR. It is calculated by dividing the estimated MSE level with the energy of the received constellation. Radial MSE peak value threshold is dependent on modulation used and LDPC code rate. In case of QPSK it is -8 dB (-10.5 for 'wide'), 16APSK - -13 dB (-18 for 'wide') and 32APSK - -15.5 dB (-21.5 for 'wide'). If the value trespasses this threshold, BER at the output of LDPC decoder will reach the value of 1.0e-06.")
modemInternalAGCgain = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemInternalAGCgain.setStatus('mandatory')
if mibBuilder.loadTexts: modemInternalAGCgain.setDescription(' dBm ')
modemCarrierOffset = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemCarrierOffset.setStatus('mandatory')
if mibBuilder.loadTexts: modemCarrierOffset.setDescription('Carrier frequency offset in Hz.')
modemSymbolRateTx = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemSymbolRateTx.setStatus('mandatory')
if mibBuilder.loadTexts: modemSymbolRateTx.setDescription(' kHz ')
modemSymbolRateRx = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemSymbolRateRx.setStatus('mandatory')
if mibBuilder.loadTexts: modemSymbolRateRx.setDescription(' kHz ')
modemLDPCdecoderStress = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 15), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemLDPCdecoderStress.setStatus('mandatory')
if mibBuilder.loadTexts: modemLDPCdecoderStress.setDescription("The load of LDPC (low-density parity-check code) decoder. The LDPC is monitored for the number of errors being corrected on the input of LDPC decoder. LDPC stress value thresholds @ BER 1.0e-06: - for standard settings ~4.0e-02; - for 'wide' option ~ 1.0e-03. As long as LDPC stress value is under the specified thresholds, amount of errors (and BER itself) on the output of LDPC remains at zero level.")
modemACMengine = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemACMengine.setStatus('mandatory')
if mibBuilder.loadTexts: modemACMengine.setDescription("Status of ACM engine. When 'on', value '1' is shown, when 'off' - value is '2'.")
modemACMmodulationMin = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 33, 34, 40, 41, 42, 49, 50, 57, 58))).clone(namedValues=NamedValues(("qpsk", 1), ("psk8", 2), ("qam16", 3), ("qam32", 4), ("qam64", 5), ("qam128", 6), ("qam256", 7), ("qpsklimited", 8), ("wqpsk", 9), ("wpsk8", 10), ("wqam16", 11), ("wqam32", 12), ("wqam64", 13), ("wqam128", 14), ("wqam256", 15), ("acmqpsk", 17), ("acmpsk8", 18), ("acmqam16", 19), ("acmqam32", 20), ("acmqam64", 21), ("acmqam128", 22), ("acmqam256", 23), ("acmwqpsk", 25), ("acmwpsk8", 26), ("acmwqam16", 27), ("acmwqam32", 28), ("acmwqam64", 29), ("acmwqam128", 30), ("acmwqam256", 31), ("qam4", 33), ("qam8", 34), ("qam4limited", 40), ("wqam4", 41), ("wqam8", 42), ("acmqam4", 49), ("acmqam8", 50), ("acmwqam4", 57), ("acmwqam8", 58)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: modemACMmodulationMin.setStatus('mandatory')
if mibBuilder.loadTexts: modemACMmodulationMin.setDescription('Modem modulation set. Modulution values are following: QPSK - 1, 8PSK - 2, 16QAM - 3, 32QAM - 4, 64QAM - 5, 128QAM - 6, 256QAM - 7. The combination of wide band and ACM calculates as (modulation + 8*is_wide + 16*is_ACM). Note: not all of listed modulations supported by hardware. Plese check manual.')
modemACMtotalCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 18), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemACMtotalCapacity.setStatus('mandatory')
if mibBuilder.loadTexts: modemACMtotalCapacity.setDescription('Total capacity in Kbps set by ACM.')
modemACMethernetCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 19), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemACMethernetCapacity.setStatus('mandatory')
if mibBuilder.loadTexts: modemACMethernetCapacity.setDescription('Ethernet capacity in Kbps set by ACM.')
modemStandard = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("etsi", 1), ("ansi", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: modemStandard.setStatus('mandatory')
if mibBuilder.loadTexts: modemStandard.setDescription('Modem operational standard ETSI or ANSI')
modemE1T1ChannelMask = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 21), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: modemE1T1ChannelMask.setStatus('mandatory')
if mibBuilder.loadTexts: modemE1T1ChannelMask.setDescription('E1 or T1 channel mask 0x00 - 0x0f')
modemACMmodulationMax = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 33, 34, 40, 41, 42, 49, 50, 57, 58))).clone(namedValues=NamedValues(("qpsk", 1), ("psk8", 2), ("qam16", 3), ("qam32", 4), ("qam64", 5), ("qam128", 6), ("qam256", 7), ("qpsklimited", 8), ("wqpsk", 9), ("wpsk8", 10), ("wqam16", 11), ("wqam32", 12), ("wqam64", 13), ("wqam128", 14), ("wqam256", 15), ("acmqpsk", 17), ("acmpsk8", 18), ("acmqam16", 19), ("acmqam32", 20), ("acmqam64", 21), ("acmqam128", 22), ("acmqam256", 23), ("acmwqpsk", 25), ("acmwpsk8", 26), ("acmwqam16", 27), ("acmwqam32", 28), ("acmwqam64", 29), ("acmwqam128", 30), ("acmwqam256", 31), ("qam4", 33), ("qam8", 34), ("qam4limited", 40), ("wqam4", 41), ("wqam8", 42), ("acmqam4", 49), ("acmqam8", 50), ("acmwqam4", 57), ("acmwqam8", 58)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: modemACMmodulationMax.setStatus('mandatory')
if mibBuilder.loadTexts: modemACMmodulationMax.setDescription('Modem modulation set. Modulution values are following: QPSK - 1, 8PSK - 2, 16QAM - 3, 32QAM - 4, 64QAM - 5, 128QAM - 6, 256QAM - 7. The combination of wide band and ACM calculates as (modulation + 8*is_wide + 16*is_ACM). Note: as PSK modulations are now physicaly deprecated, theese are replased with QAM, so for new QAM modulations there are modificatior +32. Note: not all of listed modulations supported by hardware. Plese check manual.')
modemRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("active", 1), ("notReady", 3), ("undo", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: modemRowStatus.setStatus('mandatory')
if mibBuilder.loadTexts: modemRowStatus.setDescription('Row status - to update written data for modemBandwith, modemACMmodulationMin, modemACMmodulationMax, modemE1T1ChannelMask. ')
vlansEnabled = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("reset", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlansEnabled.setStatus('mandatory')
if mibBuilder.loadTexts: vlansEnabled.setDescription('unit temperature *10 degrees Celsius')
vlanTable = MibTable((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14), )
if mibBuilder.loadTexts: vlanTable.setStatus('mandatory')
if mibBuilder.loadTexts: vlanTable.setDescription('Vlan table')
vlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14, 1), )
ifEntry.registerAugmentions(("SAF-IPRADIO", "vlanEntry"))
vlanEntry.setIndexNames(*ifEntry.getIndexNames())
if mibBuilder.loadTexts: vlanEntry.setStatus('mandatory')
if mibBuilder.loadTexts: vlanEntry.setDescription('entry containing vlan objects')
vlanNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanNumber.setStatus('mandatory')
if mibBuilder.loadTexts: vlanNumber.setDescription('A unique value for each vlan. ')
vlanPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("management", 1), ("none", 2), ("traffic", 3), ("endpoint", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPortType.setStatus('mandatory')
if mibBuilder.loadTexts: vlanPortType.setDescription('VLAN port type management, traffic or endpoint ')
vlanPortmap = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanPortmap.setStatus('mandatory')
if mibBuilder.loadTexts: vlanPortmap.setDescription('display port bindings bitfield 111(bin) ')
vlanFid = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanFid.setStatus('optional')
if mibBuilder.loadTexts: vlanFid.setDescription('a filtering identifier (assigned automagically)')
vlanCfgStat = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("clear", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanCfgStat.setStatus('mandatory')
if mibBuilder.loadTexts: vlanCfgStat.setDescription('enable/disable vlan # or clear row data')
vlanRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("active", 1), ("notReady", 3), ("undo", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanRowStatus.setStatus('mandatory')
if mibBuilder.loadTexts: vlanRowStatus.setDescription('Row status (execute configuration on active) Changing any table value sets this value into state notReady. To update row status write value active(1) into this variable.')
ethRXTruncatedFrames = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXTruncatedFrames.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXTruncatedFrames.setDescription('Number of truncated received frames since unit start or statistics reset. ')
ethRXLongEvents = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXLongEvents.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXLongEvents.setDescription('Number of frames having byte count greater than MAXIMUM FRAME SIZE parameter (1518, 1536 or 1916 bytes) since unit start or statistics reset.')
ethRXVlanTagsDetected = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXVlanTagsDetected.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXVlanTagsDetected.setDescription('Number of VLAN Tags detected since unit start or statistics reset.')
ethRXUnsupOpcodes = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXUnsupOpcodes.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXUnsupOpcodes.setDescription('Number of frames recognized as control frames but contained an Unknown Opcode since unit start or statistics reset.')
ethRXPauseFrames = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXPauseFrames.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXPauseFrames.setDescription('Number of frames received as control frames with valid PAUSE opcodes since unit start or statistics reset.')
ethRXControlFrames = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXControlFrames.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXControlFrames.setDescription('Number of frames received as control frames since unit start or statistics reset.')
ethRXDribleNibbles = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXDribleNibbles.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXDribleNibbles.setDescription('Indicates that following the end of the packet additional 1 to 7 bits are received. A single nibble, named the dribble nibble, is formed but not sent to the system;')
ethRXBroadcasts = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXBroadcasts.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXBroadcasts.setDescription('Number of packets, which destination address contained broadcast address, since unit start or statiistics reset.')
ethRXMulticasts = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXMulticasts.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXMulticasts.setDescription('Number of packets, which destination address contained multicast address since unit start or statistics reset.')
ethRXDones = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXDones.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXDones.setDescription('Reception of packets successfully completed. Number of completed packets since unit start or statistics reset.')
ethRXOutOfRangeErrors = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXOutOfRangeErrors.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXOutOfRangeErrors.setDescription('Number of frames where Type/Length field larger than 1518 (Type Field) bytes since unit start or statistics reset.')
ethRXLengthCheckerrorsErrors = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXLengthCheckerrorsErrors.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXLengthCheckerrorsErrors.setDescription('Number of frames where frame length field in the packet does not match the actual data byte length and is not a Type Field since unit start or statistics reset.')
ethRXCRCErrors = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXCRCErrors.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXCRCErrors.setDescription('Number of frames where frame CRC do not match the internally generated CRC since unit start or statistics reset')
ethRXCodeErrors = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXCodeErrors.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXCodeErrors.setDescription('Number of packets where one or more nibbles are signalled as errors during reception of the packet since unit start or statistics reset.')
ethRXFalseCarrierErrors = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXFalseCarrierErrors.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXFalseCarrierErrors.setDescription('Indicates that following the last receive statistics vector, a false carrier was detected, noted and reported with this the next receive statistics. The false carrier is not associated with this packet. False carrier is activated on the receive channel that does not result in a packet receive attempt being made;')
ethRXDvEvent = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXDvEvent.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXDvEvent.setDescription('Number of the last receive (Rx) events seen being too short to be valid packets since the last unit (re)start or purification of statistics.')
ethRXPrevPktDropped = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXPrevPktDropped.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXPrevPktDropped.setDescription('Indicates that since the last receive (Rx), a packet is dropped (i.e. interframe gap too small).')
ethRXByteCounterHi = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXByteCounterHi.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXByteCounterHi.setDescription('Total number of bytes received (Rx) on the wire since the last unit (re)start or purification of statistics, not counting collided bytes (bits 31:0).')
ethRXByteCounterLow = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethRXByteCounterLow.setStatus('mandatory')
if mibBuilder.loadTexts: ethRXByteCounterLow.setDescription('Total number of bytes received (Rx) on the wire since the last unit (re)start or purification of statistics, not counting collided bytes (bits 62:32).')
ethTXVlanTags = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXVlanTags.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXVlanTags.setDescription('Number of VLAN tagged Tx packets since the last unit (re)start or purification of statistics. 32-bit counter.')
ethTXBackpresEvents = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXBackpresEvents.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXBackpresEvents.setDescription('Number of times Tx carrier-sense-method backpressure was previously applied since the last unit (re)start or purification of statistics.')
ethTXPauseFrames = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXPauseFrames.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXPauseFrames.setDescription('Number of frames transmitted (Tx) as control frames with valid PAUSE opcodes since the last unit (re)start or purification of statistics.')
ethTXControlFrames = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXControlFrames.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXControlFrames.setDescription('Number of frames transmitted (Tx) as control frames since the last unit (re)start or purification of statistics.')
ethTXWireByteCounterHi = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXWireByteCounterHi.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXWireByteCounterHi.setDescription('Total number of bytes transmitted (Tx) on the wire since the last unit (re)start or purification of statistics, including all bytes from collided attempts (bits 31:0).')
ethTXWireByteCounterLow = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXWireByteCounterLow.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXWireByteCounterLow.setDescription('Total number of bytes transmitted (Tx) on the wire since the last unit (re)start or purification of statistics, including all bytes from collided attempts (bits 62:32).')
ethTXUnderruns = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 28), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXUnderruns.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXUnderruns.setDescription('Number of underruns occured during frame transmission (Tx) since the last unit (re)start or purification of statistics.')
ethTXGiants = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 29), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXGiants.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXGiants.setDescription('Number of Tx frames having byte count greater than the MAXIMUM FRAME SIZE parameter (1516, 1536 or 1916 bytes) since the last unit (re)start or purification of statistics.')
ethTXLateCollisions = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 30), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXLateCollisions.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXLateCollisions.setDescription('Number of Tx collisions occurred beyond the collision window (512 bit times) since the last unit (re)start or purification of statistics.')
ethTXMaxCollisions = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 31), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXMaxCollisions.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXMaxCollisions.setDescription('Number of Tx packets aborted after number of collisions exceeded the RETRANSMISSION MAXIMUM parameter since the last unit (re)start or purification of statistics.')
ethTXExcessiveDefers = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 32), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXExcessiveDefers.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXExcessiveDefers.setDescription('Number of Tx packets deferred in excess of 6,071 nibble times in 100 Mbps mode, or 24,287 bit-times in 10 Mbps mode since the last unit (re)start or purification of statistics.')
ethTXNonExcessiveDefers = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 33), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXNonExcessiveDefers.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXNonExcessiveDefers.setDescription('Number of Tx packets deferred for at least one attempt, but less than an excessive defer since the last unit (re)start or purification of statistics.')
ethTXBroadcasts = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 34), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXBroadcasts.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXBroadcasts.setDescription('Number of Tx packets since the last unit (re)start or purification of statistics, which destination address contained broadcast address.')
ethTXMulticasts = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 35), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXMulticasts.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXMulticasts.setDescription('Number of Tx packets since the last unit (re)start or purification of statistics, which destination address contained multicast address.')
ethTXDones = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 36), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXDones.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXDones.setDescription('Number of packets successfully transmitted (Tx) since the last unit (re)start or purification of statistics.')
ethTXLengthCheckErrors = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 38), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXLengthCheckErrors.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXLengthCheckErrors.setDescription('Number of Tx frames since the last unit (re)start or purification of statistics, where length field in the packet does not match the actual data byte length and is not a Type Field')
ethTXCRCErrors = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 39), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXCRCErrors.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXCRCErrors.setDescription('Number of Tx frames since the last unit (re)start or purification of statistics, where CRC does not match the internally generated CRC.')
ethTXCollisions = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 40), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXCollisions.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXCollisions.setDescription('Number of collisions the current packet incurred during transmission (Tx) attempts. Note: Bits 19 through 16 are the collision count on any successfully transmitted packet and as such will not show the possible maximum count of 16 collisions.')
ethTXByteCounterHi = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 41), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXByteCounterHi.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXByteCounterHi.setDescription('Total count of bytes transmitted (Tx) on the wire not including collided bytes (bits 31:0) since the last unit (re)start or purification of statistics.')
ethTXByteCounterLow = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 42), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethTXByteCounterLow.setStatus('mandatory')
if mibBuilder.loadTexts: ethTXByteCounterLow.setDescription('Total count of bytes transmitted (Tx) on the wire not including collided bytes (bits 62:32) since the last unit (re)start or purification of statistics.')
ethGFPFCSErrors = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 44), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethGFPFCSErrors.setStatus('mandatory')
if mibBuilder.loadTexts: ethGFPFCSErrors.setDescription('Number of generic framing procedure (GFP) frames with CRC errors received by the de-encapsulation block since the last unit (re)start or purification of statistics.')
ethGFPCHECErrors = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 45), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethGFPCHECErrors.setStatus('mandatory')
if mibBuilder.loadTexts: ethGFPCHECErrors.setDescription('Number of generic framing procedure (GFP) frames with CHEC errors received by the de-encapsulation block since the last unit (re)start or purification of statistics.')
ethGFPDropedFrames = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 46), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethGFPDropedFrames.setStatus('mandatory')
if mibBuilder.loadTexts: ethGFPDropedFrames.setDescription('Number of generic framing procedure (GFP) frames that were dropped in the de-encapsulation block since the last unit (re)start or purification of statistics.')
ethGFPDelineationErrors = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 47), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethGFPDelineationErrors.setStatus('mandatory')
if mibBuilder.loadTexts: ethGFPDelineationErrors.setDescription("Number of 'lost of synchronization' events since the last unit (re)start or purification of statistics.")
ethQOSRXQ1Frames = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 48), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethQOSRXQ1Frames.setStatus('mandatory')
if mibBuilder.loadTexts: ethQOSRXQ1Frames.setDescription('Number of frames received on Q1 since the last unit (re)start or purification of statistics.')
ethQOSRXQ1Dropped = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 49), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethQOSRXQ1Dropped.setStatus('mandatory')
if mibBuilder.loadTexts: ethQOSRXQ1Dropped.setDescription('Number of frames dropped on Q1 since the last unit (re)start or purification of statistics.')
ethQOSRXQ2Frames = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 50), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethQOSRXQ2Frames.setStatus('mandatory')
if mibBuilder.loadTexts: ethQOSRXQ2Frames.setDescription('Number of frames received on Q2 since the last unit (re)start or purification of statistics.')
ethQOSRXQ2Dropped = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 51), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethQOSRXQ2Dropped.setStatus('mandatory')
if mibBuilder.loadTexts: ethQOSRXQ2Dropped.setDescription('Number of frames dropped on Q2 since the last unit (re)start or purification of statistics.')
ethQOSTXFrames = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 52), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethQOSTXFrames.setStatus('mandatory')
if mibBuilder.loadTexts: ethQOSTXFrames.setDescription('Number of frames passed through TX FIFO since the last unit (re)start or purification of statistics.')
ethQOSTXDropped = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 53), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ethQOSTXDropped.setStatus('mandatory')
if mibBuilder.loadTexts: ethQOSTXDropped.setDescription('Number of frames dropped in TX FIFO since the last unit (re)start or purification of statistics.')
e1t1StatTable = MibTable((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 3), )
if mibBuilder.loadTexts: e1t1StatTable.setStatus('mandatory')
if mibBuilder.loadTexts: e1t1StatTable.setDescription('E1 (T1) status Table.')
e1t1StatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 3, 1), )
ifEntry.registerAugmentions(("SAF-IPRADIO", "e1t1StatEntry"))
e1t1StatEntry.setIndexNames(*ifEntry.getIndexNames())
if mibBuilder.loadTexts: e1t1StatEntry.setStatus('mandatory')
if mibBuilder.loadTexts: e1t1StatEntry.setDescription('Entry containing objects in E1 (T1) table')
e1t1LOS = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: e1t1LOS.setStatus('mandatory')
if mibBuilder.loadTexts: e1t1LOS.setDescription('if signal loss present')
e1t1AIS = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: e1t1AIS.setStatus('mandatory')
if mibBuilder.loadTexts: e1t1AIS.setDescription('if AIS present')
e1t1ChannelNr = MibTableColumn((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: e1t1ChannelNr.setStatus('mandatory')
if mibBuilder.loadTexts: e1t1ChannelNr.setDescription('e1 channel number (it is not associated with interface number - ifEntry)')
modemCountTime = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemCountTime.setStatus('mandatory')
if mibBuilder.loadTexts: modemCountTime.setDescription('Count time in seconds')
modemErroredBlock = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemErroredBlock.setStatus('mandatory')
if mibBuilder.loadTexts: modemErroredBlock.setDescription('Errored block')
modemErroredSecond = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemErroredSecond.setStatus('mandatory')
if mibBuilder.loadTexts: modemErroredSecond.setDescription('Errored second')
modemSeverelyErroredSecond = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemSeverelyErroredSecond.setStatus('mandatory')
if mibBuilder.loadTexts: modemSeverelyErroredSecond.setDescription('Severely errored second')
modemBackgroundBlockErrror = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemBackgroundBlockErrror.setStatus('mandatory')
if mibBuilder.loadTexts: modemBackgroundBlockErrror.setDescription('Background Block Error')
modemTotalBlockNumber = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemTotalBlockNumber.setStatus('mandatory')
if mibBuilder.loadTexts: modemTotalBlockNumber.setDescription('Total Block Number')
modemErroredSecondRatio = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 7), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemErroredSecondRatio.setStatus('mandatory')
if mibBuilder.loadTexts: modemErroredSecondRatio.setDescription('Errorred Second Ratio')
modemSeverelyErroredSecondRatio = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 8), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemSeverelyErroredSecondRatio.setStatus('mandatory')
if mibBuilder.loadTexts: modemSeverelyErroredSecondRatio.setDescription('Severely Errorred Second Ratio')
modemBackgroundBlockErrorRatio = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 9), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemBackgroundBlockErrorRatio.setStatus('mandatory')
if mibBuilder.loadTexts: modemBackgroundBlockErrorRatio.setDescription('Background Block Error Ratio')
modemUptime = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemUptime.setStatus('mandatory')
if mibBuilder.loadTexts: modemUptime.setDescription('Uptime (s)')
modemUnavailtime = MibScalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: modemUnavailtime.setStatus('mandatory')
if mibBuilder.loadTexts: modemUnavailtime.setDescription('Unavailtime (s)')
mibBuilder.exportSymbols("SAF-IPRADIO", ethTXByteCounterLow=ethTXByteCounterLow, aTPCEntry=aTPCEntry, radioRxFrequency=radioRxFrequency, ethGFPCHECErrors=ethGFPCHECErrors, e1t1LOS=e1t1LOS, vlanPortmap=vlanPortmap, vlanRowStatus=vlanRowStatus, modemTable=modemTable, ipRadioCfgNetwork=ipRadioCfgNetwork, radioTxFrequency=radioTxFrequency, vlanEntry=vlanEntry, radioName=radioName, modemInternalAGCgain=modemInternalAGCgain, modemACMtotalCapacity=modemACMtotalCapacity, sysTemperature=sysTemperature, safip=safip, ethRXDones=ethRXDones, ethRXCRCErrors=ethRXCRCErrors, ethRXDvEvent=ethRXDvEvent, ethRXPrevPktDropped=ethRXPrevPktDropped, radioTxMute=radioTxMute, ethTXMulticasts=ethTXMulticasts, modemLastAcqError=modemLastAcqError, ethQOSRXQ1Dropped=ethQOSRXQ1Dropped, ethTXNonExcessiveDefers=ethTXNonExcessiveDefers, modemIndex=modemIndex, ethQOSTXFrames=ethQOSTXFrames, modemBandwith=modemBandwith, radioDuplexShift=radioDuplexShift, vlanCfgStat=vlanCfgStat, ipRadioCfgGeneral=ipRadioCfgGeneral, ethQOSRXQ1Frames=ethQOSRXQ1Frames, radioEntry=radioEntry, vlansEnabled=vlansEnabled, ethTXBackpresEvents=ethTXBackpresEvents, ethTXCollisions=ethTXCollisions, ethRXLengthCheckerrorsErrors=ethRXLengthCheckerrorsErrors, product=product, ethRXFalseCarrierErrors=ethRXFalseCarrierErrors, radioSide=radioSide, saf=saf, modemACMmodulationMax=modemACMmodulationMax, ethTXControlFrames=ethTXControlFrames, restartcpu=restartcpu, e1t1StatEntry=e1t1StatEntry, vlanNumber=vlanNumber, vlanPortType=vlanPortType, modemSeverelyErroredSecond=modemSeverelyErroredSecond, localIp=localIp, ipRadioCfg=ipRadioCfg, ethRXByteCounterLow=ethRXByteCounterLow, modemTotalCapacity=modemTotalCapacity, radioRxLevel=radioRxLevel, atpcTxPowerCorrection=atpcTxPowerCorrection, loopback_tributary_mask=loopback_tributary_mask, localIpMask=localIpMask, modemEthernetCapacity=modemEthernetCapacity, modemBackgroundBlockErrror=modemBackgroundBlockErrror, ipRadioMgmt=ipRadioMgmt, ethTXLateCollisions=ethTXLateCollisions, ethRXControlFrames=ethRXControlFrames, tehnika=tehnika, ethRXVlanTagsDetected=ethRXVlanTagsDetected, modemUnavailtime=modemUnavailtime, e1t1StatTable=e1t1StatTable, modemCarrierOffset=modemCarrierOffset, modemSymbolRateRx=modemSymbolRateRx, ethTXGiants=ethTXGiants, description=description, ethRXOutOfRangeErrors=ethRXOutOfRangeErrors, vlanFid=vlanFid, radioTable=radioTable, ethRXUnsupOpcodes=ethRXUnsupOpcodes, e1t1ChannelNr=e1t1ChannelNr, ethTXByteCounterHi=ethTXByteCounterHi, modemUptime=modemUptime, ethTXWireByteCounterLow=ethTXWireByteCounterLow, aTPCTable=aTPCTable, atpcIndex=atpcIndex, ethTXVlanTags=ethTXVlanTags, ethRXTruncatedFrames=ethRXTruncatedFrames, pointToPoint=pointToPoint, remoteIp=remoteIp, vlanTable=vlanTable, ipRadio=ipRadio, sysDateAndTime=sysDateAndTime, modemRowStatus=modemRowStatus, writeConfig=writeConfig, ethRXBroadcasts=ethRXBroadcasts, ethRXMulticasts=ethRXMulticasts, ethRXDribleNibbles=ethRXDribleNibbles, ethTXDones=ethTXDones, ethRXPauseFrames=ethRXPauseFrames, modemSymbolRateTx=modemSymbolRateTx, loopbacks=loopbacks, radioGenStatus=radioGenStatus, modemLDPCdecoderStress=modemLDPCdecoderStress, modemStandard=modemStandard, licenseMask=licenseMask, ethGFPDelineationErrors=ethGFPDelineationErrors, ipRadioStat=ipRadioStat, e1t1AIS=e1t1AIS, modemErroredBlock=modemErroredBlock, modemAcqStatus=modemAcqStatus, modemGeneralStatus=modemGeneralStatus, modemSeverelyErroredSecondRatio=modemSeverelyErroredSecondRatio, modemACMethernetCapacity=modemACMethernetCapacity, modemErroredSecondRatio=modemErroredSecondRatio, modemACMmodulationMin=modemACMmodulationMin, ethRXCodeErrors=ethRXCodeErrors, modemBackgroundBlockErrorRatio=modemBackgroundBlockErrorRatio, ethTXWireByteCounterHi=ethTXWireByteCounterHi, ipRadioStatEth=ipRadioStatEth, modemCountTime=modemCountTime, ethTXLengthCheckErrors=ethTXLengthCheckErrors, modemStatistics=modemStatistics, ethTXBroadcasts=ethTXBroadcasts, modemTotalBlockNumber=modemTotalBlockNumber, microwaveRadio=microwaveRadio, radioIndex=radioIndex, ethTXUnderruns=ethTXUnderruns, modemE1T1ChannelMask=modemE1T1ChannelMask, modemACMengine=modemACMengine, modemEntry=modemEntry, ethRXLongEvents=ethRXLongEvents, ethTXMaxCollisions=ethTXMaxCollisions, ethQOSRXQ2Frames=ethQOSRXQ2Frames, ethTXExcessiveDefers=ethTXExcessiveDefers, ethTXCRCErrors=ethTXCRCErrors, ethRXByteCounterHi=ethRXByteCounterHi, modemE1T1Channels=modemE1T1Channels, ethQOSTXDropped=ethQOSTXDropped, ethGFPDropedFrames=ethGFPDropedFrames, radioTxPower=radioTxPower, modemModulation=modemModulation, modemErroredSecond=modemErroredSecond, license=license, atpcEnabled=atpcEnabled, ethQOSRXQ2Dropped=ethQOSRXQ2Dropped, ethGFPFCSErrors=ethGFPFCSErrors, radioLoopback=radioLoopback, ethTXPauseFrames=ethTXPauseFrames, modemRadialMSE=modemRadialMSE)
| (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, single_value_constraint, value_size_constraint, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection')
(if_entry,) = mibBuilder.importSymbols('IF-MIB', 'ifEntry')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(counter32, integer32, gauge32, mib_identifier, time_ticks, ip_address, bits, counter64, object_identity, iso, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, unsigned32, enterprises) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'Integer32', 'Gauge32', 'MibIdentifier', 'TimeTicks', 'IpAddress', 'Bits', 'Counter64', 'ObjectIdentity', 'iso', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'Unsigned32', 'enterprises')
(display_string, textual_convention, date_and_time) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'DateAndTime')
saf = mib_identifier((1, 3, 6, 1, 4, 1, 7571))
tehnika = mib_identifier((1, 3, 6, 1, 4, 1, 7571, 100))
microwave_radio = mib_identifier((1, 3, 6, 1, 4, 1, 7571, 100, 1))
point_to_point = mib_identifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1))
safip = mib_identifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5))
ip_radio = mib_identifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1))
ip_radio_cfg = mib_identifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1))
ip_radio_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 2))
ip_radio_stat = mib_identifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3))
ip_radio_cfg_general = mib_identifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1))
ip_radio_cfg_network = mib_identifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 2))
ip_radio_stat_eth = mib_identifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2))
modem_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4))
product = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
product.setStatus('mandatory')
if mibBuilder.loadTexts:
product.setDescription('Name of the model.')
description = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
description.setStatus('mandatory')
if mibBuilder.loadTexts:
description.setDescription('Description of the model.')
radio_name = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
radioName.setStatus('mandatory')
if mibBuilder.loadTexts:
radioName.setDescription('(same as PROMPT>).')
sys_date_and_time = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 4), date_and_time()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sysDateAndTime.setStatus('mandatory')
if mibBuilder.loadTexts:
sysDateAndTime.setDescription('Current date and time set. For SET tenths of seconds ignored.')
sys_temperature = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sysTemperature.setStatus('mandatory')
if mibBuilder.loadTexts:
sysTemperature.setDescription('Unit temperature in degrees by Celsius. NB - sw before 2009.03.18 shows in *10 degrees')
license = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
license.setStatus('mandatory')
if mibBuilder.loadTexts:
license.setDescription("To set license information. Read allways 'OK'.")
license_mask = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
licenseMask.setStatus('mandatory')
if mibBuilder.loadTexts:
licenseMask.setDescription('Read license mask.')
write_config = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 2, 1), integer32()).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
writeConfig.setStatus('mandatory')
if mibBuilder.loadTexts:
writeConfig.setDescription('Write Config')
restartcpu = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 2, 2), integer32()).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
restartcpu.setStatus('mandatory')
if mibBuilder.loadTexts:
restartcpu.setDescription("Restart of Mng CPU. Values: 1 - 'cold' restart; 3 - sw")
loopbacks = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 4, 5, 12))).clone(namedValues=named_values(('error', 1), ('off', 2), ('if', 4), ('modem', 5), ('multi', 12)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
loopbacks.setStatus('mandatory')
if mibBuilder.loadTexts:
loopbacks.setDescription("Set loopback for 1 minute. value error(1) is not writable. Status of loopbacks. Values: 1 - 'error' (not writable); 2 - 'off'; 3 - 'rf' (radio frequency loopback); N/A 2008.10.21 4 - 'if' (intermediate frequency loopback); 5 - 'modem' (modem loopback); 6 - 'far' (far end loopback); N/A 2008.10.21 7 - 'ethernet' (Ethernet loopback); N/A 2008.10.21 8 - 'e1t1-1' (E1/T1 channel 1 loopback); N/A from firmware 1.51 9 - 'e1t1-2' (E1/T1 channel 2 loopback); N/A from firmware 1.51 10 - 'e1t1-3' (E1/T1 channel 3 loopback); N/A from firmware 1.51 11 - 'e1t1-4' (E1/T1 channel 4 loopback); N/A from firmware 1.51 12 - 'multi' (E1/T1 multi - look channel tributary mask)")
loopback_tributary_mask = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 2, 4), integer32()).setLabel('loopback-tributary-mask').setMaxAccess('readonly')
if mibBuilder.loadTexts:
loopback_tributary_mask.setStatus('mandatory')
if mibBuilder.loadTexts:
loopback_tributary_mask.setDescription('Loopback mask for E1/T1 channels')
local_ip = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 2, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
localIp.setStatus('mandatory')
if mibBuilder.loadTexts:
localIp.setDescription('IPv4 Ethernet address of the local unit in a number format(XXX.XXX.XXX.XXX)')
local_ip_mask = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 2, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
localIpMask.setStatus('mandatory')
if mibBuilder.loadTexts:
localIpMask.setDescription('IPv4 Ethernet mask of the local unit in a number format (XXX.XXX.XXX.XXX)')
remote_ip = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 2, 3), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
remoteIp.setStatus('mandatory')
if mibBuilder.loadTexts:
remoteIp.setDescription('IPv4 Ethernet address of the remote unit in a number format (XXX.XXX.XXX.XXX).')
radio_table = mib_table((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10))
if mibBuilder.loadTexts:
radioTable.setStatus('mandatory')
if mibBuilder.loadTexts:
radioTable.setDescription('Radio table.')
radio_entry = mib_table_row((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1)).setIndexNames((0, 'SAF-IPRADIO', 'radioIndex'))
if mibBuilder.loadTexts:
radioEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
radioEntry.setDescription('Entry containing objects in radio table.')
radio_index = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('local', 1), ('remote', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
radioIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
radioIndex.setDescription("A unique value for each radio. Its value represents UNIT: 1 - for 'local'; 2 - for 'remote'")
radio_gen_status = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
radioGenStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
radioGenStatus.setDescription("A General status of each radio: 1 - 'OK'; 2 - 'error'")
radio_side = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('high', 1), ('low', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
radioSide.setStatus('mandatory')
if mibBuilder.loadTexts:
radioSide.setDescription('Side for duplex communication.')
radio_tx_power = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
radioTxPower.setStatus('mandatory')
if mibBuilder.loadTexts:
radioTxPower.setDescription('Tx power of radio transmitter in dBm.')
radio_rx_level = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
radioRxLevel.setStatus('mandatory')
if mibBuilder.loadTexts:
radioRxLevel.setDescription('Received signal level in dBm.')
radio_duplex_shift = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
radioDuplexShift.setStatus('mandatory')
if mibBuilder.loadTexts:
radioDuplexShift.setDescription('Utilized duplex shift in KHz.')
radio_loopback = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
radioLoopback.setStatus('mandatory')
if mibBuilder.loadTexts:
radioLoopback.setDescription('Radio loopback on/off. To set use loopback command.')
radio_tx_mute = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
radioTxMute.setStatus('mandatory')
if mibBuilder.loadTexts:
radioTxMute.setDescription("Status of 'Tx mute': 1 - Tx is muted; 2 - Tx is not muted.")
radio_tx_frequency = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
radioTxFrequency.setStatus('mandatory')
if mibBuilder.loadTexts:
radioTxFrequency.setDescription('Tx frequency in kHz.')
radio_rx_frequency = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 10, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
radioRxFrequency.setStatus('mandatory')
if mibBuilder.loadTexts:
radioRxFrequency.setDescription('Rx frequency in kHz.')
a_tpc_table = mib_table((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 11))
if mibBuilder.loadTexts:
aTPCTable.setStatus('mandatory')
if mibBuilder.loadTexts:
aTPCTable.setDescription('ATPC table')
a_tpc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 11, 1)).setIndexNames((0, 'SAF-IPRADIO', 'atpcIndex'))
if mibBuilder.loadTexts:
aTPCEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
aTPCEntry.setDescription('Entry containing objects in ATPC table.')
atpc_index = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 11, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('local', 1), ('remote', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
atpcIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
atpcIndex.setDescription("Its value represents UNIT 1 for 'local'; 2 for 'remote'.")
atpc_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 11, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atpcEnabled.setStatus('mandatory')
if mibBuilder.loadTexts:
atpcEnabled.setDescription("ATPC status: 1 for 'on'; 2 for 'off'.")
atpc_tx_power_correction = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 11, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
atpcTxPowerCorrection.setStatus('mandatory')
if mibBuilder.loadTexts:
atpcTxPowerCorrection.setDescription('ATPC Tx power correction in dBm.')
modem_table = mib_table((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12))
if mibBuilder.loadTexts:
modemTable.setStatus('mandatory')
if mibBuilder.loadTexts:
modemTable.setDescription('CFIP modem table.')
modem_entry = mib_table_row((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1)).setIndexNames((0, 'SAF-IPRADIO', 'modemIndex'))
if mibBuilder.loadTexts:
modemEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
modemEntry.setDescription('Entry containing objects in modem table.')
modem_index = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('local', 1), ('remote', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
modemIndex.setDescription('Value represents UNIT: 1 for local; 2 for remote.')
modem_general_status = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemGeneralStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
modemGeneralStatus.setDescription("A General status of each modem: 1 - 'OK'; 2 - 'error'")
modem_bandwith = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
modemBandwith.setStatus('mandatory')
if mibBuilder.loadTexts:
modemBandwith.setDescription('Modem bandwidth set in KHz.')
modem_e1_t1_channels = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
modemE1T1Channels.setStatus('mandatory')
if mibBuilder.loadTexts:
modemE1T1Channels.setDescription('Number of E1 or T1 channels set.')
modem_modulation = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 33, 34, 40, 41, 42, 49, 50, 57, 58))).clone(namedValues=named_values(('qpsk', 1), ('psk8', 2), ('qam16', 3), ('qam32', 4), ('qam64', 5), ('qam128', 6), ('qam256', 7), ('qpsklimited', 8), ('wqpsk', 9), ('wpsk8', 10), ('wqam16', 11), ('wqam32', 12), ('wqam64', 13), ('wqam128', 14), ('wqam256', 15), ('acmqpsk', 17), ('acmpsk8', 18), ('acmqam16', 19), ('acmqam32', 20), ('acmqam64', 21), ('acmqam128', 22), ('acmqam256', 23), ('acmwqpsk', 25), ('acmwpsk8', 26), ('acmwqam16', 27), ('acmwqam32', 28), ('acmwqam64', 29), ('acmwqam128', 30), ('acmwqam256', 31), ('qam4', 33), ('qam8', 34), ('qam4limited', 40), ('wqam4', 41), ('wqam8', 42), ('acmqam4', 49), ('acmqam8', 50), ('acmwqam4', 57), ('acmwqam8', 58)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemModulation.setStatus('mandatory')
if mibBuilder.loadTexts:
modemModulation.setDescription('Modem modulation set. Modulution values are following: QPSK - 1, 8PSK - 2, 16QAM - 3, 32QAM - 4, 64QAM - 5, 128QAM - 6, 256QAM - 7. The combination of wide band and ACM calculates as (modulation + 8*is_wide + 16*is_ACM). Note: not all of listed modulations supported by hardware. Plese check manual.')
modem_total_capacity = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemTotalCapacity.setStatus('mandatory')
if mibBuilder.loadTexts:
modemTotalCapacity.setDescription('Total capacity set in Kbps.')
modem_ethernet_capacity = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemEthernetCapacity.setStatus('mandatory')
if mibBuilder.loadTexts:
modemEthernetCapacity.setDescription('Ethernet capacity set in Kbps.')
modem_acq_status = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemAcqStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
modemAcqStatus.setDescription(' ')
modem_last_acq_error = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('success', 1), ('erragc', 2), ('errtiming', 3), ('errfreqsweep', 4), ('errmse', 5), ('errbit', 6), ('errservice', 7), ('errblind', 8), ('errtimeout', 9), ('errstopped', 10), ('errfatal', 11)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemLastAcqError.setStatus('mandatory')
if mibBuilder.loadTexts:
modemLastAcqError.setDescription(' ')
modem_radial_mse = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemRadialMSE.setStatus('mandatory')
if mibBuilder.loadTexts:
modemRadialMSE.setDescription("Radial mean square error value *10 in dB. Radial MSE is a method for estimating the signal to noise ratio. ACM engine uses normalized MSE, which is the inverse of SNR. It is calculated by dividing the estimated MSE level with the energy of the received constellation. Radial MSE peak value threshold is dependent on modulation used and LDPC code rate. In case of QPSK it is -8 dB (-10.5 for 'wide'), 16APSK - -13 dB (-18 for 'wide') and 32APSK - -15.5 dB (-21.5 for 'wide'). If the value trespasses this threshold, BER at the output of LDPC decoder will reach the value of 1.0e-06.")
modem_internal_ag_cgain = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemInternalAGCgain.setStatus('mandatory')
if mibBuilder.loadTexts:
modemInternalAGCgain.setDescription(' dBm ')
modem_carrier_offset = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemCarrierOffset.setStatus('mandatory')
if mibBuilder.loadTexts:
modemCarrierOffset.setDescription('Carrier frequency offset in Hz.')
modem_symbol_rate_tx = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 13), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemSymbolRateTx.setStatus('mandatory')
if mibBuilder.loadTexts:
modemSymbolRateTx.setDescription(' kHz ')
modem_symbol_rate_rx = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemSymbolRateRx.setStatus('mandatory')
if mibBuilder.loadTexts:
modemSymbolRateRx.setDescription(' kHz ')
modem_ldp_cdecoder_stress = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 15), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemLDPCdecoderStress.setStatus('mandatory')
if mibBuilder.loadTexts:
modemLDPCdecoderStress.setDescription("The load of LDPC (low-density parity-check code) decoder. The LDPC is monitored for the number of errors being corrected on the input of LDPC decoder. LDPC stress value thresholds @ BER 1.0e-06: - for standard settings ~4.0e-02; - for 'wide' option ~ 1.0e-03. As long as LDPC stress value is under the specified thresholds, amount of errors (and BER itself) on the output of LDPC remains at zero level.")
modem_ac_mengine = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemACMengine.setStatus('mandatory')
if mibBuilder.loadTexts:
modemACMengine.setDescription("Status of ACM engine. When 'on', value '1' is shown, when 'off' - value is '2'.")
modem_ac_mmodulation_min = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 33, 34, 40, 41, 42, 49, 50, 57, 58))).clone(namedValues=named_values(('qpsk', 1), ('psk8', 2), ('qam16', 3), ('qam32', 4), ('qam64', 5), ('qam128', 6), ('qam256', 7), ('qpsklimited', 8), ('wqpsk', 9), ('wpsk8', 10), ('wqam16', 11), ('wqam32', 12), ('wqam64', 13), ('wqam128', 14), ('wqam256', 15), ('acmqpsk', 17), ('acmpsk8', 18), ('acmqam16', 19), ('acmqam32', 20), ('acmqam64', 21), ('acmqam128', 22), ('acmqam256', 23), ('acmwqpsk', 25), ('acmwpsk8', 26), ('acmwqam16', 27), ('acmwqam32', 28), ('acmwqam64', 29), ('acmwqam128', 30), ('acmwqam256', 31), ('qam4', 33), ('qam8', 34), ('qam4limited', 40), ('wqam4', 41), ('wqam8', 42), ('acmqam4', 49), ('acmqam8', 50), ('acmwqam4', 57), ('acmwqam8', 58)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
modemACMmodulationMin.setStatus('mandatory')
if mibBuilder.loadTexts:
modemACMmodulationMin.setDescription('Modem modulation set. Modulution values are following: QPSK - 1, 8PSK - 2, 16QAM - 3, 32QAM - 4, 64QAM - 5, 128QAM - 6, 256QAM - 7. The combination of wide band and ACM calculates as (modulation + 8*is_wide + 16*is_ACM). Note: not all of listed modulations supported by hardware. Plese check manual.')
modem_ac_mtotal_capacity = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 18), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemACMtotalCapacity.setStatus('mandatory')
if mibBuilder.loadTexts:
modemACMtotalCapacity.setDescription('Total capacity in Kbps set by ACM.')
modem_ac_methernet_capacity = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 19), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemACMethernetCapacity.setStatus('mandatory')
if mibBuilder.loadTexts:
modemACMethernetCapacity.setDescription('Ethernet capacity in Kbps set by ACM.')
modem_standard = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('etsi', 1), ('ansi', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
modemStandard.setStatus('mandatory')
if mibBuilder.loadTexts:
modemStandard.setDescription('Modem operational standard ETSI or ANSI')
modem_e1_t1_channel_mask = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 21), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
modemE1T1ChannelMask.setStatus('mandatory')
if mibBuilder.loadTexts:
modemE1T1ChannelMask.setDescription('E1 or T1 channel mask 0x00 - 0x0f')
modem_ac_mmodulation_max = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 33, 34, 40, 41, 42, 49, 50, 57, 58))).clone(namedValues=named_values(('qpsk', 1), ('psk8', 2), ('qam16', 3), ('qam32', 4), ('qam64', 5), ('qam128', 6), ('qam256', 7), ('qpsklimited', 8), ('wqpsk', 9), ('wpsk8', 10), ('wqam16', 11), ('wqam32', 12), ('wqam64', 13), ('wqam128', 14), ('wqam256', 15), ('acmqpsk', 17), ('acmpsk8', 18), ('acmqam16', 19), ('acmqam32', 20), ('acmqam64', 21), ('acmqam128', 22), ('acmqam256', 23), ('acmwqpsk', 25), ('acmwpsk8', 26), ('acmwqam16', 27), ('acmwqam32', 28), ('acmwqam64', 29), ('acmwqam128', 30), ('acmwqam256', 31), ('qam4', 33), ('qam8', 34), ('qam4limited', 40), ('wqam4', 41), ('wqam8', 42), ('acmqam4', 49), ('acmqam8', 50), ('acmwqam4', 57), ('acmwqam8', 58)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
modemACMmodulationMax.setStatus('mandatory')
if mibBuilder.loadTexts:
modemACMmodulationMax.setDescription('Modem modulation set. Modulution values are following: QPSK - 1, 8PSK - 2, 16QAM - 3, 32QAM - 4, 64QAM - 5, 128QAM - 6, 256QAM - 7. The combination of wide band and ACM calculates as (modulation + 8*is_wide + 16*is_ACM). Note: as PSK modulations are now physicaly deprecated, theese are replased with QAM, so for new QAM modulations there are modificatior +32. Note: not all of listed modulations supported by hardware. Plese check manual.')
modem_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 12, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('active', 1), ('notReady', 3), ('undo', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
modemRowStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
modemRowStatus.setDescription('Row status - to update written data for modemBandwith, modemACMmodulationMin, modemACMmodulationMax, modemE1T1ChannelMask. ')
vlans_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2), ('reset', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
vlansEnabled.setStatus('mandatory')
if mibBuilder.loadTexts:
vlansEnabled.setDescription('unit temperature *10 degrees Celsius')
vlan_table = mib_table((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14))
if mibBuilder.loadTexts:
vlanTable.setStatus('mandatory')
if mibBuilder.loadTexts:
vlanTable.setDescription('Vlan table')
vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14, 1))
ifEntry.registerAugmentions(('SAF-IPRADIO', 'vlanEntry'))
vlanEntry.setIndexNames(*ifEntry.getIndexNames())
if mibBuilder.loadTexts:
vlanEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
vlanEntry.setDescription('entry containing vlan objects')
vlan_number = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
vlanNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
vlanNumber.setDescription('A unique value for each vlan. ')
vlan_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('management', 1), ('none', 2), ('traffic', 3), ('endpoint', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
vlanPortType.setStatus('mandatory')
if mibBuilder.loadTexts:
vlanPortType.setDescription('VLAN port type management, traffic or endpoint ')
vlan_portmap = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
vlanPortmap.setStatus('mandatory')
if mibBuilder.loadTexts:
vlanPortmap.setDescription('display port bindings bitfield 111(bin) ')
vlan_fid = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
vlanFid.setStatus('optional')
if mibBuilder.loadTexts:
vlanFid.setDescription('a filtering identifier (assigned automagically)')
vlan_cfg_stat = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enable', 1), ('disable', 2), ('clear', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
vlanCfgStat.setStatus('mandatory')
if mibBuilder.loadTexts:
vlanCfgStat.setDescription('enable/disable vlan # or clear row data')
vlan_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 1, 1, 14, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('active', 1), ('notReady', 3), ('undo', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
vlanRowStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
vlanRowStatus.setDescription('Row status (execute configuration on active) Changing any table value sets this value into state notReady. To update row status write value active(1) into this variable.')
eth_rx_truncated_frames = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXTruncatedFrames.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXTruncatedFrames.setDescription('Number of truncated received frames since unit start or statistics reset. ')
eth_rx_long_events = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXLongEvents.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXLongEvents.setDescription('Number of frames having byte count greater than MAXIMUM FRAME SIZE parameter (1518, 1536 or 1916 bytes) since unit start or statistics reset.')
eth_rx_vlan_tags_detected = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXVlanTagsDetected.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXVlanTagsDetected.setDescription('Number of VLAN Tags detected since unit start or statistics reset.')
eth_rx_unsup_opcodes = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXUnsupOpcodes.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXUnsupOpcodes.setDescription('Number of frames recognized as control frames but contained an Unknown Opcode since unit start or statistics reset.')
eth_rx_pause_frames = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXPauseFrames.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXPauseFrames.setDescription('Number of frames received as control frames with valid PAUSE opcodes since unit start or statistics reset.')
eth_rx_control_frames = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXControlFrames.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXControlFrames.setDescription('Number of frames received as control frames since unit start or statistics reset.')
eth_rx_drible_nibbles = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXDribleNibbles.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXDribleNibbles.setDescription('Indicates that following the end of the packet additional 1 to 7 bits are received. A single nibble, named the dribble nibble, is formed but not sent to the system;')
eth_rx_broadcasts = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXBroadcasts.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXBroadcasts.setDescription('Number of packets, which destination address contained broadcast address, since unit start or statiistics reset.')
eth_rx_multicasts = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXMulticasts.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXMulticasts.setDescription('Number of packets, which destination address contained multicast address since unit start or statistics reset.')
eth_rx_dones = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXDones.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXDones.setDescription('Reception of packets successfully completed. Number of completed packets since unit start or statistics reset.')
eth_rx_out_of_range_errors = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXOutOfRangeErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXOutOfRangeErrors.setDescription('Number of frames where Type/Length field larger than 1518 (Type Field) bytes since unit start or statistics reset.')
eth_rx_length_checkerrors_errors = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXLengthCheckerrorsErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXLengthCheckerrorsErrors.setDescription('Number of frames where frame length field in the packet does not match the actual data byte length and is not a Type Field since unit start or statistics reset.')
eth_rxcrc_errors = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXCRCErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXCRCErrors.setDescription('Number of frames where frame CRC do not match the internally generated CRC since unit start or statistics reset')
eth_rx_code_errors = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXCodeErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXCodeErrors.setDescription('Number of packets where one or more nibbles are signalled as errors during reception of the packet since unit start or statistics reset.')
eth_rx_false_carrier_errors = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXFalseCarrierErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXFalseCarrierErrors.setDescription('Indicates that following the last receive statistics vector, a false carrier was detected, noted and reported with this the next receive statistics. The false carrier is not associated with this packet. False carrier is activated on the receive channel that does not result in a packet receive attempt being made;')
eth_rx_dv_event = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXDvEvent.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXDvEvent.setDescription('Number of the last receive (Rx) events seen being too short to be valid packets since the last unit (re)start or purification of statistics.')
eth_rx_prev_pkt_dropped = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXPrevPktDropped.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXPrevPktDropped.setDescription('Indicates that since the last receive (Rx), a packet is dropped (i.e. interframe gap too small).')
eth_rx_byte_counter_hi = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXByteCounterHi.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXByteCounterHi.setDescription('Total number of bytes received (Rx) on the wire since the last unit (re)start or purification of statistics, not counting collided bytes (bits 31:0).')
eth_rx_byte_counter_low = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethRXByteCounterLow.setStatus('mandatory')
if mibBuilder.loadTexts:
ethRXByteCounterLow.setDescription('Total number of bytes received (Rx) on the wire since the last unit (re)start or purification of statistics, not counting collided bytes (bits 62:32).')
eth_tx_vlan_tags = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXVlanTags.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXVlanTags.setDescription('Number of VLAN tagged Tx packets since the last unit (re)start or purification of statistics. 32-bit counter.')
eth_tx_backpres_events = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXBackpresEvents.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXBackpresEvents.setDescription('Number of times Tx carrier-sense-method backpressure was previously applied since the last unit (re)start or purification of statistics.')
eth_tx_pause_frames = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXPauseFrames.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXPauseFrames.setDescription('Number of frames transmitted (Tx) as control frames with valid PAUSE opcodes since the last unit (re)start or purification of statistics.')
eth_tx_control_frames = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXControlFrames.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXControlFrames.setDescription('Number of frames transmitted (Tx) as control frames since the last unit (re)start or purification of statistics.')
eth_tx_wire_byte_counter_hi = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXWireByteCounterHi.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXWireByteCounterHi.setDescription('Total number of bytes transmitted (Tx) on the wire since the last unit (re)start or purification of statistics, including all bytes from collided attempts (bits 31:0).')
eth_tx_wire_byte_counter_low = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 26), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXWireByteCounterLow.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXWireByteCounterLow.setDescription('Total number of bytes transmitted (Tx) on the wire since the last unit (re)start or purification of statistics, including all bytes from collided attempts (bits 62:32).')
eth_tx_underruns = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 28), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXUnderruns.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXUnderruns.setDescription('Number of underruns occured during frame transmission (Tx) since the last unit (re)start or purification of statistics.')
eth_tx_giants = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 29), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXGiants.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXGiants.setDescription('Number of Tx frames having byte count greater than the MAXIMUM FRAME SIZE parameter (1516, 1536 or 1916 bytes) since the last unit (re)start or purification of statistics.')
eth_tx_late_collisions = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 30), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXLateCollisions.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXLateCollisions.setDescription('Number of Tx collisions occurred beyond the collision window (512 bit times) since the last unit (re)start or purification of statistics.')
eth_tx_max_collisions = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 31), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXMaxCollisions.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXMaxCollisions.setDescription('Number of Tx packets aborted after number of collisions exceeded the RETRANSMISSION MAXIMUM parameter since the last unit (re)start or purification of statistics.')
eth_tx_excessive_defers = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 32), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXExcessiveDefers.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXExcessiveDefers.setDescription('Number of Tx packets deferred in excess of 6,071 nibble times in 100 Mbps mode, or 24,287 bit-times in 10 Mbps mode since the last unit (re)start or purification of statistics.')
eth_tx_non_excessive_defers = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 33), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXNonExcessiveDefers.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXNonExcessiveDefers.setDescription('Number of Tx packets deferred for at least one attempt, but less than an excessive defer since the last unit (re)start or purification of statistics.')
eth_tx_broadcasts = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 34), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXBroadcasts.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXBroadcasts.setDescription('Number of Tx packets since the last unit (re)start or purification of statistics, which destination address contained broadcast address.')
eth_tx_multicasts = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 35), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXMulticasts.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXMulticasts.setDescription('Number of Tx packets since the last unit (re)start or purification of statistics, which destination address contained multicast address.')
eth_tx_dones = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 36), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXDones.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXDones.setDescription('Number of packets successfully transmitted (Tx) since the last unit (re)start or purification of statistics.')
eth_tx_length_check_errors = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 38), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXLengthCheckErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXLengthCheckErrors.setDescription('Number of Tx frames since the last unit (re)start or purification of statistics, where length field in the packet does not match the actual data byte length and is not a Type Field')
eth_txcrc_errors = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 39), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXCRCErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXCRCErrors.setDescription('Number of Tx frames since the last unit (re)start or purification of statistics, where CRC does not match the internally generated CRC.')
eth_tx_collisions = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 40), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXCollisions.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXCollisions.setDescription('Number of collisions the current packet incurred during transmission (Tx) attempts. Note: Bits 19 through 16 are the collision count on any successfully transmitted packet and as such will not show the possible maximum count of 16 collisions.')
eth_tx_byte_counter_hi = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 41), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXByteCounterHi.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXByteCounterHi.setDescription('Total count of bytes transmitted (Tx) on the wire not including collided bytes (bits 31:0) since the last unit (re)start or purification of statistics.')
eth_tx_byte_counter_low = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 42), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethTXByteCounterLow.setStatus('mandatory')
if mibBuilder.loadTexts:
ethTXByteCounterLow.setDescription('Total count of bytes transmitted (Tx) on the wire not including collided bytes (bits 62:32) since the last unit (re)start or purification of statistics.')
eth_gfpfcs_errors = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 44), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethGFPFCSErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
ethGFPFCSErrors.setDescription('Number of generic framing procedure (GFP) frames with CRC errors received by the de-encapsulation block since the last unit (re)start or purification of statistics.')
eth_gfpchec_errors = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 45), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethGFPCHECErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
ethGFPCHECErrors.setDescription('Number of generic framing procedure (GFP) frames with CHEC errors received by the de-encapsulation block since the last unit (re)start or purification of statistics.')
eth_gfp_droped_frames = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 46), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethGFPDropedFrames.setStatus('mandatory')
if mibBuilder.loadTexts:
ethGFPDropedFrames.setDescription('Number of generic framing procedure (GFP) frames that were dropped in the de-encapsulation block since the last unit (re)start or purification of statistics.')
eth_gfp_delineation_errors = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 47), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethGFPDelineationErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
ethGFPDelineationErrors.setDescription("Number of 'lost of synchronization' events since the last unit (re)start or purification of statistics.")
eth_qosrxq1_frames = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 48), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethQOSRXQ1Frames.setStatus('mandatory')
if mibBuilder.loadTexts:
ethQOSRXQ1Frames.setDescription('Number of frames received on Q1 since the last unit (re)start or purification of statistics.')
eth_qosrxq1_dropped = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 49), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethQOSRXQ1Dropped.setStatus('mandatory')
if mibBuilder.loadTexts:
ethQOSRXQ1Dropped.setDescription('Number of frames dropped on Q1 since the last unit (re)start or purification of statistics.')
eth_qosrxq2_frames = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 50), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethQOSRXQ2Frames.setStatus('mandatory')
if mibBuilder.loadTexts:
ethQOSRXQ2Frames.setDescription('Number of frames received on Q2 since the last unit (re)start or purification of statistics.')
eth_qosrxq2_dropped = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 51), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethQOSRXQ2Dropped.setStatus('mandatory')
if mibBuilder.loadTexts:
ethQOSRXQ2Dropped.setDescription('Number of frames dropped on Q2 since the last unit (re)start or purification of statistics.')
eth_qostx_frames = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 52), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethQOSTXFrames.setStatus('mandatory')
if mibBuilder.loadTexts:
ethQOSTXFrames.setDescription('Number of frames passed through TX FIFO since the last unit (re)start or purification of statistics.')
eth_qostx_dropped = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 2, 53), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ethQOSTXDropped.setStatus('mandatory')
if mibBuilder.loadTexts:
ethQOSTXDropped.setDescription('Number of frames dropped in TX FIFO since the last unit (re)start or purification of statistics.')
e1t1_stat_table = mib_table((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 3))
if mibBuilder.loadTexts:
e1t1StatTable.setStatus('mandatory')
if mibBuilder.loadTexts:
e1t1StatTable.setDescription('E1 (T1) status Table.')
e1t1_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 3, 1))
ifEntry.registerAugmentions(('SAF-IPRADIO', 'e1t1StatEntry'))
e1t1StatEntry.setIndexNames(*ifEntry.getIndexNames())
if mibBuilder.loadTexts:
e1t1StatEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
e1t1StatEntry.setDescription('Entry containing objects in E1 (T1) table')
e1t1_los = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
e1t1LOS.setStatus('mandatory')
if mibBuilder.loadTexts:
e1t1LOS.setDescription('if signal loss present')
e1t1_ais = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
e1t1AIS.setStatus('mandatory')
if mibBuilder.loadTexts:
e1t1AIS.setDescription('if AIS present')
e1t1_channel_nr = mib_table_column((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
e1t1ChannelNr.setStatus('mandatory')
if mibBuilder.loadTexts:
e1t1ChannelNr.setDescription('e1 channel number (it is not associated with interface number - ifEntry)')
modem_count_time = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemCountTime.setStatus('mandatory')
if mibBuilder.loadTexts:
modemCountTime.setDescription('Count time in seconds')
modem_errored_block = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemErroredBlock.setStatus('mandatory')
if mibBuilder.loadTexts:
modemErroredBlock.setDescription('Errored block')
modem_errored_second = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemErroredSecond.setStatus('mandatory')
if mibBuilder.loadTexts:
modemErroredSecond.setDescription('Errored second')
modem_severely_errored_second = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemSeverelyErroredSecond.setStatus('mandatory')
if mibBuilder.loadTexts:
modemSeverelyErroredSecond.setDescription('Severely errored second')
modem_background_block_errror = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemBackgroundBlockErrror.setStatus('mandatory')
if mibBuilder.loadTexts:
modemBackgroundBlockErrror.setDescription('Background Block Error')
modem_total_block_number = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemTotalBlockNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
modemTotalBlockNumber.setDescription('Total Block Number')
modem_errored_second_ratio = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 7), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemErroredSecondRatio.setStatus('mandatory')
if mibBuilder.loadTexts:
modemErroredSecondRatio.setDescription('Errorred Second Ratio')
modem_severely_errored_second_ratio = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 8), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemSeverelyErroredSecondRatio.setStatus('mandatory')
if mibBuilder.loadTexts:
modemSeverelyErroredSecondRatio.setDescription('Severely Errorred Second Ratio')
modem_background_block_error_ratio = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 9), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemBackgroundBlockErrorRatio.setStatus('mandatory')
if mibBuilder.loadTexts:
modemBackgroundBlockErrorRatio.setDescription('Background Block Error Ratio')
modem_uptime = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemUptime.setStatus('mandatory')
if mibBuilder.loadTexts:
modemUptime.setDescription('Uptime (s)')
modem_unavailtime = mib_scalar((1, 3, 6, 1, 4, 1, 7571, 100, 1, 1, 5, 1, 3, 4, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
modemUnavailtime.setStatus('mandatory')
if mibBuilder.loadTexts:
modemUnavailtime.setDescription('Unavailtime (s)')
mibBuilder.exportSymbols('SAF-IPRADIO', ethTXByteCounterLow=ethTXByteCounterLow, aTPCEntry=aTPCEntry, radioRxFrequency=radioRxFrequency, ethGFPCHECErrors=ethGFPCHECErrors, e1t1LOS=e1t1LOS, vlanPortmap=vlanPortmap, vlanRowStatus=vlanRowStatus, modemTable=modemTable, ipRadioCfgNetwork=ipRadioCfgNetwork, radioTxFrequency=radioTxFrequency, vlanEntry=vlanEntry, radioName=radioName, modemInternalAGCgain=modemInternalAGCgain, modemACMtotalCapacity=modemACMtotalCapacity, sysTemperature=sysTemperature, safip=safip, ethRXDones=ethRXDones, ethRXCRCErrors=ethRXCRCErrors, ethRXDvEvent=ethRXDvEvent, ethRXPrevPktDropped=ethRXPrevPktDropped, radioTxMute=radioTxMute, ethTXMulticasts=ethTXMulticasts, modemLastAcqError=modemLastAcqError, ethQOSRXQ1Dropped=ethQOSRXQ1Dropped, ethTXNonExcessiveDefers=ethTXNonExcessiveDefers, modemIndex=modemIndex, ethQOSTXFrames=ethQOSTXFrames, modemBandwith=modemBandwith, radioDuplexShift=radioDuplexShift, vlanCfgStat=vlanCfgStat, ipRadioCfgGeneral=ipRadioCfgGeneral, ethQOSRXQ1Frames=ethQOSRXQ1Frames, radioEntry=radioEntry, vlansEnabled=vlansEnabled, ethTXBackpresEvents=ethTXBackpresEvents, ethTXCollisions=ethTXCollisions, ethRXLengthCheckerrorsErrors=ethRXLengthCheckerrorsErrors, product=product, ethRXFalseCarrierErrors=ethRXFalseCarrierErrors, radioSide=radioSide, saf=saf, modemACMmodulationMax=modemACMmodulationMax, ethTXControlFrames=ethTXControlFrames, restartcpu=restartcpu, e1t1StatEntry=e1t1StatEntry, vlanNumber=vlanNumber, vlanPortType=vlanPortType, modemSeverelyErroredSecond=modemSeverelyErroredSecond, localIp=localIp, ipRadioCfg=ipRadioCfg, ethRXByteCounterLow=ethRXByteCounterLow, modemTotalCapacity=modemTotalCapacity, radioRxLevel=radioRxLevel, atpcTxPowerCorrection=atpcTxPowerCorrection, loopback_tributary_mask=loopback_tributary_mask, localIpMask=localIpMask, modemEthernetCapacity=modemEthernetCapacity, modemBackgroundBlockErrror=modemBackgroundBlockErrror, ipRadioMgmt=ipRadioMgmt, ethTXLateCollisions=ethTXLateCollisions, ethRXControlFrames=ethRXControlFrames, tehnika=tehnika, ethRXVlanTagsDetected=ethRXVlanTagsDetected, modemUnavailtime=modemUnavailtime, e1t1StatTable=e1t1StatTable, modemCarrierOffset=modemCarrierOffset, modemSymbolRateRx=modemSymbolRateRx, ethTXGiants=ethTXGiants, description=description, ethRXOutOfRangeErrors=ethRXOutOfRangeErrors, vlanFid=vlanFid, radioTable=radioTable, ethRXUnsupOpcodes=ethRXUnsupOpcodes, e1t1ChannelNr=e1t1ChannelNr, ethTXByteCounterHi=ethTXByteCounterHi, modemUptime=modemUptime, ethTXWireByteCounterLow=ethTXWireByteCounterLow, aTPCTable=aTPCTable, atpcIndex=atpcIndex, ethTXVlanTags=ethTXVlanTags, ethRXTruncatedFrames=ethRXTruncatedFrames, pointToPoint=pointToPoint, remoteIp=remoteIp, vlanTable=vlanTable, ipRadio=ipRadio, sysDateAndTime=sysDateAndTime, modemRowStatus=modemRowStatus, writeConfig=writeConfig, ethRXBroadcasts=ethRXBroadcasts, ethRXMulticasts=ethRXMulticasts, ethRXDribleNibbles=ethRXDribleNibbles, ethTXDones=ethTXDones, ethRXPauseFrames=ethRXPauseFrames, modemSymbolRateTx=modemSymbolRateTx, loopbacks=loopbacks, radioGenStatus=radioGenStatus, modemLDPCdecoderStress=modemLDPCdecoderStress, modemStandard=modemStandard, licenseMask=licenseMask, ethGFPDelineationErrors=ethGFPDelineationErrors, ipRadioStat=ipRadioStat, e1t1AIS=e1t1AIS, modemErroredBlock=modemErroredBlock, modemAcqStatus=modemAcqStatus, modemGeneralStatus=modemGeneralStatus, modemSeverelyErroredSecondRatio=modemSeverelyErroredSecondRatio, modemACMethernetCapacity=modemACMethernetCapacity, modemErroredSecondRatio=modemErroredSecondRatio, modemACMmodulationMin=modemACMmodulationMin, ethRXCodeErrors=ethRXCodeErrors, modemBackgroundBlockErrorRatio=modemBackgroundBlockErrorRatio, ethTXWireByteCounterHi=ethTXWireByteCounterHi, ipRadioStatEth=ipRadioStatEth, modemCountTime=modemCountTime, ethTXLengthCheckErrors=ethTXLengthCheckErrors, modemStatistics=modemStatistics, ethTXBroadcasts=ethTXBroadcasts, modemTotalBlockNumber=modemTotalBlockNumber, microwaveRadio=microwaveRadio, radioIndex=radioIndex, ethTXUnderruns=ethTXUnderruns, modemE1T1ChannelMask=modemE1T1ChannelMask, modemACMengine=modemACMengine, modemEntry=modemEntry, ethRXLongEvents=ethRXLongEvents, ethTXMaxCollisions=ethTXMaxCollisions, ethQOSRXQ2Frames=ethQOSRXQ2Frames, ethTXExcessiveDefers=ethTXExcessiveDefers, ethTXCRCErrors=ethTXCRCErrors, ethRXByteCounterHi=ethRXByteCounterHi, modemE1T1Channels=modemE1T1Channels, ethQOSTXDropped=ethQOSTXDropped, ethGFPDropedFrames=ethGFPDropedFrames, radioTxPower=radioTxPower, modemModulation=modemModulation, modemErroredSecond=modemErroredSecond, license=license, atpcEnabled=atpcEnabled, ethQOSRXQ2Dropped=ethQOSRXQ2Dropped, ethGFPFCSErrors=ethGFPFCSErrors, radioLoopback=radioLoopback, ethTXPauseFrames=ethTXPauseFrames, modemRadialMSE=modemRadialMSE) |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
"""
This module is designed to analysis data
"""
| """
This module is designed to analysis data
""" |
gopen = open('namecheck.txt' , 'w')
for i in range(1,54):
fopen = open('%d' % i, 'r')
for z in range(100):
rline = fopen.readline()
if rline:
rlist = rline.split('$')
name = rlist[0].strip()
clg = rlist[1].strip()
nlist = name.split(' ')
if len(nlist)==1:
gopen.write('%s, %s \n' % (name,clg))
else:
break
fopen.close()
gopen.close()
| gopen = open('namecheck.txt', 'w')
for i in range(1, 54):
fopen = open('%d' % i, 'r')
for z in range(100):
rline = fopen.readline()
if rline:
rlist = rline.split('$')
name = rlist[0].strip()
clg = rlist[1].strip()
nlist = name.split(' ')
if len(nlist) == 1:
gopen.write('%s, %s \n' % (name, clg))
else:
break
fopen.close()
gopen.close() |
class RectCoordinates:
def __init__(self, x, y, w, h):
self.startX = int(x)
self.startY = int(y)
self.w = int(w)
self.h = int(h)
self.endY = int(y + h)
self.endX = int(x + w)
def get_frame(self, frame):
return frame[self.startY:self.endY, self.startX:self.endX]
| class Rectcoordinates:
def __init__(self, x, y, w, h):
self.startX = int(x)
self.startY = int(y)
self.w = int(w)
self.h = int(h)
self.endY = int(y + h)
self.endX = int(x + w)
def get_frame(self, frame):
return frame[self.startY:self.endY, self.startX:self.endX] |
# Reading lines from file and putting from a list to a dict
dna = dict()
contents = []
for line in open('rosalind_gc.txt', 'r').readlines():
contents.append(line.strip('\n'))
if line[0] == '>':
header = line[1:].rstrip()
dna[header] = ''
else:
dna[header] = dna.get(header) + line.rstrip()
# Using the rstrip method above to remove text format fragments (like \n or \t)
# and the list greather will receive our final result
greather = ['', 0, '']
for key in dna:
gc_qtd = 0
for i in range(len(dna.get(key))):
if dna.get(key)[i] == 'G' or dna.get(key)[i] == 'C':
gc_qtd += 1
gc_percent = 100*gc_qtd/(len(dna.get(key)))
if gc_percent > greather[1]:
greather[0] = key
greather[1] = gc_percent
greather[2] = dna.get(key)
print(greather[0], '\n', greather[1])
| dna = dict()
contents = []
for line in open('rosalind_gc.txt', 'r').readlines():
contents.append(line.strip('\n'))
if line[0] == '>':
header = line[1:].rstrip()
dna[header] = ''
else:
dna[header] = dna.get(header) + line.rstrip()
greather = ['', 0, '']
for key in dna:
gc_qtd = 0
for i in range(len(dna.get(key))):
if dna.get(key)[i] == 'G' or dna.get(key)[i] == 'C':
gc_qtd += 1
gc_percent = 100 * gc_qtd / len(dna.get(key))
if gc_percent > greather[1]:
greather[0] = key
greather[1] = gc_percent
greather[2] = dna.get(key)
print(greather[0], '\n', greather[1]) |
#!/usr/bin/python
# Filename: func_default.py
def say(message='3',times=1):
print (message * times)
say();
say(times=11)
say('Hello')
say('World',5)
say(2,4)
| def say(message='3', times=1):
print(message * times)
say()
say(times=11)
say('Hello')
say('World', 5)
say(2, 4) |
"""
Project Euler Problem 45
========================
Triangle, pentagonal, and hexagonal numbers are generated by the following
formulae:
Triangle T[n]=n(n+1)/2 1, 3, 6, 10, 15, ...
Pentagonal P[n]=n(3n-1)/2 1, 5, 12, 22, 35, ...
Hexagonal H[n]=n(2n-1) 1, 6, 15, 28, 45, ...
It can be verified that T[285] = P[165] = H[143] = 40755.
Find the next triangle number that is also pentagonal and hexagonal.
"""
class GeometryHelper(object):
"""
Helper class to calculate triangle, pentagonal or hexagonal numbers. We can
use the brackets operator (TPH[X]) as well as the contains operator (X in
TPH).
"""
def __init__(self):
# Helper[0] == 0 to make our lifes easier, as the numbers start from 1
self.numbers = [0]
def formulae(self, n):
"""Returns the n-th number (n>=1)"""
return 0
def _build(self, last):
next_item = len(self.numbers)
self.numbers += [self.formulae(n) for n in range(next_item, last+1)]
def _build_until_number(self, last_p):
next_item = len(self.numbers)
while self.numbers[-1] < last_p:
self.numbers.append(self.formulae(next_item))
next_item += 1
def __contains__(self, p):
self._build_until_number(p)
return p in self.numbers
def __getitem__(self, n):
if n >= len(self.numbers):
self._build(n)
return self.numbers[n]
class TriangleHelper(GeometryHelper):
def formulae(self, n):
"""Returns the n-th triangle number (n>1)"""
return (n*(n+1))//2
class PentagonalHelper(GeometryHelper):
def formulae(self, n):
"""Returns the n-th triangle number (n>1)"""
return (n*(3*n-1))//2
class HexagonalHelper(GeometryHelper):
def formulae(self, n):
"""Returns the n-th triangle number (n>1)"""
return n*(2*n-1)
# Test
T = TriangleHelper()
P = PentagonalHelper()
H = HexagonalHelper()
assert [T[i] for i in range(1, 6)] == [1, 3, 6, 10, 15]
assert [P[i] for i in range(1, 6)] == [1, 5, 12, 22, 35]
assert [H[i] for i in range(1, 6)] == [1, 6, 15, 28, 45]
assert 15 in T
assert 16 not in T
assert 35 in P
assert 36 not in P
assert 45 in H
assert 46 not in H
def main():
# Simply iterate over the triangle numbers and check if the result number is
# also a pentagonal and hexagonal number
# We already know that T[285] = P[165] = H[143] = 40755:
assert T[285] == P[165] == H[143] == 40755
assert 40755 in T
assert 40755 in P
assert 40755 in H
# So we can start from 286
n = 286
while True:
t = T[n]
if t in P and t in H:
return t
n += 1
if __name__ == '__main__':
print(main())
| """
Project Euler Problem 45
========================
Triangle, pentagonal, and hexagonal numbers are generated by the following
formulae:
Triangle T[n]=n(n+1)/2 1, 3, 6, 10, 15, ...
Pentagonal P[n]=n(3n-1)/2 1, 5, 12, 22, 35, ...
Hexagonal H[n]=n(2n-1) 1, 6, 15, 28, 45, ...
It can be verified that T[285] = P[165] = H[143] = 40755.
Find the next triangle number that is also pentagonal and hexagonal.
"""
class Geometryhelper(object):
"""
Helper class to calculate triangle, pentagonal or hexagonal numbers. We can
use the brackets operator (TPH[X]) as well as the contains operator (X in
TPH).
"""
def __init__(self):
self.numbers = [0]
def formulae(self, n):
"""Returns the n-th number (n>=1)"""
return 0
def _build(self, last):
next_item = len(self.numbers)
self.numbers += [self.formulae(n) for n in range(next_item, last + 1)]
def _build_until_number(self, last_p):
next_item = len(self.numbers)
while self.numbers[-1] < last_p:
self.numbers.append(self.formulae(next_item))
next_item += 1
def __contains__(self, p):
self._build_until_number(p)
return p in self.numbers
def __getitem__(self, n):
if n >= len(self.numbers):
self._build(n)
return self.numbers[n]
class Trianglehelper(GeometryHelper):
def formulae(self, n):
"""Returns the n-th triangle number (n>1)"""
return n * (n + 1) // 2
class Pentagonalhelper(GeometryHelper):
def formulae(self, n):
"""Returns the n-th triangle number (n>1)"""
return n * (3 * n - 1) // 2
class Hexagonalhelper(GeometryHelper):
def formulae(self, n):
"""Returns the n-th triangle number (n>1)"""
return n * (2 * n - 1)
t = triangle_helper()
p = pentagonal_helper()
h = hexagonal_helper()
assert [T[i] for i in range(1, 6)] == [1, 3, 6, 10, 15]
assert [P[i] for i in range(1, 6)] == [1, 5, 12, 22, 35]
assert [H[i] for i in range(1, 6)] == [1, 6, 15, 28, 45]
assert 15 in T
assert 16 not in T
assert 35 in P
assert 36 not in P
assert 45 in H
assert 46 not in H
def main():
assert T[285] == P[165] == H[143] == 40755
assert 40755 in T
assert 40755 in P
assert 40755 in H
n = 286
while True:
t = T[n]
if t in P and t in H:
return t
n += 1
if __name__ == '__main__':
print(main()) |
# -*- coding: utf-8 -*-
"""
Created on Sun Aug 8 12:01:02 2021
@author: Easin
"""
in1 = input()
#print(in1)
count = 0
list1 = []
list2 = []
for values in range(len(in1)):
if in1[values] >= 'a' and in1[values] <= 'z':
list1.append(in1[values])
flag = True
for elem in range(len(list1)):
for val in range(elem,len(list1)-1):
if list1[elem] == list1[val+1]:
flag = False
break
if flag == True:
count += 1
flag = True
print(count)
| """
Created on Sun Aug 8 12:01:02 2021
@author: Easin
"""
in1 = input()
count = 0
list1 = []
list2 = []
for values in range(len(in1)):
if in1[values] >= 'a' and in1[values] <= 'z':
list1.append(in1[values])
flag = True
for elem in range(len(list1)):
for val in range(elem, len(list1) - 1):
if list1[elem] == list1[val + 1]:
flag = False
break
if flag == True:
count += 1
flag = True
print(count) |
def negate_condition(condition: callable):
def _f(context):
return not condition(context)
return _f
def dummy(context: dict) -> dict:
return context
class Transition:
def __init__(self, next_state: object, condition: callable, callback: callable = dummy):
self.next_state = next_state
self.condition = condition
self.callback = callback
def check_condition(self, context):
transition = self.condition(context)
if not isinstance(transition, bool):
raise RuntimeError(f"Wrong transition return type. "
f"Next state: {self.next_state} "
f"Returned: {transition} "
f"Return type: {type(transition)} "
f"Expected: Bool")
return transition
| def negate_condition(condition: callable):
def _f(context):
return not condition(context)
return _f
def dummy(context: dict) -> dict:
return context
class Transition:
def __init__(self, next_state: object, condition: callable, callback: callable=dummy):
self.next_state = next_state
self.condition = condition
self.callback = callback
def check_condition(self, context):
transition = self.condition(context)
if not isinstance(transition, bool):
raise runtime_error(f'Wrong transition return type. Next state: {self.next_state} Returned: {transition} Return type: {type(transition)} Expected: Bool')
return transition |
# python3
def compute_min_number_of_refills(d, m, stops):
assert 1 <= d <= 10 ** 5
assert 1 <= m <= 400
assert 1 <= len(stops) <= 300
assert 0 < stops[0] and all(stops[i] < stops[i + 1] for i in range(len(stops) - 1)) and stops[-1] < d
count = 0
curr = 0
stops.insert(0, 0)
stops.append(d)
n = len(stops) - 2
while curr <= n:
last = curr
while curr <= n and stops[curr + 1] - stops[last] <= m:
curr += 1
if curr == last:
return -1
elif curr <= n:
count += 1
return count
if __name__ == '__main__':
input_d = int(input())
input_m = int(input())
input_n = int(input())
input_stops = list(map(int, input().split()))
assert len(input_stops) == input_n
print(compute_min_number_of_refills(input_d, input_m, input_stops))
| def compute_min_number_of_refills(d, m, stops):
assert 1 <= d <= 10 ** 5
assert 1 <= m <= 400
assert 1 <= len(stops) <= 300
assert 0 < stops[0] and all((stops[i] < stops[i + 1] for i in range(len(stops) - 1))) and (stops[-1] < d)
count = 0
curr = 0
stops.insert(0, 0)
stops.append(d)
n = len(stops) - 2
while curr <= n:
last = curr
while curr <= n and stops[curr + 1] - stops[last] <= m:
curr += 1
if curr == last:
return -1
elif curr <= n:
count += 1
return count
if __name__ == '__main__':
input_d = int(input())
input_m = int(input())
input_n = int(input())
input_stops = list(map(int, input().split()))
assert len(input_stops) == input_n
print(compute_min_number_of_refills(input_d, input_m, input_stops)) |
"""Decode ASCII-encoded messages"""
def decode(coded):
"""Decode a string of ASCII codes"""
return ''.join(map(chr, map(int, coded.split())))
if __name__ == '__main__':
print(decode('''
67 111 109 101 32 105
110 32 97 32 78 101
119 32 89 101 97 114
39 115 32 99 97 112
32 116 111 32 83 97
118 101 110 107 111 118
033
'''))
print(decode('''
77 115 102 112
117 110 105 108
104 121
'''))
| """Decode ASCII-encoded messages"""
def decode(coded):
"""Decode a string of ASCII codes"""
return ''.join(map(chr, map(int, coded.split())))
if __name__ == '__main__':
print(decode('\n 67 111 109 101 32 105\n 110 32 97 32 78 101\n 119 32 89 101 97 114\n 39 115 32 99 97 112\n 32 116 111 32 83 97\n 118 101 110 107 111 118\n 033\n '))
print(decode('\n 77 115 102 112\n 117 110 105 108\n 104 121\n ')) |
def applicant_selector(gpa,ps_score,ec_count):
message = "This applicant should be rejected."
if (gpa >= 3):
if (ps_score >= 90):
if (ec_count >= 3):
message = "This applicant should be accepted."
else:
message = "This applicant should be given an in-person interview."
return message
| def applicant_selector(gpa, ps_score, ec_count):
message = 'This applicant should be rejected.'
if gpa >= 3:
if ps_score >= 90:
if ec_count >= 3:
message = 'This applicant should be accepted.'
else:
message = 'This applicant should be given an in-person interview.'
return message |
# lc551.py
# LeetCode 551. Student Attendance Record I `E`
# acc | 91% | 13'
# A~0f27
class Solution:
def checkRecord(self, s: str) -> bool:
a = 0
l = 0
for c in s:
if c == "L":
l += 1
if l > 2:
return False
else:
l = 0
if c == "A":
a += 1
if a > 1:
return False
return True
| class Solution:
def check_record(self, s: str) -> bool:
a = 0
l = 0
for c in s:
if c == 'L':
l += 1
if l > 2:
return False
else:
l = 0
if c == 'A':
a += 1
if a > 1:
return False
return True |
inp = input()
def palin(inp):
if len(inp)==1: return True
elif len(inp)==2: return inp[0]==inp[1]
else: return inp[0]==inp[-1] and palin(inp[1:-1])
if palin(inp): print('PALINDROME')
else: print('NOT PALINDROME') | inp = input()
def palin(inp):
if len(inp) == 1:
return True
elif len(inp) == 2:
return inp[0] == inp[1]
else:
return inp[0] == inp[-1] and palin(inp[1:-1])
if palin(inp):
print('PALINDROME')
else:
print('NOT PALINDROME') |
def bazel_toolchains_repositories():
org_chromium_clang_mac()
org_chromium_clang_linux_x64()
org_chromium_sysroot_linux_x64()
org_chromium_binutils_linux_x64()
org_chromium_libcxx()
org_chromium_libcxxabi()
def org_chromium_clang_mac():
native.new_http_archive(
name = 'org_chromium_clang_mac',
build_file = str(Label('//build_files:org_chromium_clang_mac.BUILD')),
sha256 = '4f0aca6ec66281be94c3045550ae15a73befa59c32396112abda0030ef22e9b6',
urls = ['http://172.16.52.102/clang/mac/clang-318667-1.tgz'],
)
def org_chromium_clang_linux_x64():
native.new_http_archive(
name = 'org_chromium_clang_linux_x64',
build_file = str(Label('//build_files:org_chromium_clang_linux_x64.BUILD')),
sha256 = 'e63e5fe3ec8eee4779812cd16aae0ddaf1256d2e8e93cdd5914a3d3e01355dc1',
urls = ['http://172.16.52.102/clang/linux/clang-318667-1.tgz'],
)
def org_chromium_sysroot_linux_x64():
native.new_http_archive(
name = 'org_chromium_sysroot_linux_x64',
build_file = str(Label('//build_files:org_chromium_sysroot_linux_x64.BUILD')),
sha256 = '84656a6df544ecef62169cfe3ab6e41bb4346a62d3ba2a045dc5a0a2ecea94a3',
urls = ['http://172.16.52.102/clang/linux/debian_stretch_amd64_sysroot.tar.xz'],
)
def org_chromium_binutils_linux_x64():
native.new_http_archive(
name = 'org_chromium_binutils_linux_x64',
build_file = str(Label('//build_files:org_chromium_binutils_linux_x64.BUILD')),
sha256 = '24c3df44af5bd377c701ee31b9b704f2ea23456f20e63652c8235a10d7cf1be7',
type = 'tar.bz2',
urls = ['http://172.16.52.102/clang/linux/binutils.tar.bz2'],
)
def org_chromium_libcxx():
native.new_http_archive(
name = 'org_chromium_libcxx',
build_file = str(Label('//build_files:org_chromium_libcxx.BUILD')),
sha256 = '0d86a5ad81ada4a1c80e81a69ae99116d7d0452c85f414d01899500bc4c1eeb8',
urls = ['http://172.16.52.102/clang/linux/libcxx-f56f1bba1ade4a408d403ff050d50e837bae47df.tar.gz'],
)
def org_chromium_libcxxabi():
native.new_http_archive(
name = 'org_chromium_libcxxabi',
build_file = str(Label('//build_files:org_chromium_libcxxabi.BUILD')),
sha256 = '27fb5d944665ad2985110916fffab079aa07bf13191286587516442d52efd235',
urls = ['http://172.16.52.102/clang/linux/libcxxabi-05ba3281482304ae8de31123a594972a495da06d.tar.gz'],
)
| def bazel_toolchains_repositories():
org_chromium_clang_mac()
org_chromium_clang_linux_x64()
org_chromium_sysroot_linux_x64()
org_chromium_binutils_linux_x64()
org_chromium_libcxx()
org_chromium_libcxxabi()
def org_chromium_clang_mac():
native.new_http_archive(name='org_chromium_clang_mac', build_file=str(label('//build_files:org_chromium_clang_mac.BUILD')), sha256='4f0aca6ec66281be94c3045550ae15a73befa59c32396112abda0030ef22e9b6', urls=['http://172.16.52.102/clang/mac/clang-318667-1.tgz'])
def org_chromium_clang_linux_x64():
native.new_http_archive(name='org_chromium_clang_linux_x64', build_file=str(label('//build_files:org_chromium_clang_linux_x64.BUILD')), sha256='e63e5fe3ec8eee4779812cd16aae0ddaf1256d2e8e93cdd5914a3d3e01355dc1', urls=['http://172.16.52.102/clang/linux/clang-318667-1.tgz'])
def org_chromium_sysroot_linux_x64():
native.new_http_archive(name='org_chromium_sysroot_linux_x64', build_file=str(label('//build_files:org_chromium_sysroot_linux_x64.BUILD')), sha256='84656a6df544ecef62169cfe3ab6e41bb4346a62d3ba2a045dc5a0a2ecea94a3', urls=['http://172.16.52.102/clang/linux/debian_stretch_amd64_sysroot.tar.xz'])
def org_chromium_binutils_linux_x64():
native.new_http_archive(name='org_chromium_binutils_linux_x64', build_file=str(label('//build_files:org_chromium_binutils_linux_x64.BUILD')), sha256='24c3df44af5bd377c701ee31b9b704f2ea23456f20e63652c8235a10d7cf1be7', type='tar.bz2', urls=['http://172.16.52.102/clang/linux/binutils.tar.bz2'])
def org_chromium_libcxx():
native.new_http_archive(name='org_chromium_libcxx', build_file=str(label('//build_files:org_chromium_libcxx.BUILD')), sha256='0d86a5ad81ada4a1c80e81a69ae99116d7d0452c85f414d01899500bc4c1eeb8', urls=['http://172.16.52.102/clang/linux/libcxx-f56f1bba1ade4a408d403ff050d50e837bae47df.tar.gz'])
def org_chromium_libcxxabi():
native.new_http_archive(name='org_chromium_libcxxabi', build_file=str(label('//build_files:org_chromium_libcxxabi.BUILD')), sha256='27fb5d944665ad2985110916fffab079aa07bf13191286587516442d52efd235', urls=['http://172.16.52.102/clang/linux/libcxxabi-05ba3281482304ae8de31123a594972a495da06d.tar.gz']) |
# This file contains the set of rules of basic
# defining the constants
DIGITS = '0123456789'
# defining the token types
TOKEN_INT = 'INT'
TOKEN_FLOAT = 'FLOAT'
TOKEN_PLUS = 'PLUS'
TOKEN_MULTI = 'MUL'
TOKEN_MINUS = 'MINUS'
TOKEN_DIVIDE = 'DIV'
TOKEN_LPAREN = 'LPAREN' # left parenthesis
TOKEN_RPAREN = 'RPAREN' # right parenthesis
# positions class
class Position:
def __init__(self, indx, line, column, file_name, file_txt):
self.indx = indx
self.line = line
self.column = column
self.file_name = file_name
self.file_txt = file_txt
def go_through(self, current_char):
self.indx += 1
self.column += 1
if(current_char == '\n'):
self.line += 1
self.column = 0
return self
def copy(self):
return Position(self.indx, self.line, self.column, self.file_name, self.file_txt)
# error class
class Error:
def __init__(self, position_start, position_end, name, description):
self.position_start = position_start
self.position_end = position_end
self.name = name # name of the error
self.description = description # description for you to know how to fix it
def error_message(self):
message = f'{self.name}: {self.description}'
message += f'File {self.position_start.file_name}, line {self.position_start.line + 1}'
return message
# class to define the illegal character error
class IllegalCharError(Error): # usging inheritance here for better organization
def __init__(self, position_start, position_end, description):
super().__init__(position_start, position_end, 'Illegal Character', description)
# defining the architecture of the token and how it's gonna be handled
class Token:
def __init__(self, the_type, value=None): # type is a reserved word, so make to not put exactly type here
self.type = the_type
self.value = value
def __repr__(self):
if self.value: return str(f'{self.type}:{self.value}')
return f'{self.type}'
# defining the lexer, they give meaning to the tokens through the programming language's set of rules
class Lexer:
def __init__(self, file_name, txt):
self.file_name = file_name
self.txt = txt
self.position = Position(-1, 0, -1, file_name, txt) # we start at -1, because the advance function is gonna increment the index immediatly
self.current_char = None
self.next_char()
# defining function to iterate through every character
def next_char(self):
self.position.go_through(self.current_char)
self.current_char = self.txt[self.position.indx] if self.position.indx < len(self.txt) else None
# defining function to create token based on the rules of basic
def create_tokens(self):
tokens = [] # list of tokens
while self.current_char != None:
if (self.current_char in '\t'):
self.next_char()
elif(self.current_char in DIGITS):
tokens.append(self.create_num())
# giving identity to the arithmetic operators
# from here
elif(self.current_char == '+'):
tokens.append(Token(TOKEN_PLUS))
self.next_char()
elif(self.current_char == '-'):
tokens.append(Token(TOKEN_MINUS))
self.next_char()
elif(self.current_char == '*'):
tokens.append(Token(TOKEN_MULTI))
self.next_char()
elif(self.current_char == '/'):
tokens.append(Token(TOKEN_DIVIDE))
self.next_char()
elif(self.current_char == '('):
tokens.append(Token(TOKEN_LPAREN))
self.next_char()
elif(self.current_char == ')'):
tokens.append(Token(TOKEN_RPAREN))
self.next_char()
# to here
elif(self.current_char == ' '): # making it possible to use spaces
self.next_char()
else:
# Throwing error
position_start = self.position.copy()
illegal_char = self.current_char
self.next_char()
return [], IllegalCharError(position_start, self.position, "'" + illegal_char + "'")
return tokens, None
# set of rules to deal with numbers
def create_num (self):
num_string = ''
has_dot = False # has_dot is to define the number as an integer or float
while self.current_char != None and self.current_char in DIGITS + '.':
if(self.current_char == '.'):
if(has_dot): break
has_dot = True
num_string += '.'
else:
num_string += self.current_char
self.next_char()
if(not has_dot): return Token(TOKEN_INT, int(num_string))
else: return Token(TOKEN_FLOAT, float(num_string))
def run(file_name, txt):
lexer = Lexer(file_name, txt)
tokens, error = lexer.create_tokens()
return tokens, error
| digits = '0123456789'
token_int = 'INT'
token_float = 'FLOAT'
token_plus = 'PLUS'
token_multi = 'MUL'
token_minus = 'MINUS'
token_divide = 'DIV'
token_lparen = 'LPAREN'
token_rparen = 'RPAREN'
class Position:
def __init__(self, indx, line, column, file_name, file_txt):
self.indx = indx
self.line = line
self.column = column
self.file_name = file_name
self.file_txt = file_txt
def go_through(self, current_char):
self.indx += 1
self.column += 1
if current_char == '\n':
self.line += 1
self.column = 0
return self
def copy(self):
return position(self.indx, self.line, self.column, self.file_name, self.file_txt)
class Error:
def __init__(self, position_start, position_end, name, description):
self.position_start = position_start
self.position_end = position_end
self.name = name
self.description = description
def error_message(self):
message = f'{self.name}: {self.description}'
message += f'File {self.position_start.file_name}, line {self.position_start.line + 1}'
return message
class Illegalcharerror(Error):
def __init__(self, position_start, position_end, description):
super().__init__(position_start, position_end, 'Illegal Character', description)
class Token:
def __init__(self, the_type, value=None):
self.type = the_type
self.value = value
def __repr__(self):
if self.value:
return str(f'{self.type}:{self.value}')
return f'{self.type}'
class Lexer:
def __init__(self, file_name, txt):
self.file_name = file_name
self.txt = txt
self.position = position(-1, 0, -1, file_name, txt)
self.current_char = None
self.next_char()
def next_char(self):
self.position.go_through(self.current_char)
self.current_char = self.txt[self.position.indx] if self.position.indx < len(self.txt) else None
def create_tokens(self):
tokens = []
while self.current_char != None:
if self.current_char in '\t':
self.next_char()
elif self.current_char in DIGITS:
tokens.append(self.create_num())
elif self.current_char == '+':
tokens.append(token(TOKEN_PLUS))
self.next_char()
elif self.current_char == '-':
tokens.append(token(TOKEN_MINUS))
self.next_char()
elif self.current_char == '*':
tokens.append(token(TOKEN_MULTI))
self.next_char()
elif self.current_char == '/':
tokens.append(token(TOKEN_DIVIDE))
self.next_char()
elif self.current_char == '(':
tokens.append(token(TOKEN_LPAREN))
self.next_char()
elif self.current_char == ')':
tokens.append(token(TOKEN_RPAREN))
self.next_char()
elif self.current_char == ' ':
self.next_char()
else:
position_start = self.position.copy()
illegal_char = self.current_char
self.next_char()
return ([], illegal_char_error(position_start, self.position, "'" + illegal_char + "'"))
return (tokens, None)
def create_num(self):
num_string = ''
has_dot = False
while self.current_char != None and self.current_char in DIGITS + '.':
if self.current_char == '.':
if has_dot:
break
has_dot = True
num_string += '.'
else:
num_string += self.current_char
self.next_char()
if not has_dot:
return token(TOKEN_INT, int(num_string))
else:
return token(TOKEN_FLOAT, float(num_string))
def run(file_name, txt):
lexer = lexer(file_name, txt)
(tokens, error) = lexer.create_tokens()
return (tokens, error) |
""" Constants for the Desktop Processes integration. """
NAME = "Desktop Processes"
DOMAIN = "desktop_processes"
IGNORE = "ignore"
PRIORITY = "priority"
ATTR_CONFIG = "config"
VERSION = "0.1.0"
STARTUP_MESSAGE = f"""
-------------------------------------------------------------------
{NAME}
Version: {VERSION}
This is a custom integration bitch!
If you have any issues with this you need to open an issue here:
-------------------------------------------------------------------
"""
| """ Constants for the Desktop Processes integration. """
name = 'Desktop Processes'
domain = 'desktop_processes'
ignore = 'ignore'
priority = 'priority'
attr_config = 'config'
version = '0.1.0'
startup_message = f'\n-------------------------------------------------------------------\n{NAME}\nVersion: {VERSION}\nThis is a custom integration bitch!\nIf you have any issues with this you need to open an issue here:\n-------------------------------------------------------------------\n' |
{
"targets": [{
"target_name": "ui",
"include_dirs": ["<(module_root_dir)/src/includes", "<(module_root_dir)"],
"sources": [
'<!@(node tools/list-sources.js)'
],
"conditions": [
["OS=='win'", {
"libraries": [
"<(module_root_dir)/libui.lib"
]
}],
["OS=='linux'", {
"cflags": ["-fvisibility=hidden" ,"-std=gnu11"],
'ldflags': [
"-Wl,-rpath,'$$ORIGIN',-rpath,<(module_root_dir)",
],
"libraries": [
"<(module_root_dir)/libui.so"
],
'include_dirs': [
'<!@(pkg-config gtk+-3.0 --cflags-only-I | sed s/-I//g)'
]
}],
["OS=='mac'", {
"xcode_settings": {
"OTHER_LDFLAGS": [
"-fvisibility=hidden",
"-L<(module_root_dir)",
"-lui",
"-rpath",
"'@loader_path'",
"-rpath",
"<(module_root_dir)"
]
}
}],
]
}, {
"target_name": "copy_binary",
"type":"none",
"dependencies": [ "ui" ],
"copies": [
{
'destination': '<(module_root_dir)',
'files': ['<(module_root_dir)/build/Release/ui.node']
}
]
}]
}
| {'targets': [{'target_name': 'ui', 'include_dirs': ['<(module_root_dir)/src/includes', '<(module_root_dir)'], 'sources': ['<!@(node tools/list-sources.js)'], 'conditions': [["OS=='win'", {'libraries': ['<(module_root_dir)/libui.lib']}], ["OS=='linux'", {'cflags': ['-fvisibility=hidden', '-std=gnu11'], 'ldflags': ["-Wl,-rpath,'$$ORIGIN',-rpath,<(module_root_dir)"], 'libraries': ['<(module_root_dir)/libui.so'], 'include_dirs': ['<!@(pkg-config gtk+-3.0 --cflags-only-I | sed s/-I//g)']}], ["OS=='mac'", {'xcode_settings': {'OTHER_LDFLAGS': ['-fvisibility=hidden', '-L<(module_root_dir)', '-lui', '-rpath', "'@loader_path'", '-rpath', '<(module_root_dir)']}}]]}, {'target_name': 'copy_binary', 'type': 'none', 'dependencies': ['ui'], 'copies': [{'destination': '<(module_root_dir)', 'files': ['<(module_root_dir)/build/Release/ui.node']}]}]} |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Feb 25 13:53:05 2017
@author: venusgrape
In this problem, you'll create a program that guesses a secret number!
The program works as follows: you (the user) thinks of an integer between 0 (inclusive) and 100 (not inclusive).
The computer makes guesses, and you give it input - is its guess too high or too low? Using bisection search,
the computer will guess the user's secret number!
Here is a transcript of an example session:
Please think of a number between 0 and 100!
Is your secret number 50?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. l
Is your secret number 75?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. l
Is your secret number 87?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. h
Is your secret number 81?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. l
Is your secret number 84?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. h
Is your secret number 82?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. l
Is your secret number 83?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. c
Game over. Your secret number was: 83
Important
Hint: Endpoints
** Your program should use bisection search. So think carefully what that means. What will the first guess always be?
How should you calculate subsequent guesses?
** Your initial endpoints should be 0 and 100. Do not optimize your subsequent endpoints by making them be the halfway point plus or minus 1. Rather, just make them be the halfway point.
Python Trick: Printing on the same line
Note: your program should use input to obtain the user's input! Be sure to handle the case when the user's input is not one of h, l, or c.
When the user enters something invalid, you should print out a message to the user explaining you did not understand their input. Then,
you should re-ask the question, and prompt again for input. For example:
Is your secret number 91?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. y
Sorry, I did not understand your input.
Is your secret number 91?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. c
"""
n = 100
epsilon = 0.01
low = 0
high = n
ans = (low + high)/2.0
#print(ans)
while ans**2 - n >= epsilon:
print('Is your secret number', end = ' ')
print(ans,end = ' ')
print('?')
letter = input("Enter 'h' to indicate the guess is too high. \
Enter 'l' to indicate the guess is too low. \
Enter 'c' to indicate I guessed correctly.")
if letter == 'h':
high = ans
ans = (high + low)/2
elif letter == 'l':
low = ans
ans = (high + low)/2
elif letter == 'c':
print('Game over, My answer is:',end = ' ')
print(ans)
break
else:
print("Sorry, I did not understand your input.")
| """
Created on Sat Feb 25 13:53:05 2017
@author: venusgrape
In this problem, you'll create a program that guesses a secret number!
The program works as follows: you (the user) thinks of an integer between 0 (inclusive) and 100 (not inclusive).
The computer makes guesses, and you give it input - is its guess too high or too low? Using bisection search,
the computer will guess the user's secret number!
Here is a transcript of an example session:
Please think of a number between 0 and 100!
Is your secret number 50?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. l
Is your secret number 75?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. l
Is your secret number 87?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. h
Is your secret number 81?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. l
Is your secret number 84?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. h
Is your secret number 82?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. l
Is your secret number 83?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. c
Game over. Your secret number was: 83
Important
Hint: Endpoints
** Your program should use bisection search. So think carefully what that means. What will the first guess always be?
How should you calculate subsequent guesses?
** Your initial endpoints should be 0 and 100. Do not optimize your subsequent endpoints by making them be the halfway point plus or minus 1. Rather, just make them be the halfway point.
Python Trick: Printing on the same line
Note: your program should use input to obtain the user's input! Be sure to handle the case when the user's input is not one of h, l, or c.
When the user enters something invalid, you should print out a message to the user explaining you did not understand their input. Then,
you should re-ask the question, and prompt again for input. For example:
Is your secret number 91?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. y
Sorry, I did not understand your input.
Is your secret number 91?
Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. c
"""
n = 100
epsilon = 0.01
low = 0
high = n
ans = (low + high) / 2.0
while ans ** 2 - n >= epsilon:
print('Is your secret number', end=' ')
print(ans, end=' ')
print('?')
letter = input("Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly.")
if letter == 'h':
high = ans
ans = (high + low) / 2
elif letter == 'l':
low = ans
ans = (high + low) / 2
elif letter == 'c':
print('Game over, My answer is:', end=' ')
print(ans)
break
else:
print('Sorry, I did not understand your input.') |
"""
Code From:
https://github.com/laurentluce/python-algorithms/
The MIT License (MIT)
Copyright (c) 2015 Laurent Luce
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Aditional functionality added by CBRYCE for the book Learning Python for Forensics.
"""
def update(h, const, chunk_size, old_char, new_char):
h = (h - int(old_char))/const
h += (int(new_char) * (const ** (chunk_size-1)))
return h
def hash(s, const):
"""Calculate the hash value of a string using base.
Example: 'abc' = 97 x base^2 + 98 x base^1 + 99 x base^0
@param s value to compute hash value for
@param const int to use to compute hash value
@return hash value
"""
v = 0
p = len(s)-1
for i in reversed(range(p+1)):
v += int(s[i]) * (const ** p)
p -= 1
return v
| """
Code From:
https://github.com/laurentluce/python-algorithms/
The MIT License (MIT)
Copyright (c) 2015 Laurent Luce
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Aditional functionality added by CBRYCE for the book Learning Python for Forensics.
"""
def update(h, const, chunk_size, old_char, new_char):
h = (h - int(old_char)) / const
h += int(new_char) * const ** (chunk_size - 1)
return h
def hash(s, const):
"""Calculate the hash value of a string using base.
Example: 'abc' = 97 x base^2 + 98 x base^1 + 99 x base^0
@param s value to compute hash value for
@param const int to use to compute hash value
@return hash value
"""
v = 0
p = len(s) - 1
for i in reversed(range(p + 1)):
v += int(s[i]) * const ** p
p -= 1
return v |
class Solution:
# Sorting key function (Accepted), O(n log n) time, O(n) space
def sortByBits(self, arr: List[int]) -> List[int]:
def tup(n):
return (bin(n).count('1'), n)
return sorted(arr, key=tup)
# One Liner (Top Voted), O(n log n) time, O(n) space
def sortByBits(self, A):
return sorted(A, key=lambda a: (bin(a).count('1'), a))
| class Solution:
def sort_by_bits(self, arr: List[int]) -> List[int]:
def tup(n):
return (bin(n).count('1'), n)
return sorted(arr, key=tup)
def sort_by_bits(self, A):
return sorted(A, key=lambda a: (bin(a).count('1'), a)) |
#
# PySNMP MIB module STN-CHASSIS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/STN-CHASSIS-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:03:23 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)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint")
ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup")
iso, Gauge32, TimeTicks, Integer32, Counter64, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, ObjectIdentity, Bits, IpAddress, Unsigned32, ModuleIdentity, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "Gauge32", "TimeTicks", "Integer32", "Counter64", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "ObjectIdentity", "Bits", "IpAddress", "Unsigned32", "ModuleIdentity", "NotificationType")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
stnNotification, stnSystems = mibBuilder.importSymbols("SPRING-TIDE-NETWORKS-SMI", "stnNotification", "stnSystems")
StnHardwareSubModuleType, StnPowerStatus, StnEngineOperStatus, StnEngineAdminStatus, StnResourceStatus, StnModuleAdminStatus, StnModuleOperStatus, StnBatteryStatus, StnFlashStatus, StnHardwareModuleType, StnLedStatus = mibBuilder.importSymbols("SPRING-TIDE-NETWORKS-TC", "StnHardwareSubModuleType", "StnPowerStatus", "StnEngineOperStatus", "StnEngineAdminStatus", "StnResourceStatus", "StnModuleAdminStatus", "StnModuleOperStatus", "StnBatteryStatus", "StnFlashStatus", "StnHardwareModuleType", "StnLedStatus")
stnChassis = ModuleIdentity((1, 3, 6, 1, 4, 1, 3551, 2, 1))
if mibBuilder.loadTexts: stnChassis.setLastUpdated('0002160000Z')
if mibBuilder.loadTexts: stnChassis.setOrganization('Spring Tide Networks, Inc.')
stnChassisObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1))
stnChassisMibConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 2))
stnChassisVars = MibIdentifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 1))
stnModules = MibIdentifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2))
stnLeds = MibIdentifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3))
stnPower = MibIdentifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4))
stnResource = MibIdentifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5))
stnChassisTrapVars = MibIdentifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 100))
stnChassisSysType = MibScalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("stn5000", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnChassisSysType.setStatus('current')
stnChassisSysDescr = MibScalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnChassisSysDescr.setStatus('current')
stnChassisId = MibScalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnChassisId.setStatus('current')
stnSlotTable = MibTable((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1), )
if mibBuilder.loadTexts: stnSlotTable.setStatus('current')
stnSlotEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1), ).setIndexNames((0, "STN-CHASSIS-MIB", "stnSlotIndex"))
if mibBuilder.loadTexts: stnSlotEntry.setStatus('current')
stnSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnSlotIndex.setStatus('current')
stnModuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 2), StnHardwareModuleType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnModuleType.setStatus('current')
stnModulePeer = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnModulePeer.setStatus('current')
stnModuleAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 4), StnModuleAdminStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnModuleAdminStatus.setStatus('current')
stnModuleOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 5), StnModuleOperStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnModuleOperStatus.setStatus('current')
stnModuleDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnModuleDescr.setStatus('current')
stnModuleLed = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 7), StnLedStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnModuleLed.setStatus('current')
stnSubModules = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnSubModules.setStatus('current')
stnSubModuleTable = MibTable((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2), )
if mibBuilder.loadTexts: stnSubModuleTable.setStatus('current')
stnSubModuleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1), ).setIndexNames((0, "STN-CHASSIS-MIB", "stnSubModuleSlot"), (0, "STN-CHASSIS-MIB", "stnSubModuleIndex"))
if mibBuilder.loadTexts: stnSubModuleEntry.setStatus('current')
stnSubModuleSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnSubModuleSlot.setStatus('current')
stnSubModuleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnSubModuleIndex.setStatus('current')
stnSubModuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1, 3), StnHardwareSubModuleType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnSubModuleType.setStatus('current')
stnSubModulePeer = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnSubModulePeer.setStatus('current')
stnSubModuleAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1, 5), StnModuleAdminStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnSubModuleAdminStatus.setStatus('current')
stnSubModuleOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1, 6), StnModuleOperStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnSubModuleOperStatus.setStatus('current')
stnSubModuleDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1, 7), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnSubModuleDescr.setStatus('current')
stnEngineTable = MibTable((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3), )
if mibBuilder.loadTexts: stnEngineTable.setStatus('current')
stnEngineEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1), ).setIndexNames((0, "STN-CHASSIS-MIB", "stnEngineIndex"))
if mibBuilder.loadTexts: stnEngineEntry.setStatus('current')
stnEngineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnEngineIndex.setStatus('current')
stnEngineSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnEngineSlot.setStatus('current')
stnEngineCpu = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnEngineCpu.setStatus('current')
stnEngineType = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("swc", 2), ("rpe", 3), ("ecf", 4), ("ecf2", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnEngineType.setStatus('current')
stnEnginePeer = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnEnginePeer.setStatus('current')
stnEngineAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 6), StnEngineAdminStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnEngineAdminStatus.setStatus('current')
stnEngineOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 7), StnEngineOperStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnEngineOperStatus.setStatus('current')
stnEngineDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 8), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnEngineDescr.setStatus('current')
stnLedFanTray = MibScalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 1), StnLedStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnLedFanTray.setStatus('current')
stnLedPowerA = MibScalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 2), StnLedStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnLedPowerA.setStatus('current')
stnLedPowerB = MibScalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 3), StnLedStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnLedPowerB.setStatus('current')
stnLedAlarm = MibScalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 4), StnLedStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnLedAlarm.setStatus('current')
stnFanTrayLedTable = MibTable((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 5), )
if mibBuilder.loadTexts: stnFanTrayLedTable.setStatus('current')
stnFanTrayLedEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 5, 1), ).setIndexNames((0, "STN-CHASSIS-MIB", "stnFanTrayLedIndex"))
if mibBuilder.loadTexts: stnFanTrayLedEntry.setStatus('current')
stnFanTrayLedIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 5, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnFanTrayLedIndex.setStatus('current')
stnFanTrayLedSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 5, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnFanTrayLedSlotIndex.setStatus('current')
stnFanTrayLedStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 5, 1, 3), StnLedStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnFanTrayLedStatus.setStatus('current')
stnPortLedTable = MibTable((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 6), )
if mibBuilder.loadTexts: stnPortLedTable.setStatus('current')
stnPortLedEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 6, 1), ).setIndexNames((0, "STN-CHASSIS-MIB", "stnPortLedSlotIndex"), (0, "STN-CHASSIS-MIB", "stnPortLedPortIndex"), (0, "STN-CHASSIS-MIB", "stnPortLedIndex"))
if mibBuilder.loadTexts: stnPortLedEntry.setStatus('current')
stnPortLedSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 6, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnPortLedSlotIndex.setStatus('current')
stnPortLedPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 6, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnPortLedPortIndex.setStatus('current')
stnPortLedIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 6, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnPortLedIndex.setStatus('current')
stnPortLedStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 6, 1, 4), StnLedStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnPortLedStatus.setStatus('current')
stnPortLedDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 6, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnPortLedDescr.setStatus('current')
stnPowerTable = MibTable((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 1), )
if mibBuilder.loadTexts: stnPowerTable.setStatus('current')
stnPowerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 1, 1), ).setIndexNames((0, "STN-CHASSIS-MIB", "stnPowerIndex"))
if mibBuilder.loadTexts: stnPowerEntry.setStatus('current')
stnPowerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnPowerIndex.setStatus('current')
stnPowerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 1, 1, 2), StnPowerStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnPowerStatus.setStatus('current')
stnPowerDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 1, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnPowerDescr.setStatus('current')
stnBatteryTable = MibTable((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 2), )
if mibBuilder.loadTexts: stnBatteryTable.setStatus('current')
stnBatteryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 2, 1), ).setIndexNames((0, "STN-CHASSIS-MIB", "stnBatterySlotIndex"))
if mibBuilder.loadTexts: stnBatteryEntry.setStatus('current')
stnBatterySlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnBatterySlotIndex.setStatus('current')
stnBatteryType = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnBatteryType.setStatus('current')
stnBatteryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 2, 1, 3), StnBatteryStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnBatteryStatus.setStatus('current')
stnBatteryDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 2, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnBatteryDescr.setStatus('current')
stnCpuUtilizationTable = MibTable((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 1), )
if mibBuilder.loadTexts: stnCpuUtilizationTable.setStatus('current')
stnCpuUtilizationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 1, 1), ).setIndexNames((0, "STN-CHASSIS-MIB", "stnCpuUtilizationIndex"))
if mibBuilder.loadTexts: stnCpuUtilizationEntry.setStatus('current')
stnCpuUtilizationIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnCpuUtilizationIndex.setStatus('current')
stnCpuUtilizationCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnCpuUtilizationCurrent.setStatus('current')
stnCpuUtilization5Min = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnCpuUtilization5Min.setStatus('current')
stnCpuUtilization15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnCpuUtilization15Min.setStatus('current')
stnCpuUtilization30Min = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnCpuUtilization30Min.setStatus('current')
stnCpuIpTable = MibTable((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2), )
if mibBuilder.loadTexts: stnCpuIpTable.setStatus('current')
stnCpuIpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2, 1), ).setIndexNames((0, "STN-CHASSIS-MIB", "stnCpuIpIndex"))
if mibBuilder.loadTexts: stnCpuIpEntry.setStatus('current')
stnCpuIpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnCpuIpIndex.setStatus('current')
stnCpuIpRouteLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnCpuIpRouteLimit.setStatus('current')
stnCpuIpRoutesInUse = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnCpuIpRoutesInUse.setStatus('current')
stnCpuIpRoutesBooked = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnCpuIpRoutesBooked.setStatus('current')
stnCpuIpFwdProcesses = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnCpuIpFwdProcesses.setStatus('current')
stnCpuIpRoutingProcesses = MibTableColumn((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnCpuIpRoutingProcesses.setStatus('current')
stnNotificationCfgChangeTime = MibScalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 100, 1), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnNotificationCfgChangeTime.setStatus('current')
stnNotificationFlashStatus = MibScalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 100, 2), StnFlashStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnNotificationFlashStatus.setStatus('current')
stnNotificationModuleTemperature = MibScalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 100, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnNotificationModuleTemperature.setStatus('current')
stnNotificationResourceStatus = MibScalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 100, 4), StnResourceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stnNotificationResourceStatus.setStatus('current')
stnRedundant = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 1)).setObjects(("STN-CHASSIS-MIB", "stnSlotIndex"), ("STN-CHASSIS-MIB", "stnModuleType"), ("STN-CHASSIS-MIB", "stnModuleOperStatus"))
if mibBuilder.loadTexts: stnRedundant.setStatus('current')
stnNotRedundant = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 2)).setObjects(("STN-CHASSIS-MIB", "stnSlotIndex"), ("STN-CHASSIS-MIB", "stnModuleType"), ("STN-CHASSIS-MIB", "stnModuleOperStatus"))
if mibBuilder.loadTexts: stnNotRedundant.setStatus('current')
stnModuleUp = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 3)).setObjects(("STN-CHASSIS-MIB", "stnSlotIndex"), ("STN-CHASSIS-MIB", "stnModuleType"), ("STN-CHASSIS-MIB", "stnModuleOperStatus"), ("STN-CHASSIS-MIB", "stnModuleDescr"), ("STN-CHASSIS-MIB", "stnSubModules"))
if mibBuilder.loadTexts: stnModuleUp.setStatus('current')
stnModuleDown = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 4)).setObjects(("STN-CHASSIS-MIB", "stnSlotIndex"), ("STN-CHASSIS-MIB", "stnModuleType"), ("STN-CHASSIS-MIB", "stnModuleOperStatus"), ("STN-CHASSIS-MIB", "stnModuleDescr"), ("STN-CHASSIS-MIB", "stnSubModules"))
if mibBuilder.loadTexts: stnModuleDown.setStatus('current')
stnSubModuleUp = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 5)).setObjects(("STN-CHASSIS-MIB", "stnSubModuleSlot"), ("STN-CHASSIS-MIB", "stnSubModuleIndex"), ("STN-CHASSIS-MIB", "stnSubModuleType"), ("STN-CHASSIS-MIB", "stnSubModuleOperStatus"), ("STN-CHASSIS-MIB", "stnSubModuleDescr"))
if mibBuilder.loadTexts: stnSubModuleUp.setStatus('current')
stnSubModuleDown = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 6)).setObjects(("STN-CHASSIS-MIB", "stnSubModuleSlot"), ("STN-CHASSIS-MIB", "stnSubModuleIndex"), ("STN-CHASSIS-MIB", "stnSubModuleType"), ("STN-CHASSIS-MIB", "stnSubModuleOperStatus"), ("STN-CHASSIS-MIB", "stnSubModuleDescr"))
if mibBuilder.loadTexts: stnSubModuleDown.setStatus('current')
stnEngineUp = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 7)).setObjects(("STN-CHASSIS-MIB", "stnEngineIndex"), ("STN-CHASSIS-MIB", "stnEngineSlot"), ("STN-CHASSIS-MIB", "stnEngineCpu"), ("STN-CHASSIS-MIB", "stnEngineType"), ("STN-CHASSIS-MIB", "stnEngineOperStatus"))
if mibBuilder.loadTexts: stnEngineUp.setStatus('current')
stnEngineDown = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 8)).setObjects(("STN-CHASSIS-MIB", "stnEngineIndex"), ("STN-CHASSIS-MIB", "stnEngineSlot"), ("STN-CHASSIS-MIB", "stnEngineCpu"), ("STN-CHASSIS-MIB", "stnEngineType"), ("STN-CHASSIS-MIB", "stnEngineOperStatus"))
if mibBuilder.loadTexts: stnEngineDown.setStatus('current')
stnBatteryLow = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 9)).setObjects(("STN-CHASSIS-MIB", "stnBatterySlotIndex"), ("STN-CHASSIS-MIB", "stnBatteryType"), ("STN-CHASSIS-MIB", "stnBatteryStatus"))
if mibBuilder.loadTexts: stnBatteryLow.setStatus('current')
stnFlashFailure = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 10)).setObjects(("STN-CHASSIS-MIB", "stnNotificationFlashStatus"))
if mibBuilder.loadTexts: stnFlashFailure.setStatus('current')
stnResourceFailure = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 11)).setObjects(("STN-CHASSIS-MIB", "stnNotificationResourceStatus"))
if mibBuilder.loadTexts: stnResourceFailure.setStatus('current')
stnFailover = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 12)).setObjects(("STN-CHASSIS-MIB", "stnSlotIndex"), ("STN-CHASSIS-MIB", "stnModuleType"))
if mibBuilder.loadTexts: stnFailover.setStatus('current')
stnCfgChange = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 19)).setObjects(("STN-CHASSIS-MIB", "stnNotificationCfgChangeTime"))
if mibBuilder.loadTexts: stnCfgChange.setStatus('current')
stnPowerFailure = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 55)).setObjects(("STN-CHASSIS-MIB", "stnPowerIndex"), ("STN-CHASSIS-MIB", "stnPowerStatus"))
if mibBuilder.loadTexts: stnPowerFailure.setStatus('current')
stnTemperatureFailure = NotificationType((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 56)).setObjects(("STN-CHASSIS-MIB", "stnSlotIndex"), ("STN-CHASSIS-MIB", "stnModuleType"), ("STN-CHASSIS-MIB", "stnSubModuleType"), ("STN-CHASSIS-MIB", "stnNotificationModuleTemperature"))
if mibBuilder.loadTexts: stnTemperatureFailure.setStatus('current')
stnChassisMibCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 2, 1))
stnChassisMibGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 2, 2))
stnChassisMibComplianceRev1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 3551, 2, 1, 2, 1, 1)).setObjects(("STN-CHASSIS-MIB", "stnChassisMibGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stnChassisMibComplianceRev1 = stnChassisMibComplianceRev1.setStatus('current')
stnChassisMibGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 3551, 2, 1, 2, 2, 1)).setObjects(("STN-CHASSIS-MIB", "stnChassisSysType"), ("STN-CHASSIS-MIB", "stnChassisSysDescr"), ("STN-CHASSIS-MIB", "stnChassisId"), ("STN-CHASSIS-MIB", "stnSlotIndex"), ("STN-CHASSIS-MIB", "stnModuleType"), ("STN-CHASSIS-MIB", "stnModulePeer"), ("STN-CHASSIS-MIB", "stnModuleAdminStatus"), ("STN-CHASSIS-MIB", "stnModuleOperStatus"), ("STN-CHASSIS-MIB", "stnModuleDescr"), ("STN-CHASSIS-MIB", "stnModuleLed"), ("STN-CHASSIS-MIB", "stnSubModules"), ("STN-CHASSIS-MIB", "stnSubModuleSlot"), ("STN-CHASSIS-MIB", "stnSubModuleIndex"), ("STN-CHASSIS-MIB", "stnSubModuleType"), ("STN-CHASSIS-MIB", "stnSubModulePeer"), ("STN-CHASSIS-MIB", "stnSubModuleAdminStatus"), ("STN-CHASSIS-MIB", "stnSubModuleOperStatus"), ("STN-CHASSIS-MIB", "stnSubModuleDescr"), ("STN-CHASSIS-MIB", "stnEngineIndex"), ("STN-CHASSIS-MIB", "stnEngineSlot"), ("STN-CHASSIS-MIB", "stnEngineCpu"), ("STN-CHASSIS-MIB", "stnEngineType"), ("STN-CHASSIS-MIB", "stnEnginePeer"), ("STN-CHASSIS-MIB", "stnEngineAdminStatus"), ("STN-CHASSIS-MIB", "stnEngineOperStatus"), ("STN-CHASSIS-MIB", "stnEngineDescr"), ("STN-CHASSIS-MIB", "stnLedFanTray"), ("STN-CHASSIS-MIB", "stnLedPowerA"), ("STN-CHASSIS-MIB", "stnLedPowerB"), ("STN-CHASSIS-MIB", "stnLedAlarm"), ("STN-CHASSIS-MIB", "stnFanTrayLedIndex"), ("STN-CHASSIS-MIB", "stnFanTrayLedSlotIndex"), ("STN-CHASSIS-MIB", "stnFanTrayLedStatus"), ("STN-CHASSIS-MIB", "stnPortLedSlotIndex"), ("STN-CHASSIS-MIB", "stnPortLedPortIndex"), ("STN-CHASSIS-MIB", "stnPortLedIndex"), ("STN-CHASSIS-MIB", "stnPortLedStatus"), ("STN-CHASSIS-MIB", "stnPortLedDescr"), ("STN-CHASSIS-MIB", "stnPowerIndex"), ("STN-CHASSIS-MIB", "stnPowerStatus"), ("STN-CHASSIS-MIB", "stnPowerDescr"), ("STN-CHASSIS-MIB", "stnBatterySlotIndex"), ("STN-CHASSIS-MIB", "stnBatteryType"), ("STN-CHASSIS-MIB", "stnBatteryStatus"), ("STN-CHASSIS-MIB", "stnBatteryDescr"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stnChassisMibGroup = stnChassisMibGroup.setStatus('current')
mibBuilder.exportSymbols("STN-CHASSIS-MIB", stnBatteryTable=stnBatteryTable, stnCpuUtilizationEntry=stnCpuUtilizationEntry, stnSubModuleSlot=stnSubModuleSlot, stnCfgChange=stnCfgChange, stnFanTrayLedEntry=stnFanTrayLedEntry, stnPortLedTable=stnPortLedTable, stnChassis=stnChassis, stnPowerStatus=stnPowerStatus, stnPowerFailure=stnPowerFailure, stnLeds=stnLeds, stnBatteryStatus=stnBatteryStatus, stnSlotIndex=stnSlotIndex, stnNotRedundant=stnNotRedundant, stnChassisTrapVars=stnChassisTrapVars, stnSubModuleDescr=stnSubModuleDescr, stnNotificationCfgChangeTime=stnNotificationCfgChangeTime, stnEngineDescr=stnEngineDescr, stnCpuIpRoutingProcesses=stnCpuIpRoutingProcesses, stnBatterySlotIndex=stnBatterySlotIndex, stnChassisSysDescr=stnChassisSysDescr, stnSubModuleAdminStatus=stnSubModuleAdminStatus, stnChassisVars=stnChassisVars, stnSubModuleEntry=stnSubModuleEntry, stnFanTrayLedTable=stnFanTrayLedTable, stnCpuUtilization5Min=stnCpuUtilization5Min, stnSubModules=stnSubModules, stnPowerIndex=stnPowerIndex, stnChassisSysType=stnChassisSysType, stnCpuUtilization15Min=stnCpuUtilization15Min, stnResourceFailure=stnResourceFailure, stnCpuIpRouteLimit=stnCpuIpRouteLimit, stnCpuIpRoutesInUse=stnCpuIpRoutesInUse, stnSubModuleType=stnSubModuleType, stnLedFanTray=stnLedFanTray, stnResource=stnResource, stnChassisMibGroups=stnChassisMibGroups, stnEngineEntry=stnEngineEntry, stnPortLedDescr=stnPortLedDescr, stnEngineDown=stnEngineDown, stnFanTrayLedSlotIndex=stnFanTrayLedSlotIndex, stnChassisObjects=stnChassisObjects, stnModules=stnModules, stnCpuUtilization30Min=stnCpuUtilization30Min, stnSlotEntry=stnSlotEntry, stnFanTrayLedStatus=stnFanTrayLedStatus, stnBatteryDescr=stnBatteryDescr, stnSubModuleUp=stnSubModuleUp, stnSubModulePeer=stnSubModulePeer, stnPortLedEntry=stnPortLedEntry, PYSNMP_MODULE_ID=stnChassis, stnSubModuleDown=stnSubModuleDown, stnCpuIpRoutesBooked=stnCpuIpRoutesBooked, stnRedundant=stnRedundant, stnEngineAdminStatus=stnEngineAdminStatus, stnEngineTable=stnEngineTable, stnChassisMibConformance=stnChassisMibConformance, stnEngineSlot=stnEngineSlot, stnBatteryType=stnBatteryType, stnLedPowerB=stnLedPowerB, stnCpuIpFwdProcesses=stnCpuIpFwdProcesses, stnPortLedIndex=stnPortLedIndex, stnCpuUtilizationCurrent=stnCpuUtilizationCurrent, stnFlashFailure=stnFlashFailure, stnChassisMibComplianceRev1=stnChassisMibComplianceRev1, stnModuleLed=stnModuleLed, stnPortLedStatus=stnPortLedStatus, stnChassisId=stnChassisId, stnCpuIpIndex=stnCpuIpIndex, stnModuleUp=stnModuleUp, stnFailover=stnFailover, stnCpuIpTable=stnCpuIpTable, stnSubModuleOperStatus=stnSubModuleOperStatus, stnEngineCpu=stnEngineCpu, stnEngineOperStatus=stnEngineOperStatus, stnEnginePeer=stnEnginePeer, stnBatteryEntry=stnBatteryEntry, stnNotificationResourceStatus=stnNotificationResourceStatus, stnNotificationFlashStatus=stnNotificationFlashStatus, stnSlotTable=stnSlotTable, stnSubModuleIndex=stnSubModuleIndex, stnModuleAdminStatus=stnModuleAdminStatus, stnBatteryLow=stnBatteryLow, stnModuleType=stnModuleType, stnEngineIndex=stnEngineIndex, stnModuleDescr=stnModuleDescr, stnPowerDescr=stnPowerDescr, stnSubModuleTable=stnSubModuleTable, stnModuleOperStatus=stnModuleOperStatus, stnCpuUtilizationTable=stnCpuUtilizationTable, stnPortLedPortIndex=stnPortLedPortIndex, stnChassisMibCompliances=stnChassisMibCompliances, stnModulePeer=stnModulePeer, stnEngineUp=stnEngineUp, stnPowerEntry=stnPowerEntry, stnModuleDown=stnModuleDown, stnNotificationModuleTemperature=stnNotificationModuleTemperature, stnLedPowerA=stnLedPowerA, stnChassisMibGroup=stnChassisMibGroup, stnCpuIpEntry=stnCpuIpEntry, stnPortLedSlotIndex=stnPortLedSlotIndex, stnFanTrayLedIndex=stnFanTrayLedIndex, stnCpuUtilizationIndex=stnCpuUtilizationIndex, stnPowerTable=stnPowerTable, stnPower=stnPower, stnEngineType=stnEngineType, stnLedAlarm=stnLedAlarm, stnTemperatureFailure=stnTemperatureFailure)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, single_value_constraint, constraints_intersection, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint')
(object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup')
(iso, gauge32, time_ticks, integer32, counter64, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, object_identity, bits, ip_address, unsigned32, module_identity, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'Gauge32', 'TimeTicks', 'Integer32', 'Counter64', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'ObjectIdentity', 'Bits', 'IpAddress', 'Unsigned32', 'ModuleIdentity', 'NotificationType')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
(stn_notification, stn_systems) = mibBuilder.importSymbols('SPRING-TIDE-NETWORKS-SMI', 'stnNotification', 'stnSystems')
(stn_hardware_sub_module_type, stn_power_status, stn_engine_oper_status, stn_engine_admin_status, stn_resource_status, stn_module_admin_status, stn_module_oper_status, stn_battery_status, stn_flash_status, stn_hardware_module_type, stn_led_status) = mibBuilder.importSymbols('SPRING-TIDE-NETWORKS-TC', 'StnHardwareSubModuleType', 'StnPowerStatus', 'StnEngineOperStatus', 'StnEngineAdminStatus', 'StnResourceStatus', 'StnModuleAdminStatus', 'StnModuleOperStatus', 'StnBatteryStatus', 'StnFlashStatus', 'StnHardwareModuleType', 'StnLedStatus')
stn_chassis = module_identity((1, 3, 6, 1, 4, 1, 3551, 2, 1))
if mibBuilder.loadTexts:
stnChassis.setLastUpdated('0002160000Z')
if mibBuilder.loadTexts:
stnChassis.setOrganization('Spring Tide Networks, Inc.')
stn_chassis_objects = mib_identifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1))
stn_chassis_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 2))
stn_chassis_vars = mib_identifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 1))
stn_modules = mib_identifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2))
stn_leds = mib_identifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3))
stn_power = mib_identifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4))
stn_resource = mib_identifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5))
stn_chassis_trap_vars = mib_identifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 100))
stn_chassis_sys_type = mib_scalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('stn5000', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnChassisSysType.setStatus('current')
stn_chassis_sys_descr = mib_scalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnChassisSysDescr.setStatus('current')
stn_chassis_id = mib_scalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 1, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnChassisId.setStatus('current')
stn_slot_table = mib_table((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1))
if mibBuilder.loadTexts:
stnSlotTable.setStatus('current')
stn_slot_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1)).setIndexNames((0, 'STN-CHASSIS-MIB', 'stnSlotIndex'))
if mibBuilder.loadTexts:
stnSlotEntry.setStatus('current')
stn_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnSlotIndex.setStatus('current')
stn_module_type = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 2), stn_hardware_module_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnModuleType.setStatus('current')
stn_module_peer = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnModulePeer.setStatus('current')
stn_module_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 4), stn_module_admin_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnModuleAdminStatus.setStatus('current')
stn_module_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 5), stn_module_oper_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnModuleOperStatus.setStatus('current')
stn_module_descr = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 6), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnModuleDescr.setStatus('current')
stn_module_led = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 7), stn_led_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnModuleLed.setStatus('current')
stn_sub_modules = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 1, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnSubModules.setStatus('current')
stn_sub_module_table = mib_table((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2))
if mibBuilder.loadTexts:
stnSubModuleTable.setStatus('current')
stn_sub_module_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1)).setIndexNames((0, 'STN-CHASSIS-MIB', 'stnSubModuleSlot'), (0, 'STN-CHASSIS-MIB', 'stnSubModuleIndex'))
if mibBuilder.loadTexts:
stnSubModuleEntry.setStatus('current')
stn_sub_module_slot = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnSubModuleSlot.setStatus('current')
stn_sub_module_index = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnSubModuleIndex.setStatus('current')
stn_sub_module_type = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1, 3), stn_hardware_sub_module_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnSubModuleType.setStatus('current')
stn_sub_module_peer = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnSubModulePeer.setStatus('current')
stn_sub_module_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1, 5), stn_module_admin_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnSubModuleAdminStatus.setStatus('current')
stn_sub_module_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1, 6), stn_module_oper_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnSubModuleOperStatus.setStatus('current')
stn_sub_module_descr = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 2, 1, 7), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnSubModuleDescr.setStatus('current')
stn_engine_table = mib_table((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3))
if mibBuilder.loadTexts:
stnEngineTable.setStatus('current')
stn_engine_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1)).setIndexNames((0, 'STN-CHASSIS-MIB', 'stnEngineIndex'))
if mibBuilder.loadTexts:
stnEngineEntry.setStatus('current')
stn_engine_index = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnEngineIndex.setStatus('current')
stn_engine_slot = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnEngineSlot.setStatus('current')
stn_engine_cpu = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnEngineCpu.setStatus('current')
stn_engine_type = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('swc', 2), ('rpe', 3), ('ecf', 4), ('ecf2', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnEngineType.setStatus('current')
stn_engine_peer = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnEnginePeer.setStatus('current')
stn_engine_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 6), stn_engine_admin_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnEngineAdminStatus.setStatus('current')
stn_engine_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 7), stn_engine_oper_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnEngineOperStatus.setStatus('current')
stn_engine_descr = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 2, 3, 1, 8), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnEngineDescr.setStatus('current')
stn_led_fan_tray = mib_scalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 1), stn_led_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnLedFanTray.setStatus('current')
stn_led_power_a = mib_scalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 2), stn_led_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnLedPowerA.setStatus('current')
stn_led_power_b = mib_scalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 3), stn_led_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnLedPowerB.setStatus('current')
stn_led_alarm = mib_scalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 4), stn_led_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnLedAlarm.setStatus('current')
stn_fan_tray_led_table = mib_table((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 5))
if mibBuilder.loadTexts:
stnFanTrayLedTable.setStatus('current')
stn_fan_tray_led_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 5, 1)).setIndexNames((0, 'STN-CHASSIS-MIB', 'stnFanTrayLedIndex'))
if mibBuilder.loadTexts:
stnFanTrayLedEntry.setStatus('current')
stn_fan_tray_led_index = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 5, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnFanTrayLedIndex.setStatus('current')
stn_fan_tray_led_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 5, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnFanTrayLedSlotIndex.setStatus('current')
stn_fan_tray_led_status = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 5, 1, 3), stn_led_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnFanTrayLedStatus.setStatus('current')
stn_port_led_table = mib_table((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 6))
if mibBuilder.loadTexts:
stnPortLedTable.setStatus('current')
stn_port_led_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 6, 1)).setIndexNames((0, 'STN-CHASSIS-MIB', 'stnPortLedSlotIndex'), (0, 'STN-CHASSIS-MIB', 'stnPortLedPortIndex'), (0, 'STN-CHASSIS-MIB', 'stnPortLedIndex'))
if mibBuilder.loadTexts:
stnPortLedEntry.setStatus('current')
stn_port_led_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 6, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnPortLedSlotIndex.setStatus('current')
stn_port_led_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 6, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnPortLedPortIndex.setStatus('current')
stn_port_led_index = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 6, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnPortLedIndex.setStatus('current')
stn_port_led_status = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 6, 1, 4), stn_led_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnPortLedStatus.setStatus('current')
stn_port_led_descr = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 3, 6, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnPortLedDescr.setStatus('current')
stn_power_table = mib_table((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 1))
if mibBuilder.loadTexts:
stnPowerTable.setStatus('current')
stn_power_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 1, 1)).setIndexNames((0, 'STN-CHASSIS-MIB', 'stnPowerIndex'))
if mibBuilder.loadTexts:
stnPowerEntry.setStatus('current')
stn_power_index = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnPowerIndex.setStatus('current')
stn_power_status = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 1, 1, 2), stn_power_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnPowerStatus.setStatus('current')
stn_power_descr = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 1, 1, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnPowerDescr.setStatus('current')
stn_battery_table = mib_table((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 2))
if mibBuilder.loadTexts:
stnBatteryTable.setStatus('current')
stn_battery_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 2, 1)).setIndexNames((0, 'STN-CHASSIS-MIB', 'stnBatterySlotIndex'))
if mibBuilder.loadTexts:
stnBatteryEntry.setStatus('current')
stn_battery_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnBatterySlotIndex.setStatus('current')
stn_battery_type = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnBatteryType.setStatus('current')
stn_battery_status = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 2, 1, 3), stn_battery_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnBatteryStatus.setStatus('current')
stn_battery_descr = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 4, 2, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnBatteryDescr.setStatus('current')
stn_cpu_utilization_table = mib_table((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 1))
if mibBuilder.loadTexts:
stnCpuUtilizationTable.setStatus('current')
stn_cpu_utilization_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 1, 1)).setIndexNames((0, 'STN-CHASSIS-MIB', 'stnCpuUtilizationIndex'))
if mibBuilder.loadTexts:
stnCpuUtilizationEntry.setStatus('current')
stn_cpu_utilization_index = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnCpuUtilizationIndex.setStatus('current')
stn_cpu_utilization_current = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnCpuUtilizationCurrent.setStatus('current')
stn_cpu_utilization5_min = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnCpuUtilization5Min.setStatus('current')
stn_cpu_utilization15_min = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnCpuUtilization15Min.setStatus('current')
stn_cpu_utilization30_min = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnCpuUtilization30Min.setStatus('current')
stn_cpu_ip_table = mib_table((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2))
if mibBuilder.loadTexts:
stnCpuIpTable.setStatus('current')
stn_cpu_ip_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2, 1)).setIndexNames((0, 'STN-CHASSIS-MIB', 'stnCpuIpIndex'))
if mibBuilder.loadTexts:
stnCpuIpEntry.setStatus('current')
stn_cpu_ip_index = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnCpuIpIndex.setStatus('current')
stn_cpu_ip_route_limit = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnCpuIpRouteLimit.setStatus('current')
stn_cpu_ip_routes_in_use = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnCpuIpRoutesInUse.setStatus('current')
stn_cpu_ip_routes_booked = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnCpuIpRoutesBooked.setStatus('current')
stn_cpu_ip_fwd_processes = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnCpuIpFwdProcesses.setStatus('current')
stn_cpu_ip_routing_processes = mib_table_column((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 5, 2, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnCpuIpRoutingProcesses.setStatus('current')
stn_notification_cfg_change_time = mib_scalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 100, 1), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnNotificationCfgChangeTime.setStatus('current')
stn_notification_flash_status = mib_scalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 100, 2), stn_flash_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnNotificationFlashStatus.setStatus('current')
stn_notification_module_temperature = mib_scalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 100, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnNotificationModuleTemperature.setStatus('current')
stn_notification_resource_status = mib_scalar((1, 3, 6, 1, 4, 1, 3551, 2, 1, 1, 100, 4), stn_resource_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stnNotificationResourceStatus.setStatus('current')
stn_redundant = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 1)).setObjects(('STN-CHASSIS-MIB', 'stnSlotIndex'), ('STN-CHASSIS-MIB', 'stnModuleType'), ('STN-CHASSIS-MIB', 'stnModuleOperStatus'))
if mibBuilder.loadTexts:
stnRedundant.setStatus('current')
stn_not_redundant = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 2)).setObjects(('STN-CHASSIS-MIB', 'stnSlotIndex'), ('STN-CHASSIS-MIB', 'stnModuleType'), ('STN-CHASSIS-MIB', 'stnModuleOperStatus'))
if mibBuilder.loadTexts:
stnNotRedundant.setStatus('current')
stn_module_up = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 3)).setObjects(('STN-CHASSIS-MIB', 'stnSlotIndex'), ('STN-CHASSIS-MIB', 'stnModuleType'), ('STN-CHASSIS-MIB', 'stnModuleOperStatus'), ('STN-CHASSIS-MIB', 'stnModuleDescr'), ('STN-CHASSIS-MIB', 'stnSubModules'))
if mibBuilder.loadTexts:
stnModuleUp.setStatus('current')
stn_module_down = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 4)).setObjects(('STN-CHASSIS-MIB', 'stnSlotIndex'), ('STN-CHASSIS-MIB', 'stnModuleType'), ('STN-CHASSIS-MIB', 'stnModuleOperStatus'), ('STN-CHASSIS-MIB', 'stnModuleDescr'), ('STN-CHASSIS-MIB', 'stnSubModules'))
if mibBuilder.loadTexts:
stnModuleDown.setStatus('current')
stn_sub_module_up = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 5)).setObjects(('STN-CHASSIS-MIB', 'stnSubModuleSlot'), ('STN-CHASSIS-MIB', 'stnSubModuleIndex'), ('STN-CHASSIS-MIB', 'stnSubModuleType'), ('STN-CHASSIS-MIB', 'stnSubModuleOperStatus'), ('STN-CHASSIS-MIB', 'stnSubModuleDescr'))
if mibBuilder.loadTexts:
stnSubModuleUp.setStatus('current')
stn_sub_module_down = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 6)).setObjects(('STN-CHASSIS-MIB', 'stnSubModuleSlot'), ('STN-CHASSIS-MIB', 'stnSubModuleIndex'), ('STN-CHASSIS-MIB', 'stnSubModuleType'), ('STN-CHASSIS-MIB', 'stnSubModuleOperStatus'), ('STN-CHASSIS-MIB', 'stnSubModuleDescr'))
if mibBuilder.loadTexts:
stnSubModuleDown.setStatus('current')
stn_engine_up = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 7)).setObjects(('STN-CHASSIS-MIB', 'stnEngineIndex'), ('STN-CHASSIS-MIB', 'stnEngineSlot'), ('STN-CHASSIS-MIB', 'stnEngineCpu'), ('STN-CHASSIS-MIB', 'stnEngineType'), ('STN-CHASSIS-MIB', 'stnEngineOperStatus'))
if mibBuilder.loadTexts:
stnEngineUp.setStatus('current')
stn_engine_down = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 8)).setObjects(('STN-CHASSIS-MIB', 'stnEngineIndex'), ('STN-CHASSIS-MIB', 'stnEngineSlot'), ('STN-CHASSIS-MIB', 'stnEngineCpu'), ('STN-CHASSIS-MIB', 'stnEngineType'), ('STN-CHASSIS-MIB', 'stnEngineOperStatus'))
if mibBuilder.loadTexts:
stnEngineDown.setStatus('current')
stn_battery_low = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 9)).setObjects(('STN-CHASSIS-MIB', 'stnBatterySlotIndex'), ('STN-CHASSIS-MIB', 'stnBatteryType'), ('STN-CHASSIS-MIB', 'stnBatteryStatus'))
if mibBuilder.loadTexts:
stnBatteryLow.setStatus('current')
stn_flash_failure = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 10)).setObjects(('STN-CHASSIS-MIB', 'stnNotificationFlashStatus'))
if mibBuilder.loadTexts:
stnFlashFailure.setStatus('current')
stn_resource_failure = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 11)).setObjects(('STN-CHASSIS-MIB', 'stnNotificationResourceStatus'))
if mibBuilder.loadTexts:
stnResourceFailure.setStatus('current')
stn_failover = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 12)).setObjects(('STN-CHASSIS-MIB', 'stnSlotIndex'), ('STN-CHASSIS-MIB', 'stnModuleType'))
if mibBuilder.loadTexts:
stnFailover.setStatus('current')
stn_cfg_change = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 19)).setObjects(('STN-CHASSIS-MIB', 'stnNotificationCfgChangeTime'))
if mibBuilder.loadTexts:
stnCfgChange.setStatus('current')
stn_power_failure = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 55)).setObjects(('STN-CHASSIS-MIB', 'stnPowerIndex'), ('STN-CHASSIS-MIB', 'stnPowerStatus'))
if mibBuilder.loadTexts:
stnPowerFailure.setStatus('current')
stn_temperature_failure = notification_type((1, 3, 6, 1, 4, 1, 3551, 2, 100, 0, 56)).setObjects(('STN-CHASSIS-MIB', 'stnSlotIndex'), ('STN-CHASSIS-MIB', 'stnModuleType'), ('STN-CHASSIS-MIB', 'stnSubModuleType'), ('STN-CHASSIS-MIB', 'stnNotificationModuleTemperature'))
if mibBuilder.loadTexts:
stnTemperatureFailure.setStatus('current')
stn_chassis_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 2, 1))
stn_chassis_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 3551, 2, 1, 2, 2))
stn_chassis_mib_compliance_rev1 = module_compliance((1, 3, 6, 1, 4, 1, 3551, 2, 1, 2, 1, 1)).setObjects(('STN-CHASSIS-MIB', 'stnChassisMibGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stn_chassis_mib_compliance_rev1 = stnChassisMibComplianceRev1.setStatus('current')
stn_chassis_mib_group = object_group((1, 3, 6, 1, 4, 1, 3551, 2, 1, 2, 2, 1)).setObjects(('STN-CHASSIS-MIB', 'stnChassisSysType'), ('STN-CHASSIS-MIB', 'stnChassisSysDescr'), ('STN-CHASSIS-MIB', 'stnChassisId'), ('STN-CHASSIS-MIB', 'stnSlotIndex'), ('STN-CHASSIS-MIB', 'stnModuleType'), ('STN-CHASSIS-MIB', 'stnModulePeer'), ('STN-CHASSIS-MIB', 'stnModuleAdminStatus'), ('STN-CHASSIS-MIB', 'stnModuleOperStatus'), ('STN-CHASSIS-MIB', 'stnModuleDescr'), ('STN-CHASSIS-MIB', 'stnModuleLed'), ('STN-CHASSIS-MIB', 'stnSubModules'), ('STN-CHASSIS-MIB', 'stnSubModuleSlot'), ('STN-CHASSIS-MIB', 'stnSubModuleIndex'), ('STN-CHASSIS-MIB', 'stnSubModuleType'), ('STN-CHASSIS-MIB', 'stnSubModulePeer'), ('STN-CHASSIS-MIB', 'stnSubModuleAdminStatus'), ('STN-CHASSIS-MIB', 'stnSubModuleOperStatus'), ('STN-CHASSIS-MIB', 'stnSubModuleDescr'), ('STN-CHASSIS-MIB', 'stnEngineIndex'), ('STN-CHASSIS-MIB', 'stnEngineSlot'), ('STN-CHASSIS-MIB', 'stnEngineCpu'), ('STN-CHASSIS-MIB', 'stnEngineType'), ('STN-CHASSIS-MIB', 'stnEnginePeer'), ('STN-CHASSIS-MIB', 'stnEngineAdminStatus'), ('STN-CHASSIS-MIB', 'stnEngineOperStatus'), ('STN-CHASSIS-MIB', 'stnEngineDescr'), ('STN-CHASSIS-MIB', 'stnLedFanTray'), ('STN-CHASSIS-MIB', 'stnLedPowerA'), ('STN-CHASSIS-MIB', 'stnLedPowerB'), ('STN-CHASSIS-MIB', 'stnLedAlarm'), ('STN-CHASSIS-MIB', 'stnFanTrayLedIndex'), ('STN-CHASSIS-MIB', 'stnFanTrayLedSlotIndex'), ('STN-CHASSIS-MIB', 'stnFanTrayLedStatus'), ('STN-CHASSIS-MIB', 'stnPortLedSlotIndex'), ('STN-CHASSIS-MIB', 'stnPortLedPortIndex'), ('STN-CHASSIS-MIB', 'stnPortLedIndex'), ('STN-CHASSIS-MIB', 'stnPortLedStatus'), ('STN-CHASSIS-MIB', 'stnPortLedDescr'), ('STN-CHASSIS-MIB', 'stnPowerIndex'), ('STN-CHASSIS-MIB', 'stnPowerStatus'), ('STN-CHASSIS-MIB', 'stnPowerDescr'), ('STN-CHASSIS-MIB', 'stnBatterySlotIndex'), ('STN-CHASSIS-MIB', 'stnBatteryType'), ('STN-CHASSIS-MIB', 'stnBatteryStatus'), ('STN-CHASSIS-MIB', 'stnBatteryDescr'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stn_chassis_mib_group = stnChassisMibGroup.setStatus('current')
mibBuilder.exportSymbols('STN-CHASSIS-MIB', stnBatteryTable=stnBatteryTable, stnCpuUtilizationEntry=stnCpuUtilizationEntry, stnSubModuleSlot=stnSubModuleSlot, stnCfgChange=stnCfgChange, stnFanTrayLedEntry=stnFanTrayLedEntry, stnPortLedTable=stnPortLedTable, stnChassis=stnChassis, stnPowerStatus=stnPowerStatus, stnPowerFailure=stnPowerFailure, stnLeds=stnLeds, stnBatteryStatus=stnBatteryStatus, stnSlotIndex=stnSlotIndex, stnNotRedundant=stnNotRedundant, stnChassisTrapVars=stnChassisTrapVars, stnSubModuleDescr=stnSubModuleDescr, stnNotificationCfgChangeTime=stnNotificationCfgChangeTime, stnEngineDescr=stnEngineDescr, stnCpuIpRoutingProcesses=stnCpuIpRoutingProcesses, stnBatterySlotIndex=stnBatterySlotIndex, stnChassisSysDescr=stnChassisSysDescr, stnSubModuleAdminStatus=stnSubModuleAdminStatus, stnChassisVars=stnChassisVars, stnSubModuleEntry=stnSubModuleEntry, stnFanTrayLedTable=stnFanTrayLedTable, stnCpuUtilization5Min=stnCpuUtilization5Min, stnSubModules=stnSubModules, stnPowerIndex=stnPowerIndex, stnChassisSysType=stnChassisSysType, stnCpuUtilization15Min=stnCpuUtilization15Min, stnResourceFailure=stnResourceFailure, stnCpuIpRouteLimit=stnCpuIpRouteLimit, stnCpuIpRoutesInUse=stnCpuIpRoutesInUse, stnSubModuleType=stnSubModuleType, stnLedFanTray=stnLedFanTray, stnResource=stnResource, stnChassisMibGroups=stnChassisMibGroups, stnEngineEntry=stnEngineEntry, stnPortLedDescr=stnPortLedDescr, stnEngineDown=stnEngineDown, stnFanTrayLedSlotIndex=stnFanTrayLedSlotIndex, stnChassisObjects=stnChassisObjects, stnModules=stnModules, stnCpuUtilization30Min=stnCpuUtilization30Min, stnSlotEntry=stnSlotEntry, stnFanTrayLedStatus=stnFanTrayLedStatus, stnBatteryDescr=stnBatteryDescr, stnSubModuleUp=stnSubModuleUp, stnSubModulePeer=stnSubModulePeer, stnPortLedEntry=stnPortLedEntry, PYSNMP_MODULE_ID=stnChassis, stnSubModuleDown=stnSubModuleDown, stnCpuIpRoutesBooked=stnCpuIpRoutesBooked, stnRedundant=stnRedundant, stnEngineAdminStatus=stnEngineAdminStatus, stnEngineTable=stnEngineTable, stnChassisMibConformance=stnChassisMibConformance, stnEngineSlot=stnEngineSlot, stnBatteryType=stnBatteryType, stnLedPowerB=stnLedPowerB, stnCpuIpFwdProcesses=stnCpuIpFwdProcesses, stnPortLedIndex=stnPortLedIndex, stnCpuUtilizationCurrent=stnCpuUtilizationCurrent, stnFlashFailure=stnFlashFailure, stnChassisMibComplianceRev1=stnChassisMibComplianceRev1, stnModuleLed=stnModuleLed, stnPortLedStatus=stnPortLedStatus, stnChassisId=stnChassisId, stnCpuIpIndex=stnCpuIpIndex, stnModuleUp=stnModuleUp, stnFailover=stnFailover, stnCpuIpTable=stnCpuIpTable, stnSubModuleOperStatus=stnSubModuleOperStatus, stnEngineCpu=stnEngineCpu, stnEngineOperStatus=stnEngineOperStatus, stnEnginePeer=stnEnginePeer, stnBatteryEntry=stnBatteryEntry, stnNotificationResourceStatus=stnNotificationResourceStatus, stnNotificationFlashStatus=stnNotificationFlashStatus, stnSlotTable=stnSlotTable, stnSubModuleIndex=stnSubModuleIndex, stnModuleAdminStatus=stnModuleAdminStatus, stnBatteryLow=stnBatteryLow, stnModuleType=stnModuleType, stnEngineIndex=stnEngineIndex, stnModuleDescr=stnModuleDescr, stnPowerDescr=stnPowerDescr, stnSubModuleTable=stnSubModuleTable, stnModuleOperStatus=stnModuleOperStatus, stnCpuUtilizationTable=stnCpuUtilizationTable, stnPortLedPortIndex=stnPortLedPortIndex, stnChassisMibCompliances=stnChassisMibCompliances, stnModulePeer=stnModulePeer, stnEngineUp=stnEngineUp, stnPowerEntry=stnPowerEntry, stnModuleDown=stnModuleDown, stnNotificationModuleTemperature=stnNotificationModuleTemperature, stnLedPowerA=stnLedPowerA, stnChassisMibGroup=stnChassisMibGroup, stnCpuIpEntry=stnCpuIpEntry, stnPortLedSlotIndex=stnPortLedSlotIndex, stnFanTrayLedIndex=stnFanTrayLedIndex, stnCpuUtilizationIndex=stnCpuUtilizationIndex, stnPowerTable=stnPowerTable, stnPower=stnPower, stnEngineType=stnEngineType, stnLedAlarm=stnLedAlarm, stnTemperatureFailure=stnTemperatureFailure) |
# Python returning values
def withdraw_money(current_bal, amount):
if(current_bal >= amount):
current_bal -= amount
return current_bal
balance = withdraw_money(100, 20)
if (balance >= 50):
print(f"The balance is {balance}.")
else:
print("You need to make a deposit.")
| def withdraw_money(current_bal, amount):
if current_bal >= amount:
current_bal -= amount
return current_bal
balance = withdraw_money(100, 20)
if balance >= 50:
print(f'The balance is {balance}.')
else:
print('You need to make a deposit.') |
class Queue:
"""An implementation of the Queue data strucutre."""
def __init__(self):
self._items = []
def __repr__(self):
return "pyDS.queue.Queue({})".format(self._items)
def __str__(self):
return str(self._items)
def __len__(self):
return len(self._items)
def is_empty(self):
"""Check queue is empty.
Returns:
True if Queue is empty, False otherwise.
"""
return self._items == []
def enqueue(self, item):
"""Add item to Queue.
Args:
item: The item to be inserted.
"""
self._items.append(item)
def dequeue(self):
"""Remove item from queue.
Returns:
The first item from the Queue. Raises IndexError if Queue empty.
"""
if not self.is_empty():
return self._items.pop(0)
else:
raise IndexError("Queue is empty")
def front(self):
"""Return the first Queue item.
Returns:
The first item from the Queue. Raises IndexError if Queue empty.
"""
if not self.is_empty():
return self._items[0]
else:
return IndexError("Queue is empty")
def rear(self):
"""Return the last Queue item.
Returns:
The last item from the Queue. Raises IndexError if Queue empty.
"""
if not self.is_empty():
return self._items[-1]
else:
return IndexError("Queue is empty")
| class Queue:
"""An implementation of the Queue data strucutre."""
def __init__(self):
self._items = []
def __repr__(self):
return 'pyDS.queue.Queue({})'.format(self._items)
def __str__(self):
return str(self._items)
def __len__(self):
return len(self._items)
def is_empty(self):
"""Check queue is empty.
Returns:
True if Queue is empty, False otherwise.
"""
return self._items == []
def enqueue(self, item):
"""Add item to Queue.
Args:
item: The item to be inserted.
"""
self._items.append(item)
def dequeue(self):
"""Remove item from queue.
Returns:
The first item from the Queue. Raises IndexError if Queue empty.
"""
if not self.is_empty():
return self._items.pop(0)
else:
raise index_error('Queue is empty')
def front(self):
"""Return the first Queue item.
Returns:
The first item from the Queue. Raises IndexError if Queue empty.
"""
if not self.is_empty():
return self._items[0]
else:
return index_error('Queue is empty')
def rear(self):
"""Return the last Queue item.
Returns:
The last item from the Queue. Raises IndexError if Queue empty.
"""
if not self.is_empty():
return self._items[-1]
else:
return index_error('Queue is empty') |
# -*- coding: utf-8 -*-
"""
Created on Fri Sep 16 09:31:26 2016
@author: andre
# edX MITx 6.00.1x
# Introduction to Computer Science and Programming Using Python
# Problem Set 2, problem 3
# Use bisection search to make the program faster
# The following variables contain values as described below:
# balance - the outstanding balance on the credit card
# annualInterestRate - annual interest rate as a decimal
# Monthly interest rate = (Annual interest rate) / 12.0
# Monthly payment lower bound = Balance / 12
# Monthly payment upper bound = (Balance x (1 + Monthly interest rate)12) / 12.0
# Problem Summary: Use bisection search to search for the smallest monthly payment
# to the cent such that we can pay off the entire balance within a year.
"""
# Test Cases, comment out before submitting for grading
#Test Case 1
balance = 320000
annualInterestRate = 0.2
monthly_interest_rate = (annualInterestRate / 12.0)
payment_lower = (balance / 12)
payment_upper = (balance * ((1 + monthly_interest_rate)**12)) / 12.0
original_balance = balance
while balance != 0.00:
# Set value for thePayment to midpoint of lower and upper
payment = (payment_lower + payment_upper) / 2
# Reset balance each time through while loop
balance = original_balance
for i in range(1,13):
balance = (balance - payment) * (1 + monthly_interest_rate)
if balance > 0:
payment_lower = payment
elif balance < 0:
payment_upper = payment
balance = round(balance, 2)
print("Lowest Payment:", round(payment,2)) | """
Created on Fri Sep 16 09:31:26 2016
@author: andre
# edX MITx 6.00.1x
# Introduction to Computer Science and Programming Using Python
# Problem Set 2, problem 3
# Use bisection search to make the program faster
# The following variables contain values as described below:
# balance - the outstanding balance on the credit card
# annualInterestRate - annual interest rate as a decimal
# Monthly interest rate = (Annual interest rate) / 12.0
# Monthly payment lower bound = Balance / 12
# Monthly payment upper bound = (Balance x (1 + Monthly interest rate)12) / 12.0
# Problem Summary: Use bisection search to search for the smallest monthly payment
# to the cent such that we can pay off the entire balance within a year.
"""
balance = 320000
annual_interest_rate = 0.2
monthly_interest_rate = annualInterestRate / 12.0
payment_lower = balance / 12
payment_upper = balance * (1 + monthly_interest_rate) ** 12 / 12.0
original_balance = balance
while balance != 0.0:
payment = (payment_lower + payment_upper) / 2
balance = original_balance
for i in range(1, 13):
balance = (balance - payment) * (1 + monthly_interest_rate)
if balance > 0:
payment_lower = payment
elif balance < 0:
payment_upper = payment
balance = round(balance, 2)
print('Lowest Payment:', round(payment, 2)) |
while True:
n = int(input("Height: "))
width = n
if n > 0 and n <= 8:
break
for num_of_hashes in range(1, n + 1):
num_of_spaces = n - num_of_hashes
print(" " * num_of_spaces, end="")
print("#" * num_of_hashes, end="")
print(" ", end="")
print("#" * num_of_hashes)
| while True:
n = int(input('Height: '))
width = n
if n > 0 and n <= 8:
break
for num_of_hashes in range(1, n + 1):
num_of_spaces = n - num_of_hashes
print(' ' * num_of_spaces, end='')
print('#' * num_of_hashes, end='')
print(' ', end='')
print('#' * num_of_hashes) |
class Events:
# REPL to USER EVENTS
INP = 'inp'
OUT = 'out'
ERR = 'err'
HTML = 'html'
EXC = 'exc'
PONG = 'pong'
PATH = 'path'
DONE = 'ended'
STARTED = 'started'
FORKED = 'forked'
# REPL <-> USER EVENTS
NOINT = 'noint'
# USER to REPL EVENTS
WRT = 'wrt'
RUN = 'run'
PING = 'ping'
FORK = 'fork'
def encode(event, data=''):
return event + ' ' + data.replace('\n', '\\n')
def decode(message):
msg = message.split(' ', 1)
if len(msg) == 1:
return msg[0].rstrip(), ''
event, data = msg
return event, data.replace('\\n', '\n')
| class Events:
inp = 'inp'
out = 'out'
err = 'err'
html = 'html'
exc = 'exc'
pong = 'pong'
path = 'path'
done = 'ended'
started = 'started'
forked = 'forked'
noint = 'noint'
wrt = 'wrt'
run = 'run'
ping = 'ping'
fork = 'fork'
def encode(event, data=''):
return event + ' ' + data.replace('\n', '\\n')
def decode(message):
msg = message.split(' ', 1)
if len(msg) == 1:
return (msg[0].rstrip(), '')
(event, data) = msg
return (event, data.replace('\\n', '\n')) |
def test():
# Here we can either check objects created in the solution code, or the
# string value of the solution, available as __solution__. A helper for
# printing formatted messages is available as __msg__. See the testTemplate
# in the meta.json for details.
# If an assertion fails, the message will be displayed
assert "junk_drawer" in __solution__, "Make sure you are naming your object 'junk_drawer'"
assert "drawer_length" in __solution__, "Make sure you are naming your object 'drawer_length'"
assert "cleaned_junk_drawer" in __solution__, "Make sure you are naming your object 'cleaned_junk_drawer'"
assert "junk_set" in __solution__, "Make sure you are naming your object 'junk_set'"
assert len(
set(junk_drawer).intersection({3, 4, 7.3, True, 'pen', 'scrap paper'})
) == 6, "Some items are missing from 'junk_drawer'. Did you add everything?"
assert drawer_length == 6, "The length of 'junk_drawer' is incorrect. Did you add everthing?"
assert len(
cleaned_junk_drawer
) == 3, "The length of 'cleaned_junk_drawer' is incorrect. Are you slicing properly?"
assert len(
set(junk_set).intersection({4, 'pen', 'scrap paper'})
) == 3, "Some items are missing from 'junk_set'. Are you slicing properly?"
__msg__.good("Nice work, well done!")
| def test():
assert 'junk_drawer' in __solution__, "Make sure you are naming your object 'junk_drawer'"
assert 'drawer_length' in __solution__, "Make sure you are naming your object 'drawer_length'"
assert 'cleaned_junk_drawer' in __solution__, "Make sure you are naming your object 'cleaned_junk_drawer'"
assert 'junk_set' in __solution__, "Make sure you are naming your object 'junk_set'"
assert len(set(junk_drawer).intersection({3, 4, 7.3, True, 'pen', 'scrap paper'})) == 6, "Some items are missing from 'junk_drawer'. Did you add everything?"
assert drawer_length == 6, "The length of 'junk_drawer' is incorrect. Did you add everthing?"
assert len(cleaned_junk_drawer) == 3, "The length of 'cleaned_junk_drawer' is incorrect. Are you slicing properly?"
assert len(set(junk_set).intersection({4, 'pen', 'scrap paper'})) == 3, "Some items are missing from 'junk_set'. Are you slicing properly?"
__msg__.good('Nice work, well done!') |
# Runtime Average-case: Theta(n^2)
# Runtime Best-case (already sorted): O(n)
# Runtime Worst-case (reserve sorted): Theta(n^2)
# In Place: Yes
# Stable: Yes
def insertion_sort(a):
for j in range(1, len(a)):
key = a[j]
# start with element before and keep going back
i = j - 1
while i >= 0 and key < a[i]:
# keep shifting the elements to the right
a[i+1] = a[i]
i = i - 1
# place the current element in the right place
# we need to add i + 1 because when we break the loop it would be after an extra i - 1
a[i+1] = key
a = [4,6,8,9,3,5,1]
insertion_sort(a)
print(a) | def insertion_sort(a):
for j in range(1, len(a)):
key = a[j]
i = j - 1
while i >= 0 and key < a[i]:
a[i + 1] = a[i]
i = i - 1
a[i + 1] = key
a = [4, 6, 8, 9, 3, 5, 1]
insertion_sort(a)
print(a) |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The module contains a collection of useful algorithms written in python."""
__author__ = 'Md. Imrul Hassan'
__email__ = 'mihassan@gmail.com'
__version__ = '0.2.1'
| """The module contains a collection of useful algorithms written in python."""
__author__ = 'Md. Imrul Hassan'
__email__ = 'mihassan@gmail.com'
__version__ = '0.2.1' |
# Definition for a undirected graph node
# class UndirectedGraphNode:
# def __init__(self, x):
# self.label = x
# self.neighbors = []
class Solution:
# @param node, a undirected graph node
# @return a undirected graph node
def cloneGraph(self, node):
if not node: return None
res = UndirectedGraphNode(node.label)
seen = {node.label: res}
self.helper(node, res, seen)
return res
def helper(self, node, answer, seen):
seen[answer.label] = answer
for i in node.neighbors:
if i.label not in seen:
nex = UndirectedGraphNode(i.label)
answer.neighbors.append(nex)
self.helper(i, nex, seen)
else:
answer.neighbors.append(seen[i.label])
| class Solution:
def clone_graph(self, node):
if not node:
return None
res = undirected_graph_node(node.label)
seen = {node.label: res}
self.helper(node, res, seen)
return res
def helper(self, node, answer, seen):
seen[answer.label] = answer
for i in node.neighbors:
if i.label not in seen:
nex = undirected_graph_node(i.label)
answer.neighbors.append(nex)
self.helper(i, nex, seen)
else:
answer.neighbors.append(seen[i.label]) |
squares = [1, 4, 9, 16, 25]
print(squares)
print(squares[0]) #Get first value; remember index offset
print(squares[-1]) #Get last value in sequence
print(squares[2:4]) #Return slice of list
squares.append(54) #Add new value
print(squares)
squares[3] = 88 #Insert new value
print(squares)
| squares = [1, 4, 9, 16, 25]
print(squares)
print(squares[0])
print(squares[-1])
print(squares[2:4])
squares.append(54)
print(squares)
squares[3] = 88
print(squares) |
# ### Problem 3
# Given 2 lists of claim numbers, write the code to merge the 2 lists provided to produce a new list by alternating values between the 2 lists. Once the merge has been completed, print the new list of claim numbers (DO NOT just print the array variable!)
# ```
# # Start with these lists
# list_of_claim_nums_1 = [2, 4, 6, 8, 10]
# list_of_claim_nums_2 = [1, 3, 5, 7, 9]
# ```
# Example Output:
# ```
# The newly created list contains: 2 1 4 3 6 5 8 7 10 9
# ```
# Starting variables
nums1 = [2, 4, 6, 8, 10]
nums2 = [1, 3, 5, 7, 9]
numall=[]
# adding to Array
for x in range(0,len(nums1)):
numall.append(nums1[x])
numall.append(nums2[x])
# Printing Array
print(numall) | nums1 = [2, 4, 6, 8, 10]
nums2 = [1, 3, 5, 7, 9]
numall = []
for x in range(0, len(nums1)):
numall.append(nums1[x])
numall.append(nums2[x])
print(numall) |
class OffsetMissingInIndex(Exception):
pass
class CouldNotFindOffset(Exception):
pass
class LogSizeExceeded(Exception):
pass
| class Offsetmissinginindex(Exception):
pass
class Couldnotfindoffset(Exception):
pass
class Logsizeexceeded(Exception):
pass |
# Copyright 2017 The Forseti Security Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Test data for Service Management GCP api responses."""
FAKE_PROJECT_ID = "project1"
LIST_CONSUMER_SERVICES_PAGE1 = """
{
"services": [
{
"serviceName": "bigquery-json.googleapis.com",
"producerProjectId": "google.com:ultra-current-88221"
},
{
"serviceName": "cloudbilling.googleapis.com",
"producerProjectId": "cloud-billing-api"
},
{
"serviceName": "apikeys.googleapis.com",
"producerProjectId": "google.com:steel-binder-818"
},
{
"serviceName": "appengineflex.googleapis.com",
"producerProjectId": "google.com:gae-api-prod"
},
{
"serviceName": "admin.googleapis.com",
"producerProjectId": "google.com:api-project-73174915157"
},
{
"serviceName": "cloudapis.googleapis.com",
"producerProjectId": "google.com:cloudapis-producer"
}
],
"nextPageToken": "123"
}
"""
LIST_CONSUMER_SERVICES_PAGE2 = """
{
"services": [
{
"serviceName": "containerregistry.googleapis.com",
"producerProjectId": "containerregistry"
},
{
"serviceName": "cloudtrace.googleapis.com",
"producerProjectId": "cloud-trace-api-producer"
},
{
"serviceName": "container.googleapis.com",
"producerProjectId": "google.com:cloud-kubernetes-devrel"
},
{
"serviceName": "containeranalysis.googleapis.com",
"producerProjectId": "container-analysis"
},
{
"serviceName": "dataproc-control.googleapis.com",
"producerProjectId": "cloud-dataproc-producer"
},
{
"serviceName": "clouddebugger.googleapis.com",
"producerProjectId": "google.com:cloud-debugger-producer"
},
{
"serviceName": "compute.googleapis.com",
"producerProjectId": "google.com:api-project-539346026206"
},
{
"serviceName": "cloudbuild.googleapis.com",
"producerProjectId": "argo-api-producer"
}
],
"nextPageToken": "456"
}
"""
LIST_CONSUMER_SERVICES_PAGE3 = """
{
"services": [
{
"serviceName": "deploymentmanager.googleapis.com",
"producerProjectId": "google.com:api-project-596022999904"
},
{
"serviceName": "pubsub.googleapis.com",
"producerProjectId": "cloud-pubsub-billing"
},
{
"serviceName": "dataproc.googleapis.com",
"producerProjectId": "cloud-dataproc-producer"
},
{
"serviceName": "monitoring.googleapis.com",
"producerProjectId": "google.com:gcm-api-admin"
},
{
"serviceName": "dns.googleapis.com",
"producerProjectId": "cloud-dns-service-config"
},
{
"serviceName": "logging.googleapis.com",
"producerProjectId": "metal-incline-93520"
},
{
"serviceName": "datastore.googleapis.com",
"producerProjectId": "cloud-datastore-api"
},
{
"serviceName": "replicapool.googleapis.com",
"producerProjectId": "google.com:api-project-861046436738"
},
{
"serviceName": "replicapoolupdater.googleapis.com",
"producerProjectId": "google.com:prod-default-producer-project"
},
{
"serviceName": "iam.googleapis.com",
"producerProjectId": "iam-whitelisting-project"
}
],
"nextPageToken": "789"
}
"""
LIST_CONSUMER_SERVICES_PAGE4 = """
{
"services": [
{
"serviceName": "servicemanagement.googleapis.com",
"producerProjectId": "google.com:steel-binder-818"
},
{
"serviceName": "storage-api.googleapis.com",
"producerProjectId": "cloud-storage-producer"
},
{
"serviceName": "storage.googleapis.com",
"producerProjectId": "cloud-storage-producer"
},
{
"serviceName": "resourceviews.googleapis.com",
"producerProjectId": "google.com:prod-default-producer-project"
},
{
"serviceName": "sql-component.googleapis.com",
"producerProjectId": "google.com:prod-default-producer-project"
},
{
"serviceName": "storage-component.googleapis.com",
"producerProjectId": "google.com:prod-default-producer-project"
}
]
}
"""
LIST_CONSUMER_SERVICES_RESPONSES = [
LIST_CONSUMER_SERVICES_PAGE1,
LIST_CONSUMER_SERVICES_PAGE2,
LIST_CONSUMER_SERVICES_PAGE3,
LIST_CONSUMER_SERVICES_PAGE4
]
EXPECTED_SERVICES_COUNT = 30
PERMISSION_DENIED = """
{
"error": {
"code": 403,
"message": "Project 'project1' not found or permission denied.",
"status": "PERMISSION_DENIED"
}
}
"""
| """Test data for Service Management GCP api responses."""
fake_project_id = 'project1'
list_consumer_services_page1 = '\n{\n "services": [\n {\n "serviceName": "bigquery-json.googleapis.com",\n "producerProjectId": "google.com:ultra-current-88221"\n },\n {\n "serviceName": "cloudbilling.googleapis.com",\n "producerProjectId": "cloud-billing-api"\n },\n {\n "serviceName": "apikeys.googleapis.com",\n "producerProjectId": "google.com:steel-binder-818"\n },\n {\n "serviceName": "appengineflex.googleapis.com",\n "producerProjectId": "google.com:gae-api-prod"\n },\n {\n "serviceName": "admin.googleapis.com",\n "producerProjectId": "google.com:api-project-73174915157"\n },\n {\n "serviceName": "cloudapis.googleapis.com",\n "producerProjectId": "google.com:cloudapis-producer"\n }\n ],\n "nextPageToken": "123"\n}\n'
list_consumer_services_page2 = '\n{\n "services": [\n {\n "serviceName": "containerregistry.googleapis.com",\n "producerProjectId": "containerregistry"\n },\n {\n "serviceName": "cloudtrace.googleapis.com",\n "producerProjectId": "cloud-trace-api-producer"\n },\n {\n "serviceName": "container.googleapis.com",\n "producerProjectId": "google.com:cloud-kubernetes-devrel"\n },\n {\n "serviceName": "containeranalysis.googleapis.com",\n "producerProjectId": "container-analysis"\n },\n {\n "serviceName": "dataproc-control.googleapis.com",\n "producerProjectId": "cloud-dataproc-producer"\n },\n {\n "serviceName": "clouddebugger.googleapis.com",\n "producerProjectId": "google.com:cloud-debugger-producer"\n },\n {\n "serviceName": "compute.googleapis.com",\n "producerProjectId": "google.com:api-project-539346026206"\n },\n {\n "serviceName": "cloudbuild.googleapis.com",\n "producerProjectId": "argo-api-producer"\n }\n ],\n "nextPageToken": "456"\n}\n'
list_consumer_services_page3 = '\n{\n "services": [\n {\n "serviceName": "deploymentmanager.googleapis.com",\n "producerProjectId": "google.com:api-project-596022999904"\n },\n {\n "serviceName": "pubsub.googleapis.com",\n "producerProjectId": "cloud-pubsub-billing"\n },\n {\n "serviceName": "dataproc.googleapis.com",\n "producerProjectId": "cloud-dataproc-producer"\n },\n {\n "serviceName": "monitoring.googleapis.com",\n "producerProjectId": "google.com:gcm-api-admin"\n },\n {\n "serviceName": "dns.googleapis.com",\n "producerProjectId": "cloud-dns-service-config"\n },\n {\n "serviceName": "logging.googleapis.com",\n "producerProjectId": "metal-incline-93520"\n },\n {\n "serviceName": "datastore.googleapis.com",\n "producerProjectId": "cloud-datastore-api"\n },\n {\n "serviceName": "replicapool.googleapis.com",\n "producerProjectId": "google.com:api-project-861046436738"\n },\n {\n "serviceName": "replicapoolupdater.googleapis.com",\n "producerProjectId": "google.com:prod-default-producer-project"\n },\n {\n "serviceName": "iam.googleapis.com",\n "producerProjectId": "iam-whitelisting-project"\n }\n ],\n "nextPageToken": "789"\n}\n'
list_consumer_services_page4 = '\n{\n "services": [\n {\n "serviceName": "servicemanagement.googleapis.com",\n "producerProjectId": "google.com:steel-binder-818"\n },\n {\n "serviceName": "storage-api.googleapis.com",\n "producerProjectId": "cloud-storage-producer"\n },\n {\n "serviceName": "storage.googleapis.com",\n "producerProjectId": "cloud-storage-producer"\n },\n {\n "serviceName": "resourceviews.googleapis.com",\n "producerProjectId": "google.com:prod-default-producer-project"\n },\n {\n "serviceName": "sql-component.googleapis.com",\n "producerProjectId": "google.com:prod-default-producer-project"\n },\n {\n "serviceName": "storage-component.googleapis.com",\n "producerProjectId": "google.com:prod-default-producer-project"\n }\n ]\n}\n'
list_consumer_services_responses = [LIST_CONSUMER_SERVICES_PAGE1, LIST_CONSUMER_SERVICES_PAGE2, LIST_CONSUMER_SERVICES_PAGE3, LIST_CONSUMER_SERVICES_PAGE4]
expected_services_count = 30
permission_denied = '\n{\n "error": {\n "code": 403,\n "message": "Project \'project1\' not found or permission denied.",\n "status": "PERMISSION_DENIED"\n }\n}\n' |
print("Welcome to the F.A.T C.A.T program, this program encrypts messages using the reverse cipher method") #Prints whats in the parenteses
sentence = input("What do you want to encrypt? ") #Declares a varible and stores what the user inputs
final = ""
i = len(sentence) -1
while(i != -1):
final+= sentence[i];
i -= 1
print(final) | print('Welcome to the F.A.T C.A.T program, this program encrypts messages using the reverse cipher method')
sentence = input('What do you want to encrypt? ')
final = ''
i = len(sentence) - 1
while i != -1:
final += sentence[i]
i -= 1
print(final) |
def sum_series(generator, n):
return sum(generator(i) for i in range(n))
def series(generator, n):
return [generator(i) for i in range(n)]
def search_bordered_sum_series(generator_fabric, n, left_x, right_x, border, epsilon=0.01**5):
left_y = sum_series(generator_fabric(left_x), n)
right_y = sum_series(generator_fabric(right_x), n)
if not (left_y < border < right_y):
raise NotImplementedError
while True:
if right_y - left_y < epsilon:
break
if right_x - left_x < epsilon:
break
new_x = (left_x + right_x) / 2
new_y = sum_series(generator_fabric(new_x), n)
if new_y < border:
left_x = new_x
left_y = new_y
continue
if border < new_y:
right_x = new_x
right_y = new_y
continue
raise NotImplementedError
return series(generator_fabric(left_x), n)
class ExponentialSeriesGenerator:
__slots__ = ('base', 'left_x', 'right_x')
def __init__(self, base, left_x=0, right_x=2**8):
self.base = base
self.left_x = left_x
self.right_x = right_x
def generator_fabric(self, k):
def generator(i):
return self.base * k ** i
return generator
def series(self, n, border):
return search_bordered_sum_series(generator_fabric=self.generator_fabric,
n=n,
left_x=self.left_x,
right_x=self.right_x,
border=border)
def time_series_to_values(time_series, start_speed, end_speed, rounder):
total_time = sum(time_series)
speed_delta = (end_speed - start_speed) / total_time
values = []
prev_time = 0
prev_experience = 0
for time in time_series:
next_time = prev_time + time
next_experience = next_time * (start_speed + (start_speed + next_time * speed_delta)) / 2
values.append(next_experience - prev_experience)
prev_time = next_time
prev_experience = next_experience
return [rounder(value) for value in values]
| def sum_series(generator, n):
return sum((generator(i) for i in range(n)))
def series(generator, n):
return [generator(i) for i in range(n)]
def search_bordered_sum_series(generator_fabric, n, left_x, right_x, border, epsilon=0.01 ** 5):
left_y = sum_series(generator_fabric(left_x), n)
right_y = sum_series(generator_fabric(right_x), n)
if not left_y < border < right_y:
raise NotImplementedError
while True:
if right_y - left_y < epsilon:
break
if right_x - left_x < epsilon:
break
new_x = (left_x + right_x) / 2
new_y = sum_series(generator_fabric(new_x), n)
if new_y < border:
left_x = new_x
left_y = new_y
continue
if border < new_y:
right_x = new_x
right_y = new_y
continue
raise NotImplementedError
return series(generator_fabric(left_x), n)
class Exponentialseriesgenerator:
__slots__ = ('base', 'left_x', 'right_x')
def __init__(self, base, left_x=0, right_x=2 ** 8):
self.base = base
self.left_x = left_x
self.right_x = right_x
def generator_fabric(self, k):
def generator(i):
return self.base * k ** i
return generator
def series(self, n, border):
return search_bordered_sum_series(generator_fabric=self.generator_fabric, n=n, left_x=self.left_x, right_x=self.right_x, border=border)
def time_series_to_values(time_series, start_speed, end_speed, rounder):
total_time = sum(time_series)
speed_delta = (end_speed - start_speed) / total_time
values = []
prev_time = 0
prev_experience = 0
for time in time_series:
next_time = prev_time + time
next_experience = next_time * (start_speed + (start_speed + next_time * speed_delta)) / 2
values.append(next_experience - prev_experience)
prev_time = next_time
prev_experience = next_experience
return [rounder(value) for value in values] |
computation_config = {
'Variable': 'GV1',
'From': ['WB API'],
'files': ['GV1_WB.csv'],
'function': lambda df, var: df.groupby(['ISO']).transform(lambda x: x.rolling(5, 1).mean()),#.mean(axis=1),
'sub_variables': [
'Adjusted net savings, including particulate emission damage (% of GNI)',
],
'Description': lambda var: f"{var[0]} 5 years rolling average "
} | computation_config = {'Variable': 'GV1', 'From': ['WB API'], 'files': ['GV1_WB.csv'], 'function': lambda df, var: df.groupby(['ISO']).transform(lambda x: x.rolling(5, 1).mean()), 'sub_variables': ['Adjusted net savings, including particulate emission damage (% of GNI)'], 'Description': lambda var: f'{var[0]} 5 years rolling average '} |
# DomirScire
class Animal:
def __init__(self, color, number_of_legs):
self.species = self.__class__.__name__
self.color = color
self.number_of_legs = number_of_legs
def __repr__(self):
return f'{self.color} {self.species}, {self.number_of_legs} legs'
class Wolf(Animal):
def __init__(self, color):
super().__init__(color, 4)
class Sheep(Animal):
def __init__(self, color):
super().__init__(color, 4)
class Snake(Animal):
def __init__(self, color):
super().__init__(color, 0)
class Parrot(Animal):
def __init__(self, color):
super().__init__(color, 2)
if __name__ == "__main__":
wolf = Wolf('Black')
sheep = Sheep('White')
snake = Snake('Brown')
parrot = Parrot('Green')
print(wolf)
print(sheep)
print(snake)
print(parrot)
| class Animal:
def __init__(self, color, number_of_legs):
self.species = self.__class__.__name__
self.color = color
self.number_of_legs = number_of_legs
def __repr__(self):
return f'{self.color} {self.species}, {self.number_of_legs} legs'
class Wolf(Animal):
def __init__(self, color):
super().__init__(color, 4)
class Sheep(Animal):
def __init__(self, color):
super().__init__(color, 4)
class Snake(Animal):
def __init__(self, color):
super().__init__(color, 0)
class Parrot(Animal):
def __init__(self, color):
super().__init__(color, 2)
if __name__ == '__main__':
wolf = wolf('Black')
sheep = sheep('White')
snake = snake('Brown')
parrot = parrot('Green')
print(wolf)
print(sheep)
print(snake)
print(parrot) |
TRAIN = False
USERS = {
'yuncam':'aBc1to3'
}
| train = False
users = {'yuncam': 'aBc1to3'} |
##function 'return_list' goes here
def return_list(the_string):
new_list = []
the_string = the_string.replace(" ",",")
the_string = the_string.split(",")
if len(the_string) == 1:
return the_string[0]
else:
for x in range(len(the_string)):
new_list.append(the_string[x])
return new_list
def main():
the_string = input("Enter the string: ")
result = return_list(the_string)
print(result)
main() | def return_list(the_string):
new_list = []
the_string = the_string.replace(' ', ',')
the_string = the_string.split(',')
if len(the_string) == 1:
return the_string[0]
else:
for x in range(len(the_string)):
new_list.append(the_string[x])
return new_list
def main():
the_string = input('Enter the string: ')
result = return_list(the_string)
print(result)
main() |
"""
[E] Given an array, find the average of all contiguous subarrays of size 'K 'in it.
Array: [1, 3, 2, 6, -1, 4, 1, 8, 2], K=5
Output: [2.2, 2.8, 2.4, 3.6, 2.8]
"""
# Brute Force Approach: Time: O(n * k) space: O(1)
def find_averages_of_subarrays(K, arr):
result = []
for i in range(len(arr)-K+1):
# find sum of next 'K' elements
_sum = 0.0
for j in range(i, i+K):
_sum += arr[j]
result.append(_sum/K) # calculate average
return result
def main():
result = find_averages_of_subarrays(5, [1, 3, 2, 6, -1, 4, 1, 8, 2])
print("Averages of subarrays of size K: " + str(result))
main()
# a better approach
# Time: O(n) Space: O(1)
def find_averages_of_subarrays(K, arr):
result = []
windowSum, windowStart = 0.0, 0
for windowEnd in range(len(arr)):
windowSum += arr[windowEnd] # add the next element
# slide the window, we don't need to slide if we've not hit the required window size of 'k'
if windowEnd >= K - 1:
result.append(windowSum / K) # calculate the average
windowSum -= arr[windowStart] # subtract the element going out
windowStart += 1 # slide the window ahead
return result
def main():
result = find_averages_of_subarrays(5, [1, 3, 2, 6, -1, 4, 1, 8, 2])
print("Averages of subarrays of size K: " + str(result))
main()
| """
[E] Given an array, find the average of all contiguous subarrays of size 'K 'in it.
Array: [1, 3, 2, 6, -1, 4, 1, 8, 2], K=5
Output: [2.2, 2.8, 2.4, 3.6, 2.8]
"""
def find_averages_of_subarrays(K, arr):
result = []
for i in range(len(arr) - K + 1):
_sum = 0.0
for j in range(i, i + K):
_sum += arr[j]
result.append(_sum / K)
return result
def main():
result = find_averages_of_subarrays(5, [1, 3, 2, 6, -1, 4, 1, 8, 2])
print('Averages of subarrays of size K: ' + str(result))
main()
def find_averages_of_subarrays(K, arr):
result = []
(window_sum, window_start) = (0.0, 0)
for window_end in range(len(arr)):
window_sum += arr[windowEnd]
if windowEnd >= K - 1:
result.append(windowSum / K)
window_sum -= arr[windowStart]
window_start += 1
return result
def main():
result = find_averages_of_subarrays(5, [1, 3, 2, 6, -1, 4, 1, 8, 2])
print('Averages of subarrays of size K: ' + str(result))
main() |
# Maximum Vacation Days
# Rules:
# 1. You can only travel among N cities, represented by indexes from 0 to N-1.
# Initially, you are in the city indexed 0 on Monday.
# 2. The cities are connected by flights. The flights are represented as a N*N matrix (not necessary symmetrical),
# called flights representing the airline status from the city i to the city j.
# If there is no flight from the city i to the city j, flights[i][j] = 0; Otherwise, flights[i][j] = 1.
# Also, flights[i][i] = 0 for all i.
# 3. You totally have K weeks (each week has 7 days) to travel.
# You can only take flights at most once per day and can only take flights on each week's Monday morning.
# Since flight time is so short, we don't consider the impact of flight time.
# 4. For each city, you can only have restricted vacation days in different weeks, given an N*K matrix called days representing this relationship.
# For the value of days[i][j], it represents the maximum days you could take vacation in the city i in the week j.
# You're given the flights matrix and days matrix, and you need to output the maximum vacation days you could take during K weeks.
#
# Note:
# 1 <= N, K <= 100
# if you fly from the city A to the city B and take the vacation on that day,
# the deduction towards vacation days will count towards the vacation days of city B in that week.
#
# Example:
# flights = [[0,1,1],[1,0,1],[1,1,0]], days = [[1,3,1],[6,0,3],[3,3,3]] => 6 + 3 + 3 = 12
# flights = [[0,0,0],[0,0,0],[0,0,0]], days = [[1,1,1],[7,7,7],[7,7,7]] => 1 + 1 + 1 = 3
# flights = [[0,1,1],[1,0,1],[1,1,0]], days = [[7,0,0],[0,7,0],[0,0,7]] => 7 + 7 + 7 = 21
class Solution(object):
def maxVacationDays(self, flights, days):
"""
dp[i][j]: max number of vacation days taken at the end of week j in city i
dp[i][j] = -inf no flights to city i
= days[i][0] j == 0 and flights[0][i] == 1
= max(dp[k][j - 1] + days[i][j]) j > 0, 0 <= k < N
"""
N, K = len(days), len(days[0])
dp = [[float('-inf')] * K for _ in range(N)] # haven't been able to reach yet
max_days = 0
# base cases
# mind that one can stay at the same city for the upcoming week
for i in range(N):
if i == 0 or flights[0][i] == 1:
dp[i][0] = days[i][0]
for j in range(1, K):
for i in range(N): # dst city
for k in range(N): # src city
if k == i or flights[k][i] == 1:
dp[i][j] = max(dp[i][j], dp[k][j - 1] + days[i][j])
max_days = max(max_days, dp[i][j])
return max_days
# O(k * n^2) time, O(n^2) space (can be reduced to O(n)space)
| class Solution(object):
def max_vacation_days(self, flights, days):
"""
dp[i][j]: max number of vacation days taken at the end of week j in city i
dp[i][j] = -inf no flights to city i
= days[i][0] j == 0 and flights[0][i] == 1
= max(dp[k][j - 1] + days[i][j]) j > 0, 0 <= k < N
"""
(n, k) = (len(days), len(days[0]))
dp = [[float('-inf')] * K for _ in range(N)]
max_days = 0
for i in range(N):
if i == 0 or flights[0][i] == 1:
dp[i][0] = days[i][0]
for j in range(1, K):
for i in range(N):
for k in range(N):
if k == i or flights[k][i] == 1:
dp[i][j] = max(dp[i][j], dp[k][j - 1] + days[i][j])
max_days = max(max_days, dp[i][j])
return max_days |
class Option:
OPTION_ENABLE = 256
OPTION_TX_ABORT = 1024
OPTION_HIGH_PRIORITY = 2048
| class Option:
option_enable = 256
option_tx_abort = 1024
option_high_priority = 2048 |
#BFS or Breadth First Search is a traversal algorithm for a tree or graph, where we start from the root node(for a tree)
#And visit all the nodes level by level from left to right. It requires us to keep track of the chiildren of each node we visit
#In a queue, so that after traversal through a level is complete, our algorithm knows which node to visit next.
#Time complexity is O(n) but the space complexity can become a problem in some cases.
#To implement BFS, we'll need a Binary Search Tree, which we have already coded. So we'll use that.
class Node():
def __init__(self, data):
self.data = data
self.left = None
self.right = None
class BST():
def __init__(self):
self.root = None
self.number_of_nodes = 0
#For the insert method, we check if the root node is None, then we make the root node point to the new node
#Otherwise, we create a temporary pointer which points to the root node at first.
#Then we compare the data of the new node to the data of the node pointed by the temporary node.
#If it is greater then first we check if the right child of the temporary node exists, if it does, then we update the temporary node to its right child
#Otherwise we make the new node the right child of the temporary node
#And if the new node data is less than the temporary node data, we follow the same procedure as above this time with the left child.
#The complexity is O(log N) in avg case and O(n) in worst case.
def insert(self, data):
new_node = Node(data)
if self.root == None:
self.root = new_node
self.number_of_nodes += 1
return
else:
current_node = self.root
while(current_node.left != new_node) and (current_node.right != new_node):
if new_node.data > current_node.data:
if current_node.right == None:
current_node.right = new_node
else:
current_node = current_node.right
elif new_node.data < current_node.data:
if current_node.left == None:
current_node.left = new_node
else:
current_node = current_node.left
self.number_of_nodes += 1
return
#Now we will implement the lookup method.
#It will follow similar logic as to the insert method to reach the correct position.
#Only instead of inserting a new node we will return "Found" if the node pointed by the temporary node contains the same value we are looking for
def search(self,data):
if self.root == None:
return "Tree Is Empty"
else:
current_node = self.root
while True:
if current_node == None:
return "Not Found"
if current_node.data == data:
return "Found"
elif current_node.data > data:
current_node = current_node.left
elif current_node.data < data:
current_node = current_node.right
#Finally comes the very complicated remove method.
#This one is too complicated for me to explain while writing. So I'll just write the code down with some comments
#explaining which conditions are being checked
def remove(self, data):
if self.root == None: #Tree is empty
return "Tree Is Empty"
current_node = self.root
parent_node = None
while current_node!=None: #Traversing the tree to reach the desired node or the end of the tree
if current_node.data > data:
parent_node = current_node
current_node = current_node.left
elif current_node.data < data:
parent_node = current_node
current_node = current_node.right
else: #Match is found. Different cases to be checked
#Node has left child only
if current_node.right == None:
if parent_node == None:
self.root = current_node.left
return
else:
if parent_node.data > current_node.data:
parent_node.left = current_node.left
return
else:
parent_node.right = current_node.left
return
#Node has right child only
elif current_node.left == None:
if parent_node == None:
self.root = current_node.right
return
else:
if parent_node.data > current_node.data:
parent_node.left = current_node.right
return
else:
parent_node.right = current_node.left
return
#Node has neither left nor right child
elif current_node.left == None and current_node.right == None:
if parent_node == None: #Node to be deleted is root
current_node = None
return
if parent_node.data > current_node.data:
parent_node.left = None
return
else:
parent_node.right = None
return
#Node has both left and right child
elif current_node.left != None and current_node.right != None:
del_node = current_node.right
del_node_parent = current_node.right
while del_node.left != None: #Loop to reach the leftmost node of the right subtree of the current node
del_node_parent = del_node
del_node = del_node.left
current_node.data = del_node.data #The value to be replaced is copied
if del_node == del_node_parent: #If the node to be deleted is the exact right child of the current node
current_node.right = del_node.right
return
if del_node.right == None: #If the leftmost node of the right subtree of the current node has no right subtree
del_node_parent.left = None
return
else: #If it has a right subtree, we simply link it to the parent of the del_node
del_node_parent.left = del_node.right
return
return "Not Found"
#Now we implement the BFS method.
def BFS(self):
current_node = self.root #We start with the root node
BFS_result = [] #This will store the result of the BFS
queue = [] #Queue to keep track of the children of each node
queue.append(current_node) #We add the root to the queue first
while len(queue) > 0:
current_node = queue.pop(0) #We extract the first element of the queue and make it the current node
BFS_result.append(current_node.data) #We push the data of the current node to the result list as we are currently visiting the current node
if current_node.left: #If left child of the current node exists, we append it to the queue
queue.append(current_node.left)
if current_node.right: #Similarly, if right child exists, we append it to the queue
queue.append(current_node.right)
return BFS_result
#Finally, we will implement the Recursive version of the BFS.
def Recursive_BFS(self, queue, BFS_list):
if len(queue) == 0:
return BFS_list
current_node = queue.pop(0)
BFS_list.append(current_node.data)
if current_node.left:
queue.append(current_node.left)
if current_node.right:
queue.append(current_node.right)
return self.Recursive_BFS(queue, BFS_list)
my_bst = BST()
my_bst.insert(5)
my_bst.insert(3)
my_bst.insert(7)
my_bst.insert(1)
my_bst.insert(13)
my_bst.insert(65)
my_bst.insert(0)
my_bst.insert(10)
'''
5
3 7
1 13
0 10 65
'''
#The BFS Traversal for this tree should be : [5,3,7,1,13,0,10,65]
print(my_bst.BFS())
#[5, 3, 7, 1, 13, 0, 10, 65]
print(my_bst.Recursive_BFS([my_bst.root],[])) #We need to pass the root node as an array and an empty array for the result
#[5, 3, 7, 1, 13, 0, 10, 65] | class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
class Bst:
def __init__(self):
self.root = None
self.number_of_nodes = 0
def insert(self, data):
new_node = node(data)
if self.root == None:
self.root = new_node
self.number_of_nodes += 1
return
else:
current_node = self.root
while current_node.left != new_node and current_node.right != new_node:
if new_node.data > current_node.data:
if current_node.right == None:
current_node.right = new_node
else:
current_node = current_node.right
elif new_node.data < current_node.data:
if current_node.left == None:
current_node.left = new_node
else:
current_node = current_node.left
self.number_of_nodes += 1
return
def search(self, data):
if self.root == None:
return 'Tree Is Empty'
else:
current_node = self.root
while True:
if current_node == None:
return 'Not Found'
if current_node.data == data:
return 'Found'
elif current_node.data > data:
current_node = current_node.left
elif current_node.data < data:
current_node = current_node.right
def remove(self, data):
if self.root == None:
return 'Tree Is Empty'
current_node = self.root
parent_node = None
while current_node != None:
if current_node.data > data:
parent_node = current_node
current_node = current_node.left
elif current_node.data < data:
parent_node = current_node
current_node = current_node.right
elif current_node.right == None:
if parent_node == None:
self.root = current_node.left
return
elif parent_node.data > current_node.data:
parent_node.left = current_node.left
return
else:
parent_node.right = current_node.left
return
elif current_node.left == None:
if parent_node == None:
self.root = current_node.right
return
elif parent_node.data > current_node.data:
parent_node.left = current_node.right
return
else:
parent_node.right = current_node.left
return
elif current_node.left == None and current_node.right == None:
if parent_node == None:
current_node = None
return
if parent_node.data > current_node.data:
parent_node.left = None
return
else:
parent_node.right = None
return
elif current_node.left != None and current_node.right != None:
del_node = current_node.right
del_node_parent = current_node.right
while del_node.left != None:
del_node_parent = del_node
del_node = del_node.left
current_node.data = del_node.data
if del_node == del_node_parent:
current_node.right = del_node.right
return
if del_node.right == None:
del_node_parent.left = None
return
else:
del_node_parent.left = del_node.right
return
return 'Not Found'
def bfs(self):
current_node = self.root
bfs_result = []
queue = []
queue.append(current_node)
while len(queue) > 0:
current_node = queue.pop(0)
BFS_result.append(current_node.data)
if current_node.left:
queue.append(current_node.left)
if current_node.right:
queue.append(current_node.right)
return BFS_result
def recursive_bfs(self, queue, BFS_list):
if len(queue) == 0:
return BFS_list
current_node = queue.pop(0)
BFS_list.append(current_node.data)
if current_node.left:
queue.append(current_node.left)
if current_node.right:
queue.append(current_node.right)
return self.Recursive_BFS(queue, BFS_list)
my_bst = bst()
my_bst.insert(5)
my_bst.insert(3)
my_bst.insert(7)
my_bst.insert(1)
my_bst.insert(13)
my_bst.insert(65)
my_bst.insert(0)
my_bst.insert(10)
'\n 5\n 3 7\n 1 13\n0 10 65\n'
print(my_bst.BFS())
print(my_bst.Recursive_BFS([my_bst.root], [])) |
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def getTargetCopy(self, original: TreeNode, cloned: TreeNode, target: TreeNode) -> TreeNode:
curr_level = [cloned]
while curr_level:
next_level = []
for node in curr_level:
if node.val == target.val:
return node
if node.left:
next_level.append(node.left)
if node.right:
next_level.append(node.right)
curr_level = next_level
return None
| class Solution:
def get_target_copy(self, original: TreeNode, cloned: TreeNode, target: TreeNode) -> TreeNode:
curr_level = [cloned]
while curr_level:
next_level = []
for node in curr_level:
if node.val == target.val:
return node
if node.left:
next_level.append(node.left)
if node.right:
next_level.append(node.right)
curr_level = next_level
return None |
def add(x, y):
"""add two numbers"""
return x + y
def subtract(x, y):
"""subtrct one number from another"""
return y - x
def mult(x, y):
"""multiply two numbers"""
return x * y
| def add(x, y):
"""add two numbers"""
return x + y
def subtract(x, y):
"""subtrct one number from another"""
return y - x
def mult(x, y):
"""multiply two numbers"""
return x * y |
# Demo Python Tuples
'''
Create Tuple With One Item
To create a tuple with only one item, you have add a comma after the item, unless Python will not recognize the variable as a tuple.
'''
# One item tuple, remember the commma:
thistuple = ("apple",)
print(type(thistuple))
#NOT a tuple
thistuple = ("apple")
print(type(thistuple)) | """
Create Tuple With One Item
To create a tuple with only one item, you have add a comma after the item, unless Python will not recognize the variable as a tuple.
"""
thistuple = ('apple',)
print(type(thistuple))
thistuple = 'apple'
print(type(thistuple)) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.