content stringlengths 7 1.05M |
|---|
def depth(obj):
"""
"""
if obj == []:
return 1
elif isinstance(obj, list):
return 1 + max([depth(x) for x in obj])
else:
return 0
def nested_contains(L, value):
"""
"""
return True in [nested_contains(x, value) if isinstance(x, list) else x == value for x in L]
#any([nested_contains(x, value) if isinstance(x, list) else x == value for x in L])
if __name__ == '__main__':
L = ['how', ['now', 'low'],1]
print(nested_contains(L, 'low'))
|
class RequestAdapter(object):
"""
RequestAdapters bridge transmute's
representation of a request, with the framework's
implementation.
implement the unimplemented methods.
"""
@property
def body(self):
""" return the request body. """
raise NotImplementedError()
def _get_framework_args(self):
"""
often, a framework provides specific variables that are passed
into the handler function (e.g. the request object in
aiohttp). return a dictionary of these arguments, which will be
added to the function arguments if they appear.
"""
raise NotImplementedError()
def _query_argument(self, key, is_list):
raise NotImplementedError()
def _header_argument(self, key):
raise NotImplementedError()
def _path_argument(self, key):
raise NotImplementedError()
|
class Context:
def __init__(self):
self.data = {}
def __getitem__(self, key):
return self.data.get(self.convert_key(key), None)
def __setitem__(self, key, value):
self.data[self.convert_key(key)] = value
def get(self, key, default):
return self.data.get(self.convert_key(key), default)
def convert_key(self, key):
return key.lower()
|
#
# PySNMP MIB module S5-ETH-REDUNDANT-LINKS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/S5-ETH-REDUNDANT-LINKS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:59:32 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint")
s5EnCfg, = mibBuilder.importSymbols("S5-ETHERNET-MIB", "s5EnCfg")
TimeIntervalSec, = mibBuilder.importSymbols("S5-TCS-MIB", "TimeIntervalSec")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Integer32, IpAddress, ObjectIdentity, MibIdentifier, Bits, Gauge32, NotificationType, Unsigned32, iso, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Counter64, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "IpAddress", "ObjectIdentity", "MibIdentifier", "Bits", "Gauge32", "NotificationType", "Unsigned32", "iso", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Counter64", "ModuleIdentity")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
s5EthRedundantLinksMib2 = ModuleIdentity((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 99))
s5EthRedundantLinksMib2.setRevisions(('2004-11-03 00:00', '2004-07-20 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: s5EthRedundantLinksMib2.setRevisionsDescriptions(('Version 104: Use sane OID for s5EthRedundantLinksMib', 'Version 103: Conversion to SMIv2',))
if mibBuilder.loadTexts: s5EthRedundantLinksMib2.setLastUpdated('200411030000Z')
if mibBuilder.loadTexts: s5EthRedundantLinksMib2.setOrganization('Nortel Networks')
if mibBuilder.loadTexts: s5EthRedundantLinksMib2.setContactInfo('Nortel Networks')
if mibBuilder.loadTexts: s5EthRedundantLinksMib2.setDescription("5000 Ethernet Redundant Links MIB Copyright 1993-2004 Nortel Networks, Inc. All rights reserved. This Nortel Networks SNMP Management Information Base Specification (Specification) embodies Nortel Networks' confidential and proprietary intellectual property. Nortel Networks retains all title and ownership in the Specification, including any revisions. This Specification is supplied 'AS IS,' and Nortel Networks makes no warranty, either express or implied, as to the use, operation, condition, or performance of the Specification.")
s5EnRedun = MibIdentifier((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2))
s5EnRedPortTable = MibTable((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1), )
if mibBuilder.loadTexts: s5EnRedPortTable.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortTable.setDescription('A table with redundancy status and control for each redundancy-capable port in the chassis. The number of entries is determined by the number of redundancy-capable ports in the chassis. The ports appearing in this table can be divided into two categories: Those with remote fault signaling capability and those without. The latter kind depends on the port link status to provide the required redundancy. Ports that are not capable of supporting redundancy do not have an entry in this table.')
s5EnRedPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1), ).setIndexNames((0, "S5-ETH-REDUNDANT-LINKS-MIB", "s5EnRedPortBrdIndx"), (0, "S5-ETH-REDUNDANT-LINKS-MIB", "s5EnRedPortPortIndx"))
if mibBuilder.loadTexts: s5EnRedPortEntry.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortEntry.setDescription('A row in the table of redundancy status and control for each redundancy-capable port in the chassis. Entries in the table cannot be created or deleted via SNMP.')
s5EnRedPortBrdIndx = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: s5EnRedPortBrdIndx.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortBrdIndx.setDescription('The index of the slot containing the board on which the port is located.')
s5EnRedPortPortIndx = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: s5EnRedPortPortIndx.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortPortIndx.setDescription('The index of the port on the board.')
s5EnRedPortCapability = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hwRedOnly", 1), ("swRedOnly", 2), ("hwAndSwRed", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: s5EnRedPortCapability.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortCapability.setDescription('The redundancy capability of the port: hwRedOnly(1).....hardware redundancy only. swRedOnly(2).....software redundacy only. hwAndSwRed(3)....both hardware and software redundancy. A value of hwRedOnly(1) or hwAndSwRed(3) means that the port is capable of being configured into a hardware-redundant pair. In this case, the identity of the potential redundant companion is given by the objects s5EnRedPortCompanionBrdNum and s5EnRedPortCompanionPortNum. A value of swRedOnly(2) or hwAndSwRed(3) means that the port is capable of being configured into a software-redundant pair.')
s5EnRedPortRedundMode = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("standAlone", 1), ("hwActive", 2), ("hwStandby", 3), ("swActive", 4), ("swStandby", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: s5EnRedPortRedundMode.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortRedundMode.setDescription('The redundancy mode of the port. The values when written change the redundancy mode, and when read report the redundancy mode: standalone(1)..the port is not in any redundant pair. hwActive(2)....the port is the active companion in a hardware-redundant pair. hwStandby(3)...the port is the standby companion in a hardware-redundant pair. swActive(4)....the port is the active companion in a software-redundant pair. swStandby(5)...the port is the standby companion in a software-redundant pair. The values that can be written, which change the redundancy mode, are: standalone(1)...causes the redundant pair to be broken up. hwActive(2).....if the previous value was hwStandby(3), this value will cause the port to become the active port in the hardware-redundant pair, resulting in a switchover. hwStandby(3)....if the previous value was hwActive(2), this value will cause the port to become the standby port in the hardware-redundant pair, resulting in a switchover. swActive(4).....if the previous value was swStandby(5), this value will cause the port to become the active port in the software-redundant pair, resulting in a switchover. swStandby(5)....if the previous value was swActive(4), this value will cause the port to become the standby port in the software-redundant pair, resulting in a switchover. To create a hardware-redundant pair, change this object to hwActive(2) or hwStandby(3). To create a software-redundant pair, change this object to swActive(4) or swStandby(5). The same SNMP SET PDU must also write to objects s5EnRedPortCompanionBrdNum and s5EnRedPortCompanionPortNum.')
s5EnRedPortOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("localFault", 3), ("remoteFault", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: s5EnRedPortOperStatus.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortOperStatus.setDescription('The redundancy status of the port. The values are: other(1).............none of the following. ok(2)...................no fault localFault(3)....the local port has sensed a fault condition. remoteFault(4)...the remote port has sensed a fault condition and has signaled the local port accordingly. Either a localFault(3) or remoteFault(4) condition should cause a healthy redundant port pair to switchover. If the port does not belong to a redundant pair, a value of other(1) is returned. Note: If the redundant link consists of ports without remote fault capability, the value remoteFault(4) will not be reported and the value localFault(3) implies that link is off.')
s5EnRedPortRemoteOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("snpxFLRemFltCpblPortUp", 1), ("snpxFLFBRemFltCpblPortUp", 2), ("tenBaseTFLPortUp", 3), ("tenBaseFBPortUp", 4), ("snpxRemFltCpblPortFault", 5), ("tenBaseFBPortFault", 6), ("unknown", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: s5EnRedPortRemoteOperStatus.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortRemoteOperStatus.setDescription('This object reflects the real time status of the received data from the remote port. The values are: snpxFLRemFltCpblPortUp(1)....10BASE-FL signaling, plus capable of SynOptics proprietary remote fault signaling. A remote fault on such a port is indicated by snpxRemFltCpblPortFault(5). snpxFLFBRemFltCpblPortUp(2)..10BASE-FL signaling, plus capable of SynOptics proprietary remote fault signaling and 10BASE-FB signaling. A remote fault on such a port is indicated by snpxRemFltCpblPortFault(5). tenBaseTFLPortUp(3)...........regular idle 10BASE-T or 10BASE-FL signaling, and is incapable of remote fault signaling. tenBaseFBPortUp(4)...........10BASE-FB synchronous signaling. A remote fault on such a port is indicated by tenBaseFBPortFault(6). snpxRemFltCpblPortFault(5)...SynOptics proprietary remote fault signaling. tenBaseFBPortFault(6)........10BASE-FB remote fault signaling. unknown(7)...................none of the above. A value of snpxFLRemFltCpblPortUp(1) indicates that the remote port is using 10BASE-FL signaling, and is capable of SynOptics proprietary idle and remote fault signaling. A remote fault on such a port is indicated by snpxRemFltCpblPortFault(5). A value of snpxFLFBRemFltCpblPortUp(2) indicates that the remote port is using 10BASE-FL signaling, and is capable of SynOptics proprietary idle and remote fault signaling, and is also capable of synchronous signaling. A remote fault on such a port is indicated by snpxRemFltCpblPortFault(5). A value of tenBaseFLPortUp(3) indicates that the remote port uses regular idle 10BASE-FL signaling, and is incapable of remote fault signaling. A value of tenBaseFBPortUp(4) indicates that the remote port uses 10BASE-FB synchronous signaling. A remote fault on such a port is indicated by tenBaseFBPortFault(6).')
s5EnRedPortRemFltSelectMode = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("synoptics", 1), ("standard", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: s5EnRedPortRemFltSelectMode.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortRemFltSelectMode.setDescription('This mode specifies the set of local fault events which will cause a switchover. The values are: synoptics(1)..The SynOptics Tx Remote Fault events consist of auto-partition and NM (network management) partition events in addition to the standard events. standard(2)...The standard events are link-off for all ports, and low light, jabber, Rx invalid idle, Tx dark, and Tx remote fault (for diagnostics) for ports with transmit remote fault capability.')
s5EnRedPortTxMode = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("autoCfg", 1), ("fl", 2), ("fb", 3), ("other", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: s5EnRedPortTxMode.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortTxMode.setDescription('The Transmit Fiber Mode, which determines the port transmit idle. The values are: autoCfg(1)...The port will auto configure based upon the received idle. fl(2)........The port is configured in FL mode. fb(3)........The port is configured in FB mode. other(4).....None of the above. The port is not a fiber port. The value other(4) is read-only.')
s5EnRedPortFaults = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: s5EnRedPortFaults.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortFaults.setDescription('A count of local or remote faults on this port. This counter increments on a transition between the fault and no-fault states.')
s5EnRedPortModeChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: s5EnRedPortModeChanges.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortModeChanges.setDescription('A count of the number of times this port has transitioned from standby mode to non-standby mode (includes active mode and standalone mode), or vice versa.')
s5EnRedPortCompanionBrdNum = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: s5EnRedPortCompanionBrdNum.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortCompanionBrdNum.setDescription('The index of the slot containing the board of the other port in the redundant pair. If the port (whose slot-port identity is given by the instance) is hardware-redundant capable, this object has the value of the slot number of the (potential) redundant companion, even if the port is in standalone mode. This allows the network manager to determine the identity of the potential companion, which is fixed by the hardware of the board. Changing this object is permitted only when creating a software-redundant pair.')
s5EnRedPortCompanionPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: s5EnRedPortCompanionPortNum.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortCompanionPortNum.setDescription('The index of the other port in the redundant pair. If the port (whose slot-port identity is given by the instance) is hardware-redundant capable, this object has the value of the port number of the (potential) redundant companion, even if the port is in standalone mode. This allows the network manager to determine the identity of the potential companion, which is fixed by the hardware of the board. Changing this object is permitted only when creating a software-redundant pair.')
s5EnRedPortSwitchoverStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("timedSwitchover", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: s5EnRedPortSwitchoverStatus.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortSwitchoverStatus.setDescription('The switchover status of the port (and its companion). The following values can be written: timedSwitchover(2)...cause a timed switchover (see value of s5EnRedPortSwitchoverTime) The following values reflect the switchover status of the redundant port pair: other(1)..............not undergoing switchover timedSwitchover(2)....port is undergoing timed switchover (see value of s5EnRedPortSwitchoverTime). On GETs with switchover status of timedSwitchover(2), if the time remaining before the completion of the switchover and reversal is available, it will be reported in object s5EnRedPortSwitchoverTime as a positive value If not available, the value of s5EnRedSwitchoverTime will be zero. When changing a port to timedSwitchover(2), the SET request must also contain the value for object s5EnRedSwitchoverTime.')
s5EnRedPortSwitchoverTime = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 1, 1, 14), TimeIntervalSec().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: s5EnRedPortSwitchoverTime.setStatus('current')
if mibBuilder.loadTexts: s5EnRedPortSwitchoverTime.setDescription('The length of time between switching over a redundant port pair and switching back, when a timed switchover is done to the port. This object can only be written in the same request that sets s5EnRedPortSwitchoverStatus to timedSwitchover(2). Afterwards, it indicates the amount of time left before the timed switchover is completed, at which time another switchover occurs and s5EnRedSwitchoverStatus is changed to other(1). This object has the value of zero if the port is not undergoing a timed switchover, or if the amount of time is not available.')
s5EnRedLastChg = MibScalar((1, 3, 6, 1, 4, 1, 45, 1, 6, 6, 1, 2, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: s5EnRedLastChg.setStatus('current')
if mibBuilder.loadTexts: s5EnRedLastChg.setDescription('The value of sysUpTime when the last change in the redundant ports table was observed by the agent.')
mibBuilder.exportSymbols("S5-ETH-REDUNDANT-LINKS-MIB", s5EnRedPortSwitchoverStatus=s5EnRedPortSwitchoverStatus, s5EnRedPortCompanionBrdNum=s5EnRedPortCompanionBrdNum, s5EnRedPortFaults=s5EnRedPortFaults, s5EnRedPortTable=s5EnRedPortTable, s5EnRedun=s5EnRedun, s5EnRedPortTxMode=s5EnRedPortTxMode, s5EnRedPortRemoteOperStatus=s5EnRedPortRemoteOperStatus, s5EnRedPortBrdIndx=s5EnRedPortBrdIndx, s5EnRedPortEntry=s5EnRedPortEntry, s5EnRedPortRemFltSelectMode=s5EnRedPortRemFltSelectMode, s5EnRedPortCompanionPortNum=s5EnRedPortCompanionPortNum, s5EthRedundantLinksMib2=s5EthRedundantLinksMib2, s5EnRedLastChg=s5EnRedLastChg, s5EnRedPortOperStatus=s5EnRedPortOperStatus, s5EnRedPortPortIndx=s5EnRedPortPortIndx, s5EnRedPortSwitchoverTime=s5EnRedPortSwitchoverTime, PYSNMP_MODULE_ID=s5EthRedundantLinksMib2, s5EnRedPortModeChanges=s5EnRedPortModeChanges, s5EnRedPortCapability=s5EnRedPortCapability, s5EnRedPortRedundMode=s5EnRedPortRedundMode)
|
#
# PySNMP MIB module Wellfleet-DSUCSU-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-DSUCSU-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:40:01 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, ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Integer32, MibIdentifier, ModuleIdentity, Gauge32, TimeTicks, Bits, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Counter32, iso, NotificationType, ObjectIdentity, Counter64, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibIdentifier", "ModuleIdentity", "Gauge32", "TimeTicks", "Bits", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Counter32", "iso", "NotificationType", "ObjectIdentity", "Counter64", "NotificationType")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
wfDsuCsuGroup, = mibBuilder.importSymbols("Wellfleet-COMMON-MIB", "wfDsuCsuGroup")
wfDsuCsuIfTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1), )
if mibBuilder.loadTexts: wfDsuCsuIfTable.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuIfTable.setDescription('DSU CSU line record.')
wfDsuCsuIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1), ).setIndexNames((0, "Wellfleet-DSUCSU-MIB", "wfDsuCsuIfSlot"), (0, "Wellfleet-DSUCSU-MIB", "wfDsuCsuIfConnector"))
if mibBuilder.loadTexts: wfDsuCsuIfEntry.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuIfEntry.setDescription('An entry in the DSU CSU IF table')
wfDsuCsuIfDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfDsuCsuIfDelete.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuIfDelete.setDescription('Create/Delete parameter')
wfDsuCsuIfSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfDsuCsuIfSlot.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuIfSlot.setDescription('Instance ID Slot, filled in by driver')
wfDsuCsuIfConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfDsuCsuIfConnector.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuIfConnector.setDescription('Instance ID Connector, filled in by the driver.')
wfDsuCsuSoftRev = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfDsuCsuSoftRev.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuSoftRev.setDescription('Displays the Software Revision of the DSU CSU card.')
wfDsuCsuHardRev = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfDsuCsuHardRev.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuHardRev.setDescription('Displays the Hardware Revision of the DSU CSU card.')
wfDsuCsuOpMode = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("dds156kbps", 1), ("cc64kbps", 2))).clone('dds156kbps')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfDsuCsuOpMode.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuOpMode.setDescription('Identifies the type of telco service that the DSU CSU is connected to. Opmode should be set to dds1-56kbps (1) when connected to a DDS1 56 Kbps line. Opmode should be set to cc-64kbps (2) when connected to a Clear Channel 64Kbps line.')
wfDsuCsuTxClkSelect = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("slave", 1), ("master", 2))).clone('slave')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfDsuCsuTxClkSelect.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuTxClkSelect.setDescription('Default timing, or clock, source for transmiting data to the network. There must be only one source on a DDS line. Timing should always be slave (1) when connected to a network. Timing should be set to master (2) on either end of a private-wire configuration, with the other end being set to slave (1).')
wfDsuCsuUnitReset = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("resetUnit", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfDsuCsuUnitReset.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuUnitReset.setDescription('Enables the operator to remotely reset the unit. Using this command will cause the unit to terminate all its connections and drop data.')
wfDsuCsu64KTxMonitor = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfDsuCsu64KTxMonitor.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsu64KTxMonitor.setDescription('This signal is used in 64K Clear Channel mode to suppress customer data in the event that the data duplicates a network control code. A setting of enabled(1) suppresses customer data. A setting of disabled(2) allows all customer data through, which could potentially put the other end into a loop if the data duplicates a network control code.')
wfDsuCsuOpState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("normal", 1), ("localLpbk", 2), ("digitalLpbk", 3), ("remDigitalLpbk", 4), ("telcoLpbk", 5), ("remDigLpbkWPattern", 6), ("localAnlgLpbkWPattern", 7), ("pattern2047Gen", 8))).clone('normal')).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfDsuCsuOpState.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuOpState.setDescription('Indicates the current operating state of the DSU CSU card.')
wfDsuCsuServiceStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 5, 6))).clone(namedValues=NamedValues(("inService", 1), ("outOfService", 2), ("frameError", 3), ("lossOfLine", 5), ("telcoLpbk", 6))).clone('inService')).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfDsuCsuServiceStatus.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuServiceStatus.setDescription('The Current status of the physical interface. Your network carrier can send Out-of-Service or Maintenance Mode codes.')
wfDsuCsuV54Lpbk = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("noLoop", 1), ("localAnlgLpbk", 2), ("localDigLpbk", 3), ("remDigLpbk", 4), ("remDigLpbkWPattern", 5), ("localAnlgLpbkWPattern", 6), ("pattern2047Gen", 7))).clone('noLoop')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfDsuCsuV54Lpbk.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuV54Lpbk.setDescription('Enables the operator to control, and examine the state of, V.54 loopbacks within the DSU CSU.')
wfDsuCsuV54Timer = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfDsuCsuV54Timer.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuV54Timer.setDescription('Duration in seconds that a test specified in wfDsuCsuTestLpbk is to execute.')
wfDsuCsuV54Errors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfDsuCsuV54Errors.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuV54Errors.setDescription('Indicates the number of errors reported during the last loopback test. This count will only be updated for loopbacks with test pattern.')
wfDsuCsuCqmsLaWindow = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(15)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfDsuCsuCqmsLaWindow.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuCqmsLaWindow.setDescription('Indicates the number of minutes within the window in which the availability of the line (network) is to be calculated. The availability of the line is an indication of the percentage of time the line has been in service. It is calculated as follows: (((wfDsuCsuCqmsLaWindow*60) - (wfDsuCsuCqmsLaErrCnt*wfDsuCsuCqmsLaPollRate))/ wfDsuCsuCqmsLaWindow*60)')
wfDsuCsuCqmsLaErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfDsuCsuCqmsLaErrors.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuCqmsLaErrors.setDescription('Indicates the total number of seconds that the line was not in service in the last window of size wfDsuCsuCqmsLaWindow.')
wfDsuCsuCqmsLaPollRate = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 60)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfDsuCsuCqmsLaPollRate.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuCqmsLaPollRate.setDescription('Indicates the number of seconds between polls for line status from the DsuCsu. A value of 1 forces polling every second. A value of 60 forces polling every minute.')
wfDsuCsuCqmsReset = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("resetCqms", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfDsuCsuCqmsReset.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuCqmsReset.setDescription('Resets the CQMS counters to their default values. For Line Availability, wfDsuCsuCqmsLaErrCnt is reset.')
wfDsuCsuOOSErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfDsuCsuOOSErrors.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuOOSErrors.setDescription('The number of seconds in which Out of Service control codes were received from the Telco. The counter is incremented whenever a sample within a second indicated the unit received an out of service control code.')
wfDsuCsuFrameErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfDsuCsuFrameErrors.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuFrameErrors.setDescription('The number of seconds in which the unit was out of frame with the Telco. This is only applicable in 64K mode. The counter is incremented whenever a sample within a second indicated the unit was out of frame.')
wfDsuCsuLOLErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfDsuCsuLOLErrors.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuLOLErrors.setDescription('The number of seconds in which the unit has detected that no signal is present on the line, and/or no line is present.')
wfDsuCsuInitState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 30, 1, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("startup", 1), ("init", 2), ("monitor", 3), ("loopback", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfDsuCsuInitState.setStatus('mandatory')
if mibBuilder.loadTexts: wfDsuCsuInitState.setDescription('Indictes the state of the DSU/CSU initialization sequence. The state will indicate if the DSU/CSU has been initialized and is in the *monitor* state polling the card for line condition, or in the *loopback state running a user-initiated loopback')
wfDsuCsuIfTrap = NotificationType((1, 3, 6, 1, 4, 1, 18, 3, 4, 30) + (0,1)).setObjects(("Wellfleet-DSUCSU-MIB", "wfDsuCsuServiceStatus"))
if mibBuilder.loadTexts: wfDsuCsuIfTrap.setDescription('Indicates a change in the status of the line. The value returned in the trap will indicate the current state as defined in wfDsuCsuServiceStatus.')
mibBuilder.exportSymbols("Wellfleet-DSUCSU-MIB", wfDsuCsuIfTable=wfDsuCsuIfTable, wfDsuCsuHardRev=wfDsuCsuHardRev, wfDsuCsuTxClkSelect=wfDsuCsuTxClkSelect, wfDsuCsuV54Errors=wfDsuCsuV54Errors, wfDsuCsuOpState=wfDsuCsuOpState, wfDsuCsuV54Lpbk=wfDsuCsuV54Lpbk, wfDsuCsuUnitReset=wfDsuCsuUnitReset, wfDsuCsuCqmsReset=wfDsuCsuCqmsReset, wfDsuCsuIfTrap=wfDsuCsuIfTrap, wfDsuCsuServiceStatus=wfDsuCsuServiceStatus, wfDsuCsuCqmsLaErrors=wfDsuCsuCqmsLaErrors, wfDsuCsuIfEntry=wfDsuCsuIfEntry, wfDsuCsuV54Timer=wfDsuCsuV54Timer, wfDsuCsuOOSErrors=wfDsuCsuOOSErrors, wfDsuCsuFrameErrors=wfDsuCsuFrameErrors, wfDsuCsuIfDelete=wfDsuCsuIfDelete, wfDsuCsuIfSlot=wfDsuCsuIfSlot, wfDsuCsuSoftRev=wfDsuCsuSoftRev, wfDsuCsu64KTxMonitor=wfDsuCsu64KTxMonitor, wfDsuCsuLOLErrors=wfDsuCsuLOLErrors, wfDsuCsuInitState=wfDsuCsuInitState, wfDsuCsuIfConnector=wfDsuCsuIfConnector, wfDsuCsuOpMode=wfDsuCsuOpMode, wfDsuCsuCqmsLaPollRate=wfDsuCsuCqmsLaPollRate, wfDsuCsuCqmsLaWindow=wfDsuCsuCqmsLaWindow)
|
# Copyright 2017 The Bazel 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.
"Unit testing in a browser"
load("@io_bazel_rules_webtesting//web/internal:constants.bzl", "DEFAULT_WRAPPED_TEST_TAGS")
load("@io_bazel_rules_webtesting//web:web.bzl", "web_test_suite")
load(":karma_web_test.bzl", "KARMA_GENERIC_WEB_TEST_ATTRS", "run_karma_web_test")
# Using generic karma_web_test attributes under the hood
TS_WEB_TEST_ATTRS = dict(KARMA_GENERIC_WEB_TEST_ATTRS, **{})
def _ts_web_test_impl(ctx):
# Using karma_web_test under the hood
runfiles = run_karma_web_test(ctx)
return [DefaultInfo(
files = depset([ctx.outputs.executable]),
runfiles = runfiles,
executable = ctx.outputs.executable,
)]
_ts_web_test = rule(
implementation = _ts_web_test_impl,
test = True,
executable = True,
attrs = TS_WEB_TEST_ATTRS,
)
def ts_web_test(
srcs = [],
deps = [],
data = [],
configuration_env_vars = [],
bootstrap = [],
runtime_deps = [],
static_files = [],
tags = [],
**kwargs):
"""Runs unit tests in a browser.
When executed under `bazel test`, this uses a headless browser for speed.
This is also because `bazel test` allows multiple targets to be tested together,
and we don't want to open a Chrome window on your machine for each one. Also,
under `bazel test` the test will execute and immediately terminate.
Running under `ibazel test` gives you a "watch mode" for your tests. The rule is
optimized for this case - the test runner server will stay running and just
re-serve the up-to-date JavaScript source bundle.
To debug a single test target, run it with `bazel run` instead. This will open a
browser window on your computer. Also you can use any other browser by opening
the URL printed when the test starts up. The test will remain running until you
cancel the `bazel run` command.
This rule will use your system Chrome. Your environment must specify CHROME_BIN
so that the rule will know which Chrome binary to run.
Currently this rule uses Karma as the test runner under the hood, but this is
an implementation detail. We might switch to another runner like Jest in the future.
Args:
srcs: A list of JavaScript test files
deps: Other targets which produce JavaScript such as `ts_library`
data: Runtime dependencies
configuration_env_vars: Pass these configuration environment variables to the resulting binary.
Chooses a subset of the configuration environment variables (taken from ctx.var), which also
includes anything specified via the --define flag.
Note, this can lead to different outputs produced by this rule.
bootstrap: JavaScript files to include *before* the module loader (require.js).
For example, you can include Reflect,js for TypeScript decorator metadata reflection,
or UMD bundles for third-party libraries.
runtime_deps: Dependencies which should be loaded after the module loader but before the srcs and deps.
These should be a list of targets which produce JavaScript such as `ts_library`.
The files will be loaded in the same order they are declared by that rule.
static_files: Arbitrary files which are available to be served on request.
Files are served at:
`/base/<WORKSPACE_NAME>/<path-to-file>`, e.g.
`/base/npm_bazel_typescript/examples/testing/static_script.js`
tags: Standard Bazel tags, this macro adds tags for ibazel support as well as
`browser:chromium-system` to allow for filtering on systems with no
system Chrome.
**kwargs: Passed through to `ts_web_test`
"""
_ts_web_test(
srcs = srcs,
deps = deps,
data = data,
configuration_env_vars = configuration_env_vars,
bootstrap = bootstrap,
runtime_deps = runtime_deps,
static_files = static_files,
tags = tags + [
# Users don't need to know that this tag is required to run under ibazel
"ibazel_notify_changes",
# Always attach this label to allow filtering, eg. envs w/ no browser
"browser:chromium-system",
],
**kwargs
)
def ts_web_test_suite(
name,
browsers = ["@io_bazel_rules_webtesting//browsers:chromium-local"],
args = None,
browser_overrides = None,
config = None,
flaky = None,
local = None,
shard_count = None,
size = None,
tags = [],
test_suite_tags = None,
timeout = None,
visibility = None,
web_test_data = [],
wrapped_test_tags = None,
**remaining_keyword_args):
"""Defines a test_suite of web_test targets that wrap a ts_web_test target.
This macro also accepts all parameters in ts_web_test. See ts_web_test docs for
details.
Args:
name: The base name of the test.
browsers: A sequence of labels specifying the browsers to use.
args: Args for web_test targets generated by this extension.
browser_overrides: Dictionary; optional; default is an empty dictionary. A
dictionary mapping from browser names to browser-specific web_test
attributes, such as shard_count, flakiness, timeout, etc. For example:
{'//browsers:chrome-native': {'shard_count': 3, 'flaky': 1}
'//browsers:firefox-native': {'shard_count': 1, 'timeout': 100}}.
config: Label; optional; Configuration of web test features.
flaky: A boolean specifying that the test is flaky. If set, the test will
be retried up to 3 times (default: 0)
local: boolean; optional.
shard_count: The number of test shards to use per browser. (default: 1)
size: A string specifying the test size. (default: 'large')
tags: A list of test tag strings to apply to each generated web_test_suite target.
This macro adds a couple for ibazel.
test_suite_tags: A list of tag strings for the generated test_suite.
timeout: A string specifying the test timeout (default: computed from size)
visibility: List of labels; optional.
web_test_data: Data dependencies for the web_test_suite.
wrapped_test_tags: A list of test tag strings to use for the wrapped test
**remaining_keyword_args: Arguments for the wrapped test target.
"""
# Check explicitly for None so that users can set this to the empty list
if wrapped_test_tags == None:
wrapped_test_tags = DEFAULT_WRAPPED_TEST_TAGS
size = size or "large"
wrapped_test_name = name + "_wrapped_test"
_ts_web_test(
name = wrapped_test_name,
args = args,
flaky = flaky,
local = local,
shard_count = shard_count,
size = size,
tags = wrapped_test_tags,
timeout = timeout,
visibility = ["//visibility:private"],
**remaining_keyword_args
)
web_test_suite(
name = name,
launcher = ":" + wrapped_test_name,
args = args,
browsers = browsers,
browser_overrides = browser_overrides,
config = config,
data = web_test_data,
flaky = flaky,
local = local,
shard_count = shard_count,
size = size,
tags = tags + [
# Users don't need to know that this tag is required to run under ibazel
"ibazel_notify_changes",
],
test = wrapped_test_name,
test_suite_tags = test_suite_tags,
timeout = timeout,
visibility = visibility,
)
|
pkgname = "u-boot-tools"
pkgver = "2021.10"
pkgrel = 0
build_style = "makefile"
make_cmd = "gmake"
make_build_target = "tools"
make_build_args = ["envtools", "HOSTSTRIP=:", "STRIP=:", "NO_SDL=1"]
hostmakedepends = ["gmake", "bison", "flex", "linux-headers"]
makedepends = ["openssl-devel", "linux-headers"]
pkgdesc = "Das U-Boot tools"
maintainer = "q66 <q66@chimera-linux.org>"
license = "GPL-2.0-or-later"
url = "https://www.denx.de/wiki/U-Boot"
source = f"ftp://ftp.denx.de/pub/u-boot/u-boot-{pkgver}.tar.bz2"
sha256 = "cde723e19262e646f2670d25e5ec4b1b368490de950d4e26275a988c36df0bd4"
# weird test suite
options = ["!check"]
if self.profile().cross:
make_build_args += [
"CROSS_BUILD_TOOLS=y",
f"CROSS_COMPILE={self.profile().triplet}-"
]
def do_configure(self):
tcfl = self.get_cflags(shell = True)
tlfl = self.get_ldflags(shell = True)
tcc = self.get_tool("CC")
with self.profile("host"):
hcfl = self.get_cflags(shell = True)
hlfl = self.get_ldflags(shell = True)
hcc = self.get_tool("CC")
self.make.invoke("tools-only_defconfig", [
"CC=" + tcc,
"HOSTCC=" + hcc,
"CFLAGS=" + tcfl,
"HOSTCFLAGS=" + hcfl,
"LDFLAGS=" + tlfl,
"HOSTLDFLAGS=" + hlfl,
])
def post_build(self):
self.ln_s("fw_printenv", "tools/env/fw_setenv")
def do_install(self):
for t in [
"dumpimage", "fdtgrep", "fit_check_sign", "fit_info",
"gen_eth_addr", "gen_ethaddr_crc", "ifwitool", "img2srec",
"mkenvimage", "mkimage", "proftool", "spl_size_limit",
"env/fw_printenv", "env/fw_setenv",
]:
self.install_bin(f"tools/{t}")
|
## https://www.youtube.com/watch?v=PGXwNophTOQ
class Produto:
def __init__(self, nome, preco):
self.nome = nome
self.preco = preco
def desconto (self, percentual):
self.preco = self.preco - (self.preco * (percentual / 100 ))
# Getters note que o nome do metodo Getter é o mesmo da variavel
# e por isso, o nome do atributo foi acrescido de _
@property
def preco (self):
print(' *** Acessando o atributo preco de forma INDIRETA')
return self._preco
#Setter
@preco.setter
def preco(self, valor ):
if isinstance(valor, str ):
valor = float(valor.replace('R$',''))
self._preco = valor
@property
def nome(self):
return self._nome
@nome.setter
def nome(self, valor):
self._nome = valor.title()
def main() :
print('-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-')
p1 = Produto('camisete',65)
p1.desconto(15)
print(p1.nome)
print(p1.preco)
print('-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-|-=-')
p2 = Produto('Caneca LInux', 36)
p2.desconto(17)
print(p2.nome)
print(p2.preco)
if __name__ == '__main__':
main() |
"""
Test environment for The Bowling Game
"""
def log(message):
"""
generic log function
"""
print(message)
def init():
"""
set up environment for testing
"""
log("""
... environment setup started ...
""")
init()
|
def infer_ref_stem(src, ref):
n, remainder = divmod(len(ref), len(src))
if n < 0 or remainder != 0:
raise ValueError('mismatched src and refs. (len(src)=%d and len(ref)= %d)' % (len(src), len(ref)))
ref_stem = []
for i in xrange(0, len(ref), n):
ref_i = ref[i:i + n]
prefix = ref_i[0]
if n > 1:
# check trailing number
try:
_ = [int(f[-1]) for f in ref_i]
except ValueError as e:
raise ValueError("broken format for refs: {}".format(ref_i))
# remove trailing number for multiple references case
prefixes = [f[:-1] for f in ref_i]
if len(set(prefixes)) > 1:
raise ValueError("broken format for refs: {}".format(ref_i))
prefix = prefixes[0]
ref_stem.append(prefix)
return ref_stem
|
# Given an array of integers, find if the array contains any duplicates.
# Your function should return true if any value appears at least twice in the array,
# and it should return false if every element is distinct.
# Example 1:
# Input: [1,2,3,1]
# Output: true
# Example 2:
# Input: [1,2,3,4]
# Output: false
# Example 3:
# Input: [1,1,1,3,3,4,3,2,4,2]
# Output: true
def containsDuplicate(nums):
unique_nums = set(nums)
if len(unique_nums) < len(nums):
return True
else:
return False
if __name__ == "__main__":
nums = list(map(int, input().split(',')))
res = containsDuplicate(nums)
print("true" if res == True else "false")
|
"""converted from ..\fonts\M32_8x14.bin """
WIDTH = 8
HEIGHT = 14
FIRST = 0x20
LAST = 0x7f
_FONT =\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x18\x3c\x3c\x3c\x18\x18\x00\x18\x18\x00\x00\x00'\
b'\x00\x36\x36\x36\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x6c\x6c\x6c\xfe\x6c\x6c\xfe\x6c\x6c\x00\x00\x00'\
b'\x00\x18\x18\x7c\xc6\xc0\x78\x3c\x06\xc6\x7c\x18\x18\x00'\
b'\x00\x00\x00\x00\x62\x66\x0c\x18\x30\x66\xc6\x00\x00\x00'\
b'\x00\x00\x38\x6c\x38\x38\x76\xf6\xce\xcc\x76\x00\x00\x00'\
b'\x00\x0c\x0c\x0c\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x0c\x18\x30\x30\x30\x30\x30\x18\x0c\x00\x00\x00'\
b'\x00\x00\x30\x18\x0c\x0c\x0c\x0c\x0c\x18\x30\x00\x00\x00'\
b'\x00\x00\x00\x00\x6c\x38\xfe\x38\x6c\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x18\x18\x7e\x18\x18\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x0c\x0c\x18\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\xfe\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x18\x00\x00\x00'\
b'\x00\x00\x00\x02\x06\x0c\x18\x30\x60\xc0\x80\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xce\xde\xf6\xe6\xc6\xc6\x7c\x00\x00\x00'\
b'\x00\x00\x18\x78\x18\x18\x18\x18\x18\x18\x7e\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\x0c\x18\x30\x60\xc6\xfe\x00\x00\x00'\
b'\x00\x00\x7c\xc6\x06\x06\x3c\x06\x06\xc6\x7c\x00\x00\x00'\
b'\x00\x00\x0c\x1c\x3c\x6c\xcc\xfe\x0c\x0c\x0c\x00\x00\x00'\
b'\x00\x00\xfe\xc0\xc0\xc0\xfc\x06\x06\xc6\x7c\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc0\xc0\xfc\xc6\xc6\xc6\x7c\x00\x00\x00'\
b'\x00\x00\xfe\xc6\x0c\x18\x30\x30\x30\x30\x30\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\xc6\x7c\xc6\xc6\xc6\x7c\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\xc6\x7e\x06\x06\xc6\x7c\x00\x00\x00'\
b'\x00\x00\x00\x00\x0c\x0c\x00\x00\x0c\x0c\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x0c\x0c\x00\x00\x0c\x0c\x0c\x18\x00\x00'\
b'\x00\x00\x0c\x18\x30\x60\xc0\x60\x30\x18\x0c\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xfe\x00\xfe\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x60\x30\x18\x0c\x06\x0c\x18\x30\x60\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\x0c\x18\x18\x00\x18\x18\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\xde\xde\xde\xdc\xc0\x7e\x00\x00\x00'\
b'\x00\x00\x38\x6c\xc6\xc6\xc6\xfe\xc6\xc6\xc6\x00\x00\x00'\
b'\x00\x00\xfc\x66\x66\x66\x7c\x66\x66\x66\xfc\x00\x00\x00'\
b'\x00\x00\x3c\x66\xc0\xc0\xc0\xc0\xc0\x66\x3c\x00\x00\x00'\
b'\x00\x00\xf8\x6c\x66\x66\x66\x66\x66\x6c\xf8\x00\x00\x00'\
b'\x00\x00\xfe\x66\x60\x60\x7c\x60\x60\x66\xfe\x00\x00\x00'\
b'\x00\x00\xfe\x66\x60\x60\x7c\x60\x60\x60\xf0\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\xc0\xc0\xce\xc6\xc6\x7c\x00\x00\x00'\
b'\x00\x00\xc6\xc6\xc6\xc6\xfe\xc6\xc6\xc6\xc6\x00\x00\x00'\
b'\x00\x00\x3c\x18\x18\x18\x18\x18\x18\x18\x3c\x00\x00\x00'\
b'\x00\x00\x3c\x18\x18\x18\x18\x18\xd8\xd8\x70\x00\x00\x00'\
b'\x00\x00\xc6\xcc\xd8\xf0\xf0\xd8\xcc\xc6\xc6\x00\x00\x00'\
b'\x00\x00\xf0\x60\x60\x60\x60\x60\x62\x66\xfe\x00\x00\x00'\
b'\x00\x00\xc6\xc6\xee\xfe\xd6\xd6\xd6\xc6\xc6\x00\x00\x00'\
b'\x00\x00\xc6\xc6\xe6\xe6\xf6\xde\xce\xce\xc6\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\xc6\xc6\xc6\xc6\xc6\x7c\x00\x00\x00'\
b'\x00\x00\xfc\x66\x66\x66\x7c\x60\x60\x60\xf0\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\xc6\xc6\xc6\xc6\xd6\x7c\x06\x00\x00'\
b'\x00\x00\xfc\x66\x66\x66\x7c\x78\x6c\x66\xe6\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc0\x60\x38\x0c\x06\xc6\x7c\x00\x00\x00'\
b'\x00\x00\x7e\x5a\x18\x18\x18\x18\x18\x18\x3c\x00\x00\x00'\
b'\x00\x00\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\x7c\x00\x00\x00'\
b'\x00\x00\xc6\xc6\xc6\xc6\xc6\xc6\x6c\x38\x10\x00\x00\x00'\
b'\x00\x00\xc6\xc6\xd6\xd6\xd6\xfe\xee\xc6\xc6\x00\x00\x00'\
b'\x00\x00\xc6\xc6\x6c\x38\x38\x38\x6c\xc6\xc6\x00\x00\x00'\
b'\x00\x00\x66\x66\x66\x66\x3c\x18\x18\x18\x3c\x00\x00\x00'\
b'\x00\x00\xfe\xc6\x8c\x18\x30\x60\xc2\xc6\xfe\x00\x00\x00'\
b'\x00\x00\x7c\x60\x60\x60\x60\x60\x60\x60\x7c\x00\x00\x00'\
b'\x00\x00\x00\x80\xc0\x60\x30\x18\x0c\x06\x02\x00\x00\x00'\
b'\x00\x00\x7c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x7c\x00\x00\x00'\
b'\x00\x10\x38\x6c\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00'\
b'\x00\x18\x18\x18\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x78\x0c\x7c\xcc\xdc\x76\x00\x00\x00'\
b'\x00\x00\xe0\x60\x60\x7c\x66\x66\x66\x66\xfc\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x7c\xc6\xc0\xc0\xc6\x7c\x00\x00\x00'\
b'\x00\x00\x1c\x0c\x0c\x7c\xcc\xcc\xcc\xcc\x7e\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x7c\xc6\xfe\xc0\xc6\x7c\x00\x00\x00'\
b'\x00\x00\x1c\x36\x30\x30\xfc\x30\x30\x30\x78\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x76\xce\xc6\xc6\x7e\x06\xc6\x7c\x00'\
b'\x00\x00\xe0\x60\x60\x6c\x76\x66\x66\x66\xe6\x00\x00\x00'\
b'\x00\x00\x18\x18\x00\x38\x18\x18\x18\x18\x3c\x00\x00\x00'\
b'\x00\x00\x0c\x0c\x00\x1c\x0c\x0c\x0c\x0c\xcc\xcc\x78\x00'\
b'\x00\x00\xe0\x60\x60\x66\x6c\x78\x6c\x66\xe6\x00\x00\x00'\
b'\x00\x00\x18\x18\x18\x18\x18\x18\x18\x18\x1c\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x6c\xfe\xd6\xd6\xc6\xc6\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xdc\x66\x66\x66\x66\x66\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x7c\xc6\xc6\xc6\xc6\x7c\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xdc\x66\x66\x66\x7c\x60\x60\xf0\x00'\
b'\x00\x00\x00\x00\x00\x76\xcc\xcc\xcc\x7c\x0c\x0c\x1e\x00'\
b'\x00\x00\x00\x00\x00\xdc\x66\x60\x60\x60\xf0\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x7c\xc6\x70\x1c\xc6\x7c\x00\x00\x00'\
b'\x00\x00\x30\x30\x30\xfc\x30\x30\x30\x36\x1c\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xcc\xcc\xcc\xcc\xcc\x76\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xc6\xc6\xc6\x6c\x38\x10\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xc6\xc6\xd6\xd6\xfe\x6c\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xc6\x6c\x38\x38\x6c\xc6\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xc6\xc6\xc6\xce\x76\x06\xc6\x7c\x00'\
b'\x00\x00\x00\x00\x00\xfe\x8c\x18\x30\x62\xfe\x00\x00\x00'\
b'\x00\x00\x0e\x18\x18\x18\x70\x18\x18\x18\x0e\x00\x00\x00'\
b'\x00\x00\x18\x18\x18\x18\x00\x18\x18\x18\x18\x00\x00\x00'\
b'\x00\x00\x70\x18\x18\x18\x0e\x18\x18\x18\x70\x00\x00\x00'\
b'\x00\x00\x76\xdc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x10\x38\x38\x6c\x6c\xfe\x00\x00\x00\x00'\
FONT = memoryview(_FONT)
|
rename_dictionary = {
"base": {
# key -> file_name: value -> list of dictionaries of words to replace.
'_data_manager.py': {
"words": [{"word": 'DataManager', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
},
'_model_manager.py': {
"words": [{"word": 'ModelManager', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
},
'_train_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_forecast_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
}
},
"classification": {
'_data_manager.py': {
"words": [{"word": 'DataManager', "word_format": 'str_capitalize', 'word_type': 'append-left'},
{"word": '_feature_engineering', "word_format": 'str.lower', 'word_type': 'append-left'},
{"word": 'from assets.', "word_format": 'str.lower', 'word_type': 'append-right'},
{"word": 'FeatureEngineering', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
},
'_model_manager.py': {
"words": [{"word": 'ModelManager', "word_format": 'str_capitalize', 'word_type': 'append-left'},
{"word": '_visualizations', "word_format": 'str.lower', 'word_type': 'append-left'},
{"word": 'from assets.', "word_format": 'str.lower', 'word_type': 'append-right'}]
},
'_train_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_forecast_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*\n*\s*:\s*\n*\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_feature_engineering_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*\n*\s*:\s*\n*\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_reuse_features_and_train_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*\n*\s*:\s*\n*\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_feature_engineering.py': {
"words": [{"word": 'FeatureEngineering', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
},
'_visualizations.py': {
"words": []
}
},
"crash_course": {
'_data_manager.py': {
"words": [{"word": 'DataManager', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
},
'_model_manager.py': {
"words": [{"word": 'ModelManager', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
},
'_train_config.json': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_forecast_config.json': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
}
},
"basic_regression": {
'_data_manager.py': {
"words": [{"word": 'DataManager', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
},
'_model_manager.py': {
"words": [{"word": 'ModelManager', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
},
'_train_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_forecast_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_custom_pipeline_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_feature_engineering_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_train_step_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_reuse_features_and_train_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
}
},
"spark_classification": {
'_data_manager.py': {
"words": [{"word": 'DataManager', "word_format": 'str_capitalize', 'word_type': 'append-left'},
{"word": '_feature_engineering', "word_format": 'str.lower', 'word_type': 'append-left'},
{"word": 'from assets.', "word_format": 'str.lower', 'word_type': 'append-right'},
{"word": 'FeatureEngineering', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
},
'_model_manager.py': {
"words": [{"word": 'ModelManager', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
},
'_train_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_forecast_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_feature_engineering.py': {
"words": [{"word": 'FeatureEngineering', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
}
},
"spark_regression": {
'_data_manager.py': {
"words": [{"word": 'DataManager', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
},
'_model_manager.py': {
"words": [{"word": 'ModelManager', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
},
'_train_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_forecast_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
},
"advanced_regression": {
'_data_manager.py': {
"words": [{"word": 'DataManager', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
},
'_model_manager.py': {
"words": [{"word": 'ModelManager', "word_format": 'str_capitalize', 'word_type': 'append-left'}]
},
'_train_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
},
'_forecast_config.py': {
'inner_path': 'configs',
"words": [{"word": '"asset_name": "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*"'},
{"word": '"asset_name": \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '"asset_name"\s*:\s*\''},
{"word": '\'asset_name\': \'', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*\''},
{"word": '\'asset_name\': "', "word_format": 'str.lower', 'word_type': 'append-right',
"word_pattern": '\'asset_name\'\s*:\s*"'},
{"word": '_config ', "word_format": 'str.lower', 'word_type': 'append-left'}]
}
}
}
|
#
# PySNMP MIB module DELL-WLAN-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DELL-WLAN-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:38:17 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")
ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, snmpModules, TimeTicks, ObjectIdentity, ModuleIdentity, Unsigned32, iso, enterprises, Integer32, IpAddress, NotificationType, MibIdentifier, Counter32, Gauge32, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "snmpModules", "TimeTicks", "ObjectIdentity", "ModuleIdentity", "Unsigned32", "iso", "enterprises", "Integer32", "IpAddress", "NotificationType", "MibIdentifier", "Counter32", "Gauge32", "Bits")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
dell = MibIdentifier((1, 3, 6, 1, 4, 1, 674))
powerConnect = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895))
w_650 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5001)).setLabel("w-650")
w_651 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5002)).setLabel("w-651")
w_3200 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5003)).setLabel("w-3200")
w_3400 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5004)).setLabel("w-3400")
w_3600 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5005)).setLabel("w-3600")
w_AP92 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5006)).setLabel("w-AP92")
w_AP93 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5007)).setLabel("w-AP93")
w_AP105 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5008)).setLabel("w-AP105")
w_AP124 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5009)).setLabel("w-AP124")
w_AP125 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5010)).setLabel("w-AP125")
w_RAP5 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5011)).setLabel("w-RAP5")
w_RAP5WN = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5012)).setLabel("w-RAP5WN")
w_RAP2 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5013)).setLabel("w-RAP2")
w_620 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5014)).setLabel("w-620")
w_6000M3 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5015)).setLabel("w-6000M3")
w_7210 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5027)).setLabel("w-7210")
w_7220 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5028)).setLabel("w-7220")
w_7240 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5029)).setLabel("w-7240")
w_7005 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5043)).setLabel("w-7005")
w_7010 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5044)).setLabel("w-7010")
w_7030 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5049)).setLabel("w-7030")
w_7205 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5050)).setLabel("w-7205")
w_7024 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5051)).setLabel("w-7024")
w_AP68 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5016)).setLabel("w-AP68")
w_AP68P = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5017)).setLabel("w-AP68P")
w_AP175P = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5018)).setLabel("w-AP175P")
w_AP175AC = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5019)).setLabel("w-AP175AC")
w_AP175DC = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5020)).setLabel("w-AP175DC")
w_AP134 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5021)).setLabel("w-AP134")
w_AP135 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5022)).setLabel("w-AP135")
w_AP93H = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5023)).setLabel("w-AP93H")
w_AP104 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5024)).setLabel("w-AP104")
w_IAP3WN = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5025)).setLabel("w-IAP3WN")
w_IAP3WNP = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5026)).setLabel("w-IAP3WNP")
w_IAP108 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5031)).setLabel("w-IAP108")
w_IAP109 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5032)).setLabel("w-IAP109")
w_AP224 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5033)).setLabel("w-AP224")
w_AP225 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5034)).setLabel("w-AP225")
w_IAP155 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5035)).setLabel("w-IAP155")
w_IAP155P = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5036)).setLabel("w-IAP155P")
w_AP114 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5037)).setLabel("w-AP114")
w_AP115 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5038)).setLabel("w-AP115")
w_AP274 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5039)).setLabel("w-AP274")
w_AP275 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5040)).setLabel("w-AP275")
w_AP277 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5052)).setLabel("w-AP277")
w_AP228 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5054)).setLabel("w-AP228")
w_AP103 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5045)).setLabel("w-AP103")
w_AP103H = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5046)).setLabel("w-AP103H")
w_AP204 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5047)).setLabel("w-AP204")
w_AP205 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5048)).setLabel("w-AP205")
w_AP205H = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5055)).setLabel("w-AP205H")
w_AP214 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5041)).setLabel("w-AP214")
w_AP215 = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5042)).setLabel("w-AP215")
mibBuilder.exportSymbols("DELL-WLAN-MIB", w_AP175P=w_AP175P, w_AP68P=w_AP68P, w_AP205=w_AP205, w_7240=w_7240, w_AP225=w_AP225, powerConnect=powerConnect, w_6000M3=w_6000M3, w_7030=w_7030, w_7024=w_7024, w_AP224=w_AP224, w_3200=w_3200, w_AP134=w_AP134, w_7220=w_7220, w_AP124=w_AP124, w_AP204=w_AP204, w_3600=w_3600, w_AP215=w_AP215, w_AP92=w_AP92, w_7005=w_7005, w_AP93H=w_AP93H, w_AP105=w_AP105, w_AP103H=w_AP103H, w_620=w_620, w_AP104=w_AP104, w_IAP155=w_IAP155, w_RAP2=w_RAP2, w_AP115=w_AP115, w_RAP5=w_RAP5, w_AP125=w_AP125, w_IAP109=w_IAP109, w_IAP155P=w_IAP155P, w_AP214=w_AP214, w_AP135=w_AP135, w_AP228=w_AP228, w_IAP108=w_IAP108, w_7210=w_7210, w_IAP3WN=w_IAP3WN, w_AP93=w_AP93, dell=dell, w_IAP3WNP=w_IAP3WNP, w_650=w_650, w_AP68=w_AP68, w_651=w_651, w_AP277=w_AP277, w_AP274=w_AP274, w_AP205H=w_AP205H, w_AP275=w_AP275, w_3400=w_3400, w_7010=w_7010, w_AP175AC=w_AP175AC, w_AP175DC=w_AP175DC, w_AP114=w_AP114, w_RAP5WN=w_RAP5WN, w_7205=w_7205, w_AP103=w_AP103)
|
class SyscallHandler:
def __init__(self, idx, name, arg_count, callback):
self.idx = idx
self.name = name
self.arg_count = arg_count
self.callback = callback
|
"""
Determine whether the sequence of elements `items` is ascending so that
each element is strictly larger than (and not merely equal to) the element
that precedes it.
Input: Iterable with ints.
Output: Bool.
The mission was taken from Python CCPS 109 Fall 2018. It is taught for
Ryerson Chang School of Continuing Education by Ilkka Kokkarinen
"""
...
if __name__ == '__main__':
print("Example:")
print(is_ascending([-5, 10, 99, 123456]))
# These "asserts" are used for self-checking and not for an auto-testing
assert is_ascending([-5, 10, 99, 123456]) is True
assert is_ascending([99]) is True
assert is_ascending([4, 5, 6, 7, 3, 7, 9]) is False
assert is_ascending([]) is True
assert is_ascending([1, 1, 1, 1]) is False
|
# Definition for an interval.
# class Interval:
# def __init__(self, s=0, e=0):
# self.start = s
# self.end = e
class Solution:
def merge(self, intervals: List[Interval]) -> List[Interval]:
result = []
for interval in sorted(intervals, key=lambda x:x.start):
if result and interval.start <= result[-1].end:
result[-1].end = max(result[-1].end, interval.end)
else:
result.append(interval)
return result |
#!/usr/bin/env python3
class ConfKeys:
''' A central place to keep all the cashshuffle-related config and
wallet.storage keys for easier code maintenance. '''
class Global:
'''The below go in the global config '''
# keys to be deleted if we ever see them. This keys are from older versions and are irrelevant now.
DEFUNCT = ('cashshuffle_server', 'cashshuffle_server_v1', 'shuffle_noprompt', 'shuffle_noprompt2',)
SERVER = "cashshuffle_server_v2" # specifies server config to use
VIEW_POOLS_SIMPLE = 'shuffle_view_pools_simple' # specifies that the "Pools" window shows a reduced/simplified view. Defaults to True if not found in conf.
HIDE_TXS_FROM_HISTORY = 'shuffle_hide_txs_from_history' # Default false. if true, all history lists app-wide will suppress the Shuffle transactions from the history
MIN_COIN_VALUE = 'shuffle_min_coin_value' # specifies the lower bound that the user set on what coin value (amount) can be eligible for shuffling.
MAX_COIN_VALUE = 'shuffle_max_coin_value' # spcifies the upper bound that the user set on what coin value (amount) can be eligible for shuffling.
class PerWallet:
'''The below are per-wallet and go in wallet.storage'''
# keys to be deleted if we ever see them. This keys are from older versions and are irrelevant now.
DEFUNCT = ('shuffle_spend_mode',)
ENABLED = 'cashshuffle_enabled' # whether cashshuffle is enabeld for this wallet.
MAIN_WINDOW_NAGGER_ANSWER = 'shuffle_nagger_answer' # if None, nag user about "this wallet has cashshuffle disabled" on wallet startup. see main_window.py, if boolean value and not None, user won't be nagged but cashshuffle will auto-enable itself (or not) based on this value. TODO: also put this in the app preferences.
SESSION_COUNTER = 'shuffle_session_counter' # the number of times this wallet window has run cashshuffle. Incremented on each enabling, per wallet.
SHUFFLE_COUNTER = 'shuffle_shuffle_counter' # the number of successful shuffles we have performed with this plugin for this wallet.
COINS_FROZEN_BY_SHUFFLING = 'coins_frozen_by_shuffling' # list of coins frozen by shuffling. in case we crash.
SPEND_UNSHUFFLED_NAGGER_NOPROMPT = 'shuffle_spend_unshuffled_nonag' # Whether or not to nag the user when they select "spend unshuffled" in Send tab.
DISABLE_NAGGER_NOPROMPT = 'shuffle_disable_nonag'
CHANGE_SHARED_WITH_OTHERS = 'shuffle_change_addrs_shared_with_others' # A list of addresses we've sent over the network as 'change' addrs. These should not be used as shuffled output addresses as it would leak a bit of privacy. See clifordsymack#105
|
L = [
lambda x: x**2,
lambda x: x**3,
lambda x: x**4]
for f in L:
print(f(3)) # call the 3 lamnda expression, i.e. print 2**2, 2**3, 2**4
print('L[0]={0}'.format(L[0]))
print(L[0](2))
sum = lambda x, y : x + y
print('sum = ', sum(1, 2))
f = print
f('sum == ', sum(200,100)) |
# A rule that declares all the files needed to run an Android emulator.
# Targets that depend on this rule can then launch the emulator using
# the script that is generated by this rule.
def _avd_impl(ctx):
# Look for the source.properties file in the system image to get information
# about the image from.
source_properties_path = None
system_image_files = ctx.attr.image[DefaultInfo].files.to_list()
for system_image_file in system_image_files:
if system_image_file.basename == "source.properties":
source_properties_path = system_image_file.path
break
if source_properties_path == None:
fail("Supplied system image does not contain a source.properties file")
executable = ctx.outputs.executable
ctx.actions.expand_template(
template = ctx.file._template,
output = executable,
is_executable = True,
substitutions = {
"%source_properties_path%": source_properties_path,
},
)
runfiles = ctx.runfiles(files = [executable] +
ctx.files._emulator +
ctx.files.platform +
ctx.files._platform_tools +
ctx.files.image)
return [DefaultInfo(runfiles = runfiles)]
avd = rule(
implementation = _avd_impl,
attrs = {
"_template": attr.label(
default = "//tools/base/bazel/avd:emulator_launcher.sh.template",
allow_single_file = True,
),
"_emulator": attr.label(
default = "//prebuilts/android-emulator:emulator",
),
"_platform_tools": attr.label(
default = "//prebuilts/studio/sdk:platform-tools",
),
"image": attr.label(
default = "@system_image_android-29_default_x86_64//:x86_64-android-29-images",
),
"platform": attr.label(
default = "//prebuilts/studio/sdk:platforms/latest",
),
},
executable = True,
)
|
class Solution:
def sortArrayByParityII(self, A: List[int]) -> List[int]:
n = len(A)
i = 0
j = 1
while i < n:
while i < n and A[i] % 2 == 0:
i += 2
while j < n and A[j] % 2 == 1:
j += 2
if i < n:
A[i], A[j] = A[j], A[i]
i += 2
j += 2
return A
|
description = 'Devices for configuring Histogram Memory'
excludes = ['hm_config_strobo']
devices = dict(
hm_connector = device('nicos_sinq.devices.sinqhm.connector.HttpConnector',
description = "Connector for Histogram Memory Server",
byteorder = configdata('config.HISTOGRAM_MEMORY_ENDIANESS'),
baseurl = configdata('config.HISTOGRAM_MEMORY_URL'),
base64auth = 'c3B5OjAwNw==',
lowlevel = True
),
hm_b0_ax_x = device('nicos_sinq.devices.sinqhm.configurator.HistogramConfAxis',
description = 'Detector ID',
lowlevel = True,
length = 16384,
mapping = 'direct',
label = 'Detector-ID',
unit = '',
),
hm_bank0 = device('nicos_sinq.devices.sinqhm.configurator.HistogramConfBank',
description = 'HM First Bank',
lowlevel = True,
bankid = 0,
axes = ['hm_b0_ax_x']
),
hm_configurator = device('nicos_sinq.devices.sinqhm.configurator.ConfiguratorBase',
description = 'Configurator for the histogram memory',
filler = 'dig',
mask = '0x2000000',
active = '0x00000000',
increment = 1,
banks = ['hm_bank0'],
connector = 'hm_connector'
),
)
|
a=[]
n=int(input("Range: "))
for i in range(1,n+1):
num=int(input("Enter Values: "))
a.append(num)
for i in range(1,n+1):
if(i not in a):
print(i)
|
SCREENWIDTH = 288
SCREENHEIGHT = 512
FPS = 30
totalPlayers = 50
totalParents = 20
PIPEGAPSIZE = 150
BASEY = SCREENHEIGHT * 0.79
PLAYER_IMAGE = (
'assets/sprites/bluebird-upflap.png',
'assets/sprites/bluebird-midflap.png',
'assets/sprites/bluebird-downflap.png',
)
BACKGROUND_IMAGE = (
'assets/sprites/background-day.png',
)
PIPE_IMAGE = (
'assets/sprites/pipe-green.png',
)
BASE_IMAGE = (
'assets/sprites/base.png'
)
|
# Version number of the latest code of conduct
CONDUCT_VERSION = 1
# Number of elements in each page of ratings
RATING_PAGE_SIZE = 10
# Threshold of number of ratings to display overall rating
NUM_RATING_SIGNIFICANT = 3
# Maximum number of characters of comment
MAX_COMMENT_LENGTH = 25565
|
"""Example Process class."""
class Process(object):
"""Example process."""
def __init__(self, num=0):
"""Initialize a new Process.
:num: Number
"""
self.num = num
def get_double(self):
"""Return the number."""
return {"double": (2 * self.num)}
|
_base_ = ['../_base_/base_dynamic.py', '../../_base_/backends/ncnn.py']
codebase_config = dict(model_type='ncnn_end2end')
onnx_config = dict(output_names=['detection_output'], input_shape=None)
|
# Copyright Pincer 2021-Present
# Full MIT License can be found in `LICENSE` at the project root.
""" sent when a user parts a subscribed voice channel"""
# TODO: Implement event
|
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2018, Sujeet Akula <sujeet@freeboson.org>
# Distributed under terms of the MIT license.
__version__ = '0.1.0'
|
N = int(input())
S = input()
for kind1 in range(2):
for kind2 in range(2):
T = [0] * (N + 2)
T[0] = kind1
T[1] = kind2
for i in range(1, N + 1):
if T[i] == 0 and S[i % N] == 'o':
T[i + 1] = T[i - 1]
elif T[i] == 0 and S[i % N] == 'x':
T[i + 1] = T[i - 1] ^ 1
elif T[i] == 1 and S[i % N] == 'o':
T[i + 1] = T[i - 1] ^ 1
else:
T[i + 1] = T[i - 1]
if T[0] == T[-2] and T[1] == T[-1]:
print(''.join("SW"[t] for t in T[:-2]))
quit()
print(-1)
|
nome = input('Digite o nome do cliente: ')
dia = input('Digite o dia de vencimento: ')
mes = input('Digite o mês de vencimento: ')
valor = input('Digite o valor da fatura: ')
print('Olá,',nome)
print('A sua fatura com vencimento em',dia,'de',mes,'no valor de R$',valor,'está fechada.') |
print("Bitwise Operator")
# 0 - 00
# 1 - 01
# 2 - 10
# 3 - 11
print(0 | 1) # OR
print(0 | 2)
print(1 | 3)
print(2 | 3)
print(0 & 1) # AND |
'''
There are n rooms labeled from 0 to n - 1 and all the rooms are locked except for room 0. Your goal is to visit all the rooms. However, you cannot enter a locked room without having its key.
When you visit a room, you may find a set of distinct keys in it. Each key has a number on it, denoting which room it unlocks, and you can take all of them with you to unlock the other rooms.
Given an array rooms where rooms[i] is the set of keys that you can obtain if you visited room i, return true if you can visit all the rooms, or false otherwise.
'''
class Solution:
def canVisitAllRooms(self, rooms: List[List[int]]) -> bool:
que = [0]
visited = set()
visited.add(0)
while que:
room_id = que.pop(0)
for key in rooms[room_id]:
if key not in visited:
que.append(key)
visited.add(key)
# print(visited)
return len(visited) == len(rooms) |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
constants.py
Contains all the application constants. As a rule all constants are named in all caps.
'''
APPLICATION = "countdown"
QTGUI = True
PYPROPS_CORELIBPATH = '../../core'
PUBLISHALLDATA_PERIOD = 30.0
USE_GPIO = True
#__________________________________________________________________
# Required by QtMqttApp
ORGANIZATIONDOMAIN = "xcape.io"
ORGANIZATIONNAME = "xcape.io"
MQTT_DEFAULT_HOST = 'localhost'
MQTT_DEFAULT_PORT = 1883
MQTT_DEFAULT_QoS = 1
MQTT_KEEPALIVE = 15 # 15 seconds is default MQTT_KEEPALIVE in Arduino PubSubClient.h
#__________________________________________________________________
# Required by CountdownApp
|
print('Calories Burned Running Calculator')
km = float(input('Please enter your km: '))
weight = float(input('Please enter your weight: '))
kcal = km*weight*1.036
print('This is your burn running: '+ str(kcal))
|
word = list(input())
word[0] = word[0].upper()
print(''.join(word)) |
## https://leetcode.com/problems/reverse-words-in-a-string-iii
## this one is actually easier than II because we just split on
## empty space, then join the reversed words around a space
## comes in at ~91st percentile for runtime and 91st for memory.
class Solution:
def reverseWords(self, s: str) -> str:
return ' '.join(w[::-1] for w in s.split()) |
with open('inputs/input15.txt') as fin:
a = [int(x) for x in (fin.read()).split(',')]
def solve(data, number):
loc = {index: value for value, index in enumerate(data[:-1])}
num = data[-1]
index = len(data) - 2
while index < (number - 2):
if num in loc:
store = loc[num]
loc[num] = index + 1
num = index - store + 1
index += 1
else:
loc[num] = index + 1
num = 0
index += 1
return num
print(solve(a, 2020))
print(solve(a, 30000000))
|
"""Given an array of integers arr, a lucky integer is an integer that has a frequency in the array equal to its value.
Return the largest lucky integer in the array. If there is no lucky integer return -1.
Example 1:
Input: arr = [2,2,3,4]
Output: 2
Explanation: The only lucky number in the array is 2 because frequency[2] == 2."""
def solution(arr):
keyequalsvalue = []
hashtable = {i: arr.count(i) for i in arr}
for k, v in hashtable.items():
if k == v:
# storing all the lucky integers
keyequalsvalue.append(k)
# checking whether there is any lucky inteher or not
if keyequalsvalue:
# finding the max lucky integer from all the lucky integers
return max(keyequalsvalue)
return -1
arr = [1, 2, 2, 3, 3, 3]
print(solution(arr))
|
#!/usr/bin/python
def solution(S, C):
pass
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
solution("abccdb", [0, 1, 2, 3, 4, 5])
|
class BeanUtil:
@staticmethod
def dict_to_model(obj: object, **data):
"""
将 dict 转为对象
使用示例:
dic = {'name': 'python', 'price': 10}
model = Model()
BeanUtil.dict_to_model(model, **dic)
"""
obj.__dict__.update(data)
return obj
|
#Exemplo 1:
lista1 = []
lista2 = [1, 2, 3, 3, 4, 5, 8, 8, 10]
lista3 = [3.4, 23.42, 532.12]
lista4 = [True, False, True, True]
lista5 = ['tatu', 'roxo', 'a']
lista6 = list('Silvio Santos 1898') #Torna uma String em uma lista
print(lista6)
lista7 = [43, True, 23.1, 'abacate', 'Russia', 12, 'x', False, [1, 3, 5, 7]]
# Listar a lista
lista7 = list(range(1, 11))
print(lista7)
#Percorrer as listas (interavéis)
#- For
for elemento in lista2:
print(elemento, end=' ')
total = 0
for elemento in lista2:
total = total + elemento
print(f'\nTotal: {total/len(lista2)}')
# - While
total = 0
cont = 0
while len(lista2) != 0:
total = total + lista2.pop()
cont += 1
print(total/cont)
#Obter indicies da lista
jogos = ['Sonic', 'Super Mario', 'GTA', 'GoW', 'PES']
for indices, jogo in enumerate(jogos):
print(indices, jogo)
#Index
#print(lista2.index(8))
#print(lista2.index(5, 4)) #Busca o valor 5 a partir do indice 4
#print(lista2.index(5, 3, 6)) #Busca o valor 5 ENTRE os indice 3 e 6
#print(lista2.index(80)) #não temos esse valor na lista
#Descompactar Listas
animal, cor, letra = lista5
print(animal, cor, letra)
#Funções importantes para trabalhar com listas
# Apenas para inteiros ou floats
#print(sum(lista2)) #Soma dos valores das listas
#print(max(lista2)) #Mostra valores maximo das listas
#print(min(lista2)) #Mostra valores minimos das listas
# Round = Arrendondar os valores da lista
listaPlana = [2.09304902, 2.98576879843724, 5.39480928409850]
for elemento in listaPlana:
print(round(elemento))
#Obter o modulo de uma lista
listanegativa = [-2, -5, -6, 1000]
for numero in listanegativa:
print(abs(numero))
#Copiar uma lista
# Deep Copy = Cópias listas e as torna indenpendente entre si, ou seja, qualquer modificação em uma não modifica a outra.
lista1 = lista2.copy
# Shallow Copy = Cópias listas e as conecta, ou seja, qualquer modificação em uma modifica a outra.
print(lista2)
lista1 = lista2
# Matrizes
# Sintaxe:
#matriz = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
#print(matriz)
# Manipulando por linhas:
#for linha in matriz:
# print(linha)
# Acessando elementos
#print(matriz[0, 1])
#print(matriz[2, 1])
#Acessar elementos por repetição
#for linha in matriz:
# for numero in linha:
# print(numero)
#Jogo da Velha com Matriz
print("==========JOGO DA VELHA==============")
matriz = [[' ', ' ', ' '],
[' ', ' ', ' '],
[' ', ' ', ' ']]
print(f' \t {matriz[0]} '
f'\n \t {matriz[1]} '
f'\n \t {matriz[2]}')
final = False
while final is False:
linha1 = int(input("Play1 - Digite a linha: "))
coluna1 = int(input("Play1 - Digite a coluna : "))
matriz[linha1][coluna1] = 'X'
print(f' \t {matriz[0]} '
f'\n \t {matriz[1]} '
f'\n \t {matriz[2]}')
linha2 = int(input("Play2 - Digite a linha: "))
coluna2 = int(input("Play2 - Digite a coluna : "))
matriz[linha2][coluna2] = 'O'
print(f' \t {matriz[0]} '
f'\n \t {matriz[1]} '
f'\n \t {matriz[2]}')
if ' ' in matriz:
final = False
else:
final = True
print(f' \n \t Jogo Terminou')
|
'''
A class is a structure that allows you to combine the data and functionality associated with a particular task. The variables of a class are attributes. The functions of a class are methods.
'''
class Arithmetic:
#def __init__(self, number1=10, number2=20):
#def __init__(self, number1=4, number2=8):
def __init__(self, number1=100, number2=200):
# Idea behind this logic is to ensure number2 is greater or equal to number1.
if(number1 > number2):
self.number2 = number1
self.number1 = number2
else:
self.number1 = number1
self.number2 = number2
def add(self):
return self.number1 + self.number2
def subtract(self):
return self.number2 - self.number1
def multiply(self):
return self.number1 * self.number2
def divide(self):
return self.number2 / self.number1
def remainder(self):
return self.number2 % self.number1
def expo_num1(self):
return self.number1**2
def expo_num2(self):
return self.number2**2
def print_self(self):
print(self)
'''
print("-----Practice ---Example of a 'class' ----------")
class Computer:
def config(self):
print('cable', 'mouse', 'key_board')
com1 = Computer()
Computer.config(com1)
print('--or--')
com1.config()
''' |
class RequestOptionsBase(object):
def apply_query_params(self, url):
raise NotImplementedError()
class RequestOptions(RequestOptionsBase):
class Operator:
Equals = 'eq'
GreaterThan = 'gt'
GreaterThanOrEqual = 'gte'
LessThan = 'lt'
LessThanOrEqual = 'lte'
In = 'in'
class Field:
CreatedAt = 'createdAt'
LastLogin = 'lastLogin'
Name = 'name'
OwnerName = 'ownerName'
SiteRole = 'siteRole'
Tags = 'tags'
UpdatedAt = 'updatedAt'
class Direction:
Desc = 'desc'
Asc = 'asc'
def __init__(self, pagenumber=1, pagesize=100):
self.pagenumber = pagenumber
self.pagesize = pagesize
self.sort = set()
self.filter = set()
def page_size(self, page_size):
self.pagesize = page_size
return self
def page_number(self, page_number):
self.pagenumber = page_number
return self
def apply_query_params(self, url):
params = []
if '?' in url:
url, existing_params = url.split('?')
params.append(existing_params)
if self.page_number:
params.append('pageNumber={0}'.format(self.pagenumber))
if self.page_size:
params.append('pageSize={0}'.format(self.pagesize))
if len(self.sort) > 0:
sort_options = (str(sort_item) for sort_item in self.sort)
ordered_sort_options = sorted(sort_options)
params.append('sort={}'.format(','.join(ordered_sort_options)))
if len(self.filter) > 0:
filter_options = (str(filter_item) for filter_item in self.filter)
ordered_filter_options = sorted(filter_options)
params.append('filter={}'.format(','.join(ordered_filter_options)))
return "{0}?{1}".format(url, '&'.join(params))
class ImageRequestOptions(RequestOptionsBase):
# if 'high' isn't specified, the REST API endpoint returns an image with standard resolution
class Resolution:
High = 'high'
def __init__(self, imageresolution=None):
self.image_resolution = imageresolution
def apply_query_params(self, url):
params = []
if self.image_resolution:
params.append('resolution={0}'.format(self.image_resolution))
return "{0}?{1}".format(url, '&'.join(params))
class PDFRequestOptions(RequestOptionsBase):
# if 'high' isn't specified, the REST API endpoint returns an image with standard resolution
class PageType:
A3 = "a3"
A4 = "a4"
A5 = "a5"
B4 = "b4"
B5 = "b5"
Executive = "executive"
Folio = "folio"
Ledger = "ledger"
Legal = "legal"
Letter = "letter"
Note = "note"
Quarto = "quarto"
Tabloid = "tabloid"
class Orientation:
Portrait = "portrait"
Landscape = "landscape"
def __init__(self, page_type=None, orientation=None):
self.page_type = page_type
self.orientation = orientation
def apply_query_params(self, url):
params = []
if self.page_type:
params.append('type={0}'.format(self.page_type))
if self.orientation:
params.append('orientation={0}'.format(self.orientation))
return "{0}?{1}".format(url, '&'.join(params))
|
# Note:
# 1. the test() will execute the decorator inner function first
# 2. and then it will execute the normal function afterwards
# define a decorator
def calculate(callback):
def run():
# decorator program
result=0
for n in range(51):
result+=n
callback(result)
return run # [format] return the inner function
# execute the decorator
@calculate
def show(result):
print("The result is : ", result)
@calculate
def showChinese(result):
print("結果是 : ", result)
show()
showChinese()
# # define a decorator
# def myDeco(callback):
# def run():
# print("Program code inside the decorator")
# callback("--> test parameter") #this callback function indicates the test()
# return run # [format] return the inner function
# # execute the decorator
# @myDeco
# def test(n):
# print("Normal program code", n)
# test() |
def increment(n):
return n+1
def square(n):
return n*n
def imperative (initial, goal):
list_functions=[(" increment", increment),(" square", square)]
candidates=[(str(initial), initial)]
for x in range (goal-initial+1):
newCandidates=[]
for (action,result) in candidates:
for (a, r) in list_functions:
newCandidates.append((action+a,r(result)))
if newCandidates[-1][1]==goal:
return newCandidates[-1][0]
candidates=newCandidates
class Node:
def __init__(self, parent, action, result):
self.parent=parent
self.action=action
self.result=result
def path(self):
if self.parent==None:
return [(self.action, self.result)]
else:
return self.parent.path()+[(self.action, self.result)]
def objective(initial, goal):
start=[Node(None, None, initial)]
for x in range (goal-initial+1):
parent=start[0]
start=start[1:]
for (a,r) in [(" increment", increment), (" square", square)]:
newNode=Node(parent,a, r(parent.result))
if newNode.result==goal:
return newNode.path()
else:
start=start+[newNode]
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
class MorsecodeError(Exception):
# 自定义异常
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
class Morsecoder:
VERSION = 0.5
AUTHOR = 'Lemonix'
_en_list = {'A': '.-',
'B': '-...',
'C': '-.-.',
'D': '-..',
'E': '.',
'F': '..-.',
'G': '--.',
'H': '....',
'I': '..',
'J': '.---',
'K': '-.-',
'L': '.-..',
'M': '--',
'N': '-.',
'O': '---',
'P': '.--.',
'Q': '--.-',
'R': '.-.',
'S': '...',
'T': '-',
'U': '..-',
'V': '...-',
'W': '.--',
'X': '-..-',
'Y': '-.--',
'Z': '--.',
'1': '.----',
'2': '..---',
'3': '...--',
'4': '....-',
'5': '.....',
'6': '-....',
'7': '--...',
'8': '---..',
'9': '----.',
'0': '-----',
'.': '.-.-.-',
':': '---...',
',': '--..--',
';': '-.-.-.',
'?': '..--..',
'=': '-...-',
"'": '.----.',
'/': '-..-.',
'!': '-.-.--',
'-': '-....-',
'_': '..--.-',
'"': '.-..-.',
'(': '-.--.',
')': '-.--.-',
'$': '...-..-',
'&': '....',
'@': '.--.-.',
'+': '.-.-.'}
_de_list = {v:k for k,v in _en_list.items()}
# en_list: 加密表, de_list: 解密表
def __init__(self, **option):
self.text = option['text'].upper()
self.sep = option['sep']
if self.sep == ' ':
Morsecoder._en_list.update({' ': '/'})
Morsecoder._de_list.update({'/': ' '})
else:
Morsecoder._en_list.update({' ': ' '})
Morsecoder._de_list.update({' ': ' '})
# 避免重复, 更改空格的样式
for i in self.text:
if i not in Morsecoder._en_list:
uni_char = bin(ord(i))[2:].replace('1', '-').replace('0', '.')
Morsecoder._en_list.update({i: uni_char})
Morsecoder._de_list.update({uni_char: i})
#---------------------------------
def morse_en(self):
# En - 摩斯密码加密
try:
for i in self.text:
yield f'{Morsecoder._en_list[i]}{self.sep}'
except:
raise MorsecodeError('含有特殊字符')
def morse_de(self):
# De - 摩斯密码解密
try:
self.text = self.text.split(self.sep)
# 用sep把code分割为列表
except:
raise MorsecodeError('分隔符错误')
else:
if self.text[-1] == '':
# 去除尾部的空元素
self.text = self.text[0:-1]
try:
for i in self.text:
yield Morsecoder._de_list[i]
except:
raise MorsecodeError('非法摩斯密码')
def modify(key, value):
try:
Morsecoder._en_list.update({key: value})
Morsecoder._de_list.update({value: key})
except:
raise MorsecoderError('修改失败')
'''
My Bilibili channel: https://b23.tv/wxyFrS
Thank u 4 using my program
'''
|
def sales_sum(key):
total = 0
nums = []
while True:
x = yield
print(key + "销量:", x)
if not x:
break
total += x
nums.append(x)
return total, nums
if __name__ == "__main__":
my_gen = sales_sum("bobby牌手机")
my_gen.send(None)
my_gen.send(1200)
my_gen.send(1500)
my_gen.send(2000)
try:
my_gen.send(None)
except StopIteration as e: # 在return时会抛异常,且返回结果, 所以必须要捕获异常
print(e.value) # 所以 yield from 帮助完成了 异常捕获
|
'''
Q: 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
What is the sum of the digits of the number 2^1000?
'''
'''
final answer: 1366
'''
# init constant
pwr = 1000
base = 2
# compute
def compute():
result = str(base ** pwr)
digits = [int(d) for d in result]
return (sum(digits))
if __name__ == '__main__':
print("the sum of the digits of the number 2^1000 is " + str(compute()))
|
# Load csv with no additional arguments
data = pd.read_csv("vt_tax_data_2016.csv")
# Print the data types
print(data.dtypes)
'''
<script.py> output:
STATEFIPS int64
N00700 int64
...
N85770 int64
A85770 int64
Length: 147, dtype: object
'''
# Create dict specifying data types for agi_stub and zipcode
data_types = {'agi_stub': 'category',
'zipcode': str}
# Load csv using dtype to set correct data types
data = pd.read_csv("vt_tax_data_2016.csv", dtype = data_types)
# Print data types of resulting frame
print(data.dtypes.head())
'''
<script.py> output:
STATEFIPS int64
STATE object
zipcode object
agi_stub category
N1 int64
dtype: object
Setting data types at import requires becoming familiar with the data first,
but it can save effort later on. A common workflow is to load the data and explore it,
then write code that sets data types at import to share with colleagues or other audiences.
''' |
"""
sciwebvis.JSRenderable
----------------------
:copyright: 2015, Juan David Adarve. See AUTHORS for more details
:license: 3-clause BSD, see LICENSE for more details
"""
__all__ = ['JSRenderable']
class JSRenderable(object):
"""
Base class for Javascript render classes
"""
def __init__(self):
pass
def render(self):
"""
returns Javascript code for rendering the object.
"""
pass |
#Pig Latin - Pig Latin is a game of alterations played on the English language game. To create the Pig Latin form of an English word the initial consonant sound is transposed to the end of the word and an ay is affixed (Ex.: "banana" would yield anana-bay). Read Wikipedia for more information on rules.
st = input('Give me a word : ')
cons = 'bcdfghjklmnpqrstvwxyz'
vowel = 'aeiou'
if (st[0] in cons) and (st[1] in cons):
#if two initial letter are both consonant
first = st[0]
sec = st[1]
st =st.replace(st[0],' ')
st = st.replace(st[1],' ')
st = st.strip()
print((st+first+sec+'ay').title())
elif st[0] in cons:
#if the initial letter is a consonant
first = st[0]
st = st.replace(st[0],' ')
st = st.strip()
print((st+first+'ay').title())
elif st[0] in vowel:
#if the initial letter is a vowel
print(st+'ay') |
power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate Leakage': 0.00662954,
'Peak Dynamic': 0.0,
'Runtime Dynamic': 0.0,
'Subthreshold Leakage': 0.0691322,
'Subthreshold Leakage with power gating': 0.0259246},
'Core': [{'Area': 32.6082,
'Execution Unit/Area': 8.2042,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.315901,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.450812,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 1.8361,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.122718,
'Execution Unit/Instruction Scheduler/Area': 2.17927,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.653476,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.13158,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.648995,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 2.43406,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.364435,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 8.81851,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.346878,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.023689,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.284279,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.175195,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.631157,
'Execution Unit/Register Files/Runtime Dynamic': 0.198884,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.773479,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.76805,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155,
'Execution Unit/Runtime Dynamic': 5.25717,
'Execution Unit/Subthreshold Leakage': 1.83518,
'Execution Unit/Subthreshold Leakage with power gating': 0.709678,
'Gate Leakage': 0.372997,
'Instruction Fetch Unit/Area': 5.86007,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000743737,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000743737,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000646759,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000249805,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00251669,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00465092,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00716787,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0590479,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.168419,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.389567,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.572027,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 8.96874,
'Instruction Fetch Unit/Runtime Dynamic': 1.14183,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932587,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.098595,
'L2/Runtime Dynamic': 0.0212693,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80969,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 6.41252,
'Load Store Unit/Data Cache/Runtime Dynamic': 2.5062,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0351387,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.167436,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.167436,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 7.20641,
'Load Store Unit/Runtime Dynamic': 3.49938,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.41287,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.825739,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591622,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283406,
'Memory Management Unit/Area': 0.434579,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.146529,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.147985,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00813591,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.399995,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0639356,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.811814,
'Memory Management Unit/Runtime Dynamic': 0.211921,
'Memory Management Unit/Subthreshold Leakage': 0.0769113,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462,
'Peak Dynamic': 30.4658,
'Renaming Unit/Area': 0.369768,
'Renaming Unit/FP Front End RAT/Area': 0.168486,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 1.21018,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925,
'Renaming Unit/Free List/Area': 0.0414755,
'Renaming Unit/Free List/Gate Leakage': 4.15911e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0401324,
'Renaming Unit/Free List/Runtime Dynamic': 0.0479776,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987,
'Renaming Unit/Gate Leakage': 0.00863632,
'Renaming Unit/Int Front End RAT/Area': 0.114751,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.315686,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781,
'Renaming Unit/Peak Dynamic': 4.56169,
'Renaming Unit/Runtime Dynamic': 1.57384,
'Renaming Unit/Subthreshold Leakage': 0.070483,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779,
'Runtime Dynamic': 11.7054,
'Subthreshold Leakage': 6.21877,
'Subthreshold Leakage with power gating': 2.58311},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.136084,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.309574,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.797652,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.251785,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.40612,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.204996,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.862902,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.165679,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 5.5166,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.150694,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.010561,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.124765,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0781051,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.275459,
'Execution Unit/Register Files/Runtime Dynamic': 0.0886661,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.296874,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.691131,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 2.35765,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000376894,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000376894,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000329837,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.00012854,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00112199,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00220561,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00355779,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0750845,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.77602,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.178011,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.255021,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 7.22632,
'Instruction Fetch Unit/Runtime Dynamic': 0.513879,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.045595,
'L2/Runtime Dynamic': 0.00877062,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.58398,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.13583,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0759266,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0759266,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.94252,
'Load Store Unit/Runtime Dynamic': 1.5862,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.187222,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.374444,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0664457,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0671173,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.296955,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0292213,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.567206,
'Memory Management Unit/Runtime Dynamic': 0.0963386,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 20.8877,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.396406,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.016184,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.120258,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.532848,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 5.09569,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.179236,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.343469,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.997388,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.308416,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.497463,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.251103,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.05698,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.199824,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 5.95449,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.188428,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0129363,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.159451,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0956722,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.347879,
'Execution Unit/Register Files/Runtime Dynamic': 0.108609,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.380738,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.805977,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 2.72041,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000651223,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000651223,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000569303,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000221529,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00137434,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00324609,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00616923,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0919721,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.85021,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.20347,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.312379,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 8.35265,
'Instruction Fetch Unit/Runtime Dynamic': 0.617236,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0466842,
'L2/Runtime Dynamic': 0.00644507,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.40524,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.04453,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0701438,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0701439,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.73647,
'Load Store Unit/Runtime Dynamic': 1.4606,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.172963,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.345926,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.061385,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0620814,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.363745,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0333701,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.625302,
'Memory Management Unit/Runtime Dynamic': 0.0954515,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 22.3051,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.495668,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.019947,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.146459,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.662073,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 5.56222,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.209512,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.367249,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 1.15216,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.343277,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.553693,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.279486,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.17646,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.215969,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 6.26383,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.217667,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0143986,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.181715,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.106486,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.399382,
'Execution Unit/Register Files/Runtime Dynamic': 0.120885,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.435213,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.912457,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 2.98242,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000684763,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000684763,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000596675,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000231118,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00152968,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00349589,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00655661,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.102368,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.219719,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.347688,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 8.96396,
'Instruction Fetch Unit/Runtime Dynamic': 0.679827,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0500278,
'L2/Runtime Dynamic': 0.00792427,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.56757,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.12261,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0753955,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0753955,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.9236,
'Load Store Unit/Runtime Dynamic': 1.56983,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.185912,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.371825,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0659809,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0667291,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.399995,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0360286,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.669447,
'Memory Management Unit/Runtime Dynamic': 0.102758,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 23.4603,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.572582,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0224559,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.162322,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.757359,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 6.10012,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328}],
'DRAM': {'Area': 0,
'Gate Leakage': 0,
'Peak Dynamic': 2.67763722357763,
'Runtime Dynamic': 2.67763722357763,
'Subthreshold Leakage': 4.252,
'Subthreshold Leakage with power gating': 4.252},
'L3': [{'Area': 61.9075,
'Gate Leakage': 0.0484137,
'Peak Dynamic': 0.266145,
'Runtime Dynamic': 0.139506,
'Subthreshold Leakage': 6.80085,
'Subthreshold Leakage with power gating': 3.32364}],
'Processor': {'Area': 191.908,
'Gate Leakage': 1.53485,
'Peak Dynamic': 97.385,
'Peak Power': 130.497,
'Runtime Dynamic': 28.603,
'Subthreshold Leakage': 31.5774,
'Subthreshold Leakage with power gating': 13.9484,
'Total Cores/Area': 128.669,
'Total Cores/Gate Leakage': 1.4798,
'Total Cores/Peak Dynamic': 97.1189,
'Total Cores/Runtime Dynamic': 28.4634,
'Total Cores/Subthreshold Leakage': 24.7074,
'Total Cores/Subthreshold Leakage with power gating': 10.2429,
'Total L3s/Area': 61.9075,
'Total L3s/Gate Leakage': 0.0484137,
'Total L3s/Peak Dynamic': 0.266145,
'Total L3s/Runtime Dynamic': 0.139506,
'Total L3s/Subthreshold Leakage': 6.80085,
'Total L3s/Subthreshold Leakage with power gating': 3.32364,
'Total Leakage': 33.1122,
'Total NoCs/Area': 1.33155,
'Total NoCs/Gate Leakage': 0.00662954,
'Total NoCs/Peak Dynamic': 0.0,
'Total NoCs/Runtime Dynamic': 0.0,
'Total NoCs/Subthreshold Leakage': 0.0691322,
'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}} |
""" Advent of Code, 2020: Day 15, b """
with open(__file__[:-5] + "_input") as f:
inputs = [line.strip() for line in f]
def run():
""" Maintain a dictionary of last-positions instead of counting """
numbers = [int(n) for n in inputs[0].split(",")]
seen = {n: i for (i, n) in enumerate(numbers)}
last = -1
index, target = len(seen) - 1, 30000000
while True:
age = 0
if last in seen:
age = index - seen[last]
seen[last] = index
if index + 2 == target:
return age
index += 1
last = age
return 0
if __name__ == "__main__":
print(run())
|
def test_in(neuron_instance):
"""Test 1D diffusion in a single section"""
h, rxd, data = neuron_instance
soma = h.Section(name='soma')
dend = h.Section(name='dend')
soma.nseg = 3
cyt = rxd.Region(h.allsec(), name='cyt')
c = rxd.Species(cyt, name='c')
for node in c.nodes(soma):
assert(node in soma)
assert(node not in dend)
for node in c.nodes(dend):
assert(node in dend)
assert(node not in soma)
|
# __init__.py
# Copyright 2019 Roger Marsh
# Licence: See LICENCE (BSD licence)
"""Provide an identical interface to several Python database modules.
The supported modules, or packages, are apsw, bsbdb3, dbm, dptdb, ndbm,
sqlite3, unqlite, and vedis.
"""
|
# Copyright 2019 Google LLC
#
# 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.
"""Helper functions common to all Fuchsia-specific code."""
class FuchsiaConfigError(Exception):
"""Exception for unrecoverable Fuchsia-related misconfigrations."""
class FuchsiaSdkError(Exception):
"""Exception for errors downloading, building, or using the Fuchsia SDK,
in such a way that execution cannot continue."""
class FuchsiaConnectionError(Exception):
"""Exception for errors connecting to Fuchsia instances."""
|
#!/usr/bin/env python3
# Copyright (c) 2011 Qtrac Ltd. All rights reserved.
# This program or module is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. It is provided for educational
# purposes and 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
# General Public License for more details.
__all__ = ["Block", "get_root_block", "get_empty_block",
"get_new_row", "is_new_row"]
class Block:
def __init__(self, name, color="white"):
self.name = name
self.color = color
self.children = []
def has_children(self):
return bool(self.children)
def __str__(self):
blocks = []
if self.name is not None:
color = "{0}: ".format(self.color) if self.color else ""
block = "[{0}{1}".format(color, self.name)
blocks.append(block)
if self.children:
blocks.append("\n")
for block in self.children:
if is_new_row(block):
blocks.append("/\n")
else:
blocks.append(str(block))
if self.name is not None:
blocks[-1] += "]\n"
return "".join(blocks)
get_root_block = lambda: Block(None, None)
get_empty_block = lambda: Block("")
get_new_row = lambda: None
is_new_row = lambda x: x is None
|
"""
Give three strings ‘m’, ‘n’, and ‘p’, write a method to find out if ‘p’
has been formed by interleaving ‘m’ and ‘n’. ‘p’ would be considered
interleaving ‘m’ and ‘n’ if it contains all the letters from ‘m’ and ‘n’ and the
order of letters is preserved too.
Example 1:
Input: m="abd", n="cef", p="abcdef"
Output: true
Explanation: 'p' contains all the letters from 'm' and 'n' and preserves their order too.
Example 2:
Input: m="abd", n="cef", p="adcbef"
Output: false
Explanation: 'p' contains all the letters from 'm' and 'n' but does not preserve the order.
"""
# Time: O(m * n) Space: O(m * n)
def find_SI(m, n, p):
return find_SI_recursive({}, m, n, p, 0, 0, 0)
def find_SI_recursive(dp, m, n, p, mIndex, nIndex, pIndex):
mLen, nLen, pLen = len(m), len(n), len(p)
# if we have reached the end of the all the strings
if mIndex == mLen and nIndex == nLen and pIndex == pLen:
return True
# if we have reached the end of 'p' but 'm' or 'n' still has some characters left
if pIndex == pLen:
return False
subProblemKey = str(mIndex) + "-" + str(nIndex) + "-" + str(pIndex)
if subProblemKey not in dp:
b1, b2 = False, False
if mIndex < mLen and m[mIndex] == p[pIndex]:
b1 = find_SI_recursive(dp, m, n, p, mIndex + 1, nIndex, pIndex + 1)
if nIndex < nLen and n[nIndex] == p[pIndex]:
b2 = find_SI_recursive(dp, m, n, p, mIndex, nIndex + 1, pIndex + 1)
dp[subProblemKey] = b1 or b2
return dp.get(subProblemKey)
def main():
print(find_SI("abd", "cef", "abcdef"))
print(find_SI("abd", "cef", "adcbef"))
print(find_SI("abc", "def", "abdccf"))
print(find_SI("abcdef", "mnop", "mnaobcdepf"))
main() |
class InstallNotFoundError(FileNotFoundError):
def __init__(self):
super().__init__("Could not find a ProPresenter 6 installation on your system.")
class InvalidInstallError(BaseException):
def __init__(self, sub):
super().__init__("A problem was found with your ProPresenter 6 installation: %s" % sub)
|
class Solution(object):
def isOneEditDistance(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
ls_s, ls_t = len(s) ,len(t)
# reverse to reduce conditions
if ls_s > ls_t:
return self.isOneEditDistance(t, s)
# edit distance is greater than 1
if ls_t - ls_s > 1:
return False
i, shift = 0, ls_t - ls_s
# find the different position
while i < ls_s and s[i] == t[i]:
i += 1
if i == ls_s:
return shift > 0
if shift == 0:
i += 1
while i < ls_s and s[i] == t[i + shift]:
i += 1
return i == ls_s |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def rec(n):
if n == 1:
return 1
return n + rec(n - 1)
if __name__ == '__main__':
n = int(input("Enter n: "))
sum = 0
for i in range(1, n + 1):
sum += i
print(f"Сумма без рекурсии: {sum}")
print(f"Сумма с рекурсией: {rec(n)}")
|
#!/usr/bin/env python
class Solution:
def longestConsecutive(self, nums) -> int:
consecutive, self.longest = dict(), 1 if len(nums) > 0 else 0
def union(i, j): # merge i with j
if len(consecutive[i]) > len(consecutive[j]):
i, j = j, i
consecutive[j] += consecutive[i]
self.longest = max(self.longest, len(consecutive[j]))
for k in consecutive[i]:
consecutive[k] = consecutive[j]
for n in nums:
if n in consecutive:
continue
consecutive[n] = [n]
if (n-1) in consecutive:
union(n, (n-1))
if (n+1) in consecutive:
union(n, (n+1))
return self.longest
nums = [100, 4, 200, 1, 3, 2]
nums = []
nums = [0, 3, 1, 4, 5]
nums = [0,1,2,3,4,5]
nums = list(range(100000))
nums = [0]
nums = [0, 3]
nums = [1,2,0,1]
sol = Solution()
print(sol.longestConsecutive(nums))
|
#!/usr/bin/python
#
# Copyright 2020 Google LLC
#
# 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.
# The max length of a Data Catalog Entry ID.
ENTRY_ID_LENGTH = 64
# This is the common prefix for all Tableau Entries.
ENTRY_ID_PREFIX = 't__'
# This constant represents the max length a generated Entry ID can have before
# appending the standard ENTRY_ID_PREFIX to it. The necessary right-most chars
# will be removed from a generated Entry ID if it has more chars than the value
# of this constant.
NO_PREFIX_ENTRY_ID_LENGTH = ENTRY_ID_LENGTH - len(ENTRY_ID_PREFIX)
# The ID of the Tag Template created to store additional metadata for
# Dashboard-related Entries.
TAG_TEMPLATE_ID_DASHBOARD = 'tableau_dashboard_metadata'
# The ID of the Tag Template created to store additional metadata for
# Sheet-related Entries.
TAG_TEMPLATE_ID_SHEET = 'tableau_sheet_metadata'
# The ID of the Tag Template created to store additional metadata for
# Workbook-related Entries.
TAG_TEMPLATE_ID_WORKBOOK = 'tableau_workbook_metadata'
# The user specified type of Dashboard-related Entries.
USER_SPECIFIED_TYPE_DASHBOARD = 'dashboard'
# The user specified type of Sheet-related Entries.
USER_SPECIFIED_TYPE_SHEET = 'sheet'
# The user specified type of Workbook-related Entries.
USER_SPECIFIED_TYPE_WORKBOOK = 'workbook'
|
# $Id: constants.py,v 1.1 2010-09-07 15:09:35 wirawan Exp $
#
# pyqmc.libs.constants module
# Created: 20100902
# Wirawan Purwanto
#
"""
Library of constants from various computational packages.
At present it contain constants from:
* nwchem 5.1.1
* MPQC 2.3.1
"""
class nwchem_5_1_1:
"""Constants from NWCHEM 5.1.1 .
References: geom.F (where the printout of the geometries is done)
"""
# The default scaling is 1.88972598858 a.u. per angstrom
# defined in geom_input.F
ang2bohr = 1.88972598858
#bohr_in_ang = 0.52917715 -- in geom_hnd.F, perhaps not used for
# this purpose
bohr2ang = 1.0 / ang_in_bohr
class mpqc_2_3_1:
"""Constants in MPQC 2.3.1 .
References: mpqc-2.3.1/src/lib/util/misc/units.cc
"""
# Old from CRC Handbook 77th Ed. Tables 1&2 (CODATA 1986)
# But at least, it is consistent with nwchem 5.1.1 constant:
bohr2ang = 5.29177249e-01
ang2bohr = 1.0 / bohr2ang
hartree2eV = 27.2113834
|
#! python3
print("4.1")
pizzas = ['pepperoni', 'capricosa', 'rimini']
for pizza in pizzas:
print(f"I like pizza' {pizza.title()}")
print('I love pizza!')
print("4.2")
animals = ['dog', 'cat', 'monkey']
for animal in animals:
print(f'{animal.title()} is a good friend.')
print("All of this animals are great!")
|
def some_fun(name, /, pos_or_keyword, *a, content, **b):
print("Positional args:\n", name, "\n", pos_or_keyword, sep="")
for i in a:
print(i)
print("\nKeyword args:\n", content, sep="")
for key, val in b.items():
print(key, "->", val)
if __name__ == "__main__":
some_fun("trayan", 1, 2, 3, pos = "the default", content = "My content ...", title="Digits", sep=", ", )
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2018-12-22 11:16:42
#
# 堆排序 纯粹练手
class HeapSort(object):
def __init__(self, data):
self.data = data
def sort(self):
# 建立最大堆
for i in range(len(self.data)//2-1, -1, -1):
# 从第一个非叶子结点从下至上,从右至左调整结构
self.sink(i, len(self.data))
# 调整下沉元素
for i in range(len(self.data)-1, 0, -1):
# 堆顶元素移到最后一位
self.swap(0, i)
# 重新调整堆结构
self.sink(0, i)
# 下沉元素
def sink(self, i, length):
tmp = self.data[i]
k = 2 * i + 1
while k < length:
if k + 1 < length and self.data[k] < self.data[k+1]:
k += 1
if self.data[k] > tmp:
self.data[i] = self.data[k]
i = k
k = 2*k+1
else:
break
self.data[i] = tmp
def swap(self, i, j):
self.data[i], self.data[j] = self.data[j], self.data[i]
def display(self):
print(self.data)
if __name__ == '__main__':
data = [10, 3, 4, 8, 7, 20, 1, 9, 2]
heap = HeapSort(data)
heap.display()
heap.sort()
heap.display()
|
# Time: O(n^2)
# Space: O(n)
class MyCalendarTwo(object):
def __init__(self):
self.__overlaps = []
self.__calendar = []
def book(self, start, end):
"""
:type start: int
:type end: int
:rtype: bool
"""
for i, j in self.__overlaps:
if start < j and end > i:
return False
for i, j in self.__calendar:
if start < j and end > i:
self.__overlaps.append((max(start, i), min(end, j)))
self.__calendar.append((start, end))
return True
|
def provide_test_geojson():
d = {
"type": 'FeatureCollection',
"features": [
{
"type": 'Feature',
"properties": {
"name": 'Lafayette (LAFY)',
"code": 'LF',
"address": '3601 Deer Hill Road, Lafayette CA 94549',
"entries": '3481',
"exits": '3616',
"latitude": 37.893394,
"longitude": -122.123801
},
"geometry": {
"type": 'Point',
"coordinates": [
-122.123801,
37.893394
]
}
},
{
"type": 'Feature',
"properties": {
"name": '12th St. Oakland City Center (12TH)',
"code": '12',
"address": '1245 Broadway, Oakland CA 94612',
"entries": '13418',
"exits": '13547',
"latitude": 37.803664,
"longitude": -122.271604
},
"geometry": {
"type": 'Point',
"coordinates": [
-122.271604,
37.803664
]
}
},
{
"type": 'Feature',
"properties": {
"name": '16th St. Mission (16TH)',
"code": '16',
"address": '2000 Mission Street, San Francisco CA 94110',
"entries": '12409',
"exits": '12351',
"latitude": 37.765062,
"longitude": -122.419694
},
"geometry": {
"type": 'Point',
"coordinates": [
-122.419694,
37.765062
]
}
},
{
"type": 'Feature',
"properties": {
"name": '19th St. Oakland (19TH)',
"code": '19',
"address": '1900 Broadway, Oakland CA 94612',
"entries": '13108',
"exits": '13090',
"latitude": 37.80787,
"longitude": -122.269029
},
"geometry": {
"type": 'Point',
"coordinates": [
-122.269029,
37.80787
]
}
},
{
"type": 'Feature',
"properties": {
"name": '24th St. Mission (24TH)',
"code": '24',
"address": '2800 Mission Street, San Francisco CA 94110',
"entries": '12817',
"exits": '12529',
"latitude": 37.752254,
"longitude": -122.418466
},
"geometry": {
"type": 'Point',
"coordinates": [
-122.418466,
37.752254
]
}
},
{
"type": 'Feature',
"properties": {
"name": 'Ashby (ASHB)',
"code": 'AS',
"address": '3100 Adeline Street, Berkeley CA 94703',
"entries": '5452',
"exits": '5341',
"latitude": 37.853024,
"longitude": -122.26978
},
"geometry": {
"type": 'Point',
"coordinates": [
-122.26978,
37.853024
]
}
},
{
"type": 'Feature',
"properties": {
"name": 'Balboa Park (BALB)',
"code": 'BP',
"address": '401 Geneva Avenue, San Francisco CA 94112',
"entries": '11170',
"exits": '9817',
"latitude": 37.721981,
"longitude": -122.447414
},
"geometry": {
"type": 'Point',
"coordinates": [
-122.447414,
37.721981
]
}
},
{
"type": 'Feature',
"properties": {
"name": 'Bay Fair (BAYF)',
"code": 'BF',
"address": '15242 Hesperian Blvd., San Leandro CA 94578',
"entries": '5564',
"exits": '5516',
"latitude": 37.697185,
"longitude": -122.126871
},
"geometry": {
"type": 'Point',
"coordinates": [
-122.126871,
37.697185
]
}
},
{
"type": 'Feature',
"properties": {
"name": 'Castro Valley (CAST)',
"code": 'CV',
"address": '3301 Norbridge Dr., Castro Valley CA 94546',
"entries": '2781',
"exits": '2735',
"latitude": 37.690754,
"longitude": -122.075567
},
"geometry": {
"type": 'Point',
"coordinates": [
-122.075567,
37.690754
]
}
}
]
}
return d
|
# 1520. Maximum Number of Non-Overlapping Substrings
# User Accepted:274
# User Tried:1333
# Total Accepted:283
# Total Submissions:3130
# Difficulty:Medium
# Given a string s of lowercase letters,
# you need to find the maximum number of non-empty substrings of s that meet the following conditions:
# The substrings do not overlap, that is for any two substrings s[i..j] and s[k..l], either j < k or i > l is true.
# A substring that contains a certain character c must also contain all occurrences of c.
# Find the maximum number of substrings that meet the above conditions.
# If there are multiple solutions with the same number of substrings, return the one with minimum total length.
# It can be shown that there exists a unique solution of minimum total length.
# Notice that you can return the substrings in any order.
# Example 1:
# Input: s = "adefaddaccc"
# Output: ["e","f","ccc"]
# Explanation: The following are all the possible substrings that meet the conditions:
# [
# "adefaddaccc"
# "adefadda",
# "ef",
# "e",
# "f",
# "ccc",
# ]
# If we choose the first string, we cannot choose anything else and we'd get only 1.
# If we choose "adefadda", we are left with "ccc" which is the only one that doesn't overlap,
# thus obtaining 2 substrings. Notice also, that it's not optimal to choose "ef"
# since it can be split into two. Therefore, the optimal way is to choose ["e","f","ccc"]
# which gives us 3 substrings. No other solution of the same number of substrings exist.
# Example 2:
# Input: s = "abbaccd"
# Output: ["d","bb","cc"]
# Explanation: Notice that while the set of substrings ["d","abba","cc"] also has length 3,
# it's considered incorrect since it has larger total length.
# Constraints:
# 1 <= s.length <= 10^5
# s contains only lowercase English letters.
# https://leetcode-cn.com/problems/maximum-number-of-non-overlapping-substrings/solution/zui-duo-de-bu-zhong-die-zi-zi-fu-chuan-by-leetcode/
class Seg:
def __init__(self, left=-1, right=-1):
self.left = left
self.right = right
def __lt__(self, rhs):
return self.left > rhs.left if self.right == rhs.right else self.right < rhs.right
class Solution(object):
def maxNumOfSubstrings(self, s):
"""
:type s: str
:rtype: List[str]
"""
seg = [Seg() for _ in range(26)]
# 预处理左右端点
for i in range(len(s)):
charIdx = ord(s[i]) - ord('a')
if seg[charIdx].left == -1:
seg[charIdx].left = seg[charIdx].right = i
else:
seg[charIdx].right = i
for i in range(26):
if seg[i].left != -1:
j = seg[i].left
while j <= seg[i].right:
charIdx = ord(s[j]) - ord('a')
if seg[i].left <= seg[charIdx].left and seg[charIdx].right <= seg[i].right:
pass
else:
seg[i].left = min(seg[i].left, seg[charIdx].left)
seg[i].right = max(seg[i].right, seg[charIdx].right)
j = seg[i].left
j += 1
# 贪心选取
seg.sort()
res = []
end = -1
for segment in seg:
left, right = segment.left, segment.right
if left == -1:
continue
if end == -1 or left > end:
end = right
res.append(s[left:right+1])
return res
|
class Solution:
def maxSubArray(self, nums: List[int]) -> int:
maxSub = nums[0]
cur_sum = 0
for num in nums:
if cur_sum < 0:
cur_sum = 0
cur_sum += num
maxSub = max(maxSub, cur_sum)
print(maxSub)
return maxSub
|
# apis_v1/documentation_source/office_retrieve_doc.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-
def office_retrieve_doc_template_values(url_root):
"""
Show documentation about officeRetrieve
"""
required_query_parameter_list = [
{
'name': 'voter_device_id',
'value': 'string', # boolean, integer, long, string
'description': 'An 88 character unique identifier linked to a voter record on the server',
},
{
'name': 'api_key',
'value': 'string (from post, cookie, or get (in that order))', # boolean, integer, long, string
'description': 'The unique key provided to any organization using the WeVoteServer APIs',
},
{
'name': 'office_id',
'value': 'integer', # boolean, integer, long, string
'description': 'The unique internal identifier for this office '
'(either office_id OR office_we_vote_id required -- not both. '
'If it exists, office_id is used instead of office_we_vote_id)',
},
{
'name': 'office_we_vote_id',
'value': 'integer', # boolean, integer, long, string
'description': 'The unique identifier for this office across all networks '
'(either office_id OR office_we_vote_id required -- not both.) NOTE: In the future we '
'might support other identifiers used in the industry.',
},
]
optional_query_parameter_list = [
]
potential_status_codes_list = [
{
'code': 'VALID_VOTER_DEVICE_ID_MISSING',
'description': 'Cannot proceed. A valid voter_device_id parameter was not included.',
},
{
'code': 'VALID_VOTER_ID_MISSING',
'description': 'Cannot proceed. A valid voter_id was not found.',
},
]
try_now_link_variables_dict = {
'office_we_vote_id': 'wv01off922',
}
api_response = '{\n' \
' "status": string,\n' \
' "success": boolean,\n' \
' "voter_device_id": string (88 characters long),\n' \
' "kind_of_ballot_item": string (CANDIDATE, MEASURE),\n' \
' "id": integer,\n' \
' "we_vote_id": string,\n' \
' "google_civic_election_id": integer,\n' \
' "ballot_item_display_name": string,\n' \
' "ocd_division_id": string,\n' \
' "maplight_id": string,\n' \
' "ballotpedia_id": string,\n' \
' "wikipedia_id": string,\n' \
' "number_voting_for": integer,\n' \
' "number_elected": integer,\n' \
' "state_code": string,\n' \
' "primary_party": string,\n' \
' "district_name": string,\n' \
'}'
template_values = {
'api_name': 'officeRetrieve',
'api_slug': 'officeRetrieve',
'api_introduction':
"Retrieve detailed information about one office.",
'try_now_link': 'apis_v1:officeRetrieveView',
'try_now_link_variables_dict': try_now_link_variables_dict,
'url_root': url_root,
'get_or_post': 'GET',
'required_query_parameter_list': required_query_parameter_list,
'optional_query_parameter_list': optional_query_parameter_list,
'api_response': api_response,
'api_response_notes':
"",
'potential_status_codes_list': potential_status_codes_list,
}
return template_values
|
#!/usr/bin/env python
try:
x = (1 / 0)
print (x)
except ZeroDivisionError:
print('Erro ao tentar dividir por zero.')
|
USD = "米ドル"
EUR = "ユーロ"
CAD = "カナダ・ドル"
GBP = "英ポンド"
CHF = "スイス・フラン"
DKK = "デンマーク・クローネ"
NOK = "ノルウェー・クローネ"
SEK = "スウェーデン・クローネ"
AUD = "オーストラリア・ドル"
NZD = "ニュージーランド・ドル"
HKD = "香港ドル"
MYR = "マレーシア・リンギット"
SGD = "シンガポール・ドル"
SAR = "サウジ・リアル"
AED = "UAEディルハム"
CNH = "中国・人民元"
THB = "タイ・バーツ"
INR = "インド・ルピー"
PKR = "パキスタン・ルピー"
KWD = "クウェート・ディナール"
QAR = "カタール・リヤル"
IDR = "インドネシア・ルピア"
MXN = "メキシコ・ペソ"
KRW = "韓国ウォン"
PHP = "フィリピン・ペソ"
ZAR = "南アフリカ・ランド"
CZK = "チェコ・コルナ"
RUB = "ロシア・ルーブル"
HUF = "ハンガリー・フォリント"
PLN = "ポーランド・ズロチ"
|
#!/usr/bin/env python
# coding=utf-8
################################################################################
# sdk错误码
################################################################################
class CosErr(object):
PARAMS_ERROR = -1 # 参数错误
NETWORK_ERROR = -2 # 网络错误
SERVER_ERROR = -3 # server端返回错误
UNKNOWN_ERROR = -4 # 未知错误
@classmethod
def get_err_msg(cls, errcode, err_info):
err_msg = {}
err_msg[u'code'] = errcode
err_msg[u'message'] = err_info
return err_msg
|
# 1. ------------------------------------
def logistic_map(x, r):
return r * x * (1 - x)
# 2. ------------------------------------
initial_condition = 0.5
t_final = 10
r = 1.0
trajectory = [initial_condition]
for t in range(1, t_final):
trajectory[t] = logistic_map(trajectory[t-1], r)
# 3. -----------------------------------
def iterate(initial_condition, t_final, r):
trajectory = [initial_condition]
for t in range(1, t_final):
trajectory[t] = logistic_map(trajectory[t-1], r)
return trajectory |
#
# PySNMP MIB module REPEATER-REV4-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/REPEATER-REV4-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:44:24 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")
ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint")
repeaterRev4, = mibBuilder.importSymbols("CTRON-MIB-NAMES", "repeaterRev4")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, TimeTicks, Counter32, Integer32, Counter64, NotificationType, ObjectIdentity, iso, MibIdentifier, ModuleIdentity, Unsigned32, Bits, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "TimeTicks", "Counter32", "Integer32", "Counter64", "NotificationType", "ObjectIdentity", "iso", "MibIdentifier", "ModuleIdentity", "Unsigned32", "Bits", "Gauge32")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
repeaterrev4 = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4))
rptr = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1))
rptrMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 1))
rptrMgmtName = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrMgmtName.setStatus('mandatory')
if mibBuilder.loadTexts: rptrMgmtName.setDescription('The ASCII name assigned to this network.')
rptrMgmtPortCount = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrMgmtPortCount.setStatus('mandatory')
if mibBuilder.loadTexts: rptrMgmtPortCount.setDescription('Total number of ports residing on this lan segment.')
rptrMgmtPortsEnable = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noEnable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrMgmtPortsEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrMgmtPortsEnable.setDescription('Setting this object to Enable will cause all the ports residing in this network segment to be enabled. Setting this object to noEnable will have no effect. When read this object will always return noEnable.')
rptrMgmtPortsOn = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrMgmtPortsOn.setStatus('mandatory')
if mibBuilder.loadTexts: rptrMgmtPortsOn.setDescription('Get the total number of ON ports in this network.')
rptrMgmtPortsOper = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrMgmtPortsOper.setStatus('mandatory')
if mibBuilder.loadTexts: rptrMgmtPortsOper.setDescription('Get the number of operational ports in this network.')
rptrMgmtBoardMap = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrMgmtBoardMap.setStatus('mandatory')
if mibBuilder.loadTexts: rptrMgmtBoardMap.setDescription('Get a map of the chassis slots occupied by the boards in this network.')
rptrMgmtInterfaceNum = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrMgmtInterfaceNum.setStatus('mandatory')
if mibBuilder.loadTexts: rptrMgmtInterfaceNum.setDescription('Get the MIBII interface number of this network. A return of zero will mean this network is not associated with a MIBII interface.')
rptrMgmtResetCounters = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("reseStaticCounters", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrMgmtResetCounters.setStatus('mandatory')
if mibBuilder.loadTexts: rptrMgmtResetCounters.setDescription("Setting this OID to 2 will reset the 'rptrPktStats', 'rptrProtocols' and 'rptrFrameSizes' RREV-4 branch static counters. Reading this OID will always return a 1.")
rptrStats = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2))
rptrPktStats = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 1))
rptrPktStatsPackets = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPktStatsPackets.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPktStatsPackets.setDescription("Get this repeater's total received packets.")
rptrPktStatsBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPktStatsBytes.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPktStatsBytes.setDescription("Get this repeater's total received bytes.")
rptrPktStatsColls = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPktStatsColls.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPktStatsColls.setDescription("Get this repeater's total collisions.")
rptrPktStatsErrors = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPktStatsErrors.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPktStatsErrors.setDescription("Get this repeater's total errors.")
rptrPktStatsAlign = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPktStatsAlign.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPktStatsAlign.setDescription("Get this repeater's total frame alignment errors.")
rptrPktStatsCRC = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPktStatsCRC.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPktStatsCRC.setDescription("Get this repeater's total CRC errors.")
rptrPktStatsOOW = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPktStatsOOW.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPktStatsOOW.setDescription("Get this repeater's total out-of-window collisions.")
rptrPktStatsNoRsc = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPktStatsNoRsc.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPktStatsNoRsc.setDescription('This counter is the number of packets on this network that the hardware has processed that the management has either not seen yet, in the case of an active network, or has missed missed all together, in the case of a once active network.')
rptrPktStatsBroadcasts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPktStatsBroadcasts.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPktStatsBroadcasts.setDescription('This counter is the number of broadcast packets on this network that the hardware has processed.')
rptrPktStatsMulticasts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPktStatsMulticasts.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPktStatsMulticasts.setDescription('This counter is the number of multicast packets on this network that the hardware has processed.')
rptrProtocols = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 2))
rptrProtocolsOSI = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 2, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrProtocolsOSI.setStatus('mandatory')
if mibBuilder.loadTexts: rptrProtocolsOSI.setDescription("Get this repeater's total received OSI packets.")
rptrProtocolsNovell = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 2, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrProtocolsNovell.setStatus('mandatory')
if mibBuilder.loadTexts: rptrProtocolsNovell.setDescription("Get this repeater's total received Novell packets.")
rptrProtocolsBanyan = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 2, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrProtocolsBanyan.setStatus('mandatory')
if mibBuilder.loadTexts: rptrProtocolsBanyan.setDescription("Get this repeater's total received Banyan packets.")
rptrProtocolsDECNet = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 2, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrProtocolsDECNet.setStatus('mandatory')
if mibBuilder.loadTexts: rptrProtocolsDECNet.setDescription("Get this repeater's total received DECNet packets.")
rptrProtocolsXNS = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 2, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrProtocolsXNS.setStatus('mandatory')
if mibBuilder.loadTexts: rptrProtocolsXNS.setDescription("Get this repeater's total received XNS packets.")
rptrProtocolsIP = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 2, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrProtocolsIP.setStatus('mandatory')
if mibBuilder.loadTexts: rptrProtocolsIP.setDescription("Get this repeater's total received TCP/IP packets.")
rptrProtocolsCtron = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 2, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrProtocolsCtron.setStatus('mandatory')
if mibBuilder.loadTexts: rptrProtocolsCtron.setDescription("Get this repeater's total received CTRON Management packets.")
rptrProtocolsAppletalk = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 2, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrProtocolsAppletalk.setStatus('mandatory')
if mibBuilder.loadTexts: rptrProtocolsAppletalk.setDescription("Get this repeater's total received Appletalk packets.")
rptrProtocolsOther = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 2, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrProtocolsOther.setStatus('mandatory')
if mibBuilder.loadTexts: rptrProtocolsOther.setDescription("Get this repeater's total received unknown protocol packets.")
rptrFrameSizes = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 3))
rptrFrameSzRunt = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 3, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrFrameSzRunt.setStatus('mandatory')
if mibBuilder.loadTexts: rptrFrameSzRunt.setDescription("Get this repeater's total received packets of size less than 64 bytes.")
rptrFrameSz64To127 = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 3, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrFrameSz64To127.setStatus('mandatory')
if mibBuilder.loadTexts: rptrFrameSz64To127.setDescription("Get this repeater's total received packets of size between 64 and 127 bytes.")
rptrFrameSz128To255 = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 3, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrFrameSz128To255.setStatus('mandatory')
if mibBuilder.loadTexts: rptrFrameSz128To255.setDescription("Get this repeater's total received packets of size between 128 and 255 bytes.")
rptrFrameSz256To511 = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 3, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrFrameSz256To511.setStatus('mandatory')
if mibBuilder.loadTexts: rptrFrameSz256To511.setDescription("Get this repeater's total received packets of size between 256 and 511 bytes.")
rptrFrameSz512To1023 = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 3, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrFrameSz512To1023.setStatus('mandatory')
if mibBuilder.loadTexts: rptrFrameSz512To1023.setDescription("Get this repeater's total received packets of size between 512 and 1023 bytes.")
rptrFrameSz1024To1518 = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 3, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrFrameSz1024To1518.setStatus('mandatory')
if mibBuilder.loadTexts: rptrFrameSz1024To1518.setDescription("Get this repeater's total received packets of size between 1024 and 1518 bytes.")
rptrFrameSzGiant = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 2, 3, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrFrameSzGiant.setStatus('mandatory')
if mibBuilder.loadTexts: rptrFrameSzGiant.setDescription("Get this repeater's total received packets of size greater than 1518 bytes.")
rptrAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 3))
rptrAlarmsTrafEnable = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrAlarmsTrafEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrAlarmsTrafEnable.setDescription('Get returns whether traffic alarms are enabled/disabled. Set allows for enabling/disabling of traffic alarms.')
rptrAlarmsTrafThreshold = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 3, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrAlarmsTrafThreshold.setStatus('mandatory')
if mibBuilder.loadTexts: rptrAlarmsTrafThreshold.setDescription('The maximum number of packets that will be allowed before an alarm is generated.')
rptrAlarmsCollEnable = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrAlarmsCollEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrAlarmsCollEnable.setDescription('Get returns whether collision alarms are enabled/disabled. Set allows for enabling/disabling of collision alarms.')
rptrAlarmsCollThreshold = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 3, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrAlarmsCollThreshold.setStatus('mandatory')
if mibBuilder.loadTexts: rptrAlarmsCollThreshold.setDescription('The collision threshold is the maximum number of collisions within the time base that will be allowed before an alarm is generated.')
rptrAlarmsErrEnable = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 3, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrAlarmsErrEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrAlarmsErrEnable.setDescription('Get returns whether error alarms are enabled/disabled. Set allows for enabling/disabling of error alarms.')
rptrAlarmsErrThreshold = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 3, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrAlarmsErrThreshold.setStatus('mandatory')
if mibBuilder.loadTexts: rptrAlarmsErrThreshold.setDescription('The percentage of errors per good packet within the timebase that will cause an alarm. The units of this value is in seconds.')
rptrAlarmsErrSource = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 3, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrAlarmsErrSource.setStatus('mandatory')
if mibBuilder.loadTexts: rptrAlarmsErrSource.setDescription('Get/Set a bit encoded map of which errors to include in the error sum, as follows: CRC_errors - Bit 0 - Least Significant Bit runts - Bit 1 OOW_colls - Bit 2 align_errs - Bit 3 undefined - Bit 4 Giants - Bit 5')
rptrAlarmsAlarmTimebase = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 3, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 999999))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrAlarmsAlarmTimebase.setStatus('mandatory')
if mibBuilder.loadTexts: rptrAlarmsAlarmTimebase.setDescription('The alarm timebase, in seconds.')
rptrAlarmsBroadEnable = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 3, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrAlarmsBroadEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrAlarmsBroadEnable.setDescription('Get returns whether broadcast alarms are enabled/disabled. Set allows for enabling/disabling of broadcast alarms.')
rptrAlarmsBroadThreshold = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 3, 10), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrAlarmsBroadThreshold.setStatus('mandatory')
if mibBuilder.loadTexts: rptrAlarmsBroadThreshold.setDescription('The broadcase threshold represents the maximum number of broadcasts that are allowed during the time base before an alarm is generated.')
rptrRedundancy = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4))
rptrRedund = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 1))
rptrRedundReset = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noReset", 1), ("reset", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrRedundReset.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundReset.setDescription('If this object is set to Reset it will cause a reset of the redundancy object to occur. Setting this object to NoReset will do nothing. This object will always be read as NoReset.')
rptrRedundPollInterval = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrRedundPollInterval.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundPollInterval.setDescription('Get/Set the number of seconds between polls for redundancy.')
rptrRedundTestTOD = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrRedundTestTOD.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundTestTOD.setDescription('Get/Set the time of day at which the redundant circuits will be tested. The format of the time string is hh:mm:ss.')
rptrRedundPerformTest = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noTest", 1), ("test", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrRedundPerformTest.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundPerformTest.setDescription('If this object is set to Test it will cause a test of the redundant circuits to be performed. Setting this object to NoTest will have no effect. When read this object will always return NoTest.')
rptrRedundMaxCrcts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrRedundMaxCrcts.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundMaxCrcts.setDescription('Returns the maximum number of circuits which may exist on this network.')
rptrRedundCrctTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 2), )
if mibBuilder.loadTexts: rptrRedundCrctTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundCrctTable.setDescription('A list of redundant circuit objects for this repeater.')
rptrRedundCrctEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 2, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrRedundCrctId"))
if mibBuilder.loadTexts: rptrRedundCrctEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundCrctEntry.setDescription('A list of objects for a particular redundant circuit.')
rptrRedundCrctId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrRedundCrctId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundCrctId.setDescription('Returns the index for a member circuit in the table of redundant circuits.')
rptrRedundCrctName = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 2, 1, 2), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrRedundCrctName.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundCrctName.setDescription('Get/Set the name of the indicated circuit.')
rptrRedundCrctRetrys = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 2, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrRedundCrctRetrys.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundCrctRetrys.setDescription('Get/Set the the number of unanswered polls allowed for the circuit.')
rptrRedundCrctNumBPs = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrRedundCrctNumBPs.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundCrctNumBPs.setDescription('Get the number of board/port combinations associated with the circuit.')
rptrRedundCrctNumAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 2, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrRedundCrctNumAddr.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundCrctNumAddr.setDescription('Get the number of IP Addresses associated with the circuit.')
rptrRedundCrctAddAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 2, 1, 6), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrRedundCrctAddAddr.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundCrctAddAddr.setDescription('Add an IP Address to the polling list for the indicated circuit.')
rptrRedundCrctDelAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 2, 1, 7), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrRedundCrctDelAddr.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundCrctDelAddr.setDescription('Delete an IP Address from the polling list of the indicated circuit.')
rptrRedundCrctEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrRedundCrctEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundCrctEnable.setDescription('If this object is set to Enable, the circuit is enabled. If this object is set to Disable, the circuit is disbabled. When read, this object returns the state of the object based on the last request made.')
rptrRedundCrctReset = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noReset", 1), ("reset", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrRedundCrctReset.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundCrctReset.setDescription("If this object is set to Reset, the circuit is reset. All of the circuit's associated boards and ports are returned to NOT_USED, any associated IP Addresses are purged from the circuit's address list, the name is cleared, and the retry count is reset to a default value. Setting this object to NoReset has no effect. When read, NoReset is always returned.")
rptrRedundPortTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 3), )
if mibBuilder.loadTexts: rptrRedundPortTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundPortTable.setDescription('A list of redundant port objects for this repeater.')
rptrRedundPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 3, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrRedundPortCrctId"), (0, "REPEATER-REV4-MIB", "rptrRedundPortId"))
if mibBuilder.loadTexts: rptrRedundPortEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundPortEntry.setDescription('A redundant port entry containing objects pertaining to a particular redundant port.')
rptrRedundPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrRedundPortId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundPortId.setDescription('A unique value identifying an element in a sequence of member ports which belong to a circuit in the table of redundant circuits. This value is not a port number; rather it is a value which goes from 1 to the maximum number of ports which may be included in a redundant circuit.')
rptrRedundPortCrctId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 3, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrRedundPortCrctId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundPortCrctId.setDescription('A unique value identifying a member circuit in the table of redundant circuits. This value is similar to rptrRedundCrctId.')
rptrRedundPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrRedundPortNum.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundPortNum.setDescription('Returns the port number of a member port belonging to a redundant circuit.')
rptrRedundPortBoardNum = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 3, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrRedundPortBoardNum.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundPortBoardNum.setDescription('Returns the board number of a member port belonging to a redundant circuit.')
rptrRedundPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notUsed", 1), ("primary", 2), ("backup", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrRedundPortType.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundPortType.setDescription('Return the state of a port associated with the indicated circuit.')
rptrRedundAddrTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 4), )
if mibBuilder.loadTexts: rptrRedundAddrTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundAddrTable.setDescription('A list of redundant IP Address objects which belong to a circuit for this repeater.')
rptrRedundAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 4, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrRedundAddrCrctId"), (0, "REPEATER-REV4-MIB", "rptrRedundAddrId"))
if mibBuilder.loadTexts: rptrRedundAddrEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundAddrEntry.setDescription('A entry containing objects pertaining to a particular redundant IP Address which belongs to a circuit.')
rptrRedundAddrId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrRedundAddrId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundAddrId.setDescription('A unique value identifying an element in a sequence of member IP Addresses which belong to a circuit in the table of redundant circuits. This value goes from 1 to the maximum number of IP Addresses which may be included in a redundant circuit.')
rptrRedundAddrCrctId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 4, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrRedundAddrCrctId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundAddrCrctId.setDescription('A unique value identifying a member circuit in the table of redundant circuits. This value is similar to rptrRedundCrctId.')
rptrRedundAddrIPAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 4, 4, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrRedundAddrIPAddr.setStatus('mandatory')
if mibBuilder.loadTexts: rptrRedundAddrIPAddr.setDescription('Returns an IP Address associated with the indicated circuit.')
rptrSourceAddress = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5))
rptrSrcAddrListTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5, 1), )
if mibBuilder.loadTexts: rptrSrcAddrListTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSrcAddrListTable.setDescription('This table defines the source address list that is defined at the repeater level.')
rptrSrcAddrListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5, 1, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrSrcAddrListId"))
if mibBuilder.loadTexts: rptrSrcAddrListEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSrcAddrListEntry.setDescription('Defines a specific source address object.')
rptrSrcAddrListId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrSrcAddrListId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSrcAddrListId.setDescription('Returns an index into a table of source address seen by this repeater.')
rptrSrcAddrAddressList = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrSrcAddrAddressList.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSrcAddrAddressList.setDescription('Returns a source address seen by this repeater.')
rptrSrcAddrSrcTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5, 2), )
if mibBuilder.loadTexts: rptrSrcAddrSrcTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSrcAddrSrcTable.setDescription('This table defines the list of all source addresses that have been seen.')
rptrSrcAddrSrcTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5, 2, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrSrcAddrSrcTableEntryId"))
if mibBuilder.loadTexts: rptrSrcAddrSrcTableEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSrcAddrSrcTableEntry.setDescription('Describes a particular source address source entry.')
rptrSrcAddrSrcTableEntryId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5, 2, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrSrcAddrSrcTableEntryId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSrcAddrSrcTableEntryId.setDescription("Returns the source address to which this table's information pertains.")
rptrSrcAddrSrcTableEntryPort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrSrcAddrSrcTableEntryPort.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSrcAddrSrcTableEntryPort.setDescription('Returns the port# of the port that sourced the source address.')
rptrSrcAddrSrcTableEntryPortGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrSrcAddrSrcTableEntryPortGroup.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSrcAddrSrcTableEntryPortGroup.setDescription('Returns the port group# of the port that sourced the source address.')
rptrSrcAddrMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5, 3))
rptrSrcAddrMgmtSrcAgeInterval = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5, 3, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrSrcAddrMgmtSrcAgeInterval.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSrcAddrMgmtSrcAgeInterval.setDescription('Get/Set source addressing ageing interval.')
rptrSrcAddrMgmtPortLock = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unlock", 1), ("lock", 2), ("portMisMatch", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrSrcAddrMgmtPortLock.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSrcAddrMgmtPortLock.setDescription('Setting this object to Lock will activate the network port security lock. Setting a value of portMisMatch(3) is invalid. A value of portMisMatch(3) reflects that not all ports are at the same value.')
rptrSrcAddrMgmtActiveUsers = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5, 3, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrSrcAddrMgmtActiveUsers.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSrcAddrMgmtActiveUsers.setDescription('Get the number of active users on this network.')
rptrSrcAddrMgmtHashType = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 5, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noDecHash", 1), ("decHash", 2))).clone('noDecHash')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrSrcAddrMgmtHashType.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSrcAddrMgmtHashType.setDescription('Defines the type of hashing that will be used for source address management. In a DEC-NET environment or a combination fo DEC-NET and non DEC-NET users where source address hash access is a concern a value of decHash(2) may yield better results. For non DEC-NET users a value of noDecHash(1) is preferred.')
rptrTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 6))
rptrHwTrapSet = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 6, 1))
rptrSaTrapSet = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 6, 2))
rptrHwTrapSetLink = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 6, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2), ("other", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrHwTrapSetLink.setStatus('mandatory')
if mibBuilder.loadTexts: rptrHwTrapSetLink.setDescription('Enables and disables link traps for this network. Setting a value of disable(1) is equivalent to setting all instances of rptrPortHwTrapSetLink to a value of disable(1). Setting a value of enable(2) is equivalent to setting all instances of rptrPortHwTrapSetLink to a value of disable(2). Setting a value of other(3) is not allowed. This object will read with the value of disable(1) if all instances of rptrPortHwTrapSetLink for this network are currently set to a value of disable(1). This object will read with the value of enable(2) if all instances of rptrPortHwTrapSetLink for this network are currently set to a value of enable(2). This object will read with the value of other(3) if all instances of rptrPortHwTrapSetLink for this network are not currently set to a value the same value.')
rptrHwTrapSetSeg = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2), ("other", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrHwTrapSetSeg.setStatus('mandatory')
if mibBuilder.loadTexts: rptrHwTrapSetSeg.setDescription('Enables and disables segmentation traps for this network. Setting a value of disable(1) is equivalent to setting all instances of rptrPortHwTrapSetSeg to a value of disable(1). Setting a value of enable(2) is equivalent to setting all instances of rptrPortHwTrapSetSeg to a value of disable(2). Setting a value of other(3) is not allowed. This object will read with the value of disable(1) if all instances of rptrPortHwTrapSetSeg for this network are currently set to a value of disable(1). This object will read with the value of enable(2) if all instances of rptrPortHwTrapSetSeg for this network are currently set to a value of enable(2). This object will read with the value of other(3) if all instances of rptrPortHwTrapSetSeg for this network are not currently set to a value the same value.')
rptrSaTrapSetSrcaddr = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 6, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2), ("other", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrSaTrapSetSrcaddr.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSaTrapSetSrcaddr.setDescription('Enables and disables source address traps for this network. Setting a value of disable(1) is equivalent to setting all instances of rptrPortSaTrapSetSrcaddr to a value of disable(1). Setting a value of enable(2) is equivalent to setting all instances of rptrPortSaTrapSetSrcaddr to a value of disable(2). Setting a value of other(3) is not allowed. This object will read with the value of disable(1) if all instances of rptrPortSaTrapSetSrcaddr for this network are currently set to a value of disable(1). This object will read with the value of enable(2) if all instances of rptrPortSaTrapSetSrcaddr for this network are currently set to a value of enable(2). This object will read with the value of other(3) if all instances of rptrPortSaTrapSetSrcaddr for this network are not currently set to a value the same value.')
rptrSaSecurity = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 7))
rptrSecurityLockState = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 7, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unlock", 1), ("lock", 2), ("portMisMatch", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrSecurityLockState.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSecurityLockState.setDescription('Setting this object to Lock will activate the network port security lock. Setting a value of portMisMatch(3) is invalid. A value of portMisMatch(3) reflects that not all ports are at the same value.')
rptrSecuritySecureState = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 7, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("secure", 1), ("nonSecure", 2), ("portMisMatch", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrSecuritySecureState.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSecuritySecureState.setDescription('The status of source address security of the network. Ports on the network that are secure(1), can be locked in order to enable security. nonSecure(2) ports cannot be locked. Setting a value of portMisMatch(3) is invalid. A value of portMisMatch(3) reflects that not all ports are at the same value.')
rptrSecurityLearnState = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 7, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("learn", 1), ("noLearn", 2), ("portMisMatch", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrSecurityLearnState.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSecurityLearnState.setDescription('The learn state of the network. This object will only be applied to ports that are unlocked. If set to learn(1), all addresses are deleted on the ports and learning begins once again. If it is set to noLearn(2), learning stops on the port. Setting a value of portMisMatch(3) is invalid. A value of portMisMatch(3) reflects that not all ports are at the same value.')
rptrSecurityLearnMode = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 1, 7, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("oneTime", 1), ("continuous", 2), ("portMisMatch", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrSecurityLearnMode.setStatus('mandatory')
if mibBuilder.loadTexts: rptrSecurityLearnMode.setDescription('Get/Set the learn mode of the network. If set to onetime learn mode oneTime(1), each port is capable of learning two addresses and securing on both destination and source addresses once they are locked. If set to continuous learn continuous(2), all addresses are initially deleted and each port continuously replaces the existing secure source address with the latest source address it sees. Setting a value of portMisMatch(3) is invalid. A value of portMisMatch(3) reflects that not all ports are at the same value.')
rptrPortGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2))
rptrPortGrpMgmtTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 1), )
if mibBuilder.loadTexts: rptrPortGrpMgmtTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpMgmtTable.setDescription('A list of port management objects for this repeater node.')
rptrPortGrpMgmtEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 1, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortGrpMgmtGrpId"))
if mibBuilder.loadTexts: rptrPortGrpMgmtEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpMgmtEntry.setDescription('An entry containing objects pertaining to port management for a port group.')
rptrPortGrpMgmtGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpMgmtGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpMgmtGrpId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortGrpMgmtName = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpMgmtName.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpMgmtName.setDescription('Gets/Sets a name for the specified port group.')
rptrPortGrpMgmtPortCount = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpMgmtPortCount.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpMgmtPortCount.setDescription('Get total number of ports contained on the board. Notice that this is the physical port count.')
rptrPortGrpMgmtPortsEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noEnable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpMgmtPortsEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpMgmtPortsEnable.setDescription('Setting this object to Enable will cause all the ports residing in this network segment to be enabled. Setting this object to noEnable will have no effect. When read this object will always return noEnable.')
rptrPortGrpMgmtPortsOn = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpMgmtPortsOn.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpMgmtPortsOn.setDescription('Get total number of ON ports in this port group.')
rptrPortGrpMgmtPortsOper = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpMgmtPortsOper.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpMgmtPortsOper.setDescription('Get total number of operational ports in the port group.')
rptrPortGrpMgmtLogPortCount = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpMgmtLogPortCount.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpMgmtLogPortCount.setDescription('Get total number of ports contained in this port group.')
rptrPortGrpStats = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2))
rptrPortGrpPktStatsTbl = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 1), )
if mibBuilder.loadTexts: rptrPortGrpPktStatsTbl.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpPktStatsTbl.setDescription('This table provides packet statistics for port group.')
rptrPortGrpPktStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 1, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortGrpPktStatsId"))
if mibBuilder.loadTexts: rptrPortGrpPktStatsEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpPktStatsEntry.setDescription('Defines a specific packet statistics entry.')
rptrPortGrpPktStatsId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpPktStatsId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpPktStatsId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortGrpPktStatsPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 1, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpPktStatsPkts.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpPktStatsPkts.setDescription("Return this port group's total received packets.")
rptrPortGrpPktStatsBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpPktStatsBytes.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpPktStatsBytes.setDescription("Return this port group's total received bytes.")
rptrPortGrpPktStatsColls = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpPktStatsColls.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpPktStatsColls.setDescription("Return this port group's total collisions.")
rptrPortGrpPktStatsErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpPktStatsErrors.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpPktStatsErrors.setDescription("Return this port group's total errors.")
rptrPortGrpPktStatsAlign = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpPktStatsAlign.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpPktStatsAlign.setDescription("Return this port group's total frame alignment errors.")
rptrPortGrpPktStatsCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpPktStatsCRC.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpPktStatsCRC.setDescription("Return this port group's total CRC errors.")
rptrPortGrpPktStatsOOW = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpPktStatsOOW.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpPktStatsOOW.setDescription("Return this port group's total out-of-window collisions.")
rptrPortGrpPktStatsBroadcasts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpPktStatsBroadcasts.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpPktStatsBroadcasts.setDescription("Return this port group's total received broadcast packets.")
rptrPortGrpPktStatsMulticasts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpPktStatsMulticasts.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpPktStatsMulticasts.setDescription("Return this port group's total received multicast packets.")
rptrPortGrpProtocolTbl = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 2), )
if mibBuilder.loadTexts: rptrPortGrpProtocolTbl.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpProtocolTbl.setDescription('Provides port group protocol statistics.')
rptrPortGrpProtocolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 2, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortGrpProtocolId"))
if mibBuilder.loadTexts: rptrPortGrpProtocolEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpProtocolEntry.setDescription('Defines a specific port group protocol statistics entry.')
rptrPortGrpProtocolId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpProtocolId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpProtocolId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortGrpProtocolOSI = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 2, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpProtocolOSI.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpProtocolOSI.setDescription("Return this port group's total received OSI packets.")
rptrPortGrpProtocolNovell = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 2, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpProtocolNovell.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpProtocolNovell.setDescription("Return this port group's total received Novell packets.")
rptrPortGrpProtocolBanyan = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpProtocolBanyan.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpProtocolBanyan.setDescription("Return this port group's total received Banyan packets.")
rptrPortGrpProtocolDECNet = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpProtocolDECNet.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpProtocolDECNet.setDescription("Return this port group's total received DECNet packets.")
rptrPortGrpProtocolXNS = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpProtocolXNS.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpProtocolXNS.setDescription("Return this port group's total received XNS packets.")
rptrPortGrpProtocolIP = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpProtocolIP.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpProtocolIP.setDescription("Return this port group's total received TCP/IP packets.")
rptrPortGrpProtocolCtron = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpProtocolCtron.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpProtocolCtron.setDescription("Return this port group's total received CTRON Management packets.")
rptrPortGrpProtocolAppletalk = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpProtocolAppletalk.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpProtocolAppletalk.setDescription("Return this port group's total received Appletalk packets.")
rptrPortGrpProtocolOther = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpProtocolOther.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpProtocolOther.setDescription("Return this port group's total received unknown protocol packets.")
rptrPortGrpFrameSzTbl = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 3), )
if mibBuilder.loadTexts: rptrPortGrpFrameSzTbl.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpFrameSzTbl.setDescription('Defines frame sizes as seen by this port group.')
rptrPortGrpFrameSzEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 3, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortGrpFrameSzId"))
if mibBuilder.loadTexts: rptrPortGrpFrameSzEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpFrameSzEntry.setDescription('Defines a particular frame size entry.')
rptrPortGrpFrameSzId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpFrameSzId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpFrameSzId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortGrpFrameSzRunt = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 3, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpFrameSzRunt.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpFrameSzRunt.setDescription("Return this port group's total received packets of size less than 64 bytes.")
rptrPortGrpFrameSz64To127 = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 3, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpFrameSz64To127.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpFrameSz64To127.setDescription("Return this port group's total received packets of size between 64 and 127 bytes.")
rptrPortGrpFrameSz128To255 = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 3, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpFrameSz128To255.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpFrameSz128To255.setDescription("Return this port group's total received packets of size between 128 and 255 bytes.")
rptrPortGrpFrameSz256To511 = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 3, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpFrameSz256To511.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpFrameSz256To511.setDescription("Return this port group's total received packets of size between 256 and 511 bytes.")
rptrPortGrpFrameSz512To1023 = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 3, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpFrameSz512To1023.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpFrameSz512To1023.setDescription("Return this port group's total received packets of size between 512 and 1023 bytes.")
rptrPortGrpFrameSz1024To1518 = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 3, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpFrameSz1024To1518.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpFrameSz1024To1518.setDescription("Return this port group's total received packets of size between 1024 and 1518 bytes.")
rptrPortGrpFrameSzGiant = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 2, 3, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpFrameSzGiant.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpFrameSzGiant.setDescription("Return this port group's total received packets of size greater than 1518 bytes.")
rptrPortGrpAlarmTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3), )
if mibBuilder.loadTexts: rptrPortGrpAlarmTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmTable.setDescription('A list of port group alarm objects for this repeater node.')
rptrPortGrpAlarmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortGrpAlarmId"))
if mibBuilder.loadTexts: rptrPortGrpAlarmEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmEntry.setDescription('An entry containing objects pertaining to port group alarms for a port group.')
rptrPortGrpAlarmId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpAlarmId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortGrpAlarmTrafEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpAlarmTrafEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmTrafEnable.setDescription('Get returns whether traffic alarms are enabled/disabled. Set allows for enabling/disabling of traffic alarms.')
rptrPortGrpAlarmTrafThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpAlarmTrafThreshold.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmTrafThreshold.setDescription('The maximum number of packets that will be allowed before an alarm is generated.')
rptrPortGrpAlarmTrafGrpDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpAlarmTrafGrpDisable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmTrafGrpDisable.setDescription('Set will permit a port group to be disabled on a traffic alarm condition. Get will show whether the port group disabling is allowed or not.')
rptrPortGrpAlarmCollEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpAlarmCollEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmCollEnable.setDescription('Get returns whether collision alarms are enabled/disabled. Set allows for enabling/disabling of collision alarms.')
rptrPortGrpAlarmCollThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 999999))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpAlarmCollThreshold.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmCollThreshold.setDescription('The collision threshold is the maximum number of collisions within the time base that will be allowed before an alaram is generated.')
rptrPortGrpAlarmCollBdDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpAlarmCollBdDisable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmCollBdDisable.setDescription('Set will permit a port group to be disabled on a collision alarm condition. Get will show whether the port group disabling is allowed or not.')
rptrPortGrpAlarmErrEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpAlarmErrEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmErrEnable.setDescription('Get returns whether error alarms are enabled/disabled. Set allows for enabling/disabling of error alarms.')
rptrPortGrpAlarmErrThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpAlarmErrThreshold.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmErrThreshold.setDescription('Get/Set the percentage of errors per good packet within the timebase that will cause an alarm.')
rptrPortGrpAlarmErrSource = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1, 10), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpAlarmErrSource.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmErrSource.setDescription('Get/Set a bit encoded map of which errors to include in the error sum, as follows: CRC_errors - Bit 0 - Least Significant Bit runts - Bit 1 OOW_colls - Bit 2 align_errs - Bit 3 undefined - Bit 4 Giants - Bit 5')
rptrPortGrpAlarmErrGrpDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpAlarmErrGrpDisable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmErrGrpDisable.setDescription('Set will permit a port group to be disabled on an error alarm condition. Get will show whether the port group disabling is allowed or not.')
rptrPortGrpAlarmBroadEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpAlarmBroadEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmBroadEnable.setDescription('Get returns whether broadcast alarms are enabled/disabled. Set allows for enabling/disabling of broadcast alarms.')
rptrPortGrpAlarmBroadThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1, 13), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpAlarmBroadThreshold.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmBroadThreshold.setDescription('The broadcase threshold represents the maximum number of broadcasts that are allowed during the time base before an alarm is generated.')
rptrPortGrpAlarmBroadGrpDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 3, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpAlarmBroadGrpDisable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpAlarmBroadGrpDisable.setDescription('Set will permit a port group to be disabled on a broadcast alarm condition. Get will show whether the port group disabling is allowed or not.')
rptrPortGrpSrcAddrTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 4), )
if mibBuilder.loadTexts: rptrPortGrpSrcAddrTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSrcAddrTable.setDescription('This table provides a list of the number of active users that have been seen by port group.')
rptrPortGrpSrcAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 4, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortGrpSrcAddrId"))
if mibBuilder.loadTexts: rptrPortGrpSrcAddrEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSrcAddrEntry.setDescription('Defines a specific active user entry.')
rptrPortGrpSrcAddrId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpSrcAddrId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSrcAddrId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortGrpSrcAddrActiveUsers = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 4, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpSrcAddrActiveUsers.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSrcAddrActiveUsers.setDescription('Returns the total number of active users seen by this port group.')
rptrPortGrpTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 5))
rptrPortGrpHwTrapSet = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 5, 1))
rptrPortGrpSaTrapSet = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 5, 2))
rptrPortGrpHwTrapTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 5, 1, 1), )
if mibBuilder.loadTexts: rptrPortGrpHwTrapTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpHwTrapTable.setDescription('A list of trap enable/disable at the port group level. Disable here is equivalent to disable for each port in the port group.')
rptrPortGrpHwTrapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 5, 1, 1, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortGrpHwTrapSetGrpId"))
if mibBuilder.loadTexts: rptrPortGrpHwTrapEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpHwTrapEntry.setDescription('Individual trap entries for port group enable/disable.')
rptrPortGrpHwTrapSetGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 5, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpHwTrapSetGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpHwTrapSetGrpId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortGrpHwTrapSetLink = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 5, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2), ("other", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpHwTrapSetLink.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpHwTrapSetLink.setDescription('Enables and disables link traps for the specified port group. Setting a value of disable(1) is equivalent to setting all instances of rptrPortHwTrapSetLink to a value of disable(1). Setting a value of enable(2) is equivalent to setting all instances of rptrPortHwTrapSetLink to a value of disable(2). Setting a value of other(3) is not allowed. This object will read with the value of disable(1) if all instances of rptrPortHwTrapSetLink for this port group are currently set to a value of disable(1). This object will read with the value of enable(2) if all instances of rptrPortHwTrapSetLink for this port group are currently set to a value of enable(2). This object will read with the value of other(3) if all instances of rptrPortHwTrapSetLink for this port group are not currently set to a value the same value.')
rptrPortGrpHwTrapSetSeg = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 5, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2), ("other", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpHwTrapSetSeg.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpHwTrapSetSeg.setDescription('Enables and disables segmentation traps for the specified port group. Setting a value of disable(1) is equivalent to setting all instances of rptrPortHwTrapSetSeg to a value of disable(1). Setting a value of enable(2) is equivalent to setting all instances of rptrPortHwTrapSetSeg to a value of disable(2). Setting a value of other(3) is not allowed. This object will read with the value of disable(1) if all instances of rptrPortHwTrapSetSeg for this port group are currently set to a value of disable(1). This object will read with the value of enable(2) if all instances of rptrPortHwTrapSetSeg for this port group are currently set to a value of enable(2). This object will read with the value of other(3) if all instances of rptrPortHwTrapSetSeg for this port group are not currently set to a value the same value.')
rptrPortGrpSaTrapTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 5, 2, 1), )
if mibBuilder.loadTexts: rptrPortGrpSaTrapTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSaTrapTable.setDescription('A list of trap enable/disable at the port group level. Disable here is equivalent to disable for each port in the port group.')
rptrPortGrpSaTrapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 5, 2, 1, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortGrpSaTrapSetGrpId"))
if mibBuilder.loadTexts: rptrPortGrpSaTrapEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSaTrapEntry.setDescription('Individual trap entries for port group enable/disable.')
rptrPortGrpSaTrapSetGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 5, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpSaTrapSetGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSaTrapSetGrpId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortGrpSaTrapSetSrcaddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 5, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2), ("other", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpSaTrapSetSrcaddr.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSaTrapSetSrcaddr.setDescription('Enables and disables source address traps for the specified port group. Setting a value of disable(1) is equivalent to setting all instances of rtprPortSaTrapSetSrcaddr to a value of disable(1). Setting a value of enable(2) is equivalent to setting all instances of rtprPortSaTrapSetSrcaddr to a value of disable(2). Setting a value of other(3) is not allowed. This object will read with the value of disable(1) if all instances of rptrPortSaTrapSetSrcaddr for this port group are currently set to a value of disable(1). This object will read with the value of enable(2) if all instances of rptrPortSaTrapSetSrcaddr for this port group are currently set to a value of enable(2). This object will read with the value of other(3) if all instances of rptrPortSaTrapSetSrcaddr for this port group are not currently set to a value the same value.')
rptrPortGrpSrcAddrLockTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 6), )
if mibBuilder.loadTexts: rptrPortGrpSrcAddrLockTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSrcAddrLockTable.setDescription('This table defines the status of the port group source address security locks.')
rptrPortGrpSrcAddrLockEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 6, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortGrpSrcAddrLockGrpId"))
if mibBuilder.loadTexts: rptrPortGrpSrcAddrLockEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSrcAddrLockEntry.setDescription('DeDefines a status of a particular port group security lock.')
rptrPortGrpSrcAddrLockGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 6, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpSrcAddrLockGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSrcAddrLockGrpId.setDescription('Defines a particular port group for which this source address security lock information pertains.')
rptrPortGrpSrcAddrLock = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unlock", 1), ("lock", 2), ("portMisMatch", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpSrcAddrLock.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSrcAddrLock.setDescription('Allows setting of the security lock status for this port group. unlock(1) - Unlocks the source address lock this group, lock(2) - Locks the source address for this group, Setting a value of portMisMatch(3) is invalid. A value of portMisMatch(3) reflects that not all ports are at the same value.')
rptrPortGrpSASecuritySecureState = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 6, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("secure", 1), ("nonSecure", 2), ("portMisMatch", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortGrpSASecuritySecureState.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSASecuritySecureState.setDescription('The state of the source addressing security for this port group. Ports on the port group that are secure(1), can be locked in order to enable security. When a value of nonSecure(2) is returned ports cannot be locked. Setting a value of portMisMatch(3) is invalid. A value of portMisMatch(3) reflects that not all ports are at the same value.')
rptrPortGrpSASecurityLearnState = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 6, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("learn", 1), ("noLearn", 2), ("portMisMatch", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpSASecurityLearnState.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSASecurityLearnState.setDescription('The learn state of source addressing security for this port group. This object will only be applied to ports that are unlocked. If set to learn(1), all addresses are deleted on the port and learning begins once again. If it is set to noLearn(2), learning stops on the port. Setting a value of portMisMatch(3) is invalid. A value of portMisMatch(3) reflects that not all ports are at the same value.')
rptrPortGrpSASecurityLearnMode = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 2, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("oneTime", 1), ("continuous", 2), ("portMisMatch", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortGrpSASecurityLearnMode.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortGrpSASecurityLearnMode.setDescription('The learn mode of source addressing security port group. If set to oneTime(1), each port is capable of learning two addresses and securing on both destination and source addresses once they are locked. If set to continuous(2), all addresses are initially deleted and each port continuously replaces the existing secure source address with latest source address it sees. Setting a value of portMisMatch(3) is invalid. A value of portMisMatch(3) reflects that not all ports are at the same value.')
rptrPort = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3))
rptrPortMgmtTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 1), )
if mibBuilder.loadTexts: rptrPortMgmtTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortMgmtTable.setDescription('A list of port management objects for this repeater node.')
rptrPortMgmtEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 1, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortMgmtPortGrpId"), (0, "REPEATER-REV4-MIB", "rptrPortMgmtPortId"))
if mibBuilder.loadTexts: rptrPortMgmtEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortMgmtEntry.setDescription('An entry containing objects pertaining to port management for a port.')
rptrPortMgmtPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortMgmtPortId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortMgmtPortId.setDescription('Returns an index to a port for which the information in this table pertains.')
rptrPortMgmtPortGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortMgmtPortGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortMgmtPortGrpId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortMgmtName = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortMgmtName.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortMgmtName.setDescription('Sets/Gets an ASCII name assigned to this port.')
rptrPortMgmtAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortMgmtAdminState.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortMgmtAdminState.setDescription('Setting this object to Enable will cause port to be enabled. Setting this object to Disable will cause the port to be disabled. When read this object will return the state of the object per the last request.')
rptrPortMgmtOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notOperational", 1), ("operational", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortMgmtOperState.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortMgmtOperState.setDescription('Get port operational status.')
rptrPortMgmtPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 1, 1, 6), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortMgmtPortType.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortMgmtPortType.setDescription('Uniquely defines the repeater port type. A authoritative identification for a port type. By convention, this value is allocated within the SMI enterprises subtree (1.3.6.1.4.1), and provides an easy and unambiguous means to determine the type of repeater port.')
rptrPortStats = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2))
rptrPortPktStatsTbl = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 1), )
if mibBuilder.loadTexts: rptrPortPktStatsTbl.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortPktStatsTbl.setDescription('Provides repeater port packet statistics.')
rptrPortPktStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 1, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortPktStatsPortGrpId"), (0, "REPEATER-REV4-MIB", "rptrPortPktStatsPortId"))
if mibBuilder.loadTexts: rptrPortPktStatsEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortPktStatsEntry.setDescription('Provides basic statistics for a specific port.')
rptrPortPktStatsPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortPktStatsPortId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortPktStatsPortId.setDescription('Returns an index to a port for which the information in this table pertains.')
rptrPortPktStatsPortGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortPktStatsPortGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortPktStatsPortGrpId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortPktStatsPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortPktStatsPackets.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortPktStatsPackets.setDescription("Get this port's total received packets.")
rptrPortPktStatsBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortPktStatsBytes.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortPktStatsBytes.setDescription("Get this port's total received bytes.")
rptrPortPktStatsColls = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortPktStatsColls.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortPktStatsColls.setDescription("Get this port's total collisions.")
rptrPortPktStatsErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortPktStatsErrors.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortPktStatsErrors.setDescription("Get this port's total errors.")
rptrPortPktStatsAlign = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortPktStatsAlign.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortPktStatsAlign.setDescription("Get this port's total frame alignment errors.")
rptrPortPktStatsCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortPktStatsCRC.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortPktStatsCRC.setDescription("Get this port's total CRC errors.")
rptrPortPktStatsOOW = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortPktStatsOOW.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortPktStatsOOW.setDescription("Get this port's total out-of-window collisions.")
rptrPortPktStatsBroadcasts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortPktStatsBroadcasts.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortPktStatsBroadcasts.setDescription("Get this port's total received broadcast packets.")
rptrPortPktStatsMulticasts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortPktStatsMulticasts.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortPktStatsMulticasts.setDescription("Get this port's total received multicast packets.")
rptrPortProtocolTbl = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 2), )
if mibBuilder.loadTexts: rptrPortProtocolTbl.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortProtocolTbl.setDescription('Provides statistics about the protocols seen by the different ports.')
rptrPortProtocolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 2, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortProtocolPortGrpId"), (0, "REPEATER-REV4-MIB", "rptrPortProtocolPortId"))
if mibBuilder.loadTexts: rptrPortProtocolEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortProtocolEntry.setDescription('An entry containing objects pertaining to statistics about protocols seen by different ports.')
rptrPortProtocolPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortProtocolPortId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortProtocolPortId.setDescription('Returns an index to a port for which the information in this table pertains.')
rptrPortProtocolPortGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortProtocolPortGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortProtocolPortGrpId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortProtocolOSI = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 2, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortProtocolOSI.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortProtocolOSI.setDescription("Get this port's total received OSI protocol packets.")
rptrPortProtocolNovell = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortProtocolNovell.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortProtocolNovell.setDescription("Get this port's total received Novell protocol packets.")
rptrPortProtocolBanyan = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortProtocolBanyan.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortProtocolBanyan.setDescription("Get this port's total received Banyan protocol packets.")
rptrPortProtocolDECNet = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortProtocolDECNet.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortProtocolDECNet.setDescription("Get this port's total received DECNet protocol packets.")
rptrPortProtocolXNS = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortProtocolXNS.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortProtocolXNS.setDescription("Get this port's total received XNS protocol packets.")
rptrPortProtocolIP = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortProtocolIP.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortProtocolIP.setDescription("Get this port's total received TCP/IP protocol packets.")
rptrPortProtocolCtron = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortProtocolCtron.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortProtocolCtron.setDescription("Get this port's total received CTRON Management protocol packets.")
rptrPortProtocolAppletalk = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortProtocolAppletalk.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortProtocolAppletalk.setDescription("Get this port's total received Appletalk protocol packets.")
rptrPortProtocolOther = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 2, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortProtocolOther.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortProtocolOther.setDescription("Get this port's total received unknown protocol packets.")
rptrPortFrameSzTbl = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 3), )
if mibBuilder.loadTexts: rptrPortFrameSzTbl.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortFrameSzTbl.setDescription('Provides repeater port frame size statistics.')
rptrPortFrameSzEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 3, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortFrameSzPortGrpId"), (0, "REPEATER-REV4-MIB", "rptrPortFrameSzPortId"))
if mibBuilder.loadTexts: rptrPortFrameSzEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortFrameSzEntry.setDescription('Describes a set of frame size statistics for a specific port.')
rptrPortFrameSzPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortFrameSzPortId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortFrameSzPortId.setDescription('Returns an index to a port for which the information in this table pertains.')
rptrPortFrameSzPortGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 3, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortFrameSzPortGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortFrameSzPortGrpId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortFrameSzRunt = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 3, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortFrameSzRunt.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortFrameSzRunt.setDescription("Get this port's total received packets of size less than 64 bytes.")
rptrPortFrameSz64To127 = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 3, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortFrameSz64To127.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortFrameSz64To127.setDescription("Get this port's total received packets of size between 64 and 127 bytes.")
rptrPortFrameSz128To255 = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 3, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortFrameSz128To255.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortFrameSz128To255.setDescription("Get this port's total received packets of size between 128 and 255 bytes.")
rptrPortFrameSz256To511 = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 3, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortFrameSz256To511.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortFrameSz256To511.setDescription("Get this port's total received packets of size between 256 and 511 bytes.")
rptrPortFrameSz512To1023 = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 3, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortFrameSz512To1023.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortFrameSz512To1023.setDescription("Get this port's total received packets of size between 512 and 1023 bytes.")
rptrPortFrameSz1024To1518 = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 3, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortFrameSz1024To1518.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortFrameSz1024To1518.setDescription("Get this port's total received packets of size between 1024 and 1518 bytes.")
rptrPortFrameSzGiant = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 2, 3, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortFrameSzGiant.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortFrameSzGiant.setDescription("Get this port's total received packets of size greater than 1518 bytes.")
rptrPortAlarmTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3), )
if mibBuilder.loadTexts: rptrPortAlarmTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmTable.setDescription('A list of port alarm objects for this repeater node.')
rptrPortAlarmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortAlarmPortGrpId"), (0, "REPEATER-REV4-MIB", "rptrPortAlarmPortId"))
if mibBuilder.loadTexts: rptrPortAlarmEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmEntry.setDescription('An entry containing objects pertaining to port alarm objects for a port group.')
rptrPortAlarmPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortAlarmPortId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmPortId.setDescription('Returns an index to a port for which the information in this table pertains.')
rptrPortAlarmPortGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortAlarmPortGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmPortGrpId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortAlarmTrafEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortAlarmTrafEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmTrafEnable.setDescription('Get returns whether traffic alarms are enabled/disabled. Set allows for enabling/disabling of traffic alarms.')
rptrPortAlarmTrafThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortAlarmTrafThreshold.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmTrafThreshold.setDescription('The maximum number of packets that will be allowed before an alarm is generated.')
rptrPortAlarmTrafPortDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortAlarmTrafPortDisable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmTrafPortDisable.setDescription('Set will permit a port to be disabled on a traffic alarm condition. Get will show whether the port disabling is allowed or not.')
rptrPortAlarmCollEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortAlarmCollEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmCollEnable.setDescription('Get returns whether collision alarms are enabled/disabled. Set allows for enabling/disabling of collision alarms.')
rptrPortAlarmCollThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 999999))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortAlarmCollThreshold.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmCollThreshold.setDescription('The collision threshold is the maximum number of collisions within the time base that will be allowed before an alaram is generated.')
rptrPortAlarmCollPortDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortAlarmCollPortDisable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmCollPortDisable.setDescription('Set will permit a port to be disabled on a collision alarm condition. Get will show whether the port disabling is allowed or not.')
rptrPortAlarmErrEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortAlarmErrEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmErrEnable.setDescription('Get returns whether error alarms are enabled/disabled. Set allows for enabling/disabling of error alarms.')
rptrPortAlarmErrThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortAlarmErrThreshold.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmErrThreshold.setDescription('Get/Set the percentage of errors per good packet within the timebase that will cause an alarm.')
rptrPortAlarmErrSource = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 11), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortAlarmErrSource.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmErrSource.setDescription('Get/Set a bit encoded map of which errors to include in the error sum, as follows: CRC_errors - Bit 0 - Least Significant Bit runts - Bit 1 OOW_colls - Bit 2 align_errs - Bit 3 undefined - Bit 4 Giants - Bit 5')
rptrPortAlarmErrPortDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortAlarmErrPortDisable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmErrPortDisable.setDescription('Set will permit a port to be disabled on an error alarm condition. Get will show whether the port disabling is allowed or not.')
rptrPortAlarmBroadEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortAlarmBroadEnable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmBroadEnable.setDescription('Get returns whether broadcast alarms are enabled/disabled. Set allows for enabling/disabling of broadcast alarms.')
rptrPortAlarmBroadThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 14), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortAlarmBroadThreshold.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmBroadThreshold.setDescription('The broadcase threshold represents the maximum number of broadcasts that are allowed during the time base before an alarm is generated.')
rptrPortAlarmBroadPortDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 3, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortAlarmBroadPortDisable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAlarmBroadPortDisable.setDescription('Set will permit a port to be disabled on a broadcast alarm condition. Get will show whether the port disabling is allowed or not.')
rptrPortRedundTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 4), )
if mibBuilder.loadTexts: rptrPortRedundTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortRedundTable.setDescription('A list of port redundancy objects for this repeater node.')
rptrPortRedundEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 4, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortRedundPortGrpId"), (0, "REPEATER-REV4-MIB", "rptrPortRedundPortId"))
if mibBuilder.loadTexts: rptrPortRedundEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortRedundEntry.setDescription('An entry containing objects pertaining to port redundancy for a port group.')
rptrPortRedundPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortRedundPortId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortRedundPortId.setDescription('Returns an index to a port for which the information in this table pertains.')
rptrPortRedundPortGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 4, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortRedundPortGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortRedundPortGrpId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortRedundCrctNum = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 4, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortRedundCrctNum.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortRedundCrctNum.setDescription('Get/Set redundant circuit number of redundant circuit that port is or is to be associated with.')
rptrPortRedundType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notUsed", 1), ("primary", 2), ("backup", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortRedundType.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortRedundType.setDescription('Get/Set redundant port type.')
rptrPortRedundStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notUsed", 1), ("active", 2), ("inactive", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortRedundStatus.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortRedundStatus.setDescription('Get/Set redundant port status.')
rptrPortSrcAddrTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 5), )
if mibBuilder.loadTexts: rptrPortSrcAddrTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSrcAddrTable.setDescription('A list of port source address objects for this repeater node.')
rptrPortSrcAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 5, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortSrcAddrPortGrpId"), (0, "REPEATER-REV4-MIB", "rptrPortSrcAddrPortId"))
if mibBuilder.loadTexts: rptrPortSrcAddrEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSrcAddrEntry.setDescription('An entry containing objects pertaining to port source address objects for a port group.')
rptrPortSrcAddrPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 5, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSrcAddrPortId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSrcAddrPortId.setDescription('Returns an index to a port for which the information in this table pertains.')
rptrPortSrcAddrPortGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 5, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSrcAddrPortGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSrcAddrPortGrpId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortSrcAddrTopoState = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("station", 1), ("trunk", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSrcAddrTopoState.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSrcAddrTopoState.setDescription('Returns the topological state of the port.')
rptrPortSrcAddrForceTrunk = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 5, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noForce", 1), ("force", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortSrcAddrForceTrunk.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSrcAddrForceTrunk.setDescription('When this object is set to Force it causes the port to be placed into a Trunk topological state whether the network traffic would warrant such a state or not. When this object is set to NoForce it allows the port to assume the topological state it would naturally assume based on the network activity across it. When read this object reports the current setting.')
rptrPortSrcAddrActiveUsers = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 5, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSrcAddrActiveUsers.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSrcAddrActiveUsers.setDescription('Returns the total number of active users seen by this port.')
rptrPortSrcAddrListTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 6), )
if mibBuilder.loadTexts: rptrPortSrcAddrListTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSrcAddrListTable.setDescription('This table provides information about the source addresses that have been seen by the differnt ports.')
rptrPortSrcAddrListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 6, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortSrcAddrListPortGrpId"), (0, "REPEATER-REV4-MIB", "rptrPortSrcAddrListPortId"), (0, "REPEATER-REV4-MIB", "rptrPortSrcAddrListId"))
if mibBuilder.loadTexts: rptrPortSrcAddrListEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSrcAddrListEntry.setDescription('A specific source address that has been seen')
rptrPortSrcAddrListId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 6, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSrcAddrListId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSrcAddrListId.setDescription('Returns an index associated with the number of address to be returned.')
rptrPortSrcAddrListPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 6, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSrcAddrListPortId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSrcAddrListPortId.setDescription('Returns an index to a port for which the information in this table pertains.')
rptrPortSrcAddrListPortGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 6, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSrcAddrListPortGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSrcAddrListPortGrpId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortSrcAddrAddressList = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 6, 1, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSrcAddrAddressList.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSrcAddrAddressList.setDescription('Returns a source address seen on this port.')
rptrPortHardwareTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 7), )
if mibBuilder.loadTexts: rptrPortHardwareTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortHardwareTable.setDescription('A list of port hardware objects for this repeater port.')
rptrPortHardwareEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 7, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortHardwarePortGrpId"), (0, "REPEATER-REV4-MIB", "rptrPortHardwarePortId"))
if mibBuilder.loadTexts: rptrPortHardwareEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortHardwareEntry.setDescription('An entry containing objects pertaining to port hardware for a hardware port group.')
rptrPortHardwarePortId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 7, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortHardwarePortId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortHardwarePortId.setDescription('Returns an index to a port for which the information in this table pertains.')
rptrPortHardwarePortGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 7, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortHardwarePortGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortHardwarePortGrpId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortHardwareSegStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 7, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notSegmented", 1), ("segmented", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortHardwareSegStatus.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortHardwareSegStatus.setDescription('Returns port segmentation status.')
rptrPortHardwareLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 7, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notLinked", 1), ("linked", 2), ("notApplicable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortHardwareLinkStatus.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortHardwareLinkStatus.setDescription('Returns port link status.')
rptrPortTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 8))
rptrPortHwTrapSet = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 8, 1))
rptrPortSaTrapSet = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 8, 2))
rptrPortHwTrapTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 8, 1, 1), )
if mibBuilder.loadTexts: rptrPortHwTrapTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortHwTrapTable.setDescription('A list of trap enable/disable at the port level.')
rptrPortHwTrapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 8, 1, 1, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortHwTrapSetPortGrpId"), (0, "REPEATER-REV4-MIB", "rptrPortHwTrapSetPortId"))
if mibBuilder.loadTexts: rptrPortHwTrapEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortHwTrapEntry.setDescription('Individual trap entries for port group enable/disable.')
rptrPortHwTrapSetPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 8, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortHwTrapSetPortId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortHwTrapSetPortId.setDescription('Returns an index to a port for which the information in this table pertains.')
rptrPortHwTrapSetPortGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 8, 1, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortHwTrapSetPortGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortHwTrapSetPortGrpId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortHwTrapSetLink = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 8, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortHwTrapSetLink.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortHwTrapSetLink.setDescription('Enables and disables link traps for this port.')
rptrPortHwTrapSetSeg = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 8, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortHwTrapSetSeg.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortHwTrapSetSeg.setDescription('Enables and disables segmentation traps for this port.')
rptrPortSaTrapTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 8, 2, 1), )
if mibBuilder.loadTexts: rptrPortSaTrapTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSaTrapTable.setDescription('A list of trap enable/disable at the port level')
rptrPortSaTrapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 8, 2, 1, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortSaTrapSetPortGrpId"), (0, "REPEATER-REV4-MIB", "rptrPortSaTrapSetPortId"))
if mibBuilder.loadTexts: rptrPortSaTrapEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSaTrapEntry.setDescription('Individual trap entries for port group enable/disable.')
rptrPortSaTrapSetPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 8, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSaTrapSetPortId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSaTrapSetPortId.setDescription('Returns an index to a port for which the information in this table pertains.')
rptrPortSaTrapSetPortGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 8, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSaTrapSetPortGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSaTrapSetPortGrpId.setDescription('Returns an index to a port group for which the information in this table pertains.')
rptrPortSaTrapSetSrcaddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 8, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortSaTrapSetSrcaddr.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSaTrapSetSrcaddr.setDescription('Enables and disables source address traps for this port.')
rptrPortSecurity = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9))
rptrPortSecurityTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 1), )
if mibBuilder.loadTexts: rptrPortSecurityTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityTable.setDescription('This table defines status of the source lock security.')
rptrPortSecurityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 1, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortSecurityPortGrpId"), (0, "REPEATER-REV4-MIB", "rptrPortSecurityPortId"))
if mibBuilder.loadTexts: rptrPortSecurityEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityEntry.setDescription('Defines lock status for this particular entry.')
rptrPortSecurityPortGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSecurityPortGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityPortGrpId.setDescription(' The port Group ID for which this source address lock entry pertains.')
rptrPortSecurityPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSecurityPortId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityPortId.setDescription('The port ID for which this source address lock entry pertains.')
rptrPortSecurityLockStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("unlock", 1), ("lock", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortSecurityLockStatus.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityLockStatus.setDescription('Defines the lock status for this particular port entry.')
rptrPortSecurityLockAddAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortSecurityLockAddAddress.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityLockAddAddress.setDescription('Setting a value to this object will cause a new entry to be added to the rptrPortSecurityListTable. When read this object will display an OCTET STRING of SIZE 6 with each octet containing a 0. In general it is possible to add addresses at anytime. However there are several instances where the firmware and or hardware can not support the operation. In these instances an error will be returned if a addition is attempted.')
rptrPortSecurityLockDelAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 1, 1, 5), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortSecurityLockDelAddress.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityLockDelAddress.setDescription("Setting a value to this object will cause corresponding entry in the rptrPortSecurityListTable to be deleted. When read this object returns an OCTET STRING of length 6 with each octet having the value '0'. In general it is possible to delete locked addresses at any time. however there are instances where it is not supported in which case an error will be returned.")
rptrPortSecurityDisableOnViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noDisable", 1), ("disable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortSecurityDisableOnViolation.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityDisableOnViolation.setDescription('Designates whether port is disabled if its source address is violated. A source address violation occurs when a address is detected which is not in the source address list for this port. If the port is disabled due to the source address violation it can be enabled by setting rptrPortMgmtAdminState.')
rptrPortSecurityFullSecEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("partialSecurity", 1), ("fullSecurity", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortSecurityFullSecEnabled.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityFullSecEnabled.setDescription('A port that is set to full security and is locked will scramble ALL packets, which are not contained in the expected address list, including broadcasts and multicasts. A port that is set to partial security will allow broadcasts and multicasts to repeat unscrambled.')
rptrPortSecuritySecureState = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("secure", 1), ("nonSecure", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSecuritySecureState.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecuritySecureState.setDescription('The secure state of the port. If the port is secure(1), it can be locked in order to enable security. A nonSecure(2) port cannot be locked.')
rptrPortSecurityForceNonSecure = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noForce", 1), ("forceNonSecure", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortSecurityForceNonSecure.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityForceNonSecure.setDescription('The force non-secure state of port. If the port is Forced, Non-Secure via a value of forceNonSecure(2), it is put into a Non-Secure state, in which case it cannot be locked. If a port is not forced noForce(1), then it will take on its natural state, according to the traffic flow on the port.')
rptrPortSecurityLearnState = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("learn", 1), ("noLearn", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortSecurityLearnState.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityLearnState.setDescription('The learn state of the port. This object will only be applied to a port that is unlocked. If set to learn(1), all addresses are deleted on the port and learning begins once again. If it is set to noLearn(2), learning stops on the port.')
rptrPortSecurityLearnMode = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("oneTime", 1), ("continuous", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortSecurityLearnMode.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityLearnMode.setDescription('The learn mode of the port. If set to oneTime(1), the port is capable of learning two addresses and securing on both destination and source addresses (upon locking port). If set to continuous(2), all addresses are initially deleted and the port continuously replaces the existing secure source address with the latest source address it sees.')
rptrPortSecurityListTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 2), )
if mibBuilder.loadTexts: rptrPortSecurityListTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityListTable.setDescription('This table defines a list of all source address locks maintained for the specified port.')
rptrPortSecurityListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 2, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortSecurityListPortGrpId"), (0, "REPEATER-REV4-MIB", "rptrPortSecurityListPortId"), (0, "REPEATER-REV4-MIB", "rptrPortSecurityListIndex"))
if mibBuilder.loadTexts: rptrPortSecurityListEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityListEntry.setDescription('An entry containing objects pertaining to source address locks for a port group.')
rptrPortSecurityListPortGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSecurityListPortGrpId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityListPortGrpId.setDescription('The port group for which this security list entry pertains.')
rptrPortSecurityListPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSecurityListPortId.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityListPortId.setDescription('The port ID for which this source address lock list pertains.')
rptrPortSecurityListIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSecurityListIndex.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityListIndex.setDescription('A unique index for the source address entries.')
rptrPortSecurityListAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 3, 9, 2, 1, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortSecurityListAddress.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortSecurityListAddress.setDescription('Defines the particular source address that has been locked.')
rptrPortAssoc = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 4))
rptrPortAssocTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 4, 1), )
if mibBuilder.loadTexts: rptrPortAssocTable.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAssocTable.setDescription('This table defines the port association for those switching MIMs that support this functionality.')
rptrPortAssocEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 4, 1, 1), ).setIndexNames((0, "REPEATER-REV4-MIB", "rptrPortAssocBoard"))
if mibBuilder.loadTexts: rptrPortAssocEntry.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAssocEntry.setDescription('Describes a particular port association entry.')
rptrPortAssocBoard = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 4, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rptrPortAssocBoard.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAssocBoard.setDescription('The board number for which this port association information pertains.')
rptrPortAssocStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 1, 1, 1, 4, 4, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("defaultPort", 1), ("otherPort", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rptrPortAssocStatus.setStatus('mandatory')
if mibBuilder.loadTexts: rptrPortAssocStatus.setDescription('This object describes the status of the user selectable port. On a TPXMIM34 this is port 13 which may either be an EPIM or default configuration. A value of defaultPort(1) restores the default configuration. A value of otherPort(2) may imply the use of the EPIM connection.')
mibBuilder.exportSymbols("REPEATER-REV4-MIB", rptrFrameSz256To511=rptrFrameSz256To511, rptrPortGrpAlarmBroadEnable=rptrPortGrpAlarmBroadEnable, rptrPortGrpAlarmTrafEnable=rptrPortGrpAlarmTrafEnable, rptrPortGrpSASecurityLearnMode=rptrPortGrpSASecurityLearnMode, rptrProtocolsXNS=rptrProtocolsXNS, rptrPortAlarmErrPortDisable=rptrPortAlarmErrPortDisable, rptrPortProtocolDECNet=rptrPortProtocolDECNet, rptrPortSecurityLockAddAddress=rptrPortSecurityLockAddAddress, rptrPort=rptrPort, rptrPortSecurityTable=rptrPortSecurityTable, rptrPortGrpAlarmCollThreshold=rptrPortGrpAlarmCollThreshold, rptrRedundancy=rptrRedundancy, rptrRedundAddrIPAddr=rptrRedundAddrIPAddr, rptrStats=rptrStats, rptrRedundCrctEnable=rptrRedundCrctEnable, repeaterrev4=repeaterrev4, rptrProtocolsDECNet=rptrProtocolsDECNet, rptrPortGrpPktStatsId=rptrPortGrpPktStatsId, rptrPortPktStatsPackets=rptrPortPktStatsPackets, rptrPortSrcAddrListEntry=rptrPortSrcAddrListEntry, rptrPortMgmtOperState=rptrPortMgmtOperState, rptrPortGrpProtocolIP=rptrPortGrpProtocolIP, rptrPortSaTrapSetPortId=rptrPortSaTrapSetPortId, rptrPortGrpFrameSzTbl=rptrPortGrpFrameSzTbl, rptrPortGrpProtocolXNS=rptrPortGrpProtocolXNS, rptrPortAlarmErrSource=rptrPortAlarmErrSource, rptrPortGrpSaTrapTable=rptrPortGrpSaTrapTable, rptrAlarmsAlarmTimebase=rptrAlarmsAlarmTimebase, rptrSaTrapSetSrcaddr=rptrSaTrapSetSrcaddr, rptrPortGroup=rptrPortGroup, rptrPortGrpPktStatsBroadcasts=rptrPortGrpPktStatsBroadcasts, rptrAlarmsErrEnable=rptrAlarmsErrEnable, rptrPortGrpPktStatsBytes=rptrPortGrpPktStatsBytes, rptrPortAlarmErrThreshold=rptrPortAlarmErrThreshold, rptrPortAlarmBroadPortDisable=rptrPortAlarmBroadPortDisable, rptrPktStatsMulticasts=rptrPktStatsMulticasts, rptrPortAlarmBroadThreshold=rptrPortAlarmBroadThreshold, rptrPortGrpMgmtEntry=rptrPortGrpMgmtEntry, rptrPortGrpAlarmTrafThreshold=rptrPortGrpAlarmTrafThreshold, rptrPortProtocolNovell=rptrPortProtocolNovell, rptrRedundAddrId=rptrRedundAddrId, rptrPortGrpSrcAddrLockTable=rptrPortGrpSrcAddrLockTable, rptrPortSecurityFullSecEnabled=rptrPortSecurityFullSecEnabled, rptrPortFrameSz256To511=rptrPortFrameSz256To511, rptrPortGrpPktStatsColls=rptrPortGrpPktStatsColls, rptrPortPktStatsColls=rptrPortPktStatsColls, rptrPortGrpPktStatsPkts=rptrPortGrpPktStatsPkts, rptrPortSaTrapSet=rptrPortSaTrapSet, rptrPortFrameSz1024To1518=rptrPortFrameSz1024To1518, rptrRedundMaxCrcts=rptrRedundMaxCrcts, rptrPortMgmtTable=rptrPortMgmtTable, rptrMgmtPortsEnable=rptrMgmtPortsEnable, rptrRedundAddrTable=rptrRedundAddrTable, rptrHwTrapSet=rptrHwTrapSet, rptrPortHardwareLinkStatus=rptrPortHardwareLinkStatus, rptrPktStatsNoRsc=rptrPktStatsNoRsc, rptrPortGrpHwTrapSetGrpId=rptrPortGrpHwTrapSetGrpId, rptrPortProtocolPortGrpId=rptrPortProtocolPortGrpId, rptrPortGrpPktStatsMulticasts=rptrPortGrpPktStatsMulticasts, rptrPortFrameSz512To1023=rptrPortFrameSz512To1023, rptrFrameSzGiant=rptrFrameSzGiant, rptrPortPktStatsPortId=rptrPortPktStatsPortId, rptrPktStatsBroadcasts=rptrPktStatsBroadcasts, rptrPktStatsColls=rptrPktStatsColls, rptrRedundPortType=rptrRedundPortType, rptrSrcAddrMgmtSrcAgeInterval=rptrSrcAddrMgmtSrcAgeInterval, rptrSecurityLearnState=rptrSecurityLearnState, rptrAlarmsTrafEnable=rptrAlarmsTrafEnable, rptrPortGrpSrcAddrId=rptrPortGrpSrcAddrId, rptrPortFrameSzRunt=rptrPortFrameSzRunt, rptrPortGrpTrap=rptrPortGrpTrap, rptrPortGrpProtocolOther=rptrPortGrpProtocolOther, rptrHwTrapSetLink=rptrHwTrapSetLink, rptrPortSecurityListEntry=rptrPortSecurityListEntry, rptrPktStatsOOW=rptrPktStatsOOW, rptrPortGrpAlarmCollBdDisable=rptrPortGrpAlarmCollBdDisable, rptrAlarms=rptrAlarms, rptrPortSrcAddrListTable=rptrPortSrcAddrListTable, rptrPortGrpAlarmBroadThreshold=rptrPortGrpAlarmBroadThreshold, rptrFrameSizes=rptrFrameSizes, rptrPortGrpSrcAddrLock=rptrPortGrpSrcAddrLock, rptrPortSecurityListIndex=rptrPortSecurityListIndex, rptrPortGrpFrameSz64To127=rptrPortGrpFrameSz64To127, rptrMgmtPortCount=rptrMgmtPortCount, rptrPortGrpHwTrapTable=rptrPortGrpHwTrapTable, rptrSrcAddrListEntry=rptrSrcAddrListEntry, rptrPortGrpMgmtName=rptrPortGrpMgmtName, rptrPortGrpProtocolId=rptrPortGrpProtocolId, rptrPortSrcAddrPortId=rptrPortSrcAddrPortId, rptrPortHardwarePortGrpId=rptrPortHardwarePortGrpId, rptrRedundCrctReset=rptrRedundCrctReset, rptrPortGrpPktStatsTbl=rptrPortGrpPktStatsTbl, rptrPortGrpMgmtLogPortCount=rptrPortGrpMgmtLogPortCount, rptrPortRedundPortId=rptrPortRedundPortId, rptrPortAlarmPortId=rptrPortAlarmPortId, rptrPortSrcAddrAddressList=rptrPortSrcAddrAddressList, rptrPortHwTrapSetPortId=rptrPortHwTrapSetPortId, rptrPortGrpAlarmErrGrpDisable=rptrPortGrpAlarmErrGrpDisable, rptrPortRedundStatus=rptrPortRedundStatus, rptrPortSecurityListAddress=rptrPortSecurityListAddress, rptrPortProtocolBanyan=rptrPortProtocolBanyan, rptrPortFrameSzTbl=rptrPortFrameSzTbl, rptrPortGrpFrameSz512To1023=rptrPortGrpFrameSz512To1023, rptrMgmtPortsOper=rptrMgmtPortsOper, rptrPortSecurityLockDelAddress=rptrPortSecurityLockDelAddress, rptrAlarmsErrThreshold=rptrAlarmsErrThreshold, rptrMgmt=rptrMgmt, rptrSaSecurity=rptrSaSecurity, rptrRedundPortEntry=rptrRedundPortEntry, rptr=rptr, rptrPortSecurityPortId=rptrPortSecurityPortId, rptrPortGrpAlarmErrSource=rptrPortGrpAlarmErrSource, rptrPortAlarmErrEnable=rptrPortAlarmErrEnable, rptrPortSecurityEntry=rptrPortSecurityEntry, rptrPortGrpProtocolOSI=rptrPortGrpProtocolOSI, rptrAlarmsTrafThreshold=rptrAlarmsTrafThreshold, rptrPortGrpSrcAddrTable=rptrPortGrpSrcAddrTable, rptrSrcAddrMgmtPortLock=rptrSrcAddrMgmtPortLock, rptrPortProtocolOSI=rptrPortProtocolOSI, rptrAlarmsErrSource=rptrAlarmsErrSource, rptrRedundCrctAddAddr=rptrRedundCrctAddAddr, rptrPortGrpMgmtTable=rptrPortGrpMgmtTable, rptrFrameSz512To1023=rptrFrameSz512To1023, rptrPortGrpPktStatsErrors=rptrPortGrpPktStatsErrors, rptrPortGrpAlarmErrEnable=rptrPortGrpAlarmErrEnable, rptrPktStatsErrors=rptrPktStatsErrors, rptrRedundPortBoardNum=rptrRedundPortBoardNum, rptrRedundCrctEntry=rptrRedundCrctEntry, rptrRedundCrctNumAddr=rptrRedundCrctNumAddr, rptrPortGrpSaTrapSetGrpId=rptrPortGrpSaTrapSetGrpId, rptrPortGrpSrcAddrLockGrpId=rptrPortGrpSrcAddrLockGrpId, rptrRedundCrctId=rptrRedundCrctId, rptrRedundPortTable=rptrRedundPortTable, rptrSecurityLockState=rptrSecurityLockState, rptrPortSrcAddrActiveUsers=rptrPortSrcAddrActiveUsers, rptrAlarmsBroadEnable=rptrAlarmsBroadEnable, rptrRedundPerformTest=rptrRedundPerformTest, rptrProtocols=rptrProtocols, rptrPortGrpProtocolBanyan=rptrPortGrpProtocolBanyan, rptrPortGrpSaTrapSet=rptrPortGrpSaTrapSet, rptrPktStatsCRC=rptrPktStatsCRC, rptrPortTrap=rptrPortTrap, rptrPortSrcAddrPortGrpId=rptrPortSrcAddrPortGrpId, rptrProtocolsAppletalk=rptrProtocolsAppletalk, rptrPortProtocolXNS=rptrPortProtocolXNS, rptrPortProtocolCtron=rptrPortProtocolCtron, rptrMgmtResetCounters=rptrMgmtResetCounters, rptrSrcAddrSrcTableEntryPortGroup=rptrSrcAddrSrcTableEntryPortGroup, rptrFrameSz128To255=rptrFrameSz128To255, rptrPktStatsBytes=rptrPktStatsBytes, rptrProtocolsOther=rptrProtocolsOther, rptrPortGrpHwTrapSet=rptrPortGrpHwTrapSet, rptrPortAlarmTrafEnable=rptrPortAlarmTrafEnable, rptrPortSrcAddrListPortGrpId=rptrPortSrcAddrListPortGrpId, rptrPortSrcAddrListId=rptrPortSrcAddrListId, rptrPortSecurityForceNonSecure=rptrPortSecurityForceNonSecure, rptrPortSecurityLearnState=rptrPortSecurityLearnState, rptrRedundCrctDelAddr=rptrRedundCrctDelAddr, rptrPortHardwareEntry=rptrPortHardwareEntry, rptrPortRedundTable=rptrPortRedundTable, rptrPortProtocolAppletalk=rptrPortProtocolAppletalk, rptrPortRedundCrctNum=rptrPortRedundCrctNum, rptrPortGrpProtocolAppletalk=rptrPortGrpProtocolAppletalk, rptrPortAlarmCollThreshold=rptrPortAlarmCollThreshold, rptrPortGrpMgmtPortsOn=rptrPortGrpMgmtPortsOn, rptrPortMgmtPortGrpId=rptrPortMgmtPortGrpId, rptrPortHwTrapSetPortGrpId=rptrPortHwTrapSetPortGrpId, rptrPortGrpSrcAddrLockEntry=rptrPortGrpSrcAddrLockEntry, rptrSrcAddrSrcTableEntryPort=rptrSrcAddrSrcTableEntryPort, rptrHwTrapSetSeg=rptrHwTrapSetSeg, rptrAlarmsCollEnable=rptrAlarmsCollEnable, rptrRedundCrctTable=rptrRedundCrctTable, rptrPortAlarmCollEnable=rptrPortAlarmCollEnable, rptrMgmtName=rptrMgmtName, rptrRedundAddrEntry=rptrRedundAddrEntry, rptrPortGrpSASecurityLearnState=rptrPortGrpSASecurityLearnState, rptrPortGrpProtocolCtron=rptrPortGrpProtocolCtron, rptrPortPktStatsCRC=rptrPortPktStatsCRC, rptrRedund=rptrRedund, rptrPortPktStatsErrors=rptrPortPktStatsErrors, rptrPortGrpSrcAddrEntry=rptrPortGrpSrcAddrEntry, rptrPortGrpFrameSzRunt=rptrPortGrpFrameSzRunt, rptrPortGrpStats=rptrPortGrpStats, rptrPortGrpSASecuritySecureState=rptrPortGrpSASecuritySecureState, rptrPortMgmtPortId=rptrPortMgmtPortId, rptrPortFrameSz128To255=rptrPortFrameSz128To255, rptrPortPktStatsAlign=rptrPortPktStatsAlign, rptrPortHwTrapSetSeg=rptrPortHwTrapSetSeg, rptrPortProtocolPortId=rptrPortProtocolPortId, rptrPortAlarmCollPortDisable=rptrPortAlarmCollPortDisable, rptrPortMgmtEntry=rptrPortMgmtEntry, rptrPortGrpAlarmTable=rptrPortGrpAlarmTable, rptrPortPktStatsTbl=rptrPortPktStatsTbl, rptrPortRedundType=rptrPortRedundType, rptrPortSrcAddrForceTrunk=rptrPortSrcAddrForceTrunk, rptrTrap=rptrTrap, rptrPortGrpFrameSzGiant=rptrPortGrpFrameSzGiant, rptrMgmtBoardMap=rptrMgmtBoardMap, rptrProtocolsCtron=rptrProtocolsCtron, rptrPortGrpMgmtGrpId=rptrPortGrpMgmtGrpId, rptrPortMgmtName=rptrPortMgmtName, rptrPortPktStatsPortGrpId=rptrPortPktStatsPortGrpId, rptrPortSrcAddrEntry=rptrPortSrcAddrEntry, rptrPortGrpPktStatsOOW=rptrPortGrpPktStatsOOW, rptrPortGrpAlarmCollEnable=rptrPortGrpAlarmCollEnable, rptrPortSecuritySecureState=rptrPortSecuritySecureState, rptrPortSaTrapSetSrcaddr=rptrPortSaTrapSetSrcaddr, rptrPortSecurityLockStatus=rptrPortSecurityLockStatus, rptrSrcAddrMgmtActiveUsers=rptrSrcAddrMgmtActiveUsers, rptrPortGrpFrameSz1024To1518=rptrPortGrpFrameSz1024To1518, rptrPortPktStatsBytes=rptrPortPktStatsBytes, rptrSecurityLearnMode=rptrSecurityLearnMode, rptrRedundCrctNumBPs=rptrRedundCrctNumBPs, rptrRedundCrctName=rptrRedundCrctName, rptrPortGrpAlarmBroadGrpDisable=rptrPortGrpAlarmBroadGrpDisable, rptrMgmtPortsOn=rptrMgmtPortsOn, rptrPortSecurityPortGrpId=rptrPortSecurityPortGrpId, rptrPortHardwareTable=rptrPortHardwareTable, rptrPortSecurityLearnMode=rptrPortSecurityLearnMode, rptrMgmtInterfaceNum=rptrMgmtInterfaceNum, rptrPortFrameSzPortGrpId=rptrPortFrameSzPortGrpId, rptrPktStatsPackets=rptrPktStatsPackets, rptrPortRedundPortGrpId=rptrPortRedundPortGrpId, rptrSrcAddrSrcTableEntryId=rptrSrcAddrSrcTableEntryId, rptrProtocolsBanyan=rptrProtocolsBanyan, rptrSecuritySecureState=rptrSecuritySecureState, rptrFrameSzRunt=rptrFrameSzRunt, rptrPortMgmtPortType=rptrPortMgmtPortType, rptrPortHwTrapSetLink=rptrPortHwTrapSetLink, rptrPortGrpAlarmEntry=rptrPortGrpAlarmEntry, rptrPortAlarmEntry=rptrPortAlarmEntry, rptrSrcAddrListId=rptrSrcAddrListId, rptrPortGrpFrameSzId=rptrPortGrpFrameSzId, rptrRedundTestTOD=rptrRedundTestTOD, rptrPortGrpProtocolDECNet=rptrPortGrpProtocolDECNet, rptrPortGrpProtocolEntry=rptrPortGrpProtocolEntry, rptrPortGrpMgmtPortsOper=rptrPortGrpMgmtPortsOper, rptrPortAlarmTable=rptrPortAlarmTable, rptrPortGrpPktStatsCRC=rptrPortGrpPktStatsCRC, rptrPortGrpProtocolNovell=rptrPortGrpProtocolNovell, rptrPortAlarmPortGrpId=rptrPortAlarmPortGrpId, rptrPortPktStatsBroadcasts=rptrPortPktStatsBroadcasts, rptrPortGrpAlarmTrafGrpDisable=rptrPortGrpAlarmTrafGrpDisable, rptrPortAlarmTrafPortDisable=rptrPortAlarmTrafPortDisable, rptrPortSaTrapTable=rptrPortSaTrapTable, rptrAlarmsCollThreshold=rptrAlarmsCollThreshold, rptrRedundCrctRetrys=rptrRedundCrctRetrys, rptrPortGrpFrameSz128To255=rptrPortGrpFrameSz128To255, rptrPortHwTrapTable=rptrPortHwTrapTable, rptrPortAssoc=rptrPortAssoc, rptrPortHardwareSegStatus=rptrPortHardwareSegStatus, rptrPortAssocEntry=rptrPortAssocEntry, rptrPortPktStatsOOW=rptrPortPktStatsOOW, rptrPortSecurityListTable=rptrPortSecurityListTable)
mibBuilder.exportSymbols("REPEATER-REV4-MIB", rptrPortGrpFrameSzEntry=rptrPortGrpFrameSzEntry, rptrPortFrameSzGiant=rptrPortFrameSzGiant, rptrSourceAddress=rptrSourceAddress, rptrSrcAddrListTable=rptrSrcAddrListTable, rptrPortHwTrapEntry=rptrPortHwTrapEntry, rptrSrcAddrAddressList=rptrSrcAddrAddressList, rptrSrcAddrSrcTableEntry=rptrSrcAddrSrcTableEntry, rptrPortAlarmBroadEnable=rptrPortAlarmBroadEnable, rptrRedundAddrCrctId=rptrRedundAddrCrctId, rptrRedundPortCrctId=rptrRedundPortCrctId, rptrPortGrpSrcAddrActiveUsers=rptrPortGrpSrcAddrActiveUsers, rptrPortProtocolOther=rptrPortProtocolOther, rptrAlarmsBroadThreshold=rptrAlarmsBroadThreshold, rptrPortHwTrapSet=rptrPortHwTrapSet, rptrPortAssocTable=rptrPortAssocTable, rptrPortProtocolEntry=rptrPortProtocolEntry, rptrPortGrpAlarmErrThreshold=rptrPortGrpAlarmErrThreshold, rptrPortGrpMgmtPortCount=rptrPortGrpMgmtPortCount, rptrPortFrameSzEntry=rptrPortFrameSzEntry, rptrPortGrpHwTrapEntry=rptrPortGrpHwTrapEntry, rptrPortSaTrapSetPortGrpId=rptrPortSaTrapSetPortGrpId, rptrPortPktStatsEntry=rptrPortPktStatsEntry, rptrPortGrpHwTrapSetSeg=rptrPortGrpHwTrapSetSeg, rptrPortSrcAddrListPortId=rptrPortSrcAddrListPortId, rptrRedundPortId=rptrRedundPortId, rptrPortGrpAlarmId=rptrPortGrpAlarmId, rptrPortProtocolIP=rptrPortProtocolIP, rptrPortFrameSzPortId=rptrPortFrameSzPortId, rptrPortGrpMgmtPortsEnable=rptrPortGrpMgmtPortsEnable, rptrSrcAddrMgmtHashType=rptrSrcAddrMgmtHashType, rptrPortProtocolTbl=rptrPortProtocolTbl, rptrRedundReset=rptrRedundReset, rptrPortSaTrapEntry=rptrPortSaTrapEntry, rptrPortGrpSaTrapSetSrcaddr=rptrPortGrpSaTrapSetSrcaddr, rptrPortSecurityDisableOnViolation=rptrPortSecurityDisableOnViolation, rptrPktStatsAlign=rptrPktStatsAlign, rptrSrcAddrSrcTable=rptrSrcAddrSrcTable, rptrPortSrcAddrTopoState=rptrPortSrcAddrTopoState, rptrPortSecurityListPortId=rptrPortSecurityListPortId, rptrPortGrpPktStatsEntry=rptrPortGrpPktStatsEntry, rptrPortSecurity=rptrPortSecurity, rptrPortSrcAddrTable=rptrPortSrcAddrTable, rptrFrameSz1024To1518=rptrFrameSz1024To1518, rptrPortGrpSaTrapEntry=rptrPortGrpSaTrapEntry, rptrPortGrpPktStatsAlign=rptrPortGrpPktStatsAlign, rptrPktStats=rptrPktStats, rptrSaTrapSet=rptrSaTrapSet, rptrProtocolsIP=rptrProtocolsIP, rptrPortStats=rptrPortStats, rptrPortAssocStatus=rptrPortAssocStatus, rptrPortFrameSz64To127=rptrPortFrameSz64To127, rptrPortGrpHwTrapSetLink=rptrPortGrpHwTrapSetLink, rptrRedundPollInterval=rptrRedundPollInterval, rptrPortRedundEntry=rptrPortRedundEntry, rptrPortAssocBoard=rptrPortAssocBoard, rptrPortPktStatsMulticasts=rptrPortPktStatsMulticasts, rptrProtocolsNovell=rptrProtocolsNovell, rptrPortHardwarePortId=rptrPortHardwarePortId, rptrPortGrpFrameSz256To511=rptrPortGrpFrameSz256To511, rptrPortSecurityListPortGrpId=rptrPortSecurityListPortGrpId, rptrProtocolsOSI=rptrProtocolsOSI, rptrPortGrpProtocolTbl=rptrPortGrpProtocolTbl, rptrSrcAddrMgmt=rptrSrcAddrMgmt, rptrRedundPortNum=rptrRedundPortNum, rptrPortMgmtAdminState=rptrPortMgmtAdminState, rptrFrameSz64To127=rptrFrameSz64To127, rptrPortAlarmTrafThreshold=rptrPortAlarmTrafThreshold)
|
def math():
a, b, c = input().split()
a, b, c = float(a), float(b), float(c)
pi = 3.14159
triangle = (.5 * a * c).__format__('.3f')
circular = (pi * (c**2)).__format__('.3f')
trapezium = (((a + b) / 2) * c).__format__('.3f')
area = (b**2).__format__('.3f')
rectangle = (a * b).__format__('.3f')
print('TRIANGULO:', triangle +
'\nCIRCULO:', circular +
'\nTRAPEZIO:', trapezium +
'\nQUADRADO:', area +
'\nRETANGULO:', rectangle
)
if __name__ == '__main__':
math()
|
if a>b:
print ("a")
elif 20>10:
print ("b")
elif 15>10:
print ("c")
|
def calcular_area(_largura, _comprimento):
return _largura * _comprimento
print('\nControle de Terrenos')
print('-' * 20)
largura = float(input('Largura (m): '))
comprimento = float(input('Comprimento (m): '))
print('A área de um terreno {:.1f} x {:.1f} é de {:.1f} m2.'
.format(largura, comprimento, calcular_area(largura, comprimento))) |
#
# pystylus/ast/selectorlist.py
#
"""
Defines the SelectorList node type in the pystylus AST
"""
class SelectorList:
"""
The selector list is a list of valid CSS selectors. This is found at the
beginning of a Style Block
"""
def __init__(self, *selectors):
self.selectors = selectors
|
#First test evolution function. Oddly, performs only a little worse than Runge-Kutta.
def Euler_Step(x,xres,dydx,Y):
return dydx(x,xres,Y)*xres,xres
def Ystep_euler(g,mx,sigmav,xstep=1e-2,Deltax=1e-4):
Yeqset = lambda x: Yeq(mx,mx/x,g,0,0)
neqset = lambda x: neq(mx,mx/x,g,0,0)
#Find a point shortly before freezeout
xstart=brentq(DeltaCond,1,100,args=(mx,Deltax,g,sigmav,Delta_Y_Condition,))
Y = Yeqset(xstart)
xi=xstart
xmax=xstart+20
dydx = lambda x, xstep, Y: -Yeqset(x+xstep)/x*neqset(x+xstep)*sigmav(x+xstep) /Hub(mx/(x+xstep))*((Y/Yeqset(x+xstep))**2-1)
while True:
if Y>2.5*Yeqset(xi) or xi>xmax:
break
deltay,xstep = Euler_Step(xi,xstep,dydx,Y)
#print(xi,Y,Yeqset(xi),deltay)
Y+=deltay
xi+=xstep
Yinf_val,Yinf_error = quad(Yevolution_integrand,xi,1000,epsabs=1e-300,epsrel=1e-4,limit=400,args=(mx,sigmav,))
if Yinf_val < 100*Yinf_error:
print("Error in Ystep integration")
print(Yinf_val,Yinf_error)
print(xi,mx)
Yinf = 1.0/(1.0/(2.5*Yeqset(xi))+Yinf_val)
return Yinf,xi+xstep
def Ysearch_euler(g,alpha_D,mv,mx,tol=1e-3,xstep=1e-2,Deltax=1e-4):
kappa = math.sqrt(relic_density_sigma/sigmav(mx/20.0,alpha_D,1.0,mv,mx)/conversion)
#print(kappa)
while True:
sig = lambda x: sigmav(mx/x,alpha_D,kappa,mv,mx)
Y,xf = Ystep_euler(g,mx,sig,xstep,Deltax)
Omega = Omega_from_Y(Y,mx)
if abs(OmegaCDM-Omega)<tol:
break
#print(kappa,Omega)
kappa = math.sqrt(kappa**2*Omega/OmegaCDM)
return kappa,Omega,xf,Y
|
def BFS(graph: dict, s: str):
# graph 无向图
# s 开始的节点
# 一层一层走,每次只找相邻的节点
queue = [s]
seen = [s]
path = []
parent = {s: None}
while queue:
node = queue.pop(0)
nodes = graph[node]
for w in nodes:
if w not in seen:
queue.append(w)
seen.append(w)
parent[w] = node
path.append(node)
return path, parent
def DFS(graph: dict, s: str):
# graph 无向图
# s 开始的节点
# 一条道找到黑
stack = [s]
seen = [s]
path = []
while stack:
node = stack.pop()
nodes = graph[node]
for w in nodes:
if w not in seen:
# 加入到stack和seen中
stack.append(w)
seen.append(w)
path.append(node)
return path
if __name__ == "__main__":
graph = {
"A": ["B", "C"],
"B": ["A", "C", "D"],
"C": ["A", "B", "C", "E"],
"D": ["B", "C", "E", "F"],
"E": ["C", "D"],
"F": ["D"]
}
path, parent = BFS(graph, "E")
v = 'A'
while v != None:
print(v)
v = parent[v]
|
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'netfields',
}
}
INSTALLED_APPS = (
'netfields',
)
SECRET_KEY = "notimportant"
|
centerX = 0
centerY = 0
angle = 0
fsize = 0
weight = 0
counter = 0
centerX= 500/2
centerY= 500/2
angle= 0
fsize= 150
weight = 1
class MyEllipse():
cX = centerX
cY = centerY
cA = angle
eS = fsize
Ew = weight
def render(self, fsize):
fill(200, fsize/20)
x1 = centerX - cos(angle)*fsize/2
y1 = centerY + sin(angle)*fsize/2
stroke(250, 100)
strokeWeight(weight)
ellipse(x1, y1,fsize,fsize)
ell = MyEllipse()
def setup():
size(500,500)
smooth()
background(10)
def draw():
global counter
counter += 0.01
if counter > TWO_PI:
sounter = 0
ell.render(sin(counter*4)*mouseX)
|
# PyAlgoTrade
#
# Copyright 2011-2015 Gabriel Martin Becedillas Ruiz
#
# 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.
"""
.. moduleauthor:: Gabriel Martin Becedillas Ruiz <gabriel.becedillas@gmail.com>
"""
def compute_diff(values1, values2):
assert(len(values1) == len(values2))
ret = []
for i in range(len(values1)):
v1 = values1[i]
v2 = values2[i]
if v1 is not None and v2 is not None:
diff = v1 - v2
else:
diff = None
ret.append(diff)
return ret
def _get_stripped(values1, values2, alignLeft):
if len(values1) > len(values2):
if alignLeft:
values1 = values1[0:len(values2)]
else:
values1 = values1[len(values1)-len(values2):]
elif len(values2) > len(values1):
if alignLeft:
values2 = values2[0:len(values1)]
else:
values2 = values2[len(values2)-len(values1):]
return values1, values2
def _cross_impl(values1, values2, start, end, signCheck):
# Get both set of values.
values1, values2 = _get_stripped(values1[start:end], values2[start:end], start > 0)
# Compute differences and check sign changes.
ret = 0
diffs = compute_diff(values1, values2)
diffs = [x for x in diffs if x != 0]
prevDiff = None
for diff in diffs:
if prevDiff is not None and not signCheck(prevDiff) and signCheck(diff):
ret += 1
prevDiff = diff
return ret
# Note:
# Up to version 0.12 CrossAbove and CrossBelow were DataSeries.
# In version 0.13 SequenceDataSeries was refactored to support specifying a limit to the amount
# of values to hold. This was introduced mainly to reduce memory footprint.
# This change had a huge impact on the way DataSeries filters were implemented since they were
# mosly views and didn't hold any actual values. For example, a SMA(200) didn't hold any values at all
# but rather calculate those on demand by requesting 200 values from the DataSeries being wrapped.
# Now that the DataSeries being wrapped may not hold so many values, DataSeries filters were refactored
# to an event based model and they will calculate and hold resulting values as new values get added to
# the underlying DataSeries (the one being wrapped).
# Since it was too complicated to make CrossAbove and CrossBelow filters work with this new model (
# mainly because the underlying DataSeries may not get new values added at the same time, or one after
# another) I decided to turn those into functions, cross_above and cross_below.
def cross_above(values1, values2, start=-2, end=None):
"""Checks for a cross above conditions over the specified period between two DataSeries objects.
It returns the number of times values1 crossed above values2 during the given period.
:param values1: The DataSeries that crosses.
:type values1: :class:`pyalgotrade.dataseries.DataSeries`.
:param values2: The DataSeries being crossed.
:type values2: :class:`pyalgotrade.dataseries.DataSeries`.
:param start: The start of the range.
:type start: int.
:param end: The end of the range.
:type end: int.
.. note::
The default start and end values check for cross above conditions over the last 2 values.
"""
return _cross_impl(values1, values2, start, end, lambda x: x > 0)
def cross_below(values1, values2, start=-2, end=None):
"""Checks for a cross below conditions over the specified period between two DataSeries objects.
It returns the number of times values1 crossed below values2 during the given period.
:param values1: The DataSeries that crosses.
:type values1: :class:`pyalgotrade.dataseries.DataSeries`.
:param values2: The DataSeries being crossed.
:type values2: :class:`pyalgotrade.dataseries.DataSeries`.
:param start: The start of the range.
:type start: int.
:param end: The end of the range.
:type end: int.
.. note::
The default start and end values check for cross below conditions over the last 2 values.
"""
return _cross_impl(values1, values2, start, end, lambda x: x < 0)
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
x = int(input())
y = int(input())
day = 1
while y - x > 0:
x = x + (x * 0.1)
day += 1
print(day) |
_windows_build_file_content = """
alias(
name = "doxygen",
visibility = ["//visibility:public"],
actual = "{DOXYGEN_VERSION}/doxygen.exe",
)
"""
_known_archives = {
"1.8.19": {
"windows64": struct(
urls = ["https://doxygen.nl/files/doxygen-1.8.19.windows.x64.bin.zip"],
strip_prefix = "",
sha256 = "36beda917f395b4160777f3689e86d6b7e4e51f6f9432413db8fe3b9279e6082",
build_file_content = _windows_build_file_content,
),
"windows32": struct(
urls = ["https://doxygen.nl/files/doxygen-1.8.19.windows.bin.zip"],
strip_prefix = "",
sha256 = "",
build_file_content = _windows_build_file_content,
),
},
}
def _os_key(os):
if os.name.find("windows") != -1:
return "windows32"
elif os.name.find("linux") != -1:
return "linux64"
return os.name
def _get_doxygen_archive(rctx):
doxygen_version = rctx.attr.doxygen_version
archives = _known_archives.get(doxygen_version)
if not archives:
fail("rules_doxygen unsupported doxygen_version: {}".format(doxygen_version))
archive = archives.get(_os_key(rctx.os))
if not archive:
fail("rules_doxygen unknown doxygen version / operating system combo: doxygen_version={} os=".format(doxygen_version, rctx.os.name))
return archive
def _doxygen_repository(rctx):
archive = _get_doxygen_archive(rctx)
rctx.download_and_extract(archive.urls, output = rctx.attr.doxygen_version, stripPrefix = archive.strip_prefix, sha256 = archive.sha256)
rctx.file("BUILD.bazel", archive.build_file_content.format(DOXYGEN_VERSION=rctx.attr.doxygen_version), executable = False)
doxygen_repository = repository_rule(
implementation = _doxygen_repository,
attrs = {
"doxygen_version": attr.string(
default = "1.8.19",
values = _known_archives.keys(),
),
},
)
|
# 입력
c = int(input())
# C(n)이 1이 되면 break
for n in range(1, 100001):
if c == 1:
print(n)
break
# 짝수일 때
if c % 2 == 0:
c //= 2
# 홀수일 때
else:
c = 3*c + 1
|
lista = list()
pessoas = dict()
idad = media = 0
alt = altu_med = 0
while True:
pessoas.clear()
pessoas['codigo'] = int( input('Código: '))
pessoas['nome'] = str( input('Nome: '))
pessoas['idade']=int( input('Idade: '))
idad += pessoas['idade']
pessoas['altura'] = float( input('Altura: '))
alt += pessoas['altura']
lista.append(pessoas.copy())
while True:
resp = str(input('Deseja adicionar mais alguém ? [S/N] ')).upper()[0]
if resp in 'SN':
break
print('ERRO! Responda apenas S ou N.')
if resp == 'N':
break
print('-'*30)
print(f'Há {len(lista)} pessoas no total.')
media=idad / len(lista)
altu_med= alt / len(lista)
print(f'A média de idades é de {media:.2f} anos.')
print(f'A altura média das pessoas é de {altu_med:.2f} metros')
|
TELEGRAM_API_TOKEN = 'Tel Bot Token By @BotFather'
UPLOADER = {
'uploader': 'reverse_image_search_bot.uploaders.ssh.SSHUploader',
'url': 'Host Domain Name',
'configuration': {
'host': 'Host IP (PUBLIC)',
'user': 'Yourname',
'password': 'Password',
'upload_dir': '/path/to/ReVot/',
'key_filename': '/path/to/.ssh/rsakey.pub (Public key)',
}
}
|
# Time: O(n * m^2), n is the number of rows with 1s, m is the number of cols with 1s
# Space: O(n * m)
class Solution(object):
def countCornerRectangles(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
"""
rows = [[c for c, val in enumerate(row) if val]
for row in grid]
result = 0
for i in range(len(rows)):
lookup = set(rows[i])
for j in range(i):
count = sum(1 for c in rows[j] if c in lookup)
result += count*(count-1)/2
return result
|
# Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
#
# If such arrangement is not possible, it must rearrange it as the lowest possible order (ie, sorted in ascending order).
#
# The replacement must be in-place and use only constant extra memory.
#
# Here are some examples. Inputs are in the left-hand column and its corresponding outputs are in the right-hand column.
#
# 1,2,3 → 1,3,2
# 3,2,1 → 1,2,3
# 1,1,5 → 1,5,1
class Solution(object):
def nextPermutation(self, nums):
"""
:type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.
"""
length = len(nums)
pos, val = 0, 0
if length == 0:
return []
i = length - 1
while i >= 0:
if i == 0:
nums.reverse()
return
if nums[i] > nums[i - 1]: # from end to start, pos is the first place ascending change to descending
pos = i - 1
val = nums[i - 1]
break
i -= 1
i = pos + 1
while i <= length:
if i == length or nums[i] <= val:
# find the min value bigger than nums[pos] on the right side or swap the last value
nums[pos] = nums[i - 1]
nums[i - 1] = val
self.swap(nums, pos + 1, length - 1)
break
i += 1
def swap(self, nums, start, end):
while start < end:
temp = nums[start]
nums[start] = nums[end]
nums[end] = temp
start += 1
end -= 1
s = Solution()
nums = [1, 5, 1]
s.nextPermutation(nums)
print(nums)
|
# https://www.geeksforgeeks.org/basic/cryptography/
# SGVP387900|14:43 27F19
# Hill Cipher implementation
keyMatrix = [[0] * 3 for i in range(3)]
# Genrate vector for the message
messageVector = [[0] for i in range(3)]
# Genrate vector for the cipher
cipherMatrix = [[0] for i in range(3)]
# Following function generates the
# key matrix for the key string
def getKeyMatrix(key):
k = 0
for i in range(3):
for j in range(3):
keyMatrix[i][j] = ord(key[k]) % 65
k += 1
# Function encrypts the message
def encrypt(messageVector):
for i in range(3):
for j in range(1):
cipherMatrix[i][j] = 0
for x in range(3):
cipherMatrix[i][j] += (keyMatrix[i][x] *
messageVector[x][j])
cipherMatrix[i][j] = cipherMatrix[i][j] % 26
# https://www.geeksforgeeks.org/hill-cipher/
# HillCipher
def HillCipher(message, key):
# Get key matrix from the key string
getKeyMatrix(key)
# Generate vector for the message
for i in range(3):
messageVector[i][0] = ord(message[i]) % 65
# Function genrates
# the encrypted vector
encrypt(messageVector)
# Generate the encrypted text
# from the encrypted vector
CipherText = []
for i in range(3):
CipherText.append(chr(cipherMatrix[i][0] + 65))
# Print the cipherText
print("Ciphertext: ", "".join(CipherText))
# Driver Code
def main():
# Get the message to be encrypted
message = "ACT"
# Get the key
key = "GYBNQKURP"
HillCipher(message, key)
if __name__ == "__main__":
main()
|
def weakNumbers(n):
all_factors = [count_factors(num) for num in range(1, n + 1)]
weaknesses = []
for num, num_factors in enumerate(all_factors, 1):
weakness = 0
for factor in all_factors[:num]:
if factor > num_factors:
weakness += 1
weaknesses.append(weakness)
weakest = max(weaknesses)
return [weakest, weaknesses.count(weakest)]
def count_factors(n):
factors = 0
for i in range(1, n + 1):
if n % i == 0:
factors += 1
return factors
print(weakNumbers(500))
|
#!/usr/bin/env python
#
# Copyright (C) 2014 The Android Open Source Project
#
# 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.
arm = """
Build fingerprint: 'Android/aosp_arm/generic_arm:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys'
Revision: '0'
ABI: 'arm'
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
r0 00000000 r1 00002dd9 r2 00000006 r3 00000000
r4 f710edd8 r5 00000006 r6 00000000 r7 0000010c
r8 f71b9df4 r9 ab0b5028 sl f7175695 fp f710edd0
ip 00002dd9 sp f710ed18 lr f7175ef1 pc f719a4e0 cpsr 60070010
d0 ffffffffffffffff d1 0000000000000031
d2 0000000000000037 d3 0000000000000033
d4 0000000000000000 d5 0000000000000000
d6 0000000000000000 d7 0000000000000000
d8 0000000000000000 d9 0000000000000000
d10 0000000000000000 d11 0000000000000000
d12 0000000000000000 d13 0000000000000000
d14 0000000000000000 d15 0000000000000000
d16 0000000000000000 d17 0000000000000fff
d18 0000000000000000 d19 0000000000000000
d20 0000000000000000 d21 0000000000000000
d22 0000000000000000 d23 0000000000000000
d24 0000000000000000 d25 0000000000000000
d26 0000000000000000 d27 0000000000000000
d28 0000000000000000 d29 0000000000000000
d30 0000000000000000 d31 0000000000000000
scr 00000000
backtrace:
#00 pc 000374e0 /system/lib/libc.so (tgkill+12)
#01 pc 00012eed /system/lib/libc.so (pthread_kill+52)
#02 pc 00013997 /system/lib/libc.so (raise+10)
#03 pc 0001047d /system/lib/libc.so (__libc_android_abort+36)
#04 pc 0000eb1c /system/lib/libc.so (abort+4)
#05 pc 00000c6f /system/xbin/crasher
#06 pc 000126b3 /system/lib/libc.so (__pthread_start(void*)+30)
#07 pc 000107fb /system/lib/libc.so (__start_thread+6)
"""
arm64 = """
Build fingerprint: 'Android/aosp_arm64/generic_arm64:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys'
Revision: '0'
ABI: 'arm64'
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
x0 0000000000000000 x1 0000000000002df1 x2 0000000000000006 x3 000000559dc73040
x4 ffffffffffffffff x5 0000000000000005 x6 0000000000000001 x7 0000000000000020
x8 0000000000000083 x9 0000005563d21000 x10 0101010101010101 x11 0000000000000001
x12 0000000000000001 x13 0000005563d21000 x14 0000005563d21000 x15 0000000000000000
x16 0000005563d32f20 x17 0000000000000001 x18 0000000000000000 x19 000000559dc73040
x20 0000007f844dcbb0 x21 0000007f84639000 x22 0000000000000000 x23 0000000000000006
x24 0000007f845b2000 x25 0000007ff8f33bc0 x26 0000007f843df000 x27 000000559dc730c0
x28 0000007f84639788 x29 0000007f844dc9c0 x30 0000007f845b38c4
sp 0000007f844dc9c0 pc 0000007f845f28e0
v0 2f2f2f2f2f2f2f2f v1 5f6474656e62696c v2 000000000000006f v3 0000000000000000
v4 8020080280200800 v5 0000000000000000 v6 0000000000000000 v7 8020080280200802
v8 0000000000000000 v9 0000000000000000 v10 0000000000000000 v11 0000000000000000
v12 0000000000000000 v13 0000000000000000 v14 0000000000000000 v15 0000000000000000
v16 4010040140100401 v17 0000aaa800000000 v18 8020080280200800 v19 0000000000000000
v20 0000000000000000 v21 0000000000000000 v22 0000000000000000 v23 0000000000000000
v24 0000000000000000 v25 0000000000000000 v26 0000000000000000 v27 0000000000000000
v28 0000000000000000 v29 0000000000000000 v30 0000000000000000 v31 0000000000000000
backtrace:
#00 pc 00000000000588e0 /system/lib64/libc.so (tgkill+8)
#01 pc 00000000000198c0 /system/lib64/libc.so (pthread_kill+160)
#02 pc 000000000001ab34 /system/lib64/libc.so (raise+28)
#03 pc 00000000000148bc /system/lib64/libc.so (abort+60)
#04 pc 00000000000016e0 /system/xbin/crasher64
#05 pc 00000000000017f0 /system/xbin/crasher64
#06 pc 0000000000018958 /system/lib64/libc.so (__pthread_start(void*)+52)
#07 pc 0000000000014e90 /system/lib64/libc.so (__start_thread+16)
"""
mips = """
Build fingerprint: 'Android/aosp_mips/generic_mips:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys'
Revision: '0'
ABI: 'mips'
pid: 958, tid: 960, name: crasher >>> crasher <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
zr 00000000 at 802babc0 v0 00000000 v1 77b99dd0
a0 000003be a1 000003c0 a2 00000006 a3 00000000
t0 00000000 t1 9e7f5440 t2 00000020 t3 ffffff18
t4 77a9c000 t5 00000001 t6 00000000 t7 00000000
s0 000003c0 s1 77b99dd8 s2 00000000 s3 00000006
s4 77db2028 s5 000003be s6 77c39fa8 s7 77b99dd0
t8 00000000 t9 77c89e80 k0 00000000 k1 00000000
gp 77cce350 sp 77b99c78 s8 77db2020 ra 77c3b48c
hi 00000000 lo 00000008 bva 7fff7008 epc 77c89e94
backtrace:
#00 pc 00067e94 /system/lib/libc.so (tgkill+20)
#01 pc 0001948c /system/lib/libc.so (pthread_kill+244)
#02 pc 0001b0e8 /system/lib/libc.so (raise+60)
#03 pc 00012908 /system/lib/libc.so (abort+104)
#04 pc 000012a4 /system/xbin/crasher
#05 pc 00018008 /system/lib/libc.so (__pthread_start(void*)+96)
#06 pc 00013198 /system/lib/libc.so (__start_thread+36)
"""
mips64 = """
Build fingerprint: 'Android/aosp_mips64/generic_mips64:5.1.51/AOSP/agampe05040015:userdebug/test-keys'
Revision: '1'
ABI: 'mips64'
pid: 342, tid: 342, name: crasher64 >>> crasher64 <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
zr 0000000000000000 at 0000000000000001 v0 0000000000000000 v1 000000ffec1c6528
a0 0000000000000156 a1 0000000000000156 a2 0000000000000006 a3 0000000000000000
a4 000000000000ffff a5 fffffffffffffffc a6 0000000000000000 a7 0000000000000001
t0 0000000000000001 t1 0000000000000000 t2 0000000000000001 t3 0000000000000001
s0 0000000000000002 s1 000000ffec1c6538 s2 000000ffec1c6478 s3 0000000000000006
s4 0000000000100000 s5 000000fff1d44f98 s6 000000fff186c488 s7 0000000000000000
t8 ffffffffffff0000 t9 000000ffec01c2a0 k0 0000000000000000 k1 0000000000000000
gp 000000ffec0a6680 sp 000000ffff8c7150 s8 0000000000100206 ra 000000ffec016684
hi 0000000000000000 lo 0000000000000000 bva 000000ffffffe010 epc 000000ffec01c2a8
backtrace:
#00 pc 00000000000832a8 /system/lib64/libc.so (tgkill+8)
#01 pc 000000000007d684 /system/lib64/libc.so (pthread_kill+116)
#02 pc 000000000002dd78 /system/lib64/libc.so (raise+56)
#03 pc 000000000002684c /system/lib64/libc.so (abort+92)
#04 pc 000000000000199c /system/xbin/crasher64
#05 pc 000000000002595c /system/lib64/libc.so (__libc_init+140)
#06 pc 0000000000000fd4 /system/xbin/crasher64
#07 pc 0000000000000f80 /system/xbin/crasher64
"""
x86 = """
Build fingerprint: 'Android/aosp_x86_64/generic_x86_64:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys'
Revision: '0'
ABI: 'x86'
pid: 1566, tid: 1568, name: crasher >>> crasher <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
eax 00000000 ebx 0000061e ecx 00000620 edx 00000006
esi f7679dd8 edi 00000000
xcs 00000023 xds 0000002b xes 0000002b xfs 00000003 xss 0000002b
eip f7758ea6 ebp 00000620 esp f7679c60 flags 00000282
backtrace:
#00 pc 00076ea6 /system/lib/libc.so (tgkill+22)
#01 pc 0001dc8b /system/lib/libc.so (pthread_kill+155)
#02 pc 0001f294 /system/lib/libc.so (raise+36)
#03 pc 00017a04 /system/lib/libc.so (abort+84)
#04 pc 00001099 /system/xbin/crasher
#05 pc 0001cd58 /system/lib/libc.so (__pthread_start(void*)+56)
#06 pc 00018169 /system/lib/libc.so (__start_thread+25)
#07 pc 0000ed76 /system/lib/libc.so (__bionic_clone+70)
"""
x86_64 = """
Build fingerprint: 'Android/aosp_x86_64/generic_x86_64:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys'
Revision: '0'
ABI: 'x86_64'
pid: 1608, tid: 1610, name: crasher64 >>> crasher64 <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
rax 0000000000000000 rbx 000000000000064a rcx ffffffffffffffff rdx 0000000000000006
rsi 000000000000064a rdi 0000000000000648
r8 0000000000000001 r9 00007fe218110c98 r10 0000000000000008 r11 0000000000000206
r12 0000000000000000 r13 0000000000000006 r14 00007fe218111ba0 r15 0000000000000648
cs 0000000000000033 ss 000000000000002b
rip 00007fe218201807 rbp 00007fe218111bb0 rsp 00007fe218111a18 eflags 0000000000000206
backtrace:
#00 pc 0000000000077807 /system/lib64/libc.so (tgkill+7)
#01 pc 000000000002243f /system/lib64/libc.so (pthread_kill+143)
#02 pc 0000000000023551 /system/lib64/libc.so (raise+17)
#03 pc 000000000001ce6d /system/lib64/libc.so (abort+61)
#04 pc 0000000000001385 /system/xbin/crasher64
#05 pc 00000000000014a8 /system/xbin/crasher64
#06 pc 00000000000215ae /system/lib64/libc.so (__pthread_start(void*)+46)
#07 pc 000000000001d3eb /system/lib64/libc.so (__start_thread+11)
#08 pc 00000000000138f5 /system/lib64/libc.so (__bionic_clone+53)
"""
libmemunreachable = """
Unreachable memory
48 bytes in 2 unreachable allocations
ABI: 'arm'
24 bytes unreachable at a11e6748
and 24 similar unreachable bytes in 1 allocation
contents:
a11e6748: 63 6f 6d 2e 61 6e 64 72 6f 69 64 2e 73 79 73 74 com.android.syst
a11e6758: 65 6d 75 69 00 00 00 00 emui....
#00 pc 000076ae /system/lib/libcutils.so (set_process_name+45)
#01 pc 000989d6 /system/lib/libandroid_runtime.so (android_os_Process_setArgV0(_JNIEnv*, _jobject*, _jstring*)+125)
"""
# This is a long crash in ASAN format, which does not pad frame numbers. This should be used
# in a test to ensure that the stack is not split into two (see stack_core's test_long_asan_crash).
long_asan_crash = """
Build fingerprint: 'Android/aosp_arm/generic_arm:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys'
ABI: 'arm'
#0 0x727d4dfdaf (/system/lib/libclang_rt.asan-arm-android.so+0x31daf)
#1 0x727d4e00af (/system/lib/libclang_rt.asan-arm-android.so+0x320af)
#2 0x72778db0cf (/data/lib/libc.so+0x740cf)
#3 0x725688a66f (/does/not/matter/a.so+0x1066f)
#4 0x72568a02af (/does/not/matter/a.so+0x262af)
#5 0x725689e313 (/does/not/matter/a.so+0x24313)
#6 0x72568a95eb (/does/not/matter/a.so+0x2f5eb)
#7 0x725688de6f (/does/not/matter/a.so+0x13e6f)
#8 0x72778ceeff (/does/not/matter/a.so+0x67eff)
#9 0x7277884983 (/does/not/matter/a.so+0x1d983)
#10 0x7277884983 (/does/not/matter/a.so+0x1d983)
"""
|
##Config file for lifetime_spyrelet.py in spyre/spyre/spyrelet/
# Device List
devices = {
'analyzer':[
'lantz.drivers.spectrum.MS2721B',
['USB0::0x0B5B::0xFFF9::1118010_150_11::INSTR'],
{}
],
'source':[
'lantz.drivers.mwsource.SynthNVPro',
['ASRL16::INSTR'],
{}
]
}
# Experiment List
spyrelets = {
'freqSweep':[
'spyre.spyrelets.freqSweep_spyrelet_test.Sweep',
{'analyzer': 'analyzer','source': 'source'},
{}
],
} |
class Point:
def __init__(self, x, y):
self.x = x
self.y = y
def __str__(self):
return f'({self.x}, {self.y})'
|
numero_por_extenso = ("zero", "um", "dois", "três", "quatro", "cinco", "seis",
"sete", "oito", "nove", "dez", "onze", "doze", "treze",
"catorze", "quinze", "dezesseis", "dezesete", "dezoito",
"dezenove", "vinte")
sair = "N"
while sair == "N":
numero = int(input("Digite um número entre 0 e 20: "))
while numero < 0 or numero > 20:
numero = int(input("Tente novamente. Digite um número entre 0 e 20: "))
print(f"Você digitou o número {numero_por_extenso[numero]}!")
sair = str(input("Deseja sair? [S/N]: ")).strip().upper()[0]
if sair == "S":
break
print("SAINDO... BYE!")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.