content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
#
# PySNMP MIB module IPFIX-EXPORTER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IPFIX-EXPORTER-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:55:56 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, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint")
InterfaceIndexOrZero, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero")
InetAddressType, InetAddress, InetAutonomousSystemNumber = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddress", "InetAutonomousSystemNumber")
ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup")
Gauge32, Counter64, TimeTicks, mib_2, Unsigned32, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, ModuleIdentity, IpAddress, Bits, MibIdentifier, NotificationType, ObjectIdentity, iso = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "Counter64", "TimeTicks", "mib-2", "Unsigned32", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "ModuleIdentity", "IpAddress", "Bits", "MibIdentifier", "NotificationType", "ObjectIdentity", "iso")
DateAndTime, RowStatus, TruthValue, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DateAndTime", "RowStatus", "TruthValue", "DisplayString", "TextualConvention")
ipfixMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 999))
ipfixMIB.setRevisions(('2006-10-23 12:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: ipfixMIB.setRevisionsDescriptions(('Initial version, published as RFC yyyy.',))
if mibBuilder.loadTexts: ipfixMIB.setLastUpdated('200610231200Z')
if mibBuilder.loadTexts: ipfixMIB.setOrganization('IETF IP Flow Information Export')
if mibBuilder.loadTexts: ipfixMIB.setContactInfo('WG charter: http://www.ietf.org/html.charters/ipfix-charter.html Mailing Lists: General Discussion: ipfix@net.doit.wisc.edu To Subscribe: majordomo@net.doit.wisc.edu In Body: subscribe ipfix Archive: http://ipfix.doit.wisc.edu/archive/ Editor: Thomas Dietz NEC Europe Ltd. Network Laboratories Kurfuersten-Anlage 36 69115 Heidelberg Germany Phone: +49 6221 4342-128 Email: dietz@netlab.nec.de')
if mibBuilder.loadTexts: ipfixMIB.setDescription('The IPFIX MIB defines managed objects for IP flow information export. These objects provide information about managed nodes supporting IP flow information export, including flow information export capabilities, configuration and statistics. They also allow to configure IP flow information export concerning the IP interface at which flow information is gathered, the flow selections methods used, and the collector to which flow information is exported. Copyright (C) The Internet Society (2006). This version of this MIB module is part of RFC yyyy; see the RFC itself for full legal notices.')
class PsampMethodAvailability(TextualConvention, Integer32):
description = 'Used to report the availability of a selection method: available(1) - the method is supported and can be used notAvailable(2) - the method is not available'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("available", 1), ("notAvailable", 2))
ipfixExporter = MibIdentifier((1, 3, 6, 1, 2, 1, 999, 1))
ipfixCollector = MibIdentifier((1, 3, 6, 1, 2, 1, 999, 2))
ipfixPsampExtension = MibIdentifier((1, 3, 6, 1, 2, 1, 999, 3))
ipfixConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 999, 4))
ipfixExporterObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 999, 1, 1))
ipfixReporting = MibIdentifier((1, 3, 6, 1, 2, 1, 999, 1, 1, 1))
ipfixCollectorTable = MibTable((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1), )
if mibBuilder.loadTexts: ipfixCollectorTable.setStatus('current')
if mibBuilder.loadTexts: ipfixCollectorTable.setDescription('This table lists collectors to which reports are exported.')
ipfixCollectorEntry = MibTableRow((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1, 1), ).setIndexNames((0, "IPFIX-EXPORTER-MIB", "ipfixCollectorIndex"))
if mibBuilder.loadTexts: ipfixCollectorEntry.setStatus('current')
if mibBuilder.loadTexts: ipfixCollectorEntry.setDescription('Defines an entry in the ipfixCollectorTable.')
ipfixCollectorIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: ipfixCollectorIndex.setStatus('current')
if mibBuilder.loadTexts: ipfixCollectorIndex.setDescription("The locally arbitrary, but unique identifier of a collector. The value is expected to remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.")
ipfixCollectorDstIpAddressType = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1, 1, 2), InetAddressType()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ipfixCollectorDstIpAddressType.setStatus('current')
if mibBuilder.loadTexts: ipfixCollectorDstIpAddressType.setDescription('The IP address type of the collector.')
ipfixCollectorDstIpAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1, 1, 3), InetAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ipfixCollectorDstIpAddress.setStatus('current')
if mibBuilder.loadTexts: ipfixCollectorDstIpAddress.setDescription('The IP address of the collector.')
ipfixCollectorDstProtocol = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256)).clone(132)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ipfixCollectorDstProtocol.setStatus('current')
if mibBuilder.loadTexts: ipfixCollectorDstProtocol.setDescription('The transport protocol used for exporting sampled packets to the collector. The recommended protocols are TCP (6), UDP (17) and SCTP (132). The default is SCTP.')
ipfixCollectorDstPort = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ipfixCollectorDstPort.setStatus('current')
if mibBuilder.loadTexts: ipfixCollectorDstPort.setDescription('The port number of the collector.')
ipfixCollectorReportsSent = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfixCollectorReportsSent.setStatus('current')
if mibBuilder.loadTexts: ipfixCollectorReportsSent.setDescription('The number of reports sent to the collector.')
ipfixCollectorGroupTable = MibTable((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 2), )
if mibBuilder.loadTexts: ipfixCollectorGroupTable.setStatus('current')
if mibBuilder.loadTexts: ipfixCollectorGroupTable.setDescription('This table lists groups of collectors to which flow records packets are exported. If flow records are exported to only one collector the group consists of exactly one collector.')
ipfixCollectorGroupEntry = MibTableRow((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 2, 1), ).setIndexNames((0, "IPFIX-EXPORTER-MIB", "ipfixCollectorGroupIndex"), (0, "IPFIX-EXPORTER-MIB", "ipfixCollectorIndex"))
if mibBuilder.loadTexts: ipfixCollectorGroupEntry.setStatus('current')
if mibBuilder.loadTexts: ipfixCollectorGroupEntry.setDescription('Defines an entry in the ipfixCollectorGroupTable.')
ipfixCollectorGroupIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: ipfixCollectorGroupIndex.setStatus('current')
if mibBuilder.loadTexts: ipfixCollectorGroupIndex.setDescription("The locally arbitrary, but unique identifier of a collector group. The value is expected to remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.")
ipfixTemplateTable = MibTable((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 3), )
if mibBuilder.loadTexts: ipfixTemplateTable.setStatus('current')
if mibBuilder.loadTexts: ipfixTemplateTable.setDescription('This table lists templates used by the exporter.')
ipfixTemplateEntry = MibTableRow((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 3, 1), ).setIndexNames((0, "IPFIX-EXPORTER-MIB", "ipfixObservationDomainId"), (0, "IPFIX-EXPORTER-MIB", "ipfixTemplateId"), (0, "IPFIX-EXPORTER-MIB", "ipfixTemplateIndex"))
if mibBuilder.loadTexts: ipfixTemplateEntry.setStatus('current')
if mibBuilder.loadTexts: ipfixTemplateEntry.setDescription('Defines an entry in the ipfixTemplateTable.')
ipfixTemplateId = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: ipfixTemplateId.setReference('draft-ietf-ipfix-sample-tech-04.txt, Section 5.1')
if mibBuilder.loadTexts: ipfixTemplateId.setStatus('current')
if mibBuilder.loadTexts: ipfixTemplateId.setDescription('The unique identifier for the template.')
ipfixTemplateIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: ipfixTemplateIndex.setStatus('current')
if mibBuilder.loadTexts: ipfixTemplateIndex.setDescription("The locally arbitrary, but unique identifier of a field Id in the template identified by ipfixTemplateId. The value is expected to remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.")
ipfixTemplateFieldId = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfixTemplateFieldId.setReference('draft-ietf-ipfix-sample-tech-04.txt, IPFIX/PSAMP INFO MODEL')
if mibBuilder.loadTexts: ipfixTemplateFieldId.setStatus('current')
if mibBuilder.loadTexts: ipfixTemplateFieldId.setDescription('The Field Id at position ipfixTemplateIndex in the template ipfixTemplateId. This implicitly gives the data type and state values that are exported.')
ipfixTemplateFieldLength = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 3, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfixTemplateFieldLength.setStatus('current')
if mibBuilder.loadTexts: ipfixTemplateFieldLength.setDescription('The Length of the Field. Used to indicate if reduced encoding or variable length field is used.')
ipfixInstances = MibIdentifier((1, 3, 6, 1, 2, 1, 999, 1, 1, 2))
ipfixObservationDomainTable = MibTable((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 1), )
if mibBuilder.loadTexts: ipfixObservationDomainTable.setStatus('current')
if mibBuilder.loadTexts: ipfixObservationDomainTable.setDescription('This table lists the Observation Domains used at the managed node.')
ipfixObservationDomainEntry = MibTableRow((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 1, 1), ).setIndexNames((0, "IPFIX-EXPORTER-MIB", "ipfixObservationDomainId"))
if mibBuilder.loadTexts: ipfixObservationDomainEntry.setStatus('current')
if mibBuilder.loadTexts: ipfixObservationDomainEntry.setDescription('Defines an entry in the ipfixObservationDomainTable.')
ipfixObservationDomainId = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: ipfixObservationDomainId.setStatus('current')
if mibBuilder.loadTexts: ipfixObservationDomainId.setDescription("The locally arbitrary, but unique identifier of an Observation Domain. The value is expected to remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.")
ipfixInstanceObservationPoint = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 1, 1, 2), ObjectIdentifier()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ipfixInstanceObservationPoint.setStatus('current')
if mibBuilder.loadTexts: ipfixInstanceObservationPoint.setDescription('The point where the packet is observed. If it is e.g, an interface it points to the mib-II object of the interface.')
ipfixInstanceStartTime = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 1, 1, 3), DateAndTime()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ipfixInstanceStartTime.setStatus('current')
if mibBuilder.loadTexts: ipfixInstanceStartTime.setDescription('The date and time when exporting for this parameter set should start.')
ipfixInstanceStopTime = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 1, 1, 4), DateAndTime()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ipfixInstanceStopTime.setStatus('current')
if mibBuilder.loadTexts: ipfixInstanceStopTime.setDescription('The date and time when exporting for this parameter set should stop.')
ipfixInstanceTable = MibTable((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2), )
if mibBuilder.loadTexts: ipfixInstanceTable.setStatus('current')
if mibBuilder.loadTexts: ipfixInstanceTable.setDescription('This table lists active instances of packet sampling at the managed node.')
ipfixInstanceEntry = MibTableRow((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1), ).setIndexNames((0, "IPFIX-EXPORTER-MIB", "ipfixInstanceIndex"), (0, "IPFIX-EXPORTER-MIB", "ipfixObservationDomainId"))
if mibBuilder.loadTexts: ipfixInstanceEntry.setStatus('current')
if mibBuilder.loadTexts: ipfixInstanceEntry.setDescription('Defines an entry in the ipfixInstanceTable.')
ipfixInstanceIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: ipfixInstanceIndex.setStatus('current')
if mibBuilder.loadTexts: ipfixInstanceIndex.setDescription("The locally arbitrary, but unique identifier of an instance. The value is expected to remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.")
ipfixInstanceTemplateId = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ipfixInstanceTemplateId.setStatus('current')
if mibBuilder.loadTexts: ipfixInstanceTemplateId.setDescription('The Id of a template in the template table. This implies the knowledge about the method chain from the method chain table. Furthermore it links the instance, method chain (selector) and template together. The identified template is applied to the stream of filtered/sampled packets observed after applying the method chain at the observation point.')
ipfixInstanceCollectorGroupIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 3), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ipfixInstanceCollectorGroupIndex.setStatus('current')
if mibBuilder.loadTexts: ipfixInstanceCollectorGroupIndex.setDescription('The index of the collector group to which packet reports are sent.')
ipfixInstancePacketsObserved = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfixInstancePacketsObserved.setStatus('current')
if mibBuilder.loadTexts: ipfixInstancePacketsObserved.setDescription('The number of packets observed at the observation point.')
ipfixInstancePacketsDropped = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfixInstancePacketsDropped.setStatus('current')
if mibBuilder.loadTexts: ipfixInstancePacketsDropped.setDescription('The number of packets dropped while filtering/sampling packets.')
ipfixInstanceProcessId = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfixInstanceProcessId.setStatus('current')
if mibBuilder.loadTexts: ipfixInstanceProcessId.setDescription('The process id of the metering process used by this instance.')
ipfixInstanceReportingProcessId = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfixInstanceReportingProcessId.setStatus('current')
if mibBuilder.loadTexts: ipfixInstanceReportingProcessId.setDescription('The process id of the reporting process used by this instance.')
ipfixInstanceReportsSent = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfixInstanceReportsSent.setStatus('current')
if mibBuilder.loadTexts: ipfixInstanceReportsSent.setDescription('The number of reports on sampled packets sent to the collector.')
ipfixMethodChainTable = MibTable((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 4), )
if mibBuilder.loadTexts: ipfixMethodChainTable.setStatus('current')
if mibBuilder.loadTexts: ipfixMethodChainTable.setDescription('This table contains method chains lists and connects them to the instances where they are applied to different observation points. The filtered/sampled packets are then exported.')
ipfixMethodChainEntry = MibTableRow((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 4, 1), ).setIndexNames((0, "IPFIX-EXPORTER-MIB", "ipfixInstanceIndex"), (0, "IPFIX-EXPORTER-MIB", "ipfixMethodChainIndex"))
if mibBuilder.loadTexts: ipfixMethodChainEntry.setStatus('current')
if mibBuilder.loadTexts: ipfixMethodChainEntry.setDescription('Defines an entry in the ipfixMethodChainTable.')
ipfixMethodChainIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: ipfixMethodChainIndex.setStatus('current')
if mibBuilder.loadTexts: ipfixMethodChainIndex.setDescription("The locally arbitrary, but unique identifier of a template. The value is expected to remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.")
ipfixMethodChainMethod = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 4, 1, 3), ObjectIdentifier()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ipfixMethodChainMethod.setStatus('current')
if mibBuilder.loadTexts: ipfixMethodChainMethod.setDescription('The method used for the template at a certain position in the method chain.')
ipfixMethodChainPacketsObserved = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 4, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfixMethodChainPacketsObserved.setStatus('current')
if mibBuilder.loadTexts: ipfixMethodChainPacketsObserved.setDescription('The number of packets observed at the method entry point.')
ipfixMethodChainPacketsDropped = MibTableColumn((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 4, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipfixMethodChainPacketsDropped.setStatus('current')
if mibBuilder.loadTexts: ipfixMethodChainPacketsDropped.setDescription('The number of packets dropped while selecting packets.')
ipfixCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 999, 4, 1))
ipfixGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 999, 4, 2))
ipfixCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 999, 4, 1, 1)).setObjects(("IPFIX-EXPORTER-MIB", "ipfixGroupMetering"), ("IPFIX-EXPORTER-MIB", "ipfixGroupReporting"), ("IPFIX-EXPORTER-MIB", "ipfixGroupStatistics"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ipfixCompliance = ipfixCompliance.setStatus('current')
if mibBuilder.loadTexts: ipfixCompliance.setDescription('An implementation that complies to this module must implement the objects defined in the mandatory groups ipfixGroupMetering and ipfixGroupReporting. The implementation of all other objects depends on the implementation of the corresponding functionality in the equipment.')
ipfixGroupMetering = ObjectGroup((1, 3, 6, 1, 2, 1, 999, 4, 2, 1)).setObjects(("IPFIX-EXPORTER-MIB", "ipfixTemplateFieldId"), ("IPFIX-EXPORTER-MIB", "ipfixTemplateFieldLength"), ("IPFIX-EXPORTER-MIB", "ipfixMethodChainMethod"), ("IPFIX-EXPORTER-MIB", "ipfixInstanceObservationPoint"), ("IPFIX-EXPORTER-MIB", "ipfixInstanceStartTime"), ("IPFIX-EXPORTER-MIB", "ipfixInstanceStopTime"), ("IPFIX-EXPORTER-MIB", "ipfixInstanceTemplateId"), ("IPFIX-EXPORTER-MIB", "ipfixInstanceCollectorGroupIndex"), ("IPFIX-EXPORTER-MIB", "ipfixInstanceProcessId"), ("IPFIX-EXPORTER-MIB", "ipfixInstanceReportingProcessId"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ipfixGroupMetering = ipfixGroupMetering.setStatus('current')
if mibBuilder.loadTexts: ipfixGroupMetering.setDescription('All objects that are basic for the metering process. It contains a basic metering function (ipfixSelectAll), The template definitions needed for the export of data, the method chain that fixes the metering functions applied to the observation point and several parameters concering the export process and the collectors.')
ipfixGroupReporting = ObjectGroup((1, 3, 6, 1, 2, 1, 999, 4, 2, 2)).setObjects(("IPFIX-EXPORTER-MIB", "ipfixCollectorDstIpAddressType"), ("IPFIX-EXPORTER-MIB", "ipfixCollectorDstIpAddress"), ("IPFIX-EXPORTER-MIB", "ipfixCollectorDstProtocol"), ("IPFIX-EXPORTER-MIB", "ipfixCollectorDstPort"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ipfixGroupReporting = ipfixGroupReporting.setStatus('current')
if mibBuilder.loadTexts: ipfixGroupReporting.setDescription('These objects define the collectors i.e., the destinations of the exporting process.')
ipfixGroupStatistics = ObjectGroup((1, 3, 6, 1, 2, 1, 999, 4, 2, 3)).setObjects(("IPFIX-EXPORTER-MIB", "ipfixCollectorReportsSent"), ("IPFIX-EXPORTER-MIB", "ipfixMethodChainPacketsObserved"), ("IPFIX-EXPORTER-MIB", "ipfixMethodChainPacketsDropped"), ("IPFIX-EXPORTER-MIB", "ipfixInstancePacketsObserved"), ("IPFIX-EXPORTER-MIB", "ipfixInstanceReportsSent"), ("IPFIX-EXPORTER-MIB", "ipfixInstancePacketsDropped"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ipfixGroupStatistics = ipfixGroupStatistics.setStatus('current')
if mibBuilder.loadTexts: ipfixGroupStatistics.setDescription('These objects contain statistical values gathered at different points in the metering process.')
mibBuilder.exportSymbols("IPFIX-EXPORTER-MIB", ipfixMethodChainPacketsDropped=ipfixMethodChainPacketsDropped, ipfixTemplateIndex=ipfixTemplateIndex, ipfixPsampExtension=ipfixPsampExtension, ipfixMethodChainIndex=ipfixMethodChainIndex, ipfixInstanceIndex=ipfixInstanceIndex, ipfixCompliance=ipfixCompliance, ipfixCollectorGroupTable=ipfixCollectorGroupTable, ipfixCollectorEntry=ipfixCollectorEntry, ipfixObservationDomainTable=ipfixObservationDomainTable, ipfixObservationDomainId=ipfixObservationDomainId, ipfixCollectorDstIpAddress=ipfixCollectorDstIpAddress, ipfixInstanceEntry=ipfixInstanceEntry, ipfixInstancePacketsDropped=ipfixInstancePacketsDropped, ipfixExporter=ipfixExporter, PYSNMP_MODULE_ID=ipfixMIB, ipfixConformance=ipfixConformance, PsampMethodAvailability=PsampMethodAvailability, ipfixGroups=ipfixGroups, ipfixInstanceStopTime=ipfixInstanceStopTime, ipfixInstanceProcessId=ipfixInstanceProcessId, ipfixInstanceReportingProcessId=ipfixInstanceReportingProcessId, ipfixExporterObjects=ipfixExporterObjects, ipfixInstanceObservationPoint=ipfixInstanceObservationPoint, ipfixTemplateTable=ipfixTemplateTable, ipfixTemplateEntry=ipfixTemplateEntry, ipfixGroupMetering=ipfixGroupMetering, ipfixReporting=ipfixReporting, ipfixCollectorIndex=ipfixCollectorIndex, ipfixInstanceCollectorGroupIndex=ipfixInstanceCollectorGroupIndex, ipfixCompliances=ipfixCompliances, ipfixCollector=ipfixCollector, ipfixTemplateId=ipfixTemplateId, ipfixCollectorDstIpAddressType=ipfixCollectorDstIpAddressType, ipfixCollectorGroupIndex=ipfixCollectorGroupIndex, ipfixInstanceTemplateId=ipfixInstanceTemplateId, ipfixInstanceTable=ipfixInstanceTable, ipfixInstanceReportsSent=ipfixInstanceReportsSent, ipfixMethodChainMethod=ipfixMethodChainMethod, ipfixCollectorDstProtocol=ipfixCollectorDstProtocol, ipfixCollectorTable=ipfixCollectorTable, ipfixGroupStatistics=ipfixGroupStatistics, ipfixObservationDomainEntry=ipfixObservationDomainEntry, ipfixCollectorGroupEntry=ipfixCollectorGroupEntry, ipfixInstanceStartTime=ipfixInstanceStartTime, ipfixInstancePacketsObserved=ipfixInstancePacketsObserved, ipfixInstances=ipfixInstances, ipfixMethodChainEntry=ipfixMethodChainEntry, ipfixMIB=ipfixMIB, ipfixGroupReporting=ipfixGroupReporting, ipfixMethodChainPacketsObserved=ipfixMethodChainPacketsObserved, ipfixCollectorReportsSent=ipfixCollectorReportsSent, ipfixTemplateFieldLength=ipfixTemplateFieldLength, ipfixCollectorDstPort=ipfixCollectorDstPort, ipfixMethodChainTable=ipfixMethodChainTable, ipfixTemplateFieldId=ipfixTemplateFieldId)
| (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, constraints_intersection, value_range_constraint, value_size_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint')
(interface_index_or_zero,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndexOrZero')
(inet_address_type, inet_address, inet_autonomous_system_number) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType', 'InetAddress', 'InetAutonomousSystemNumber')
(module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup')
(gauge32, counter64, time_ticks, mib_2, unsigned32, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, module_identity, ip_address, bits, mib_identifier, notification_type, object_identity, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'Counter64', 'TimeTicks', 'mib-2', 'Unsigned32', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'ModuleIdentity', 'IpAddress', 'Bits', 'MibIdentifier', 'NotificationType', 'ObjectIdentity', 'iso')
(date_and_time, row_status, truth_value, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DateAndTime', 'RowStatus', 'TruthValue', 'DisplayString', 'TextualConvention')
ipfix_mib = module_identity((1, 3, 6, 1, 2, 1, 999))
ipfixMIB.setRevisions(('2006-10-23 12:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
ipfixMIB.setRevisionsDescriptions(('Initial version, published as RFC yyyy.',))
if mibBuilder.loadTexts:
ipfixMIB.setLastUpdated('200610231200Z')
if mibBuilder.loadTexts:
ipfixMIB.setOrganization('IETF IP Flow Information Export')
if mibBuilder.loadTexts:
ipfixMIB.setContactInfo('WG charter: http://www.ietf.org/html.charters/ipfix-charter.html Mailing Lists: General Discussion: ipfix@net.doit.wisc.edu To Subscribe: majordomo@net.doit.wisc.edu In Body: subscribe ipfix Archive: http://ipfix.doit.wisc.edu/archive/ Editor: Thomas Dietz NEC Europe Ltd. Network Laboratories Kurfuersten-Anlage 36 69115 Heidelberg Germany Phone: +49 6221 4342-128 Email: dietz@netlab.nec.de')
if mibBuilder.loadTexts:
ipfixMIB.setDescription('The IPFIX MIB defines managed objects for IP flow information export. These objects provide information about managed nodes supporting IP flow information export, including flow information export capabilities, configuration and statistics. They also allow to configure IP flow information export concerning the IP interface at which flow information is gathered, the flow selections methods used, and the collector to which flow information is exported. Copyright (C) The Internet Society (2006). This version of this MIB module is part of RFC yyyy; see the RFC itself for full legal notices.')
class Psampmethodavailability(TextualConvention, Integer32):
description = 'Used to report the availability of a selection method: available(1) - the method is supported and can be used notAvailable(2) - the method is not available'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('available', 1), ('notAvailable', 2))
ipfix_exporter = mib_identifier((1, 3, 6, 1, 2, 1, 999, 1))
ipfix_collector = mib_identifier((1, 3, 6, 1, 2, 1, 999, 2))
ipfix_psamp_extension = mib_identifier((1, 3, 6, 1, 2, 1, 999, 3))
ipfix_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 999, 4))
ipfix_exporter_objects = mib_identifier((1, 3, 6, 1, 2, 1, 999, 1, 1))
ipfix_reporting = mib_identifier((1, 3, 6, 1, 2, 1, 999, 1, 1, 1))
ipfix_collector_table = mib_table((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1))
if mibBuilder.loadTexts:
ipfixCollectorTable.setStatus('current')
if mibBuilder.loadTexts:
ipfixCollectorTable.setDescription('This table lists collectors to which reports are exported.')
ipfix_collector_entry = mib_table_row((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1, 1)).setIndexNames((0, 'IPFIX-EXPORTER-MIB', 'ipfixCollectorIndex'))
if mibBuilder.loadTexts:
ipfixCollectorEntry.setStatus('current')
if mibBuilder.loadTexts:
ipfixCollectorEntry.setDescription('Defines an entry in the ipfixCollectorTable.')
ipfix_collector_index = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647)))
if mibBuilder.loadTexts:
ipfixCollectorIndex.setStatus('current')
if mibBuilder.loadTexts:
ipfixCollectorIndex.setDescription("The locally arbitrary, but unique identifier of a collector. The value is expected to remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.")
ipfix_collector_dst_ip_address_type = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1, 1, 2), inet_address_type()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ipfixCollectorDstIpAddressType.setStatus('current')
if mibBuilder.loadTexts:
ipfixCollectorDstIpAddressType.setDescription('The IP address type of the collector.')
ipfix_collector_dst_ip_address = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1, 1, 3), inet_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ipfixCollectorDstIpAddress.setStatus('current')
if mibBuilder.loadTexts:
ipfixCollectorDstIpAddress.setDescription('The IP address of the collector.')
ipfix_collector_dst_protocol = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 256)).clone(132)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ipfixCollectorDstProtocol.setStatus('current')
if mibBuilder.loadTexts:
ipfixCollectorDstProtocol.setDescription('The transport protocol used for exporting sampled packets to the collector. The recommended protocols are TCP (6), UDP (17) and SCTP (132). The default is SCTP.')
ipfix_collector_dst_port = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ipfixCollectorDstPort.setStatus('current')
if mibBuilder.loadTexts:
ipfixCollectorDstPort.setDescription('The port number of the collector.')
ipfix_collector_reports_sent = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfixCollectorReportsSent.setStatus('current')
if mibBuilder.loadTexts:
ipfixCollectorReportsSent.setDescription('The number of reports sent to the collector.')
ipfix_collector_group_table = mib_table((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 2))
if mibBuilder.loadTexts:
ipfixCollectorGroupTable.setStatus('current')
if mibBuilder.loadTexts:
ipfixCollectorGroupTable.setDescription('This table lists groups of collectors to which flow records packets are exported. If flow records are exported to only one collector the group consists of exactly one collector.')
ipfix_collector_group_entry = mib_table_row((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 2, 1)).setIndexNames((0, 'IPFIX-EXPORTER-MIB', 'ipfixCollectorGroupIndex'), (0, 'IPFIX-EXPORTER-MIB', 'ipfixCollectorIndex'))
if mibBuilder.loadTexts:
ipfixCollectorGroupEntry.setStatus('current')
if mibBuilder.loadTexts:
ipfixCollectorGroupEntry.setDescription('Defines an entry in the ipfixCollectorGroupTable.')
ipfix_collector_group_index = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647)))
if mibBuilder.loadTexts:
ipfixCollectorGroupIndex.setStatus('current')
if mibBuilder.loadTexts:
ipfixCollectorGroupIndex.setDescription("The locally arbitrary, but unique identifier of a collector group. The value is expected to remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.")
ipfix_template_table = mib_table((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 3))
if mibBuilder.loadTexts:
ipfixTemplateTable.setStatus('current')
if mibBuilder.loadTexts:
ipfixTemplateTable.setDescription('This table lists templates used by the exporter.')
ipfix_template_entry = mib_table_row((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 3, 1)).setIndexNames((0, 'IPFIX-EXPORTER-MIB', 'ipfixObservationDomainId'), (0, 'IPFIX-EXPORTER-MIB', 'ipfixTemplateId'), (0, 'IPFIX-EXPORTER-MIB', 'ipfixTemplateIndex'))
if mibBuilder.loadTexts:
ipfixTemplateEntry.setStatus('current')
if mibBuilder.loadTexts:
ipfixTemplateEntry.setDescription('Defines an entry in the ipfixTemplateTable.')
ipfix_template_id = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647)))
if mibBuilder.loadTexts:
ipfixTemplateId.setReference('draft-ietf-ipfix-sample-tech-04.txt, Section 5.1')
if mibBuilder.loadTexts:
ipfixTemplateId.setStatus('current')
if mibBuilder.loadTexts:
ipfixTemplateId.setDescription('The unique identifier for the template.')
ipfix_template_index = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647)))
if mibBuilder.loadTexts:
ipfixTemplateIndex.setStatus('current')
if mibBuilder.loadTexts:
ipfixTemplateIndex.setDescription("The locally arbitrary, but unique identifier of a field Id in the template identified by ipfixTemplateId. The value is expected to remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.")
ipfix_template_field_id = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfixTemplateFieldId.setReference('draft-ietf-ipfix-sample-tech-04.txt, IPFIX/PSAMP INFO MODEL')
if mibBuilder.loadTexts:
ipfixTemplateFieldId.setStatus('current')
if mibBuilder.loadTexts:
ipfixTemplateFieldId.setDescription('The Field Id at position ipfixTemplateIndex in the template ipfixTemplateId. This implicitly gives the data type and state values that are exported.')
ipfix_template_field_length = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 1, 3, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfixTemplateFieldLength.setStatus('current')
if mibBuilder.loadTexts:
ipfixTemplateFieldLength.setDescription('The Length of the Field. Used to indicate if reduced encoding or variable length field is used.')
ipfix_instances = mib_identifier((1, 3, 6, 1, 2, 1, 999, 1, 1, 2))
ipfix_observation_domain_table = mib_table((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 1))
if mibBuilder.loadTexts:
ipfixObservationDomainTable.setStatus('current')
if mibBuilder.loadTexts:
ipfixObservationDomainTable.setDescription('This table lists the Observation Domains used at the managed node.')
ipfix_observation_domain_entry = mib_table_row((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 1, 1)).setIndexNames((0, 'IPFIX-EXPORTER-MIB', 'ipfixObservationDomainId'))
if mibBuilder.loadTexts:
ipfixObservationDomainEntry.setStatus('current')
if mibBuilder.loadTexts:
ipfixObservationDomainEntry.setDescription('Defines an entry in the ipfixObservationDomainTable.')
ipfix_observation_domain_id = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647)))
if mibBuilder.loadTexts:
ipfixObservationDomainId.setStatus('current')
if mibBuilder.loadTexts:
ipfixObservationDomainId.setDescription("The locally arbitrary, but unique identifier of an Observation Domain. The value is expected to remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.")
ipfix_instance_observation_point = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 1, 1, 2), object_identifier()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ipfixInstanceObservationPoint.setStatus('current')
if mibBuilder.loadTexts:
ipfixInstanceObservationPoint.setDescription('The point where the packet is observed. If it is e.g, an interface it points to the mib-II object of the interface.')
ipfix_instance_start_time = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 1, 1, 3), date_and_time()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ipfixInstanceStartTime.setStatus('current')
if mibBuilder.loadTexts:
ipfixInstanceStartTime.setDescription('The date and time when exporting for this parameter set should start.')
ipfix_instance_stop_time = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 1, 1, 4), date_and_time()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ipfixInstanceStopTime.setStatus('current')
if mibBuilder.loadTexts:
ipfixInstanceStopTime.setDescription('The date and time when exporting for this parameter set should stop.')
ipfix_instance_table = mib_table((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2))
if mibBuilder.loadTexts:
ipfixInstanceTable.setStatus('current')
if mibBuilder.loadTexts:
ipfixInstanceTable.setDescription('This table lists active instances of packet sampling at the managed node.')
ipfix_instance_entry = mib_table_row((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1)).setIndexNames((0, 'IPFIX-EXPORTER-MIB', 'ipfixInstanceIndex'), (0, 'IPFIX-EXPORTER-MIB', 'ipfixObservationDomainId'))
if mibBuilder.loadTexts:
ipfixInstanceEntry.setStatus('current')
if mibBuilder.loadTexts:
ipfixInstanceEntry.setDescription('Defines an entry in the ipfixInstanceTable.')
ipfix_instance_index = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647)))
if mibBuilder.loadTexts:
ipfixInstanceIndex.setStatus('current')
if mibBuilder.loadTexts:
ipfixInstanceIndex.setDescription("The locally arbitrary, but unique identifier of an instance. The value is expected to remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.")
ipfix_instance_template_id = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ipfixInstanceTemplateId.setStatus('current')
if mibBuilder.loadTexts:
ipfixInstanceTemplateId.setDescription('The Id of a template in the template table. This implies the knowledge about the method chain from the method chain table. Furthermore it links the instance, method chain (selector) and template together. The identified template is applied to the stream of filtered/sampled packets observed after applying the method chain at the observation point.')
ipfix_instance_collector_group_index = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 3), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ipfixInstanceCollectorGroupIndex.setStatus('current')
if mibBuilder.loadTexts:
ipfixInstanceCollectorGroupIndex.setDescription('The index of the collector group to which packet reports are sent.')
ipfix_instance_packets_observed = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfixInstancePacketsObserved.setStatus('current')
if mibBuilder.loadTexts:
ipfixInstancePacketsObserved.setDescription('The number of packets observed at the observation point.')
ipfix_instance_packets_dropped = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfixInstancePacketsDropped.setStatus('current')
if mibBuilder.loadTexts:
ipfixInstancePacketsDropped.setDescription('The number of packets dropped while filtering/sampling packets.')
ipfix_instance_process_id = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfixInstanceProcessId.setStatus('current')
if mibBuilder.loadTexts:
ipfixInstanceProcessId.setDescription('The process id of the metering process used by this instance.')
ipfix_instance_reporting_process_id = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfixInstanceReportingProcessId.setStatus('current')
if mibBuilder.loadTexts:
ipfixInstanceReportingProcessId.setDescription('The process id of the reporting process used by this instance.')
ipfix_instance_reports_sent = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 2, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfixInstanceReportsSent.setStatus('current')
if mibBuilder.loadTexts:
ipfixInstanceReportsSent.setDescription('The number of reports on sampled packets sent to the collector.')
ipfix_method_chain_table = mib_table((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 4))
if mibBuilder.loadTexts:
ipfixMethodChainTable.setStatus('current')
if mibBuilder.loadTexts:
ipfixMethodChainTable.setDescription('This table contains method chains lists and connects them to the instances where they are applied to different observation points. The filtered/sampled packets are then exported.')
ipfix_method_chain_entry = mib_table_row((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 4, 1)).setIndexNames((0, 'IPFIX-EXPORTER-MIB', 'ipfixInstanceIndex'), (0, 'IPFIX-EXPORTER-MIB', 'ipfixMethodChainIndex'))
if mibBuilder.loadTexts:
ipfixMethodChainEntry.setStatus('current')
if mibBuilder.loadTexts:
ipfixMethodChainEntry.setDescription('Defines an entry in the ipfixMethodChainTable.')
ipfix_method_chain_index = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647)))
if mibBuilder.loadTexts:
ipfixMethodChainIndex.setStatus('current')
if mibBuilder.loadTexts:
ipfixMethodChainIndex.setDescription("The locally arbitrary, but unique identifier of a template. The value is expected to remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.")
ipfix_method_chain_method = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 4, 1, 3), object_identifier()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ipfixMethodChainMethod.setStatus('current')
if mibBuilder.loadTexts:
ipfixMethodChainMethod.setDescription('The method used for the template at a certain position in the method chain.')
ipfix_method_chain_packets_observed = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 4, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfixMethodChainPacketsObserved.setStatus('current')
if mibBuilder.loadTexts:
ipfixMethodChainPacketsObserved.setDescription('The number of packets observed at the method entry point.')
ipfix_method_chain_packets_dropped = mib_table_column((1, 3, 6, 1, 2, 1, 999, 1, 1, 2, 4, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipfixMethodChainPacketsDropped.setStatus('current')
if mibBuilder.loadTexts:
ipfixMethodChainPacketsDropped.setDescription('The number of packets dropped while selecting packets.')
ipfix_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 999, 4, 1))
ipfix_groups = mib_identifier((1, 3, 6, 1, 2, 1, 999, 4, 2))
ipfix_compliance = module_compliance((1, 3, 6, 1, 2, 1, 999, 4, 1, 1)).setObjects(('IPFIX-EXPORTER-MIB', 'ipfixGroupMetering'), ('IPFIX-EXPORTER-MIB', 'ipfixGroupReporting'), ('IPFIX-EXPORTER-MIB', 'ipfixGroupStatistics'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ipfix_compliance = ipfixCompliance.setStatus('current')
if mibBuilder.loadTexts:
ipfixCompliance.setDescription('An implementation that complies to this module must implement the objects defined in the mandatory groups ipfixGroupMetering and ipfixGroupReporting. The implementation of all other objects depends on the implementation of the corresponding functionality in the equipment.')
ipfix_group_metering = object_group((1, 3, 6, 1, 2, 1, 999, 4, 2, 1)).setObjects(('IPFIX-EXPORTER-MIB', 'ipfixTemplateFieldId'), ('IPFIX-EXPORTER-MIB', 'ipfixTemplateFieldLength'), ('IPFIX-EXPORTER-MIB', 'ipfixMethodChainMethod'), ('IPFIX-EXPORTER-MIB', 'ipfixInstanceObservationPoint'), ('IPFIX-EXPORTER-MIB', 'ipfixInstanceStartTime'), ('IPFIX-EXPORTER-MIB', 'ipfixInstanceStopTime'), ('IPFIX-EXPORTER-MIB', 'ipfixInstanceTemplateId'), ('IPFIX-EXPORTER-MIB', 'ipfixInstanceCollectorGroupIndex'), ('IPFIX-EXPORTER-MIB', 'ipfixInstanceProcessId'), ('IPFIX-EXPORTER-MIB', 'ipfixInstanceReportingProcessId'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ipfix_group_metering = ipfixGroupMetering.setStatus('current')
if mibBuilder.loadTexts:
ipfixGroupMetering.setDescription('All objects that are basic for the metering process. It contains a basic metering function (ipfixSelectAll), The template definitions needed for the export of data, the method chain that fixes the metering functions applied to the observation point and several parameters concering the export process and the collectors.')
ipfix_group_reporting = object_group((1, 3, 6, 1, 2, 1, 999, 4, 2, 2)).setObjects(('IPFIX-EXPORTER-MIB', 'ipfixCollectorDstIpAddressType'), ('IPFIX-EXPORTER-MIB', 'ipfixCollectorDstIpAddress'), ('IPFIX-EXPORTER-MIB', 'ipfixCollectorDstProtocol'), ('IPFIX-EXPORTER-MIB', 'ipfixCollectorDstPort'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ipfix_group_reporting = ipfixGroupReporting.setStatus('current')
if mibBuilder.loadTexts:
ipfixGroupReporting.setDescription('These objects define the collectors i.e., the destinations of the exporting process.')
ipfix_group_statistics = object_group((1, 3, 6, 1, 2, 1, 999, 4, 2, 3)).setObjects(('IPFIX-EXPORTER-MIB', 'ipfixCollectorReportsSent'), ('IPFIX-EXPORTER-MIB', 'ipfixMethodChainPacketsObserved'), ('IPFIX-EXPORTER-MIB', 'ipfixMethodChainPacketsDropped'), ('IPFIX-EXPORTER-MIB', 'ipfixInstancePacketsObserved'), ('IPFIX-EXPORTER-MIB', 'ipfixInstanceReportsSent'), ('IPFIX-EXPORTER-MIB', 'ipfixInstancePacketsDropped'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ipfix_group_statistics = ipfixGroupStatistics.setStatus('current')
if mibBuilder.loadTexts:
ipfixGroupStatistics.setDescription('These objects contain statistical values gathered at different points in the metering process.')
mibBuilder.exportSymbols('IPFIX-EXPORTER-MIB', ipfixMethodChainPacketsDropped=ipfixMethodChainPacketsDropped, ipfixTemplateIndex=ipfixTemplateIndex, ipfixPsampExtension=ipfixPsampExtension, ipfixMethodChainIndex=ipfixMethodChainIndex, ipfixInstanceIndex=ipfixInstanceIndex, ipfixCompliance=ipfixCompliance, ipfixCollectorGroupTable=ipfixCollectorGroupTable, ipfixCollectorEntry=ipfixCollectorEntry, ipfixObservationDomainTable=ipfixObservationDomainTable, ipfixObservationDomainId=ipfixObservationDomainId, ipfixCollectorDstIpAddress=ipfixCollectorDstIpAddress, ipfixInstanceEntry=ipfixInstanceEntry, ipfixInstancePacketsDropped=ipfixInstancePacketsDropped, ipfixExporter=ipfixExporter, PYSNMP_MODULE_ID=ipfixMIB, ipfixConformance=ipfixConformance, PsampMethodAvailability=PsampMethodAvailability, ipfixGroups=ipfixGroups, ipfixInstanceStopTime=ipfixInstanceStopTime, ipfixInstanceProcessId=ipfixInstanceProcessId, ipfixInstanceReportingProcessId=ipfixInstanceReportingProcessId, ipfixExporterObjects=ipfixExporterObjects, ipfixInstanceObservationPoint=ipfixInstanceObservationPoint, ipfixTemplateTable=ipfixTemplateTable, ipfixTemplateEntry=ipfixTemplateEntry, ipfixGroupMetering=ipfixGroupMetering, ipfixReporting=ipfixReporting, ipfixCollectorIndex=ipfixCollectorIndex, ipfixInstanceCollectorGroupIndex=ipfixInstanceCollectorGroupIndex, ipfixCompliances=ipfixCompliances, ipfixCollector=ipfixCollector, ipfixTemplateId=ipfixTemplateId, ipfixCollectorDstIpAddressType=ipfixCollectorDstIpAddressType, ipfixCollectorGroupIndex=ipfixCollectorGroupIndex, ipfixInstanceTemplateId=ipfixInstanceTemplateId, ipfixInstanceTable=ipfixInstanceTable, ipfixInstanceReportsSent=ipfixInstanceReportsSent, ipfixMethodChainMethod=ipfixMethodChainMethod, ipfixCollectorDstProtocol=ipfixCollectorDstProtocol, ipfixCollectorTable=ipfixCollectorTable, ipfixGroupStatistics=ipfixGroupStatistics, ipfixObservationDomainEntry=ipfixObservationDomainEntry, ipfixCollectorGroupEntry=ipfixCollectorGroupEntry, ipfixInstanceStartTime=ipfixInstanceStartTime, ipfixInstancePacketsObserved=ipfixInstancePacketsObserved, ipfixInstances=ipfixInstances, ipfixMethodChainEntry=ipfixMethodChainEntry, ipfixMIB=ipfixMIB, ipfixGroupReporting=ipfixGroupReporting, ipfixMethodChainPacketsObserved=ipfixMethodChainPacketsObserved, ipfixCollectorReportsSent=ipfixCollectorReportsSent, ipfixTemplateFieldLength=ipfixTemplateFieldLength, ipfixCollectorDstPort=ipfixCollectorDstPort, ipfixMethodChainTable=ipfixMethodChainTable, ipfixTemplateFieldId=ipfixTemplateFieldId) |
# Advent of Code 2020, Day 6
with open("../input06", "r") as infile:
lines = infile.readlines()
# check if a line is blank
def blank(l):
b = True
for c in l: b = b and (c == ' ' or c == '\n')
return b
group = []
groups = []
for l in lines:
if blank(l):
groups.append(group)
group = []
else:
group.append(l[:-1])
groups.append(group)
# Part 1
def any_ans(g):
aa = set()
for l in g: aa.update(set(l))
return len(aa)
count = 0
for g in groups: count += any_ans(g)
print("Part 1: " + str(count))
# Part 2
def all_ans(g):
aa = set([chr(c) for c in range(ord('a'),ord('z')+1)])
for l in g: aa.intersection_update(set(l))
return len(aa)
count = 0
for g in groups: count += all_ans(g)
print("Part 2: " + str(count))
| with open('../input06', 'r') as infile:
lines = infile.readlines()
def blank(l):
b = True
for c in l:
b = b and (c == ' ' or c == '\n')
return b
group = []
groups = []
for l in lines:
if blank(l):
groups.append(group)
group = []
else:
group.append(l[:-1])
groups.append(group)
def any_ans(g):
aa = set()
for l in g:
aa.update(set(l))
return len(aa)
count = 0
for g in groups:
count += any_ans(g)
print('Part 1: ' + str(count))
def all_ans(g):
aa = set([chr(c) for c in range(ord('a'), ord('z') + 1)])
for l in g:
aa.intersection_update(set(l))
return len(aa)
count = 0
for g in groups:
count += all_ans(g)
print('Part 2: ' + str(count)) |
class Products:
def __init__(self, product_name, displayed_price, product_number):
self.product_name = product_name
self.displayed_price = displayed_price
self.product_number = product_number
| class Products:
def __init__(self, product_name, displayed_price, product_number):
self.product_name = product_name
self.displayed_price = displayed_price
self.product_number = product_number |
def for_underscore():
for row in range(4):
for col in range(6):
if row==3 and col>0 and col<5 :
print("*",end=" ")
else:
print(" ",end=" ")
print()
def while_underscore():
row=0
while row<4:
col=0
while col<6:
if row==3 and col>0 and col<5 :
print("*",end=" ")
else:
print(" ",end=" ")
col+=1
row+=1
print()
| def for_underscore():
for row in range(4):
for col in range(6):
if row == 3 and col > 0 and (col < 5):
print('*', end=' ')
else:
print(' ', end=' ')
print()
def while_underscore():
row = 0
while row < 4:
col = 0
while col < 6:
if row == 3 and col > 0 and (col < 5):
print('*', end=' ')
else:
print(' ', end=' ')
col += 1
row += 1
print() |
def asTemplate(f):
def wrapped(*args, **props):
def execute():
return f(*args, **props)
return execute
return wrapped
def renderProps(**props):
result = [f' {key}="{value}"' if isinstance(value, str) else f' {key}={str(value)}' for key, value in props.items()]
return ''.join(result)
def renderChildren(children):
result = []
for child in children:
if callable(child):
result.extend(child())
else:
result.append(child)
return result
@asTemplate
def Children(*children):
return renderChildren(children)
def createTag(tagName):
def propertiesDefinition(**props):
cache1 = f'<{tagName}{renderProps(**props)}>'
cache2 = f'</{tagName}>'
@asTemplate
def body(*children):
renderedChildren = renderChildren(children)
return [cache1, *renderedChildren, cache2]
return body
return propertiesDefinition
| def as_template(f):
def wrapped(*args, **props):
def execute():
return f(*args, **props)
return execute
return wrapped
def render_props(**props):
result = [f' {key}="{value}"' if isinstance(value, str) else f' {key}={str(value)}' for (key, value) in props.items()]
return ''.join(result)
def render_children(children):
result = []
for child in children:
if callable(child):
result.extend(child())
else:
result.append(child)
return result
@asTemplate
def children(*children):
return render_children(children)
def create_tag(tagName):
def properties_definition(**props):
cache1 = f'<{tagName}{render_props(**props)}>'
cache2 = f'</{tagName}>'
@asTemplate
def body(*children):
rendered_children = render_children(children)
return [cache1, *renderedChildren, cache2]
return body
return propertiesDefinition |
def render_template(gadget):
RN = "\r\n"
p = Payload()
p.header = "__METHOD__ __ENDPOINT__?cb=__RANDOM__ HTTP/__HTTP_VERSION__" + RN
p.header += gadget + RN
p.header += "Host: __HOST__" + RN
p.header += "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36" + RN
p.header += "Content-type: application/x-www-form-urlencoded" + RN
p.header += "Content-Length: __REPLACE_CL__" + RN
# p.header += gadget + RN
# print(p.header)
return p
def permutation():
result=[]
positions=["g","T","ch",":","c","ed"]
list=["\r\n","\r","\n","\t",""]
templates=["%cTransfer-Encoding: chunked","Transfer-Encoding%c: chunked","Transfer-Encoding:%c chunked","Transfer-Encoding: %cchunked","Transfer-Encoding: chunked%c",
# "%cTransfer-Encoding%c: chunked","%cTransfer-Encoding:%c chunked","%cTransfer-Encoding: %cchunked","%cTransfer-Encoding: chunked%c",
"Transfer-Encoding%c:%c chunked","Transfer-Encoding%c: %cchunked","Transfer-Encoding%c: chunked%c",
# "Transfer-Encoding:%c %cchunked","Transfer-Encoding:%c chunked%c",
"Transfer-Encoding: %cchunked%c",
# "%cTransfer-Encoding%c:%c chunked",
# "%cTransfer-Encoding%c: %cchunked",
# "%cTransfer-Encoding%c: chunked%c",
# "%cTransfer-Encoding:%c %cchunked",
# "%cTransfer-Encoding:%c chunked%c",
# "%cTransfer-Encoding: %cchunked%c",
# "Transfer-Encoding%c:%c %cchunked",
# "Transfer-Encoding%c:%c chunked%c",
"Transfer-Encoding%c: %cchunked%c",
# "Transfer-Encoding:%c %cchunked%c",
# "%cTransfer-Encoding%c:%c %cchunked","Transfer-Encoding%c:%c %cchunked%c","%cTransfer-Encoding:%c %cchunked%c","%cTransfer-Encoding%c: %cchunked%c","%cTransfer-Encoding%c:%c chunked%c",
# "%cTransfer-Encoding%c:%c %cchunked%c"
]
for element in list:
for position in positions:
# for i in range(0x1,0xff):
for template in templates:
if position in ["T","ch",":"]:
result.append(template.replace(position,element+position))
# mutation["position-%c-list-%02x-i-%02x"%position,element,i]=render_template(template.replace(position,element+position))
if position in ["g","ed",":"]:
# if position == "d"
result.append(template.replace(position,position+element))
return result
# mutation["position-%c-list-%02x-i-%02x"%position,element,i]=render_template(template.replace(position,position+element))
#permutation(render_template)
mutations["vanilla"] = render_template("Transfer-Encoding: chunked")
mutations["chunkedchunked"] = render_template("Transfer-Encoding chunked : chunked")
mutations["spjunk"] = render_template("Transfer-Encoding x: chunked")
mutations["connection"] = render_template("Connection: Transfer-Encoding\r\nTransfer-Encoding: chunked")
mutations["nameprefix1"] = render_template(" Transfer-Encoding: chunked")
mutations["tabprefix1"] = render_template("Transfer-Encoding:\tchunked")
mutations["tabprefix2"] = render_template("Transfer-Encoding\t:\tchunked")
mutations["spacejoin1"] = render_template("Transfer Encoding: chunked")
mutations["underjoin1"] = render_template("Transfer_Encoding: chunked")
mutations["smashed"] = render_template("Transfer Encoding:chunked")
mutations["space1"] = render_template("Transfer-Encoding : chunked")
#mutations["valueprefix1"] = render_template("Transfer-Encoding: chunked") already checked
mutations["vertprefix1"] = render_template("Transfer-Encoding:\u000Bchunked")
mutations["commaCow"] = render_template("Transfer-Encoding: chunked, cow")
mutations["cowComma"] = render_template("Transfer-Encoding: cow, chunked")
mutations["contentEnc"] = render_template("Content-Encoding: chunked")
mutations["linewrapped1"] = render_template("Transfer-Encoding:\n chunked")
mutations["quoted"] = render_template("Transfer-Encoding: \"chunked\"")
mutations["aposed"] = render_template("Transfer-Encoding: 'chunked'")
mutations["lazygrep"] = render_template("Transfer-Encoding: chunk")
mutations["sarcasm"] = render_template("TrAnSFer-EnCODinG: cHuNkeD")
mutations["yelling"] = render_template("TRANSFER-ENCODING: CHUNKED")
mutations["0dsuffix"] = render_template("Transfer-Encoding: chunked\r")
mutations["tabsuffix"] = render_template("Transfer-Encoding: chunked\t")
mutations["revdualchunk"] = render_template("Transfer-Encoding: cow\r\nTransfer-Encoding: chunked")
mutations["identity"] = render_template("Transfer-Encoding: identity\r\nTransfer-Encoding: chunked")
mutations["0dspam"] = render_template("Transfer\r-Encoding: chunked")
mutations["nested"] = render_template("Transfer-Encoding: cow chunked bar")
mutations["spaceFF"] = render_template("Transfer-Encoding:\xFFchunked")
mutations["accentCH"] = render_template("Transfer-Encoding: ch\x96nked")
mutations["accentTE"] = render_template("Transf\x82r-Encoding: chunked")
mutations["x-rout"] = render_template("X:X\rTransfer-Encoding: chunked")
mutations["x-nout"] = render_template("X:X\nTransfer-Encoding: chunked")
result=permutation()
#print(result)
for i in [0x1,0x4,0x8,0x9,0xa,0xb,0xc,0xd,0x1F,0x20,0x7f,0xA0,0xFF]:
for each in result:
mutations[each.replace("\n","0a").replace("\r","0d").replace("\t","09").replace("%c","%02x"%i).replace(" ","20")] = render_template(each.replace("%c","%c"%i))
| def render_template(gadget):
rn = '\r\n'
p = payload()
p.header = '__METHOD__ __ENDPOINT__?cb=__RANDOM__ HTTP/__HTTP_VERSION__' + RN
p.header += gadget + RN
p.header += 'Host: __HOST__' + RN
p.header += 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36' + RN
p.header += 'Content-type: application/x-www-form-urlencoded' + RN
p.header += 'Content-Length: __REPLACE_CL__' + RN
return p
def permutation():
result = []
positions = ['g', 'T', 'ch', ':', 'c', 'ed']
list = ['\r\n', '\r', '\n', '\t', '']
templates = ['%cTransfer-Encoding: chunked', 'Transfer-Encoding%c: chunked', 'Transfer-Encoding:%c chunked', 'Transfer-Encoding: %cchunked', 'Transfer-Encoding: chunked%c', 'Transfer-Encoding%c:%c chunked', 'Transfer-Encoding%c: %cchunked', 'Transfer-Encoding%c: chunked%c', 'Transfer-Encoding: %cchunked%c', 'Transfer-Encoding%c: %cchunked%c']
for element in list:
for position in positions:
for template in templates:
if position in ['T', 'ch', ':']:
result.append(template.replace(position, element + position))
if position in ['g', 'ed', ':']:
result.append(template.replace(position, position + element))
return result
mutations['vanilla'] = render_template('Transfer-Encoding: chunked')
mutations['chunkedchunked'] = render_template('Transfer-Encoding chunked : chunked')
mutations['spjunk'] = render_template('Transfer-Encoding x: chunked')
mutations['connection'] = render_template('Connection: Transfer-Encoding\r\nTransfer-Encoding: chunked')
mutations['nameprefix1'] = render_template(' Transfer-Encoding: chunked')
mutations['tabprefix1'] = render_template('Transfer-Encoding:\tchunked')
mutations['tabprefix2'] = render_template('Transfer-Encoding\t:\tchunked')
mutations['spacejoin1'] = render_template('Transfer Encoding: chunked')
mutations['underjoin1'] = render_template('Transfer_Encoding: chunked')
mutations['smashed'] = render_template('Transfer Encoding:chunked')
mutations['space1'] = render_template('Transfer-Encoding : chunked')
mutations['vertprefix1'] = render_template('Transfer-Encoding:\x0bchunked')
mutations['commaCow'] = render_template('Transfer-Encoding: chunked, cow')
mutations['cowComma'] = render_template('Transfer-Encoding: cow, chunked')
mutations['contentEnc'] = render_template('Content-Encoding: chunked')
mutations['linewrapped1'] = render_template('Transfer-Encoding:\n chunked')
mutations['quoted'] = render_template('Transfer-Encoding: "chunked"')
mutations['aposed'] = render_template("Transfer-Encoding: 'chunked'")
mutations['lazygrep'] = render_template('Transfer-Encoding: chunk')
mutations['sarcasm'] = render_template('TrAnSFer-EnCODinG: cHuNkeD')
mutations['yelling'] = render_template('TRANSFER-ENCODING: CHUNKED')
mutations['0dsuffix'] = render_template('Transfer-Encoding: chunked\r')
mutations['tabsuffix'] = render_template('Transfer-Encoding: chunked\t')
mutations['revdualchunk'] = render_template('Transfer-Encoding: cow\r\nTransfer-Encoding: chunked')
mutations['identity'] = render_template('Transfer-Encoding: identity\r\nTransfer-Encoding: chunked')
mutations['0dspam'] = render_template('Transfer\r-Encoding: chunked')
mutations['nested'] = render_template('Transfer-Encoding: cow chunked bar')
mutations['spaceFF'] = render_template('Transfer-Encoding:ÿchunked')
mutations['accentCH'] = render_template('Transfer-Encoding: ch\x96nked')
mutations['accentTE'] = render_template('Transf\x82r-Encoding: chunked')
mutations['x-rout'] = render_template('X:X\rTransfer-Encoding: chunked')
mutations['x-nout'] = render_template('X:X\nTransfer-Encoding: chunked')
result = permutation()
for i in [1, 4, 8, 9, 10, 11, 12, 13, 31, 32, 127, 160, 255]:
for each in result:
mutations[each.replace('\n', '0a').replace('\r', '0d').replace('\t', '09').replace('%c', '%02x' % i).replace(' ', '20')] = render_template(each.replace('%c', '%c' % i)) |
# Count inversions in a sequence of numbers
def count_inversion(sequence):
if (len(sequence) < 1 or len(sequence) > 199):
return "Error1"
for element in sequence:
if (element < -99 or element > 199):
return "Error2"
sequencel = list(sequence);
count = 0;
fake = 0;
for i in reversed(range(len(sequencel))):
for j in reversed(range(len(sequencel))):
if j > i:
fake += 1;
elif sequence[j] > sequence[i]:
count += 1;
return count;
if __name__ == '__main__':
#These "asserts" using only for self-checking and not necessary for auto-testing
assert count_inversion((1, 2, 5, 3, 4, 7, 6)) == 3, "Example"
assert count_inversion((0, 1, 2, 3)) == 0, "Sorted"
assert count_inversion((99, -99)) == 1, "Two numbers"
assert count_inversion((5, 3, 2, 1, 0)) == 10, "Reversed"
| def count_inversion(sequence):
if len(sequence) < 1 or len(sequence) > 199:
return 'Error1'
for element in sequence:
if element < -99 or element > 199:
return 'Error2'
sequencel = list(sequence)
count = 0
fake = 0
for i in reversed(range(len(sequencel))):
for j in reversed(range(len(sequencel))):
if j > i:
fake += 1
elif sequence[j] > sequence[i]:
count += 1
return count
if __name__ == '__main__':
assert count_inversion((1, 2, 5, 3, 4, 7, 6)) == 3, 'Example'
assert count_inversion((0, 1, 2, 3)) == 0, 'Sorted'
assert count_inversion((99, -99)) == 1, 'Two numbers'
assert count_inversion((5, 3, 2, 1, 0)) == 10, 'Reversed' |
def grade(a):
if a >= 90:
print("A")
else:
if a >= 85:
print("B+")
else:
if a >= 80:
print("B")
else:
if a >= 75:
print("C+")
else:
if a >= 70:
print("C")
else:
if a >= 65:
print("D+")
else:
if a >= 60:
print("D")
else:
print("F")
a = "Error : Value must be less than or equal to 100."
b = "Error : Value must be greater than or equal to 0."
n = int(input())
if n >100:
print(a)
else:
if n < 0:
print(b)
else:
grade(n)
| def grade(a):
if a >= 90:
print('A')
elif a >= 85:
print('B+')
elif a >= 80:
print('B')
elif a >= 75:
print('C+')
elif a >= 70:
print('C')
elif a >= 65:
print('D+')
elif a >= 60:
print('D')
else:
print('F')
a = 'Error : Value must be less than or equal to 100.'
b = 'Error : Value must be greater than or equal to 0.'
n = int(input())
if n > 100:
print(a)
elif n < 0:
print(b)
else:
grade(n) |
class DDH2Exception(Exception):
def __init__(self, response):
self.status_code = response.status_code
self.text = response.text
def __repr__(self):
return 'DDH2Exception [{}]: {}'.format(self.status_code, self.text)
def __str__(self):
return self.text | class Ddh2Exception(Exception):
def __init__(self, response):
self.status_code = response.status_code
self.text = response.text
def __repr__(self):
return 'DDH2Exception [{}]: {}'.format(self.status_code, self.text)
def __str__(self):
return self.text |
class Queue:
def __init__(self):
self.array = []
self.length = 0
# adding the data to the end of the array
def enqueue(self, data):
self.array.append(data)
self.length += 1
return
# popping the data to the start of the array
def dequeue(self):
poped = self.array[0]
self.array.pop(0)
self.length -= 1
return poped
def reverse(self):
left = 0;
right = self.length - 1;
while left < right:
self.array[left], self.array[right] = self.array[right], self.array[left]
left += 1
right -= 1
return self
def reverseTillKElement(self, k):
if k > self.length:
print('index out of bound')
return
left = 0;
right = k - 1;
while left < right:
self.array[left], self.array[right] = self.array[right], self.array[left]
left += 1
right -= 1
return self
# array traverse
def lookup(self):
for val in self.array:
print(' <-', val, end="")
def peek(self):
return self.array[0]
myQueue = Queue()
print('\nLength of array is ->', myQueue.length)
myQueue.enqueue(1)
myQueue.enqueue(2)
myQueue.enqueue(3)
myQueue.enqueue(4)
myQueue.lookup()
print('\n After reverse')
# myQueue.reverse()
myQueue.reverseTillKElement(3)
myQueue.lookup()
# print('\nLength of array is ->', myQueue.length)
# print('\nFirst in array is ->', myQueue.peek())
# print('\ndequeue value is ->', myQueue.dequeue())
# myQueue.lookup()
# print('\nLength of array is ->', myQueue.length)
# print('\nFirst in array is ->', myQueue.peek())
print('\n')
| class Queue:
def __init__(self):
self.array = []
self.length = 0
def enqueue(self, data):
self.array.append(data)
self.length += 1
return
def dequeue(self):
poped = self.array[0]
self.array.pop(0)
self.length -= 1
return poped
def reverse(self):
left = 0
right = self.length - 1
while left < right:
(self.array[left], self.array[right]) = (self.array[right], self.array[left])
left += 1
right -= 1
return self
def reverse_till_k_element(self, k):
if k > self.length:
print('index out of bound')
return
left = 0
right = k - 1
while left < right:
(self.array[left], self.array[right]) = (self.array[right], self.array[left])
left += 1
right -= 1
return self
def lookup(self):
for val in self.array:
print(' <-', val, end='')
def peek(self):
return self.array[0]
my_queue = queue()
print('\nLength of array is ->', myQueue.length)
myQueue.enqueue(1)
myQueue.enqueue(2)
myQueue.enqueue(3)
myQueue.enqueue(4)
myQueue.lookup()
print('\n After reverse')
myQueue.reverseTillKElement(3)
myQueue.lookup()
print('\n') |
def minimax(arr):
arr.sort()
max = 0
min = 0
for i in range(len(arr)):
if i!=0:
max += arr[i]
if i!=4:
min += arr[i]
print(min,max)
if __name__=="__main__":
arr = list(map(int, input().rstrip().split()))
minimax(arr)
| def minimax(arr):
arr.sort()
max = 0
min = 0
for i in range(len(arr)):
if i != 0:
max += arr[i]
if i != 4:
min += arr[i]
print(min, max)
if __name__ == '__main__':
arr = list(map(int, input().rstrip().split()))
minimax(arr) |
# You need to print the value from 0 to 100
# whenever the number divisible by 3, then it should print as "fuzz"
# If the number is divisible 5, it should display as "buzz
# If the number id divided by 15, the result should be "fuzz_buzz"
# Simple method
for i in range(101):
if i % 15 == 0:
print("fuzz_buzz")
elif i % 5 == 0:
print("buzz")
elif i % 3 == 0:
print("fizz")
else:
print(i)
# for comprehension method
answer = ("fizz_buzz" if i % 15 == 0 else "buzz" if i % 5 == 0 else "fizz"
if i % 3 == 0 else i for i in range (101)) | for i in range(101):
if i % 15 == 0:
print('fuzz_buzz')
elif i % 5 == 0:
print('buzz')
elif i % 3 == 0:
print('fizz')
else:
print(i)
answer = ('fizz_buzz' if i % 15 == 0 else 'buzz' if i % 5 == 0 else 'fizz' if i % 3 == 0 else i for i in range(101)) |
#==============================================================================
#
# Copyright (c) 2019 Smells Like Donkey Software Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
#==============================================================================
def decode_bid (bid):
suit = bid[-1:]
if suit in ('C','H','D','S','N'):
bid = bid[:-1]
else:
suit = None
return bid, suit
def decode_card (card):
if card[0] == "3":
return 3, card[1]
if card[0] == "5":
return 5, card[1]
if card[0] == "7":
return 7, card[1]
if card[0] == "8":
return 8, card[1]
if card[0] == "9":
return 9, card[1]
if card[0] == "T":
return 10, card[1]
if card[0] == "J":
return 11, card[1]
if card[0] == "Q":
return 12, card[1]
if card[0] == "K":
return 13, card[1]
if card[0] == "A":
return 14, card[1]
return 0, ""
def get_better_bid (a,b):
value_a, suit_a = decode_bid(a)
value_b, suit_b = decode_bid(b)
# Convert "pass" to a value of 0
if value_a == "pass":
value_a = 0
if value_b == "pass":
value_b = 0
no_a = 0
if suit_a == 'N':
no_a = 1
no_b = 0
if suit_b == 'N':
no_b = 1
if int(value_a)*2+no_a > int(value_b)*2+no_b:
return a
else:
return b
def get_winner (first_suit, trump_suit, played_cards):
winner = 0
winner_score = 0
had_5 = False
had_3 = False
for i in range(0, 4):
i_score, i_suit = decode_card(played_cards[i])
if i_score == 3:
had_3 = True
if i_score == 5:
had_5 = True
if trump_suit == i_suit:
i_score += 200
elif first_suit == i_suit:
i_score += 100
if i_score > winner_score:
winner = i
winner_score = i_score
return winner | def decode_bid(bid):
suit = bid[-1:]
if suit in ('C', 'H', 'D', 'S', 'N'):
bid = bid[:-1]
else:
suit = None
return (bid, suit)
def decode_card(card):
if card[0] == '3':
return (3, card[1])
if card[0] == '5':
return (5, card[1])
if card[0] == '7':
return (7, card[1])
if card[0] == '8':
return (8, card[1])
if card[0] == '9':
return (9, card[1])
if card[0] == 'T':
return (10, card[1])
if card[0] == 'J':
return (11, card[1])
if card[0] == 'Q':
return (12, card[1])
if card[0] == 'K':
return (13, card[1])
if card[0] == 'A':
return (14, card[1])
return (0, '')
def get_better_bid(a, b):
(value_a, suit_a) = decode_bid(a)
(value_b, suit_b) = decode_bid(b)
if value_a == 'pass':
value_a = 0
if value_b == 'pass':
value_b = 0
no_a = 0
if suit_a == 'N':
no_a = 1
no_b = 0
if suit_b == 'N':
no_b = 1
if int(value_a) * 2 + no_a > int(value_b) * 2 + no_b:
return a
else:
return b
def get_winner(first_suit, trump_suit, played_cards):
winner = 0
winner_score = 0
had_5 = False
had_3 = False
for i in range(0, 4):
(i_score, i_suit) = decode_card(played_cards[i])
if i_score == 3:
had_3 = True
if i_score == 5:
had_5 = True
if trump_suit == i_suit:
i_score += 200
elif first_suit == i_suit:
i_score += 100
if i_score > winner_score:
winner = i
winner_score = i_score
return winner |
#!/usr/bin/env python3
def getMinimumCost(k, c):
min_cost = 0
temp = 0
previous = 0
if k >= len(c):
return sum(c)
c = sorted(c)
for x in reversed(c):
if temp == k:
temp = 0
previous += 1
min_cost += (previous + 1) * x
temp += 1
return min_cost
print(getMinimumCost(3, [2, 5, 6]))
print(getMinimumCost(2, [2, 5, 6]))
print(getMinimumCost(3, [1, 3, 5, 7, 9]))
| def get_minimum_cost(k, c):
min_cost = 0
temp = 0
previous = 0
if k >= len(c):
return sum(c)
c = sorted(c)
for x in reversed(c):
if temp == k:
temp = 0
previous += 1
min_cost += (previous + 1) * x
temp += 1
return min_cost
print(get_minimum_cost(3, [2, 5, 6]))
print(get_minimum_cost(2, [2, 5, 6]))
print(get_minimum_cost(3, [1, 3, 5, 7, 9])) |
POSTGRES_URL="****"
POSTGRES_USER="****"
POSTGRES_PW="****"
POSTGRES_DB="****"
| postgres_url = '****'
postgres_user = '****'
postgres_pw = '****'
postgres_db = '****' |
#
# PySNMP MIB module ASCEND-MIBATMIF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-MIBATMIF-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:26:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
configuration, = mibBuilder.importSymbols("ASCEND-MIB", "configuration")
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
ObjectIdentity, ModuleIdentity, Counter64, MibIdentifier, Unsigned32, TimeTicks, NotificationType, IpAddress, Bits, iso, Integer32, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "ModuleIdentity", "Counter64", "MibIdentifier", "Unsigned32", "TimeTicks", "NotificationType", "IpAddress", "Bits", "iso", "Integer32", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
class DisplayString(OctetString):
pass
mibatmInterfaceProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 40))
mibatmInterfaceProfileTable = MibTable((1, 3, 6, 1, 4, 1, 529, 23, 40, 1), )
if mibBuilder.loadTexts: mibatmInterfaceProfileTable.setStatus('mandatory')
if mibBuilder.loadTexts: mibatmInterfaceProfileTable.setDescription('A list of mibatmInterfaceProfile profile entries.')
mibatmInterfaceProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1), ).setIndexNames((0, "ASCEND-MIBATMIF-MIB", "atmInterfaceProfile-Shelf-o"), (0, "ASCEND-MIBATMIF-MIB", "atmInterfaceProfile-Slot-o"), (0, "ASCEND-MIBATMIF-MIB", "atmInterfaceProfile-Item-o"), (0, "ASCEND-MIBATMIF-MIB", "atmInterfaceProfile-LogicalItem-o"))
if mibBuilder.loadTexts: mibatmInterfaceProfileEntry.setStatus('mandatory')
if mibBuilder.loadTexts: mibatmInterfaceProfileEntry.setDescription('A mibatmInterfaceProfile entry containing objects that maps to the parameters of mibatmInterfaceProfile profile.')
atmInterfaceProfile_Shelf_o = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 1), Integer32()).setLabel("atmInterfaceProfile-Shelf-o").setMaxAccess("readonly")
if mibBuilder.loadTexts: atmInterfaceProfile_Shelf_o.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_Shelf_o.setDescription('')
atmInterfaceProfile_Slot_o = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 2), Integer32()).setLabel("atmInterfaceProfile-Slot-o").setMaxAccess("readonly")
if mibBuilder.loadTexts: atmInterfaceProfile_Slot_o.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_Slot_o.setDescription('')
atmInterfaceProfile_Item_o = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 3), Integer32()).setLabel("atmInterfaceProfile-Item-o").setMaxAccess("readonly")
if mibBuilder.loadTexts: atmInterfaceProfile_Item_o.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_Item_o.setDescription('')
atmInterfaceProfile_LogicalItem_o = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 4), Integer32()).setLabel("atmInterfaceProfile-LogicalItem-o").setMaxAccess("readonly")
if mibBuilder.loadTexts: atmInterfaceProfile_LogicalItem_o.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_LogicalItem_o.setDescription('')
atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Shelf = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("anyShelf", 1), ("shelf1", 2), ("shelf2", 3), ("shelf3", 4), ("shelf4", 5), ("shelf5", 6), ("shelf6", 7), ("shelf7", 8), ("shelf8", 9), ("shelf9", 10)))).setLabel("atmInterfaceProfile-InterfaceAddress-PhysicalAddress-Shelf").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Shelf.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Shelf.setDescription('The number of the shelf that the addressed physical device resides on.')
atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Slot = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 55, 56, 57, 58, 49, 50, 42, 53, 54, 45, 46, 51, 59))).clone(namedValues=NamedValues(("anySlot", 1), ("slot1", 2), ("slot2", 3), ("slot3", 4), ("slot4", 5), ("slot5", 6), ("slot6", 7), ("slot7", 8), ("slot8", 9), ("slot9", 10), ("slot10", 11), ("slot11", 12), ("slot12", 13), ("slot13", 14), ("slot14", 15), ("slot15", 16), ("slot16", 17), ("slot17", 18), ("slot18", 19), ("slot19", 20), ("slot20", 21), ("slot21", 22), ("slot22", 23), ("slot23", 24), ("slot24", 25), ("slot25", 26), ("slot26", 27), ("slot27", 28), ("slot28", 29), ("slot29", 30), ("slot30", 31), ("slot31", 32), ("slot32", 33), ("slot33", 34), ("slot34", 35), ("slot35", 36), ("slot36", 37), ("slot37", 38), ("slot38", 39), ("slot39", 40), ("slot40", 41), ("aLim", 55), ("bLim", 56), ("cLim", 57), ("dLim", 58), ("leftController", 49), ("rightController", 50), ("controller", 42), ("firstControlModule", 53), ("secondControlModule", 54), ("trunkModule1", 45), ("trunkModule2", 46), ("controlModule", 51), ("slotPrimary", 59)))).setLabel("atmInterfaceProfile-InterfaceAddress-PhysicalAddress-Slot").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Slot.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Slot.setDescription('The number of the slot that the addressed physical device resides on.')
atmInterfaceProfile_InterfaceAddress_PhysicalAddress_ItemNumber = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 7), Integer32()).setLabel("atmInterfaceProfile-InterfaceAddress-PhysicalAddress-ItemNumber").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_InterfaceAddress_PhysicalAddress_ItemNumber.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_InterfaceAddress_PhysicalAddress_ItemNumber.setDescription('A number that specifies an addressable entity within the context of shelf and slot.')
atmInterfaceProfile_InterfaceAddress_LogicalItem = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 8), Integer32()).setLabel("atmInterfaceProfile-InterfaceAddress-LogicalItem").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_InterfaceAddress_LogicalItem.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_InterfaceAddress_LogicalItem.setDescription('A number that specifies an addressable logical entity within the context of a physical address.')
atmInterfaceProfile_Name = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 9), DisplayString()).setLabel("atmInterfaceProfile-Name").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_Name.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_Name.setDescription('Name of ATM Interface.')
atmInterfaceProfile_SvcOptions_Enabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("atmInterfaceProfile-SvcOptions-Enabled").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Enabled.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Enabled.setDescription('SVC signalling (Q.93b) is enabled on this link.')
atmInterfaceProfile_SvcOptions_AtmProtocol = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3))).clone(namedValues=NamedValues(("uni30", 2), ("uni31", 3)))).setLabel("atmInterfaceProfile-SvcOptions-AtmProtocol").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmProtocol.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmProtocol.setDescription('ATM protocol on this link.')
atmInterfaceProfile_SvcOptions_AtmAddress_NumberingPlan = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 5, 9))).clone(namedValues=NamedValues(("undefined", 1), ("isdn", 2), ("aesa", 3), ("unknown", 5), ("x121", 9)))).setLabel("atmInterfaceProfile-SvcOptions-AtmAddress-NumberingPlan").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_NumberingPlan.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_NumberingPlan.setDescription('Numbering plan for an SVC address')
atmInterfaceProfile_SvcOptions_AtmAddress_E164NativeAddress = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 13), DisplayString()).setLabel("atmInterfaceProfile-SvcOptions-AtmAddress-E164NativeAddress").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_E164NativeAddress.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_E164NativeAddress.setDescription('An SVC address in a native E.164 format.')
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_Format = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 6, 4, 5))).clone(namedValues=NamedValues(("undefined", 1), ("dccAesa", 2), ("icdAesa", 6), ("e164Aesa", 4), ("customAesa", 5)))).setLabel("atmInterfaceProfile-SvcOptions-AtmAddress-AesaAddress-Format").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_Format.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_Format.setDescription('An AESA address format used to define this SVC address.')
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Afi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 15), DisplayString()).setLabel("atmInterfaceProfile-SvcOptions-AtmAddress-AesaAddress-IdpPortion-Afi").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Afi.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Afi.setDescription('An Authority and Format Identifier(AFI) for AESA address. Must be defined for every AESA address.')
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Idi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 16), DisplayString()).setLabel("atmInterfaceProfile-SvcOptions-AtmAddress-AesaAddress-IdpPortion-Idi").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Idi.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Idi.setDescription('An Initial Domain Identifier (IDI) portion of the AESA address.')
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_HoDsp = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 17), DisplayString()).setLabel("atmInterfaceProfile-SvcOptions-AtmAddress-AesaAddress-DspPortion-HoDsp").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_HoDsp.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_HoDsp.setDescription('A High-Order Domain-Specific Part of AESA address. The IDP portion determine the format of the HO-DSP.')
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Esi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 18), DisplayString()).setLabel("atmInterfaceProfile-SvcOptions-AtmAddress-AesaAddress-DspPortion-Esi").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Esi.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Esi.setDescription('An End System Identifier (ESI) which uniquely identifies the end system within the specified subnetwork.')
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Sel = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 19), DisplayString()).setLabel("atmInterfaceProfile-SvcOptions-AtmAddress-AesaAddress-DspPortion-Sel").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Sel.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Sel.setDescription('A selector (SEL) field that may be used by the end system.')
atmInterfaceProfile_SvcOptions_InsertCallingPartyAddr = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("atmInterfaceProfile-SvcOptions-InsertCallingPartyAddr").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_InsertCallingPartyAddr.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_InsertCallingPartyAddr.setDescription('Insert ATM address of this interface in calling party address IE during call setup.')
atmInterfaceProfile_SvcOptions_Q93bOptions_MaxRestart = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 21), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-MaxRestart").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_MaxRestart.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_MaxRestart.setDescription('Maximum number of unacknowledged tx RESTART.')
atmInterfaceProfile_SvcOptions_Q93bOptions_MaxStatenq = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 22), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-MaxStatenq").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_MaxStatenq.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_MaxStatenq.setDescription('Maximum number of unacknowledged tx STATUS ENQ.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T301Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 23), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T301Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T301Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T301Ms.setDescription('Timer (in msec) for alerting supervision function. This timer is started on receipt of ALERT in Call received/delivered state and stopped when CONNECT is received.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T303Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 24), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T303Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T303Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T303Ms.setDescription('Timer (in msec) for a response after SETUP is sent. This timer is stopped when the CONNECT, CALL PROCEEDING, or RELEASE COMPLETE is received.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T306Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 25), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T306Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T306Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T306Ms.setDescription('Timer (in msec) for a RELEASE_COMPLETE to be received after a release has been sent.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T308Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 26), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T308Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T308Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T308Ms.setDescription('Timer (in msec) for a response after RELEASE is sent. This is a release indication timer. This timer is started when the RELEASE message is sent and normally is stopped when the RELEASE or RELEASE COMPLETE is received.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T309Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 27), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T309Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T309Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T309Ms.setDescription('Timer (in msec) for Q.SAAL to reconnect. After this time, calls are dropped. When set to 0, a default value based on an ATM signaling protocol will be used.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T310Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 28), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T310Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T310Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T310Ms.setDescription('Timer (in msec) for a response after SETUP is received. Also called the CALL PROCEEDING timer.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T313Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 29), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T313Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T313Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T313Ms.setDescription('Timer (in msec) for a response after CONNECT is sent. Also called the connect request timer. It is started when the CONNECT is sent and stopped when the CONNECT ACKNOWLEDGE is recieved.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T316Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 30), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T316Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T316Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T316Ms.setDescription('Timer (in msec) for a response after RESTART is sent. Also called the restart request timer. It is started when the RESTART is sent and stopped when the RESTART ACKNOWLEDGE is recieved.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T317Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 31), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T317Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T317Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T317Ms.setDescription('Timer (in msec) for internal clearing of call references. This timer is started as a result of a restart and cleared when all the internal call references are cleared. Should be less than the the likely value of T316 of the peer.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T322Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 32), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T322Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T322Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T322Ms.setDescription('Timer (in msec) for a response after STATUS ENQ is sent.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T331Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 33), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T331Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T331Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T331Ms.setDescription('Timer (in msec) for internal clearing of call references.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T333Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 34), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T333Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T333Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T333Ms.setDescription('Timer (in msec) for internal clearing of call references.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T397Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 35), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T397Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T397Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T397Ms.setDescription('Timer (in msec) for internal clearing of call references.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T398Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 36), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T398Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T398Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T398Ms.setDescription('Timer (in msec) for receipt of a response to a DROP PARTY that was sent.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T399Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 37), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T399Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T399Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T399Ms.setDescription('Timer (in msec) for receipt of a response to an ADD PARTY that was sent.')
atmInterfaceProfile_SvcOptions_Q93bOptions_SaalRetryMs = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 38), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-SaalRetryMs").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_SaalRetryMs.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_SaalRetryMs.setDescription('Timer value for retrying AAL_ESTABLISH messages.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T303NumReties = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 39), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T303NumReties").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T303NumReties.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T303NumReties.setDescription('Number of times SETUP could be resent in case of T303 timer expiry.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T308NumRetries = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 40), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T308NumRetries").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T308NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T308NumRetries.setDescription('Number of times RELEASE could be sent in case of T308 timer expiry.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T316NumRetries = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 41), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T316NumRetries").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T316NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T316NumRetries.setDescription('Number of times RESTART could be sent in case RESTART ACK is not received withinn T316 timer expiry.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T322NumRetries = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 42), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T322NumRetries").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T322NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T322NumRetries.setDescription('Number of times STAT ENQ could be sent before a response is received within the T322 timer expiry.')
atmInterfaceProfile_SvcOptions_Q93bOptions_T331NumRetries = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 43), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-T331NumRetries").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T331NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_T331NumRetries.setDescription('')
atmInterfaceProfile_SvcOptions_Q93bOptions_AssignVpiVci = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 44), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("atmInterfaceProfile-SvcOptions-Q93bOptions-AssignVpiVci").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_AssignVpiVci.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_Q93bOptions_AssignVpiVci.setDescription('In the case of UNI4.0 and PNNI this parameter specifies who assigns the VPI/VCI. TRUE will allow the local stack and FALSE will let the partner stack to assign.')
atmInterfaceProfile_SvcOptions_QsaalOptions_WindowSize = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 45), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-QsaalOptions-WindowSize").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_WindowSize.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_WindowSize.setDescription('Q.SAAL window size')
atmInterfaceProfile_SvcOptions_QsaalOptions_MaxCc = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 46), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-QsaalOptions-MaxCc").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_MaxCc.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_MaxCc.setDescription('Maximum number of control PDU (BGN, END, RESYNC) retransmissions.')
atmInterfaceProfile_SvcOptions_QsaalOptions_MaxPd = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 47), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-QsaalOptions-MaxPd").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_MaxPd.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_MaxPd.setDescription("Maximum number of Sequenced data PDU's between poll.")
atmInterfaceProfile_SvcOptions_QsaalOptions_MaxStat = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 48), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-QsaalOptions-MaxStat").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_MaxStat.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_MaxStat.setDescription('Maximum length of STAT PDU.')
atmInterfaceProfile_SvcOptions_QsaalOptions_TccMs = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 49), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-QsaalOptions-TccMs").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_TccMs.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_TccMs.setDescription("Retry time (in msec) for control PDU's(BGN, END, RESYNC).")
atmInterfaceProfile_SvcOptions_QsaalOptions_TpollMs = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 50), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-QsaalOptions-TpollMs").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_TpollMs.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_TpollMs.setDescription('Poll sent (in msec) when active. When set to 0, a default value based on an ATM signaling protocol will be used.')
atmInterfaceProfile_SvcOptions_QsaalOptions_TkeepaliveMs = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 51), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-QsaalOptions-TkeepaliveMs").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_TkeepaliveMs.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_TkeepaliveMs.setDescription('Poll sent (in msec) when in transient state. When set to 0, a default value based on an ATM signaling protocol will be used.')
atmInterfaceProfile_SvcOptions_QsaalOptions_TnoresponseMs = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 52), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-QsaalOptions-TnoresponseMs").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_TnoresponseMs.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_TnoresponseMs.setDescription('STAT received at least this period(in msec). When set to 0, a default value based on an ATM signaling protocol will be used.')
atmInterfaceProfile_SvcOptions_QsaalOptions_TidleMs = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 53), Integer32()).setLabel("atmInterfaceProfile-SvcOptions-QsaalOptions-TidleMs").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_TidleMs.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_TidleMs.setDescription('Poll sent (in msec) when idle -- UNI 3.1, only.')
atmInterfaceProfile_SvcOptions_QsaalOptions_PollAfterRetransmission = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 54), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("atmInterfaceProfile-SvcOptions-QsaalOptions-PollAfterRetransmission").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_PollAfterRetransmission.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_PollAfterRetransmission.setDescription('Specifies after retransmitting PDUs whether a POLL must be sent before sending any further PDUs.')
atmInterfaceProfile_SvcOptions_QsaalOptions_RepeatUstat = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 55), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("atmInterfaceProfile-SvcOptions-QsaalOptions-RepeatUstat").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_RepeatUstat.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_RepeatUstat.setDescription('Specifies whether two USTAT messages should be sent each time it is required to be sent.')
atmInterfaceProfile_SvcOptions_QsaalOptions_UstatRspToPoll = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 56), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("atmInterfaceProfile-SvcOptions-QsaalOptions-UstatRspToPoll").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_UstatRspToPoll.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_SvcOptions_QsaalOptions_UstatRspToPoll.setDescription('Specifies whether a USTAT should be sent in response to a POLL indicating an out of sequence PDU.')
atmInterfaceProfile_Action_o = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 57), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noAction", 1), ("createProfile", 2), ("deleteProfile", 3)))).setLabel("atmInterfaceProfile-Action-o").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmInterfaceProfile_Action_o.setStatus('mandatory')
if mibBuilder.loadTexts: atmInterfaceProfile_Action_o.setDescription('')
mibBuilder.exportSymbols("ASCEND-MIBATMIF-MIB", atmInterfaceProfile_SvcOptions_Q93bOptions_T397Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T397Ms, atmInterfaceProfile_SvcOptions_Q93bOptions_T303Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T303Ms, atmInterfaceProfile_SvcOptions_Q93bOptions_T309Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T309Ms, atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Slot=atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Slot, atmInterfaceProfile_InterfaceAddress_LogicalItem=atmInterfaceProfile_InterfaceAddress_LogicalItem, atmInterfaceProfile_SvcOptions_Q93bOptions_T317Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T317Ms, atmInterfaceProfile_SvcOptions_InsertCallingPartyAddr=atmInterfaceProfile_SvcOptions_InsertCallingPartyAddr, atmInterfaceProfile_SvcOptions_QsaalOptions_UstatRspToPoll=atmInterfaceProfile_SvcOptions_QsaalOptions_UstatRspToPoll, atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_Format=atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_Format, atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Afi=atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Afi, atmInterfaceProfile_SvcOptions_Q93bOptions_T398Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T398Ms, atmInterfaceProfile_SvcOptions_Q93bOptions_T331NumRetries=atmInterfaceProfile_SvcOptions_Q93bOptions_T331NumRetries, atmInterfaceProfile_SvcOptions_QsaalOptions_TkeepaliveMs=atmInterfaceProfile_SvcOptions_QsaalOptions_TkeepaliveMs, atmInterfaceProfile_SvcOptions_AtmProtocol=atmInterfaceProfile_SvcOptions_AtmProtocol, atmInterfaceProfile_SvcOptions_Q93bOptions_T316Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T316Ms, atmInterfaceProfile_Name=atmInterfaceProfile_Name, atmInterfaceProfile_SvcOptions_Q93bOptions_T310Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T310Ms, atmInterfaceProfile_Item_o=atmInterfaceProfile_Item_o, atmInterfaceProfile_Shelf_o=atmInterfaceProfile_Shelf_o, atmInterfaceProfile_LogicalItem_o=atmInterfaceProfile_LogicalItem_o, mibatmInterfaceProfileEntry=mibatmInterfaceProfileEntry, atmInterfaceProfile_SvcOptions_Q93bOptions_T322NumRetries=atmInterfaceProfile_SvcOptions_Q93bOptions_T322NumRetries, atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Esi=atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Esi, mibatmInterfaceProfileTable=mibatmInterfaceProfileTable, mibatmInterfaceProfile=mibatmInterfaceProfile, atmInterfaceProfile_SvcOptions_QsaalOptions_MaxCc=atmInterfaceProfile_SvcOptions_QsaalOptions_MaxCc, atmInterfaceProfile_SvcOptions_QsaalOptions_RepeatUstat=atmInterfaceProfile_SvcOptions_QsaalOptions_RepeatUstat, atmInterfaceProfile_SvcOptions_Q93bOptions_T308Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T308Ms, atmInterfaceProfile_SvcOptions_QsaalOptions_MaxPd=atmInterfaceProfile_SvcOptions_QsaalOptions_MaxPd, atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Shelf=atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Shelf, atmInterfaceProfile_SvcOptions_QsaalOptions_PollAfterRetransmission=atmInterfaceProfile_SvcOptions_QsaalOptions_PollAfterRetransmission, atmInterfaceProfile_SvcOptions_Q93bOptions_T306Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T306Ms, atmInterfaceProfile_SvcOptions_Q93bOptions_T333Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T333Ms, atmInterfaceProfile_SvcOptions_Q93bOptions_T399Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T399Ms, atmInterfaceProfile_SvcOptions_QsaalOptions_TidleMs=atmInterfaceProfile_SvcOptions_QsaalOptions_TidleMs, atmInterfaceProfile_SvcOptions_QsaalOptions_TccMs=atmInterfaceProfile_SvcOptions_QsaalOptions_TccMs, atmInterfaceProfile_SvcOptions_QsaalOptions_TnoresponseMs=atmInterfaceProfile_SvcOptions_QsaalOptions_TnoresponseMs, DisplayString=DisplayString, atmInterfaceProfile_SvcOptions_QsaalOptions_TpollMs=atmInterfaceProfile_SvcOptions_QsaalOptions_TpollMs, atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Sel=atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Sel, atmInterfaceProfile_SvcOptions_QsaalOptions_WindowSize=atmInterfaceProfile_SvcOptions_QsaalOptions_WindowSize, atmInterfaceProfile_Action_o=atmInterfaceProfile_Action_o, atmInterfaceProfile_SvcOptions_Q93bOptions_AssignVpiVci=atmInterfaceProfile_SvcOptions_Q93bOptions_AssignVpiVci, atmInterfaceProfile_SvcOptions_Q93bOptions_MaxRestart=atmInterfaceProfile_SvcOptions_Q93bOptions_MaxRestart, atmInterfaceProfile_SvcOptions_Q93bOptions_MaxStatenq=atmInterfaceProfile_SvcOptions_Q93bOptions_MaxStatenq, atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Idi=atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Idi, atmInterfaceProfile_SvcOptions_Q93bOptions_T301Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T301Ms, atmInterfaceProfile_SvcOptions_Q93bOptions_T303NumReties=atmInterfaceProfile_SvcOptions_Q93bOptions_T303NumReties, atmInterfaceProfile_Slot_o=atmInterfaceProfile_Slot_o, atmInterfaceProfile_InterfaceAddress_PhysicalAddress_ItemNumber=atmInterfaceProfile_InterfaceAddress_PhysicalAddress_ItemNumber, atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_HoDsp=atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_HoDsp, atmInterfaceProfile_SvcOptions_Q93bOptions_T322Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T322Ms, atmInterfaceProfile_SvcOptions_Q93bOptions_T316NumRetries=atmInterfaceProfile_SvcOptions_Q93bOptions_T316NumRetries, atmInterfaceProfile_SvcOptions_Q93bOptions_T313Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T313Ms, atmInterfaceProfile_SvcOptions_AtmAddress_E164NativeAddress=atmInterfaceProfile_SvcOptions_AtmAddress_E164NativeAddress, atmInterfaceProfile_SvcOptions_Enabled=atmInterfaceProfile_SvcOptions_Enabled, atmInterfaceProfile_SvcOptions_Q93bOptions_T308NumRetries=atmInterfaceProfile_SvcOptions_Q93bOptions_T308NumRetries, atmInterfaceProfile_SvcOptions_AtmAddress_NumberingPlan=atmInterfaceProfile_SvcOptions_AtmAddress_NumberingPlan, atmInterfaceProfile_SvcOptions_QsaalOptions_MaxStat=atmInterfaceProfile_SvcOptions_QsaalOptions_MaxStat, atmInterfaceProfile_SvcOptions_Q93bOptions_SaalRetryMs=atmInterfaceProfile_SvcOptions_Q93bOptions_SaalRetryMs, atmInterfaceProfile_SvcOptions_Q93bOptions_T331Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T331Ms)
| (configuration,) = mibBuilder.importSymbols('ASCEND-MIB', 'configuration')
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, constraints_intersection, single_value_constraint, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(object_identity, module_identity, counter64, mib_identifier, unsigned32, time_ticks, notification_type, ip_address, bits, iso, integer32, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'ModuleIdentity', 'Counter64', 'MibIdentifier', 'Unsigned32', 'TimeTicks', 'NotificationType', 'IpAddress', 'Bits', 'iso', 'Integer32', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
class Displaystring(OctetString):
pass
mibatm_interface_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 40))
mibatm_interface_profile_table = mib_table((1, 3, 6, 1, 4, 1, 529, 23, 40, 1))
if mibBuilder.loadTexts:
mibatmInterfaceProfileTable.setStatus('mandatory')
if mibBuilder.loadTexts:
mibatmInterfaceProfileTable.setDescription('A list of mibatmInterfaceProfile profile entries.')
mibatm_interface_profile_entry = mib_table_row((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1)).setIndexNames((0, 'ASCEND-MIBATMIF-MIB', 'atmInterfaceProfile-Shelf-o'), (0, 'ASCEND-MIBATMIF-MIB', 'atmInterfaceProfile-Slot-o'), (0, 'ASCEND-MIBATMIF-MIB', 'atmInterfaceProfile-Item-o'), (0, 'ASCEND-MIBATMIF-MIB', 'atmInterfaceProfile-LogicalItem-o'))
if mibBuilder.loadTexts:
mibatmInterfaceProfileEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
mibatmInterfaceProfileEntry.setDescription('A mibatmInterfaceProfile entry containing objects that maps to the parameters of mibatmInterfaceProfile profile.')
atm_interface_profile__shelf_o = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 1), integer32()).setLabel('atmInterfaceProfile-Shelf-o').setMaxAccess('readonly')
if mibBuilder.loadTexts:
atmInterfaceProfile_Shelf_o.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_Shelf_o.setDescription('')
atm_interface_profile__slot_o = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 2), integer32()).setLabel('atmInterfaceProfile-Slot-o').setMaxAccess('readonly')
if mibBuilder.loadTexts:
atmInterfaceProfile_Slot_o.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_Slot_o.setDescription('')
atm_interface_profile__item_o = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 3), integer32()).setLabel('atmInterfaceProfile-Item-o').setMaxAccess('readonly')
if mibBuilder.loadTexts:
atmInterfaceProfile_Item_o.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_Item_o.setDescription('')
atm_interface_profile__logical_item_o = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 4), integer32()).setLabel('atmInterfaceProfile-LogicalItem-o').setMaxAccess('readonly')
if mibBuilder.loadTexts:
atmInterfaceProfile_LogicalItem_o.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_LogicalItem_o.setDescription('')
atm_interface_profile__interface_address__physical_address__shelf = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('anyShelf', 1), ('shelf1', 2), ('shelf2', 3), ('shelf3', 4), ('shelf4', 5), ('shelf5', 6), ('shelf6', 7), ('shelf7', 8), ('shelf8', 9), ('shelf9', 10)))).setLabel('atmInterfaceProfile-InterfaceAddress-PhysicalAddress-Shelf').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Shelf.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Shelf.setDescription('The number of the shelf that the addressed physical device resides on.')
atm_interface_profile__interface_address__physical_address__slot = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 55, 56, 57, 58, 49, 50, 42, 53, 54, 45, 46, 51, 59))).clone(namedValues=named_values(('anySlot', 1), ('slot1', 2), ('slot2', 3), ('slot3', 4), ('slot4', 5), ('slot5', 6), ('slot6', 7), ('slot7', 8), ('slot8', 9), ('slot9', 10), ('slot10', 11), ('slot11', 12), ('slot12', 13), ('slot13', 14), ('slot14', 15), ('slot15', 16), ('slot16', 17), ('slot17', 18), ('slot18', 19), ('slot19', 20), ('slot20', 21), ('slot21', 22), ('slot22', 23), ('slot23', 24), ('slot24', 25), ('slot25', 26), ('slot26', 27), ('slot27', 28), ('slot28', 29), ('slot29', 30), ('slot30', 31), ('slot31', 32), ('slot32', 33), ('slot33', 34), ('slot34', 35), ('slot35', 36), ('slot36', 37), ('slot37', 38), ('slot38', 39), ('slot39', 40), ('slot40', 41), ('aLim', 55), ('bLim', 56), ('cLim', 57), ('dLim', 58), ('leftController', 49), ('rightController', 50), ('controller', 42), ('firstControlModule', 53), ('secondControlModule', 54), ('trunkModule1', 45), ('trunkModule2', 46), ('controlModule', 51), ('slotPrimary', 59)))).setLabel('atmInterfaceProfile-InterfaceAddress-PhysicalAddress-Slot').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Slot.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Slot.setDescription('The number of the slot that the addressed physical device resides on.')
atm_interface_profile__interface_address__physical_address__item_number = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 7), integer32()).setLabel('atmInterfaceProfile-InterfaceAddress-PhysicalAddress-ItemNumber').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_InterfaceAddress_PhysicalAddress_ItemNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_InterfaceAddress_PhysicalAddress_ItemNumber.setDescription('A number that specifies an addressable entity within the context of shelf and slot.')
atm_interface_profile__interface_address__logical_item = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 8), integer32()).setLabel('atmInterfaceProfile-InterfaceAddress-LogicalItem').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_InterfaceAddress_LogicalItem.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_InterfaceAddress_LogicalItem.setDescription('A number that specifies an addressable logical entity within the context of a physical address.')
atm_interface_profile__name = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 9), display_string()).setLabel('atmInterfaceProfile-Name').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_Name.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_Name.setDescription('Name of ATM Interface.')
atm_interface_profile__svc_options__enabled = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setLabel('atmInterfaceProfile-SvcOptions-Enabled').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Enabled.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Enabled.setDescription('SVC signalling (Q.93b) is enabled on this link.')
atm_interface_profile__svc_options__atm_protocol = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 3))).clone(namedValues=named_values(('uni30', 2), ('uni31', 3)))).setLabel('atmInterfaceProfile-SvcOptions-AtmProtocol').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmProtocol.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmProtocol.setDescription('ATM protocol on this link.')
atm_interface_profile__svc_options__atm_address__numbering_plan = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 5, 9))).clone(namedValues=named_values(('undefined', 1), ('isdn', 2), ('aesa', 3), ('unknown', 5), ('x121', 9)))).setLabel('atmInterfaceProfile-SvcOptions-AtmAddress-NumberingPlan').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_NumberingPlan.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_NumberingPlan.setDescription('Numbering plan for an SVC address')
atm_interface_profile__svc_options__atm_address_e164_native_address = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 13), display_string()).setLabel('atmInterfaceProfile-SvcOptions-AtmAddress-E164NativeAddress').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_E164NativeAddress.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_E164NativeAddress.setDescription('An SVC address in a native E.164 format.')
atm_interface_profile__svc_options__atm_address__aesa_address__format = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 6, 4, 5))).clone(namedValues=named_values(('undefined', 1), ('dccAesa', 2), ('icdAesa', 6), ('e164Aesa', 4), ('customAesa', 5)))).setLabel('atmInterfaceProfile-SvcOptions-AtmAddress-AesaAddress-Format').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_Format.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_Format.setDescription('An AESA address format used to define this SVC address.')
atm_interface_profile__svc_options__atm_address__aesa_address__idp_portion__afi = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 15), display_string()).setLabel('atmInterfaceProfile-SvcOptions-AtmAddress-AesaAddress-IdpPortion-Afi').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Afi.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Afi.setDescription('An Authority and Format Identifier(AFI) for AESA address. Must be defined for every AESA address.')
atm_interface_profile__svc_options__atm_address__aesa_address__idp_portion__idi = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 16), display_string()).setLabel('atmInterfaceProfile-SvcOptions-AtmAddress-AesaAddress-IdpPortion-Idi').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Idi.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Idi.setDescription('An Initial Domain Identifier (IDI) portion of the AESA address.')
atm_interface_profile__svc_options__atm_address__aesa_address__dsp_portion__ho_dsp = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 17), display_string()).setLabel('atmInterfaceProfile-SvcOptions-AtmAddress-AesaAddress-DspPortion-HoDsp').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_HoDsp.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_HoDsp.setDescription('A High-Order Domain-Specific Part of AESA address. The IDP portion determine the format of the HO-DSP.')
atm_interface_profile__svc_options__atm_address__aesa_address__dsp_portion__esi = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 18), display_string()).setLabel('atmInterfaceProfile-SvcOptions-AtmAddress-AesaAddress-DspPortion-Esi').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Esi.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Esi.setDescription('An End System Identifier (ESI) which uniquely identifies the end system within the specified subnetwork.')
atm_interface_profile__svc_options__atm_address__aesa_address__dsp_portion__sel = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 19), display_string()).setLabel('atmInterfaceProfile-SvcOptions-AtmAddress-AesaAddress-DspPortion-Sel').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Sel.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Sel.setDescription('A selector (SEL) field that may be used by the end system.')
atm_interface_profile__svc_options__insert_calling_party_addr = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setLabel('atmInterfaceProfile-SvcOptions-InsertCallingPartyAddr').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_InsertCallingPartyAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_InsertCallingPartyAddr.setDescription('Insert ATM address of this interface in calling party address IE during call setup.')
atm_interface_profile__svc_options_q93b_options__max_restart = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 21), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-MaxRestart').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_MaxRestart.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_MaxRestart.setDescription('Maximum number of unacknowledged tx RESTART.')
atm_interface_profile__svc_options_q93b_options__max_statenq = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 22), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-MaxStatenq').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_MaxStatenq.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_MaxStatenq.setDescription('Maximum number of unacknowledged tx STATUS ENQ.')
atm_interface_profile__svc_options_q93b_options_t301_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 23), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T301Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T301Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T301Ms.setDescription('Timer (in msec) for alerting supervision function. This timer is started on receipt of ALERT in Call received/delivered state and stopped when CONNECT is received.')
atm_interface_profile__svc_options_q93b_options_t303_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 24), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T303Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T303Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T303Ms.setDescription('Timer (in msec) for a response after SETUP is sent. This timer is stopped when the CONNECT, CALL PROCEEDING, or RELEASE COMPLETE is received.')
atm_interface_profile__svc_options_q93b_options_t306_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 25), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T306Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T306Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T306Ms.setDescription('Timer (in msec) for a RELEASE_COMPLETE to be received after a release has been sent.')
atm_interface_profile__svc_options_q93b_options_t308_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 26), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T308Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T308Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T308Ms.setDescription('Timer (in msec) for a response after RELEASE is sent. This is a release indication timer. This timer is started when the RELEASE message is sent and normally is stopped when the RELEASE or RELEASE COMPLETE is received.')
atm_interface_profile__svc_options_q93b_options_t309_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 27), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T309Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T309Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T309Ms.setDescription('Timer (in msec) for Q.SAAL to reconnect. After this time, calls are dropped. When set to 0, a default value based on an ATM signaling protocol will be used.')
atm_interface_profile__svc_options_q93b_options_t310_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 28), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T310Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T310Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T310Ms.setDescription('Timer (in msec) for a response after SETUP is received. Also called the CALL PROCEEDING timer.')
atm_interface_profile__svc_options_q93b_options_t313_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 29), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T313Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T313Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T313Ms.setDescription('Timer (in msec) for a response after CONNECT is sent. Also called the connect request timer. It is started when the CONNECT is sent and stopped when the CONNECT ACKNOWLEDGE is recieved.')
atm_interface_profile__svc_options_q93b_options_t316_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 30), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T316Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T316Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T316Ms.setDescription('Timer (in msec) for a response after RESTART is sent. Also called the restart request timer. It is started when the RESTART is sent and stopped when the RESTART ACKNOWLEDGE is recieved.')
atm_interface_profile__svc_options_q93b_options_t317_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 31), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T317Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T317Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T317Ms.setDescription('Timer (in msec) for internal clearing of call references. This timer is started as a result of a restart and cleared when all the internal call references are cleared. Should be less than the the likely value of T316 of the peer.')
atm_interface_profile__svc_options_q93b_options_t322_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 32), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T322Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T322Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T322Ms.setDescription('Timer (in msec) for a response after STATUS ENQ is sent.')
atm_interface_profile__svc_options_q93b_options_t331_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 33), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T331Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T331Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T331Ms.setDescription('Timer (in msec) for internal clearing of call references.')
atm_interface_profile__svc_options_q93b_options_t333_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 34), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T333Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T333Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T333Ms.setDescription('Timer (in msec) for internal clearing of call references.')
atm_interface_profile__svc_options_q93b_options_t397_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 35), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T397Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T397Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T397Ms.setDescription('Timer (in msec) for internal clearing of call references.')
atm_interface_profile__svc_options_q93b_options_t398_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 36), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T398Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T398Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T398Ms.setDescription('Timer (in msec) for receipt of a response to a DROP PARTY that was sent.')
atm_interface_profile__svc_options_q93b_options_t399_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 37), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T399Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T399Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T399Ms.setDescription('Timer (in msec) for receipt of a response to an ADD PARTY that was sent.')
atm_interface_profile__svc_options_q93b_options__saal_retry_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 38), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-SaalRetryMs').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_SaalRetryMs.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_SaalRetryMs.setDescription('Timer value for retrying AAL_ESTABLISH messages.')
atm_interface_profile__svc_options_q93b_options_t303_num_reties = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 39), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T303NumReties').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T303NumReties.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T303NumReties.setDescription('Number of times SETUP could be resent in case of T303 timer expiry.')
atm_interface_profile__svc_options_q93b_options_t308_num_retries = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 40), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T308NumRetries').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T308NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T308NumRetries.setDescription('Number of times RELEASE could be sent in case of T308 timer expiry.')
atm_interface_profile__svc_options_q93b_options_t316_num_retries = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 41), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T316NumRetries').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T316NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T316NumRetries.setDescription('Number of times RESTART could be sent in case RESTART ACK is not received withinn T316 timer expiry.')
atm_interface_profile__svc_options_q93b_options_t322_num_retries = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 42), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T322NumRetries').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T322NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T322NumRetries.setDescription('Number of times STAT ENQ could be sent before a response is received within the T322 timer expiry.')
atm_interface_profile__svc_options_q93b_options_t331_num_retries = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 43), integer32()).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-T331NumRetries').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T331NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_T331NumRetries.setDescription('')
atm_interface_profile__svc_options_q93b_options__assign_vpi_vci = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 44), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setLabel('atmInterfaceProfile-SvcOptions-Q93bOptions-AssignVpiVci').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_AssignVpiVci.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_Q93bOptions_AssignVpiVci.setDescription('In the case of UNI4.0 and PNNI this parameter specifies who assigns the VPI/VCI. TRUE will allow the local stack and FALSE will let the partner stack to assign.')
atm_interface_profile__svc_options__qsaal_options__window_size = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 45), integer32()).setLabel('atmInterfaceProfile-SvcOptions-QsaalOptions-WindowSize').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_WindowSize.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_WindowSize.setDescription('Q.SAAL window size')
atm_interface_profile__svc_options__qsaal_options__max_cc = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 46), integer32()).setLabel('atmInterfaceProfile-SvcOptions-QsaalOptions-MaxCc').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_MaxCc.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_MaxCc.setDescription('Maximum number of control PDU (BGN, END, RESYNC) retransmissions.')
atm_interface_profile__svc_options__qsaal_options__max_pd = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 47), integer32()).setLabel('atmInterfaceProfile-SvcOptions-QsaalOptions-MaxPd').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_MaxPd.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_MaxPd.setDescription("Maximum number of Sequenced data PDU's between poll.")
atm_interface_profile__svc_options__qsaal_options__max_stat = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 48), integer32()).setLabel('atmInterfaceProfile-SvcOptions-QsaalOptions-MaxStat').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_MaxStat.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_MaxStat.setDescription('Maximum length of STAT PDU.')
atm_interface_profile__svc_options__qsaal_options__tcc_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 49), integer32()).setLabel('atmInterfaceProfile-SvcOptions-QsaalOptions-TccMs').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_TccMs.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_TccMs.setDescription("Retry time (in msec) for control PDU's(BGN, END, RESYNC).")
atm_interface_profile__svc_options__qsaal_options__tpoll_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 50), integer32()).setLabel('atmInterfaceProfile-SvcOptions-QsaalOptions-TpollMs').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_TpollMs.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_TpollMs.setDescription('Poll sent (in msec) when active. When set to 0, a default value based on an ATM signaling protocol will be used.')
atm_interface_profile__svc_options__qsaal_options__tkeepalive_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 51), integer32()).setLabel('atmInterfaceProfile-SvcOptions-QsaalOptions-TkeepaliveMs').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_TkeepaliveMs.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_TkeepaliveMs.setDescription('Poll sent (in msec) when in transient state. When set to 0, a default value based on an ATM signaling protocol will be used.')
atm_interface_profile__svc_options__qsaal_options__tnoresponse_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 52), integer32()).setLabel('atmInterfaceProfile-SvcOptions-QsaalOptions-TnoresponseMs').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_TnoresponseMs.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_TnoresponseMs.setDescription('STAT received at least this period(in msec). When set to 0, a default value based on an ATM signaling protocol will be used.')
atm_interface_profile__svc_options__qsaal_options__tidle_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 53), integer32()).setLabel('atmInterfaceProfile-SvcOptions-QsaalOptions-TidleMs').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_TidleMs.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_TidleMs.setDescription('Poll sent (in msec) when idle -- UNI 3.1, only.')
atm_interface_profile__svc_options__qsaal_options__poll_after_retransmission = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 54), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setLabel('atmInterfaceProfile-SvcOptions-QsaalOptions-PollAfterRetransmission').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_PollAfterRetransmission.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_PollAfterRetransmission.setDescription('Specifies after retransmitting PDUs whether a POLL must be sent before sending any further PDUs.')
atm_interface_profile__svc_options__qsaal_options__repeat_ustat = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 55), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setLabel('atmInterfaceProfile-SvcOptions-QsaalOptions-RepeatUstat').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_RepeatUstat.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_RepeatUstat.setDescription('Specifies whether two USTAT messages should be sent each time it is required to be sent.')
atm_interface_profile__svc_options__qsaal_options__ustat_rsp_to_poll = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 56), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setLabel('atmInterfaceProfile-SvcOptions-QsaalOptions-UstatRspToPoll').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_UstatRspToPoll.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_SvcOptions_QsaalOptions_UstatRspToPoll.setDescription('Specifies whether a USTAT should be sent in response to a POLL indicating an out of sequence PDU.')
atm_interface_profile__action_o = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 40, 1, 1, 57), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('noAction', 1), ('createProfile', 2), ('deleteProfile', 3)))).setLabel('atmInterfaceProfile-Action-o').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmInterfaceProfile_Action_o.setStatus('mandatory')
if mibBuilder.loadTexts:
atmInterfaceProfile_Action_o.setDescription('')
mibBuilder.exportSymbols('ASCEND-MIBATMIF-MIB', atmInterfaceProfile_SvcOptions_Q93bOptions_T397Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T397Ms, atmInterfaceProfile_SvcOptions_Q93bOptions_T303Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T303Ms, atmInterfaceProfile_SvcOptions_Q93bOptions_T309Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T309Ms, atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Slot=atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Slot, atmInterfaceProfile_InterfaceAddress_LogicalItem=atmInterfaceProfile_InterfaceAddress_LogicalItem, atmInterfaceProfile_SvcOptions_Q93bOptions_T317Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T317Ms, atmInterfaceProfile_SvcOptions_InsertCallingPartyAddr=atmInterfaceProfile_SvcOptions_InsertCallingPartyAddr, atmInterfaceProfile_SvcOptions_QsaalOptions_UstatRspToPoll=atmInterfaceProfile_SvcOptions_QsaalOptions_UstatRspToPoll, atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_Format=atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_Format, atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Afi=atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Afi, atmInterfaceProfile_SvcOptions_Q93bOptions_T398Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T398Ms, atmInterfaceProfile_SvcOptions_Q93bOptions_T331NumRetries=atmInterfaceProfile_SvcOptions_Q93bOptions_T331NumRetries, atmInterfaceProfile_SvcOptions_QsaalOptions_TkeepaliveMs=atmInterfaceProfile_SvcOptions_QsaalOptions_TkeepaliveMs, atmInterfaceProfile_SvcOptions_AtmProtocol=atmInterfaceProfile_SvcOptions_AtmProtocol, atmInterfaceProfile_SvcOptions_Q93bOptions_T316Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T316Ms, atmInterfaceProfile_Name=atmInterfaceProfile_Name, atmInterfaceProfile_SvcOptions_Q93bOptions_T310Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T310Ms, atmInterfaceProfile_Item_o=atmInterfaceProfile_Item_o, atmInterfaceProfile_Shelf_o=atmInterfaceProfile_Shelf_o, atmInterfaceProfile_LogicalItem_o=atmInterfaceProfile_LogicalItem_o, mibatmInterfaceProfileEntry=mibatmInterfaceProfileEntry, atmInterfaceProfile_SvcOptions_Q93bOptions_T322NumRetries=atmInterfaceProfile_SvcOptions_Q93bOptions_T322NumRetries, atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Esi=atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Esi, mibatmInterfaceProfileTable=mibatmInterfaceProfileTable, mibatmInterfaceProfile=mibatmInterfaceProfile, atmInterfaceProfile_SvcOptions_QsaalOptions_MaxCc=atmInterfaceProfile_SvcOptions_QsaalOptions_MaxCc, atmInterfaceProfile_SvcOptions_QsaalOptions_RepeatUstat=atmInterfaceProfile_SvcOptions_QsaalOptions_RepeatUstat, atmInterfaceProfile_SvcOptions_Q93bOptions_T308Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T308Ms, atmInterfaceProfile_SvcOptions_QsaalOptions_MaxPd=atmInterfaceProfile_SvcOptions_QsaalOptions_MaxPd, atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Shelf=atmInterfaceProfile_InterfaceAddress_PhysicalAddress_Shelf, atmInterfaceProfile_SvcOptions_QsaalOptions_PollAfterRetransmission=atmInterfaceProfile_SvcOptions_QsaalOptions_PollAfterRetransmission, atmInterfaceProfile_SvcOptions_Q93bOptions_T306Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T306Ms, atmInterfaceProfile_SvcOptions_Q93bOptions_T333Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T333Ms, atmInterfaceProfile_SvcOptions_Q93bOptions_T399Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T399Ms, atmInterfaceProfile_SvcOptions_QsaalOptions_TidleMs=atmInterfaceProfile_SvcOptions_QsaalOptions_TidleMs, atmInterfaceProfile_SvcOptions_QsaalOptions_TccMs=atmInterfaceProfile_SvcOptions_QsaalOptions_TccMs, atmInterfaceProfile_SvcOptions_QsaalOptions_TnoresponseMs=atmInterfaceProfile_SvcOptions_QsaalOptions_TnoresponseMs, DisplayString=DisplayString, atmInterfaceProfile_SvcOptions_QsaalOptions_TpollMs=atmInterfaceProfile_SvcOptions_QsaalOptions_TpollMs, atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Sel=atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_Sel, atmInterfaceProfile_SvcOptions_QsaalOptions_WindowSize=atmInterfaceProfile_SvcOptions_QsaalOptions_WindowSize, atmInterfaceProfile_Action_o=atmInterfaceProfile_Action_o, atmInterfaceProfile_SvcOptions_Q93bOptions_AssignVpiVci=atmInterfaceProfile_SvcOptions_Q93bOptions_AssignVpiVci, atmInterfaceProfile_SvcOptions_Q93bOptions_MaxRestart=atmInterfaceProfile_SvcOptions_Q93bOptions_MaxRestart, atmInterfaceProfile_SvcOptions_Q93bOptions_MaxStatenq=atmInterfaceProfile_SvcOptions_Q93bOptions_MaxStatenq, atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Idi=atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_IdpPortion_Idi, atmInterfaceProfile_SvcOptions_Q93bOptions_T301Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T301Ms, atmInterfaceProfile_SvcOptions_Q93bOptions_T303NumReties=atmInterfaceProfile_SvcOptions_Q93bOptions_T303NumReties, atmInterfaceProfile_Slot_o=atmInterfaceProfile_Slot_o, atmInterfaceProfile_InterfaceAddress_PhysicalAddress_ItemNumber=atmInterfaceProfile_InterfaceAddress_PhysicalAddress_ItemNumber, atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_HoDsp=atmInterfaceProfile_SvcOptions_AtmAddress_AesaAddress_DspPortion_HoDsp, atmInterfaceProfile_SvcOptions_Q93bOptions_T322Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T322Ms, atmInterfaceProfile_SvcOptions_Q93bOptions_T316NumRetries=atmInterfaceProfile_SvcOptions_Q93bOptions_T316NumRetries, atmInterfaceProfile_SvcOptions_Q93bOptions_T313Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T313Ms, atmInterfaceProfile_SvcOptions_AtmAddress_E164NativeAddress=atmInterfaceProfile_SvcOptions_AtmAddress_E164NativeAddress, atmInterfaceProfile_SvcOptions_Enabled=atmInterfaceProfile_SvcOptions_Enabled, atmInterfaceProfile_SvcOptions_Q93bOptions_T308NumRetries=atmInterfaceProfile_SvcOptions_Q93bOptions_T308NumRetries, atmInterfaceProfile_SvcOptions_AtmAddress_NumberingPlan=atmInterfaceProfile_SvcOptions_AtmAddress_NumberingPlan, atmInterfaceProfile_SvcOptions_QsaalOptions_MaxStat=atmInterfaceProfile_SvcOptions_QsaalOptions_MaxStat, atmInterfaceProfile_SvcOptions_Q93bOptions_SaalRetryMs=atmInterfaceProfile_SvcOptions_Q93bOptions_SaalRetryMs, atmInterfaceProfile_SvcOptions_Q93bOptions_T331Ms=atmInterfaceProfile_SvcOptions_Q93bOptions_T331Ms) |
#!/usr/bin/env pypy
n = int(input())
F = [1] * -~n
for i in range(2, n + 1):
for j in range(i, n + 1, i):
F[j] += 1
print(sum(e * v for e, v in enumerate(F))) | n = int(input())
f = [1] * -~n
for i in range(2, n + 1):
for j in range(i, n + 1, i):
F[j] += 1
print(sum((e * v for (e, v) in enumerate(F)))) |
# Large sum
x = 37107287533902102798797998220837590246510135740250463769376774900097126481248969700780504170182605387432498619952474105947423330951305812372661730962991942213363574161572522430563301811072406154908250230675882075393461711719803104210475137780632466768926167069662363382013637841838368417873436172675728112879812849979408065481931592621691275889832738442742289174325203219235894228767964876702721893184745144573600130643909116721685684458871160315327670386486105843025439939619828917593665686757934951621764571418565606295021572231965867550793241933316490635246274190492910143244581382266334794475817892575867718337217661963751590579239728245598838407582035653253593990084026335689488301894586282278288018119938482628201427819413994056758715117009439035398664372827112653829987240784473053190104293586865155060062958648615320752733719591914205172558297169388870771546649911559348760353292171497005693854370070576826684624621495650076471787294438377604532826541087568284431911906346940378552177792951453612327252500029607107508256381565671088525835072145876576172410976447339110607218265236877223636045174237069058518606604482076212098132878607339694128114266041808683061932846081119106155694051268969251934325451728388641918047049293215058642563049483624672216484350762017279180399446930047329563406911573244438690812579451408905770622942919710792820955037687525678773091862540744969844508330393682126183363848253301546861961243487676812975343759465158038628759287849020152168555482871720121925776695478182833757993103614740356856449095527097864797581167263201004368978425535399209318374414978068609844840309812907779179908821879532736447567559084803087086987551392711854517078544161852424320693150332599594068957565367821070749269665376763262354472106979395067965269474259770973916669376304263398708541052684708299085211399427365734116182760315001271653786073615010808570091499395125570281987460043753582903531743471732693212357815498262974255273730794953759765105305946966067683156574377167401875275889028025717332296191766687138199318110487701902712526768027607800301367868099252546340106163286652636270218540497705585629946580636237993140746255962240744869082311749777923654662572469233228109171419143028819710328859780666976089293863828502533340334413065578016127815921815005561868836468420090470230530811728164304876237919698424872550366387845831148769693215490281042402013833512446218144177347063783299490636259666498587618221225225512486764533677201869716985443124195724099139590089523100588229554825530026352078153229679624948164195386821877476085327132285723110424803456124867697064507995236377742425354112916842768655389262050249103265729672370191327572567528565324825826546309220705859652229798860272258331913126375147341994889534765745501184957014548792889848568277260777137214037988797153829820378303147352772158034814451349137322665138134829543829199918180278916522431027392251122869539409579530664052326325380441000596549391598795936352974615218550237130764225512118369380358038858490341698116222072977186158236678424689157993532961922624679571944012690438771072750481023908955235974572318970677254791506150550495392297953090112996751986188088225875314529584099251203829009407770775672113067397083047244838165338735023408456470580773088295917476714036319800818712901187549131054712658197623331044818386269515456334926366572897563400500428462801835170705278318394258821455212272512503275512160354698120058176216521282765275169129689778932238195734329339946437501907836945765883352399886755061649651847751807381688378610915273579297013376217784275219262340194239963916804498399317331273132924185707147349566916674687634660915035914677504995186714302352196288948901024233251169136196266227326746080059154747183079839286853520694694454072476841822524674417161514036427982273348055556214818971426179103425986472045168939894221798260880768528778364618279934631376775430780936333301898264209010848802521674670883215120185883543223812876952786713296124747824645386369930090493103636197638780396218407357239979422340623539380833965132740801111666627891981488087797941876876144230030984490851411606618262936828367647447792391803351109890697907148578694408955299065364044742557608365997664579509666024396409905389607120198219976047599490197230297649139826800329731560371200413779037855660850892521673093931987275027546890690370753941304265231501194809377245048795150954100921645863754710598436791786391670211874924319957006419179697775990283006991536871371193661495281130587638027841075444973307840789923115535562561142322423255033685442488917353448899115014406480203690680639606723221932041495354150312888033953605329934036800697771065056663195481234880673210146739058568557934581403627822703280826165707739483275922328459417065250945123252306082291880205877731971983945018088807242966198081119777158542502016545090413245809786882778948721859617721078384350691861554356628840622574736922845095162084960398013400172393067166682355524525280460972253503534226472524250874054075591789781264330331690
def vsota_stevil(n):
vsota = 0
sez = []
n = str(n)
for i in range(0, len(n), 50):
sez.append(n[i:i+50])
for j in sez:
vsota += int(j)
return vsota
print(str(vsota_stevil(x))[0:10]) | x = 37107287533902102798797998220837590246510135740250463769376774900097126481248969700780504170182605387432498619952474105947423330951305812372661730962991942213363574161572522430563301811072406154908250230675882075393461711719803104210475137780632466768926167069662363382013637841838368417873436172675728112879812849979408065481931592621691275889832738442742289174325203219235894228767964876702721893184745144573600130643909116721685684458871160315327670386486105843025439939619828917593665686757934951621764571418565606295021572231965867550793241933316490635246274190492910143244581382266334794475817892575867718337217661963751590579239728245598838407582035653253593990084026335689488301894586282278288018119938482628201427819413994056758715117009439035398664372827112653829987240784473053190104293586865155060062958648615320752733719591914205172558297169388870771546649911559348760353292171497005693854370070576826684624621495650076471787294438377604532826541087568284431911906346940378552177792951453612327252500029607107508256381565671088525835072145876576172410976447339110607218265236877223636045174237069058518606604482076212098132878607339694128114266041808683061932846081119106155694051268969251934325451728388641918047049293215058642563049483624672216484350762017279180399446930047329563406911573244438690812579451408905770622942919710792820955037687525678773091862540744969844508330393682126183363848253301546861961243487676812975343759465158038628759287849020152168555482871720121925776695478182833757993103614740356856449095527097864797581167263201004368978425535399209318374414978068609844840309812907779179908821879532736447567559084803087086987551392711854517078544161852424320693150332599594068957565367821070749269665376763262354472106979395067965269474259770973916669376304263398708541052684708299085211399427365734116182760315001271653786073615010808570091499395125570281987460043753582903531743471732693212357815498262974255273730794953759765105305946966067683156574377167401875275889028025717332296191766687138199318110487701902712526768027607800301367868099252546340106163286652636270218540497705585629946580636237993140746255962240744869082311749777923654662572469233228109171419143028819710328859780666976089293863828502533340334413065578016127815921815005561868836468420090470230530811728164304876237919698424872550366387845831148769693215490281042402013833512446218144177347063783299490636259666498587618221225225512486764533677201869716985443124195724099139590089523100588229554825530026352078153229679624948164195386821877476085327132285723110424803456124867697064507995236377742425354112916842768655389262050249103265729672370191327572567528565324825826546309220705859652229798860272258331913126375147341994889534765745501184957014548792889848568277260777137214037988797153829820378303147352772158034814451349137322665138134829543829199918180278916522431027392251122869539409579530664052326325380441000596549391598795936352974615218550237130764225512118369380358038858490341698116222072977186158236678424689157993532961922624679571944012690438771072750481023908955235974572318970677254791506150550495392297953090112996751986188088225875314529584099251203829009407770775672113067397083047244838165338735023408456470580773088295917476714036319800818712901187549131054712658197623331044818386269515456334926366572897563400500428462801835170705278318394258821455212272512503275512160354698120058176216521282765275169129689778932238195734329339946437501907836945765883352399886755061649651847751807381688378610915273579297013376217784275219262340194239963916804498399317331273132924185707147349566916674687634660915035914677504995186714302352196288948901024233251169136196266227326746080059154747183079839286853520694694454072476841822524674417161514036427982273348055556214818971426179103425986472045168939894221798260880768528778364618279934631376775430780936333301898264209010848802521674670883215120185883543223812876952786713296124747824645386369930090493103636197638780396218407357239979422340623539380833965132740801111666627891981488087797941876876144230030984490851411606618262936828367647447792391803351109890697907148578694408955299065364044742557608365997664579509666024396409905389607120198219976047599490197230297649139826800329731560371200413779037855660850892521673093931987275027546890690370753941304265231501194809377245048795150954100921645863754710598436791786391670211874924319957006419179697775990283006991536871371193661495281130587638027841075444973307840789923115535562561142322423255033685442488917353448899115014406480203690680639606723221932041495354150312888033953605329934036800697771065056663195481234880673210146739058568557934581403627822703280826165707739483275922328459417065250945123252306082291880205877731971983945018088807242966198081119777158542502016545090413245809786882778948721859617721078384350691861554356628840622574736922845095162084960398013400172393067166682355524525280460972253503534226472524250874054075591789781264330331690
def vsota_stevil(n):
vsota = 0
sez = []
n = str(n)
for i in range(0, len(n), 50):
sez.append(n[i:i + 50])
for j in sez:
vsota += int(j)
return vsota
print(str(vsota_stevil(x))[0:10]) |
# -*- coding: utf-8 -*-
class GraphDSLSemantics(object):
def digit(self, ast):
return ast
def symbol(self, ast):
return ast
def characters(self, ast):
return ast
def identifier(self, ast):
return ast
def string(self, ast):
return ast[1]
def natural(self, ast):
return ast
def sign(self, ast):
return ast
def integer(self, ast):
return int(''.join(ast))
def decimal(self, ast):
return ast
def boolean(self, ast):
return ast
def value(self, ast):
return ast
def property_name(self, ast):
return ast
def alias(self, ast):
return ast
def aliased_property(self, ast):
return ast
def aliases(self, ast):
return ast
def cond_operator(self, ast):
return ast
def expression(self, ast):
return ast
def type(self, ast):
return ast
def types(self, ast):
return ast
def property_cond(self, ast):
return ast
def properties_cond(self, ast):
return ast
def elements(self, ast):
return ast
def aliased_elements(self, ast):
return ast
def graph_joint(self, ast):
return ast
def elt_joint(self, ast):
return ast
def backward(self, ast):
return ast
def forward(self, ast):
return ast
def cardinality(self, ast):
c1, c2, c3 = ast
return [
int(''.join(c1)),
c2,
int(''.join(c3))
]
def walk_mode(self, ast):
return ast
def base_joint(self, ast):
return ast
def node_joint(self, ast):
return ast
def relationship_joint(self, ast):
return ast
def joint(self, ast):
return ast
def path(self, ast):
return ast
def walkthrough_stmt(self, ast):
return ast
def walkthrough_stmts(self, ast):
return ast
def condition(self, ast):
return ast
def filter_stmt(self, ast):
return ast
def new_property(self, ast):
return ast
def new_properties(self, ast):
return ast
def new_cardinality(self, ast):
return int(''.join(ast))
def new_data(self, ast):
return ast
def create_stmt(self, ast):
return ast
def read_stmt(self, ast):
return ast
def update_keyword(self, ast):
return ast
def update_alias(self, ast):
return ast
def update_data(self, ast):
return ast
def update_stmt(self, ast):
return ast
def delete_stmt(self, ast):
return ast
def crud_stmt(self, ast):
return ast
def request(self, ast):
return ast
| class Graphdslsemantics(object):
def digit(self, ast):
return ast
def symbol(self, ast):
return ast
def characters(self, ast):
return ast
def identifier(self, ast):
return ast
def string(self, ast):
return ast[1]
def natural(self, ast):
return ast
def sign(self, ast):
return ast
def integer(self, ast):
return int(''.join(ast))
def decimal(self, ast):
return ast
def boolean(self, ast):
return ast
def value(self, ast):
return ast
def property_name(self, ast):
return ast
def alias(self, ast):
return ast
def aliased_property(self, ast):
return ast
def aliases(self, ast):
return ast
def cond_operator(self, ast):
return ast
def expression(self, ast):
return ast
def type(self, ast):
return ast
def types(self, ast):
return ast
def property_cond(self, ast):
return ast
def properties_cond(self, ast):
return ast
def elements(self, ast):
return ast
def aliased_elements(self, ast):
return ast
def graph_joint(self, ast):
return ast
def elt_joint(self, ast):
return ast
def backward(self, ast):
return ast
def forward(self, ast):
return ast
def cardinality(self, ast):
(c1, c2, c3) = ast
return [int(''.join(c1)), c2, int(''.join(c3))]
def walk_mode(self, ast):
return ast
def base_joint(self, ast):
return ast
def node_joint(self, ast):
return ast
def relationship_joint(self, ast):
return ast
def joint(self, ast):
return ast
def path(self, ast):
return ast
def walkthrough_stmt(self, ast):
return ast
def walkthrough_stmts(self, ast):
return ast
def condition(self, ast):
return ast
def filter_stmt(self, ast):
return ast
def new_property(self, ast):
return ast
def new_properties(self, ast):
return ast
def new_cardinality(self, ast):
return int(''.join(ast))
def new_data(self, ast):
return ast
def create_stmt(self, ast):
return ast
def read_stmt(self, ast):
return ast
def update_keyword(self, ast):
return ast
def update_alias(self, ast):
return ast
def update_data(self, ast):
return ast
def update_stmt(self, ast):
return ast
def delete_stmt(self, ast):
return ast
def crud_stmt(self, ast):
return ast
def request(self, ast):
return ast |
n = int(input())
nums = list(input())
sum = 0
for i in range(0, n):
sum += int(nums[i])
print(sum) | n = int(input())
nums = list(input())
sum = 0
for i in range(0, n):
sum += int(nums[i])
print(sum) |
test_secret = "seB388LNHgxcuvAcg1pOV20_VR7uJWNGAznE0fOqKxg=".encode('ascii')
test_data = {
'valid':
'{"tx_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb", "case_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","collection":'
'{"exercise_sid":"hfjdskf"},"metadata":{"user_id":"789473423","ru_ref":"12345678901A"}}',
'invalid': '{"cats":"are nice"}',
'missing_metadata':
'{"tx_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","case_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","collection":'
'{"exercise_sid":"hfjdskf"}}',
'missing_tx_id': '{"case_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","collection":''{"exercise_sid":"hfjdskf"},"metadata":'
'{"user_id":"789473423","ru_ref":"12345678901A"}}',
'missing_case_id': '{"tx_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","collection":'
'{"exercise_sid":"hfjdskf"},"metadata":{"user_id":"789473423","ru_ref":"12345678901A"}}',
}
| test_secret = 'seB388LNHgxcuvAcg1pOV20_VR7uJWNGAznE0fOqKxg='.encode('ascii')
test_data = {'valid': '{"tx_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb", "case_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","collection":{"exercise_sid":"hfjdskf"},"metadata":{"user_id":"789473423","ru_ref":"12345678901A"}}', 'invalid': '{"cats":"are nice"}', 'missing_metadata': '{"tx_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","case_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","collection":{"exercise_sid":"hfjdskf"}}', 'missing_tx_id': '{"case_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","collection":{"exercise_sid":"hfjdskf"},"metadata":{"user_id":"789473423","ru_ref":"12345678901A"}}', 'missing_case_id': '{"tx_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","collection":{"exercise_sid":"hfjdskf"},"metadata":{"user_id":"789473423","ru_ref":"12345678901A"}}'} |
'''
Create a script that reads something and show the type and all informations about it.
'''
something = input('Type something: ')
print(f'The type of this value is \033[34m{type(something)}\033[m')
print(f'Has only spaces? \033[34m{something.isspace()}\033[m')
print(f'Is numeric? \033[34m{something.isnumeric()}\033[m')
print(f'Is alphabetic? \033[34m{something.isalpha()}\033[m')
print(f'Is alphamumeric? \033[34m{something.isalnum()}\033[m')
print(f'Is uppercase? \033[34m{something.isupper()}\033[m')
print(f'Is lowercase? \033[34m{something.islower()}\033[m')
print(f'Is capital? \033[34m{something.istitle()}\033[m')
print(f'Is decimal? \033[34m{something.isdecimal()}\033[m')
print(f'Is digit? \033[34m{something.isdigit()}\033[m')
print(f'Is printable? \033[34m{something.isprintable()}\033[m')
print(f'Is identifier? \033[34m{something.isidentifier()}\033[m')
| """
Create a script that reads something and show the type and all informations about it.
"""
something = input('Type something: ')
print(f'The type of this value is \x1b[34m{type(something)}\x1b[m')
print(f'Has only spaces? \x1b[34m{something.isspace()}\x1b[m')
print(f'Is numeric? \x1b[34m{something.isnumeric()}\x1b[m')
print(f'Is alphabetic? \x1b[34m{something.isalpha()}\x1b[m')
print(f'Is alphamumeric? \x1b[34m{something.isalnum()}\x1b[m')
print(f'Is uppercase? \x1b[34m{something.isupper()}\x1b[m')
print(f'Is lowercase? \x1b[34m{something.islower()}\x1b[m')
print(f'Is capital? \x1b[34m{something.istitle()}\x1b[m')
print(f'Is decimal? \x1b[34m{something.isdecimal()}\x1b[m')
print(f'Is digit? \x1b[34m{something.isdigit()}\x1b[m')
print(f'Is printable? \x1b[34m{something.isprintable()}\x1b[m')
print(f'Is identifier? \x1b[34m{something.isidentifier()}\x1b[m') |
#
# This file contains the Python code from Program 8.12 of
# "Data Structures and Algorithms
# with Object-Oriented Design Patterns in Python"
# by Bruno R. Preiss.
#
# Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved.
#
# http://www.brpreiss.com/books/opus7/programs/pgm08_12.txt
#
class ChainedScatterTable(HashTable):
def __init__(self, length):
super(ChainedScatterTable, self).__init__()
self._array = Array(length)
for i in xrange(len(self._array)):
self._array[i] = self.Entry(None, self.NULL)
def __len__(self):
return len(self._array)
def purge(self):
for i in len(self):
self._array[i] = self.Entry(None, self.NULL)
self._count = 0
# ...
| class Chainedscattertable(HashTable):
def __init__(self, length):
super(ChainedScatterTable, self).__init__()
self._array = array(length)
for i in xrange(len(self._array)):
self._array[i] = self.Entry(None, self.NULL)
def __len__(self):
return len(self._array)
def purge(self):
for i in len(self):
self._array[i] = self.Entry(None, self.NULL)
self._count = 0 |
font = CurrentFont()
min = 0
max = 0
for glyph in font:
if glyph.bounds != None:
if glyph.bounds[1] < min:
min = glyph.bounds[1]
if glyph.bounds[3] > max:
max = glyph.bounds[3]
print(min,max)
font.info.openTypeOS2TypoAscender = font.info.ascender
font.info.openTypeOS2TypoDescender = font.info.descender
font.info.openTypeOS2TypoLineGap = (max + abs(min)) - font.info.unitsPerEm
font.info.openTypeOS2WinAscent = max
font.info.openTypeOS2WinDescent = abs(min)
font.info.openTypeHheaAscender = max
font.info.openTypeHheaDescender = min
font.info.openTypeHheaLineGap = 0
print((max + abs(min)) - font.info.unitsPerEm) | font = current_font()
min = 0
max = 0
for glyph in font:
if glyph.bounds != None:
if glyph.bounds[1] < min:
min = glyph.bounds[1]
if glyph.bounds[3] > max:
max = glyph.bounds[3]
print(min, max)
font.info.openTypeOS2TypoAscender = font.info.ascender
font.info.openTypeOS2TypoDescender = font.info.descender
font.info.openTypeOS2TypoLineGap = max + abs(min) - font.info.unitsPerEm
font.info.openTypeOS2WinAscent = max
font.info.openTypeOS2WinDescent = abs(min)
font.info.openTypeHheaAscender = max
font.info.openTypeHheaDescender = min
font.info.openTypeHheaLineGap = 0
print(max + abs(min) - font.info.unitsPerEm) |
class AtomicappBuilderException(Exception):
def __init__(self, cause):
super(AtomicappBuilderException, self).__init__(cause)
self.cause = cause
def to_str(self):
ret = str(self.cause)
if hasattr(self.cause, 'output'):
ret += ' Subprocess output: {0}'.format(self.cause.output)
return ret
| class Atomicappbuilderexception(Exception):
def __init__(self, cause):
super(AtomicappBuilderException, self).__init__(cause)
self.cause = cause
def to_str(self):
ret = str(self.cause)
if hasattr(self.cause, 'output'):
ret += ' Subprocess output: {0}'.format(self.cause.output)
return ret |
class Employee:
#the self paremeter is a reference
#to the current instance of the class - w3schools/python
def __init__(self,name,age):
self.name = name
self.age = age
def compute_wage(self,hours, rate):
return hours * rate
| class Employee:
def __init__(self, name, age):
self.name = name
self.age = age
def compute_wage(self, hours, rate):
return hours * rate |
value = float(input())
print('NOTAS:')
for cell in [100, 50, 20, 10, 5, 2]:
print('{} nota(s) de R$ {},00'.format(int(value/cell), cell))
value = value % cell
print('MOEDAS:')
for coin in [1, 0.5, 0.25, 0.10, 0.05, 0.01]:
print('{} moeda(s) de R$ {:.2f}'.format(int(value/coin), coin).replace('.',','))
value = round(value % coin, 2)
| value = float(input())
print('NOTAS:')
for cell in [100, 50, 20, 10, 5, 2]:
print('{} nota(s) de R$ {},00'.format(int(value / cell), cell))
value = value % cell
print('MOEDAS:')
for coin in [1, 0.5, 0.25, 0.1, 0.05, 0.01]:
print('{} moeda(s) de R$ {:.2f}'.format(int(value / coin), coin).replace('.', ','))
value = round(value % coin, 2) |
# -----------------------------------------------------------
# Copyright (c) 2021. Danil Smirnov
# The football team recruits girls from 10 to 15 years old inclusive.
# Write a program that asks for the age and gender of an applicant
# using the gender designation m (for male) and f (for female)
# to determine if the applicant is eligible to join the team or not.
# If the applicant fits, then output "YES", otherwise output "NO".
# -----------------------------------------------------------
class Applicant:
def __init__(self, name: str = None, age: int = None, gender: str = None):
self.name = name
self.age = age
self.gender = gender
self.can_join = self.check_membership(age, gender)
def check_membership(self, age: int, gender: str) -> bool:
return self.check_age(age) and self.check_gender(gender)
def check_age(self, age: int) -> bool:
return 10 <= age <= 15
def check_gender(self, gender: str) -> bool:
return gender == 'f'
if __name__ == '__main__':
applicant = Applicant(age=int(input()), gender=input())
print('YES' if applicant.can_join else 'NO')
| class Applicant:
def __init__(self, name: str=None, age: int=None, gender: str=None):
self.name = name
self.age = age
self.gender = gender
self.can_join = self.check_membership(age, gender)
def check_membership(self, age: int, gender: str) -> bool:
return self.check_age(age) and self.check_gender(gender)
def check_age(self, age: int) -> bool:
return 10 <= age <= 15
def check_gender(self, gender: str) -> bool:
return gender == 'f'
if __name__ == '__main__':
applicant = applicant(age=int(input()), gender=input())
print('YES' if applicant.can_join else 'NO') |
text_list = list(input())
length_matrix = int(input())
matrix = []
player_position = []
for i in range(length_matrix):
row = list(input())
matrix.append(row)
for j in range(length_matrix):
if row[j] == 'P':
player_position = [i, j]
directions = {
'up': (-1, 0),
'right': (0, 1),
'down': (1, 0),
'left': (0, -1)
}
length_commands = int(input())
for k in range(length_commands):
command = input()
direction_change = directions[command]
old_row, old_col = player_position[0], player_position[1]
next_row, next_col = old_row + direction_change[0], old_col + direction_change[1]
if 0 <= next_row < length_matrix and 0 <= next_col < length_matrix:
next_position_value = matrix[next_row][next_col]
if next_position_value != '-':
text_list.append(next_position_value)
matrix[player_position[0]][player_position[1]], matrix[next_row][next_col] = '-', 'P'
player_position = [next_row, next_col]
else:
if text_list:
text_list.pop()
print(''.join(text_list))
for row in matrix:
print(''.join(row))
| text_list = list(input())
length_matrix = int(input())
matrix = []
player_position = []
for i in range(length_matrix):
row = list(input())
matrix.append(row)
for j in range(length_matrix):
if row[j] == 'P':
player_position = [i, j]
directions = {'up': (-1, 0), 'right': (0, 1), 'down': (1, 0), 'left': (0, -1)}
length_commands = int(input())
for k in range(length_commands):
command = input()
direction_change = directions[command]
(old_row, old_col) = (player_position[0], player_position[1])
(next_row, next_col) = (old_row + direction_change[0], old_col + direction_change[1])
if 0 <= next_row < length_matrix and 0 <= next_col < length_matrix:
next_position_value = matrix[next_row][next_col]
if next_position_value != '-':
text_list.append(next_position_value)
(matrix[player_position[0]][player_position[1]], matrix[next_row][next_col]) = ('-', 'P')
player_position = [next_row, next_col]
elif text_list:
text_list.pop()
print(''.join(text_list))
for row in matrix:
print(''.join(row)) |
class Layer(object):
def __init__(self):
self.input_shape = None
self.x =None
self.z = None
def initialize(self,folder):
pass
def train(self, inputs, train=True):
pass
def forward(self, inputs):
pass
def backward(self,delta_in,arg):
pass
def update(self):
pass
def save_parameters(self, folder, name):
pass
def load_parameters(self, folder, name):
pass
| class Layer(object):
def __init__(self):
self.input_shape = None
self.x = None
self.z = None
def initialize(self, folder):
pass
def train(self, inputs, train=True):
pass
def forward(self, inputs):
pass
def backward(self, delta_in, arg):
pass
def update(self):
pass
def save_parameters(self, folder, name):
pass
def load_parameters(self, folder, name):
pass |
# https://www.hackerrank.com/challenges/three-month-preparation-kit-queue-using-two-stacks/problem
class Queue:
def __init__(self, s1=[], s2=[]):
self.s1 = s1
self.s2 = s2
def isEmpty(self):
if not self.s1 and not self.s2: return True
return False
def size(self):
return len(self.s1) + len(self.s2)
def enqueue(self, val):
self.s1.append(val)
def dequeue(self):
if not self.s2:
while len(self.s1) > 0:
self.s2.append(self.s1.pop())
return self.s2.pop()
def front(self):
if not self.s2:
while len(self.s1) > 0:
self.s2.append(self.s1.pop())
print(self.s2[-1])
if __name__ == '__main__':
t = int(input().strip())
q = Queue()
for t_itr in range(t):
s = input()
if s[0] == "1":
val = s.split(" ")[1]
q.enqueue(val)
elif s[0] == "2": q.dequeue()
elif s[0] == "3": q.front() | class Queue:
def __init__(self, s1=[], s2=[]):
self.s1 = s1
self.s2 = s2
def is_empty(self):
if not self.s1 and (not self.s2):
return True
return False
def size(self):
return len(self.s1) + len(self.s2)
def enqueue(self, val):
self.s1.append(val)
def dequeue(self):
if not self.s2:
while len(self.s1) > 0:
self.s2.append(self.s1.pop())
return self.s2.pop()
def front(self):
if not self.s2:
while len(self.s1) > 0:
self.s2.append(self.s1.pop())
print(self.s2[-1])
if __name__ == '__main__':
t = int(input().strip())
q = queue()
for t_itr in range(t):
s = input()
if s[0] == '1':
val = s.split(' ')[1]
q.enqueue(val)
elif s[0] == '2':
q.dequeue()
elif s[0] == '3':
q.front() |
# Copyright (C) 2018 Intel Corporation
#
# SPDX-License-Identifier: MIT
default_app_config = 'cvat.apps.annotation.apps.AnnotationConfig'
| default_app_config = 'cvat.apps.annotation.apps.AnnotationConfig' |
{
"targets": [
{
"target_name": "irf",
"sources": [
"irf/node.cpp",
"irf/randomForest.h",
"irf/randomForest.cpp",
"irf/MurmurHash3.h",
"irf/MurmurHash3.cpp"
],
'cflags': [ '<!@(pkg-config --cflags libsparsehash)' ],
'conditions': [
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
'cflags_cc!': ['-fno-rtti', '-fno-exceptions'],
'cflags_cc+': ['-frtti', '-fexceptions'],
}],
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_RTTI': 'YES',
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
}
}]
]
}
]
} | {'targets': [{'target_name': 'irf', 'sources': ['irf/node.cpp', 'irf/randomForest.h', 'irf/randomForest.cpp', 'irf/MurmurHash3.h', 'irf/MurmurHash3.cpp'], 'cflags': ['<!@(pkg-config --cflags libsparsehash)'], 'conditions': [['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {'cflags_cc!': ['-fno-rtti', '-fno-exceptions'], 'cflags_cc+': ['-frtti', '-fexceptions']}], ['OS=="mac"', {'xcode_settings': {'GCC_ENABLE_CPP_RTTI': 'YES', 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'}}]]}]} |
# SLICE
list = ['start', 'second', 'third', 'fourth', 'fifth']
list_fra = list[2]
print(list)
print(list_fra)
print(list[1:3])
print(list[-3:-1])
print(list[-3:])
print(list[:-3])
| list = ['start', 'second', 'third', 'fourth', 'fifth']
list_fra = list[2]
print(list)
print(list_fra)
print(list[1:3])
print(list[-3:-1])
print(list[-3:])
print(list[:-3]) |
class Solution:
def helper(self, n: int, k: int, first: int, curr: list, output: list) -> None:
if len(curr)==k:
output.append(curr[:])
else:
for i in range(first, n+1):
curr.append(i)
self.helper(n, k, i+1, curr, output)
curr.pop()
def combine(self, n: int, k: int) -> List[List[int]]:
curr = []
output = []
self.helper(n, k, 1, curr, output)
return output
| class Solution:
def helper(self, n: int, k: int, first: int, curr: list, output: list) -> None:
if len(curr) == k:
output.append(curr[:])
else:
for i in range(first, n + 1):
curr.append(i)
self.helper(n, k, i + 1, curr, output)
curr.pop()
def combine(self, n: int, k: int) -> List[List[int]]:
curr = []
output = []
self.helper(n, k, 1, curr, output)
return output |
file1 = open('windows/contest.ppm','r')
Lines = file1.readlines()
count = 0
for line in Lines:
a, b, c = line.split()
count += 6
A = int(a)
B = int(b)
C = int(c)
while A/10 >= 1 :
count += 1
A /= 10
while B/10 >= 1 :
count += 1
B /= 10
while C/10 >= 1 :
count += 1
C/= 10
print(count) | file1 = open('windows/contest.ppm', 'r')
lines = file1.readlines()
count = 0
for line in Lines:
(a, b, c) = line.split()
count += 6
a = int(a)
b = int(b)
c = int(c)
while A / 10 >= 1:
count += 1
a /= 10
while B / 10 >= 1:
count += 1
b /= 10
while C / 10 >= 1:
count += 1
c /= 10
print(count) |
MONGODB_SETTINGS = {
'db': 'rsframgia',
'collection': 'viblo_posts',
'host': 'mongodb+srv://nhomanhemcututu:chubichthuy@cluster0.vnbw3.mongodb.net/rsframgia?authSource=admin&replicaSet=atlas-mi89bw-shard-0&w=majority&readPreference=primary&appname=MongoDB%20Compass&retryWrites=true&ssl=true'
}
PATH_DICTIONARY = "models/id2word.dictionary"
PATH_CORPUS = "models/corpus.mm"
PATH_LDA_MODEL = "models/LDA.model"
PATH_DOC_TOPIC_DIST = "models/doc_topic_dist.dat"
| mongodb_settings = {'db': 'rsframgia', 'collection': 'viblo_posts', 'host': 'mongodb+srv://nhomanhemcututu:chubichthuy@cluster0.vnbw3.mongodb.net/rsframgia?authSource=admin&replicaSet=atlas-mi89bw-shard-0&w=majority&readPreference=primary&appname=MongoDB%20Compass&retryWrites=true&ssl=true'}
path_dictionary = 'models/id2word.dictionary'
path_corpus = 'models/corpus.mm'
path_lda_model = 'models/LDA.model'
path_doc_topic_dist = 'models/doc_topic_dist.dat' |
# Anders Poirel
# https://leetcode.com/problems/valid-parentheses
# Runtime: 28 ms, faster than 71.23% of Python3 online submissions for Valid Parentheses.
# Memory Usage: 12.8 MB, less than 100.00% of Python3 online submissions for Valid Parentheses.
class Solution:
def isValid(self, s: str) -> bool:
stack = []
for i in range(len(s)):
if s[i] in ['{', '[', '(']:
stack.append(s[i])
else:
if len(stack) == 0:
return False
res = stack.pop()
if s[i] == '}' and res != '{':
return False
elif s[i] == ']' and res != '[':
return False
elif s[i] == ')' and res != '(':
return False
return True if len(stack) == 0 else False | class Solution:
def is_valid(self, s: str) -> bool:
stack = []
for i in range(len(s)):
if s[i] in ['{', '[', '(']:
stack.append(s[i])
else:
if len(stack) == 0:
return False
res = stack.pop()
if s[i] == '}' and res != '{':
return False
elif s[i] == ']' and res != '[':
return False
elif s[i] == ')' and res != '(':
return False
return True if len(stack) == 0 else False |
#2. Suppose the cover price of a book is **$24.95, but bookstores get a **40% discount. Shipping costs **$3 for the
# first copy and **75 cents for each additional copy. What is the total wholesale cost for **60 copies?
cover_price = 24.95
bkstore_dis = cover_price - (cover_price * 40)/100
ship_cost = 3 #only for the first copy
ship_cost_normal = 0.75
copies = 60
ship_calc =(ship_cost_normal * (copies - 1)) + ship_cost #charge 3 only one time
books_purchase = bkstore_dis * copies
whole_sale = books_purchase + ship_calc #cost of the total purchase
print('The total wholesale cost ${:.2f}'.format(whole_sale))
| cover_price = 24.95
bkstore_dis = cover_price - cover_price * 40 / 100
ship_cost = 3
ship_cost_normal = 0.75
copies = 60
ship_calc = ship_cost_normal * (copies - 1) + ship_cost
books_purchase = bkstore_dis * copies
whole_sale = books_purchase + ship_calc
print('The total wholesale cost ${:.2f}'.format(whole_sale)) |
#
# Author: Luke Hindman
# Date: Mon Nov 6 16:13:43 MST 2017
# Description: Example of how to write to a file with Exception Handling
#
# Write a List of strings to a file
#
# Parameter
# outputFile - A String with the name of the file to write to
# dataList - A List of strings to write to the file
#
# Return
# none
#
def writeListToFile(outputFile, dataList):
try:
destination = open(outputFile,"w")
destination.writelines(dataList)
destination.close()
except IOError:
print("Unable to write to output file" + outputFile)
# Create a string with the name of the file to write to
myFile = "names.txt"
# List of Strings to write to file, to ensure write the values to separate lines
# in the files, each string must include a newline.
#
# How can we modify the writeListToFile() function to do this for us automatically?
#
# nameList = ["Robin", "Lily", "Nora", "Patrice", "Zoey", "Quinn","Ted", "Marshall", "Barney", "Ranjit", "Carl", "Linus"]
nameList = ["Robin\n", "Lily\n", "Nora\n", "Patrice\n", "Zoey\n", "Quinn\n","Ted\n", "Marshall\n", "Barney\n", "Ranjit\n", "Carl\n", "Linus\n"]
# Call the above function to build a list of strings from the file
writeListToFile(myFile,nameList)
| def write_list_to_file(outputFile, dataList):
try:
destination = open(outputFile, 'w')
destination.writelines(dataList)
destination.close()
except IOError:
print('Unable to write to output file' + outputFile)
my_file = 'names.txt'
name_list = ['Robin\n', 'Lily\n', 'Nora\n', 'Patrice\n', 'Zoey\n', 'Quinn\n', 'Ted\n', 'Marshall\n', 'Barney\n', 'Ranjit\n', 'Carl\n', 'Linus\n']
write_list_to_file(myFile, nameList) |
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': 3.77876e-06,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202692,
'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': 2.27703e-05,
'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.792423,
'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.37219,
'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.78699,
'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.9516,
'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.783274,
'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.44748,
'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': 4.3018e-06,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.028726,
'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.207726,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.212446,
'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.20773,
'Execution Unit/Register Files/Runtime Dynamic': 0.241172,
'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.501953,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.72195,
'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.52279,
'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.00140634,
'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.00140634,
'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.00121557,
'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.000465454,
'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.00305181,
'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.00708006,
'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.013818,
'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.20423,
'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.444653,
'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.693657,
'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.36344,
'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.0572954,
'L2/Runtime Dynamic': 0.0391315,
'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': 8.91832,
'Load Store Unit/Data Cache/Runtime Dynamic': 4.48309,
'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.248505,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.298297,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 10.0966,
'Load Store Unit/Runtime Dynamic': 6.25249,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.612772,
'Load Store Unit/StoreQ/Runtime Dynamic': 1.4711,
'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.217475,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.261905,
'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.0729071,
'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.934466,
'Memory Management Unit/Runtime Dynamic': 0.334812,
'Memory Management Unit/Subthreshold Leakage': 0.0769113,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462,
'Peak Dynamic': 31.0663,
'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.50469e-05,
'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.0405203,
'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.434232,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781,
'Renaming Unit/Peak Dynamic': 4.56169,
'Renaming Unit/Runtime Dynamic': 0.474767,
'Renaming Unit/Subthreshold Leakage': 0.070483,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779,
'Runtime Dynamic': 13.9874,
'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': 2.83407e-06,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202691,
'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.51802e-05,
'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.477086,
'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.769523,
'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.388429,
'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.63504,
'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.545647,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.89105,
'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': 2.86787e-06,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0200111,
'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.144707,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.147995,
'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.14471,
'Execution Unit/Register Files/Runtime Dynamic': 0.168006,
'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.304858,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.04584,
'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': 3.45695,
'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.00099059,
'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.00099059,
'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.000859345,
'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.000330776,
'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.00212596,
'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.00496648,
'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.00962121,
'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.142271,
'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.309736,
'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.483217,
'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.949811,
'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.039895,
'L2/Runtime Dynamic': 0.0272317,
'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': 7.66042,
'Load Store Unit/Data Cache/Runtime Dynamic': 3.12314,
'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.207809,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.207809,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 8.64174,
'Load Store Unit/Runtime Dynamic': 4.3558,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.512422,
'Load Store Unit/StoreQ/Runtime Dynamic': 1.02484,
'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.18186,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.182456,
'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.0507856,
'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.868507,
'Memory Management Unit/Runtime Dynamic': 0.233242,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 26.9946,
'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': 7.84934e-06,
'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.0215249,
'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.254899,
'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.276431,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 9.29946,
'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': 1.88938e-06,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.20269,
'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.26502e-05,
'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.471792,
'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.760982,
'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.384118,
'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.61689,
'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.539591,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.87919,
'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': 2.38989e-06,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0197891,
'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.1431,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.146352,
'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.143103,
'Execution Unit/Register Files/Runtime Dynamic': 0.166141,
'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.301473,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.03466,
'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': 3.42576,
'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.00097198,
'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.00097198,
'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.000843087,
'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.000324455,
'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.00210236,
'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.00488941,
'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.00944451,
'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.140692,
'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.305881,
'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.477854,
'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.93876,
'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.039381,
'L2/Runtime Dynamic': 0.0269283,
'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': 7.59273,
'Load Store Unit/Data Cache/Runtime Dynamic': 3.0902,
'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.205619,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.205619,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 8.56371,
'Load Store Unit/Runtime Dynamic': 4.30987,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.507022,
'Load Store Unit/StoreQ/Runtime Dynamic': 1.01404,
'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.179944,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.180532,
'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.0501528,
'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.865215,
'Memory Management Unit/Runtime Dynamic': 0.230685,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 26.9009,
'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': 5.94433e-06,
'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.021286,
'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.252088,
'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.27338,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 9.20538,
'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': 2.83407e-06,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202691,
'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.77103e-05,
'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.502556,
'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.810604,
'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.409166,
'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.72233,
'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.574776,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.94809,
'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': 3.34585e-06,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0210794,
'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.152432,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.155895,
'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.152435,
'Execution Unit/Register Files/Runtime Dynamic': 0.176975,
'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.321132,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.10139,
'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': 3.60876,
'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.00104847,
'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.00104847,
'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.000909685,
'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.00035022,
'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.00223945,
'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.00524608,
'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.010179,
'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.149866,
'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.326579,
'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.509013,
'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': 1.00088,
'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.0420631,
'L2/Runtime Dynamic': 0.0286877,
'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': 8.00094,
'Load Store Unit/Data Cache/Runtime Dynamic': 3.28873,
'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.218826,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.218826,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 9.03428,
'Load Store Unit/Runtime Dynamic': 4.58672,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.539586,
'Load Store Unit/StoreQ/Runtime Dynamic': 1.07917,
'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.191501,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.192129,
'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.0535475,
'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.885069,
'Memory Management Unit/Runtime Dynamic': 0.245677,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 27.4629,
'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': 9.16521e-06,
'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.022674,
'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.268495,
'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.291178,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 9.76191,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328}],
'DRAM': {'Area': 0,
'Gate Leakage': 0,
'Peak Dynamic': 9.230770020593798,
'Runtime Dynamic': 9.230770020593798,
'Subthreshold Leakage': 4.252,
'Subthreshold Leakage with power gating': 4.252},
'L3': [{'Area': 61.9075,
'Gate Leakage': 0.0484137,
'Peak Dynamic': 0.23455,
'Runtime Dynamic': 0.250517,
'Subthreshold Leakage': 6.80085,
'Subthreshold Leakage with power gating': 3.32364}],
'Processor': {'Area': 191.908,
'Gate Leakage': 1.53485,
'Peak Dynamic': 112.659,
'Peak Power': 145.772,
'Runtime Dynamic': 42.5047,
'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': 112.425,
'Total Cores/Runtime Dynamic': 42.2542,
'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.23455,
'Total L3s/Runtime Dynamic': 0.250517,
'Total L3s/Subthreshold Leakage': 6.80085,
'Total L3s/Subthreshold Leakage with power gating': 3.32364,
'Total Leakage': 33.1122,
'Total NoCs/Area': 1.33155,
'Total NoCs/Gate Leakage': 0.00662954,
'Total NoCs/Peak Dynamic': 0.0,
'Total NoCs/Runtime Dynamic': 0.0,
'Total NoCs/Subthreshold Leakage': 0.0691322,
'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}} | power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 3.77876e-06, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202692, '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': 2.27703e-05, '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.792423, '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.37219, '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.78699, '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.9516, '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.783274, '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.44748, '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': 4.3018e-06, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.028726, '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.207726, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.212446, '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.20773, 'Execution Unit/Register Files/Runtime Dynamic': 0.241172, '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.501953, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.72195, '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.52279, '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.00140634, '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.00140634, '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.00121557, '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.000465454, '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.00305181, '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.00708006, '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.013818, '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.20423, '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.444653, '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.693657, '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.36344, '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.0572954, 'L2/Runtime Dynamic': 0.0391315, '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': 8.91832, 'Load Store Unit/Data Cache/Runtime Dynamic': 4.48309, '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.248505, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.298297, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 10.0966, 'Load Store Unit/Runtime Dynamic': 6.25249, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.612772, 'Load Store Unit/StoreQ/Runtime Dynamic': 1.4711, '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.217475, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.261905, '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.0729071, '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.934466, 'Memory Management Unit/Runtime Dynamic': 0.334812, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 31.0663, '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.50469e-05, '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.0405203, '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.434232, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 0.474767, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 13.9874, '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': 2.83407e-06, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202691, '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.51802e-05, '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.477086, '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.769523, '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.388429, '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.63504, '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.545647, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.89105, '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': 2.86787e-06, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0200111, '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.144707, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.147995, '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.14471, 'Execution Unit/Register Files/Runtime Dynamic': 0.168006, '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.304858, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.04584, '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': 3.45695, '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.00099059, '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.00099059, '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.000859345, '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.000330776, '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.00212596, '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.00496648, '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.00962121, '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.142271, '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.309736, '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.483217, '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.949811, '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.039895, 'L2/Runtime Dynamic': 0.0272317, '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': 7.66042, 'Load Store Unit/Data Cache/Runtime Dynamic': 3.12314, '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.207809, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.207809, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 8.64174, 'Load Store Unit/Runtime Dynamic': 4.3558, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.512422, 'Load Store Unit/StoreQ/Runtime Dynamic': 1.02484, '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.18186, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.182456, '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.0507856, '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.868507, 'Memory Management Unit/Runtime Dynamic': 0.233242, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 26.9946, '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': 7.84934e-06, '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.0215249, '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.254899, '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.276431, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 9.29946, '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': 1.88938e-06, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.20269, '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.26502e-05, '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.471792, '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.760982, '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.384118, '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.61689, '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.539591, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.87919, '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': 2.38989e-06, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0197891, '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.1431, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.146352, '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.143103, 'Execution Unit/Register Files/Runtime Dynamic': 0.166141, '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.301473, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.03466, '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': 3.42576, '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.00097198, '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.00097198, '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.000843087, '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.000324455, '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.00210236, '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.00488941, '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.00944451, '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.140692, '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.305881, '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.477854, '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.93876, '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.039381, 'L2/Runtime Dynamic': 0.0269283, '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': 7.59273, 'Load Store Unit/Data Cache/Runtime Dynamic': 3.0902, '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.205619, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.205619, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 8.56371, 'Load Store Unit/Runtime Dynamic': 4.30987, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.507022, 'Load Store Unit/StoreQ/Runtime Dynamic': 1.01404, '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.179944, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.180532, '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.0501528, '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.865215, 'Memory Management Unit/Runtime Dynamic': 0.230685, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 26.9009, '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': 5.94433e-06, '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.021286, '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.252088, '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.27338, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 9.20538, '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': 2.83407e-06, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202691, '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.77103e-05, '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.502556, '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.810604, '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.409166, '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.72233, '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.574776, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.94809, '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': 3.34585e-06, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0210794, '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.152432, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.155895, '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.152435, 'Execution Unit/Register Files/Runtime Dynamic': 0.176975, '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.321132, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.10139, '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': 3.60876, '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.00104847, '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.00104847, '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.000909685, '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.00035022, '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.00223945, '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.00524608, '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.010179, '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.149866, '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.326579, '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.509013, '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': 1.00088, '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.0420631, 'L2/Runtime Dynamic': 0.0286877, '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': 8.00094, 'Load Store Unit/Data Cache/Runtime Dynamic': 3.28873, '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.218826, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.218826, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 9.03428, 'Load Store Unit/Runtime Dynamic': 4.58672, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.539586, 'Load Store Unit/StoreQ/Runtime Dynamic': 1.07917, '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.191501, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.192129, '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.0535475, '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.885069, 'Memory Management Unit/Runtime Dynamic': 0.245677, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 27.4629, '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': 9.16521e-06, '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.022674, '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.268495, '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.291178, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 9.76191, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 9.230770020593798, 'Runtime Dynamic': 9.230770020593798, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.23455, 'Runtime Dynamic': 0.250517, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 112.659, 'Peak Power': 145.772, 'Runtime Dynamic': 42.5047, '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': 112.425, 'Total Cores/Runtime Dynamic': 42.2542, '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.23455, 'Total L3s/Runtime Dynamic': 0.250517, '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}} |
# This file contains default error messages to be used.
notFound = {
"status": "error",
"type": "404 Not found",
"message": "Not found error"
}
serverError = {
"status": "error",
"type": "500 Server error",
"message": "Unknown internal server error"
}
badRequest = {
"status": "error",
"type": "400 Bad request",
"message": "Bad request, please check your syntax and try again"
}
| not_found = {'status': 'error', 'type': '404 Not found', 'message': 'Not found error'}
server_error = {'status': 'error', 'type': '500 Server error', 'message': 'Unknown internal server error'}
bad_request = {'status': 'error', 'type': '400 Bad request', 'message': 'Bad request, please check your syntax and try again'} |
# -*- coding: utf-8 -*-
def main():
d = list(map(int, input().split()))
j = list(map(int, input().split()))
gold_amount = 0
for di, ji in zip(d, j):
gold_amount += max(di, ji)
print(gold_amount)
if __name__ == '__main__':
main()
| def main():
d = list(map(int, input().split()))
j = list(map(int, input().split()))
gold_amount = 0
for (di, ji) in zip(d, j):
gold_amount += max(di, ji)
print(gold_amount)
if __name__ == '__main__':
main() |
'''
For Admins:
This Template class is to help developers add additional cloud platforms to the software
'''
'''
class [Platform_NAME](object):
def __init__(self):
## For attributes use convention [NAME]_[FUNCTION]_[PARAM]
## The below attributes are strongly recomended to have within new platform classes
__[Platform_NAME]__user_download_path #Consider this to be a private function
__[Platform_NAME]_get_files_list_result #Conisder this to be a private function
__[Platform_NAME]_entries_to_download_list #Consider this to be a private function
[Platform_NAME]_format_dict
[Platform_NAME]_flat_dict
## For Admins - the following three functions are designed based off of the OAuth2 requriements
## If the platform that is being added does not have OAuth2 authentication the following three functions
## are unneccessay.
def [Platform_NAME]_authentication_flow(self, request):
# This function call requires a redirect_uri that may need to need to be specified within the app console
# of the platform being used. This class should return the Flow component of the OAuth2 authentication. This
# will likey need a request.session to help manage state.
def [Platform_NAMe]_authentication_start(self):
# This function will initiate the starting parameters for the OAuth2 authentication to use this
# capability appropriately, after this method is created, this object will need to be instatiated
# within the veiws.py script. Additionally the urls.py/urlpattern needs to be updated with the following:
path('[Platform_NAME]-auth-start', views.[Platform_NAME].[Platform_NAME]_authentication_start)
# When the user selects the new plaform, the Views Index class will need to return a redirect function
# redirect('[Platform_NAME]-auth-start')
# Finally this method should instatiate a redirect_url to created by the authentication_flow method noted previously
# The return will need a django.shortcuts.redirect() to the redirect_url to allow the user to log into the new platform
def [Platform_NAME]_authentication_finish(self):
# This fucntion will finalize the OAuth2 authentication. After this method is created, this object will need to be instatiated
# within the veiws.py script. Additionally the urls.py/urlpattern needs to be updated with the following:
path('[Platform_NAME]-auth-finish', views.[Platform_NAME].[Platform_NAME]_authentication_finish)
# The authentication_flow, may require a redirect_uri that includes the full uri to the [Platform_NAME]-auth-finish
# This function will catch any errors that arise within the OAuth2 authentication flow.
# This function will also call all neccessary function to gather files and folders of the application users platform.
# The returned object will then need to be formated into either a dict specified as:
{'path':'', 'dirs':[], 'files':[]} in which every dir contains the same dict and dict list for subsequent directories
# Currently the software requires a flat_dict, in which all files are pulled out along with their full path and any required
# attributes neccessary for downloading. The flact dict will be written as
{'file':[]} with all the attributes required for downloading files.
def [Platform_NAME]_get_files_list(self):
# This is a generic template for gathering files, use selected platforms api to gather the application users files and folders
# Often this may have a list of file entires as a return
def [Platform_NAME]_format_entries_list(self):
# This function will take the return of [NAME]_get_files_list
# And provide the neccessary information to pass to the views context to display the application users platform files
def [Platform_NAME]_download_selected_entries(self, path):
# This function will download the list returned by [NAME]_select_entries_to_download
# Using the [NAME]_download_path to specify the location on the server where the files and folders will be uploaded to,
# This function should also include a warning that if a file is alread known on a system, it will not overwrite the file.
''' | """
For Admins:
This Template class is to help developers add additional cloud platforms to the software
"""
"\nclass [Platform_NAME](object):\n def __init__(self):\n ## For attributes use convention [NAME]_[FUNCTION]_[PARAM]\n ## The below attributes are strongly recomended to have within new platform classes \n __[Platform_NAME]__user_download_path #Consider this to be a private function\n __[Platform_NAME]_get_files_list_result #Conisder this to be a private function\n __[Platform_NAME]_entries_to_download_list #Consider this to be a private function\n [Platform_NAME]_format_dict\n [Platform_NAME]_flat_dict\n\n ## For Admins - the following three functions are designed based off of the OAuth2 requriements\n ## If the platform that is being added does not have OAuth2 authentication the following three functions \n ## are unneccessay.\n\n def [Platform_NAME]_authentication_flow(self, request):\n # This function call requires a redirect_uri that may need to need to be specified within the app console \n # of the platform being used. This class should return the Flow component of the OAuth2 authentication. This \n # will likey need a request.session to help manage state. \n\n def [Platform_NAMe]_authentication_start(self):\n # This function will initiate the starting parameters for the OAuth2 authentication to use this \n # capability appropriately, after this method is created, this object will need to be instatiated\n # within the veiws.py script. Additionally the urls.py/urlpattern needs to be updated with the following:\n path('[Platform_NAME]-auth-start', views.[Platform_NAME].[Platform_NAME]_authentication_start)\n # When the user selects the new plaform, the Views Index class will need to return a redirect function\n # redirect('[Platform_NAME]-auth-start')\n # Finally this method should instatiate a redirect_url to created by the authentication_flow method noted previously\n # The return will need a django.shortcuts.redirect() to the redirect_url to allow the user to log into the new platform\n\n def [Platform_NAME]_authentication_finish(self):\n # This fucntion will finalize the OAuth2 authentication. After this method is created, this object will need to be instatiated\n # within the veiws.py script. Additionally the urls.py/urlpattern needs to be updated with the following:\n path('[Platform_NAME]-auth-finish', views.[Platform_NAME].[Platform_NAME]_authentication_finish)\n # The authentication_flow, may require a redirect_uri that includes the full uri to the [Platform_NAME]-auth-finish\n # This function will catch any errors that arise within the OAuth2 authentication flow. \n # This function will also call all neccessary function to gather files and folders of the application users platform.\n # The returned object will then need to be formated into either a dict specified as:\n {'path':'', 'dirs':[], 'files':[]} in which every dir contains the same dict and dict list for subsequent directories\n # Currently the software requires a flat_dict, in which all files are pulled out along with their full path and any required \n # attributes neccessary for downloading. The flact dict will be written as\n {'file':[]} with all the attributes required for downloading files.\n\n def [Platform_NAME]_get_files_list(self):\n # This is a generic template for gathering files, use selected platforms api to gather the application users files and folders\n # Often this may have a list of file entires as a return\n\n def [Platform_NAME]_format_entries_list(self):\n # This function will take the return of [NAME]_get_files_list\n # And provide the neccessary information to pass to the views context to display the application users platform files\n \n def [Platform_NAME]_download_selected_entries(self, path):\n # This function will download the list returned by [NAME]_select_entries_to_download\n # Using the [NAME]_download_path to specify the location on the server where the files and folders will be uploaded to, \n # This function should also include a warning that if a file is alread known on a system, it will not overwrite the file.\n" |
# https://leetcode.com/problems/determine-if-string-halves-are-alike/
def halves_are_alike(s):
vowels = {
'a': True,
'e': True,
'i': True,
'o': True,
'u': True,
'A': True,
'E': True,
'I': True,
'O': True,
'U': True,
}
middle_index = len(s) // 2
a, b = s[:middle_index], s[middle_index:]
a_counter, b_counter = 0, 0
for char in a:
if char in vowels:
a_counter += 1
for char in b:
if char in vowels:
b_counter += 1
return a_counter == b_counter | def halves_are_alike(s):
vowels = {'a': True, 'e': True, 'i': True, 'o': True, 'u': True, 'A': True, 'E': True, 'I': True, 'O': True, 'U': True}
middle_index = len(s) // 2
(a, b) = (s[:middle_index], s[middle_index:])
(a_counter, b_counter) = (0, 0)
for char in a:
if char in vowels:
a_counter += 1
for char in b:
if char in vowels:
b_counter += 1
return a_counter == b_counter |
def findReplaceString(s, indexes, sources, targets):
dupe_s = s[:]
for i in range(len(indexes)):
curr = s[indexes[i]]
if curr == sources[i][0]:
print(curr)
dupe_s = dupe_s.replace(sources[i], targets[i])
print(dupe_s)
return dupe_s | def find_replace_string(s, indexes, sources, targets):
dupe_s = s[:]
for i in range(len(indexes)):
curr = s[indexes[i]]
if curr == sources[i][0]:
print(curr)
dupe_s = dupe_s.replace(sources[i], targets[i])
print(dupe_s)
return dupe_s |
#
# Copyright (C) 2020 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.
#
layout = BoolScalar("layout", False) # NHWC
# This test makes sure that executing DEPTHWISE_CONV_2D results in a failure when
# the first dimension of the filter tensor is not 1.
i1 = Input("op1", "TENSOR_FLOAT32", "{1, 3, 3, 2}")
f1 = Parameter("op2", "TENSOR_FLOAT32", "{2, 2, 2, 4}", [0.] * (2 * 2 * 2 * 4))
b1 = Parameter("op3", "TENSOR_FLOAT32", "{4}", [0.] * 4)
o1 = Output("op4", "TENSOR_FLOAT32", "{1, 2, 2, 4}")
Model().Operation("DEPTHWISE_CONV_2D", i1, f1, b1, 0, 0, 0, 0, 1, 1, 2, 0, layout).To(o1)
# Additional data type
quant8 = DataTypeConverter().Identify({
i1: ("TENSOR_QUANT8_ASYMM", 0.5, 0),
f1: ("TENSOR_QUANT8_ASYMM", 0.01, 0),
b1: ("TENSOR_INT32", 0.005, 0),
o1: ("TENSOR_QUANT8_ASYMM", 0.1, 0)
})
channelQuant8 = DataTypeConverter().Identify({
i1: ("TENSOR_QUANT8_ASYMM", 0.5, 0),
f1: ("TENSOR_QUANT8_SYMM_PER_CHANNEL", 0, 0,
SymmPerChannelQuantParams(channelDim=3, scales=[0.01, 0.005, 0.01, 0.005])),
b1: ("TENSOR_INT32", 0.0, 0,
SymmPerChannelQuantParams(channelDim=0, scales=[0.005, 0.0025, 0.005, 0.0025], hide=True)),
o1: ("TENSOR_QUANT8_ASYMM", 0.1, 0)
})
# Instantiate an example
example = Example({
i1: [0.] * (1 * 3 * 3 * 2),
o1: [0.] * (1 * 2 * 2 * 4)
}).AddNchw(i1, o1, layout).AddVariations("relaxed", "float16", channelQuant8,
quant8).ExpectFailure()
| layout = bool_scalar('layout', False)
i1 = input('op1', 'TENSOR_FLOAT32', '{1, 3, 3, 2}')
f1 = parameter('op2', 'TENSOR_FLOAT32', '{2, 2, 2, 4}', [0.0] * (2 * 2 * 2 * 4))
b1 = parameter('op3', 'TENSOR_FLOAT32', '{4}', [0.0] * 4)
o1 = output('op4', 'TENSOR_FLOAT32', '{1, 2, 2, 4}')
model().Operation('DEPTHWISE_CONV_2D', i1, f1, b1, 0, 0, 0, 0, 1, 1, 2, 0, layout).To(o1)
quant8 = data_type_converter().Identify({i1: ('TENSOR_QUANT8_ASYMM', 0.5, 0), f1: ('TENSOR_QUANT8_ASYMM', 0.01, 0), b1: ('TENSOR_INT32', 0.005, 0), o1: ('TENSOR_QUANT8_ASYMM', 0.1, 0)})
channel_quant8 = data_type_converter().Identify({i1: ('TENSOR_QUANT8_ASYMM', 0.5, 0), f1: ('TENSOR_QUANT8_SYMM_PER_CHANNEL', 0, 0, symm_per_channel_quant_params(channelDim=3, scales=[0.01, 0.005, 0.01, 0.005])), b1: ('TENSOR_INT32', 0.0, 0, symm_per_channel_quant_params(channelDim=0, scales=[0.005, 0.0025, 0.005, 0.0025], hide=True)), o1: ('TENSOR_QUANT8_ASYMM', 0.1, 0)})
example = example({i1: [0.0] * (1 * 3 * 3 * 2), o1: [0.0] * (1 * 2 * 2 * 4)}).AddNchw(i1, o1, layout).AddVariations('relaxed', 'float16', channelQuant8, quant8).ExpectFailure() |
class twitter_nlp_toolkit:
def __init__(self):
print("twitter_nlp_toolkit initialized")
| class Twitter_Nlp_Toolkit:
def __init__(self):
print('twitter_nlp_toolkit initialized') |
#difference between a given number and 17, if the number is greater than 17 return double the absolute difference.
x = int(input('Enter the number:'))
y = 17
n = y-x
if x > 17:
print(abs(n)*2)
else:
print(n) | x = int(input('Enter the number:'))
y = 17
n = y - x
if x > 17:
print(abs(n) * 2)
else:
print(n) |
def compare(physical_inventory, digital_inventory):
if physical_inventory == digital_inventory:
return {}
discrepencies = {}
for item, quantity in digital_inventory.items():
if item not in physical_inventory:
discrepencies[item] = {"physical":None,"digital":quantity}
for item, quantity in physical_inventory.items():
if item not in digital_inventory:
discrepencies[item] = {"physical":quantity,"digital":None}
elif digital_inventory[item] != quantity:
discrepencies[item] = {"physical":quantity,"digital":digital_inventory[item]}
return discrepencies | def compare(physical_inventory, digital_inventory):
if physical_inventory == digital_inventory:
return {}
discrepencies = {}
for (item, quantity) in digital_inventory.items():
if item not in physical_inventory:
discrepencies[item] = {'physical': None, 'digital': quantity}
for (item, quantity) in physical_inventory.items():
if item not in digital_inventory:
discrepencies[item] = {'physical': quantity, 'digital': None}
elif digital_inventory[item] != quantity:
discrepencies[item] = {'physical': quantity, 'digital': digital_inventory[item]}
return discrepencies |
print(type(1))
print(type(1.1))
print(type('texto'))
print(type(False))
print(type(True))
| print(type(1))
print(type(1.1))
print(type('texto'))
print(type(False))
print(type(True)) |
app_host = '127.0.0.1'
app_port = 9090
app_desc = 'Local Server'
app_title = 'API Template'
app_key = 'AWEREG#Q$^#!%^QEH$##%'
admin_id = 'admin'
admin_pw = 'w4b35ya253vu5e6n'
db_type = 'mysql+pymysql'
db_host = 'localhost'
db_port = '33066'
db_name = 'hrms'
db_user = 'root'
db_pass = 'fnxm1qazXSW@' | app_host = '127.0.0.1'
app_port = 9090
app_desc = 'Local Server'
app_title = 'API Template'
app_key = 'AWEREG#Q$^#!%^QEH$##%'
admin_id = 'admin'
admin_pw = 'w4b35ya253vu5e6n'
db_type = 'mysql+pymysql'
db_host = 'localhost'
db_port = '33066'
db_name = 'hrms'
db_user = 'root'
db_pass = 'fnxm1qazXSW@' |
s = float(input('digite o salario do funcionario? R$'))
if s <= 1250.0:
c1 = (s * 15 / 100) + s
print('agora o funcionario vai ter o reajuste de 15%\nentao o salario dele que era R${:.2f}, passa a ser de R${:.2f}'.format(s, c1))
else:
c2 = (s * 10 / 100) + s
print('agora o fucionario vai ter o reajuste de 10%\nentao o salario dele que era R${:.2f}, passa a ser de R${:.2f}'.format(s, c2))
| s = float(input('digite o salario do funcionario? R$'))
if s <= 1250.0:
c1 = s * 15 / 100 + s
print('agora o funcionario vai ter o reajuste de 15%\nentao o salario dele que era R${:.2f}, passa a ser de R${:.2f}'.format(s, c1))
else:
c2 = s * 10 / 100 + s
print('agora o fucionario vai ter o reajuste de 10%\nentao o salario dele que era R${:.2f}, passa a ser de R${:.2f}'.format(s, c2)) |
def name(firstname,lastname):
return f"My name is {firstname} {lastname}"
print(name("Atherv", "Patil"))
| def name(firstname, lastname):
return f'My name is {firstname} {lastname}'
print(name('Atherv', 'Patil')) |
# -*- coding: utf-8 -*-
def view_grid(grid_space):
for row in range(len(grid_space)):
for column in range(len(grid_space[0])):
print (grid_space[row][column],end = ' '),
if column == 2 or column == 5:
print('|', end=' ')
if row == 2 or row == 5:
print('')
print('-'*6+"+"+'-'*7+"+"+'-'*7,end ='')
print ('')
#check to see if an input would be valid
#check row, column, and square
def valid_input(guess,loc,grid_space):
#loc is a tuple returned from the zero_loc function
#row id-> loc[0] ; column id -> loc[1]
#check row
for num in range(len(grid_space)):
if guess == grid_space[loc[0]][num]:
return False
#check column
for num in range(len(grid_space[0])):
if guess == grid_space[num][loc[1]]:
return False
#check square
#I dont like the square check, there should be a cleaner way, but it works
#this will slow down the algorithm
subsquare_elements =[]
#creates the list for the items in each subsquare
#map is above
for row in range(len(grid_space)):
if loc[0]//3 == row//3:
for column in range(len(grid_space[0])):
if column//3 == loc[1]//3:
subsquare_elements.append(grid_space[row][column])
#if the item is in the list, then it is in the subsquare
if guess in subsquare_elements:
return False
#if its not in the row, column, or susquare, then it is a valid input
return True
def zero_loc(grid_space):
for row in range(len(grid_space)):
for col in range(len(grid_space[0])):
if grid_space[row][col] == 0:
return (row,col)
return False
def solve(grid_space):
#if there are no zeros:
if zero_loc(grid_space) == False:
#then the puzzle is soved
return True
#otherwise, move into the solving algorithm
else:
#unpack the tuple
row,col = zero_loc(grid_space)
#start trying #1-9
for guess in range(1,len(grid_space)+1):
if valid_input(guess,(row,col),grid_space):
#if a valid number is found, replace it in the grid
grid_space[row][col] = guess
#call this function again and see if it is True(solved)
if solve(grid_space):
return True
#if not then reset and move onto the next value in the guess for loop
grid_space[row][col] = 0
if __name__ == "__main__":
print('NO')
| def view_grid(grid_space):
for row in range(len(grid_space)):
for column in range(len(grid_space[0])):
(print(grid_space[row][column], end=' '),)
if column == 2 or column == 5:
print('|', end=' ')
if row == 2 or row == 5:
print('')
print('-' * 6 + '+' + '-' * 7 + '+' + '-' * 7, end='')
print('')
def valid_input(guess, loc, grid_space):
for num in range(len(grid_space)):
if guess == grid_space[loc[0]][num]:
return False
for num in range(len(grid_space[0])):
if guess == grid_space[num][loc[1]]:
return False
subsquare_elements = []
for row in range(len(grid_space)):
if loc[0] // 3 == row // 3:
for column in range(len(grid_space[0])):
if column // 3 == loc[1] // 3:
subsquare_elements.append(grid_space[row][column])
if guess in subsquare_elements:
return False
return True
def zero_loc(grid_space):
for row in range(len(grid_space)):
for col in range(len(grid_space[0])):
if grid_space[row][col] == 0:
return (row, col)
return False
def solve(grid_space):
if zero_loc(grid_space) == False:
return True
else:
(row, col) = zero_loc(grid_space)
for guess in range(1, len(grid_space) + 1):
if valid_input(guess, (row, col), grid_space):
grid_space[row][col] = guess
if solve(grid_space):
return True
grid_space[row][col] = 0
if __name__ == '__main__':
print('NO') |
n = int(input())
sl = {}
for i in range(n):
s = input()
if not(s in sl):
sl[s] = 0
else:
sl[s] += 1
ans = []
s_max = max(sl.values())
for key in sl:
if sl[key] == s_max:
ans.append(key)
ans.sort()
for a in ans:
print(a)
| n = int(input())
sl = {}
for i in range(n):
s = input()
if not s in sl:
sl[s] = 0
else:
sl[s] += 1
ans = []
s_max = max(sl.values())
for key in sl:
if sl[key] == s_max:
ans.append(key)
ans.sort()
for a in ans:
print(a) |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__title__ = 'lasotuvi'
__version__ = '1.0.1'
__author__ = 'doanguyen'
__author_email__ = 'dungnv2410 at gmail.com'
__license__ = 'MIT License'
| __title__ = 'lasotuvi'
__version__ = '1.0.1'
__author__ = 'doanguyen'
__author_email__ = 'dungnv2410 at gmail.com'
__license__ = 'MIT License' |
#Robot in a grid. Imagine a robot sitting in the upper left corner of a grid
#with r rows and c columns. The robot can only move in two directions,
#right and down, but certain cells are "off limits" such that the robot
#cannot step on them. Design an algorithm to find a path for the robot
#from the top left to the bottom right.
def has_path(n, m, clear):
if n < 0 or n >= len(clear) or m < 0 or m >= len(clear[0]):
return False
if n == 0 and m == 0 and clear[n][m]:
return True
return clear[n, m] and (has_path(n, m-1, clear) or has_path(n-1, m, clear)) | def has_path(n, m, clear):
if n < 0 or n >= len(clear) or m < 0 or (m >= len(clear[0])):
return False
if n == 0 and m == 0 and clear[n][m]:
return True
return clear[n, m] and (has_path(n, m - 1, clear) or has_path(n - 1, m, clear)) |
'''
Given the root of a binary tree, return the bottom-up level order traversal of its nodes' values. (i.e., from left to right, level by level from leaf to root).
'''
# RECURSION
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution(object):
def driver(self, node, res, level):
if not node:
return res
if len(res) == level:
res.append([])
res[level].append(node.val)
if node.left:
self.driver(node.left, res, level + 1)
if node.right:
self.driver(node.right, res, level + 1)
def levelOrderBottom(self, root):
res = []
self.driver(root, res, 0)
return res[::-1]
# ITERATIVE (BFS)
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution(object):
def levelOrderBottom(self, root):
res = []
next_level = deque([root])
while root and next_level:
curr_level = next_level
next_level = deque()
res.append([])
for node in curr_level:
# append the current node value
res[-1].append(node.val)
# process child nodes for the next level
if node.left:
next_level.append(node.left)
if node.right:
next_level.append(node.right)
return res[::-1]
| """
Given the root of a binary tree, return the bottom-up level order traversal of its nodes' values. (i.e., from left to right, level by level from leaf to root).
"""
class Solution(object):
def driver(self, node, res, level):
if not node:
return res
if len(res) == level:
res.append([])
res[level].append(node.val)
if node.left:
self.driver(node.left, res, level + 1)
if node.right:
self.driver(node.right, res, level + 1)
def level_order_bottom(self, root):
res = []
self.driver(root, res, 0)
return res[::-1]
class Solution(object):
def level_order_bottom(self, root):
res = []
next_level = deque([root])
while root and next_level:
curr_level = next_level
next_level = deque()
res.append([])
for node in curr_level:
res[-1].append(node.val)
if node.left:
next_level.append(node.left)
if node.right:
next_level.append(node.right)
return res[::-1] |
# Print out numbers from 1 to 100 (including 100).
# But, instead of printing multiples of 3, print "Fizz"
# Instead of printing multiples of 5, print "Buzz"
# Instead of printing multiples of both 3 and 5, print "FizzBuzz".
for number in range(1, 101):
if number % 3 == 0 and number % 5 == 0:
print("FizzBuzz")
elif number % 3 == 0:
print("Fizz")
elif number % 5 == 0:
print("Buzz")
else:
print(number)
# Usig a while loop
counter = 1
while counter < 101:
if (counter % 3 == 0) and (counter % 5 == 0):
print('FizzBuzz')
elif counter % 5 == 0:
print('Buzz')
elif counter % 3 == 0:
print('Fizz')
else:
print(counter)
counter += 1
| for number in range(1, 101):
if number % 3 == 0 and number % 5 == 0:
print('FizzBuzz')
elif number % 3 == 0:
print('Fizz')
elif number % 5 == 0:
print('Buzz')
else:
print(number)
counter = 1
while counter < 101:
if counter % 3 == 0 and counter % 5 == 0:
print('FizzBuzz')
elif counter % 5 == 0:
print('Buzz')
elif counter % 3 == 0:
print('Fizz')
else:
print(counter)
counter += 1 |
# Stackmaps don't get emitted for code that's dead even if it exists in IR:
class C(object):
pass
c = C()
if 1 == 0:
c.x = 1
| class C(object):
pass
c = c()
if 1 == 0:
c.x = 1 |
class FlipFlop:
GATE_LVL = False
def __init__(self, clock, input, name="FlipFlop"):
self.clock = clock
self.input = input
self.output = None
self.outputp = None
self.output_star = None
self.name = name
self.build()
def logic(self):
pass
def build(self):
pass
def set_input(self, input):
self.input = input
self.build()
def set_clock(self, clock):
self.clock = clock
self.build()
def set(self):
self.output.output = 1
self.outputp.output = 0
def reset(self):
self.output.output = 0
self.outputp.output = 1
def q(self):
return self.output.output
def __repr__(self):
return f"{self.name}: {self.output}"
| class Flipflop:
gate_lvl = False
def __init__(self, clock, input, name='FlipFlop'):
self.clock = clock
self.input = input
self.output = None
self.outputp = None
self.output_star = None
self.name = name
self.build()
def logic(self):
pass
def build(self):
pass
def set_input(self, input):
self.input = input
self.build()
def set_clock(self, clock):
self.clock = clock
self.build()
def set(self):
self.output.output = 1
self.outputp.output = 0
def reset(self):
self.output.output = 0
self.outputp.output = 1
def q(self):
return self.output.output
def __repr__(self):
return f'{self.name}: {self.output}' |
def SelectionSort(array):
# Traverse through all array elements
for i in range(len(array)):
# Find the minimum element in remaining
# unsorted array
min_idx = i
for j in range(i+1, len(array)):
if array[min_idx] > array[j]:
min_idx = j
# Swap the found minimum element with
# the first element
array[i], array[min_idx] = array[min_idx], array[i]
return array
array = [24, 6, 2, 9, 0, 7]
print(SelectionSort(array)) | def selection_sort(array):
for i in range(len(array)):
min_idx = i
for j in range(i + 1, len(array)):
if array[min_idx] > array[j]:
min_idx = j
(array[i], array[min_idx]) = (array[min_idx], array[i])
return array
array = [24, 6, 2, 9, 0, 7]
print(selection_sort(array)) |
def yes_no_bool(val):
if val.lower() == 'yes':
return True
elif val.lower() == 'no':
return False
else:
raise ValueError(
'Cannot translate "{}" to bool'.format(val))
| def yes_no_bool(val):
if val.lower() == 'yes':
return True
elif val.lower() == 'no':
return False
else:
raise value_error('Cannot translate "{}" to bool'.format(val)) |
# Calculate distance of 1056 feet in yard and miles.
# 1 mile = 1760 yards and 1 yard = 3 feet.
feet = 1056
yard = feet / 3
print("1056 feet is",yard,"yards")
mile = yard / 1760
print("1056 feet is",mile,"miles") | feet = 1056
yard = feet / 3
print('1056 feet is', yard, 'yards')
mile = yard / 1760
print('1056 feet is', mile, 'miles') |
# -----
model_path_asr= 'models/asr/'
processor_path_asr='models/asr/'
device_asr = 'cuda'
min_len_sec=100
max_len_sec=150
# -----
model_path_punctuation='models/v1_4lang_q.pt'
step_punctuation=30
# -----
model_path_summarization= 'models/sum/'
tokenizer_path_summarization='models/sum/'
max_length_sum=50
step_sum=450
device_summarization='cpu'
# -----
model_path_Q_A='models/Q_A/'
tokenizer_Q_A='models/Q_A/'
max_length_step_Q_A = 250
device_Q_A='cpu'
# -----
| model_path_asr = 'models/asr/'
processor_path_asr = 'models/asr/'
device_asr = 'cuda'
min_len_sec = 100
max_len_sec = 150
model_path_punctuation = 'models/v1_4lang_q.pt'
step_punctuation = 30
model_path_summarization = 'models/sum/'
tokenizer_path_summarization = 'models/sum/'
max_length_sum = 50
step_sum = 450
device_summarization = 'cpu'
model_path_q_a = 'models/Q_A/'
tokenizer_q_a = 'models/Q_A/'
max_length_step_q_a = 250
device_q_a = 'cpu' |
# detection params
detector_path = 'retina_r50/'
box_score_thresh = 0.8
img_target_size = 480
img_max_size = 640
nms_thresh = 0.4
| detector_path = 'retina_r50/'
box_score_thresh = 0.8
img_target_size = 480
img_max_size = 640
nms_thresh = 0.4 |
def main():
n = int(input())
player_hp = [11 + i for i in range(n)]
i = 0
out = 0
out_indexes = []
while out < len(player_hp) - 1:
if player_hp[i] == 0:
i += 1
if i == len(player_hp):
i = 0
continue
hp = player_hp[target(player_hp, i)] - player_hp[i]
if hp <= 0:
out += 1
print(out)
print(player_hp)
if out == 1:
out_indexes.append(target(player_hp, i))
if out == 10:
out_indexes.append(target(player_hp, i))
player_hp[target(player_hp, i)] = max(0, hp)
i += 1
if i == len(player_hp):
i = 0
print(out_indexes[0] + 1)
print(out_indexes[1])
if i == 0:
print(len(player_hp))
else:
print(i - 1)
def target(list, index):
# Gets the maxium
i = index + 1
max_index = i + 1
while i < len(list) + index:
if list[i % len(list)] > list[max_index % len(list)]:
max_index = i
i += 1
if max_index % len(list) == index:
print("fuik1")
return max_index % len(list)
if __name__ == "__main__":
main()
| def main():
n = int(input())
player_hp = [11 + i for i in range(n)]
i = 0
out = 0
out_indexes = []
while out < len(player_hp) - 1:
if player_hp[i] == 0:
i += 1
if i == len(player_hp):
i = 0
continue
hp = player_hp[target(player_hp, i)] - player_hp[i]
if hp <= 0:
out += 1
print(out)
print(player_hp)
if out == 1:
out_indexes.append(target(player_hp, i))
if out == 10:
out_indexes.append(target(player_hp, i))
player_hp[target(player_hp, i)] = max(0, hp)
i += 1
if i == len(player_hp):
i = 0
print(out_indexes[0] + 1)
print(out_indexes[1])
if i == 0:
print(len(player_hp))
else:
print(i - 1)
def target(list, index):
i = index + 1
max_index = i + 1
while i < len(list) + index:
if list[i % len(list)] > list[max_index % len(list)]:
max_index = i
i += 1
if max_index % len(list) == index:
print('fuik1')
return max_index % len(list)
if __name__ == '__main__':
main() |
#TODOS LOS METODOS QUE EXISTEN PARA HACER COMENTARIOS EN PYTHON
#ESTE ES UN EJEMPLO DE COMENTARIO
print('COMETARIOS EN EL CODIGO')
"ESTE ES OTRO EJEMPLO DE COMO HACER COMENTARIOS"
'''HOLA
ESTO ES EJEMPLO DE COMO HACER
COMENTARIOS MULTILINEA
'''
| print('COMETARIOS EN EL CODIGO')
'ESTE ES OTRO EJEMPLO DE COMO HACER COMENTARIOS'
'HOLA\nESTO ES EJEMPLO DE COMO HACER\nCOMENTARIOS MULTILINEA\n' |
#-*-coding:utf-8-*-
# Create dummy secrey key so we can use sessions
SECRET_KEY = '123456790'
# Create in-memory database
DATABASE_FILE = '../hhlyDevops_db.sqlite'
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + DATABASE_FILE
SQLALCHEMY_ECHO = True
SQLALCHEMY_TRACK_MODIFICATIONS = True
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
#flask-bootstrap config
BOOTSTRAP_USE_MINIFIED = True
BOOTSTRAP_SERVE_LOCAL = True #not default
BOOTSTRAP_CDN_FORCE_SSL = True
BOOTSTRAP_QUERYSTRING_REVVING = True
| secret_key = '123456790'
database_file = '../hhlyDevops_db.sqlite'
sqlalchemy_database_uri = 'sqlite:///' + DATABASE_FILE
sqlalchemy_echo = True
sqlalchemy_track_modifications = True
sqlalchemy_commit_on_teardown = True
bootstrap_use_minified = True
bootstrap_serve_local = True
bootstrap_cdn_force_ssl = True
bootstrap_querystring_revving = True |
num1 = 10
print("Global variable num1=",num1)
def func(num2):
print("In function num2 = " ,num2)
num3 = 30
print("In function num3 = " ,num3)
func(20)
print("num1 again=",num1)
print("num3 outside function =",num3) # it will throw error since is local variable.
| num1 = 10
print('Global variable num1=', num1)
def func(num2):
print('In function num2 = ', num2)
num3 = 30
print('In function num3 = ', num3)
func(20)
print('num1 again=', num1)
print('num3 outside function =', num3) |
class Solution:
def removeElement(self, nums: List[int], val: int) -> int:
size = len(nums)
if (size == 0):
return 0
j = 0
k = size - 1
while (j < k) :
while (j < k and nums[j] != val):
j += 1
while (j < k and nums[k] == val):
k -= 1
temp = nums[j]
nums[j] = nums[k]
nums[k] = temp
if (nums[j] == val):
return j
else:
return (j+1)
| class Solution:
def remove_element(self, nums: List[int], val: int) -> int:
size = len(nums)
if size == 0:
return 0
j = 0
k = size - 1
while j < k:
while j < k and nums[j] != val:
j += 1
while j < k and nums[k] == val:
k -= 1
temp = nums[j]
nums[j] = nums[k]
nums[k] = temp
if nums[j] == val:
return j
else:
return j + 1 |
controlNum = list(map(int, input().split()))
controlArr = list(map(int, input().split()))
tvChannelCost = []
for i in range(10):
tvChannelCost.extend(list(map(int, input().split())))
origin, destination = input().split()
origin = int(origin)
destination = int(destination)
results = []
# check can go directly to destination with controlNum
if (destination > 9):
if (controlArr[0] == 1):
decimal = int((destination - (destination % 10))/10)
if (controlNum[decimal] == 1) & (controlNum[destination % 10] == 1):
results.append(3+tvChannelCost[origin]+tvChannelCost[destination])
elif controlNum[destination] == 1:
results.append(1+tvChannelCost[origin]+tvChannelCost[destination])
## Combine points section
combinPoints = []
# Left far
for i in range(10):
if controlNum[i] == 1:
combinPoints.append(i)
break
# Left close
decimal = None
if ((destination > 9) & controlArr[0] == 1) | (destination < 10):
if controlNum[int(destination/10)] == 1:
decimal = int(destination/10)
for i in range((destination % 10)-1, -1, -1):
if controlNum[i] == 1:
combinPoints.append(decimal*10 + i)
break
else:
for i in range(int(destination/10)-1, -1, -1):
if controlNum[i] == 1:
decimal = i
for i in range(9, -1, -1):
if controlNum[i] == 1:
combinPoints.append(decimal*10 + i)
break
else:
for i in range(9, -1, -1):
if controlNum[i] == 1:
combinPoints.append(i)
break
# Right far
for i in range(9,-1, -1):
if controlNum[i] == 1:
combinPoints.append(i*10 +i)
break
# Right close
if ((destination > 9) & controlArr[0]==1) | (destination < 10):
if controlNum[int(destination/10)] == 1:
decimal = int(destination/10)
for i in range(destination%10+1,10):
if controlNum[i] == 1:
combinPoints.append(decimal*10 + i)
break
else:
for i in range(int(destination/10)+1,10):
if controlNum[i] == 1:
decimal = i
break
for i in range(10):
if controlNum[i] == 1:
combinPoints.append(decimal*10 + i)
break
## End combin points section
# just with up arrow
def upArr(origin, destination):
if origin < destination:
return sum(tvChannelCost[i] for i in range(origin, destination+1)) + (destination-origin)
else:
score = sum(tvChannelCost[i]
for i in range(origin, len(tvChannelCost))) + (len(tvChannelCost) - origin)
score += sum(tvChannelCost[i] for i in range(0, origin)) + origin
return score
# just with down arrow
def downArr(origin, destination):
if origin > destination:
return sum(tvChannelCost[i] for i in range(destination, origin+1)) + (origin - destination)
else:
score = sum(tvChannelCost[i] for i in range(0, origin+1)) + origin + 1
score += sum(tvChannelCost[i]
for i in range(destination, len(tvChannelCost))) + (len(tvChannelCost) - destination)
return score
if controlArr[1] ==1:
results.append(upArr(origin,destination))
for cp in combinPoints:
results.append(tvChannelCost[origin]+upArr(cp,destination) + 1 + (2*bool(cp>9)))
if controlArr[2] == 1:
results.append(downArr(origin,destination))
for cp in combinPoints:
results.append(tvChannelCost[origin]+downArr(cp,destination) + 1 + (2*bool(cp>9)))
if results:
print(min(results))
else:
print('-1')
| control_num = list(map(int, input().split()))
control_arr = list(map(int, input().split()))
tv_channel_cost = []
for i in range(10):
tvChannelCost.extend(list(map(int, input().split())))
(origin, destination) = input().split()
origin = int(origin)
destination = int(destination)
results = []
if destination > 9:
if controlArr[0] == 1:
decimal = int((destination - destination % 10) / 10)
if (controlNum[decimal] == 1) & (controlNum[destination % 10] == 1):
results.append(3 + tvChannelCost[origin] + tvChannelCost[destination])
elif controlNum[destination] == 1:
results.append(1 + tvChannelCost[origin] + tvChannelCost[destination])
combin_points = []
for i in range(10):
if controlNum[i] == 1:
combinPoints.append(i)
break
decimal = None
if ((destination > 9) & controlArr[0] == 1) | (destination < 10):
if controlNum[int(destination / 10)] == 1:
decimal = int(destination / 10)
for i in range(destination % 10 - 1, -1, -1):
if controlNum[i] == 1:
combinPoints.append(decimal * 10 + i)
break
else:
for i in range(int(destination / 10) - 1, -1, -1):
if controlNum[i] == 1:
decimal = i
for i in range(9, -1, -1):
if controlNum[i] == 1:
combinPoints.append(decimal * 10 + i)
break
else:
for i in range(9, -1, -1):
if controlNum[i] == 1:
combinPoints.append(i)
break
for i in range(9, -1, -1):
if controlNum[i] == 1:
combinPoints.append(i * 10 + i)
break
if ((destination > 9) & controlArr[0] == 1) | (destination < 10):
if controlNum[int(destination / 10)] == 1:
decimal = int(destination / 10)
for i in range(destination % 10 + 1, 10):
if controlNum[i] == 1:
combinPoints.append(decimal * 10 + i)
break
else:
for i in range(int(destination / 10) + 1, 10):
if controlNum[i] == 1:
decimal = i
break
for i in range(10):
if controlNum[i] == 1:
combinPoints.append(decimal * 10 + i)
break
def up_arr(origin, destination):
if origin < destination:
return sum((tvChannelCost[i] for i in range(origin, destination + 1))) + (destination - origin)
else:
score = sum((tvChannelCost[i] for i in range(origin, len(tvChannelCost)))) + (len(tvChannelCost) - origin)
score += sum((tvChannelCost[i] for i in range(0, origin))) + origin
return score
def down_arr(origin, destination):
if origin > destination:
return sum((tvChannelCost[i] for i in range(destination, origin + 1))) + (origin - destination)
else:
score = sum((tvChannelCost[i] for i in range(0, origin + 1))) + origin + 1
score += sum((tvChannelCost[i] for i in range(destination, len(tvChannelCost)))) + (len(tvChannelCost) - destination)
return score
if controlArr[1] == 1:
results.append(up_arr(origin, destination))
for cp in combinPoints:
results.append(tvChannelCost[origin] + up_arr(cp, destination) + 1 + 2 * bool(cp > 9))
if controlArr[2] == 1:
results.append(down_arr(origin, destination))
for cp in combinPoints:
results.append(tvChannelCost[origin] + down_arr(cp, destination) + 1 + 2 * bool(cp > 9))
if results:
print(min(results))
else:
print('-1') |
size(200, 200)
path = BezierPath()
path.rect(50, 50, 100, 100)
path.reverse()
path.rect(75, 75, 50, 50)
drawPath(path)
| size(200, 200)
path = bezier_path()
path.rect(50, 50, 100, 100)
path.reverse()
path.rect(75, 75, 50, 50)
draw_path(path) |
class vowels:
__VOWELS = ["A", "a", "E", "e",
"I", "i", "O", "o",
"U", "u", "Y", "y"]
def __init__(self, text):
self.text = text
self.start = 0
@staticmethod
def is_vowel(char):
return char in vowels.__VOWELS
def __iter__(self):
return self
def __next__(self):
index = self.start
if index > len(self.text) - 1:
raise StopIteration
char = self.text[index]
self.start += 1
if not self.is_vowel(char):
return self.__next__()
return char
# test code
my_string = vowels('Abcedifuty0o')
for char in my_string:
print(char)
| class Vowels:
__vowels = ['A', 'a', 'E', 'e', 'I', 'i', 'O', 'o', 'U', 'u', 'Y', 'y']
def __init__(self, text):
self.text = text
self.start = 0
@staticmethod
def is_vowel(char):
return char in vowels.__VOWELS
def __iter__(self):
return self
def __next__(self):
index = self.start
if index > len(self.text) - 1:
raise StopIteration
char = self.text[index]
self.start += 1
if not self.is_vowel(char):
return self.__next__()
return char
my_string = vowels('Abcedifuty0o')
for char in my_string:
print(char) |
print(len("Python"))
print(len("programming"))
print(len(" "))
print("Maciej" + "Zurek")
print("Maciej " + "Zurek")
print("Maciej" + " Zurek")
print("Maciej" + " " + "Zurek")
print("a" "b" "c")
print("---" * 10)
| print(len('Python'))
print(len('programming'))
print(len(' '))
print('Maciej' + 'Zurek')
print('Maciej ' + 'Zurek')
print('Maciej' + ' Zurek')
print('Maciej' + ' ' + 'Zurek')
print('abc')
print('---' * 10) |
# Find the IP address in the following line using a regex group and the
# re.search function. Print the IP address using the match object group
# method, as well as the index of where the grouping starts and ends.
log = '208.115.111.73 - - [01/Apr/2013:06:30:26 -0700] "GET /nanowiki/index.php/1_November_2007_-_Day_1 HTTP/1.1" 404 36 "-" "Mozilla/5.0 (compatible; Ezooms/1.0; ezooms.bot@gmail.com)"'
| log = '208.115.111.73 - - [01/Apr/2013:06:30:26 -0700] "GET /nanowiki/index.php/1_November_2007_-_Day_1 HTTP/1.1" 404 36 "-" "Mozilla/5.0 (compatible; Ezooms/1.0; ezooms.bot@gmail.com)"' |
__author__ = 'ivan.arar@gmail.com'
class Paging(object):
def __init__(self, paging_data):
self.paging_data = paging_data
def has_next(self):
if int(self.paging_data['page']) == int(self.paging_data['pages']):
return False
else:
return True
def has_previous(self):
if int(self.paging_data['page']) == 1:
return False
else:
return True
def next(self):
if self.has_next():
return int(self.paging_data['page'])+1
else:
return False
def previous(self):
if self.has_previous():
return int(self.paging_data['page'])-1
else:
return False
| __author__ = 'ivan.arar@gmail.com'
class Paging(object):
def __init__(self, paging_data):
self.paging_data = paging_data
def has_next(self):
if int(self.paging_data['page']) == int(self.paging_data['pages']):
return False
else:
return True
def has_previous(self):
if int(self.paging_data['page']) == 1:
return False
else:
return True
def next(self):
if self.has_next():
return int(self.paging_data['page']) + 1
else:
return False
def previous(self):
if self.has_previous():
return int(self.paging_data['page']) - 1
else:
return False |
f = open("01.txt", "r")
past = 150 # using this as base case since first number on file is 150 (prevent dec or inc count from chaning)
dec = 0
inc = 0
for i in f.read().splitlines():
if i > past:
inc += 1
elif i < past:
dec += 1
past = i
print(inc)
| f = open('01.txt', 'r')
past = 150
dec = 0
inc = 0
for i in f.read().splitlines():
if i > past:
inc += 1
elif i < past:
dec += 1
past = i
print(inc) |
mapping = {
"files": [
("site-example.conf", "/etc/nginx/sites-available/site-example.conf")
],
"templates": [
("index.html.tmpl", "/var/www/html/index.html")
]
}
| mapping = {'files': [('site-example.conf', '/etc/nginx/sites-available/site-example.conf')], 'templates': [('index.html.tmpl', '/var/www/html/index.html')]} |
#----------------------------------------------------------------------------------------------------------
#
# AUTOMATICALLY GENERATED FILE TO BE USED BY W_HOTBOX
#
# NAME: Toggle Adjust Points
# COLOR: #3a97bd
#
#----------------------------------------------------------------------------------------------------------
ns = nuke.selectedNodes()
for n in ns:
n.knob('toggleAdjustKnobs').execute()
| ns = nuke.selectedNodes()
for n in ns:
n.knob('toggleAdjustKnobs').execute() |
#!/usr/bin/env python3
# ## Algorithm:
#
# - Initialize an empty set to store the already visited elements
# - Iterate through the list
# - If the current element is in the set, return True
# - Otherwise, add the element to the set
#
# ## Time Complexity:
#
# - O(n) to run through the entire list
# - O(1) to add an element to the set
# - O(1) to check if an element is present in the set
# - Hence the total time complexity is O(n)
#
# ## Code:
class Solution:
def containsDuplicate(self, nums: List[int]) -> bool:
seen = set()
for x in nums:
if x in seen:
return True
else:
seen.add(x)
return False
| class Solution:
def contains_duplicate(self, nums: List[int]) -> bool:
seen = set()
for x in nums:
if x in seen:
return True
else:
seen.add(x)
return False |
#==============================================================================================
#Multiples of 3 and 5
#===============================================================================================
#Problem 1
#If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
#Find the sum of all the multiples of 3 or 5 below 1000.
###############################################################################################
rezultat = [i for i in range(1000) if i % 3 == 0 or i % 5 == 0] #[0, 3, 5, 6, 9, 10, 12, 15, 18, 20, 21, 24, 25, 27, ...]
print(sum(rezultat)) #233168
| rezultat = [i for i in range(1000) if i % 3 == 0 or i % 5 == 0]
print(sum(rezultat)) |
# Do not edit this file directly.
# It was auto-generated by: code/programs/reflexivity/reflexive_refresh
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
def pthreadpool():
http_archive(
name = "pthreadpool",
build_file = "//bazel/deps/pthreadpool:build.BUILD",
sha256 = "7a523b439a996e2f4376169279409059101f2f71eed4fcc915971368990504a0",
strip_prefix = "pthreadpool-6673a4c71fe35e077c6843a74017d9c25610c537",
urls = [
"https://github.com/Unilang/pthreadpool/archive/6673a4c71fe35e077c6843a74017d9c25610c537.tar.gz",
],
)
| load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_archive')
load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_file')
def pthreadpool():
http_archive(name='pthreadpool', build_file='//bazel/deps/pthreadpool:build.BUILD', sha256='7a523b439a996e2f4376169279409059101f2f71eed4fcc915971368990504a0', strip_prefix='pthreadpool-6673a4c71fe35e077c6843a74017d9c25610c537', urls=['https://github.com/Unilang/pthreadpool/archive/6673a4c71fe35e077c6843a74017d9c25610c537.tar.gz']) |
#
# PySNMP MIB module HPICF-SAVI-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPICF-SAVI-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:33:53 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint")
hpSwitchExperimental, = mibBuilder.importSymbols("HP-ICF-OID", "hpSwitchExperimental")
InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex")
InetVersion, InetAddressType, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetVersion", "InetAddressType", "InetAddress")
ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup")
Integer32, Bits, ModuleIdentity, Unsigned32, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, NotificationType, IpAddress, Counter32, Gauge32, ObjectIdentity, Counter64, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "Bits", "ModuleIdentity", "Unsigned32", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "NotificationType", "IpAddress", "Counter32", "Gauge32", "ObjectIdentity", "Counter64", "MibIdentifier")
TextualConvention, MacAddress, RowStatus, DisplayString, TimeInterval = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "MacAddress", "RowStatus", "DisplayString", "TimeInterval")
hpicfSaviMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1))
hpicfSaviMIB.setRevisions(('2017-11-08 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: hpicfSaviMIB.setRevisionsDescriptions(('Initial version',))
if mibBuilder.loadTexts: hpicfSaviMIB.setLastUpdated('201711080000Z')
if mibBuilder.loadTexts: hpicfSaviMIB.setOrganization('HP Networking')
if mibBuilder.loadTexts: hpicfSaviMIB.setContactInfo('Hewlett-Packard Company 8000 Foothills Blvd. Roseville, CA 95747')
if mibBuilder.loadTexts: hpicfSaviMIB.setDescription('This MIB Module is designed to support the configuration and monitoring of DHCPv6 Snooping protocol. This MIB module was based off the IETF draft of SAVI mib, which was designed to support configuration and monitoring of SAVI protocol by Changging An(acq@cernet.edu.cn) and Jiahai Yang(yang@cernet.edu.cu), https://tools.ietf.org/html/draft-an-savi-mib-02.\\u201d.')
hpicfSaviObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1))
hpicfSaviObjectsPortTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 1), )
if mibBuilder.loadTexts: hpicfSaviObjectsPortTable.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsPortTable.setDescription('The table containing hpicfSAVI parameters of each anchor.')
hpicfSaviObjectsPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 1, 1), ).setIndexNames((0, "HPICF-SAVI-MIB", "hpicfSaviObjectsPortIPVersion"), (0, "HPICF-SAVI-MIB", "hpicfSaviObjectsPortIfIndex"))
if mibBuilder.loadTexts: hpicfSaviObjectsPortEntry.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsPortEntry.setDescription('An entry containing hpicfSAVI running parameters of an anchor.')
hpicfSaviObjectsPortIPVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 1, 1, 1), InetVersion())
if mibBuilder.loadTexts: hpicfSaviObjectsPortIPVersion.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsPortIPVersion.setDescription('The IP version.')
hpicfSaviObjectsPortIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 1, 1, 2), InterfaceIndex())
if mibBuilder.loadTexts: hpicfSaviObjectsPortIfIndex.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsPortIfIndex.setDescription("The index value that uniquely identifies the interface to which this entry is applicable. The interface identified by a particular value of this index is the same interface as identified by the same value of the IF-MIB's ifIndex.")
hpicfSaviObjPortDhcpTrustAttr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpicfSaviObjPortDhcpTrustAttr.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjPortDhcpTrustAttr.setDescription('The DHCP trust attribute of the port. enable(1), the attribute is set. disable(2), the attribute is not set.')
hpicfSaviObjectsPortFilteringNum = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 1, 1, 4), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpicfSaviObjectsPortFilteringNum.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsPortFilteringNum.setDescription('The max filtering number of the Port.')
hpicfSaviObjectsBindingTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2), )
if mibBuilder.loadTexts: hpicfSaviObjectsBindingTable.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsBindingTable.setDescription('The table containing the state of binding between source address and anchor.')
hpicfSaviObjectsBindingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1), ).setIndexNames((0, "HPICF-SAVI-MIB", "hpicfSaviObjBindingIpAddrType"), (0, "HPICF-SAVI-MIB", "hpicfSaviObjectsBindingType"), (0, "HPICF-SAVI-MIB", "hpicfSaviObjectsBindingIfIndex"), (0, "HPICF-SAVI-MIB", "hpicfSaviObjectsBindingIpAddress"))
if mibBuilder.loadTexts: hpicfSaviObjectsBindingEntry.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsBindingEntry.setDescription('An entry containing the state of binding between source address and anchor. Entries are keyed on the source IP address type, binding type, anchor, and source IP address.')
hpicfSaviObjBindingIpAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1, 1), InetAddressType())
if mibBuilder.loadTexts: hpicfSaviObjBindingIpAddrType.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjBindingIpAddrType.setDescription('IP address type of the binding source IP.')
hpicfSaviObjectsBindingType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("manual", 1), ("slaac", 2), ("dhcp", 3), ("send", 4))))
if mibBuilder.loadTexts: hpicfSaviObjectsBindingType.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsBindingType.setDescription('IP address assignment methods.')
hpicfSaviObjectsBindingIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1, 3), InterfaceIndex())
if mibBuilder.loadTexts: hpicfSaviObjectsBindingIfIndex.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsBindingIfIndex.setDescription("The index value that uniquely identifies the interface to which this entry is applicable. The interface identified by a particular value of this index is the same interface as identified by the same value of the IF-MIB's ifIndex.")
hpicfSaviObjectsBindingIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1, 4), InetAddress().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(4, 4), ValueSizeConstraint(16, 16), )))
if mibBuilder.loadTexts: hpicfSaviObjectsBindingIpAddress.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsBindingIpAddress.setDescription('The binding source IP address.')
hpicfSaviObjectsBindingMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1, 5), MacAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpicfSaviObjectsBindingMacAddr.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsBindingMacAddr.setDescription('The binding source mac address.')
hpicfSaviObjectsBindingLifetime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1, 6), TimeInterval()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpicfSaviObjectsBindingLifetime.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsBindingLifetime.setDescription("The remaining lifetime of the entry. TimeInterval is defined in RFC 2579, it's a period of time, measured in units of 0.01 seconds, and the value is (0..2147483647). If hpicfSaviObjectsBindingType=manual, a value of 2147483647 represents infinity.")
hpicfSaviObjectsBindingRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1, 7), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpicfSaviObjectsBindingRowStatus.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsBindingRowStatus.setDescription('The status of this row, by which new entries may be created, or old entries deleted from this table. An Entry can be created or deleted only when hpicfSaviObjectsBindingType=manual. Row statuses createAndWait(5), notReady(3) and notInService(2) are not supported.')
hpicfSaviObjectsFilteringTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 3), )
if mibBuilder.loadTexts: hpicfSaviObjectsFilteringTable.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsFilteringTable.setDescription('The table containing the filtering entries.')
hpicfSaviObjectsFilteringEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 3, 1), ).setIndexNames((0, "HPICF-SAVI-MIB", "hpicfSaviObjFilteringIpAddrType"), (0, "HPICF-SAVI-MIB", "hpicfSaviObjectsFilteringIfIndex"), (0, "HPICF-SAVI-MIB", "hpicfSaviObjFilteringIpAddr"))
if mibBuilder.loadTexts: hpicfSaviObjectsFilteringEntry.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsFilteringEntry.setDescription('An entry containing the filtering parameters. Entries are keyed on the source IP address type, anchor, and source IP address.')
hpicfSaviObjFilteringIpAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 3, 1, 1), InetAddressType())
if mibBuilder.loadTexts: hpicfSaviObjFilteringIpAddrType.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjFilteringIpAddrType.setDescription('IP address type of the filtering source IP.')
hpicfSaviObjectsFilteringIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 3, 1, 2), InterfaceIndex())
if mibBuilder.loadTexts: hpicfSaviObjectsFilteringIfIndex.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsFilteringIfIndex.setDescription("The index value that uniquely identifies the interface to which this entry is applicable. The interface identified by a particular value of this index is the same interface as identified by the same value of the IF-MIB's ifIndex.")
hpicfSaviObjFilteringIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 3, 1, 3), InetAddress().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(4, 4), ValueSizeConstraint(16, 16), )))
if mibBuilder.loadTexts: hpicfSaviObjFilteringIpAddr.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjFilteringIpAddr.setDescription('The filtering source IP address.')
hpicfSaviObjectsFilteringMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 3, 1, 4), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpicfSaviObjectsFilteringMacAddr.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviObjectsFilteringMacAddr.setDescription('The filtering source mac address.')
hpicfSaviConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 2))
hpicfSaviCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 2, 1))
hpicfSaviCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 2, 1, 1)).setObjects(("HPICF-SAVI-MIB", "hpicfSaviportGroup"), ("HPICF-SAVI-MIB", "hpicfSavibindingGroup"), ("HPICF-SAVI-MIB", "hpicfSavifilteringGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpicfSaviCompliance = hpicfSaviCompliance.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviCompliance.setDescription('The compliance statement for entities which implement hpicfSAVI protocol.')
hpicfSaviGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 2, 2))
hpicfSaviportGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 2, 2, 1)).setObjects(("HPICF-SAVI-MIB", "hpicfSaviObjPortDhcpTrustAttr"), ("HPICF-SAVI-MIB", "hpicfSaviObjectsPortFilteringNum"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpicfSaviportGroup = hpicfSaviportGroup.setStatus('current')
if mibBuilder.loadTexts: hpicfSaviportGroup.setDescription('The if group contains objects corresponding to the hpicfSavi running parameters of each anchor.')
hpicfSavibindingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 2, 2, 2)).setObjects(("HPICF-SAVI-MIB", "hpicfSaviObjectsBindingMacAddr"), ("HPICF-SAVI-MIB", "hpicfSaviObjectsBindingLifetime"), ("HPICF-SAVI-MIB", "hpicfSaviObjectsBindingRowStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpicfSavibindingGroup = hpicfSavibindingGroup.setStatus('current')
if mibBuilder.loadTexts: hpicfSavibindingGroup.setDescription('The binding group contains the binding information of anchor and source ip address.')
hpicfSavifilteringGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 2, 2, 3)).setObjects(("HPICF-SAVI-MIB", "hpicfSaviObjectsFilteringMacAddr"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpicfSavifilteringGroup = hpicfSavifilteringGroup.setStatus('current')
if mibBuilder.loadTexts: hpicfSavifilteringGroup.setDescription('The filtering group contains the filtering information of anchor and source ip address.')
mibBuilder.exportSymbols("HPICF-SAVI-MIB", hpicfSaviObjectsBindingEntry=hpicfSaviObjectsBindingEntry, hpicfSaviObjectsBindingMacAddr=hpicfSaviObjectsBindingMacAddr, hpicfSaviObjPortDhcpTrustAttr=hpicfSaviObjPortDhcpTrustAttr, hpicfSaviGroups=hpicfSaviGroups, hpicfSaviportGroup=hpicfSaviportGroup, hpicfSaviObjectsFilteringIfIndex=hpicfSaviObjectsFilteringIfIndex, hpicfSaviConformance=hpicfSaviConformance, hpicfSaviObjBindingIpAddrType=hpicfSaviObjBindingIpAddrType, hpicfSaviObjFilteringIpAddr=hpicfSaviObjFilteringIpAddr, hpicfSaviObjectsPortIPVersion=hpicfSaviObjectsPortIPVersion, hpicfSaviCompliances=hpicfSaviCompliances, hpicfSaviObjFilteringIpAddrType=hpicfSaviObjFilteringIpAddrType, hpicfSavifilteringGroup=hpicfSavifilteringGroup, hpicfSaviObjectsBindingLifetime=hpicfSaviObjectsBindingLifetime, hpicfSaviObjectsPortFilteringNum=hpicfSaviObjectsPortFilteringNum, PYSNMP_MODULE_ID=hpicfSaviMIB, hpicfSaviMIB=hpicfSaviMIB, hpicfSaviObjectsFilteringMacAddr=hpicfSaviObjectsFilteringMacAddr, hpicfSaviObjectsFilteringEntry=hpicfSaviObjectsFilteringEntry, hpicfSaviObjectsPortEntry=hpicfSaviObjectsPortEntry, hpicfSaviObjectsBindingIfIndex=hpicfSaviObjectsBindingIfIndex, hpicfSaviObjectsBindingType=hpicfSaviObjectsBindingType, hpicfSaviObjectsFilteringTable=hpicfSaviObjectsFilteringTable, hpicfSaviObjectsBindingIpAddress=hpicfSaviObjectsBindingIpAddress, hpicfSaviObjectsPortTable=hpicfSaviObjectsPortTable, hpicfSaviObjectsPortIfIndex=hpicfSaviObjectsPortIfIndex, hpicfSaviCompliance=hpicfSaviCompliance, hpicfSaviObjects=hpicfSaviObjects, hpicfSaviObjectsBindingTable=hpicfSaviObjectsBindingTable, hpicfSaviObjectsBindingRowStatus=hpicfSaviObjectsBindingRowStatus, hpicfSavibindingGroup=hpicfSavibindingGroup)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, constraints_intersection, single_value_constraint, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint')
(hp_switch_experimental,) = mibBuilder.importSymbols('HP-ICF-OID', 'hpSwitchExperimental')
(interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex')
(inet_version, inet_address_type, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetVersion', 'InetAddressType', 'InetAddress')
(object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup')
(integer32, bits, module_identity, unsigned32, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, notification_type, ip_address, counter32, gauge32, object_identity, counter64, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'Bits', 'ModuleIdentity', 'Unsigned32', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'NotificationType', 'IpAddress', 'Counter32', 'Gauge32', 'ObjectIdentity', 'Counter64', 'MibIdentifier')
(textual_convention, mac_address, row_status, display_string, time_interval) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'MacAddress', 'RowStatus', 'DisplayString', 'TimeInterval')
hpicf_savi_mib = module_identity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1))
hpicfSaviMIB.setRevisions(('2017-11-08 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
hpicfSaviMIB.setRevisionsDescriptions(('Initial version',))
if mibBuilder.loadTexts:
hpicfSaviMIB.setLastUpdated('201711080000Z')
if mibBuilder.loadTexts:
hpicfSaviMIB.setOrganization('HP Networking')
if mibBuilder.loadTexts:
hpicfSaviMIB.setContactInfo('Hewlett-Packard Company 8000 Foothills Blvd. Roseville, CA 95747')
if mibBuilder.loadTexts:
hpicfSaviMIB.setDescription('This MIB Module is designed to support the configuration and monitoring of DHCPv6 Snooping protocol. This MIB module was based off the IETF draft of SAVI mib, which was designed to support configuration and monitoring of SAVI protocol by Changging An(acq@cernet.edu.cn) and Jiahai Yang(yang@cernet.edu.cu), https://tools.ietf.org/html/draft-an-savi-mib-02.\\u201d.')
hpicf_savi_objects = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1))
hpicf_savi_objects_port_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 1))
if mibBuilder.loadTexts:
hpicfSaviObjectsPortTable.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsPortTable.setDescription('The table containing hpicfSAVI parameters of each anchor.')
hpicf_savi_objects_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 1, 1)).setIndexNames((0, 'HPICF-SAVI-MIB', 'hpicfSaviObjectsPortIPVersion'), (0, 'HPICF-SAVI-MIB', 'hpicfSaviObjectsPortIfIndex'))
if mibBuilder.loadTexts:
hpicfSaviObjectsPortEntry.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsPortEntry.setDescription('An entry containing hpicfSAVI running parameters of an anchor.')
hpicf_savi_objects_port_ip_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 1, 1, 1), inet_version())
if mibBuilder.loadTexts:
hpicfSaviObjectsPortIPVersion.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsPortIPVersion.setDescription('The IP version.')
hpicf_savi_objects_port_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 1, 1, 2), interface_index())
if mibBuilder.loadTexts:
hpicfSaviObjectsPortIfIndex.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsPortIfIndex.setDescription("The index value that uniquely identifies the interface to which this entry is applicable. The interface identified by a particular value of this index is the same interface as identified by the same value of the IF-MIB's ifIndex.")
hpicf_savi_obj_port_dhcp_trust_attr = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpicfSaviObjPortDhcpTrustAttr.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjPortDhcpTrustAttr.setDescription('The DHCP trust attribute of the port. enable(1), the attribute is set. disable(2), the attribute is not set.')
hpicf_savi_objects_port_filtering_num = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 1, 1, 4), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpicfSaviObjectsPortFilteringNum.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsPortFilteringNum.setDescription('The max filtering number of the Port.')
hpicf_savi_objects_binding_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2))
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingTable.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingTable.setDescription('The table containing the state of binding between source address and anchor.')
hpicf_savi_objects_binding_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1)).setIndexNames((0, 'HPICF-SAVI-MIB', 'hpicfSaviObjBindingIpAddrType'), (0, 'HPICF-SAVI-MIB', 'hpicfSaviObjectsBindingType'), (0, 'HPICF-SAVI-MIB', 'hpicfSaviObjectsBindingIfIndex'), (0, 'HPICF-SAVI-MIB', 'hpicfSaviObjectsBindingIpAddress'))
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingEntry.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingEntry.setDescription('An entry containing the state of binding between source address and anchor. Entries are keyed on the source IP address type, binding type, anchor, and source IP address.')
hpicf_savi_obj_binding_ip_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1, 1), inet_address_type())
if mibBuilder.loadTexts:
hpicfSaviObjBindingIpAddrType.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjBindingIpAddrType.setDescription('IP address type of the binding source IP.')
hpicf_savi_objects_binding_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('manual', 1), ('slaac', 2), ('dhcp', 3), ('send', 4))))
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingType.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingType.setDescription('IP address assignment methods.')
hpicf_savi_objects_binding_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1, 3), interface_index())
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingIfIndex.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingIfIndex.setDescription("The index value that uniquely identifies the interface to which this entry is applicable. The interface identified by a particular value of this index is the same interface as identified by the same value of the IF-MIB's ifIndex.")
hpicf_savi_objects_binding_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1, 4), inet_address().subtype(subtypeSpec=constraints_union(value_size_constraint(4, 4), value_size_constraint(16, 16))))
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingIpAddress.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingIpAddress.setDescription('The binding source IP address.')
hpicf_savi_objects_binding_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1, 5), mac_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingMacAddr.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingMacAddr.setDescription('The binding source mac address.')
hpicf_savi_objects_binding_lifetime = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1, 6), time_interval()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingLifetime.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingLifetime.setDescription("The remaining lifetime of the entry. TimeInterval is defined in RFC 2579, it's a period of time, measured in units of 0.01 seconds, and the value is (0..2147483647). If hpicfSaviObjectsBindingType=manual, a value of 2147483647 represents infinity.")
hpicf_savi_objects_binding_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 2, 1, 7), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingRowStatus.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsBindingRowStatus.setDescription('The status of this row, by which new entries may be created, or old entries deleted from this table. An Entry can be created or deleted only when hpicfSaviObjectsBindingType=manual. Row statuses createAndWait(5), notReady(3) and notInService(2) are not supported.')
hpicf_savi_objects_filtering_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 3))
if mibBuilder.loadTexts:
hpicfSaviObjectsFilteringTable.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsFilteringTable.setDescription('The table containing the filtering entries.')
hpicf_savi_objects_filtering_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 3, 1)).setIndexNames((0, 'HPICF-SAVI-MIB', 'hpicfSaviObjFilteringIpAddrType'), (0, 'HPICF-SAVI-MIB', 'hpicfSaviObjectsFilteringIfIndex'), (0, 'HPICF-SAVI-MIB', 'hpicfSaviObjFilteringIpAddr'))
if mibBuilder.loadTexts:
hpicfSaviObjectsFilteringEntry.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsFilteringEntry.setDescription('An entry containing the filtering parameters. Entries are keyed on the source IP address type, anchor, and source IP address.')
hpicf_savi_obj_filtering_ip_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 3, 1, 1), inet_address_type())
if mibBuilder.loadTexts:
hpicfSaviObjFilteringIpAddrType.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjFilteringIpAddrType.setDescription('IP address type of the filtering source IP.')
hpicf_savi_objects_filtering_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 3, 1, 2), interface_index())
if mibBuilder.loadTexts:
hpicfSaviObjectsFilteringIfIndex.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsFilteringIfIndex.setDescription("The index value that uniquely identifies the interface to which this entry is applicable. The interface identified by a particular value of this index is the same interface as identified by the same value of the IF-MIB's ifIndex.")
hpicf_savi_obj_filtering_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 3, 1, 3), inet_address().subtype(subtypeSpec=constraints_union(value_size_constraint(4, 4), value_size_constraint(16, 16))))
if mibBuilder.loadTexts:
hpicfSaviObjFilteringIpAddr.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjFilteringIpAddr.setDescription('The filtering source IP address.')
hpicf_savi_objects_filtering_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 1, 3, 1, 4), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpicfSaviObjectsFilteringMacAddr.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviObjectsFilteringMacAddr.setDescription('The filtering source mac address.')
hpicf_savi_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 2))
hpicf_savi_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 2, 1))
hpicf_savi_compliance = module_compliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 2, 1, 1)).setObjects(('HPICF-SAVI-MIB', 'hpicfSaviportGroup'), ('HPICF-SAVI-MIB', 'hpicfSavibindingGroup'), ('HPICF-SAVI-MIB', 'hpicfSavifilteringGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpicf_savi_compliance = hpicfSaviCompliance.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviCompliance.setDescription('The compliance statement for entities which implement hpicfSAVI protocol.')
hpicf_savi_groups = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 2, 2))
hpicf_saviport_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 2, 2, 1)).setObjects(('HPICF-SAVI-MIB', 'hpicfSaviObjPortDhcpTrustAttr'), ('HPICF-SAVI-MIB', 'hpicfSaviObjectsPortFilteringNum'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpicf_saviport_group = hpicfSaviportGroup.setStatus('current')
if mibBuilder.loadTexts:
hpicfSaviportGroup.setDescription('The if group contains objects corresponding to the hpicfSavi running parameters of each anchor.')
hpicf_savibinding_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 2, 2, 2)).setObjects(('HPICF-SAVI-MIB', 'hpicfSaviObjectsBindingMacAddr'), ('HPICF-SAVI-MIB', 'hpicfSaviObjectsBindingLifetime'), ('HPICF-SAVI-MIB', 'hpicfSaviObjectsBindingRowStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpicf_savibinding_group = hpicfSavibindingGroup.setStatus('current')
if mibBuilder.loadTexts:
hpicfSavibindingGroup.setDescription('The binding group contains the binding information of anchor and source ip address.')
hpicf_savifiltering_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 2, 1, 2, 2, 3)).setObjects(('HPICF-SAVI-MIB', 'hpicfSaviObjectsFilteringMacAddr'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpicf_savifiltering_group = hpicfSavifilteringGroup.setStatus('current')
if mibBuilder.loadTexts:
hpicfSavifilteringGroup.setDescription('The filtering group contains the filtering information of anchor and source ip address.')
mibBuilder.exportSymbols('HPICF-SAVI-MIB', hpicfSaviObjectsBindingEntry=hpicfSaviObjectsBindingEntry, hpicfSaviObjectsBindingMacAddr=hpicfSaviObjectsBindingMacAddr, hpicfSaviObjPortDhcpTrustAttr=hpicfSaviObjPortDhcpTrustAttr, hpicfSaviGroups=hpicfSaviGroups, hpicfSaviportGroup=hpicfSaviportGroup, hpicfSaviObjectsFilteringIfIndex=hpicfSaviObjectsFilteringIfIndex, hpicfSaviConformance=hpicfSaviConformance, hpicfSaviObjBindingIpAddrType=hpicfSaviObjBindingIpAddrType, hpicfSaviObjFilteringIpAddr=hpicfSaviObjFilteringIpAddr, hpicfSaviObjectsPortIPVersion=hpicfSaviObjectsPortIPVersion, hpicfSaviCompliances=hpicfSaviCompliances, hpicfSaviObjFilteringIpAddrType=hpicfSaviObjFilteringIpAddrType, hpicfSavifilteringGroup=hpicfSavifilteringGroup, hpicfSaviObjectsBindingLifetime=hpicfSaviObjectsBindingLifetime, hpicfSaviObjectsPortFilteringNum=hpicfSaviObjectsPortFilteringNum, PYSNMP_MODULE_ID=hpicfSaviMIB, hpicfSaviMIB=hpicfSaviMIB, hpicfSaviObjectsFilteringMacAddr=hpicfSaviObjectsFilteringMacAddr, hpicfSaviObjectsFilteringEntry=hpicfSaviObjectsFilteringEntry, hpicfSaviObjectsPortEntry=hpicfSaviObjectsPortEntry, hpicfSaviObjectsBindingIfIndex=hpicfSaviObjectsBindingIfIndex, hpicfSaviObjectsBindingType=hpicfSaviObjectsBindingType, hpicfSaviObjectsFilteringTable=hpicfSaviObjectsFilteringTable, hpicfSaviObjectsBindingIpAddress=hpicfSaviObjectsBindingIpAddress, hpicfSaviObjectsPortTable=hpicfSaviObjectsPortTable, hpicfSaviObjectsPortIfIndex=hpicfSaviObjectsPortIfIndex, hpicfSaviCompliance=hpicfSaviCompliance, hpicfSaviObjects=hpicfSaviObjects, hpicfSaviObjectsBindingTable=hpicfSaviObjectsBindingTable, hpicfSaviObjectsBindingRowStatus=hpicfSaviObjectsBindingRowStatus, hpicfSavibindingGroup=hpicfSavibindingGroup) |
__title__ = 'db_cache'
__description__ = 'DB Cache'
__url__ = 'https://github.com/dskrypa/db_cache'
__version__ = '2020.09.19-1'
__author__ = 'Doug Skrypa'
__author_email__ = 'dskrypa@gmail.com'
__copyright__ = 'Copyright 2020 Doug Skrypa'
| __title__ = 'db_cache'
__description__ = 'DB Cache'
__url__ = 'https://github.com/dskrypa/db_cache'
__version__ = '2020.09.19-1'
__author__ = 'Doug Skrypa'
__author_email__ = 'dskrypa@gmail.com'
__copyright__ = 'Copyright 2020 Doug Skrypa' |
'''
Created on 29 Oct 2009
@author: charanpal
An abstract class which reads graphs from files.
'''
class GraphReader(object):
def __init__(self):
pass
def readFromFile(self, fileName):
pass
| """
Created on 29 Oct 2009
@author: charanpal
An abstract class which reads graphs from files.
"""
class Graphreader(object):
def __init__(self):
pass
def read_from_file(self, fileName):
pass |
class FPS:
sum_e=(911660635, 509520358, 369330050, 332049552, 983190778, 123842337, 238493703, 975955924, 603855026, 856644456, 131300601, 842657263, 730768835, 942482514, 806263778, 151565301, 510815449, 503497456, 743006876, 741047443, 56250497)
sum_ie=(86583718, 372528824, 373294451, 645684063, 112220581, 692852209, 155456985, 797128860, 90816748, 860285882, 927414960, 354738543, 109331171, 293255632, 535113200, 308540755, 121186627, 608385704, 438932459, 359477183, 824071951)
mod=998244353
Func=[0]
def __init__(self,L):
self.Func=[x%self.mod for x in L]
def butterfly(self,a):
n=len(a)
h=(n-1).bit_length()
for ph in range(1,h+1):
w=1<<(ph-1)
p=1<<(h-ph)
now=1
for s in range(w):
offset=s<<(h-ph+1)
for i in range(p):
l=a[i+offset]
r=a[i+offset+p]*now
r%=self.mod
a[i+offset]=l+r
a[i+offset]%=self.mod
a[i+offset+p]=l-r
a[i+offset+p]%=self.mod
now*=self.sum_e[(~s & -~s).bit_length()-1]
now%=self.mod
return a
def butterfly_inv(self,a):
n=len(a)
h=(n-1).bit_length()
for ph in range(h,0,-1):
w=1<<(ph-1)
p=1<<(h-ph)
inow=1
for s in range(w):
offset=s<<(h-ph+1)
for i in range(p):
l=a[i+offset]
r=a[i+offset+p]
a[i+offset]=l+r
a[i+offset]%=self.mod
a[i+offset+p]=(l-r)*inow
a[i+offset+p]%=self.mod
inow*=self.sum_ie[(~s & -~s).bit_length()-1]
inow%=self.mod
return a
def __mul__(self,other):
if type(other)==int:
ret=[(x*other)%self.mod for x in self.Func]
return FPS(ret)
a=self.Func
b=other.Func
n=len(a);m=len(b)
if not(a) or not(b):
return FPS([])
if min(n,m)<=40:
if n<m:
n,m=m,n
a,b=b,a
res=[0]*(n+m-1)
for i in range(n):
for j in range(m):
res[i+j]+=a[i]*b[j]
res[i+j]%=self.mod
return FPS(res)
z=1<<((n+m-2).bit_length())
a=a+[0]*(z-n)
b=b+[0]*(z-m)
a=self.butterfly(a)
b=self.butterfly(b)
c=[0]*z
for i in range(z):
c[i]=(a[i]*b[i])%self.mod
self.butterfly_inv(c)
iz=pow(z,self.mod-2,self.mod)
for i in range(n+m-1):
c[i]=(c[i]*iz)%self.mod
return FPS(c[:n+m-1])
def __imul__(self,other):
self=self*other
return self
def __add__(self,other):
res=[0 for i in range(max(len(self.Func),len(other.Func)))]
for i,x in enumerate(self.Func):
res[i]+=x
res[i]%=self.mod
for i,x in enumerate(other.Func):
res[i]+=x
res[i]%=self.mod
return FPS(res)
def __iadd__(self,other):
self=(self+other)
return self
def __sub__(self,other):
res=[0 for i in range(max(len(self.Func),len(other.Func)))]
for i,x in enumerate(self.Func):
res[i]+=x
res[i]%=self.mod
for i,x in enumerate(other.Func):
res[i]-=x
res[i]%=self.mod
return FPS(res)
def __isub__(self,other):
self=self-other
return self
def inv(self,d=-1):
n=len(self.Func)
assert n!=0 and self.Func[0]!=0
if d==-1:d=n
assert d>0
res=[pow(self.Func[0],self.mod-2,self.mod)]
while(len(res)<d):
m=len(res)
f=[self.Func[i] for i in range(min(n,2*m))]
r=res[:]
if len(f)<2*m:
f+=[0]*(2*m-len(f))
elif len(f)>2*m:
f=f[:2*m]
if len(r)<2*m:
r+=[0]*(2*m-len(r))
elif len(r)>2*m:
r=r[:2*m]
f=self.butterfly(f)
r=self.butterfly(r)
for i in range(2*m):
f[i]*=r[i]
f[i]%=self.mod
f=self.butterfly_inv(f)
f=f[m:]
if len(f)<2*m:
f+=[0]*(2*m-len(f))
elif len(f)>2*m:
f=f[:2*m]
f=self.butterfly(f)
for i in range(2*m):
f[i]*=r[i]
f[i]%=self.mod
f=self.butterfly_inv(f)
iz=pow(2*m,self.mod-2,self.mod)
iz*=-iz
iz%=self.mod
for i in range(m):
f[i]*=iz
f[i]%=self.mod
res+=f[:m]
return FPS(res[:d])
def __truediv__(self,other):
if type(other)==int:
invother=pow(other,self.mod-2,self.mod)
ret=[(x*invother)%self.mod for x in self.Func]
return FPS(ret)
assert (other.Func[0]!=0)
return self*(other.inv())
def __itruediv__(self,other):
self=self/other
return self
def __lshift__(self,d):
n=len(self.Func)
self.Func=[0]*d+self.Func
return FPS(self.Func[:n])
def __ilshift__(self,d):
self=self<<d
return self
def __rshift__(self,d):
n=len(self.Func)
self.Func=self.Func[min(n,d):]
self.Func+=[0]*(n-len(self.Func))
return FPS(self.Func)
def __irshift__(self,d):
self=self>>d
return self
def __str__(self):
return f'FPS({self.Func})'
def diff(self):
n=len(self.Func)
ret=[0 for i in range(max(0,n-1))]
for i in range(1,n):
ret[i-1]=(self.Func[i]*i)%self.mod
return FPS(ret)
def integral(self):
n=len(self.Func)
ret=[0 for i in range(n+1)]
for i in range(n):
ret[i+1]=self.Func[i]*pow(i+1,self.mod-2,self.mod)%self.mod
return FPS(ret)
def log(self,deg=-1):
assert self.Func[0]==1
n=len(self.Func)
if deg==-1:deg=n
return (self.diff()*self.inv()).integral()
def mod_sqrt(self,a):
p=self.mod
assert 0<=a and a<p
if a<2:return a
if pow(a,(p-1)//2,p)!=1:return -1
b=1;one=1
while(pow(b,(p-1)>>1,p)==1):
b+=one
m=p-1;e=0
while(m%2==0):
m>>=1
e+=1
x=pow(a,(m-1)>>1,p)
y=(a*x*x)%p
x*=a;
x%=p
z=pow(b,m,p)
while(y!=1):
j=0
t=y
while(t!=one):
j+=1
t*=t
t%=p
z=pow(z,1<<(e-j-1),p)
x*=z
x%=p
z*=z
z%=p
y*=z
y%=p
e=j
return x
def sqrt(self,deg=-1):
n=len(self.Func)
if deg==-1:deg=n
if n==0:return FPS([0 for i in range(deg)])
if self.Func[0]==0:
for i in range(1,n):
if self.Func[i]!=0:
if i&1:return FPS([])
if deg-i//2<=0:break
ret=(self>>i).sqrt(deg-i//2)
if len(ret.Func)==0:return FPS([])
ret=ret<<(i//2)
if len(ret.Func)<deg:
ret.Func+=[0]*(deg-len(ret.Func))
return ret
return FPS([0]*deg)
sqr=self.mod_sqrt(self.Func[0])
if sqr==-1:return FPS([])
assert sqr*sqr%self.mod==self.Func[0]
ret=FPS([sqr])
inv2=(self.mod+1)//2
i=1
while(i<deg):
ret=(ret+FPS(self.Func[:i<<1])*ret.inv(i<<1))*inv2
i<<=1
return FPS(ret.Func[:deg])
def resize(self,deg):
if len(self.Func)<deg:
return FPS(self.Func+[0]*(deg-len(self.Func)))
elif len(self.Func)>deg:
return FPS(self.Func[:deg])
else:
return self
def exp(self,deg=-1):
n=len(self.Func)
assert n>0 and self.Func[0]==0
if deg==-1:deg=n
assert deg>=0
g=[1]
g_fft=[1,1]
self.Func[0]=1
self.resize(deg)
h_drv=self.diff()
m=2
while(m<deg):
f_fft=self.Func[:m]+[0]*m
self.butterfly(f_fft)
#step 2.a
_g=[f_fft[i]*g_fft[i]%self.mod for i in range(m)]
self.butterfly_inv(_g)
_g=_g[m//2:m]+[0]*(m//2)
self.butterfly(_g)
for i in range(m):
_g[i]*=g_fft[i]
_g[i]%=self.mod
self.butterfly_inv(_g)
tmp=pow(-m*m,self.mod-2,self.mod)
for i in range(m):
_g[i]*=tmp
_g[i]%=self.mod
g+=_g[:m//2]
#step 2.b--2.d
t=FPS(self.Func[:m]).diff()
r=h_drv.Func[:m-1]+[0]
self.butterfly(r)
for i in range(m):
r[i]*=f_fft[i]
r[i]%=self.mod
self.butterfly_inv(r)
tmp=pow(-m,self.mod-2,self.mod)
for i in range(m):
r[i]*=tmp
r[i]%=self.mod
t=(t+FPS(r)).Func
t=[t[-1]]+t
t.pop()
#step 2.e
if (2*m<deg):
if len(t)<2*m:
t+=[0]*(2*m-len(t))
elif len(t)>2*m:
t=t[:2*m]
self.butterfly(t)
g_fft=g[:]
if len(g_fft)<2*m:
g_fft+=[0]*(2*m-len(g_fft))
elif len(g_fft)>2*m:
g_fft=g_fft[:2*m]
self.butterfly(g_fft)
for i in range(2*m):
t[i]*=g_fft[i]
t[i]%=self.mod
self.butterfly_inv(t)
tmp=pow(2*m,self.mod-2,self.mod)
t=t[:m]
for i in range(m):
t[i]*=tmp
t[i]%=self.mod
else:
g1=g[m//2:]
s1=t[m//2:]
t=t[:m//2]
g1+=[0]*(m-len(g1))
s1+=[0]*(m-len(s1))
t+=[0]*(m-len(t))
self.butterfly(g1)
self.butterfly(t)
self.butterfly(s1)
for i in range(m):
s1[i]=(g_fft[i]*s1[i]+g1[i]*t[i])%self.mod
for i in range(m):
t[i]*=g_fft[i]
t[i]%=self.mod
self.butterfly_inv(t)
self.butterfly_inv(s1)
for i in range(m//2):
t[i+m//2]+=s1[i]
t[i+m//2]%=self.mod
tmp=pow(m,self.mod-2,self.mod)
for i in range(m):
t[i]*=tmp
t[i]%=self.mod
#step 2.f
v=self.Func[m:min(deg,2*m)]+[0]*(2*m-min(deg,2*m))
t=[0]*(m-1)+t
t=FPS(t).integral().Func
for i in range(m):
v[i]-=t[m+i]
v[i]%=self.mod
#step 2.g
if len(v)<2*m:
v+=[0]*(2*m-len(v))
else:
v=v[:2*m]
self.butterfly(v)
for i in range(2*m):
v[i]*=f_fft[i]
v[i]%=self.mod
self.butterfly_inv(v)
v=v[:m]
tmp=pow(2*m,self.mod-2,self.mod)
for i in range(m):
v[i]*=tmp
v[i]%=self.mod
#step 2.h
for i in range(min(deg-m,m)):
self.Func[m+i]=v[i]
m*=2
return self
def powfps(self,k,deg=-1):
a=self.Func[:]
n=len(self.Func)
l=0
while(l<len(a) and not a[l]):
l+=1
if l*k>=n:
return FPS([0]*n)
ic=pow(a[l],self.mod-2,self.mod)
pc=pow(a[l],k,self.mod)
a=FPS([(a[i]*ic)%self.mod for i in range(l,len(a))]).log()
a*=k
a=a.exp()
a*=pc
a=[0]*(l*k)+a.Func[:n-l*k]
return FPS(a)
| class Fps:
sum_e = (911660635, 509520358, 369330050, 332049552, 983190778, 123842337, 238493703, 975955924, 603855026, 856644456, 131300601, 842657263, 730768835, 942482514, 806263778, 151565301, 510815449, 503497456, 743006876, 741047443, 56250497)
sum_ie = (86583718, 372528824, 373294451, 645684063, 112220581, 692852209, 155456985, 797128860, 90816748, 860285882, 927414960, 354738543, 109331171, 293255632, 535113200, 308540755, 121186627, 608385704, 438932459, 359477183, 824071951)
mod = 998244353
func = [0]
def __init__(self, L):
self.Func = [x % self.mod for x in L]
def butterfly(self, a):
n = len(a)
h = (n - 1).bit_length()
for ph in range(1, h + 1):
w = 1 << ph - 1
p = 1 << h - ph
now = 1
for s in range(w):
offset = s << h - ph + 1
for i in range(p):
l = a[i + offset]
r = a[i + offset + p] * now
r %= self.mod
a[i + offset] = l + r
a[i + offset] %= self.mod
a[i + offset + p] = l - r
a[i + offset + p] %= self.mod
now *= self.sum_e[(~s & -~s).bit_length() - 1]
now %= self.mod
return a
def butterfly_inv(self, a):
n = len(a)
h = (n - 1).bit_length()
for ph in range(h, 0, -1):
w = 1 << ph - 1
p = 1 << h - ph
inow = 1
for s in range(w):
offset = s << h - ph + 1
for i in range(p):
l = a[i + offset]
r = a[i + offset + p]
a[i + offset] = l + r
a[i + offset] %= self.mod
a[i + offset + p] = (l - r) * inow
a[i + offset + p] %= self.mod
inow *= self.sum_ie[(~s & -~s).bit_length() - 1]
inow %= self.mod
return a
def __mul__(self, other):
if type(other) == int:
ret = [x * other % self.mod for x in self.Func]
return fps(ret)
a = self.Func
b = other.Func
n = len(a)
m = len(b)
if not a or not b:
return fps([])
if min(n, m) <= 40:
if n < m:
(n, m) = (m, n)
(a, b) = (b, a)
res = [0] * (n + m - 1)
for i in range(n):
for j in range(m):
res[i + j] += a[i] * b[j]
res[i + j] %= self.mod
return fps(res)
z = 1 << (n + m - 2).bit_length()
a = a + [0] * (z - n)
b = b + [0] * (z - m)
a = self.butterfly(a)
b = self.butterfly(b)
c = [0] * z
for i in range(z):
c[i] = a[i] * b[i] % self.mod
self.butterfly_inv(c)
iz = pow(z, self.mod - 2, self.mod)
for i in range(n + m - 1):
c[i] = c[i] * iz % self.mod
return fps(c[:n + m - 1])
def __imul__(self, other):
self = self * other
return self
def __add__(self, other):
res = [0 for i in range(max(len(self.Func), len(other.Func)))]
for (i, x) in enumerate(self.Func):
res[i] += x
res[i] %= self.mod
for (i, x) in enumerate(other.Func):
res[i] += x
res[i] %= self.mod
return fps(res)
def __iadd__(self, other):
self = self + other
return self
def __sub__(self, other):
res = [0 for i in range(max(len(self.Func), len(other.Func)))]
for (i, x) in enumerate(self.Func):
res[i] += x
res[i] %= self.mod
for (i, x) in enumerate(other.Func):
res[i] -= x
res[i] %= self.mod
return fps(res)
def __isub__(self, other):
self = self - other
return self
def inv(self, d=-1):
n = len(self.Func)
assert n != 0 and self.Func[0] != 0
if d == -1:
d = n
assert d > 0
res = [pow(self.Func[0], self.mod - 2, self.mod)]
while len(res) < d:
m = len(res)
f = [self.Func[i] for i in range(min(n, 2 * m))]
r = res[:]
if len(f) < 2 * m:
f += [0] * (2 * m - len(f))
elif len(f) > 2 * m:
f = f[:2 * m]
if len(r) < 2 * m:
r += [0] * (2 * m - len(r))
elif len(r) > 2 * m:
r = r[:2 * m]
f = self.butterfly(f)
r = self.butterfly(r)
for i in range(2 * m):
f[i] *= r[i]
f[i] %= self.mod
f = self.butterfly_inv(f)
f = f[m:]
if len(f) < 2 * m:
f += [0] * (2 * m - len(f))
elif len(f) > 2 * m:
f = f[:2 * m]
f = self.butterfly(f)
for i in range(2 * m):
f[i] *= r[i]
f[i] %= self.mod
f = self.butterfly_inv(f)
iz = pow(2 * m, self.mod - 2, self.mod)
iz *= -iz
iz %= self.mod
for i in range(m):
f[i] *= iz
f[i] %= self.mod
res += f[:m]
return fps(res[:d])
def __truediv__(self, other):
if type(other) == int:
invother = pow(other, self.mod - 2, self.mod)
ret = [x * invother % self.mod for x in self.Func]
return fps(ret)
assert other.Func[0] != 0
return self * other.inv()
def __itruediv__(self, other):
self = self / other
return self
def __lshift__(self, d):
n = len(self.Func)
self.Func = [0] * d + self.Func
return fps(self.Func[:n])
def __ilshift__(self, d):
self = self << d
return self
def __rshift__(self, d):
n = len(self.Func)
self.Func = self.Func[min(n, d):]
self.Func += [0] * (n - len(self.Func))
return fps(self.Func)
def __irshift__(self, d):
self = self >> d
return self
def __str__(self):
return f'FPS({self.Func})'
def diff(self):
n = len(self.Func)
ret = [0 for i in range(max(0, n - 1))]
for i in range(1, n):
ret[i - 1] = self.Func[i] * i % self.mod
return fps(ret)
def integral(self):
n = len(self.Func)
ret = [0 for i in range(n + 1)]
for i in range(n):
ret[i + 1] = self.Func[i] * pow(i + 1, self.mod - 2, self.mod) % self.mod
return fps(ret)
def log(self, deg=-1):
assert self.Func[0] == 1
n = len(self.Func)
if deg == -1:
deg = n
return (self.diff() * self.inv()).integral()
def mod_sqrt(self, a):
p = self.mod
assert 0 <= a and a < p
if a < 2:
return a
if pow(a, (p - 1) // 2, p) != 1:
return -1
b = 1
one = 1
while pow(b, p - 1 >> 1, p) == 1:
b += one
m = p - 1
e = 0
while m % 2 == 0:
m >>= 1
e += 1
x = pow(a, m - 1 >> 1, p)
y = a * x * x % p
x *= a
x %= p
z = pow(b, m, p)
while y != 1:
j = 0
t = y
while t != one:
j += 1
t *= t
t %= p
z = pow(z, 1 << e - j - 1, p)
x *= z
x %= p
z *= z
z %= p
y *= z
y %= p
e = j
return x
def sqrt(self, deg=-1):
n = len(self.Func)
if deg == -1:
deg = n
if n == 0:
return fps([0 for i in range(deg)])
if self.Func[0] == 0:
for i in range(1, n):
if self.Func[i] != 0:
if i & 1:
return fps([])
if deg - i // 2 <= 0:
break
ret = (self >> i).sqrt(deg - i // 2)
if len(ret.Func) == 0:
return fps([])
ret = ret << i // 2
if len(ret.Func) < deg:
ret.Func += [0] * (deg - len(ret.Func))
return ret
return fps([0] * deg)
sqr = self.mod_sqrt(self.Func[0])
if sqr == -1:
return fps([])
assert sqr * sqr % self.mod == self.Func[0]
ret = fps([sqr])
inv2 = (self.mod + 1) // 2
i = 1
while i < deg:
ret = (ret + fps(self.Func[:i << 1]) * ret.inv(i << 1)) * inv2
i <<= 1
return fps(ret.Func[:deg])
def resize(self, deg):
if len(self.Func) < deg:
return fps(self.Func + [0] * (deg - len(self.Func)))
elif len(self.Func) > deg:
return fps(self.Func[:deg])
else:
return self
def exp(self, deg=-1):
n = len(self.Func)
assert n > 0 and self.Func[0] == 0
if deg == -1:
deg = n
assert deg >= 0
g = [1]
g_fft = [1, 1]
self.Func[0] = 1
self.resize(deg)
h_drv = self.diff()
m = 2
while m < deg:
f_fft = self.Func[:m] + [0] * m
self.butterfly(f_fft)
_g = [f_fft[i] * g_fft[i] % self.mod for i in range(m)]
self.butterfly_inv(_g)
_g = _g[m // 2:m] + [0] * (m // 2)
self.butterfly(_g)
for i in range(m):
_g[i] *= g_fft[i]
_g[i] %= self.mod
self.butterfly_inv(_g)
tmp = pow(-m * m, self.mod - 2, self.mod)
for i in range(m):
_g[i] *= tmp
_g[i] %= self.mod
g += _g[:m // 2]
t = fps(self.Func[:m]).diff()
r = h_drv.Func[:m - 1] + [0]
self.butterfly(r)
for i in range(m):
r[i] *= f_fft[i]
r[i] %= self.mod
self.butterfly_inv(r)
tmp = pow(-m, self.mod - 2, self.mod)
for i in range(m):
r[i] *= tmp
r[i] %= self.mod
t = (t + fps(r)).Func
t = [t[-1]] + t
t.pop()
if 2 * m < deg:
if len(t) < 2 * m:
t += [0] * (2 * m - len(t))
elif len(t) > 2 * m:
t = t[:2 * m]
self.butterfly(t)
g_fft = g[:]
if len(g_fft) < 2 * m:
g_fft += [0] * (2 * m - len(g_fft))
elif len(g_fft) > 2 * m:
g_fft = g_fft[:2 * m]
self.butterfly(g_fft)
for i in range(2 * m):
t[i] *= g_fft[i]
t[i] %= self.mod
self.butterfly_inv(t)
tmp = pow(2 * m, self.mod - 2, self.mod)
t = t[:m]
for i in range(m):
t[i] *= tmp
t[i] %= self.mod
else:
g1 = g[m // 2:]
s1 = t[m // 2:]
t = t[:m // 2]
g1 += [0] * (m - len(g1))
s1 += [0] * (m - len(s1))
t += [0] * (m - len(t))
self.butterfly(g1)
self.butterfly(t)
self.butterfly(s1)
for i in range(m):
s1[i] = (g_fft[i] * s1[i] + g1[i] * t[i]) % self.mod
for i in range(m):
t[i] *= g_fft[i]
t[i] %= self.mod
self.butterfly_inv(t)
self.butterfly_inv(s1)
for i in range(m // 2):
t[i + m // 2] += s1[i]
t[i + m // 2] %= self.mod
tmp = pow(m, self.mod - 2, self.mod)
for i in range(m):
t[i] *= tmp
t[i] %= self.mod
v = self.Func[m:min(deg, 2 * m)] + [0] * (2 * m - min(deg, 2 * m))
t = [0] * (m - 1) + t
t = fps(t).integral().Func
for i in range(m):
v[i] -= t[m + i]
v[i] %= self.mod
if len(v) < 2 * m:
v += [0] * (2 * m - len(v))
else:
v = v[:2 * m]
self.butterfly(v)
for i in range(2 * m):
v[i] *= f_fft[i]
v[i] %= self.mod
self.butterfly_inv(v)
v = v[:m]
tmp = pow(2 * m, self.mod - 2, self.mod)
for i in range(m):
v[i] *= tmp
v[i] %= self.mod
for i in range(min(deg - m, m)):
self.Func[m + i] = v[i]
m *= 2
return self
def powfps(self, k, deg=-1):
a = self.Func[:]
n = len(self.Func)
l = 0
while l < len(a) and (not a[l]):
l += 1
if l * k >= n:
return fps([0] * n)
ic = pow(a[l], self.mod - 2, self.mod)
pc = pow(a[l], k, self.mod)
a = fps([a[i] * ic % self.mod for i in range(l, len(a))]).log()
a *= k
a = a.exp()
a *= pc
a = [0] * (l * k) + a.Func[:n - l * k]
return fps(a) |
def build_shopkeeper_dialog(scene, buyer, seller):
class ItemDisplay(gui.BorderedControl):
def __init__(self, item, depreciate=True, **kwargs):
gui.BorderedControl.__init__(self, **kwargs)
self.item = item
self.depreciate = depreciate
self._initComponents()
def _initComponents(self):
fc = (0,0,0)
# Item Image
image = gui.Image(parent=self, surface=self.item.image, width=50, height=50, borderWidth=2)
# Item Name
name = gui.Label(parent=self, text=self.item.name, fontColor=fc)
# Item Count (if greater than 1)
self.count = gui.Label(parent=self, text="Count: %d" % self.item.count if self.item.count > 0 else "", fontColor=fc)
# Item Cost
value = self.item.worth if self.depreciate else self.item.fullValue
cost = gui.Label(parent=self, text="Cost: %d" % value, fontColor=fc)
# position the controls
image.x, image.y = 10, 10
name.x = image.right + 5
name.y = image.y+(image.height-name.height)/2
self.count.x = image.x
self.count.y = image.bottom + 5
cost.x = self.count.x
cost.y = self.count.bottom + 5
self.add(image)
self.add(name)
self.add(self.count)
self.add(cost)
class ShopInterface(gui.Application):
'''Constructs a shop interface based on a passed in actor's inventory.'''
def __init__(self, scene, buyer, seller, **kwargs):
gui.Application.__init__(self, **kwargs)
if 'backgroundColor' not in kwargs: self.backgroundColor = (0,0,0,50)
self.scene = scene
self.buyer = buyer
self.seller = seller
self.itemDisplayShown = None
self.itemDisplayLabel = None
self._initComponents()
def __repr__(self): return 'ShopInterface'
def _initComponents(self):
# title
title = gui.Label(text='Storekeeper Interface for %s' % self.seller.name, parent=self)
title.x = 10
title.y = 10
self.add(title)
# buyer/seller lists container
self.frame = gui.BorderedControl(parent=self)
# buyer's title
buyerTitle = gui.Label(text="%s's Inventory" % self.buyer.name, parent=self.frame)
buyerTitle.x = 10
buyerTitle.y = 10
# buyer's money
self.buyerMoney = gui.Label(text='Money: %s' % self.buyer.money, parent=self.frame)
self.buyerMoney.x = buyerTitle.x
self.buyerMoney.y = buyerTitle.bottom + 10
# build the buyer list
self.buyerList = gui.ListBox(parent=self.frame, width=300, height=300)
self.buyerList.x = self.buyerMoney.x
self.buyerList.y = self.buyerMoney.bottom + 10
# buy/sell buttons
self.buyButton = gui.Button(text="Buy", width=50, height=50)
self.buyButton.callback = self.buyButtonCb
self.sellButton = gui.Button(text="Sell", width=50, height=50)
self.sellButton.callback = self.sellButtonCb
self.buyButton.x = self.buyerList.right + 10
self.buyButton.y = self.buyerList.y + self.buyerList.height / 3
self.sellButton.x = self.buyButton.x
self.sellButton.y = self.buyButton.bottom + 10
# seller's title
sellerTitle = gui.Label(text="%s's Inventory" % self.seller.name, parent=self.frame)
sellerTitle.y = 10
sellerTitle.x = self.buyButton.right + 10
sellerTitle.y = buyerTitle.y
# seller's money
self.sellerMoney = gui.Label(text="Money: %s" % self.seller.money, parent=self.frame)
self.sellerMoney.x = sellerTitle.x
self.sellerMoney.y = sellerTitle.bottom + 10
# build the seller list
self.sellerList = gui.ListBox(parent=self.frame, width=300, height=300)
self.sellerList.x = self.sellerMoney.x
self.sellerList.y = self.sellerMoney.bottom + 10
self.frame.add(buyerTitle)
self.frame.add(self.buyerMoney)
self.frame.add(self.buyerList)
self.frame.add(self.buyButton)
self.frame.add(self.sellButton)
self.frame.add(sellerTitle)
self.frame.add(self.sellerMoney)
self.frame.add(self.sellerList)
self.frame.width = max(self.frame.width, 10+self.buyerList.width+10+self.buyButton.width+10+self.sellerList.width+10)
self.frame.height = max(self.frame.height, buyerTitle.height + self.buyerMoney.height + self.buyerList.height + 40)
self.frame.x = (self.width-self.frame.width)/2
self.frame.y = (self.height-self.frame.height)/2
# done button
doneButton = gui.Button(text="Done", callback=lambda x,y: y.ancestor.exit(), parent=self, width=100, height=50)
doneButton.x = self.frame.right - doneButton.width
doneButton.y = self.frame.bottom + 10
self.add(doneButton)
self.add(self.frame)
self.populateList(self.buyerList, self.buyer, True)
self.populateList(self.sellerList, self.seller, False)
def populateList(self, list, actor, buyer):
for item in actor.inventory.stowed:
if item.count <= 0: continue
id = ItemDisplay(item, buyer)
id.borderRenderer = gui.RoundBorderRenderer(id, borderWidth=2, backgroundColor=(255,255,255))
id.borderRenderer.cornerRadius = 20
id.width = self.frame.width - 20
id.y = 10
id.height = self.frame.y - 20
id.x = (self.width-id.width)/2
id.show = False
self.add(id)
lbl = gui.Label(text=item.name, width=list.width)
ih = self.ItemHover(self, id, lbl, buyer)
lbl.clicked = ih.clicked
list.add(lbl)
def redraw(self):
self.buyerMoney.text = 'Money: %s' % self.buyer.money
self.sellerMoney.text = 'Money: %s' % self.seller.money
self.itemDisplayShown.show = False
self.buyerList.removeAllChildren()
self.populateList(self.buyerList, self.buyer, True)
self.sellerList.removeAllChildren()
self.populateList(self.sellerList, self.seller, False)
def buyButtonCb(self, event, control):
item = self.itemDisplayShown.item
if self.buyer.canBuyItem(item):
ynd = gui.Dialog.createYesNoDialog('Are you sure you want to buy the %s?' % item.name)
ynd.run()
if ynd.result: self.buyer.buyItem(self.seller, item)
else:
gui.Dialog.createOkDialog('You cannot afford to buy the %s.' % item.name).run()
self.redraw()
def sellButtonCb(self, event, control):
item = self.itemDisplayShown.item
if self.seller.canBuyItem(item, False):
ynd = gui.Dialog.createYesNoDialog('Are you sure you want to sell the %s?' % item.name)
ynd.run()
if ynd.result: self.seller.buyItem(self.buyer, item, False)
else:
gui.Dialog.createOkDialog('%s cannot afford to buy the %s.' % (seller.name, item.name)).run()
self.redraw()
class ItemHover:
def __init__(self, app, itemDisplay, label, buyer=True):
self.app = app
self.id = itemDisplay
self.label = label
self.buyer = buyer
self.origBuyClicked = None
self.origSellClicked = None
def clicked(self, event, control):
if self.app.itemDisplayShown:
self.app.itemDisplayShown.show = False
if self.app.itemDisplayLabel:
self.app.itemDisplayLabel.backgroundColor = (0,0,0,0)
self.id.show = True
self.label.backgroundColor = (0,0,0,50)
self.app.itemDisplayShown = self.id
self.app.itemDisplayLabel = self.label
if self.buyer:
self.app.buyButton.enabled = False
self.app.sellButton.enabled = True
else:
self.app.buyButton.enabled = True
self.app.sellButton.enabled = False
def mouseEnter(self, event): self.id.show = True
def mouseLeave(self, event): self.id.show = False
return ShopInterface(scene, buyer, seller)
def speak(otherFuncs, actor, scene):
scene.playDialog(actor, 'I have a few items I can sell...')
otherFuncs.build_shopkeeper_dialog(scene, scene.player, actor).run() | def build_shopkeeper_dialog(scene, buyer, seller):
class Itemdisplay(gui.BorderedControl):
def __init__(self, item, depreciate=True, **kwargs):
gui.BorderedControl.__init__(self, **kwargs)
self.item = item
self.depreciate = depreciate
self._initComponents()
def _init_components(self):
fc = (0, 0, 0)
image = gui.Image(parent=self, surface=self.item.image, width=50, height=50, borderWidth=2)
name = gui.Label(parent=self, text=self.item.name, fontColor=fc)
self.count = gui.Label(parent=self, text='Count: %d' % self.item.count if self.item.count > 0 else '', fontColor=fc)
value = self.item.worth if self.depreciate else self.item.fullValue
cost = gui.Label(parent=self, text='Cost: %d' % value, fontColor=fc)
(image.x, image.y) = (10, 10)
name.x = image.right + 5
name.y = image.y + (image.height - name.height) / 2
self.count.x = image.x
self.count.y = image.bottom + 5
cost.x = self.count.x
cost.y = self.count.bottom + 5
self.add(image)
self.add(name)
self.add(self.count)
self.add(cost)
class Shopinterface(gui.Application):
"""Constructs a shop interface based on a passed in actor's inventory."""
def __init__(self, scene, buyer, seller, **kwargs):
gui.Application.__init__(self, **kwargs)
if 'backgroundColor' not in kwargs:
self.backgroundColor = (0, 0, 0, 50)
self.scene = scene
self.buyer = buyer
self.seller = seller
self.itemDisplayShown = None
self.itemDisplayLabel = None
self._initComponents()
def __repr__(self):
return 'ShopInterface'
def _init_components(self):
title = gui.Label(text='Storekeeper Interface for %s' % self.seller.name, parent=self)
title.x = 10
title.y = 10
self.add(title)
self.frame = gui.BorderedControl(parent=self)
buyer_title = gui.Label(text="%s's Inventory" % self.buyer.name, parent=self.frame)
buyerTitle.x = 10
buyerTitle.y = 10
self.buyerMoney = gui.Label(text='Money: %s' % self.buyer.money, parent=self.frame)
self.buyerMoney.x = buyerTitle.x
self.buyerMoney.y = buyerTitle.bottom + 10
self.buyerList = gui.ListBox(parent=self.frame, width=300, height=300)
self.buyerList.x = self.buyerMoney.x
self.buyerList.y = self.buyerMoney.bottom + 10
self.buyButton = gui.Button(text='Buy', width=50, height=50)
self.buyButton.callback = self.buyButtonCb
self.sellButton = gui.Button(text='Sell', width=50, height=50)
self.sellButton.callback = self.sellButtonCb
self.buyButton.x = self.buyerList.right + 10
self.buyButton.y = self.buyerList.y + self.buyerList.height / 3
self.sellButton.x = self.buyButton.x
self.sellButton.y = self.buyButton.bottom + 10
seller_title = gui.Label(text="%s's Inventory" % self.seller.name, parent=self.frame)
sellerTitle.y = 10
sellerTitle.x = self.buyButton.right + 10
sellerTitle.y = buyerTitle.y
self.sellerMoney = gui.Label(text='Money: %s' % self.seller.money, parent=self.frame)
self.sellerMoney.x = sellerTitle.x
self.sellerMoney.y = sellerTitle.bottom + 10
self.sellerList = gui.ListBox(parent=self.frame, width=300, height=300)
self.sellerList.x = self.sellerMoney.x
self.sellerList.y = self.sellerMoney.bottom + 10
self.frame.add(buyerTitle)
self.frame.add(self.buyerMoney)
self.frame.add(self.buyerList)
self.frame.add(self.buyButton)
self.frame.add(self.sellButton)
self.frame.add(sellerTitle)
self.frame.add(self.sellerMoney)
self.frame.add(self.sellerList)
self.frame.width = max(self.frame.width, 10 + self.buyerList.width + 10 + self.buyButton.width + 10 + self.sellerList.width + 10)
self.frame.height = max(self.frame.height, buyerTitle.height + self.buyerMoney.height + self.buyerList.height + 40)
self.frame.x = (self.width - self.frame.width) / 2
self.frame.y = (self.height - self.frame.height) / 2
done_button = gui.Button(text='Done', callback=lambda x, y: y.ancestor.exit(), parent=self, width=100, height=50)
doneButton.x = self.frame.right - doneButton.width
doneButton.y = self.frame.bottom + 10
self.add(doneButton)
self.add(self.frame)
self.populateList(self.buyerList, self.buyer, True)
self.populateList(self.sellerList, self.seller, False)
def populate_list(self, list, actor, buyer):
for item in actor.inventory.stowed:
if item.count <= 0:
continue
id = item_display(item, buyer)
id.borderRenderer = gui.RoundBorderRenderer(id, borderWidth=2, backgroundColor=(255, 255, 255))
id.borderRenderer.cornerRadius = 20
id.width = self.frame.width - 20
id.y = 10
id.height = self.frame.y - 20
id.x = (self.width - id.width) / 2
id.show = False
self.add(id)
lbl = gui.Label(text=item.name, width=list.width)
ih = self.ItemHover(self, id, lbl, buyer)
lbl.clicked = ih.clicked
list.add(lbl)
def redraw(self):
self.buyerMoney.text = 'Money: %s' % self.buyer.money
self.sellerMoney.text = 'Money: %s' % self.seller.money
self.itemDisplayShown.show = False
self.buyerList.removeAllChildren()
self.populateList(self.buyerList, self.buyer, True)
self.sellerList.removeAllChildren()
self.populateList(self.sellerList, self.seller, False)
def buy_button_cb(self, event, control):
item = self.itemDisplayShown.item
if self.buyer.canBuyItem(item):
ynd = gui.Dialog.createYesNoDialog('Are you sure you want to buy the %s?' % item.name)
ynd.run()
if ynd.result:
self.buyer.buyItem(self.seller, item)
else:
gui.Dialog.createOkDialog('You cannot afford to buy the %s.' % item.name).run()
self.redraw()
def sell_button_cb(self, event, control):
item = self.itemDisplayShown.item
if self.seller.canBuyItem(item, False):
ynd = gui.Dialog.createYesNoDialog('Are you sure you want to sell the %s?' % item.name)
ynd.run()
if ynd.result:
self.seller.buyItem(self.buyer, item, False)
else:
gui.Dialog.createOkDialog('%s cannot afford to buy the %s.' % (seller.name, item.name)).run()
self.redraw()
class Itemhover:
def __init__(self, app, itemDisplay, label, buyer=True):
self.app = app
self.id = itemDisplay
self.label = label
self.buyer = buyer
self.origBuyClicked = None
self.origSellClicked = None
def clicked(self, event, control):
if self.app.itemDisplayShown:
self.app.itemDisplayShown.show = False
if self.app.itemDisplayLabel:
self.app.itemDisplayLabel.backgroundColor = (0, 0, 0, 0)
self.id.show = True
self.label.backgroundColor = (0, 0, 0, 50)
self.app.itemDisplayShown = self.id
self.app.itemDisplayLabel = self.label
if self.buyer:
self.app.buyButton.enabled = False
self.app.sellButton.enabled = True
else:
self.app.buyButton.enabled = True
self.app.sellButton.enabled = False
def mouse_enter(self, event):
self.id.show = True
def mouse_leave(self, event):
self.id.show = False
return shop_interface(scene, buyer, seller)
def speak(otherFuncs, actor, scene):
scene.playDialog(actor, 'I have a few items I can sell...')
otherFuncs.build_shopkeeper_dialog(scene, scene.player, actor).run() |
input_file = 'input.txt'
def process_input():
with open(input_file) as f:
content = f.readlines()
# stripping whitespace
stripped = [x.strip() for x in content]
return stripped
def build_rules(raw):
# converts the line-by-line representation
# into a dictionary, keyed by the bag (e.g. "mirrored black")
# with each value being an array of tuples, (bag name, freq)
# where each tuple corresponds with one type of bag it contains,
# and has the bag name + the frequency
# O(n * m), where n is the num of lines, and m is the avg number of bags
# each bag contains
rules = {}
for line in raw:
# first, splits into current bag and the bags it contains
spl = line.split(" bags contain")
current = spl[0]
buffer = []
if "no other bags" not in spl[1]:
# now, split on the bags it contains
inner = spl[1].split(",")
for bag_str in inner:
# a little ugly, but create the tuple described above
bag = bag_str.split()
buffer.append(("{} {}".format(bag[1], bag[2]), int(bag[0])))
rules[current] = buffer
return rules
# # for posterity - my failed attempt at a recursive search
# def recur_search(rules, search, current):
# if len(rules[current]) == 0:
# return 0
# elif current == search:
# return 1
# else:
# ans = 0
# for bag in rules[current]:
# ans += recur_search(rules, search, bag[0])
# return ans
def part_one(rules, search):
# not my favourite approach here, but basically a mark-and-sweep style
# in each iteration of the while loop,
# loop through each type of bag
# if we haven't confirmed it contains our bag,
# check all of its bags, and see if we know any of them;
# if so, add it to our set of bags that contain search
# repeat until one iteration adds no new bags to our known set
# time complexity: pretty bad, but ~ O(n * t)
# where n is number of bags, and t is the tree-depth of the
# bag inheritance tree (approximates number of times while loop runs)
ans = 0
contained = set([search])
diff = 1
while diff > 0:
diff = 0
for bag in rules.keys():
if bag not in contained:
for inner in rules[bag]:
if inner[0] in contained:
contained.add(bag)
diff += 1
break
# sub 1 because the bag itself doesn't count
return len(contained) - 1
def count_nested_bags(rules, current):
# simple recursive function that counts how many bags are contained
# within one 'current' bag, including itself
# one iteration has O(m) complexity with m average bags per bag
# in total, expect to call it O(n * m * t) times, with n bags,
# m avg bags, and t average tree-depth of bag tree
if len(rules[current]) == 0:
return 1
else:
# note the add 1 - we count ourselves
return sum(map(lambda x: x[1] * count_nested_bags(rules, x[0]), rules[current])) + 1
def part_two(rules, search):
# see above; subtract one since we don't count our original bag
return count_nested_bags(rules, search) - 1
def main():
raw = process_input()
rules = build_rules(raw)
p1 = part_one(rules, "shiny gold")
print("P1: the total number of outer bags is {}".format(p1))
p2 = part_two(rules, "shiny gold")
print("P2: the total number of inner bags {}".format(p2))
if __name__ == "__main__":
main()
| input_file = 'input.txt'
def process_input():
with open(input_file) as f:
content = f.readlines()
stripped = [x.strip() for x in content]
return stripped
def build_rules(raw):
rules = {}
for line in raw:
spl = line.split(' bags contain')
current = spl[0]
buffer = []
if 'no other bags' not in spl[1]:
inner = spl[1].split(',')
for bag_str in inner:
bag = bag_str.split()
buffer.append(('{} {}'.format(bag[1], bag[2]), int(bag[0])))
rules[current] = buffer
return rules
def part_one(rules, search):
ans = 0
contained = set([search])
diff = 1
while diff > 0:
diff = 0
for bag in rules.keys():
if bag not in contained:
for inner in rules[bag]:
if inner[0] in contained:
contained.add(bag)
diff += 1
break
return len(contained) - 1
def count_nested_bags(rules, current):
if len(rules[current]) == 0:
return 1
else:
return sum(map(lambda x: x[1] * count_nested_bags(rules, x[0]), rules[current])) + 1
def part_two(rules, search):
return count_nested_bags(rules, search) - 1
def main():
raw = process_input()
rules = build_rules(raw)
p1 = part_one(rules, 'shiny gold')
print('P1: the total number of outer bags is {}'.format(p1))
p2 = part_two(rules, 'shiny gold')
print('P2: the total number of inner bags {}'.format(p2))
if __name__ == '__main__':
main() |
# Enter your code here. Read input from STDIN. Print output to STDOUT
n_input = input()
int_input = input().split()
print(all([int(i) > 0 for i in int_input]) and any([j == j[::-1] for j in int_input]))
| n_input = input()
int_input = input().split()
print(all([int(i) > 0 for i in int_input]) and any([j == j[::-1] for j in int_input])) |
# Class Method
class sample:
x = 10
@classmethod
def modify(cls):
cls.x += 1
s1 = Sample()
s2 = Sample()
print(s1.x, s2.x)
s1.modify()
print(s1.x, s2.x)
s1.x += 1
print(s1.x, s2.x)
| class Sample:
x = 10
@classmethod
def modify(cls):
cls.x += 1
s1 = sample()
s2 = sample()
print(s1.x, s2.x)
s1.modify()
print(s1.x, s2.x)
s1.x += 1
print(s1.x, s2.x) |
# Settings for finals
# Foreign language classes for finals logic
FOREIGN_LANGUAGES = {
'ARABIC': ['100A', '100B', '1A', '1B', '20A', '20B'],
'ARMENI': ['101A', '101B', '1A', '1B'],
'BANGLA': ['101A', '101B', '1A', '1B'],
'BERMESE': ['1A', '1B'],
'BOSCRSR': ['117A', '117B', '27A', '27B'],
'BULGARI': ['118A', '118B', '28A', '28B'],
'CATALAN': ['101', '102'],
'CELTIC': ['16', '85', '86', '144A', '144B', '145A', '145B', '146A', '146B'],
'CHINESE': ['1A', '1B', '1X', '1Y', '10A', '10B', '10X', '10Y', '100A', '100B', '100XA', '100XB'],
'CUNEIF': ['100A', '100B', '102A', '102B', '200A', '200B'],
'CZECH': ['116A', '116B', '26A', '26B'],
'DANISH': ['1A', '1B'],
'DUTCH': ['1', '2', '110'],
'EGYPT': ['100A', '100B', '101A', '101B'],
'FILIPN': ['100A', '100B', '101A', '101B', '1A', '1B'],
'FINNISH': ['102A', '102B', '1A', '1B'],
'FRENCH': ['1', '2', '3', '4', '14'],
'GERMAN': ['1', '2', '3', '4', '101', '102', '102A', '102D', '110', '2', '3', '4'],
'GREEK': ['1', '2', '10'],
'HEBREW': ['100A', '100B', '106A', '106B', '1A', '1B', '20A', '20B'],
'HIN-URD': ['1A', '1B', '2A', '2B', '100A', '100B', '103A', '103B', '104A', '104B'],
'HUNGARI': ['1A', '1B'],
'ICELAND': ['1A', '1B'],
'ITALIAN': ['1', '1S', '2', '3', '4', '12'],
'JAPAN': ['100A', '100B', '100X', '10A', '10B', '10X', '1A', '1B'],
'JEWISH': ['101'],
'KHMER': ['100A', '100B', '101A', '101B', '1A', '1B'],
'KOREAN': ['1A', '1AX', '1B', '1BX', '10A', '10AX', '10B', '100A', '10BX', '100AX', '100B', '100BX'],
'LATIN': ['1', '2'],
'MALAY/I': ['100A', '100B', '1A', '1B'],
'MONGOLN': ['1A', '1B'],
'NORWEGN': ['1A', '1B'],
'PERSIAN': ['100A', '100B', '1A', '1B', '20A', '20B'],
'POLISH': ['115A', '155B', '25A', '25B'],
'PORTUG': ['101A', '102', '11', '12', '26', '8'],
'PUNJABI': ['100A', '100B', '1A', '1B'],
'ROMANI': ['102A', '102B', '1A', '1B'],
'RUSSIAN': ['1', '103A', '103B', '2', '3', '4', '6A', '6B'],
'SANSKR': ['100A', '100B', '101A', '101B', '101C'],
'SCANDIN': ['101A', '101B'],
'SEMETIC': ['100A', '100B', '205A', '205B'],
'SPANISH': ['1', '12', '2', '21', '22', '26', '3', '4', '8'],
'SWEDISH': ['1A', '1B'],
'TAMIL': ['101A', '101B', '1A', '1B'],
'TELUGU': ['1A', '1B'],
'THAI': ['100A', '100B', '101A', '101B', '1A', '1B'],
'TIBETAN': ['10A', '10B', '1A', '1B'],
'TURKISH': ['100A', '100B', '10A', '1A', '1B'],
'VIETNMS': ['100A', '100B', '101A', '101B', '1A', '1B'],
'YIDDISH': ['101'],
}
# Standard final times for every semester
FINAL_TIMES = {
"Monday8-11AM": (1, "08:00:00", "11:00:00"),
"Monday11:30-2:30PM": (1, "11:30:00", "14:30:00"),
"Monday3-6PM": (1, "15:00:00", "18:00:00"),
"Monday7-10PM": (1, "19:00:00", "22:00:00"),
"Tuesday8-11AM": (2, "08:00:00", "11:00:00"),
"Tuesday11:30-2:30PM": (2, "11:30:00", "14:30:00"),
"Tuesday3-6PM": (2, "15:00:00", "18:00:00"),
"Tuesday7-10PM": (2, "19:00:00", "22:00:00"),
"Wednesday8-11AM": (3, "08:00:00", "11:00:00"),
"Wednesday11:30-2:30PM": (3, "11:30:00", "14:30:00"),
"Wednesday3-6PM": (3, "15:00:00", "18:00:00"),
"Wednesday7-10PM": (3, "19:00:00", "22:00:00"),
"Thursday8-11AM": (4, "08:00:00", "11:00:00"),
"Thursday11:30-2:30PM": (4, "11:30:00", "14:30:00"),
"Thursday3-6PM": (4, "15:00:00", "18:00:00"),
"Thursday7-10PM": (4, "19:00:00", "22:00:00"),
"Friday8-11AM": (5, "08:00:00", "11:00:00"),
"Friday11:30-2:30PM": (5, "11:30:00", "14:30:00"),
"Friday3-6PM": (5, "15:00:00", "18:00:00"),
"Friday7-10PM": (5, "19:00:00", "22:00:00"),
}
| foreign_languages = {'ARABIC': ['100A', '100B', '1A', '1B', '20A', '20B'], 'ARMENI': ['101A', '101B', '1A', '1B'], 'BANGLA': ['101A', '101B', '1A', '1B'], 'BERMESE': ['1A', '1B'], 'BOSCRSR': ['117A', '117B', '27A', '27B'], 'BULGARI': ['118A', '118B', '28A', '28B'], 'CATALAN': ['101', '102'], 'CELTIC': ['16', '85', '86', '144A', '144B', '145A', '145B', '146A', '146B'], 'CHINESE': ['1A', '1B', '1X', '1Y', '10A', '10B', '10X', '10Y', '100A', '100B', '100XA', '100XB'], 'CUNEIF': ['100A', '100B', '102A', '102B', '200A', '200B'], 'CZECH': ['116A', '116B', '26A', '26B'], 'DANISH': ['1A', '1B'], 'DUTCH': ['1', '2', '110'], 'EGYPT': ['100A', '100B', '101A', '101B'], 'FILIPN': ['100A', '100B', '101A', '101B', '1A', '1B'], 'FINNISH': ['102A', '102B', '1A', '1B'], 'FRENCH': ['1', '2', '3', '4', '14'], 'GERMAN': ['1', '2', '3', '4', '101', '102', '102A', '102D', '110', '2', '3', '4'], 'GREEK': ['1', '2', '10'], 'HEBREW': ['100A', '100B', '106A', '106B', '1A', '1B', '20A', '20B'], 'HIN-URD': ['1A', '1B', '2A', '2B', '100A', '100B', '103A', '103B', '104A', '104B'], 'HUNGARI': ['1A', '1B'], 'ICELAND': ['1A', '1B'], 'ITALIAN': ['1', '1S', '2', '3', '4', '12'], 'JAPAN': ['100A', '100B', '100X', '10A', '10B', '10X', '1A', '1B'], 'JEWISH': ['101'], 'KHMER': ['100A', '100B', '101A', '101B', '1A', '1B'], 'KOREAN': ['1A', '1AX', '1B', '1BX', '10A', '10AX', '10B', '100A', '10BX', '100AX', '100B', '100BX'], 'LATIN': ['1', '2'], 'MALAY/I': ['100A', '100B', '1A', '1B'], 'MONGOLN': ['1A', '1B'], 'NORWEGN': ['1A', '1B'], 'PERSIAN': ['100A', '100B', '1A', '1B', '20A', '20B'], 'POLISH': ['115A', '155B', '25A', '25B'], 'PORTUG': ['101A', '102', '11', '12', '26', '8'], 'PUNJABI': ['100A', '100B', '1A', '1B'], 'ROMANI': ['102A', '102B', '1A', '1B'], 'RUSSIAN': ['1', '103A', '103B', '2', '3', '4', '6A', '6B'], 'SANSKR': ['100A', '100B', '101A', '101B', '101C'], 'SCANDIN': ['101A', '101B'], 'SEMETIC': ['100A', '100B', '205A', '205B'], 'SPANISH': ['1', '12', '2', '21', '22', '26', '3', '4', '8'], 'SWEDISH': ['1A', '1B'], 'TAMIL': ['101A', '101B', '1A', '1B'], 'TELUGU': ['1A', '1B'], 'THAI': ['100A', '100B', '101A', '101B', '1A', '1B'], 'TIBETAN': ['10A', '10B', '1A', '1B'], 'TURKISH': ['100A', '100B', '10A', '1A', '1B'], 'VIETNMS': ['100A', '100B', '101A', '101B', '1A', '1B'], 'YIDDISH': ['101']}
final_times = {'Monday8-11AM': (1, '08:00:00', '11:00:00'), 'Monday11:30-2:30PM': (1, '11:30:00', '14:30:00'), 'Monday3-6PM': (1, '15:00:00', '18:00:00'), 'Monday7-10PM': (1, '19:00:00', '22:00:00'), 'Tuesday8-11AM': (2, '08:00:00', '11:00:00'), 'Tuesday11:30-2:30PM': (2, '11:30:00', '14:30:00'), 'Tuesday3-6PM': (2, '15:00:00', '18:00:00'), 'Tuesday7-10PM': (2, '19:00:00', '22:00:00'), 'Wednesday8-11AM': (3, '08:00:00', '11:00:00'), 'Wednesday11:30-2:30PM': (3, '11:30:00', '14:30:00'), 'Wednesday3-6PM': (3, '15:00:00', '18:00:00'), 'Wednesday7-10PM': (3, '19:00:00', '22:00:00'), 'Thursday8-11AM': (4, '08:00:00', '11:00:00'), 'Thursday11:30-2:30PM': (4, '11:30:00', '14:30:00'), 'Thursday3-6PM': (4, '15:00:00', '18:00:00'), 'Thursday7-10PM': (4, '19:00:00', '22:00:00'), 'Friday8-11AM': (5, '08:00:00', '11:00:00'), 'Friday11:30-2:30PM': (5, '11:30:00', '14:30:00'), 'Friday3-6PM': (5, '15:00:00', '18:00:00'), 'Friday7-10PM': (5, '19:00:00', '22:00:00')} |
#%%
file = open("../dataset/novel.txt")
# %%
characters = []
file2 = open("../dataset/character.txt")
for line in file2:
if line != '\n':
line = line.strip('\n')
characters.append(line)
# %%
relationship = [[0 for column in range(len(characters))] for row in range(len(characters))]
lines = file.readlines()
for line in lines:
if line != '\n':
links = []
for index in range(len(characters)):
if characters[index] in line:
links.append(index)
for row in range(len(links)):
for column in range(row + 1, len(links)):
relationship[links[row]][links[column]] += 1
# %%
charactersDegree=[0]*len(characters)
for row in range(len(characters)):
for column in range(row + 1, len(characters)):
if relationship[row][column] != 0:
charactersDegree[row] += 1
charactersDegree[column] += 1
# print(charactersDegree)
# %%
degree_dict = {i:charactersDegree.count(i) for i in charactersDegree}
degree_dict = {k: v for k, v in sorted(degree_dict.items(), key=lambda item: item[1])}
print(degree_dict)
#%%
# %%
labelStr = ""
valueStr = ""
for key, value in degree_dict.items():
labelStr = labelStr + "\"" + str(key) + "\","
valueStr = valueStr + str(value) + ","
print(labelStr)
print(valueStr)
# %%
| file = open('../dataset/novel.txt')
characters = []
file2 = open('../dataset/character.txt')
for line in file2:
if line != '\n':
line = line.strip('\n')
characters.append(line)
relationship = [[0 for column in range(len(characters))] for row in range(len(characters))]
lines = file.readlines()
for line in lines:
if line != '\n':
links = []
for index in range(len(characters)):
if characters[index] in line:
links.append(index)
for row in range(len(links)):
for column in range(row + 1, len(links)):
relationship[links[row]][links[column]] += 1
characters_degree = [0] * len(characters)
for row in range(len(characters)):
for column in range(row + 1, len(characters)):
if relationship[row][column] != 0:
charactersDegree[row] += 1
charactersDegree[column] += 1
degree_dict = {i: charactersDegree.count(i) for i in charactersDegree}
degree_dict = {k: v for (k, v) in sorted(degree_dict.items(), key=lambda item: item[1])}
print(degree_dict)
label_str = ''
value_str = ''
for (key, value) in degree_dict.items():
label_str = labelStr + '"' + str(key) + '",'
value_str = valueStr + str(value) + ','
print(labelStr)
print(valueStr) |
with open("sample.txt",'r+') as f:
for line in f:
for letter in line:
print(letter)
| with open('sample.txt', 'r+') as f:
for line in f:
for letter in line:
print(letter) |
class Solution:
def numUniqueEmails(self, emails):
_dict = {}
for email in emails:
at_idx = email.index('@')
if email[:at_idx].count('+') == 0:
if email[:at_idx].count('.') == 0:
new_mail_address = email
else:
new_mail_address = email[:at_idx].replace('.', '') + email[at_idx:]
else:
if email[:at_idx].count('.') == 0:
new_mail_address = email[:email.index('+')] + email[at_idx:]
else:
new_mail_address = email[:email.index('+')].replace('.', '') + email[at_idx:]
if new_mail_address not in _dict.keys():
_dict[new_mail_address] = 1
return len(_dict.keys())
class Solution2:
def numUniqueEmails(self, emails):
_dict = {}
for email in emails:
tmp = email.split('@')
local_name = tmp[0].split('+')[0].replace('.', '')
if local_name + '@' + tmp[1] not in _dict.keys():
_dict[local_name+'@'+tmp[1]] = 1
return len(_dict.keys())
| class Solution:
def num_unique_emails(self, emails):
_dict = {}
for email in emails:
at_idx = email.index('@')
if email[:at_idx].count('+') == 0:
if email[:at_idx].count('.') == 0:
new_mail_address = email
else:
new_mail_address = email[:at_idx].replace('.', '') + email[at_idx:]
elif email[:at_idx].count('.') == 0:
new_mail_address = email[:email.index('+')] + email[at_idx:]
else:
new_mail_address = email[:email.index('+')].replace('.', '') + email[at_idx:]
if new_mail_address not in _dict.keys():
_dict[new_mail_address] = 1
return len(_dict.keys())
class Solution2:
def num_unique_emails(self, emails):
_dict = {}
for email in emails:
tmp = email.split('@')
local_name = tmp[0].split('+')[0].replace('.', '')
if local_name + '@' + tmp[1] not in _dict.keys():
_dict[local_name + '@' + tmp[1]] = 1
return len(_dict.keys()) |
search_fruit = 'apple'
fruit_box = ['banana', 'mango', 'apple', 'pineapple']
for fruit in fruit_box:
if fruit == search_fruit:
print('Found fruit : {}'.format(search_fruit))
break
else:
print('{} fruit not found'.format(search_fruit))
| search_fruit = 'apple'
fruit_box = ['banana', 'mango', 'apple', 'pineapple']
for fruit in fruit_box:
if fruit == search_fruit:
print('Found fruit : {}'.format(search_fruit))
break
else:
print('{} fruit not found'.format(search_fruit)) |
apps = ["admin", "AjaxSpreadsheet", "AppointmentManager", "ArXivInterface", "BingApi", "BitcoinExample", "CarSales", "CeleryIntegrationExample", "CookbookExample", "CssDesigner", "CustomerRelationshipManagement", "DnaAnalysisNeedlemanWunsh", "eCardsOnMap", "EmailContactForm", "EStoreExample", "FacebookClone", "FacebookConnectExample", "FacebookExample", "FileManager", "FileTreeBrowser", "FindRideSharing", "GeolocateByIp", "HotelManagementExample", "ImageGallery", "IssueTracker", "KPax2", "LabSoftwareManagement", "LearningObjectives", "LibraryServices", "LostAndFoundItalian", "ManageContacts", "MazeGenerator", "MedicalSocialNetwork", "MetraTrainSchedule", "MinimalistWiki", "MovieReviews", "OnlineFormsToPdf", "OnlineMagazine", "OpenOpine", "PhysicsSimulator2D", "PosOnlineStore", "PoweredBy", "ProcessingJsExample", "ProjectManager", "PyForum2", "QuizBuilder", "RadioScheduleLogs", "RedditClone", "RemoteWebsiteMonitor", "RestaurantsListing", "RsvpService", "SemaCodeGenerator", "SemanticWebExample", "ServerStats", "SkeletonLayout", "SnakeGameInProcessing", "SqlDesigner", "SudokuGame", "SuperComputing2010", "SurveyAppFlourish", "SysadminInterface", "TrainCountingGame", "UploadAndShareFiles", "VideoLibrary", "Web2pyPackagingApp"]
def index():
return dict(apps=apps)
| apps = ['admin', 'AjaxSpreadsheet', 'AppointmentManager', 'ArXivInterface', 'BingApi', 'BitcoinExample', 'CarSales', 'CeleryIntegrationExample', 'CookbookExample', 'CssDesigner', 'CustomerRelationshipManagement', 'DnaAnalysisNeedlemanWunsh', 'eCardsOnMap', 'EmailContactForm', 'EStoreExample', 'FacebookClone', 'FacebookConnectExample', 'FacebookExample', 'FileManager', 'FileTreeBrowser', 'FindRideSharing', 'GeolocateByIp', 'HotelManagementExample', 'ImageGallery', 'IssueTracker', 'KPax2', 'LabSoftwareManagement', 'LearningObjectives', 'LibraryServices', 'LostAndFoundItalian', 'ManageContacts', 'MazeGenerator', 'MedicalSocialNetwork', 'MetraTrainSchedule', 'MinimalistWiki', 'MovieReviews', 'OnlineFormsToPdf', 'OnlineMagazine', 'OpenOpine', 'PhysicsSimulator2D', 'PosOnlineStore', 'PoweredBy', 'ProcessingJsExample', 'ProjectManager', 'PyForum2', 'QuizBuilder', 'RadioScheduleLogs', 'RedditClone', 'RemoteWebsiteMonitor', 'RestaurantsListing', 'RsvpService', 'SemaCodeGenerator', 'SemanticWebExample', 'ServerStats', 'SkeletonLayout', 'SnakeGameInProcessing', 'SqlDesigner', 'SudokuGame', 'SuperComputing2010', 'SurveyAppFlourish', 'SysadminInterface', 'TrainCountingGame', 'UploadAndShareFiles', 'VideoLibrary', 'Web2pyPackagingApp']
def index():
return dict(apps=apps) |
# Approach 1
class Solution:
def maxProfit(self, prices: List[int]) -> int:
i = 0
maxprofit = 0
v = prices[0]
p = prices[0]
while i < len(prices) - 1:
while i < len(prices) - 1 and prices[i] > prices[i + 1]:
i += 1
v = prices[i]
i += 1
while i < len(prices) - 1 and prices[i] < prices[i + 1]:
i += 1
if i < len(prices):
p = prices[i]
i += 1
maxprofit += p - v
return maxprofit
# Approach 2
class Solution:
def maxProfit(self, prices: List[int]) -> int:
maxprofit = 0
for i in range(1, len(prices)):
if prices[i] > prices[i - 1]:
maxprofit += prices[i] - prices[i - 1]
return maxprofit | class Solution:
def max_profit(self, prices: List[int]) -> int:
i = 0
maxprofit = 0
v = prices[0]
p = prices[0]
while i < len(prices) - 1:
while i < len(prices) - 1 and prices[i] > prices[i + 1]:
i += 1
v = prices[i]
i += 1
while i < len(prices) - 1 and prices[i] < prices[i + 1]:
i += 1
if i < len(prices):
p = prices[i]
i += 1
maxprofit += p - v
return maxprofit
class Solution:
def max_profit(self, prices: List[int]) -> int:
maxprofit = 0
for i in range(1, len(prices)):
if prices[i] > prices[i - 1]:
maxprofit += prices[i] - prices[i - 1]
return maxprofit |
class Parameters:
course_number_per_program = {"min":3,"max":6}
remote_learning_start_year = 2018
professor_number = 3000
student_enrollment_year = {"start":2015,"end":2016}
student_number = 20000
before_remote_learning_drop_off = {"rate":10,"remote":20}
after_remote_learning_drop_off = {"rate":30,"remote":50}
# Set the number yourself
student_dob_year = 1980
professor_dob_year = 1960
professor_start_working_year = 1990
def setCourseNumberPerProgram(self, min, max):
self.course_number_per_program["min"] = int(min)
self.course_number_per_program["max"] = int(max)
def setRemoteLearningStartYear(self, year):
self.remote_learning_start_year = int(year)
def setProfessorNumber(self, number):
self.professor_number = int(number)
def setStudentEnrollmentYear(self, start, end):
self.student_enrollment_year["start"] = int(start)
self.student_enrollment_year["end"] = int(end)
def setStudentNumber(self, number):
self.student_number = int(number)
def setBeforeRemoteLearningDropOffAndReasonRate(self,drop_off_rate, remote_reason_rate):
self.before_remote_learning_drop_off["rate"] = int(drop_off_rate)
self.before_remote_learning_drop_off["remote"] = int(remote_reason_rate)
def setAfterRemoteLearningDropOffAndReasonRate(self,drop_off_rate, remote_reason_rate):
self.after_remote_learning_drop_off["rate"] = int(drop_off_rate)
self.after_remote_learning_drop_off["remote"] = int(remote_reason_rate)
| class Parameters:
course_number_per_program = {'min': 3, 'max': 6}
remote_learning_start_year = 2018
professor_number = 3000
student_enrollment_year = {'start': 2015, 'end': 2016}
student_number = 20000
before_remote_learning_drop_off = {'rate': 10, 'remote': 20}
after_remote_learning_drop_off = {'rate': 30, 'remote': 50}
student_dob_year = 1980
professor_dob_year = 1960
professor_start_working_year = 1990
def set_course_number_per_program(self, min, max):
self.course_number_per_program['min'] = int(min)
self.course_number_per_program['max'] = int(max)
def set_remote_learning_start_year(self, year):
self.remote_learning_start_year = int(year)
def set_professor_number(self, number):
self.professor_number = int(number)
def set_student_enrollment_year(self, start, end):
self.student_enrollment_year['start'] = int(start)
self.student_enrollment_year['end'] = int(end)
def set_student_number(self, number):
self.student_number = int(number)
def set_before_remote_learning_drop_off_and_reason_rate(self, drop_off_rate, remote_reason_rate):
self.before_remote_learning_drop_off['rate'] = int(drop_off_rate)
self.before_remote_learning_drop_off['remote'] = int(remote_reason_rate)
def set_after_remote_learning_drop_off_and_reason_rate(self, drop_off_rate, remote_reason_rate):
self.after_remote_learning_drop_off['rate'] = int(drop_off_rate)
self.after_remote_learning_drop_off['remote'] = int(remote_reason_rate) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.