content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
class BinaryTree(LogicalBase): def _get(self, node, key): while node is not None: if key < node.key: node = self._follow(node.left_ref) elif node.key < key: node = self._follow(node.right_ref) else: return self._follow(node.value_ref) raise KeyError def _insert(self, node, key, value_ref): if node is None: new_node = BinaryNode( self.node_ref_class(), key, value_ref, self.node_ref_class(), 1) elif key < node.key: new_node = BinaryNode.from_node( node, left_ref=self._insert( self._follow(node.left_ref), key, value_ref)) elif node.key < key: new_node = BinaryNode.from_node( node, right_ref=self._insert( self._follow(node.right_ref), key, value_ref)) else: new_node = BinaryNode.from_node(node, value_ref=value_ref) return self.node_ref_class(referent=new_node) class BinaryNode(object): def store_refs(self, storage): self.value_ref.store(storage) self.left_ref.store(storage) self.right_ref.store(storage) class BinaryNodeRef(ValueRef): def referent_to_string(referent): return pickle.dumps({ 'left': referent.left_ref.address, 'key': referent.key, 'value': referent.value_ref.address, 'right': referent.right_ref.address, 'length': referent.length, })
class Binarytree(LogicalBase): def _get(self, node, key): while node is not None: if key < node.key: node = self._follow(node.left_ref) elif node.key < key: node = self._follow(node.right_ref) else: return self._follow(node.value_ref) raise KeyError def _insert(self, node, key, value_ref): if node is None: new_node = binary_node(self.node_ref_class(), key, value_ref, self.node_ref_class(), 1) elif key < node.key: new_node = BinaryNode.from_node(node, left_ref=self._insert(self._follow(node.left_ref), key, value_ref)) elif node.key < key: new_node = BinaryNode.from_node(node, right_ref=self._insert(self._follow(node.right_ref), key, value_ref)) else: new_node = BinaryNode.from_node(node, value_ref=value_ref) return self.node_ref_class(referent=new_node) class Binarynode(object): def store_refs(self, storage): self.value_ref.store(storage) self.left_ref.store(storage) self.right_ref.store(storage) class Binarynoderef(ValueRef): def referent_to_string(referent): return pickle.dumps({'left': referent.left_ref.address, 'key': referent.key, 'value': referent.value_ref.address, 'right': referent.right_ref.address, 'length': referent.length})
class BagOfHolding: '''Generic holder class; allows for .<anything> attribute usage ''' pass class FreqPair: '''Container for an arbitrary object and an observed frequency count ''' item = None freq = 0 def __init__(self, item, freq=0): self.item = item self.freq = freq def increment(self): '''Increment frequency counter''' self.freq += 1
class Bagofholding: """Generic holder class; allows for .<anything> attribute usage """ pass class Freqpair: """Container for an arbitrary object and an observed frequency count """ item = None freq = 0 def __init__(self, item, freq=0): self.item = item self.freq = freq def increment(self): """Increment frequency counter""" self.freq += 1
def fav_city(name): print(f"One of my favorite cities is {name}.") fav_city("Santa Barbara, California!") fav_city("Madrid, Spain") fav_city("Moscow, Russia") # Library: A grouping of variables and functions that someone else has written and verified for day to day usage. # Tiobe-index is a great tracker to see which languages are on rise. June 2019: C was at the top of charts.
def fav_city(name): print(f'One of my favorite cities is {name}.') fav_city('Santa Barbara, California!') fav_city('Madrid, Spain') fav_city('Moscow, Russia')
#encoding:utf-8 subreddit = 'climbing' t_channel = '@r_climbing' def send_post(submission, r2t): return r2t.send_simple(submission)
subreddit = 'climbing' t_channel = '@r_climbing' def send_post(submission, r2t): return r2t.send_simple(submission)
# # PySNMP MIB module CISCO-GSLB-TC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-GSLB-TC-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:59:23 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") NotificationType, Integer32, Bits, ModuleIdentity, ObjectIdentity, Counter32, Counter64, TimeTicks, iso, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, IpAddress, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "Integer32", "Bits", "ModuleIdentity", "ObjectIdentity", "Counter32", "Counter64", "TimeTicks", "iso", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "IpAddress", "MibIdentifier") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") ciscoGslbTcMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 583)) ciscoGslbTcMIB.setRevisions(('2007-02-23 00:00', '2006-09-26 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoGslbTcMIB.setRevisionsDescriptions(("Added enumeration 'scriptedKal' to CiscoGslbKeepaliveMethod. Added enumeration 'init' to CiscoGslbAnswerStatus.", 'Initial version of this MIB module',)) if mibBuilder.loadTexts: ciscoGslbTcMIB.setLastUpdated('200702230000Z') if mibBuilder.loadTexts: ciscoGslbTcMIB.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoGslbTcMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-slb@cisco.com') if mibBuilder.loadTexts: ciscoGslbTcMIB.setDescription("This MIB module defines Textual Conventions and OBJECT-IDENTITIES for use in documents defining management information base (MIBs) modules for managing CISCO-GSLB-SYSTEM-MIB, CISCO-GSLB-DNS-MIB and CISCO-GSLB-HEALTH-MON-MIB (These MIB modules are used for a Global Server Load Balancing device(GSLB)). Acronyms and their description: CRA : Content Routing Agent - software that provides information to a GSLB device for content routing decisions and handles content routing requests from the GSLB device. D-Proxy : It is a local name server of the client which has initiated a DNS query for a domain. VIP : Virtual IP Addresses - they are used by server load balancing devices to represent content hosted on one or more servers under their control. The use of VIPs is to route content to the proper requesting host without exposing the device's internal IP address. Keepalive : A keepalive is an interaction between GSLB device and another device using a commonly supported protocol. It is used to periodically check if a resource is still active. DNS race : It is a method of resolving the proximity of the CRAs from the D-Proxy. In this method the GSLB device sends a request to all the CRAs directing them to respond to the D-Proxy at at the same time. The first response received by the D-proxy is, by default, considered to be the most proximate.") class CiscoGslbNodeServices(TextualConvention, Integer32): description = "Defines the role of the GSLB device in a GSLB peer network: 'primary' : Provides GSLB services and active for peer configuration and management. 'standby' : Provides GSLB services and standby for peer configuration and management. 'secondary' : Provides GSLB services only, not peer configuration and management." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("primary", 1), ("standby", 2), ("secondary", 3)) class CiscoGslbPeerStatus(TextualConvention, Integer32): description = "Defines the status of a peer as known to this GSLB device. 'inactive' : GSLB peer device is waiting to be activated by the primary GSLB device it is registered with. 'offline' : GSLB device which is out-of-service. 'online' : GSLB device which is in service." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("inactive", 1), ("offline", 2), ("online", 3)) class CiscoGslbAnswerType(TextualConvention, Integer32): description = "Defines the answer type. When a GSLB device receives a request from a D-proxy, it will resolve the request by pointing the D-proxy to one of the answers. The answer can be one of the following type: 'other' : The value 'other' has been provided so that the MIB may still be valid while new protocols emerge and the MIB has not been updated to enumerate them. 'vip' : Virtual IP address associated with SLB device or any other geographically dispersed device in global network deployment. 'ns' : IP Address of the NS that can answer queries that the GSLB device cannot resolve. 'cra' : CRAs that use a resolution process called DNS race to send identical and simultaneous responses back to a user's D-proxy." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("other", 1), ("vip", 2), ("ns", 3), ("cra", 4)) class CiscoGslbKeepaliveTargetType(TextualConvention, Integer32): description = "Defines the answer type to which the keepalive is associated. The only exception being shared, where the keepalive can be associated with multiple answers, hence the name shared. 'other' : The value 'other' has been provided so that the MIB may still be valid while new protocols emerge and the MIB has not been updated to enumerate them. 'vip' : Keepalives associated with VIP answer. 'ns' : Keepalives associated with NS answer. 'cra' : Keepalives associated with CRA answer. 'shared' : Keepalives that may be shared among multiple VIP answers." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("other", 1), ("vip", 2), ("ns", 3), ("cra", 4), ("shared", 5)) class CiscoGslbKeepaliveMethod(TextualConvention, Integer32): description = "Defines the keepalive method. A keepalive is an interaction between GSLB device and another device using a commonly supported protocol. This defines the protocol to be used by the keepalive when monitoring an answer. For example a keepalive for a VIP answer can have icmp/tcp/httphead/kalap method to monitor the health of answer. (Note: The keepaliveTargetType is VIP, since the answer is associated with a VIP type answer.) 'other' : The value 'other' has been provided so that the MIB may still be valid while new protocols emerge and the MIB has not been updated to enumerate them. 'none' : This is to prevent the GSLB device from taking the online status and load into account. Thus, the resource is always assumed to be online. 'icmp' : Internet Control Message Protocol(ICMP) packets are sent to the VIP address (or a shared keepalive address) for an answer to determine the Online status indicating connectivity to network. 'tcp' : To determine the Online status a TCP connection to remote device is established by performing three-way handshake sequence. The connection is then terminated. 'httphead' : A HTTP HEAD connection is established, the online status of the resource is returned in form of an HTTP Response, then the connection is terminated. 'kalap' : A detailed query is sent to primary and an optional secondary address to determine the online status and load of each specified address. 'ns' : A query is sent to the NS address to determine its online status by means of its ability to respond the query for the domain. 'cra' : It is used when testing CRA answer that respond to DNS race requests as it keeps track to the time required for a packet to reach the CRA and return to the GSLB device. 'scriptedKal' : It uses SNMP get request to fetch the load information from the target device. It enables the GSLB device to use third party application for fetching the load information from target." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9)) namedValues = NamedValues(("other", 1), ("none", 2), ("icmp", 3), ("tcp", 4), ("httphead", 5), ("kalap", 6), ("ns", 7), ("cra", 8), ("scriptedKal", 9)) class CiscoGslbKeepaliveConfigState(TextualConvention, Integer32): description = "Administrative configuration state for the keepalive. The keepalive can be activated/suspended by the administrator. This is used to define the present state of the keepalive. 'active' : The keepalive is administratively enabled. 'suspend' : The keepalive is administratively disabled." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("active", 1), ("suspend", 2)) class CiscoGslbKeepaliveRate(TextualConvention, Integer32): description = "The rate associated with each keepalive method. It defines the rate at which the probing happens in-other-words how frequently the probing should happen. 'other' : The value 'other' has been provided so that the MIB may still be valid while new rates emerge and the MIB has not been updated to enumerate them. 'standard' : Uses the standard detection time. Each keepalive method has a standard detection time associated with it. 'fast' : Uses the user-selectable Number of Retries parameter to control the transmission rate. Number of retries is a user configurable parameter, which says the number times the target device has to be probed before declaring it offline." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("other", 1), ("standard", 2), ("fast", 3)) class CiscoGslbTerminationMethod(TextualConvention, Integer32): description = "Some keepalives establish a connection and then terminate the connection as part of the process to determine the online status of the resource. For example, in a keepalive of method 'tcp', a connection is established to the target device while probing. GSS can terminate this connection in either of the following ways: 'other' : The value 'other' has been provided so that the MIB may still be valid while new methods emerge and the MIB has not been updated to enumerate them. 'reset' : Immediately terminates the connection by using a hard reset. 'graceful' : Initiates the graceful closing of the connection by using the standard three-way connection termination method." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("other", 1), ("reset", 2), ("graceful", 3)) class CiscoGslbKeepaliveStatus(TextualConvention, Integer32): description = "Most recently known status of the keepalive. 'other' : The value 'other' has been provided so that the MIB may still be valid while new states emerge and the MIB has not been updated to enumerate them. 'offline' : The resource whose status is being determined by the keepalive is not available. 'online' : The resource is available and is in service. 'suspended' : The keepalive is suspended. 'init' : The keepalive is being initialized." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("other", 1), ("offline", 2), ("online", 3), ("suspended", 4), ("init", 5)) class CiscoGslbAnswerStatus(TextualConvention, Integer32): description = "Most recently known status of the answer 'other' : The value 'other' has been provided so that the MIB may still be valid while new states emerge and the MIB has not been updated to enumerate them. 'offline' : The answer is not available as is determined by using the keepalives associated with the answer. 'online' : The answer is available and is in service. 'suspended' : The answer has been administratively disabled. 'init' : The answer is being initialized." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("other", 1), ("offline", 2), ("online", 3), ("suspended", 4), ("init", 5)) class CiscoGslbAnswerAdminState(TextualConvention, Integer32): description = "Administrative configuration state for an answer. An answer can be activated/suspended by the administrator. This is used to define the present state of the answer. 'active' : The answer has been administratively enabled. 'suspended' : The answer has been administratively disabled." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("suspended", 1), ("active", 2)) class CiscoGslbKalapType(TextualConvention, Integer32): description = "Kalap is keepalive protocol, which sends a detailed query to primary and an optional secondary address to determine the online status and load of each specified address. Following are the different types in kalap method of keepalive: 'other' : The value 'other' has been provided so that the MIB may still be valid while new states emerge and the MIB has not been updated to enumerate them. 'kalapByVip' : In this type, only the VIP address is specified in the kalap request. The kalap queries the VIP to determine the online status. 'kalapByTag' : In this type, an alphanumeric tag associated with the VIP is specified in the kalap request. The kalap queries the VIP to determine the online status." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("other", 1), ("kalapByVip", 2), ("kalapByTag", 3)) class CiscoGslbBalanceMethod(TextualConvention, Integer32): description = "A balance method is an algorithm for selecting the best server. Following are the different types of balance methods: 'other' : The value 'other' has been provided so that the MIB may still be valid while new states emerge and the MIB has not been updated to enumerate them. 'orderedList' : In this type, each resource within an answer group (for example, an SLB VIP or a name server) is assigned a number that corresponds to the rank of that answer within the group. The number assigned represents the order of the answer on the list. Subsequent VIPs or name servers on the list will only be used if preceding VIPs or name servers on the list are unavailable. 'roundRobin' : In this type, each resource within an answer group is tried in turn. The GSLB device cycles through the list of answers, selecting the next answer in line for each request. In this way, the device can resolve requests by evenly distributing the load among possible answers. 'weightedRR' : In this type, as performed by the round-robin balance method, the weighted round-robin method also cycles through a list of defined answers to choose each available answer in turn. However, with weighted round-robin, an additional weight factor is assigned to each answer, biasing the GSLB device towards certain servers so that they are used more often. 'leastLoaded' : In this type, the GSLB device resolves requests to the least loaded of all resources. 'hashed' : In this type, elements of the client's DNS proxy IP address and the requesting client's domain are extracted to create a unique value, referred to as a hash value. The unique hash value is attached to and used to identify a VIP that is chosen to serve the DNS query. 'boomerang' : This method is based on the concept that instantaneous proximity can be determined if a CRA within each data center sends an A-record (IP address) at the exact same time to the client's D-proxy. The DNS race method of DNS resolution gives all CRAs (Cisco content engines or content services switches) a chance at resolving a client request and allows for proximity to be determined without probing the client's D-proxy. The first A-record received by the D-proxy is, by default, considered to be the most proximate." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7)) namedValues = NamedValues(("other", 1), ("orderedList", 2), ("roundRobin", 3), ("weightedRR", 4), ("leastLoaded", 5), ("hashed", 6), ("boomerang", 7)) mibBuilder.exportSymbols("CISCO-GSLB-TC-MIB", CiscoGslbNodeServices=CiscoGslbNodeServices, CiscoGslbAnswerAdminState=CiscoGslbAnswerAdminState, CiscoGslbKeepaliveMethod=CiscoGslbKeepaliveMethod, CiscoGslbKeepaliveRate=CiscoGslbKeepaliveRate, CiscoGslbKeepaliveTargetType=CiscoGslbKeepaliveTargetType, PYSNMP_MODULE_ID=ciscoGslbTcMIB, CiscoGslbAnswerStatus=CiscoGslbAnswerStatus, ciscoGslbTcMIB=ciscoGslbTcMIB, CiscoGslbPeerStatus=CiscoGslbPeerStatus, CiscoGslbKalapType=CiscoGslbKalapType, CiscoGslbTerminationMethod=CiscoGslbTerminationMethod, CiscoGslbAnswerType=CiscoGslbAnswerType, CiscoGslbKeepaliveConfigState=CiscoGslbKeepaliveConfigState, CiscoGslbKeepaliveStatus=CiscoGslbKeepaliveStatus, CiscoGslbBalanceMethod=CiscoGslbBalanceMethod)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, constraints_union, single_value_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (notification_type, integer32, bits, module_identity, object_identity, counter32, counter64, time_ticks, iso, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, ip_address, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'Integer32', 'Bits', 'ModuleIdentity', 'ObjectIdentity', 'Counter32', 'Counter64', 'TimeTicks', 'iso', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'IpAddress', 'MibIdentifier') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') cisco_gslb_tc_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 583)) ciscoGslbTcMIB.setRevisions(('2007-02-23 00:00', '2006-09-26 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoGslbTcMIB.setRevisionsDescriptions(("Added enumeration 'scriptedKal' to CiscoGslbKeepaliveMethod. Added enumeration 'init' to CiscoGslbAnswerStatus.", 'Initial version of this MIB module')) if mibBuilder.loadTexts: ciscoGslbTcMIB.setLastUpdated('200702230000Z') if mibBuilder.loadTexts: ciscoGslbTcMIB.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoGslbTcMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-slb@cisco.com') if mibBuilder.loadTexts: ciscoGslbTcMIB.setDescription("This MIB module defines Textual Conventions and OBJECT-IDENTITIES for use in documents defining management information base (MIBs) modules for managing CISCO-GSLB-SYSTEM-MIB, CISCO-GSLB-DNS-MIB and CISCO-GSLB-HEALTH-MON-MIB (These MIB modules are used for a Global Server Load Balancing device(GSLB)). Acronyms and their description: CRA : Content Routing Agent - software that provides information to a GSLB device for content routing decisions and handles content routing requests from the GSLB device. D-Proxy : It is a local name server of the client which has initiated a DNS query for a domain. VIP : Virtual IP Addresses - they are used by server load balancing devices to represent content hosted on one or more servers under their control. The use of VIPs is to route content to the proper requesting host without exposing the device's internal IP address. Keepalive : A keepalive is an interaction between GSLB device and another device using a commonly supported protocol. It is used to periodically check if a resource is still active. DNS race : It is a method of resolving the proximity of the CRAs from the D-Proxy. In this method the GSLB device sends a request to all the CRAs directing them to respond to the D-Proxy at at the same time. The first response received by the D-proxy is, by default, considered to be the most proximate.") class Ciscogslbnodeservices(TextualConvention, Integer32): description = "Defines the role of the GSLB device in a GSLB peer network: 'primary' : Provides GSLB services and active for peer configuration and management. 'standby' : Provides GSLB services and standby for peer configuration and management. 'secondary' : Provides GSLB services only, not peer configuration and management." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('primary', 1), ('standby', 2), ('secondary', 3)) class Ciscogslbpeerstatus(TextualConvention, Integer32): description = "Defines the status of a peer as known to this GSLB device. 'inactive' : GSLB peer device is waiting to be activated by the primary GSLB device it is registered with. 'offline' : GSLB device which is out-of-service. 'online' : GSLB device which is in service." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('inactive', 1), ('offline', 2), ('online', 3)) class Ciscogslbanswertype(TextualConvention, Integer32): description = "Defines the answer type. When a GSLB device receives a request from a D-proxy, it will resolve the request by pointing the D-proxy to one of the answers. The answer can be one of the following type: 'other' : The value 'other' has been provided so that the MIB may still be valid while new protocols emerge and the MIB has not been updated to enumerate them. 'vip' : Virtual IP address associated with SLB device or any other geographically dispersed device in global network deployment. 'ns' : IP Address of the NS that can answer queries that the GSLB device cannot resolve. 'cra' : CRAs that use a resolution process called DNS race to send identical and simultaneous responses back to a user's D-proxy." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4)) named_values = named_values(('other', 1), ('vip', 2), ('ns', 3), ('cra', 4)) class Ciscogslbkeepalivetargettype(TextualConvention, Integer32): description = "Defines the answer type to which the keepalive is associated. The only exception being shared, where the keepalive can be associated with multiple answers, hence the name shared. 'other' : The value 'other' has been provided so that the MIB may still be valid while new protocols emerge and the MIB has not been updated to enumerate them. 'vip' : Keepalives associated with VIP answer. 'ns' : Keepalives associated with NS answer. 'cra' : Keepalives associated with CRA answer. 'shared' : Keepalives that may be shared among multiple VIP answers." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5)) named_values = named_values(('other', 1), ('vip', 2), ('ns', 3), ('cra', 4), ('shared', 5)) class Ciscogslbkeepalivemethod(TextualConvention, Integer32): description = "Defines the keepalive method. A keepalive is an interaction between GSLB device and another device using a commonly supported protocol. This defines the protocol to be used by the keepalive when monitoring an answer. For example a keepalive for a VIP answer can have icmp/tcp/httphead/kalap method to monitor the health of answer. (Note: The keepaliveTargetType is VIP, since the answer is associated with a VIP type answer.) 'other' : The value 'other' has been provided so that the MIB may still be valid while new protocols emerge and the MIB has not been updated to enumerate them. 'none' : This is to prevent the GSLB device from taking the online status and load into account. Thus, the resource is always assumed to be online. 'icmp' : Internet Control Message Protocol(ICMP) packets are sent to the VIP address (or a shared keepalive address) for an answer to determine the Online status indicating connectivity to network. 'tcp' : To determine the Online status a TCP connection to remote device is established by performing three-way handshake sequence. The connection is then terminated. 'httphead' : A HTTP HEAD connection is established, the online status of the resource is returned in form of an HTTP Response, then the connection is terminated. 'kalap' : A detailed query is sent to primary and an optional secondary address to determine the online status and load of each specified address. 'ns' : A query is sent to the NS address to determine its online status by means of its ability to respond the query for the domain. 'cra' : It is used when testing CRA answer that respond to DNS race requests as it keeps track to the time required for a packet to reach the CRA and return to the GSLB device. 'scriptedKal' : It uses SNMP get request to fetch the load information from the target device. It enables the GSLB device to use third party application for fetching the load information from target." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9)) named_values = named_values(('other', 1), ('none', 2), ('icmp', 3), ('tcp', 4), ('httphead', 5), ('kalap', 6), ('ns', 7), ('cra', 8), ('scriptedKal', 9)) class Ciscogslbkeepaliveconfigstate(TextualConvention, Integer32): description = "Administrative configuration state for the keepalive. The keepalive can be activated/suspended by the administrator. This is used to define the present state of the keepalive. 'active' : The keepalive is administratively enabled. 'suspend' : The keepalive is administratively disabled." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('active', 1), ('suspend', 2)) class Ciscogslbkeepaliverate(TextualConvention, Integer32): description = "The rate associated with each keepalive method. It defines the rate at which the probing happens in-other-words how frequently the probing should happen. 'other' : The value 'other' has been provided so that the MIB may still be valid while new rates emerge and the MIB has not been updated to enumerate them. 'standard' : Uses the standard detection time. Each keepalive method has a standard detection time associated with it. 'fast' : Uses the user-selectable Number of Retries parameter to control the transmission rate. Number of retries is a user configurable parameter, which says the number times the target device has to be probed before declaring it offline." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('other', 1), ('standard', 2), ('fast', 3)) class Ciscogslbterminationmethod(TextualConvention, Integer32): description = "Some keepalives establish a connection and then terminate the connection as part of the process to determine the online status of the resource. For example, in a keepalive of method 'tcp', a connection is established to the target device while probing. GSS can terminate this connection in either of the following ways: 'other' : The value 'other' has been provided so that the MIB may still be valid while new methods emerge and the MIB has not been updated to enumerate them. 'reset' : Immediately terminates the connection by using a hard reset. 'graceful' : Initiates the graceful closing of the connection by using the standard three-way connection termination method." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('other', 1), ('reset', 2), ('graceful', 3)) class Ciscogslbkeepalivestatus(TextualConvention, Integer32): description = "Most recently known status of the keepalive. 'other' : The value 'other' has been provided so that the MIB may still be valid while new states emerge and the MIB has not been updated to enumerate them. 'offline' : The resource whose status is being determined by the keepalive is not available. 'online' : The resource is available and is in service. 'suspended' : The keepalive is suspended. 'init' : The keepalive is being initialized." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5)) named_values = named_values(('other', 1), ('offline', 2), ('online', 3), ('suspended', 4), ('init', 5)) class Ciscogslbanswerstatus(TextualConvention, Integer32): description = "Most recently known status of the answer 'other' : The value 'other' has been provided so that the MIB may still be valid while new states emerge and the MIB has not been updated to enumerate them. 'offline' : The answer is not available as is determined by using the keepalives associated with the answer. 'online' : The answer is available and is in service. 'suspended' : The answer has been administratively disabled. 'init' : The answer is being initialized." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5)) named_values = named_values(('other', 1), ('offline', 2), ('online', 3), ('suspended', 4), ('init', 5)) class Ciscogslbansweradminstate(TextualConvention, Integer32): description = "Administrative configuration state for an answer. An answer can be activated/suspended by the administrator. This is used to define the present state of the answer. 'active' : The answer has been administratively enabled. 'suspended' : The answer has been administratively disabled." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('suspended', 1), ('active', 2)) class Ciscogslbkalaptype(TextualConvention, Integer32): description = "Kalap is keepalive protocol, which sends a detailed query to primary and an optional secondary address to determine the online status and load of each specified address. Following are the different types in kalap method of keepalive: 'other' : The value 'other' has been provided so that the MIB may still be valid while new states emerge and the MIB has not been updated to enumerate them. 'kalapByVip' : In this type, only the VIP address is specified in the kalap request. The kalap queries the VIP to determine the online status. 'kalapByTag' : In this type, an alphanumeric tag associated with the VIP is specified in the kalap request. The kalap queries the VIP to determine the online status." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('other', 1), ('kalapByVip', 2), ('kalapByTag', 3)) class Ciscogslbbalancemethod(TextualConvention, Integer32): description = "A balance method is an algorithm for selecting the best server. Following are the different types of balance methods: 'other' : The value 'other' has been provided so that the MIB may still be valid while new states emerge and the MIB has not been updated to enumerate them. 'orderedList' : In this type, each resource within an answer group (for example, an SLB VIP or a name server) is assigned a number that corresponds to the rank of that answer within the group. The number assigned represents the order of the answer on the list. Subsequent VIPs or name servers on the list will only be used if preceding VIPs or name servers on the list are unavailable. 'roundRobin' : In this type, each resource within an answer group is tried in turn. The GSLB device cycles through the list of answers, selecting the next answer in line for each request. In this way, the device can resolve requests by evenly distributing the load among possible answers. 'weightedRR' : In this type, as performed by the round-robin balance method, the weighted round-robin method also cycles through a list of defined answers to choose each available answer in turn. However, with weighted round-robin, an additional weight factor is assigned to each answer, biasing the GSLB device towards certain servers so that they are used more often. 'leastLoaded' : In this type, the GSLB device resolves requests to the least loaded of all resources. 'hashed' : In this type, elements of the client's DNS proxy IP address and the requesting client's domain are extracted to create a unique value, referred to as a hash value. The unique hash value is attached to and used to identify a VIP that is chosen to serve the DNS query. 'boomerang' : This method is based on the concept that instantaneous proximity can be determined if a CRA within each data center sends an A-record (IP address) at the exact same time to the client's D-proxy. The DNS race method of DNS resolution gives all CRAs (Cisco content engines or content services switches) a chance at resolving a client request and allows for proximity to be determined without probing the client's D-proxy. The first A-record received by the D-proxy is, by default, considered to be the most proximate." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7)) named_values = named_values(('other', 1), ('orderedList', 2), ('roundRobin', 3), ('weightedRR', 4), ('leastLoaded', 5), ('hashed', 6), ('boomerang', 7)) mibBuilder.exportSymbols('CISCO-GSLB-TC-MIB', CiscoGslbNodeServices=CiscoGslbNodeServices, CiscoGslbAnswerAdminState=CiscoGslbAnswerAdminState, CiscoGslbKeepaliveMethod=CiscoGslbKeepaliveMethod, CiscoGslbKeepaliveRate=CiscoGslbKeepaliveRate, CiscoGslbKeepaliveTargetType=CiscoGslbKeepaliveTargetType, PYSNMP_MODULE_ID=ciscoGslbTcMIB, CiscoGslbAnswerStatus=CiscoGslbAnswerStatus, ciscoGslbTcMIB=ciscoGslbTcMIB, CiscoGslbPeerStatus=CiscoGslbPeerStatus, CiscoGslbKalapType=CiscoGslbKalapType, CiscoGslbTerminationMethod=CiscoGslbTerminationMethod, CiscoGslbAnswerType=CiscoGslbAnswerType, CiscoGslbKeepaliveConfigState=CiscoGslbKeepaliveConfigState, CiscoGslbKeepaliveStatus=CiscoGslbKeepaliveStatus, CiscoGslbBalanceMethod=CiscoGslbBalanceMethod)
pessoas = {'nome': 'Gustavo', 'sexo': 'M', 'idade': 22} del pessoas['sexo'] # APAGA O ITEM (chave + valor) "SEXO" for k, v in pessoas.items(): print(f'{k} = {v}') print() pessoas['nome'] = 'Leandro' # A CHAVE "NOME" PASSA A SER O VALOR "LEANDRO" for k, v in pessoas.items(): print(f'{k} = {v}') print() pessoas['peso'] = 98.5 # ADICIONO O ITEM "PESO" E SEU VALOR. ESSE MODO SUBSTITUI O .APPEND() DAS LISTAS for k, v in pessoas.items(): print(f'{k} = {v}')
pessoas = {'nome': 'Gustavo', 'sexo': 'M', 'idade': 22} del pessoas['sexo'] for (k, v) in pessoas.items(): print(f'{k} = {v}') print() pessoas['nome'] = 'Leandro' for (k, v) in pessoas.items(): print(f'{k} = {v}') print() pessoas['peso'] = 98.5 for (k, v) in pessoas.items(): print(f'{k} = {v}')
TICKET_PRICE = 10 tickets_remaining = 100 SERVICE_FEE = 5 def calculate_price(number_of_tickets): return number_of_tickets * TICKET_PRICE + SERVICE_FEE while tickets_remaining > 0: print("There are {} tickets remaining.".format(tickets_remaining)) username = input("What is your name? ") try: tickets_desired = int(input("Hello {}, how many tickets would you like?".format(username))) if tickets_remaining - tickets_desired <= 0: raise ValueError("there are only {} tickets remaining".format(tickets_remaining)) except ValueError as err: print("Oh no, we ran into an issue. {} Please try again".format(err)) else: order_cost = calculate_price(tickets_desired) print("The cost of your tickets is ${}.".format(order_cost)) order_confirmation = input("would you like to proceed with the purchase? Hit 'Y' for Yes or 'N' for no. ").upper() if order_confirmation == "Y": print("SOLD!") tickets_remaining -= tickets_desired else: print("Thanks for visiting the store {}.".format(username)) print("The tickets are sold out.")
ticket_price = 10 tickets_remaining = 100 service_fee = 5 def calculate_price(number_of_tickets): return number_of_tickets * TICKET_PRICE + SERVICE_FEE while tickets_remaining > 0: print('There are {} tickets remaining.'.format(tickets_remaining)) username = input('What is your name? ') try: tickets_desired = int(input('Hello {}, how many tickets would you like?'.format(username))) if tickets_remaining - tickets_desired <= 0: raise value_error('there are only {} tickets remaining'.format(tickets_remaining)) except ValueError as err: print('Oh no, we ran into an issue. {} Please try again'.format(err)) else: order_cost = calculate_price(tickets_desired) print('The cost of your tickets is ${}.'.format(order_cost)) order_confirmation = input("would you like to proceed with the purchase? Hit 'Y' for Yes or 'N' for no. ").upper() if order_confirmation == 'Y': print('SOLD!') tickets_remaining -= tickets_desired else: print('Thanks for visiting the store {}.'.format(username)) print('The tickets are sold out.')
print("Tugas Pratikum 3. Latihan 3") a=100000000 for s in range(1,9): if(s>=1 and s<=2): b=a*0 print("Laba bulan ke-",s,":",b) if(s>=3 and s<=4): c=a*0.1 print("Laba bulan ke-",s,":",c) if(s>=5 and s<=7): d=a*0.5 print("Laba bulan ke-",s,":",d) if(s==8): e=a*0.2 print("Laba bulan ke-",s,":",e) total=b+b+c+c+d+d+d+e print("total : ",total) print("*****SELESAI*****")
print('Tugas Pratikum 3. Latihan 3') a = 100000000 for s in range(1, 9): if s >= 1 and s <= 2: b = a * 0 print('Laba bulan ke-', s, ':', b) if s >= 3 and s <= 4: c = a * 0.1 print('Laba bulan ke-', s, ':', c) if s >= 5 and s <= 7: d = a * 0.5 print('Laba bulan ke-', s, ':', d) if s == 8: e = a * 0.2 print('Laba bulan ke-', s, ':', e) total = b + b + c + c + d + d + d + e print('total : ', total) print('*****SELESAI*****')
''' From projecteuler.net 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. ''' #list comprehension solution def solution(n): return sum(num for num in range(1,n,1) if num%3==0 or num%5==0) #solution 1 def solution(n): sum = 0 for i in range(1,n,1): if i%3==0 or i%5==0: sum = sum + i return sum
""" From projecteuler.net 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. """ def solution(n): return sum((num for num in range(1, n, 1) if num % 3 == 0 or num % 5 == 0)) def solution(n): sum = 0 for i in range(1, n, 1): if i % 3 == 0 or i % 5 == 0: sum = sum + i return sum
size = [165, 167, 160, 173, 105, 135, 149, 122, 147, 145, 126, 99, 116, 164, 101, 175] flag = "" for s in size: flag += chr(s - 50) print(flag)
size = [165, 167, 160, 173, 105, 135, 149, 122, 147, 145, 126, 99, 116, 164, 101, 175] flag = '' for s in size: flag += chr(s - 50) print(flag)
# In this program we iterate from 1 to m with iterator i, if which, it yeilds 0 as remainder, we add it to the factors of m in fm list. # Similarly we do for n and store it in fn. # we compare fm and fn for common factors, if we found any, we store it on another list called cf. # We then return the last element of the cf list because, the resulting list is ascending order, and we want greatest common factor, which will be available in the last index def gcd(m,n): fm = [] for i in range(1,m+1): if (m % i) == 0: fm.append(i) fn = [] for j in range(1,n+1): if (n % j) == 0: fn.append(j) cf = [] for f in fm: if f in fn: cf.append(f) return(cf[-1]) # driver code print(gcd(8,6))
def gcd(m, n): fm = [] for i in range(1, m + 1): if m % i == 0: fm.append(i) fn = [] for j in range(1, n + 1): if n % j == 0: fn.append(j) cf = [] for f in fm: if f in fn: cf.append(f) return cf[-1] print(gcd(8, 6))
class ListNode: def __init__(self, x): self.val = x self.next = None def cre_linked_list(arr): head = ListNode(arr[0]) res = head for a in arr[1:]: tmp = ListNode(a) head.next, head = tmp, tmp return res head = cre_linked_list([1, 1, 2, 2, 3, 3, 4, 4]) class Solution: def deleteDuplication(self, pHead): # write code here if not pHead: return pre, h1, h2 = ListNode(pHead.val - 1), pHead, pHead res, pre.next = pre, h2 while h2: while h2 and h1.val == h2.val: tmp, h2 = h2, h2.next if tmp == h1: pre.next, pre = tmp, h1 h1 = h2 pre.next = None return res.next def deleteDuplication1(self, pHead): # write code here dic, head = {}, pHead while head: if head.val not in dic: dic[head.val] = [] dic[head.val].append(head) head = head.next head, pre, res = pHead, None, None while head: tmp = head.next if len(dic[head.val]) == 1: if not res: res = head else: pre.next = head pre, head.next = head, None head = tmp return res s = Solution() print(s.deleteDuplication(head))
class Listnode: def __init__(self, x): self.val = x self.next = None def cre_linked_list(arr): head = list_node(arr[0]) res = head for a in arr[1:]: tmp = list_node(a) (head.next, head) = (tmp, tmp) return res head = cre_linked_list([1, 1, 2, 2, 3, 3, 4, 4]) class Solution: def delete_duplication(self, pHead): if not pHead: return (pre, h1, h2) = (list_node(pHead.val - 1), pHead, pHead) (res, pre.next) = (pre, h2) while h2: while h2 and h1.val == h2.val: (tmp, h2) = (h2, h2.next) if tmp == h1: (pre.next, pre) = (tmp, h1) h1 = h2 pre.next = None return res.next def delete_duplication1(self, pHead): (dic, head) = ({}, pHead) while head: if head.val not in dic: dic[head.val] = [] dic[head.val].append(head) head = head.next (head, pre, res) = (pHead, None, None) while head: tmp = head.next if len(dic[head.val]) == 1: if not res: res = head else: pre.next = head (pre, head.next) = (head, None) head = tmp return res s = solution() print(s.deleteDuplication(head))
def compute_lcm(x, y): if x > y: greater = x else: greater = y while(True): if((greater % x == 0) and (greater % y == 0)): lcm = greater break greater += 1 return lcm def hcfnaive(a,b): if(b==0): return a else: return hcfnaive(b,a%b) t=int(input()) for i in range(t): n=int(input()) game=True while game: a=n-1 b=1 a_mid=hcfnaive(a,b) b_mid=compute_lcm(a,b) if a_mid+b_mid==n: print(a,b) break else: a-=1 b+=1
def compute_lcm(x, y): if x > y: greater = x else: greater = y while True: if greater % x == 0 and greater % y == 0: lcm = greater break greater += 1 return lcm def hcfnaive(a, b): if b == 0: return a else: return hcfnaive(b, a % b) t = int(input()) for i in range(t): n = int(input()) game = True while game: a = n - 1 b = 1 a_mid = hcfnaive(a, b) b_mid = compute_lcm(a, b) if a_mid + b_mid == n: print(a, b) break else: a -= 1 b += 1
''' URL: https://leetcode.com/problems/groups-of-special-equivalent-strings/ Difficulty: Easy Description: Groups of Special-Equivalent Strings You are given an array A of strings. A move onto S consists of swapping any two even indexed characters of S, or any two odd indexed characters of S. Two strings S and T are special-equivalent if after any number of moves onto S, S == T. For example, S = "zzxy" and T = "xyzz" are special-equivalent because we may make the moves "zzxy" -> "xzzy" -> "xyzz" that swap S[0] and S[2], then S[1] and S[3]. Now, a group of special-equivalent strings from A is a non-empty subset of A such that: Every pair of strings in the group are special equivalent, and; The group is the largest size possible (ie., there isn't a string S not in the group such that S is special equivalent to every string in the group) Return the number of groups of special-equivalent strings from A. Example 1: Input: ["abcd","cdab","cbad","xyzz","zzxy","zzyx"] Output: 3 Explanation: One group is ["abcd", "cdab", "cbad"], since they are all pairwise special equivalent, and none of the other strings are all pairwise special equivalent to these. The other two groups are ["xyzz", "zzxy"] and ["zzyx"]. Note that in particular, "zzxy" is not special equivalent to "zzyx". Example 2: Input: ["abc","acb","bac","bca","cab","cba"] Output: 3 Note: 1 <= A.length <= 1000 1 <= A[i].length <= 20 All A[i] have the same length. All A[i] consist of only lowercase letters. ''' # My solution Time Limit Exceeded class Solution: def check(self, s1, s2): odd1 = "".join(sorted([ch for i, ch in enumerate(s1) if i % 2 == 1])) odd2 = "".join(sorted([ch for i, ch in enumerate(s2) if i % 2 == 1])) if odd1 != odd2: return False even1 = "".join(sorted([ch for i, ch in enumerate(s1) if i % 2 == 0])) even2 = "".join(sorted([ch for i, ch in enumerate(s2) if i % 2 == 0])) if even1 != even2: return False return True def numSpecialEquivGroups(self, A): mainDict = collections.defaultdict(list) for s1 in A: for s2 in A: if self.check(s1, s2): mainDict[s1].append(s2) print(mainDict) op = [] for _, ls in mainDict.items(): if len(op) == 0: op.append(ls) continue for o in op: if set(ls) == set(o): break else: op.append(ls) return len(op) # Other solution by someone else class Solution: def numSpecialEquivGroups(self, A): res = set() for s in A: sort_odd_even = ''.join(sorted(s[1::2]) + sorted(s[::2])) res.add(sort_odd_even) return len(res)
""" URL: https://leetcode.com/problems/groups-of-special-equivalent-strings/ Difficulty: Easy Description: Groups of Special-Equivalent Strings You are given an array A of strings. A move onto S consists of swapping any two even indexed characters of S, or any two odd indexed characters of S. Two strings S and T are special-equivalent if after any number of moves onto S, S == T. For example, S = "zzxy" and T = "xyzz" are special-equivalent because we may make the moves "zzxy" -> "xzzy" -> "xyzz" that swap S[0] and S[2], then S[1] and S[3]. Now, a group of special-equivalent strings from A is a non-empty subset of A such that: Every pair of strings in the group are special equivalent, and; The group is the largest size possible (ie., there isn't a string S not in the group such that S is special equivalent to every string in the group) Return the number of groups of special-equivalent strings from A. Example 1: Input: ["abcd","cdab","cbad","xyzz","zzxy","zzyx"] Output: 3 Explanation: One group is ["abcd", "cdab", "cbad"], since they are all pairwise special equivalent, and none of the other strings are all pairwise special equivalent to these. The other two groups are ["xyzz", "zzxy"] and ["zzyx"]. Note that in particular, "zzxy" is not special equivalent to "zzyx". Example 2: Input: ["abc","acb","bac","bca","cab","cba"] Output: 3 Note: 1 <= A.length <= 1000 1 <= A[i].length <= 20 All A[i] have the same length. All A[i] consist of only lowercase letters. """ class Solution: def check(self, s1, s2): odd1 = ''.join(sorted([ch for (i, ch) in enumerate(s1) if i % 2 == 1])) odd2 = ''.join(sorted([ch for (i, ch) in enumerate(s2) if i % 2 == 1])) if odd1 != odd2: return False even1 = ''.join(sorted([ch for (i, ch) in enumerate(s1) if i % 2 == 0])) even2 = ''.join(sorted([ch for (i, ch) in enumerate(s2) if i % 2 == 0])) if even1 != even2: return False return True def num_special_equiv_groups(self, A): main_dict = collections.defaultdict(list) for s1 in A: for s2 in A: if self.check(s1, s2): mainDict[s1].append(s2) print(mainDict) op = [] for (_, ls) in mainDict.items(): if len(op) == 0: op.append(ls) continue for o in op: if set(ls) == set(o): break else: op.append(ls) return len(op) class Solution: def num_special_equiv_groups(self, A): res = set() for s in A: sort_odd_even = ''.join(sorted(s[1::2]) + sorted(s[::2])) res.add(sort_odd_even) return len(res)
FOL_TEST_WORLD = { 'domain': [1, 2, 3, 4], 'constants': { 'a': 1, 'b': 2, 'c': 3 }, 'extensions': { "P": [[1]], "R": [[1], [2], [4]], "Q": [[1], [2], [3], [4]], "C": [[1, 2], [2, 3]], "D": [[2, 3]] } } # see readme for link to original blog post FOL_MEDIUM_WORLD = { 'domain': [1, 2, 3, 4, 5], 'constants': { 'j': 1, # 'Jacopo' 'm': 2, # 'Mattia' 'r': 3, # 'Ryan' 'c': 4, # 'Ciro' }, 'extensions': { "I": [[1], [2], [4]], # 'IsItalian' "P": [[5]], # 'IsAmerican' "Q": [[3]] # 'IsCanadian' } }
fol_test_world = {'domain': [1, 2, 3, 4], 'constants': {'a': 1, 'b': 2, 'c': 3}, 'extensions': {'P': [[1]], 'R': [[1], [2], [4]], 'Q': [[1], [2], [3], [4]], 'C': [[1, 2], [2, 3]], 'D': [[2, 3]]}} fol_medium_world = {'domain': [1, 2, 3, 4, 5], 'constants': {'j': 1, 'm': 2, 'r': 3, 'c': 4}, 'extensions': {'I': [[1], [2], [4]], 'P': [[5]], 'Q': [[3]]}}
# # PySNMP MIB module ZYXEL-VLAN-STACK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZYXEL-VLAN-STACK-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:46:11 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion") dot1dBasePort, = mibBuilder.importSymbols("BRIDGE-MIB", "dot1dBasePort") EnabledStatus, = mibBuilder.importSymbols("P-BRIDGE-MIB", "EnabledStatus") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, Integer32, Gauge32, Unsigned32, Counter32, NotificationType, MibIdentifier, Bits, ModuleIdentity, iso, IpAddress, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "Integer32", "Gauge32", "Unsigned32", "Counter32", "NotificationType", "MibIdentifier", "Bits", "ModuleIdentity", "iso", "IpAddress", "Counter64") TextualConvention, DisplayString, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString", "RowStatus") esMgmt, = mibBuilder.importSymbols("ZYXEL-ES-SMI", "esMgmt") zyxelVlanStack = ModuleIdentity((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89)) if mibBuilder.loadTexts: zyxelVlanStack.setLastUpdated('201207010000Z') if mibBuilder.loadTexts: zyxelVlanStack.setOrganization('Enterprise Solution ZyXEL') zyxelVlanStackSetup = MibIdentifier((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1)) zyVlanStackState = MibScalar((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 1), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: zyVlanStackState.setStatus('current') zyxelVlanStackPortTable = MibTable((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 2), ) if mibBuilder.loadTexts: zyxelVlanStackPortTable.setStatus('current') zyxelVlanStackPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 2, 1), ).setIndexNames((0, "BRIDGE-MIB", "dot1dBasePort")) if mibBuilder.loadTexts: zyxelVlanStackPortEntry.setStatus('current') zyVlanStackPortMode = MibTableColumn((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("normal", 1), ("access", 2), ("tunnel", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: zyVlanStackPortMode.setStatus('current') zyVlanStackPortVid = MibTableColumn((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 2, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: zyVlanStackPortVid.setStatus('current') zyVlanStackPortPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("priority0", 0), ("priority1", 1), ("priority2", 2), ("priority3", 3), ("priority4", 4), ("priority5", 5), ("priority6", 6), ("priority7", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: zyVlanStackPortPriority.setStatus('current') zyVlanStackTunnelPortTpid = MibTableColumn((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 2, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: zyVlanStackTunnelPortTpid.setStatus('current') zySelectiveQinQMaxNumberOfRules = MibScalar((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zySelectiveQinQMaxNumberOfRules.setStatus('current') zyxelSelectiveQinQTable = MibTable((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4), ) if mibBuilder.loadTexts: zyxelSelectiveQinQTable.setStatus('current') zyxelSelectiveQinQEntry = MibTableRow((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4, 1), ).setIndexNames((0, "ZYXEL-VLAN-STACK-MIB", "zySelectiveQinQPort"), (0, "ZYXEL-VLAN-STACK-MIB", "zySelectiveQinQCvid")) if mibBuilder.loadTexts: zyxelSelectiveQinQEntry.setStatus('current') zySelectiveQinQName = MibTableColumn((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4, 1, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: zySelectiveQinQName.setStatus('current') zySelectiveQinQPort = MibTableColumn((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4, 1, 2), Integer32()) if mibBuilder.loadTexts: zySelectiveQinQPort.setStatus('current') zySelectiveQinQCvid = MibTableColumn((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4, 1, 3), Integer32()) if mibBuilder.loadTexts: zySelectiveQinQCvid.setStatus('current') zySelectiveQinQSpvid = MibTableColumn((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: zySelectiveQinQSpvid.setStatus('current') zySelectiveQinQPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("priority0", 0), ("priority1", 1), ("priority2", 2), ("priority3", 3), ("priority4", 4), ("priority5", 5), ("priority6", 6), ("priority7", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: zySelectiveQinQPriority.setStatus('current') zySelectiveQinQRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: zySelectiveQinQRowStatus.setStatus('current') mibBuilder.exportSymbols("ZYXEL-VLAN-STACK-MIB", zySelectiveQinQName=zySelectiveQinQName, zyVlanStackPortPriority=zyVlanStackPortPriority, zySelectiveQinQPriority=zySelectiveQinQPriority, zySelectiveQinQRowStatus=zySelectiveQinQRowStatus, PYSNMP_MODULE_ID=zyxelVlanStack, zySelectiveQinQMaxNumberOfRules=zySelectiveQinQMaxNumberOfRules, zyVlanStackTunnelPortTpid=zyVlanStackTunnelPortTpid, zyxelVlanStack=zyxelVlanStack, zyxelVlanStackPortTable=zyxelVlanStackPortTable, zyVlanStackPortMode=zyVlanStackPortMode, zyVlanStackState=zyVlanStackState, zyxelSelectiveQinQEntry=zyxelSelectiveQinQEntry, zySelectiveQinQPort=zySelectiveQinQPort, zySelectiveQinQSpvid=zySelectiveQinQSpvid, zyxelVlanStackSetup=zyxelVlanStackSetup, zyxelSelectiveQinQTable=zyxelSelectiveQinQTable, zySelectiveQinQCvid=zySelectiveQinQCvid, zyxelVlanStackPortEntry=zyxelVlanStackPortEntry, zyVlanStackPortVid=zyVlanStackPortVid)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_range_constraint, value_size_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion') (dot1d_base_port,) = mibBuilder.importSymbols('BRIDGE-MIB', 'dot1dBasePort') (enabled_status,) = mibBuilder.importSymbols('P-BRIDGE-MIB', 'EnabledStatus') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity, integer32, gauge32, unsigned32, counter32, notification_type, mib_identifier, bits, module_identity, iso, ip_address, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity', 'Integer32', 'Gauge32', 'Unsigned32', 'Counter32', 'NotificationType', 'MibIdentifier', 'Bits', 'ModuleIdentity', 'iso', 'IpAddress', 'Counter64') (textual_convention, display_string, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString', 'RowStatus') (es_mgmt,) = mibBuilder.importSymbols('ZYXEL-ES-SMI', 'esMgmt') zyxel_vlan_stack = module_identity((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89)) if mibBuilder.loadTexts: zyxelVlanStack.setLastUpdated('201207010000Z') if mibBuilder.loadTexts: zyxelVlanStack.setOrganization('Enterprise Solution ZyXEL') zyxel_vlan_stack_setup = mib_identifier((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1)) zy_vlan_stack_state = mib_scalar((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 1), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: zyVlanStackState.setStatus('current') zyxel_vlan_stack_port_table = mib_table((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 2)) if mibBuilder.loadTexts: zyxelVlanStackPortTable.setStatus('current') zyxel_vlan_stack_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 2, 1)).setIndexNames((0, 'BRIDGE-MIB', 'dot1dBasePort')) if mibBuilder.loadTexts: zyxelVlanStackPortEntry.setStatus('current') zy_vlan_stack_port_mode = mib_table_column((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('normal', 1), ('access', 2), ('tunnel', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: zyVlanStackPortMode.setStatus('current') zy_vlan_stack_port_vid = mib_table_column((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 2, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: zyVlanStackPortVid.setStatus('current') zy_vlan_stack_port_priority = mib_table_column((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('priority0', 0), ('priority1', 1), ('priority2', 2), ('priority3', 3), ('priority4', 4), ('priority5', 5), ('priority6', 6), ('priority7', 7)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: zyVlanStackPortPriority.setStatus('current') zy_vlan_stack_tunnel_port_tpid = mib_table_column((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 2, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: zyVlanStackTunnelPortTpid.setStatus('current') zy_selective_qin_q_max_number_of_rules = mib_scalar((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zySelectiveQinQMaxNumberOfRules.setStatus('current') zyxel_selective_qin_q_table = mib_table((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4)) if mibBuilder.loadTexts: zyxelSelectiveQinQTable.setStatus('current') zyxel_selective_qin_q_entry = mib_table_row((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4, 1)).setIndexNames((0, 'ZYXEL-VLAN-STACK-MIB', 'zySelectiveQinQPort'), (0, 'ZYXEL-VLAN-STACK-MIB', 'zySelectiveQinQCvid')) if mibBuilder.loadTexts: zyxelSelectiveQinQEntry.setStatus('current') zy_selective_qin_q_name = mib_table_column((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4, 1, 1), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: zySelectiveQinQName.setStatus('current') zy_selective_qin_q_port = mib_table_column((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4, 1, 2), integer32()) if mibBuilder.loadTexts: zySelectiveQinQPort.setStatus('current') zy_selective_qin_q_cvid = mib_table_column((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4, 1, 3), integer32()) if mibBuilder.loadTexts: zySelectiveQinQCvid.setStatus('current') zy_selective_qin_q_spvid = mib_table_column((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: zySelectiveQinQSpvid.setStatus('current') zy_selective_qin_q_priority = mib_table_column((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('priority0', 0), ('priority1', 1), ('priority2', 2), ('priority3', 3), ('priority4', 4), ('priority5', 5), ('priority6', 6), ('priority7', 7)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: zySelectiveQinQPriority.setStatus('current') zy_selective_qin_q_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 890, 1, 15, 3, 89, 1, 4, 1, 6), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: zySelectiveQinQRowStatus.setStatus('current') mibBuilder.exportSymbols('ZYXEL-VLAN-STACK-MIB', zySelectiveQinQName=zySelectiveQinQName, zyVlanStackPortPriority=zyVlanStackPortPriority, zySelectiveQinQPriority=zySelectiveQinQPriority, zySelectiveQinQRowStatus=zySelectiveQinQRowStatus, PYSNMP_MODULE_ID=zyxelVlanStack, zySelectiveQinQMaxNumberOfRules=zySelectiveQinQMaxNumberOfRules, zyVlanStackTunnelPortTpid=zyVlanStackTunnelPortTpid, zyxelVlanStack=zyxelVlanStack, zyxelVlanStackPortTable=zyxelVlanStackPortTable, zyVlanStackPortMode=zyVlanStackPortMode, zyVlanStackState=zyVlanStackState, zyxelSelectiveQinQEntry=zyxelSelectiveQinQEntry, zySelectiveQinQPort=zySelectiveQinQPort, zySelectiveQinQSpvid=zySelectiveQinQSpvid, zyxelVlanStackSetup=zyxelVlanStackSetup, zyxelSelectiveQinQTable=zyxelSelectiveQinQTable, zySelectiveQinQCvid=zySelectiveQinQCvid, zyxelVlanStackPortEntry=zyxelVlanStackPortEntry, zyVlanStackPortVid=zyVlanStackPortVid)
html_data = ''' <div class="main-container container-sm"> <h3 class="text-center"> links for <a href=/abs/1987gady.book.....B/abstract><b>1987gady.book.....B</b></a></h3> <div class="list-group"> <div class="list-group-item"> <a href="http://arxiv.org/abs/1307.6556" class="title"> http://arxiv.org/abs/1307.6556 </a> </div> <div class="list-group-item"> <a href="http://arxiv.org/pdf/1307.6556" class="title"> http://arxiv.org/pdf/1307.6556 </a> </div> <div class="list-group-item"> <a href="http://dx.doi.org/10.1093%2Fmnras%2Fstt1379" class="title"> http://dx.doi.org/10.1093%2Fmnras%2Fstt1379 </a> </div> <div class="list-group-item"> <a href="http://mnras.oxfordjournals.org/content/435/3/1904.full.pdf" class="title"> http://mnras.oxfordjournals.org/content/435/3/1904.full.pdf </a> </div> </div> </div> '''
html_data = '\n <div class="main-container container-sm">\n \n <h3 class="text-center"> links for <a href=/abs/1987gady.book.....B/abstract><b>1987gady.book.....B</b></a></h3>\n <div class="list-group">\n \n <div class="list-group-item">\n <a href="http://arxiv.org/abs/1307.6556" class="title">\n http://arxiv.org/abs/1307.6556\n </a>\n \n </div>\n \n <div class="list-group-item">\n <a href="http://arxiv.org/pdf/1307.6556" class="title">\n http://arxiv.org/pdf/1307.6556\n </a>\n \n </div>\n \n <div class="list-group-item">\n <a href="http://dx.doi.org/10.1093%2Fmnras%2Fstt1379" class="title">\n http://dx.doi.org/10.1093%2Fmnras%2Fstt1379\n </a>\n \n </div>\n \n <div class="list-group-item">\n <a href="http://mnras.oxfordjournals.org/content/435/3/1904.full.pdf" class="title">\n http://mnras.oxfordjournals.org/content/435/3/1904.full.pdf\n </a>\n \n </div>\n \n </div>\n \n </div>\n'
def get_density(medium, temp_K): if medium == "water": A = 206.7 B = 7.01013 C = -0.0195311 D = 0.0000164685 elif medium == "glycol": #From Internet (2016/04/08) Propylene Glycol A = 1187.6 B = -0.3789 C = -0.0003 D = -0.0000007 else: return 0 water_density_kgPerCubicMeter = A + B * temp_K + C * pow(temp_K, 2) + D * pow(temp_K, 3) return water_density_kgPerCubicMeter def get_specific_heat_capacity(medium, temp_K): if medium == "water": A = 9014.9707450016 B = -41.0478625328587 C = 0.113903509102131 D = -0.000102766992663795 elif medium == "air": A = 1036.83233764257 B = -0.239217492121362 C = 0.000458498890346236 D = 0 elif medium == "vapor": A = 1936.0 B = -0.72 C = 0.0016 D = 0 elif medium == "glycol": #From Internet (2016/04/08) Propylene Glycol A = 717.05 B = 6.029 C = 0.000000000002 D = -0.000000000000002 else: return 0 heat_capacity_JPerkgKevin = A + B * temp_K + C * pow(temp_K, 2) + D * pow(temp_K, 3) return heat_capacity_JPerkgKevin def calculater_water_energy_flow_rate(water_flow_LPM, water_sup_temp_C, water_ret_temp_C, hw_or_chw): if hw_or_chw == 'chw': fraction_water_glycol = 0.9 else: fraction_water_glycol = 1 water_sup_temp_K = water_sup_temp_C + 273.15 water_ret_temp_K = water_ret_temp_C + 273.15 water_avg_temp_K = (water_sup_temp_K + water_ret_temp_K) * 0.5 water_diff_temp_K = water_sup_temp_K - water_ret_temp_K density_kgPerCubicMeter = fraction_water_glycol * get_density("water", water_avg_temp_K) + ( 1 - fraction_water_glycol) * get_density("glycol", water_avg_temp_K) mass_flow_rate_kgPerSec = water_flow_LPM * density_kgPerCubicMeter / 1000.0 / 60.0 heat_capacity_JPerkgKevin = fraction_water_glycol * get_specific_heat_capacity("water", water_avg_temp_K) + ( 1 - fraction_water_glycol) * get_specific_heat_capacity("glycol", water_avg_temp_K) power_W = heat_capacity_JPerkgKevin * mass_flow_rate_kgPerSec * water_diff_temp_K return power_W
def get_density(medium, temp_K): if medium == 'water': a = 206.7 b = 7.01013 c = -0.0195311 d = 1.64685e-05 elif medium == 'glycol': a = 1187.6 b = -0.3789 c = -0.0003 d = -7e-07 else: return 0 water_density_kg_per_cubic_meter = A + B * temp_K + C * pow(temp_K, 2) + D * pow(temp_K, 3) return water_density_kgPerCubicMeter def get_specific_heat_capacity(medium, temp_K): if medium == 'water': a = 9014.9707450016 b = -41.0478625328587 c = 0.113903509102131 d = -0.000102766992663795 elif medium == 'air': a = 1036.83233764257 b = -0.239217492121362 c = 0.000458498890346236 d = 0 elif medium == 'vapor': a = 1936.0 b = -0.72 c = 0.0016 d = 0 elif medium == 'glycol': a = 717.05 b = 6.029 c = 2e-12 d = -2e-15 else: return 0 heat_capacity_j_perkg_kevin = A + B * temp_K + C * pow(temp_K, 2) + D * pow(temp_K, 3) return heat_capacity_JPerkgKevin def calculater_water_energy_flow_rate(water_flow_LPM, water_sup_temp_C, water_ret_temp_C, hw_or_chw): if hw_or_chw == 'chw': fraction_water_glycol = 0.9 else: fraction_water_glycol = 1 water_sup_temp_k = water_sup_temp_C + 273.15 water_ret_temp_k = water_ret_temp_C + 273.15 water_avg_temp_k = (water_sup_temp_K + water_ret_temp_K) * 0.5 water_diff_temp_k = water_sup_temp_K - water_ret_temp_K density_kg_per_cubic_meter = fraction_water_glycol * get_density('water', water_avg_temp_K) + (1 - fraction_water_glycol) * get_density('glycol', water_avg_temp_K) mass_flow_rate_kg_per_sec = water_flow_LPM * density_kgPerCubicMeter / 1000.0 / 60.0 heat_capacity_j_perkg_kevin = fraction_water_glycol * get_specific_heat_capacity('water', water_avg_temp_K) + (1 - fraction_water_glycol) * get_specific_heat_capacity('glycol', water_avg_temp_K) power_w = heat_capacity_JPerkgKevin * mass_flow_rate_kgPerSec * water_diff_temp_K return power_W
class Sku: def __init__(self, sku, price, storage, shipping_fee, style_color, style_size, image_url, extra_image_list, weight=300): self.sku = sku self.price = price self.storage = storage self.shipping_fee = shipping_fee self.style_color = style_color self.style_size = style_size self.image_url = image_url self.weight = weight self.extra_image_list = extra_image_list class ProductImage: def __init__(self, resource_id, url, goods_sku_list, main_image, sku_image): self.resource_id = resource_id self.url = url self.goods_sku_list = goods_sku_list self.main_image = main_image self.sku_image = sku_image class Product: def __init__(self, product_id, cat_id, main_image, goods_name, goods_description, parent_sku, sku_list, image_list): self.id = product_id self.cat_id = cat_id self.main_image = main_image self.name = goods_name self.description = goods_description self.parent_sku = parent_sku self.sku_list = sku_list self.image_list = image_list class UploadStatus: def __init__(self, status, message, product_list): self.status = status self.message = message self.product_list = product_list class UploadProductDto: def __init__(self, cat_id, parent_sku, goods_sku, goods_name, storage, style_color, style_size, goods_description, shop_price, shipping_fee, shipping_weight, main_image, extra_image, extra_image_list): self.cat_id = cat_id self.parent_sku = parent_sku self.goods_sku = goods_sku self.goods_name = goods_name self.storage = storage self.style_color = style_color self.style_size = style_size self.goods_description = goods_description self.shop_price = shop_price self.shipping_fee = shipping_fee self.main_image = main_image self.shipping_weight = shipping_weight self.extra_image = extra_image self.extra_image_list = extra_image_list @staticmethod def from_product(product): dto_list = [] for sku in product.sku_list: dto = UploadProductDto(cat_id=product.cat_id, parent_sku=product.parent_sku, goods_sku=sku.sku, goods_name=product.name, goods_description=product.description, storage=999, style_color=sku.style_color, style_size=sku.style_size, shop_price=sku.price, shipping_fee=sku.shipping_fee, shipping_weight=sku.weight, main_image=product.main_image, extra_image=sku.image_url, extra_image_list=[img.url for img in product.image_list if not img.main_image and not img.sku_image]) dto_list.append(dto) return dto_list
class Sku: def __init__(self, sku, price, storage, shipping_fee, style_color, style_size, image_url, extra_image_list, weight=300): self.sku = sku self.price = price self.storage = storage self.shipping_fee = shipping_fee self.style_color = style_color self.style_size = style_size self.image_url = image_url self.weight = weight self.extra_image_list = extra_image_list class Productimage: def __init__(self, resource_id, url, goods_sku_list, main_image, sku_image): self.resource_id = resource_id self.url = url self.goods_sku_list = goods_sku_list self.main_image = main_image self.sku_image = sku_image class Product: def __init__(self, product_id, cat_id, main_image, goods_name, goods_description, parent_sku, sku_list, image_list): self.id = product_id self.cat_id = cat_id self.main_image = main_image self.name = goods_name self.description = goods_description self.parent_sku = parent_sku self.sku_list = sku_list self.image_list = image_list class Uploadstatus: def __init__(self, status, message, product_list): self.status = status self.message = message self.product_list = product_list class Uploadproductdto: def __init__(self, cat_id, parent_sku, goods_sku, goods_name, storage, style_color, style_size, goods_description, shop_price, shipping_fee, shipping_weight, main_image, extra_image, extra_image_list): self.cat_id = cat_id self.parent_sku = parent_sku self.goods_sku = goods_sku self.goods_name = goods_name self.storage = storage self.style_color = style_color self.style_size = style_size self.goods_description = goods_description self.shop_price = shop_price self.shipping_fee = shipping_fee self.main_image = main_image self.shipping_weight = shipping_weight self.extra_image = extra_image self.extra_image_list = extra_image_list @staticmethod def from_product(product): dto_list = [] for sku in product.sku_list: dto = upload_product_dto(cat_id=product.cat_id, parent_sku=product.parent_sku, goods_sku=sku.sku, goods_name=product.name, goods_description=product.description, storage=999, style_color=sku.style_color, style_size=sku.style_size, shop_price=sku.price, shipping_fee=sku.shipping_fee, shipping_weight=sku.weight, main_image=product.main_image, extra_image=sku.image_url, extra_image_list=[img.url for img in product.image_list if not img.main_image and (not img.sku_image)]) dto_list.append(dto) return dto_list
if 5<6: print('Linija1') print('Linija2') print("Linija3") print("Linija4") if 5>6: print("Linija1") print("Linija2") print("Linija3") print("Linija4")
if 5 < 6: print('Linija1') print('Linija2') print('Linija3') print('Linija4') if 5 > 6: print('Linija1') print('Linija2') print('Linija3') print('Linija4')
#!/usr/bin/env python3 # coding:utf-8 class Solution: def GetNumberOfK(self, data, k): if data == [] or k > data[-1]: return 0 left = 0 right = len(data) - 1 while left < right: mid = left + (right - left) // 2 if data[mid] < k: left = mid + 1 else: right = mid if data[left] != k: return 0 while left - 1 > 0 and data[left - 1] == k: left -= 1 while right + 1 < len(data) and data[right + 1] == k: right += 1 return right - left + 1 if __name__ == "__main__": data = [1, 3, 3, 3, 3, 4, 5] # k = 2 # k = 3 # k = 4 k = 6 s = Solution() ans = s.GetNumberOfK(data, k) print(ans)
class Solution: def get_number_of_k(self, data, k): if data == [] or k > data[-1]: return 0 left = 0 right = len(data) - 1 while left < right: mid = left + (right - left) // 2 if data[mid] < k: left = mid + 1 else: right = mid if data[left] != k: return 0 while left - 1 > 0 and data[left - 1] == k: left -= 1 while right + 1 < len(data) and data[right + 1] == k: right += 1 return right - left + 1 if __name__ == '__main__': data = [1, 3, 3, 3, 3, 4, 5] k = 6 s = solution() ans = s.GetNumberOfK(data, k) print(ans)
class FeedFormatter(object): def __init__(self): pass def format(self, contents): # To be overwritten by derived classes pass class PPrintFormatter(FeedFormatter): def __init__(self): super(PPrintFormatter, self).__init__() def format(self, contents): result = '' for content in contents: for key, value in content.items(): result += u'{}: {}\n'.format(key, value) result += u'\n' # A line padding between the entries return result class ListFormatter(FeedFormatter): def __init__(self): super(ListFormatter, self).__init__() def format(self, contents): result = '' for content in contents: for value in content.values(): result += u'{}\n'.format(value) return result
class Feedformatter(object): def __init__(self): pass def format(self, contents): pass class Pprintformatter(FeedFormatter): def __init__(self): super(PPrintFormatter, self).__init__() def format(self, contents): result = '' for content in contents: for (key, value) in content.items(): result += u'{}: {}\n'.format(key, value) result += u'\n' return result class Listformatter(FeedFormatter): def __init__(self): super(ListFormatter, self).__init__() def format(self, contents): result = '' for content in contents: for value in content.values(): result += u'{}\n'.format(value) return result
class Root(object): @property def greetings(self): return [ Greeting('mundo'), Greeting('world') ] class Greeting(object): def __init__(self, person): self.person = person
class Root(object): @property def greetings(self): return [greeting('mundo'), greeting('world')] class Greeting(object): def __init__(self, person): self.person = person
def _rec(origin, l1, target, l2): if not l1: return l2 elif not l2: return l1 a1 = _rec(origin, l1-1, target, l2) + 1 a2 = _rec(origin, l1, target, l2-1) + 1 a3 = _rec(origin, l1-1, target, l2-1) + \ (origin[l1 - 1] != target[l2 - 1]) return min(a1, a2, a3) def levenstein_r(origin, target): l1 = len(origin) l2 = len(target) return _rec(origin, l1, target, l2)
def _rec(origin, l1, target, l2): if not l1: return l2 elif not l2: return l1 a1 = _rec(origin, l1 - 1, target, l2) + 1 a2 = _rec(origin, l1, target, l2 - 1) + 1 a3 = _rec(origin, l1 - 1, target, l2 - 1) + (origin[l1 - 1] != target[l2 - 1]) return min(a1, a2, a3) def levenstein_r(origin, target): l1 = len(origin) l2 = len(target) return _rec(origin, l1, target, l2)
fichier = open("Rosetta/main/source/src/apps.src.settings","r") commands = fichier.readlines() fichier.close() commands = commands[:-1] + [" 'cifparse',\n"] + [commands[-1]] fichier = open("Rosetta/main/source/src/apps.src.settings","w") fichier.writelines(commands) fichier.close()
fichier = open('Rosetta/main/source/src/apps.src.settings', 'r') commands = fichier.readlines() fichier.close() commands = commands[:-1] + ["\t'cifparse',\n"] + [commands[-1]] fichier = open('Rosetta/main/source/src/apps.src.settings', 'w') fichier.writelines(commands) fichier.close()
project = "Textstat" master_doc = 'index' extensions = ['releases'] releases_github_path = 'shivam5992/textstat' releases_unstable_prehistory = True html_theme = 'alabaster' templates_path = [ '_templates', ] html_sidebars = { '**': [ 'about.html', 'navigation.html', 'relations.html', 'searchbox.html', 'contribute.html', ] } html_theme_options = { 'logo': 'textstat.png', 'logo_name': True, 'logo_text_align': 'center', 'github_user': 'shivam5992', 'github_repo': 'textstat', 'github_type': 'star', 'description': 'Calculate statistics from text', }
project = 'Textstat' master_doc = 'index' extensions = ['releases'] releases_github_path = 'shivam5992/textstat' releases_unstable_prehistory = True html_theme = 'alabaster' templates_path = ['_templates'] html_sidebars = {'**': ['about.html', 'navigation.html', 'relations.html', 'searchbox.html', 'contribute.html']} html_theme_options = {'logo': 'textstat.png', 'logo_name': True, 'logo_text_align': 'center', 'github_user': 'shivam5992', 'github_repo': 'textstat', 'github_type': 'star', 'description': 'Calculate statistics from text'}
# # PySNMP MIB module ROHC-RTP-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/ROHC-RTP-MIB # Produced by pysmi-0.0.7 at Sun Feb 14 00:27:06 2016 # On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose # Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52) # ( ObjectIdentifier, Integer, OctetString, ) = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") ( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ( ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion") ( rohcContextCID, rohcChannelID, ) = mibBuilder.importSymbols("ROHC-MIB", "rohcContextCID", "rohcChannelID") ( ObjectGroup, NotificationGroup, ModuleCompliance, ) = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance") ( Gauge32, IpAddress, mib_2, Unsigned32, Counter32, iso, MibIdentifier, TimeTicks, ModuleIdentity, Bits, Counter64, Integer32, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "IpAddress", "mib-2", "Unsigned32", "Counter32", "iso", "MibIdentifier", "TimeTicks", "ModuleIdentity", "Bits", "Counter64", "Integer32", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity") ( TruthValue, TextualConvention, DisplayString, ) = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "TextualConvention", "DisplayString") rohcRtpMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 114)).setRevisions(("2004-06-03 00:00",)) if mibBuilder.loadTexts: rohcRtpMIB.setLastUpdated('200406030000Z') if mibBuilder.loadTexts: rohcRtpMIB.setOrganization('IETF Robust Header Compression Working Group') if mibBuilder.loadTexts: rohcRtpMIB.setContactInfo('WG charter:\n http://www.ietf.org/html.charters/rohc-charter.html\n\n Mailing Lists:\n General Discussion: rohc@ietf.org\n To Subscribe: rohc-request@ietf.org\n In Body: subscribe your_email_address\n\n Editor:\n Juergen Quittek\n NEC Europe Ltd.\n Network Laboratories\n Kurfuersten-Anlage 36\n 69221 Heidelberg\n Germany\n Tel: +49 6221 90511-15\n EMail: quittek@netlab.nec.de') if mibBuilder.loadTexts: rohcRtpMIB.setDescription('This MIB module defines a set of objects for monitoring\n and configuring RObust Header Compression (ROHC).\n The objects are specific to ROHC RTP (profile 0x0001),\n ROHC UDP (profile 0x0002), and ROHC ESP (profile 0x0003)\n defined in RFC 3095 and for the ROHC LLA profile (profile\n 0x0005) defined in RFC 3242.\n\n Copyright (C) The Internet Society (2004). The\n initial version of this MIB module was published\n in RFC 3816. For full legal notices see the RFC\n itself or see:\n http://www.ietf.org/copyrights/ianamib.html') rohcRtpObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 114, 1)) rohcRtpConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 114, 2)) rohcRtpContextTable = MibTable((1, 3, 6, 1, 2, 1, 114, 1, 1), ) if mibBuilder.loadTexts: rohcRtpContextTable.setDescription('This table lists and describes RTP profile specific\n properties of compressor contexts and decompressor\n contexts. It extends the rohcContextTable of the\n ROHC-MIB module.') rohcRtpContextEntry = MibTableRow((1, 3, 6, 1, 2, 1, 114, 1, 1, 1), ).setIndexNames((0, "ROHC-MIB", "rohcChannelID"), (0, "ROHC-MIB", "rohcContextCID")) if mibBuilder.loadTexts: rohcRtpContextEntry.setDescription('An entry describing a particular context.') rohcRtpContextState = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6,))).clone(namedValues=NamedValues(("initAndRefresh", 1), ("firstOrder", 2), ("secondOrder", 3), ("noContext", 4), ("staticContext", 5), ("fullContext", 6),))).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextState.setDescription('State of the context as defined in RFC 3095. States\n initAndRefresh(1), firstOrder(2), and secondOrder(3)\n are states of compressor contexts, states noContext(4),\n staticContext(5) and fullContext(6) are states of\n decompressor contexts.') rohcRtpContextMode = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3,))).clone(namedValues=NamedValues(("unidirectional", 1), ("optimistic", 2), ("reliable", 3),))).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextMode.setDescription('Mode of the context.') rohcRtpContextAlwaysPad = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 5), TruthValue().clone('false')).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextAlwaysPad.setDescription('Boolean, only applicable to compressor contexts using the\n\n LLA profile. If its value is true, the compressor must\n pad every RHP packet with a minimum of one octet ROHC\n padding.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohcRtpContextLargePktsAllowed = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 6), TruthValue().clone('true')).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextLargePktsAllowed.setDescription('Boolean, only applicable to compressor contexts using the\n LLA profile. It specifies how to handle packets that do\n not fit any of the preferred packet sizes specified. If\n its value is true, the compressor must deliver the larger\n packet as-is and must not use segmentation. If it is set\n to false, the ROHC segmentation scheme must be used to\n split the packet into two or more segments, and each\n segment must further be padded to fit one of the preferred\n packet sizes.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohcRtpContextVerifyPeriod = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextVerifyPeriod.setDescription('This object is only applicable to compressor contexts\n using the LLA profile. It specifies the minimum frequency\n with which a packet validating the context must be sent.\n This tells the compressor that a packet containing a CRC\n\n field must be sent at least once every N packets, where N\n is the value of the object. A value of 0 indicates that\n periodical verifications are disabled.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohcRtpContextSizesAllowed = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextSizesAllowed.setDescription('The value of this object is only valid for decompressor\n contexts, i.e., if rohcInstanceType of the corresponding\n rohcContextEntry has the value decompressor(2). For\n compressor contexts where rohcInstanceType has the value\n compressor(1), this object MUST NOT be instantiated.\n\n This object contains the number of different packet sizes\n that may be used in the context.') rohcRtpContextSizesUsed = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextSizesUsed.setDescription('The value of this object is only valid for decompressor\n contexts, i.e., if rohcInstanceType of the corresponding\n rohcContextEntry has the value decompressor(2). For\n compressor contexts where rohcInstanceType has the value\n compressor(1), this object MUST NOT be instantiated.\n\n This object contains the number of different packet sizes\n that are used in the context.') rohcRtpContextACKs = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextACKs.setDescription('The number of all positive feedbacks (ACK) sent or\n received in this context, respectively.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.') rohcRtpContextNACKs = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextNACKs.setDescription('The number of all dynamic negative feedbacks (ACK) sent\n or received in this context, respectively.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.') rohcRtpContextSNACKs = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextSNACKs.setDescription('The number of all static negative feedbacks (ACK) sent\n or received in this context, respectively.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.') rohcRtpContextNHPs = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextNHPs.setDescription('This object is only applicable to contexts using the\n LLA profile. It contains the number of all no-header\n packets (NHP) sent or received in this context,\n respectively.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohcRtpContextCSPs = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextCSPs.setDescription('This object is only applicable to contexts using the\n LLA profile. It contains the number of all context\n synchronization packets (CSP) sent or received in this\n context, respectively.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohcRtpContextCCPs = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextCCPs.setDescription('This object is only applicable to contexts using the\n LLA profile. It contains the number of all context check\n packets (CCP) sent or received in this context,\n respectively.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohcRtpContextPktsLostPhysical = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextPktsLostPhysical.setDescription('This object is only applicable to decompressor contexts\n\n using the LLA profile. It contains the number of physical\n packet losses on the link between compressor and\n decompressor, that have been indicated to the decompressor.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohcRtpContextPktsLostPreLink = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpContextPktsLostPreLink.setDescription('This object is only applicable to decompressor contexts\n using the LLA profile. It contains the number of pre-link\n packet losses on the link between compressor and\n decompressor, that have been indicated to the decompressor.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohcRtpPacketSizeTable = MibTable((1, 3, 6, 1, 2, 1, 114, 1, 2), ) if mibBuilder.loadTexts: rohcRtpPacketSizeTable.setDescription('This table lists all allowed, preferred, and used packet\n sizes per compressor context and channel.\n\n Note, that the sizes table represents implementation\n parameters that are suggested by RFC 3095 and/or RFC 3242,\n but that are not mandatory.') rohcRtpPacketSizeEntry = MibTableRow((1, 3, 6, 1, 2, 1, 114, 1, 2, 1), ).setIndexNames((0, "ROHC-MIB", "rohcChannelID"), (0, "ROHC-MIB", "rohcContextCID"), (0, "ROHC-RTP-MIB", "rohcRtpPacketSize")) if mibBuilder.loadTexts: rohcRtpPacketSizeEntry.setDescription('An entry of a particular packet size.') rohcRtpPacketSize = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 2, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295))) if mibBuilder.loadTexts: rohcRtpPacketSize.setDescription('A packet size used as index.') rohcRtpPacketSizePreferred = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 2, 1, 4), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpPacketSizePreferred.setDescription('This object is only applicable to compressor contexts\n using the LLA profile. When retrieved, it will have\n the value true(1) if the packet size is preferred.\n Otherwise, its value will be false(2).\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohcRtpPacketSizeUsed = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 2, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpPacketSizeUsed.setDescription('This object is only applicable to compressor contexts\n using the UDP, RTP, or ESP profile. When retrieved,\n it will have the value true(1) if the packet size is\n used. Otherwise, its value will be false(2).\n\n The value of this object is only valid for UDP, RTP,\n and ESP profiles, i.e., if the corresponding rohcProfile\n has a value of either 0x0001, 0x0002 or 0x0003. If\n the corresponding rohcProfile has a value other than\n 0x0001, 0x0002 or 0x0003, then this object MUST NOT be\n instantiated.') rohcRtpPacketSizeRestrictedType = MibTableColumn((1, 3, 6, 1, 2, 1, 114, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3,))).clone(namedValues=NamedValues(("nhpOnly", 1), ("rhpOnly", 2), ("noRestrictions", 3),))).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcRtpPacketSizeRestrictedType.setDescription('This object is only applicable to preferred packet\n\n sizes of compressor contexts using the LLA profile.\n When retrieved, it will indicate whether the packet\n size is preferred for NHP only, for RHP only, or\n for both of them.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohcRtpCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 114, 2, 1)) rohcRtpGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 114, 2, 2)) rohcRtpCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 114, 2, 1, 1)).setObjects(*(("ROHC-RTP-MIB", "rohcRtpContextGroup"), ("ROHC-RTP-MIB", "rohcRtpPacketSizesGroup"), ("ROHC-RTP-MIB", "rohcRtpStatisticsGroup"),)) if mibBuilder.loadTexts: rohcRtpCompliance.setDescription('The compliance statement for SNMP entities that implement\n the ROHC-RTP-MIB.\n\n Note that compliance with this compliance\n statement requires compliance with the\n rohcCompliance MODULE-COMPLIANCE statement of the\n ROHC-MIB and with the ifCompliance3 MODULE-COMPLIANCE\n statement of the IF-MIB (RFC2863).') rohcRtpContextGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 114, 2, 2, 1)).setObjects(*(("ROHC-RTP-MIB", "rohcRtpContextState"), ("ROHC-RTP-MIB", "rohcRtpContextMode"), ("ROHC-RTP-MIB", "rohcRtpContextAlwaysPad"), ("ROHC-RTP-MIB", "rohcRtpContextLargePktsAllowed"), ("ROHC-RTP-MIB", "rohcRtpContextVerifyPeriod"),)) if mibBuilder.loadTexts: rohcRtpContextGroup.setDescription('A collection of objects providing information about\n ROHC RTP compressors and decompressors.') rohcRtpPacketSizesGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 114, 2, 2, 2)).setObjects(*(("ROHC-RTP-MIB", "rohcRtpContextSizesAllowed"), ("ROHC-RTP-MIB", "rohcRtpContextSizesUsed"), ("ROHC-RTP-MIB", "rohcRtpPacketSizePreferred"), ("ROHC-RTP-MIB", "rohcRtpPacketSizeUsed"), ("ROHC-RTP-MIB", "rohcRtpPacketSizeRestrictedType"),)) if mibBuilder.loadTexts: rohcRtpPacketSizesGroup.setDescription('A collection of objects providing information about\n allowed and used packet sizes at a ROHC RTP compressor.') rohcRtpStatisticsGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 114, 2, 2, 3)).setObjects(*(("ROHC-RTP-MIB", "rohcRtpContextACKs"), ("ROHC-RTP-MIB", "rohcRtpContextNACKs"), ("ROHC-RTP-MIB", "rohcRtpContextSNACKs"), ("ROHC-RTP-MIB", "rohcRtpContextNHPs"), ("ROHC-RTP-MIB", "rohcRtpContextCSPs"), ("ROHC-RTP-MIB", "rohcRtpContextCCPs"), ("ROHC-RTP-MIB", "rohcRtpContextPktsLostPhysical"), ("ROHC-RTP-MIB", "rohcRtpContextPktsLostPreLink"),)) if mibBuilder.loadTexts: rohcRtpStatisticsGroup.setDescription('A collection of objects providing ROHC compressor and\n decompressor statistics.') mibBuilder.exportSymbols("ROHC-RTP-MIB", rohcRtpPacketSizeTable=rohcRtpPacketSizeTable, rohcRtpPacketSizesGroup=rohcRtpPacketSizesGroup, rohcRtpContextCSPs=rohcRtpContextCSPs, rohcRtpPacketSize=rohcRtpPacketSize, rohcRtpObjects=rohcRtpObjects, rohcRtpCompliances=rohcRtpCompliances, rohcRtpContextGroup=rohcRtpContextGroup, rohcRtpContextNHPs=rohcRtpContextNHPs, rohcRtpContextAlwaysPad=rohcRtpContextAlwaysPad, rohcRtpPacketSizeRestrictedType=rohcRtpPacketSizeRestrictedType, rohcRtpContextPktsLostPreLink=rohcRtpContextPktsLostPreLink, rohcRtpContextVerifyPeriod=rohcRtpContextVerifyPeriod, rohcRtpContextCCPs=rohcRtpContextCCPs, rohcRtpContextACKs=rohcRtpContextACKs, PYSNMP_MODULE_ID=rohcRtpMIB, rohcRtpCompliance=rohcRtpCompliance, rohcRtpContextSNACKs=rohcRtpContextSNACKs, rohcRtpPacketSizeEntry=rohcRtpPacketSizeEntry, rohcRtpConformance=rohcRtpConformance, rohcRtpMIB=rohcRtpMIB, rohcRtpContextMode=rohcRtpContextMode, rohcRtpContextSizesAllowed=rohcRtpContextSizesAllowed, rohcRtpContextEntry=rohcRtpContextEntry, rohcRtpPacketSizeUsed=rohcRtpPacketSizeUsed, rohcRtpContextSizesUsed=rohcRtpContextSizesUsed, rohcRtpContextPktsLostPhysical=rohcRtpContextPktsLostPhysical, rohcRtpStatisticsGroup=rohcRtpStatisticsGroup, rohcRtpContextLargePktsAllowed=rohcRtpContextLargePktsAllowed, rohcRtpContextState=rohcRtpContextState, rohcRtpGroups=rohcRtpGroups, rohcRtpContextTable=rohcRtpContextTable, rohcRtpContextNACKs=rohcRtpContextNACKs, rohcRtpPacketSizePreferred=rohcRtpPacketSizePreferred)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, single_value_constraint, constraints_intersection, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion') (rohc_context_cid, rohc_channel_id) = mibBuilder.importSymbols('ROHC-MIB', 'rohcContextCID', 'rohcChannelID') (object_group, notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'NotificationGroup', 'ModuleCompliance') (gauge32, ip_address, mib_2, unsigned32, counter32, iso, mib_identifier, time_ticks, module_identity, bits, counter64, integer32, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'IpAddress', 'mib-2', 'Unsigned32', 'Counter32', 'iso', 'MibIdentifier', 'TimeTicks', 'ModuleIdentity', 'Bits', 'Counter64', 'Integer32', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity') (truth_value, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'TextualConvention', 'DisplayString') rohc_rtp_mib = module_identity((1, 3, 6, 1, 2, 1, 114)).setRevisions(('2004-06-03 00:00',)) if mibBuilder.loadTexts: rohcRtpMIB.setLastUpdated('200406030000Z') if mibBuilder.loadTexts: rohcRtpMIB.setOrganization('IETF Robust Header Compression Working Group') if mibBuilder.loadTexts: rohcRtpMIB.setContactInfo('WG charter:\n http://www.ietf.org/html.charters/rohc-charter.html\n\n Mailing Lists:\n General Discussion: rohc@ietf.org\n To Subscribe: rohc-request@ietf.org\n In Body: subscribe your_email_address\n\n Editor:\n Juergen Quittek\n NEC Europe Ltd.\n Network Laboratories\n Kurfuersten-Anlage 36\n 69221 Heidelberg\n Germany\n Tel: +49 6221 90511-15\n EMail: quittek@netlab.nec.de') if mibBuilder.loadTexts: rohcRtpMIB.setDescription('This MIB module defines a set of objects for monitoring\n and configuring RObust Header Compression (ROHC).\n The objects are specific to ROHC RTP (profile 0x0001),\n ROHC UDP (profile 0x0002), and ROHC ESP (profile 0x0003)\n defined in RFC 3095 and for the ROHC LLA profile (profile\n 0x0005) defined in RFC 3242.\n\n Copyright (C) The Internet Society (2004). The\n initial version of this MIB module was published\n in RFC 3816. For full legal notices see the RFC\n itself or see:\n http://www.ietf.org/copyrights/ianamib.html') rohc_rtp_objects = mib_identifier((1, 3, 6, 1, 2, 1, 114, 1)) rohc_rtp_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 114, 2)) rohc_rtp_context_table = mib_table((1, 3, 6, 1, 2, 1, 114, 1, 1)) if mibBuilder.loadTexts: rohcRtpContextTable.setDescription('This table lists and describes RTP profile specific\n properties of compressor contexts and decompressor\n contexts. It extends the rohcContextTable of the\n ROHC-MIB module.') rohc_rtp_context_entry = mib_table_row((1, 3, 6, 1, 2, 1, 114, 1, 1, 1)).setIndexNames((0, 'ROHC-MIB', 'rohcChannelID'), (0, 'ROHC-MIB', 'rohcContextCID')) if mibBuilder.loadTexts: rohcRtpContextEntry.setDescription('An entry describing a particular context.') rohc_rtp_context_state = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('initAndRefresh', 1), ('firstOrder', 2), ('secondOrder', 3), ('noContext', 4), ('staticContext', 5), ('fullContext', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextState.setDescription('State of the context as defined in RFC 3095. States\n initAndRefresh(1), firstOrder(2), and secondOrder(3)\n are states of compressor contexts, states noContext(4),\n staticContext(5) and fullContext(6) are states of\n decompressor contexts.') rohc_rtp_context_mode = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unidirectional', 1), ('optimistic', 2), ('reliable', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextMode.setDescription('Mode of the context.') rohc_rtp_context_always_pad = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 5), truth_value().clone('false')).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextAlwaysPad.setDescription('Boolean, only applicable to compressor contexts using the\n\n LLA profile. If its value is true, the compressor must\n pad every RHP packet with a minimum of one octet ROHC\n padding.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohc_rtp_context_large_pkts_allowed = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 6), truth_value().clone('true')).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextLargePktsAllowed.setDescription('Boolean, only applicable to compressor contexts using the\n LLA profile. It specifies how to handle packets that do\n not fit any of the preferred packet sizes specified. If\n its value is true, the compressor must deliver the larger\n packet as-is and must not use segmentation. If it is set\n to false, the ROHC segmentation scheme must be used to\n split the packet into two or more segments, and each\n segment must further be padded to fit one of the preferred\n packet sizes.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohc_rtp_context_verify_period = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 7), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextVerifyPeriod.setDescription('This object is only applicable to compressor contexts\n using the LLA profile. It specifies the minimum frequency\n with which a packet validating the context must be sent.\n This tells the compressor that a packet containing a CRC\n\n field must be sent at least once every N packets, where N\n is the value of the object. A value of 0 indicates that\n periodical verifications are disabled.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohc_rtp_context_sizes_allowed = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextSizesAllowed.setDescription('The value of this object is only valid for decompressor\n contexts, i.e., if rohcInstanceType of the corresponding\n rohcContextEntry has the value decompressor(2). For\n compressor contexts where rohcInstanceType has the value\n compressor(1), this object MUST NOT be instantiated.\n\n This object contains the number of different packet sizes\n that may be used in the context.') rohc_rtp_context_sizes_used = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextSizesUsed.setDescription('The value of this object is only valid for decompressor\n contexts, i.e., if rohcInstanceType of the corresponding\n rohcContextEntry has the value decompressor(2). For\n compressor contexts where rohcInstanceType has the value\n compressor(1), this object MUST NOT be instantiated.\n\n This object contains the number of different packet sizes\n that are used in the context.') rohc_rtp_context_ac_ks = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextACKs.setDescription('The number of all positive feedbacks (ACK) sent or\n received in this context, respectively.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.') rohc_rtp_context_nac_ks = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextNACKs.setDescription('The number of all dynamic negative feedbacks (ACK) sent\n or received in this context, respectively.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.') rohc_rtp_context_snac_ks = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextSNACKs.setDescription('The number of all static negative feedbacks (ACK) sent\n or received in this context, respectively.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.') rohc_rtp_context_nh_ps = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextNHPs.setDescription('This object is only applicable to contexts using the\n LLA profile. It contains the number of all no-header\n packets (NHP) sent or received in this context,\n respectively.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohc_rtp_context_cs_ps = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextCSPs.setDescription('This object is only applicable to contexts using the\n LLA profile. It contains the number of all context\n synchronization packets (CSP) sent or received in this\n context, respectively.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohc_rtp_context_cc_ps = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextCCPs.setDescription('This object is only applicable to contexts using the\n LLA profile. It contains the number of all context check\n packets (CCP) sent or received in this context,\n respectively.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohc_rtp_context_pkts_lost_physical = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextPktsLostPhysical.setDescription('This object is only applicable to decompressor contexts\n\n using the LLA profile. It contains the number of physical\n packet losses on the link between compressor and\n decompressor, that have been indicated to the decompressor.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohc_rtp_context_pkts_lost_pre_link = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpContextPktsLostPreLink.setDescription('This object is only applicable to decompressor contexts\n using the LLA profile. It contains the number of pre-link\n packet losses on the link between compressor and\n decompressor, that have been indicated to the decompressor.\n\n Discontinuities in the value of this counter can\n occur at re-initialization of the management\n system, and at other times as indicated by the\n value of ifCounterDiscontinuityTime. For checking\n ifCounterDiscontinuityTime, the interface index is\n required. It can be determined by reading the\n rohcChannelTable of the ROHC-MIB.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohc_rtp_packet_size_table = mib_table((1, 3, 6, 1, 2, 1, 114, 1, 2)) if mibBuilder.loadTexts: rohcRtpPacketSizeTable.setDescription('This table lists all allowed, preferred, and used packet\n sizes per compressor context and channel.\n\n Note, that the sizes table represents implementation\n parameters that are suggested by RFC 3095 and/or RFC 3242,\n but that are not mandatory.') rohc_rtp_packet_size_entry = mib_table_row((1, 3, 6, 1, 2, 1, 114, 1, 2, 1)).setIndexNames((0, 'ROHC-MIB', 'rohcChannelID'), (0, 'ROHC-MIB', 'rohcContextCID'), (0, 'ROHC-RTP-MIB', 'rohcRtpPacketSize')) if mibBuilder.loadTexts: rohcRtpPacketSizeEntry.setDescription('An entry of a particular packet size.') rohc_rtp_packet_size = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 2, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))) if mibBuilder.loadTexts: rohcRtpPacketSize.setDescription('A packet size used as index.') rohc_rtp_packet_size_preferred = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 2, 1, 4), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpPacketSizePreferred.setDescription('This object is only applicable to compressor contexts\n using the LLA profile. When retrieved, it will have\n the value true(1) if the packet size is preferred.\n Otherwise, its value will be false(2).\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohc_rtp_packet_size_used = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 2, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpPacketSizeUsed.setDescription('This object is only applicable to compressor contexts\n using the UDP, RTP, or ESP profile. When retrieved,\n it will have the value true(1) if the packet size is\n used. Otherwise, its value will be false(2).\n\n The value of this object is only valid for UDP, RTP,\n and ESP profiles, i.e., if the corresponding rohcProfile\n has a value of either 0x0001, 0x0002 or 0x0003. If\n the corresponding rohcProfile has a value other than\n 0x0001, 0x0002 or 0x0003, then this object MUST NOT be\n instantiated.') rohc_rtp_packet_size_restricted_type = mib_table_column((1, 3, 6, 1, 2, 1, 114, 1, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('nhpOnly', 1), ('rhpOnly', 2), ('noRestrictions', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcRtpPacketSizeRestrictedType.setDescription('This object is only applicable to preferred packet\n\n sizes of compressor contexts using the LLA profile.\n When retrieved, it will indicate whether the packet\n size is preferred for NHP only, for RHP only, or\n for both of them.\n\n The value of this object is only valid for LLA profiles,\n i.e., if the corresponding rohcProfile has a value of\n 0x0005. If the corresponding rohcProfile has a value\n other than 0x0005, then this object MUST NOT be\n instantiated.') rohc_rtp_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 114, 2, 1)) rohc_rtp_groups = mib_identifier((1, 3, 6, 1, 2, 1, 114, 2, 2)) rohc_rtp_compliance = module_compliance((1, 3, 6, 1, 2, 1, 114, 2, 1, 1)).setObjects(*(('ROHC-RTP-MIB', 'rohcRtpContextGroup'), ('ROHC-RTP-MIB', 'rohcRtpPacketSizesGroup'), ('ROHC-RTP-MIB', 'rohcRtpStatisticsGroup'))) if mibBuilder.loadTexts: rohcRtpCompliance.setDescription('The compliance statement for SNMP entities that implement\n the ROHC-RTP-MIB.\n\n Note that compliance with this compliance\n statement requires compliance with the\n rohcCompliance MODULE-COMPLIANCE statement of the\n ROHC-MIB and with the ifCompliance3 MODULE-COMPLIANCE\n statement of the IF-MIB (RFC2863).') rohc_rtp_context_group = object_group((1, 3, 6, 1, 2, 1, 114, 2, 2, 1)).setObjects(*(('ROHC-RTP-MIB', 'rohcRtpContextState'), ('ROHC-RTP-MIB', 'rohcRtpContextMode'), ('ROHC-RTP-MIB', 'rohcRtpContextAlwaysPad'), ('ROHC-RTP-MIB', 'rohcRtpContextLargePktsAllowed'), ('ROHC-RTP-MIB', 'rohcRtpContextVerifyPeriod'))) if mibBuilder.loadTexts: rohcRtpContextGroup.setDescription('A collection of objects providing information about\n ROHC RTP compressors and decompressors.') rohc_rtp_packet_sizes_group = object_group((1, 3, 6, 1, 2, 1, 114, 2, 2, 2)).setObjects(*(('ROHC-RTP-MIB', 'rohcRtpContextSizesAllowed'), ('ROHC-RTP-MIB', 'rohcRtpContextSizesUsed'), ('ROHC-RTP-MIB', 'rohcRtpPacketSizePreferred'), ('ROHC-RTP-MIB', 'rohcRtpPacketSizeUsed'), ('ROHC-RTP-MIB', 'rohcRtpPacketSizeRestrictedType'))) if mibBuilder.loadTexts: rohcRtpPacketSizesGroup.setDescription('A collection of objects providing information about\n allowed and used packet sizes at a ROHC RTP compressor.') rohc_rtp_statistics_group = object_group((1, 3, 6, 1, 2, 1, 114, 2, 2, 3)).setObjects(*(('ROHC-RTP-MIB', 'rohcRtpContextACKs'), ('ROHC-RTP-MIB', 'rohcRtpContextNACKs'), ('ROHC-RTP-MIB', 'rohcRtpContextSNACKs'), ('ROHC-RTP-MIB', 'rohcRtpContextNHPs'), ('ROHC-RTP-MIB', 'rohcRtpContextCSPs'), ('ROHC-RTP-MIB', 'rohcRtpContextCCPs'), ('ROHC-RTP-MIB', 'rohcRtpContextPktsLostPhysical'), ('ROHC-RTP-MIB', 'rohcRtpContextPktsLostPreLink'))) if mibBuilder.loadTexts: rohcRtpStatisticsGroup.setDescription('A collection of objects providing ROHC compressor and\n decompressor statistics.') mibBuilder.exportSymbols('ROHC-RTP-MIB', rohcRtpPacketSizeTable=rohcRtpPacketSizeTable, rohcRtpPacketSizesGroup=rohcRtpPacketSizesGroup, rohcRtpContextCSPs=rohcRtpContextCSPs, rohcRtpPacketSize=rohcRtpPacketSize, rohcRtpObjects=rohcRtpObjects, rohcRtpCompliances=rohcRtpCompliances, rohcRtpContextGroup=rohcRtpContextGroup, rohcRtpContextNHPs=rohcRtpContextNHPs, rohcRtpContextAlwaysPad=rohcRtpContextAlwaysPad, rohcRtpPacketSizeRestrictedType=rohcRtpPacketSizeRestrictedType, rohcRtpContextPktsLostPreLink=rohcRtpContextPktsLostPreLink, rohcRtpContextVerifyPeriod=rohcRtpContextVerifyPeriod, rohcRtpContextCCPs=rohcRtpContextCCPs, rohcRtpContextACKs=rohcRtpContextACKs, PYSNMP_MODULE_ID=rohcRtpMIB, rohcRtpCompliance=rohcRtpCompliance, rohcRtpContextSNACKs=rohcRtpContextSNACKs, rohcRtpPacketSizeEntry=rohcRtpPacketSizeEntry, rohcRtpConformance=rohcRtpConformance, rohcRtpMIB=rohcRtpMIB, rohcRtpContextMode=rohcRtpContextMode, rohcRtpContextSizesAllowed=rohcRtpContextSizesAllowed, rohcRtpContextEntry=rohcRtpContextEntry, rohcRtpPacketSizeUsed=rohcRtpPacketSizeUsed, rohcRtpContextSizesUsed=rohcRtpContextSizesUsed, rohcRtpContextPktsLostPhysical=rohcRtpContextPktsLostPhysical, rohcRtpStatisticsGroup=rohcRtpStatisticsGroup, rohcRtpContextLargePktsAllowed=rohcRtpContextLargePktsAllowed, rohcRtpContextState=rohcRtpContextState, rohcRtpGroups=rohcRtpGroups, rohcRtpContextTable=rohcRtpContextTable, rohcRtpContextNACKs=rohcRtpContextNACKs, rohcRtpPacketSizePreferred=rohcRtpPacketSizePreferred)
name = 'help' cmdhelp = 'Display help' ### def init_parser(parser): return def main(cnsapp, args): '''Stub that actually does nothing''' pass
name = 'help' cmdhelp = 'Display help' def init_parser(parser): return def main(cnsapp, args): """Stub that actually does nothing""" pass
config = {} def process_adapter_message(message): type = message.get("type", None) if type == "initialize": return __initialize__() elif type == "set_state": return __set_state__(message) return { "type": "exception.not_supported", "origin_type": type } def __initialize__(): return { "type": "success", "supports_brightness": True, "supports_color": True } def __set_state__(message): power_state = message.get("power_state", "off") brightness = message.get("brightness", 100) color = message.get("color", "#ffffff") if power_state != "on": mqtt_message = config.get("turn_off_message", None) topic = mqtt_message.get("topic", None) payload = mqtt_message.get("payload", None) __send_mqtt_message__(topic, payload) return {"type": "success"} max_pwm_value = config.get("max_pwm_value", 255) mqtt_message = config.get("set_color_message", None) topic = mqtt_message.get("topic", None) payload = mqtt_message.get("payload_template", None) # Convert HEX to RGB hex = color.lstrip("#") r, g, b = tuple(int(hex[i:i+2], 16) for i in (0, 2, 4)) # Apply brightness to RGB r = r * (brightness / 100) g = g * (brightness / 100) b = b * (brightness / 100) payload = payload.replace("{r}", str(absolute_value(r, max_pwm_value))) payload = payload.replace("{g}", str(absolute_value(g, max_pwm_value))) payload = payload.replace("{b}", str(absolute_value(b, max_pwm_value))) return __send_mqtt_message__(topic, payload) def __send_mqtt_message__(topic, payload): parameters = { "topic": topic, "payload": payload } # Inspect response when RPC is available. # Or wait for special message. wirehome.mqtt.publish(parameters) return {"type": "success"} def absolute_value(value, max_value): if value <= 0: return 0 if value >= 255: return max_value result = (value / 255.0) * max_value return int(result)
config = {} def process_adapter_message(message): type = message.get('type', None) if type == 'initialize': return __initialize__() elif type == 'set_state': return __set_state__(message) return {'type': 'exception.not_supported', 'origin_type': type} def __initialize__(): return {'type': 'success', 'supports_brightness': True, 'supports_color': True} def __set_state__(message): power_state = message.get('power_state', 'off') brightness = message.get('brightness', 100) color = message.get('color', '#ffffff') if power_state != 'on': mqtt_message = config.get('turn_off_message', None) topic = mqtt_message.get('topic', None) payload = mqtt_message.get('payload', None) __send_mqtt_message__(topic, payload) return {'type': 'success'} max_pwm_value = config.get('max_pwm_value', 255) mqtt_message = config.get('set_color_message', None) topic = mqtt_message.get('topic', None) payload = mqtt_message.get('payload_template', None) hex = color.lstrip('#') (r, g, b) = tuple((int(hex[i:i + 2], 16) for i in (0, 2, 4))) r = r * (brightness / 100) g = g * (brightness / 100) b = b * (brightness / 100) payload = payload.replace('{r}', str(absolute_value(r, max_pwm_value))) payload = payload.replace('{g}', str(absolute_value(g, max_pwm_value))) payload = payload.replace('{b}', str(absolute_value(b, max_pwm_value))) return __send_mqtt_message__(topic, payload) def __send_mqtt_message__(topic, payload): parameters = {'topic': topic, 'payload': payload} wirehome.mqtt.publish(parameters) return {'type': 'success'} def absolute_value(value, max_value): if value <= 0: return 0 if value >= 255: return max_value result = value / 255.0 * max_value return int(result)
# Where You Came From [Kaiser] (25808) recoveredMemory = 7081 sm.flipDialoguePlayerAsSpeaker() sm.sendNext("Memories... Memories from when? When I became Kaiser?") sm.sendSay("No, that's not good enough. Tear... Velderoth... " "We were young and naive, but we believed. That was my beginning. " "That was when I learned to fight for what I loved.") sm.sendSay("Maybe Velderoth and I can be friends again one day, maybe not, " "but I'll never forget the time I spent training with him.") sm.sendSay("(Recalling your memories has given you a healthier perspective on life.)") sm.startQuest(parentID) sm.completeQuest(parentID) sm.startQuest(recoveredMemory) sm.setQRValue(recoveredMemory, "1", False)
recovered_memory = 7081 sm.flipDialoguePlayerAsSpeaker() sm.sendNext('Memories... Memories from when? When I became Kaiser?') sm.sendSay("No, that's not good enough. Tear... Velderoth... We were young and naive, but we believed. That was my beginning. That was when I learned to fight for what I loved.") sm.sendSay("Maybe Velderoth and I can be friends again one day, maybe not, but I'll never forget the time I spent training with him.") sm.sendSay('(Recalling your memories has given you a healthier perspective on life.)') sm.startQuest(parentID) sm.completeQuest(parentID) sm.startQuest(recoveredMemory) sm.setQRValue(recoveredMemory, '1', False)
# use functions to break down the code def create_matrix(rows): result = [] for _ in range(rows): result.append(input().split()) return result def in_range(indices, rows_range, columns_range): is_in_range = True r_1, c_1, r_2, c_2 = indices if not r_1 in rows_range or not r_2 in rows_range: is_in_range = False if not c_1 in columns_range or not c_2 in columns_range: is_in_range = False return is_in_range def is_valid(command, rows, columns): rows_range = range(0, rows) columns_range = range(0, columns) is_valid = True if not command.startswith("swap"): is_valid = False else: command = command.split() if not len(command) == 5: is_valid = False else: indices = [int(el) for el in command[1:len(command)]] if not in_range(indices, rows_range, columns_range): is_valid = False return is_valid def execute_command(matrix, indices): r_1, c_1, r_2, c_2 = indices matrix[r_1][c_1], matrix[r_2][c_2] = matrix[r_2][c_2], matrix[r_1][c_1] for el in matrix: print(*el, sep=" ") rows, columns = [int(el) for el in input().split()] matrix = create_matrix(rows) while True: command = input() if command == "END": break else: if is_valid(command, rows, columns): indices = [int(el) for el in command.split()[1:len(command)]] execute_command(matrix, indices) else: print("Invalid input!")
def create_matrix(rows): result = [] for _ in range(rows): result.append(input().split()) return result def in_range(indices, rows_range, columns_range): is_in_range = True (r_1, c_1, r_2, c_2) = indices if not r_1 in rows_range or not r_2 in rows_range: is_in_range = False if not c_1 in columns_range or not c_2 in columns_range: is_in_range = False return is_in_range def is_valid(command, rows, columns): rows_range = range(0, rows) columns_range = range(0, columns) is_valid = True if not command.startswith('swap'): is_valid = False else: command = command.split() if not len(command) == 5: is_valid = False else: indices = [int(el) for el in command[1:len(command)]] if not in_range(indices, rows_range, columns_range): is_valid = False return is_valid def execute_command(matrix, indices): (r_1, c_1, r_2, c_2) = indices (matrix[r_1][c_1], matrix[r_2][c_2]) = (matrix[r_2][c_2], matrix[r_1][c_1]) for el in matrix: print(*el, sep=' ') (rows, columns) = [int(el) for el in input().split()] matrix = create_matrix(rows) while True: command = input() if command == 'END': break elif is_valid(command, rows, columns): indices = [int(el) for el in command.split()[1:len(command)]] execute_command(matrix, indices) else: print('Invalid input!')
# # file: power_of_ten.py # # Report if the input is a power of ten and, if so, its exponent. # # Pipe the output of primes10.frac to this program to see the progression # of 10**prime. # # RTK, 05-Apr-2021 # Last update: 05-Apr-2021 # ################################################################ def isPowerOfTen(d): s = str(d) z = s.count("0") p = len(s)-1 return ((s[0] == "1") and (z == p)), p while (True): try: d = int(input()) except: exit(0) ok, p = isPowerOfTen(d) if (ok): print("10**%d" % (p,), flush=True)
def is_power_of_ten(d): s = str(d) z = s.count('0') p = len(s) - 1 return (s[0] == '1' and z == p, p) while True: try: d = int(input()) except: exit(0) (ok, p) = is_power_of_ten(d) if ok: print('10**%d' % (p,), flush=True)
def binary_search(arr, val): min = 0 max = len(arr) - 1 while True: if max < min: return -1 mid = (min + max) // 2 if arr[mid] < val: min = mid + 1 elif arr[mid] > val: max = mid - 1 else: return mid
def binary_search(arr, val): min = 0 max = len(arr) - 1 while True: if max < min: return -1 mid = (min + max) // 2 if arr[mid] < val: min = mid + 1 elif arr[mid] > val: max = mid - 1 else: return mid
MAX_SIZE = 71 MAX_NUMBER = 2**32 matrix = [[0 for _ in range(MAX_SIZE)] for _ in range(MAX_SIZE)] for i in range(MAX_SIZE): matrix[i][0] = 1 matrix[1][i] = 1 for i in range(2, MAX_SIZE): for j in range(1, MAX_SIZE): sum = matrix[i][j-1] + matrix[i-1][j] matrix[i][j] = sum if sum < MAX_NUMBER else MAX_NUMBER k = int(input()) for i in range(k): n, t, p = map(int, input().split()) t -= n * p print(matrix[n][t])
max_size = 71 max_number = 2 ** 32 matrix = [[0 for _ in range(MAX_SIZE)] for _ in range(MAX_SIZE)] for i in range(MAX_SIZE): matrix[i][0] = 1 matrix[1][i] = 1 for i in range(2, MAX_SIZE): for j in range(1, MAX_SIZE): sum = matrix[i][j - 1] + matrix[i - 1][j] matrix[i][j] = sum if sum < MAX_NUMBER else MAX_NUMBER k = int(input()) for i in range(k): (n, t, p) = map(int, input().split()) t -= n * p print(matrix[n][t])
class DLinkedList: def __init__(self, def_value='B'): self.default_val = def_value self.curr = Node(val=self.default_val) @property def data(self): return self.curr.value @data.setter def data(self, val): self.curr.value = val def get_to_left_end(self): while not(self.curr.left is None): self.curr = self.curr.left def get_to_right_end(self): while not(self.curr.right is None): self.curr = self.curr.right def left_step(self): if self.curr.left is None: left = Node(val=self.default_val) left.right = self.curr self.curr.left = left self.curr = self.curr.left def right_step(self): if self.curr.right is None: right = Node(val=self.default_val) right.left = self.curr self.curr.right = right self.curr = self.curr.right def __str__(self): temp = self.curr while not (temp.left is None): temp = temp.left str_res = '[' while not(temp is None): str_res += f"'{temp.value}'" temp = temp.right if not(temp is None): str_res += ', ' str_res += ']' return str_res class Node: def __init__(self, val=None): self.value = val self.left = None self.right = None
class Dlinkedlist: def __init__(self, def_value='B'): self.default_val = def_value self.curr = node(val=self.default_val) @property def data(self): return self.curr.value @data.setter def data(self, val): self.curr.value = val def get_to_left_end(self): while not self.curr.left is None: self.curr = self.curr.left def get_to_right_end(self): while not self.curr.right is None: self.curr = self.curr.right def left_step(self): if self.curr.left is None: left = node(val=self.default_val) left.right = self.curr self.curr.left = left self.curr = self.curr.left def right_step(self): if self.curr.right is None: right = node(val=self.default_val) right.left = self.curr self.curr.right = right self.curr = self.curr.right def __str__(self): temp = self.curr while not temp.left is None: temp = temp.left str_res = '[' while not temp is None: str_res += f"'{temp.value}'" temp = temp.right if not temp is None: str_res += ', ' str_res += ']' return str_res class Node: def __init__(self, val=None): self.value = val self.left = None self.right = None
def heapify(array, current, heap_size): left = 2 * current + 1 right = 2 * current + 2 if left <= heap_size and array[left] > array[current]: largest = left else: largest = current if right <= heap_size and array[right] > array[largest]: largest = right if largest != current: array[current], array[largest] = array[largest], array[current] heapify(array, largest, heap_size) def build_heap(array, heap_size): for i in range((len(array) - 1) // 2, -1, -1): heapify(array, i, heap_size) def heapsort(array): heap_size = len(array) - 1 build_heap(array, heap_size) for i in range(heap_size, 0, -1): array[0], array[i] = array[i], array[0] heap_size -= 1 heapify(array, 0, heap_size) fin = open("sort.in") fout = open("sort.out", "w") n = int(fin.readline()) array = list(map(int, fin.readline().split())) heapsort(array) for i in range(n): print(array[i], file=fout, end=" ") fin.close() fout.close()
def heapify(array, current, heap_size): left = 2 * current + 1 right = 2 * current + 2 if left <= heap_size and array[left] > array[current]: largest = left else: largest = current if right <= heap_size and array[right] > array[largest]: largest = right if largest != current: (array[current], array[largest]) = (array[largest], array[current]) heapify(array, largest, heap_size) def build_heap(array, heap_size): for i in range((len(array) - 1) // 2, -1, -1): heapify(array, i, heap_size) def heapsort(array): heap_size = len(array) - 1 build_heap(array, heap_size) for i in range(heap_size, 0, -1): (array[0], array[i]) = (array[i], array[0]) heap_size -= 1 heapify(array, 0, heap_size) fin = open('sort.in') fout = open('sort.out', 'w') n = int(fin.readline()) array = list(map(int, fin.readline().split())) heapsort(array) for i in range(n): print(array[i], file=fout, end=' ') fin.close() fout.close()
global variables, localspace if str(variables.get("DOCKER_ENABLED")).lower() == 'true': # Be aware, that the prefix command is internally split by spaces. So paths with spaces won't work. # Prepare Docker parameters containerName = variables.get("DOCKER_IMAGE") dockerRunCommand = 'docker run ' dockerParameters = '--rm ' # Prepare ProActive home volume paHomeHost = variables.get("PA_SCHEDULER_HOME") paHomeContainer = variables.get("PA_SCHEDULER_HOME") proActiveHomeVolume = '-v ' + paHomeHost + ':' + paHomeContainer + ' ' # Prepare working directory (For Dataspaces and serialized task file) workspaceHost = localspace workspaceContainer = localspace workspaceVolume = '-v ' + localspace + ':' + localspace + ' ' # Prepare container working directory containerWorkingDirectory = '-w '+workspaceContainer+' ' # Save pre execution command into magic variable 'preJavaHomeCmd', which is picked up by the node preJavaHomeCmd = dockerRunCommand + dockerParameters + proActiveHomeVolume + workspaceVolume + containerWorkingDirectory + containerName else: print("Fork environment disabled")
global variables, localspace if str(variables.get('DOCKER_ENABLED')).lower() == 'true': container_name = variables.get('DOCKER_IMAGE') docker_run_command = 'docker run ' docker_parameters = '--rm ' pa_home_host = variables.get('PA_SCHEDULER_HOME') pa_home_container = variables.get('PA_SCHEDULER_HOME') pro_active_home_volume = '-v ' + paHomeHost + ':' + paHomeContainer + ' ' workspace_host = localspace workspace_container = localspace workspace_volume = '-v ' + localspace + ':' + localspace + ' ' container_working_directory = '-w ' + workspaceContainer + ' ' pre_java_home_cmd = dockerRunCommand + dockerParameters + proActiveHomeVolume + workspaceVolume + containerWorkingDirectory + containerName else: print('Fork environment disabled')
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, '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.367117, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.635715, '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.3646, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.36743, '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.36288, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.58889, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0133083, '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.0962357, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.098423, '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.0962357, 'Execution Unit/Register Files/Runtime Dynamic': 0.111731, '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.232545, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.699999, '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': 2.78723, '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.0025787, '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.0025787, '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.00228506, '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.000905925, '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.00141385, '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.00885632, '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.0233303, '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.0946165, '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.01842, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.319883, '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.32136, '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.53349, 'Instruction Fetch Unit/Runtime Dynamic': 0.768047, '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.0724055, 'L2/Runtime Dynamic': 0.0203402, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 4.43171, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.56223, '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.103353, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.103353, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.92175, 'Load Store Unit/Runtime Dynamic': 2.17528, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.25485, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.5097, '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.0904471, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0915305, '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.374203, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0524519, '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.689068, 'Memory Management Unit/Runtime Dynamic': 0.143982, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 24.3673, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, '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.0187724, '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.195423, '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.214196, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 6.10907, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, '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.236481, '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.381434, '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.192535, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.81045, '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.270466, '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.35221, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00991905, '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.0717274, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0733575, '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.0717274, 'Execution Unit/Register Files/Runtime Dynamic': 0.0832765, '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.15111, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.453276, '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': 1.95507, '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.00196549, '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.00196549, '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.00174907, '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.000697398, '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.00105379, '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.00673384, '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.0175185, '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.0705204, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.48571, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.237088, '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.239519, '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': 6.92192, 'Instruction Fetch Unit/Runtime Dynamic': 0.57138, '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.0537837, 'L2/Runtime Dynamic': 0.0145847, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.58563, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.14772, '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.07598, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.07598, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.94443, 'Load Store Unit/Runtime Dynamic': 1.5984, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.187354, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.374708, '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.0664924, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0672969, '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.278905, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0388766, '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.549236, 'Memory Management Unit/Runtime Dynamic': 0.106174, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.411, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, '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.0106693, '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.123013, '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.133683, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.37929, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, '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.237057, '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.382365, '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.193005, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.812427, '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.271124, '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.3535, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00994325, '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.0719021, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0735364, '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.0719021, 'Execution Unit/Register Files/Runtime Dynamic': 0.0834797, '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.151478, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.451428, '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': 1.9554, '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.00195622, '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.00195622, '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.00174089, '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.000694174, '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.00105636, '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.00670969, '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.0174334, '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.0706924, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.49665, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.238337, '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.240103, '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': 6.93339, 'Instruction Fetch Unit/Runtime Dynamic': 0.573276, '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.0562062, 'L2/Runtime Dynamic': 0.0159433, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.56969, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.14185, '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.0754641, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.075464, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.92604, 'Load Store Unit/Runtime Dynamic': 1.58948, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.186082, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.372163, '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.066041, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0668819, '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.279585, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0390807, '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.549141, 'Memory Management Unit/Runtime Dynamic': 0.105963, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.4078, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, '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.0106954, '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.123347, '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.134042, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.3741, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, '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.239923, '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.386987, '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.195338, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.822248, '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.274404, '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.35992, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0100634, '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.0727718, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0744254, '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.0727718, 'Execution Unit/Register Files/Runtime Dynamic': 0.0844888, '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.15331, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.45823, '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': 1.97303, '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.00195125, '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.00195125, '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.0017352, '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.000691234, '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.00106913, '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.00670683, '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.017434, '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.071547, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.551, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.238625, '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.243006, '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': 6.99039, 'Instruction Fetch Unit/Runtime Dynamic': 0.577319, '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.0578399, 'L2/Runtime Dynamic': 0.0162495, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.60772, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.16145, '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.0766944, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0766945, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.96988, 'Load Store Unit/Runtime Dynamic': 1.61638, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.189115, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.378231, '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.0671177, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0679836, '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.282965, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0391273, '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.55437, 'Memory Management Unit/Runtime Dynamic': 0.107111, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.5219, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, '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.0108247, '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.124893, '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.135718, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.42581, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 1.3390361895736473, 'Runtime Dynamic': 1.3390361895736473, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.281523, 'Runtime Dynamic': 0.180024, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 82.9895, 'Peak Power': 116.102, 'Runtime Dynamic': 19.4683, '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': 82.708, 'Total Cores/Runtime Dynamic': 19.2883, '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.281523, 'Total L3s/Runtime Dynamic': 0.180024, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, '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.367117, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.635715, '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.3646, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.36743, '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.36288, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.58889, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0133083, '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.0962357, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.098423, '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.0962357, 'Execution Unit/Register Files/Runtime Dynamic': 0.111731, '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.232545, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.699999, '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': 2.78723, '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.0025787, '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.0025787, '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.00228506, '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.000905925, '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.00141385, '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.00885632, '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.0233303, '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.0946165, '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.01842, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.319883, '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.32136, '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.53349, 'Instruction Fetch Unit/Runtime Dynamic': 0.768047, '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.0724055, 'L2/Runtime Dynamic': 0.0203402, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 4.43171, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.56223, '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.103353, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.103353, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.92175, 'Load Store Unit/Runtime Dynamic': 2.17528, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.25485, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.5097, '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.0904471, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0915305, '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.374203, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0524519, '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.689068, 'Memory Management Unit/Runtime Dynamic': 0.143982, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 24.3673, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, '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.0187724, '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.195423, '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.214196, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 6.10907, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, '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.236481, '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.381434, '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.192535, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.81045, '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.270466, '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.35221, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00991905, '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.0717274, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0733575, '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.0717274, 'Execution Unit/Register Files/Runtime Dynamic': 0.0832765, '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.15111, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.453276, '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': 1.95507, '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.00196549, '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.00196549, '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.00174907, '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.000697398, '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.00105379, '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.00673384, '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.0175185, '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.0705204, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.48571, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.237088, '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.239519, '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': 6.92192, 'Instruction Fetch Unit/Runtime Dynamic': 0.57138, '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.0537837, 'L2/Runtime Dynamic': 0.0145847, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.58563, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.14772, '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.07598, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.07598, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.94443, 'Load Store Unit/Runtime Dynamic': 1.5984, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.187354, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.374708, '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.0664924, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0672969, '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.278905, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0388766, '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.549236, 'Memory Management Unit/Runtime Dynamic': 0.106174, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.411, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, '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.0106693, '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.123013, '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.133683, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.37929, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, '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.237057, '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.382365, '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.193005, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.812427, '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.271124, '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.3535, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00994325, '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.0719021, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0735364, '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.0719021, 'Execution Unit/Register Files/Runtime Dynamic': 0.0834797, '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.151478, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.451428, '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': 1.9554, '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.00195622, '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.00195622, '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.00174089, '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.000694174, '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.00105636, '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.00670969, '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.0174334, '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.0706924, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.49665, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.238337, '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.240103, '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': 6.93339, 'Instruction Fetch Unit/Runtime Dynamic': 0.573276, '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.0562062, 'L2/Runtime Dynamic': 0.0159433, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.56969, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.14185, '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.0754641, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.075464, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.92604, 'Load Store Unit/Runtime Dynamic': 1.58948, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.186082, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.372163, '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.066041, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0668819, '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.279585, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0390807, '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.549141, 'Memory Management Unit/Runtime Dynamic': 0.105963, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.4078, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, '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.0106954, '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.123347, '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.134042, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.3741, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, '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.239923, '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.386987, '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.195338, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.822248, '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.274404, '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.35992, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0100634, '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.0727718, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0744254, '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.0727718, 'Execution Unit/Register Files/Runtime Dynamic': 0.0844888, '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.15331, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.45823, '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': 1.97303, '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.00195125, '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.00195125, '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.0017352, '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.000691234, '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.00106913, '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.00670683, '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.017434, '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.071547, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.551, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.238625, '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.243006, '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': 6.99039, 'Instruction Fetch Unit/Runtime Dynamic': 0.577319, '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.0578399, 'L2/Runtime Dynamic': 0.0162495, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.60772, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.16145, '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.0766944, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0766945, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.96988, 'Load Store Unit/Runtime Dynamic': 1.61638, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.189115, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.378231, '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.0671177, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0679836, '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.282965, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0391273, '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.55437, 'Memory Management Unit/Runtime Dynamic': 0.107111, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.5219, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, '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.0108247, '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.124893, '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.135718, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.42581, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 1.3390361895736473, 'Runtime Dynamic': 1.3390361895736473, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.281523, 'Runtime Dynamic': 0.180024, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 82.9895, 'Peak Power': 116.102, 'Runtime Dynamic': 19.4683, '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': 82.708, 'Total Cores/Runtime Dynamic': 19.2883, '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.281523, 'Total L3s/Runtime Dynamic': 0.180024, '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}}
class Cart: turn_list = ["<", "|", ">"] directions = {"left":"<", "right":">", "upp":"^", "down":"v"} def __init__(self, x, y, direction): self.x = x self.y = y self.direction = direction self.cross_count = 0 self.crashed = False def __lt__(self, other): return (self.y, self.x) < (other.y, other.x) def __le__(self, other): return (self.y, self.x) <= (other.y, other.x) def __gt__(self, other): return (self.y, self.x) > (other.y, other.x) def __ge__(self, other): return (self.y, self.x) >= (other.y, other.x) def get_coordinates(self): return self.x, self.y def cart_crash(self, other): self.crashed = True other.crashed = True def is_crashed(self): return self.crashed def get_direction(self): return self.direction def intersect_rotate(self): if self.cross_count % 3 == 1: # No change pass elif self.direction == "<": if self.cross_count % 3 == 0: self.direction = "v" elif self.cross_count % 3 == 2: self.direction = "^" elif self.direction == "v": if self.cross_count % 3 == 0: self.direction = ">" elif self.cross_count % 3 == 2: self.direction = "<" elif self.direction == ">": if self.cross_count % 3 == 0: self.direction = "^" elif self.cross_count % 3 == 2: self.direction = "v" elif self.direction == "^": if self.cross_count % 3 == 0: self.direction = "<" elif self.cross_count % 3 == 2: self.direction = ">" self.cross_count += 1 def move_forward(self): if self.direction == ">": self.x += 1 elif self.direction == "<": self.x -= 1 elif self.direction == "^": self.y -= 1 elif self.direction == "v": self.y += 1 def turn_rotate(self, turn): if turn == "/": if self.direction == ">": self.direction = "^" elif self.direction == "<": self.direction = "v" elif self.direction == "^": self.direction = ">" elif self.direction == "v": self.direction = "<" elif turn == "\\": if self.direction == ">": self.direction = "v" elif self.direction == "<": self.direction = "^" elif self.direction == "^": self.direction = "<" elif self.direction == "v": self.direction = ">"
class Cart: turn_list = ['<', '|', '>'] directions = {'left': '<', 'right': '>', 'upp': '^', 'down': 'v'} def __init__(self, x, y, direction): self.x = x self.y = y self.direction = direction self.cross_count = 0 self.crashed = False def __lt__(self, other): return (self.y, self.x) < (other.y, other.x) def __le__(self, other): return (self.y, self.x) <= (other.y, other.x) def __gt__(self, other): return (self.y, self.x) > (other.y, other.x) def __ge__(self, other): return (self.y, self.x) >= (other.y, other.x) def get_coordinates(self): return (self.x, self.y) def cart_crash(self, other): self.crashed = True other.crashed = True def is_crashed(self): return self.crashed def get_direction(self): return self.direction def intersect_rotate(self): if self.cross_count % 3 == 1: pass elif self.direction == '<': if self.cross_count % 3 == 0: self.direction = 'v' elif self.cross_count % 3 == 2: self.direction = '^' elif self.direction == 'v': if self.cross_count % 3 == 0: self.direction = '>' elif self.cross_count % 3 == 2: self.direction = '<' elif self.direction == '>': if self.cross_count % 3 == 0: self.direction = '^' elif self.cross_count % 3 == 2: self.direction = 'v' elif self.direction == '^': if self.cross_count % 3 == 0: self.direction = '<' elif self.cross_count % 3 == 2: self.direction = '>' self.cross_count += 1 def move_forward(self): if self.direction == '>': self.x += 1 elif self.direction == '<': self.x -= 1 elif self.direction == '^': self.y -= 1 elif self.direction == 'v': self.y += 1 def turn_rotate(self, turn): if turn == '/': if self.direction == '>': self.direction = '^' elif self.direction == '<': self.direction = 'v' elif self.direction == '^': self.direction = '>' elif self.direction == 'v': self.direction = '<' elif turn == '\\': if self.direction == '>': self.direction = 'v' elif self.direction == '<': self.direction = '^' elif self.direction == '^': self.direction = '<' elif self.direction == 'v': self.direction = '>'
try: with open('input.txt', 'r') as myinputfile: print('how about here?') for line in myinputfile: print(line) except FileNotFoundError: print('That file does not exist') print('Execution never gets here')
try: with open('input.txt', 'r') as myinputfile: print('how about here?') for line in myinputfile: print(line) except FileNotFoundError: print('That file does not exist') print('Execution never gets here')
class SearchaniseException(Exception): def __init__(self, message): super(SearchaniseException, self).__init__(message) class PSAWException(Exception): def __init__(self, message): super(PSAWException, self).__init__(message)
class Searchaniseexception(Exception): def __init__(self, message): super(SearchaniseException, self).__init__(message) class Psawexception(Exception): def __init__(self, message): super(PSAWException, self).__init__(message)
# Copyright (C) 2019 GreenWaves Technologies # All rights reserved. # This software may be modified and distributed under the terms # of the BSD license. See the LICENSE file for details. quote = lambda s: '"'+s+'"' class CodeBlock(): def __init__(self, starting_indent=0, indent_char=" "): self._indent = starting_indent self._indent_char = indent_char self._lines = [] def indent(self): self._indent += 1 return self def deindent(self): self._indent -= 1 return self def get_indent(self): return self._indent_char * self._indent # pylint: disable=invalid-name def nl(self): self._lines.append("") return self def append_last(self, fmt, *args): last = self._lines[-1].rstrip() self._lines[-1] = last + fmt.format(*args) def write(self, fmt, *args): fmt = self.get_indent() + fmt self._lines.append(fmt.format(*args)) return self def write_start(self, fmt, *args): fmt = self.get_indent() + fmt self._lines.insert(0, fmt.format(*args)) return self def comment(self, fmt, *args): fmt = self.get_indent() + '// ' + fmt self._lines.append(fmt.format(*args)) return self def __str__(self): return '\n'.join(self._lines)
quote = lambda s: '"' + s + '"' class Codeblock: def __init__(self, starting_indent=0, indent_char=' '): self._indent = starting_indent self._indent_char = indent_char self._lines = [] def indent(self): self._indent += 1 return self def deindent(self): self._indent -= 1 return self def get_indent(self): return self._indent_char * self._indent def nl(self): self._lines.append('') return self def append_last(self, fmt, *args): last = self._lines[-1].rstrip() self._lines[-1] = last + fmt.format(*args) def write(self, fmt, *args): fmt = self.get_indent() + fmt self._lines.append(fmt.format(*args)) return self def write_start(self, fmt, *args): fmt = self.get_indent() + fmt self._lines.insert(0, fmt.format(*args)) return self def comment(self, fmt, *args): fmt = self.get_indent() + '// ' + fmt self._lines.append(fmt.format(*args)) return self def __str__(self): return '\n'.join(self._lines)
def minSwaps(arr): count = 0 for i in range(len(arr)): val = arr[i] if val == i + 1: continue for j in range(i + 1, len(arr)): if arr[j] != i+1: continue arr[i] = arr[j] arr[j] = val count += 1 return count
def min_swaps(arr): count = 0 for i in range(len(arr)): val = arr[i] if val == i + 1: continue for j in range(i + 1, len(arr)): if arr[j] != i + 1: continue arr[i] = arr[j] arr[j] = val count += 1 return count
def log(parser,logic,logging,args=0): if args: options = args.keys() if "freq" in options: try: sec = int(args["freq"][0]) logging.freq = sec except: parser.print("-freq: "+str(args["freq"][0])+" could not cast to integer") if "k" in options: if "o" in options: operator = args["o"][0] else: operator = [] if "f" in options: filename = args["f"][0] else: filename = None logging.new_task(args["k"],operator,filename) if "e" in options: for n in args["e"]: try: i = int(n) except: parser.print(n+": could not cast to integer") continue r = logging.end_task(i) if r: parser.print("Loggingtask:"+n+" terminated") else: parser.print("Loggingtask:"+n+" could not be terminated") else: logging.print_tasks()
def log(parser, logic, logging, args=0): if args: options = args.keys() if 'freq' in options: try: sec = int(args['freq'][0]) logging.freq = sec except: parser.print('-freq: ' + str(args['freq'][0]) + ' could not cast to integer') if 'k' in options: if 'o' in options: operator = args['o'][0] else: operator = [] if 'f' in options: filename = args['f'][0] else: filename = None logging.new_task(args['k'], operator, filename) if 'e' in options: for n in args['e']: try: i = int(n) except: parser.print(n + ': could not cast to integer') continue r = logging.end_task(i) if r: parser.print('Loggingtask:' + n + ' terminated') else: parser.print('Loggingtask:' + n + ' could not be terminated') else: logging.print_tasks()
number = 1024 # using map() to separate each element and store it in a list digit_list = list(map(int, str(number))) print(digit_list) # Using list comprehension digit_list2 = [int(a) for a in str(number)] print(digit_list2) # Simplest approach digit_list3 = list(str(number)) print(digit_list3)
number = 1024 digit_list = list(map(int, str(number))) print(digit_list) digit_list2 = [int(a) for a in str(number)] print(digit_list2) digit_list3 = list(str(number)) print(digit_list3)
# -*- coding: utf-8 -*- myName = input("Please enter your name: ") myAge = input("What about your age: ") print ("Hello World, my name is", myName, "and I am", myAge, "years old.") print ('''Hello World. My name is James and I am 20 years old.''')
my_name = input('Please enter your name: ') my_age = input('What about your age: ') print('Hello World, my name is', myName, 'and I am', myAge, 'years old.') print('Hello World.\nMy name is James and\nI am 20 years old.')
# coding=utf-8 class Thumb(object): _engine = None def __init__(self, url='', key=None, fullpath=None): self.url = url self.key = key self.fullpath = fullpath def __nonzero__(self): return bool(self.url) def __bool__(self): return bool(self.url) def as_dict(self): return { 'url': self.url, 'key': self.key, } def __repr__(self): return self.url
class Thumb(object): _engine = None def __init__(self, url='', key=None, fullpath=None): self.url = url self.key = key self.fullpath = fullpath def __nonzero__(self): return bool(self.url) def __bool__(self): return bool(self.url) def as_dict(self): return {'url': self.url, 'key': self.key} def __repr__(self): return self.url
def lengthOfLongestSubstring(s: str) -> int: left = length = 0 visited = dict() for pos, char in enumerate(s): if char in visited and visited[char] >= left: left = visited[char] + 1 else: length = max(length, pos - left + 1) visited[char] = pos return length # def lengthOfLongestSubstring(s: str) -> int: # left = pos = length = 0 # visited = dict() # while pos < len(s): # if visited.__contains__(s[pos]): # left = max(visited.get(s[pos]), left) # length = max(length, pos - left + 1) # visited[s[pos]] = pos + 1 # pos += 1 # return length if __name__ == "__main__": print(lengthOfLongestSubstring(input()))
def length_of_longest_substring(s: str) -> int: left = length = 0 visited = dict() for (pos, char) in enumerate(s): if char in visited and visited[char] >= left: left = visited[char] + 1 else: length = max(length, pos - left + 1) visited[char] = pos return length if __name__ == '__main__': print(length_of_longest_substring(input()))
# 1. Greeting print("Welcome to Jeon's blind auction program!") print( "&& Rule: In the blind auction, if there are identical bid with one item, the winner is the first person who input his/her bid!" ) # 2. Ask name bid_log_dictionary = {} # 2-1. Creat function that checks if it is a valid name def name_check(name): name_check = list(name) while "." in name_check: name_check.remove(".") while " " in name_check: name_check.remove(" ") list_to_string = "" list_to_string = list_to_string.join(name_check) return list_to_string.isalpha() while True: # 2-2. Ask name name = input("Please input your name\n") name_check(name) # 2-3. Check if the name is valid. # 2-3-1. Check if the name is already existed on the dictionary. while name in bid_log_dictionary: name = input("The name is already used. Please input another name\n") # 2-3-2. Check if the name is comprised with Alphabet. while name_check(name) != True: name = input("Please input Alphabet and period only.\n") # 3. Ask bid and add to the dictionary. bid = input(f"{name}, what's your bid? \n$ ") # 3-1. Convert bid to list and remove "." and "," to check if the bid is valid number. bid_check = list(bid) while "." in bid_check: bid_check.remove(".") while "," in bid_check: bid_check.remove(",") bid_check_to_string = "" bid_check_to_string = bid_check_to_string.join(bid_check) while bid_check_to_string.isdigit() == False: bid = input("Please input your bid with numbers only.\n$ ") # 3-3 Add inputs to the dictionry. bid_log_dictionary[name] = bid # 4. Ask if there is another participant. another_participant = input("Are there any other participant? (Y/N)\n") # 4-1. Check if the input is valid. while another_participant.lower() not in ("yes", "y", "no", "n"): another_participant = input("Please input valid answer. (Y/N)\n") # 5. If the answer is Y, go to 2-2 if another_participant.lower() in ("yes", "y"): continue elif another_participant.lower() in ("no", "n"): break # 6. Determine a bid winner and reveal him/her with bid. bid_winner = max(bid_log_dictionary) print(f"The winner is {bid_winner} with $ {bid}!")
print("Welcome to Jeon's blind auction program!") print('&& Rule: In the blind auction, if there are identical bid with one item, the winner is the first person who input his/her bid!') bid_log_dictionary = {} def name_check(name): name_check = list(name) while '.' in name_check: name_check.remove('.') while ' ' in name_check: name_check.remove(' ') list_to_string = '' list_to_string = list_to_string.join(name_check) return list_to_string.isalpha() while True: name = input('Please input your name\n') name_check(name) while name in bid_log_dictionary: name = input('The name is already used. Please input another name\n') while name_check(name) != True: name = input('Please input Alphabet and period only.\n') bid = input(f"{name}, what's your bid? \n$ ") bid_check = list(bid) while '.' in bid_check: bid_check.remove('.') while ',' in bid_check: bid_check.remove(',') bid_check_to_string = '' bid_check_to_string = bid_check_to_string.join(bid_check) while bid_check_to_string.isdigit() == False: bid = input('Please input your bid with numbers only.\n$ ') bid_log_dictionary[name] = bid another_participant = input('Are there any other participant? (Y/N)\n') while another_participant.lower() not in ('yes', 'y', 'no', 'n'): another_participant = input('Please input valid answer. (Y/N)\n') if another_participant.lower() in ('yes', 'y'): continue elif another_participant.lower() in ('no', 'n'): break bid_winner = max(bid_log_dictionary) print(f'The winner is {bid_winner} with $ {bid}!')
# # PySNMP MIB module DIAL-CONTROL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DIAL-CONTROL-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 16:52:54 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection") IANAifType, = mibBuilder.importSymbols("IANAifType-MIB", "IANAifType") ifOperStatus, InterfaceIndex, InterfaceIndexOrZero, ifIndex = mibBuilder.importSymbols("IF-MIB", "ifOperStatus", "InterfaceIndex", "InterfaceIndexOrZero", "ifIndex") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") transmission, ModuleIdentity, Bits, Gauge32, Counter64, iso, IpAddress, Integer32, MibIdentifier, Counter32, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, TimeTicks, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "transmission", "ModuleIdentity", "Bits", "Gauge32", "Counter64", "iso", "IpAddress", "Integer32", "MibIdentifier", "Counter32", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "TimeTicks", "ObjectIdentity") RowStatus, TimeStamp, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "TimeStamp", "DisplayString", "TextualConvention") dialControlMib = ModuleIdentity((1, 3, 6, 1, 2, 1, 10, 21)) if mibBuilder.loadTexts: dialControlMib.setLastUpdated('9609231544Z') if mibBuilder.loadTexts: dialControlMib.setOrganization('IETF ISDN Working Group') class AbsoluteCounter32(TextualConvention, Unsigned32): status = 'current' dialControlMibObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 21, 1)) dialCtlConfiguration = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 21, 1, 1)) dialCtlAcceptMode = MibScalar((1, 3, 6, 1, 2, 1, 10, 21, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("acceptNone", 1), ("acceptAll", 2), ("acceptKnown", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: dialCtlAcceptMode.setStatus('current') dialCtlTrapEnable = MibScalar((1, 3, 6, 1, 2, 1, 10, 21, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: dialCtlTrapEnable.setStatus('current') dialCtlPeer = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 21, 1, 2)) dialCtlPeerCfgTable = MibTable((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1), ) if mibBuilder.loadTexts: dialCtlPeerCfgTable.setStatus('current') dialCtlPeerCfgEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1), ).setIndexNames((0, "DIAL-CONTROL-MIB", "dialCtlPeerCfgId"), (0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: dialCtlPeerCfgEntry.setStatus('current') dialCtlPeerCfgId = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: dialCtlPeerCfgId.setStatus('current') dialCtlPeerCfgIfType = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 2), IANAifType().clone('other')).setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgIfType.setStatus('current') dialCtlPeerCfgLowerIf = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 3), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgLowerIf.setStatus('current') dialCtlPeerCfgOriginateAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 4), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgOriginateAddress.setStatus('current') dialCtlPeerCfgAnswerAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 5), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgAnswerAddress.setStatus('current') dialCtlPeerCfgSubAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 6), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgSubAddress.setStatus('current') dialCtlPeerCfgClosedUserGroup = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 7), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgClosedUserGroup.setStatus('current') dialCtlPeerCfgSpeed = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgSpeed.setStatus('current') dialCtlPeerCfgInfoType = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("other", 1), ("speech", 2), ("unrestrictedDigital", 3), ("unrestrictedDigital56", 4), ("restrictedDigital", 5), ("audio31", 6), ("audio7", 7), ("video", 8), ("packetSwitched", 9), ("fax", 10))).clone('other')).setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgInfoType.setStatus('current') dialCtlPeerCfgPermission = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("originate", 1), ("answer", 2), ("both", 3), ("callback", 4), ("none", 5))).clone('both')).setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgPermission.setStatus('current') dialCtlPeerCfgInactivityTimer = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setUnits('seconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgInactivityTimer.setStatus('current') dialCtlPeerCfgMinDuration = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgMinDuration.setStatus('current') dialCtlPeerCfgMaxDuration = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgMaxDuration.setStatus('current') dialCtlPeerCfgCarrierDelay = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setUnits('seconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgCarrierDelay.setStatus('current') dialCtlPeerCfgCallRetries = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgCallRetries.setStatus('current') dialCtlPeerCfgRetryDelay = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setUnits('seconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgRetryDelay.setStatus('current') dialCtlPeerCfgFailureDelay = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setUnits('seconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgFailureDelay.setStatus('current') dialCtlPeerCfgTrapEnable = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgTrapEnable.setStatus('current') dialCtlPeerCfgStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 19), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: dialCtlPeerCfgStatus.setStatus('current') dialCtlPeerStatsTable = MibTable((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2), ) if mibBuilder.loadTexts: dialCtlPeerStatsTable.setStatus('current') dialCtlPeerStatsEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1), ) dialCtlPeerCfgEntry.registerAugmentions(("DIAL-CONTROL-MIB", "dialCtlPeerStatsEntry")) dialCtlPeerStatsEntry.setIndexNames(*dialCtlPeerCfgEntry.getIndexNames()) if mibBuilder.loadTexts: dialCtlPeerStatsEntry.setStatus('current') dialCtlPeerStatsConnectTime = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 1), AbsoluteCounter32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: dialCtlPeerStatsConnectTime.setStatus('current') dialCtlPeerStatsChargedUnits = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 2), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dialCtlPeerStatsChargedUnits.setStatus('current') dialCtlPeerStatsSuccessCalls = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 3), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dialCtlPeerStatsSuccessCalls.setStatus('current') dialCtlPeerStatsFailCalls = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 4), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dialCtlPeerStatsFailCalls.setStatus('current') dialCtlPeerStatsAcceptCalls = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 5), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dialCtlPeerStatsAcceptCalls.setStatus('current') dialCtlPeerStatsRefuseCalls = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 6), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dialCtlPeerStatsRefuseCalls.setStatus('current') dialCtlPeerStatsLastDisconnectCause = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: dialCtlPeerStatsLastDisconnectCause.setStatus('current') dialCtlPeerStatsLastDisconnectText = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 8), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: dialCtlPeerStatsLastDisconnectText.setStatus('current') dialCtlPeerStatsLastSetupTime = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 9), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: dialCtlPeerStatsLastSetupTime.setStatus('current') callActive = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 21, 1, 3)) callActiveTable = MibTable((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1), ) if mibBuilder.loadTexts: callActiveTable.setStatus('current') callActiveEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1), ).setIndexNames((0, "DIAL-CONTROL-MIB", "callActiveSetupTime"), (0, "DIAL-CONTROL-MIB", "callActiveIndex")) if mibBuilder.loadTexts: callActiveEntry.setStatus('current') callActiveSetupTime = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 1), TimeStamp()) if mibBuilder.loadTexts: callActiveSetupTime.setStatus('current') callActiveIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: callActiveIndex.setStatus('current') callActivePeerAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: callActivePeerAddress.setStatus('current') callActivePeerSubAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: callActivePeerSubAddress.setStatus('current') callActivePeerId = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: callActivePeerId.setStatus('current') callActivePeerIfIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: callActivePeerIfIndex.setStatus('current') callActiveLogicalIfIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 7), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: callActiveLogicalIfIndex.setStatus('current') callActiveConnectTime = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 8), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: callActiveConnectTime.setStatus('current') callActiveCallState = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 1), ("connecting", 2), ("connected", 3), ("active", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: callActiveCallState.setStatus('current') callActiveCallOrigin = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("originate", 1), ("answer", 2), ("callback", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: callActiveCallOrigin.setStatus('current') callActiveChargedUnits = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 11), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: callActiveChargedUnits.setStatus('current') callActiveInfoType = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("other", 1), ("speech", 2), ("unrestrictedDigital", 3), ("unrestrictedDigital56", 4), ("restrictedDigital", 5), ("audio31", 6), ("audio7", 7), ("video", 8), ("packetSwitched", 9), ("fax", 10)))).setMaxAccess("readonly") if mibBuilder.loadTexts: callActiveInfoType.setStatus('current') callActiveTransmitPackets = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 13), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: callActiveTransmitPackets.setStatus('current') callActiveTransmitBytes = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 14), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: callActiveTransmitBytes.setStatus('current') callActiveReceivePackets = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 15), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: callActiveReceivePackets.setStatus('current') callActiveReceiveBytes = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 16), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: callActiveReceiveBytes.setStatus('current') callHistory = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 21, 1, 4)) callHistoryTableMaxLength = MibScalar((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: callHistoryTableMaxLength.setStatus('current') callHistoryRetainTimer = MibScalar((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setUnits('minutes').setMaxAccess("readwrite") if mibBuilder.loadTexts: callHistoryRetainTimer.setStatus('current') callHistoryTable = MibTable((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3), ) if mibBuilder.loadTexts: callHistoryTable.setStatus('current') callHistoryEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1), ).setIndexNames((0, "DIAL-CONTROL-MIB", "callActiveSetupTime"), (0, "DIAL-CONTROL-MIB", "callActiveIndex")) if mibBuilder.loadTexts: callHistoryEntry.setStatus('current') callHistoryPeerAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryPeerAddress.setStatus('current') callHistoryPeerSubAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryPeerSubAddress.setStatus('current') callHistoryPeerId = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryPeerId.setStatus('current') callHistoryPeerIfIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryPeerIfIndex.setStatus('current') callHistoryLogicalIfIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 5), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryLogicalIfIndex.setStatus('current') callHistoryDisconnectCause = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryDisconnectCause.setStatus('current') callHistoryDisconnectText = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryDisconnectText.setStatus('current') callHistoryConnectTime = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 8), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryConnectTime.setStatus('current') callHistoryDisconnectTime = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 9), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryDisconnectTime.setStatus('current') callHistoryCallOrigin = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("originate", 1), ("answer", 2), ("callback", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryCallOrigin.setStatus('current') callHistoryChargedUnits = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 11), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryChargedUnits.setStatus('current') callHistoryInfoType = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("other", 1), ("speech", 2), ("unrestrictedDigital", 3), ("unrestrictedDigital56", 4), ("restrictedDigital", 5), ("audio31", 6), ("audio7", 7), ("video", 8), ("packetSwitched", 9), ("fax", 10)))).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryInfoType.setStatus('current') callHistoryTransmitPackets = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 13), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryTransmitPackets.setStatus('current') callHistoryTransmitBytes = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 14), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryTransmitBytes.setStatus('current') callHistoryReceivePackets = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 15), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryReceivePackets.setStatus('current') callHistoryReceiveBytes = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 16), AbsoluteCounter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: callHistoryReceiveBytes.setStatus('current') dialControlMibTrapPrefix = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 21, 2)) dialControlMibTraps = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 21, 2, 0)) dialCtlPeerCallInformation = NotificationType((1, 3, 6, 1, 2, 1, 10, 21, 2, 0, 1)).setObjects(("DIAL-CONTROL-MIB", "callHistoryPeerId"), ("DIAL-CONTROL-MIB", "callHistoryPeerIfIndex"), ("DIAL-CONTROL-MIB", "callHistoryLogicalIfIndex"), ("IF-MIB", "ifOperStatus"), ("DIAL-CONTROL-MIB", "callHistoryPeerAddress"), ("DIAL-CONTROL-MIB", "callHistoryPeerSubAddress"), ("DIAL-CONTROL-MIB", "callHistoryDisconnectCause"), ("DIAL-CONTROL-MIB", "callHistoryConnectTime"), ("DIAL-CONTROL-MIB", "callHistoryDisconnectTime"), ("DIAL-CONTROL-MIB", "callHistoryInfoType"), ("DIAL-CONTROL-MIB", "callHistoryCallOrigin")) if mibBuilder.loadTexts: dialCtlPeerCallInformation.setStatus('current') dialCtlPeerCallSetup = NotificationType((1, 3, 6, 1, 2, 1, 10, 21, 2, 0, 2)).setObjects(("DIAL-CONTROL-MIB", "callActivePeerId"), ("DIAL-CONTROL-MIB", "callActivePeerIfIndex"), ("DIAL-CONTROL-MIB", "callActiveLogicalIfIndex"), ("IF-MIB", "ifOperStatus"), ("DIAL-CONTROL-MIB", "callActivePeerAddress"), ("DIAL-CONTROL-MIB", "callActivePeerSubAddress"), ("DIAL-CONTROL-MIB", "callActiveInfoType"), ("DIAL-CONTROL-MIB", "callActiveCallOrigin")) if mibBuilder.loadTexts: dialCtlPeerCallSetup.setStatus('current') dialControlMibConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 21, 3)) dialControlMibCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 21, 3, 1)) dialControlMibGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 21, 3, 2)) dialControlMibCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 10, 21, 3, 1, 1)).setObjects(("DIAL-CONTROL-MIB", "dialControlGroup"), ("DIAL-CONTROL-MIB", "callActiveGroup"), ("DIAL-CONTROL-MIB", "callHistoryGroup"), ("DIAL-CONTROL-MIB", "callNotificationsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): dialControlMibCompliance = dialControlMibCompliance.setStatus('current') dialControlGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 21, 3, 2, 1)).setObjects(("DIAL-CONTROL-MIB", "dialCtlAcceptMode"), ("DIAL-CONTROL-MIB", "dialCtlTrapEnable"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgIfType"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgLowerIf"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgOriginateAddress"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgAnswerAddress"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgSubAddress"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgClosedUserGroup"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgSpeed"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgInfoType"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgPermission"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgInactivityTimer"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgMinDuration"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgMaxDuration"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgCarrierDelay"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgCallRetries"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgRetryDelay"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgFailureDelay"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgTrapEnable"), ("DIAL-CONTROL-MIB", "dialCtlPeerCfgStatus"), ("DIAL-CONTROL-MIB", "dialCtlPeerStatsConnectTime"), ("DIAL-CONTROL-MIB", "dialCtlPeerStatsChargedUnits"), ("DIAL-CONTROL-MIB", "dialCtlPeerStatsSuccessCalls"), ("DIAL-CONTROL-MIB", "dialCtlPeerStatsFailCalls"), ("DIAL-CONTROL-MIB", "dialCtlPeerStatsAcceptCalls"), ("DIAL-CONTROL-MIB", "dialCtlPeerStatsRefuseCalls"), ("DIAL-CONTROL-MIB", "dialCtlPeerStatsLastDisconnectCause"), ("DIAL-CONTROL-MIB", "dialCtlPeerStatsLastDisconnectText"), ("DIAL-CONTROL-MIB", "dialCtlPeerStatsLastSetupTime")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): dialControlGroup = dialControlGroup.setStatus('current') callActiveGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 21, 3, 2, 2)).setObjects(("DIAL-CONTROL-MIB", "callActivePeerAddress"), ("DIAL-CONTROL-MIB", "callActivePeerSubAddress"), ("DIAL-CONTROL-MIB", "callActivePeerId"), ("DIAL-CONTROL-MIB", "callActivePeerIfIndex"), ("DIAL-CONTROL-MIB", "callActiveLogicalIfIndex"), ("DIAL-CONTROL-MIB", "callActiveConnectTime"), ("DIAL-CONTROL-MIB", "callActiveCallState"), ("DIAL-CONTROL-MIB", "callActiveCallOrigin"), ("DIAL-CONTROL-MIB", "callActiveChargedUnits"), ("DIAL-CONTROL-MIB", "callActiveInfoType"), ("DIAL-CONTROL-MIB", "callActiveTransmitPackets"), ("DIAL-CONTROL-MIB", "callActiveTransmitBytes"), ("DIAL-CONTROL-MIB", "callActiveReceivePackets"), ("DIAL-CONTROL-MIB", "callActiveReceiveBytes")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): callActiveGroup = callActiveGroup.setStatus('current') callHistoryGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 21, 3, 2, 3)).setObjects(("DIAL-CONTROL-MIB", "callHistoryTableMaxLength"), ("DIAL-CONTROL-MIB", "callHistoryRetainTimer"), ("DIAL-CONTROL-MIB", "callHistoryPeerAddress"), ("DIAL-CONTROL-MIB", "callHistoryPeerSubAddress"), ("DIAL-CONTROL-MIB", "callHistoryPeerId"), ("DIAL-CONTROL-MIB", "callHistoryPeerIfIndex"), ("DIAL-CONTROL-MIB", "callHistoryLogicalIfIndex"), ("DIAL-CONTROL-MIB", "callHistoryDisconnectCause"), ("DIAL-CONTROL-MIB", "callHistoryDisconnectText"), ("DIAL-CONTROL-MIB", "callHistoryConnectTime"), ("DIAL-CONTROL-MIB", "callHistoryDisconnectTime"), ("DIAL-CONTROL-MIB", "callHistoryCallOrigin"), ("DIAL-CONTROL-MIB", "callHistoryChargedUnits"), ("DIAL-CONTROL-MIB", "callHistoryInfoType"), ("DIAL-CONTROL-MIB", "callHistoryTransmitPackets"), ("DIAL-CONTROL-MIB", "callHistoryTransmitBytes"), ("DIAL-CONTROL-MIB", "callHistoryReceivePackets"), ("DIAL-CONTROL-MIB", "callHistoryReceiveBytes")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): callHistoryGroup = callHistoryGroup.setStatus('current') callNotificationsGroup = NotificationGroup((1, 3, 6, 1, 2, 1, 10, 21, 3, 2, 4)).setObjects(("DIAL-CONTROL-MIB", "dialCtlPeerCallInformation"), ("DIAL-CONTROL-MIB", "dialCtlPeerCallSetup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): callNotificationsGroup = callNotificationsGroup.setStatus('current') mibBuilder.exportSymbols("DIAL-CONTROL-MIB", callHistoryPeerIfIndex=callHistoryPeerIfIndex, dialCtlPeerStatsAcceptCalls=dialCtlPeerStatsAcceptCalls, callHistoryCallOrigin=callHistoryCallOrigin, callActiveEntry=callActiveEntry, dialCtlPeerStatsTable=dialCtlPeerStatsTable, dialCtlPeerStatsChargedUnits=dialCtlPeerStatsChargedUnits, dialControlMibCompliances=dialControlMibCompliances, callActiveReceivePackets=callActiveReceivePackets, callHistoryTransmitPackets=callHistoryTransmitPackets, dialCtlPeerCfgStatus=dialCtlPeerCfgStatus, callActivePeerId=callActivePeerId, callHistoryLogicalIfIndex=callHistoryLogicalIfIndex, dialCtlPeerCfgInfoType=dialCtlPeerCfgInfoType, dialCtlPeerCfgId=dialCtlPeerCfgId, callActivePeerSubAddress=callActivePeerSubAddress, dialCtlPeerCfgMinDuration=dialCtlPeerCfgMinDuration, callHistoryEntry=callHistoryEntry, callActiveIndex=callActiveIndex, callNotificationsGroup=callNotificationsGroup, callActiveTransmitBytes=callActiveTransmitBytes, callHistoryTransmitBytes=callHistoryTransmitBytes, dialControlMibConformance=dialControlMibConformance, AbsoluteCounter32=AbsoluteCounter32, dialCtlPeerCfgIfType=dialCtlPeerCfgIfType, callActiveLogicalIfIndex=callActiveLogicalIfIndex, callHistoryChargedUnits=callHistoryChargedUnits, callActiveConnectTime=callActiveConnectTime, callHistoryReceiveBytes=callHistoryReceiveBytes, dialCtlPeerStatsEntry=dialCtlPeerStatsEntry, dialCtlPeerCfgRetryDelay=dialCtlPeerCfgRetryDelay, dialControlMibTraps=dialControlMibTraps, callActiveTable=callActiveTable, callHistoryInfoType=callHistoryInfoType, dialCtlPeerCfgLowerIf=dialCtlPeerCfgLowerIf, callHistoryPeerSubAddress=callHistoryPeerSubAddress, callHistory=callHistory, dialCtlPeerCfgTable=dialCtlPeerCfgTable, callActiveCallState=callActiveCallState, dialCtlPeerCfgInactivityTimer=dialCtlPeerCfgInactivityTimer, dialCtlPeerCfgClosedUserGroup=dialCtlPeerCfgClosedUserGroup, callHistoryConnectTime=callHistoryConnectTime, dialControlMibCompliance=dialControlMibCompliance, dialCtlPeerCfgEntry=dialCtlPeerCfgEntry, dialCtlPeer=dialCtlPeer, callHistoryDisconnectCause=callHistoryDisconnectCause, callActive=callActive, dialCtlPeerCfgFailureDelay=dialCtlPeerCfgFailureDelay, callHistoryGroup=callHistoryGroup, callHistoryDisconnectTime=callHistoryDisconnectTime, callHistoryTableMaxLength=callHistoryTableMaxLength, dialCtlPeerStatsLastDisconnectCause=dialCtlPeerStatsLastDisconnectCause, dialCtlPeerCfgMaxDuration=dialCtlPeerCfgMaxDuration, callActiveTransmitPackets=callActiveTransmitPackets, dialCtlPeerCfgSpeed=dialCtlPeerCfgSpeed, callActiveChargedUnits=callActiveChargedUnits, callActiveReceiveBytes=callActiveReceiveBytes, dialCtlPeerStatsLastSetupTime=dialCtlPeerStatsLastSetupTime, dialCtlPeerCfgCallRetries=dialCtlPeerCfgCallRetries, callActivePeerIfIndex=callActivePeerIfIndex, dialControlMib=dialControlMib, callHistoryDisconnectText=callHistoryDisconnectText, PYSNMP_MODULE_ID=dialControlMib, dialCtlPeerStatsRefuseCalls=dialCtlPeerStatsRefuseCalls, dialCtlPeerCfgCarrierDelay=dialCtlPeerCfgCarrierDelay, dialCtlAcceptMode=dialCtlAcceptMode, dialControlMibGroups=dialControlMibGroups, dialCtlPeerCallSetup=dialCtlPeerCallSetup, dialCtlPeerStatsSuccessCalls=dialCtlPeerStatsSuccessCalls, callHistoryTable=callHistoryTable, dialCtlPeerStatsLastDisconnectText=dialCtlPeerStatsLastDisconnectText, dialCtlPeerStatsFailCalls=dialCtlPeerStatsFailCalls, callHistoryPeerAddress=callHistoryPeerAddress, callActiveInfoType=callActiveInfoType, callActiveCallOrigin=callActiveCallOrigin, dialCtlPeerCfgOriginateAddress=dialCtlPeerCfgOriginateAddress, callHistoryRetainTimer=callHistoryRetainTimer, dialCtlPeerCfgSubAddress=dialCtlPeerCfgSubAddress, callActiveGroup=callActiveGroup, dialControlGroup=dialControlGroup, dialCtlConfiguration=dialCtlConfiguration, dialCtlPeerCallInformation=dialCtlPeerCallInformation, dialCtlTrapEnable=dialCtlTrapEnable, dialCtlPeerCfgAnswerAddress=dialCtlPeerCfgAnswerAddress, dialCtlPeerStatsConnectTime=dialCtlPeerStatsConnectTime, callActivePeerAddress=callActivePeerAddress, dialControlMibObjects=dialControlMibObjects, callHistoryPeerId=callHistoryPeerId, dialControlMibTrapPrefix=dialControlMibTrapPrefix, callActiveSetupTime=callActiveSetupTime, dialCtlPeerCfgTrapEnable=dialCtlPeerCfgTrapEnable, dialCtlPeerCfgPermission=dialCtlPeerCfgPermission, callHistoryReceivePackets=callHistoryReceivePackets)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, constraints_union, single_value_constraint, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection') (ian_aif_type,) = mibBuilder.importSymbols('IANAifType-MIB', 'IANAifType') (if_oper_status, interface_index, interface_index_or_zero, if_index) = mibBuilder.importSymbols('IF-MIB', 'ifOperStatus', 'InterfaceIndex', 'InterfaceIndexOrZero', 'ifIndex') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (transmission, module_identity, bits, gauge32, counter64, iso, ip_address, integer32, mib_identifier, counter32, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, time_ticks, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'transmission', 'ModuleIdentity', 'Bits', 'Gauge32', 'Counter64', 'iso', 'IpAddress', 'Integer32', 'MibIdentifier', 'Counter32', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'TimeTicks', 'ObjectIdentity') (row_status, time_stamp, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'TimeStamp', 'DisplayString', 'TextualConvention') dial_control_mib = module_identity((1, 3, 6, 1, 2, 1, 10, 21)) if mibBuilder.loadTexts: dialControlMib.setLastUpdated('9609231544Z') if mibBuilder.loadTexts: dialControlMib.setOrganization('IETF ISDN Working Group') class Absolutecounter32(TextualConvention, Unsigned32): status = 'current' dial_control_mib_objects = mib_identifier((1, 3, 6, 1, 2, 1, 10, 21, 1)) dial_ctl_configuration = mib_identifier((1, 3, 6, 1, 2, 1, 10, 21, 1, 1)) dial_ctl_accept_mode = mib_scalar((1, 3, 6, 1, 2, 1, 10, 21, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('acceptNone', 1), ('acceptAll', 2), ('acceptKnown', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: dialCtlAcceptMode.setStatus('current') dial_ctl_trap_enable = mib_scalar((1, 3, 6, 1, 2, 1, 10, 21, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: dialCtlTrapEnable.setStatus('current') dial_ctl_peer = mib_identifier((1, 3, 6, 1, 2, 1, 10, 21, 1, 2)) dial_ctl_peer_cfg_table = mib_table((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1)) if mibBuilder.loadTexts: dialCtlPeerCfgTable.setStatus('current') dial_ctl_peer_cfg_entry = mib_table_row((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1)).setIndexNames((0, 'DIAL-CONTROL-MIB', 'dialCtlPeerCfgId'), (0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: dialCtlPeerCfgEntry.setStatus('current') dial_ctl_peer_cfg_id = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: dialCtlPeerCfgId.setStatus('current') dial_ctl_peer_cfg_if_type = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 2), ian_aif_type().clone('other')).setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgIfType.setStatus('current') dial_ctl_peer_cfg_lower_if = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 3), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgLowerIf.setStatus('current') dial_ctl_peer_cfg_originate_address = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 4), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgOriginateAddress.setStatus('current') dial_ctl_peer_cfg_answer_address = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 5), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgAnswerAddress.setStatus('current') dial_ctl_peer_cfg_sub_address = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 6), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgSubAddress.setStatus('current') dial_ctl_peer_cfg_closed_user_group = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 7), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgClosedUserGroup.setStatus('current') dial_ctl_peer_cfg_speed = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgSpeed.setStatus('current') dial_ctl_peer_cfg_info_type = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('other', 1), ('speech', 2), ('unrestrictedDigital', 3), ('unrestrictedDigital56', 4), ('restrictedDigital', 5), ('audio31', 6), ('audio7', 7), ('video', 8), ('packetSwitched', 9), ('fax', 10))).clone('other')).setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgInfoType.setStatus('current') dial_ctl_peer_cfg_permission = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('originate', 1), ('answer', 2), ('both', 3), ('callback', 4), ('none', 5))).clone('both')).setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgPermission.setStatus('current') dial_ctl_peer_cfg_inactivity_timer = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setUnits('seconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgInactivityTimer.setStatus('current') dial_ctl_peer_cfg_min_duration = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgMinDuration.setStatus('current') dial_ctl_peer_cfg_max_duration = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgMaxDuration.setStatus('current') dial_ctl_peer_cfg_carrier_delay = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setUnits('seconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgCarrierDelay.setStatus('current') dial_ctl_peer_cfg_call_retries = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgCallRetries.setStatus('current') dial_ctl_peer_cfg_retry_delay = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setUnits('seconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgRetryDelay.setStatus('current') dial_ctl_peer_cfg_failure_delay = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setUnits('seconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgFailureDelay.setStatus('current') dial_ctl_peer_cfg_trap_enable = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgTrapEnable.setStatus('current') dial_ctl_peer_cfg_status = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 1, 1, 19), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: dialCtlPeerCfgStatus.setStatus('current') dial_ctl_peer_stats_table = mib_table((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2)) if mibBuilder.loadTexts: dialCtlPeerStatsTable.setStatus('current') dial_ctl_peer_stats_entry = mib_table_row((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1)) dialCtlPeerCfgEntry.registerAugmentions(('DIAL-CONTROL-MIB', 'dialCtlPeerStatsEntry')) dialCtlPeerStatsEntry.setIndexNames(*dialCtlPeerCfgEntry.getIndexNames()) if mibBuilder.loadTexts: dialCtlPeerStatsEntry.setStatus('current') dial_ctl_peer_stats_connect_time = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 1), absolute_counter32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: dialCtlPeerStatsConnectTime.setStatus('current') dial_ctl_peer_stats_charged_units = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 2), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dialCtlPeerStatsChargedUnits.setStatus('current') dial_ctl_peer_stats_success_calls = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 3), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dialCtlPeerStatsSuccessCalls.setStatus('current') dial_ctl_peer_stats_fail_calls = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 4), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dialCtlPeerStatsFailCalls.setStatus('current') dial_ctl_peer_stats_accept_calls = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 5), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dialCtlPeerStatsAcceptCalls.setStatus('current') dial_ctl_peer_stats_refuse_calls = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 6), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dialCtlPeerStatsRefuseCalls.setStatus('current') dial_ctl_peer_stats_last_disconnect_cause = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(0, 4))).setMaxAccess('readonly') if mibBuilder.loadTexts: dialCtlPeerStatsLastDisconnectCause.setStatus('current') dial_ctl_peer_stats_last_disconnect_text = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 8), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: dialCtlPeerStatsLastDisconnectText.setStatus('current') dial_ctl_peer_stats_last_setup_time = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 2, 2, 1, 9), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: dialCtlPeerStatsLastSetupTime.setStatus('current') call_active = mib_identifier((1, 3, 6, 1, 2, 1, 10, 21, 1, 3)) call_active_table = mib_table((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1)) if mibBuilder.loadTexts: callActiveTable.setStatus('current') call_active_entry = mib_table_row((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1)).setIndexNames((0, 'DIAL-CONTROL-MIB', 'callActiveSetupTime'), (0, 'DIAL-CONTROL-MIB', 'callActiveIndex')) if mibBuilder.loadTexts: callActiveEntry.setStatus('current') call_active_setup_time = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 1), time_stamp()) if mibBuilder.loadTexts: callActiveSetupTime.setStatus('current') call_active_index = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: callActiveIndex.setStatus('current') call_active_peer_address = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: callActivePeerAddress.setStatus('current') call_active_peer_sub_address = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: callActivePeerSubAddress.setStatus('current') call_active_peer_id = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: callActivePeerId.setStatus('current') call_active_peer_if_index = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: callActivePeerIfIndex.setStatus('current') call_active_logical_if_index = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 7), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: callActiveLogicalIfIndex.setStatus('current') call_active_connect_time = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 8), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: callActiveConnectTime.setStatus('current') call_active_call_state = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 1), ('connecting', 2), ('connected', 3), ('active', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: callActiveCallState.setStatus('current') call_active_call_origin = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('originate', 1), ('answer', 2), ('callback', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: callActiveCallOrigin.setStatus('current') call_active_charged_units = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 11), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: callActiveChargedUnits.setStatus('current') call_active_info_type = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('other', 1), ('speech', 2), ('unrestrictedDigital', 3), ('unrestrictedDigital56', 4), ('restrictedDigital', 5), ('audio31', 6), ('audio7', 7), ('video', 8), ('packetSwitched', 9), ('fax', 10)))).setMaxAccess('readonly') if mibBuilder.loadTexts: callActiveInfoType.setStatus('current') call_active_transmit_packets = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 13), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: callActiveTransmitPackets.setStatus('current') call_active_transmit_bytes = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 14), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: callActiveTransmitBytes.setStatus('current') call_active_receive_packets = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 15), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: callActiveReceivePackets.setStatus('current') call_active_receive_bytes = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 3, 1, 1, 16), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: callActiveReceiveBytes.setStatus('current') call_history = mib_identifier((1, 3, 6, 1, 2, 1, 10, 21, 1, 4)) call_history_table_max_length = mib_scalar((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: callHistoryTableMaxLength.setStatus('current') call_history_retain_timer = mib_scalar((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setUnits('minutes').setMaxAccess('readwrite') if mibBuilder.loadTexts: callHistoryRetainTimer.setStatus('current') call_history_table = mib_table((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3)) if mibBuilder.loadTexts: callHistoryTable.setStatus('current') call_history_entry = mib_table_row((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1)).setIndexNames((0, 'DIAL-CONTROL-MIB', 'callActiveSetupTime'), (0, 'DIAL-CONTROL-MIB', 'callActiveIndex')) if mibBuilder.loadTexts: callHistoryEntry.setStatus('current') call_history_peer_address = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryPeerAddress.setStatus('current') call_history_peer_sub_address = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryPeerSubAddress.setStatus('current') call_history_peer_id = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryPeerId.setStatus('current') call_history_peer_if_index = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryPeerIfIndex.setStatus('current') call_history_logical_if_index = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 5), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryLogicalIfIndex.setStatus('current') call_history_disconnect_cause = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(0, 4))).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryDisconnectCause.setStatus('current') call_history_disconnect_text = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryDisconnectText.setStatus('current') call_history_connect_time = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 8), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryConnectTime.setStatus('current') call_history_disconnect_time = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 9), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryDisconnectTime.setStatus('current') call_history_call_origin = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('originate', 1), ('answer', 2), ('callback', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryCallOrigin.setStatus('current') call_history_charged_units = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 11), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryChargedUnits.setStatus('current') call_history_info_type = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('other', 1), ('speech', 2), ('unrestrictedDigital', 3), ('unrestrictedDigital56', 4), ('restrictedDigital', 5), ('audio31', 6), ('audio7', 7), ('video', 8), ('packetSwitched', 9), ('fax', 10)))).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryInfoType.setStatus('current') call_history_transmit_packets = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 13), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryTransmitPackets.setStatus('current') call_history_transmit_bytes = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 14), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryTransmitBytes.setStatus('current') call_history_receive_packets = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 15), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryReceivePackets.setStatus('current') call_history_receive_bytes = mib_table_column((1, 3, 6, 1, 2, 1, 10, 21, 1, 4, 3, 1, 16), absolute_counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: callHistoryReceiveBytes.setStatus('current') dial_control_mib_trap_prefix = mib_identifier((1, 3, 6, 1, 2, 1, 10, 21, 2)) dial_control_mib_traps = mib_identifier((1, 3, 6, 1, 2, 1, 10, 21, 2, 0)) dial_ctl_peer_call_information = notification_type((1, 3, 6, 1, 2, 1, 10, 21, 2, 0, 1)).setObjects(('DIAL-CONTROL-MIB', 'callHistoryPeerId'), ('DIAL-CONTROL-MIB', 'callHistoryPeerIfIndex'), ('DIAL-CONTROL-MIB', 'callHistoryLogicalIfIndex'), ('IF-MIB', 'ifOperStatus'), ('DIAL-CONTROL-MIB', 'callHistoryPeerAddress'), ('DIAL-CONTROL-MIB', 'callHistoryPeerSubAddress'), ('DIAL-CONTROL-MIB', 'callHistoryDisconnectCause'), ('DIAL-CONTROL-MIB', 'callHistoryConnectTime'), ('DIAL-CONTROL-MIB', 'callHistoryDisconnectTime'), ('DIAL-CONTROL-MIB', 'callHistoryInfoType'), ('DIAL-CONTROL-MIB', 'callHistoryCallOrigin')) if mibBuilder.loadTexts: dialCtlPeerCallInformation.setStatus('current') dial_ctl_peer_call_setup = notification_type((1, 3, 6, 1, 2, 1, 10, 21, 2, 0, 2)).setObjects(('DIAL-CONTROL-MIB', 'callActivePeerId'), ('DIAL-CONTROL-MIB', 'callActivePeerIfIndex'), ('DIAL-CONTROL-MIB', 'callActiveLogicalIfIndex'), ('IF-MIB', 'ifOperStatus'), ('DIAL-CONTROL-MIB', 'callActivePeerAddress'), ('DIAL-CONTROL-MIB', 'callActivePeerSubAddress'), ('DIAL-CONTROL-MIB', 'callActiveInfoType'), ('DIAL-CONTROL-MIB', 'callActiveCallOrigin')) if mibBuilder.loadTexts: dialCtlPeerCallSetup.setStatus('current') dial_control_mib_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 10, 21, 3)) dial_control_mib_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 10, 21, 3, 1)) dial_control_mib_groups = mib_identifier((1, 3, 6, 1, 2, 1, 10, 21, 3, 2)) dial_control_mib_compliance = module_compliance((1, 3, 6, 1, 2, 1, 10, 21, 3, 1, 1)).setObjects(('DIAL-CONTROL-MIB', 'dialControlGroup'), ('DIAL-CONTROL-MIB', 'callActiveGroup'), ('DIAL-CONTROL-MIB', 'callHistoryGroup'), ('DIAL-CONTROL-MIB', 'callNotificationsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): dial_control_mib_compliance = dialControlMibCompliance.setStatus('current') dial_control_group = object_group((1, 3, 6, 1, 2, 1, 10, 21, 3, 2, 1)).setObjects(('DIAL-CONTROL-MIB', 'dialCtlAcceptMode'), ('DIAL-CONTROL-MIB', 'dialCtlTrapEnable'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgIfType'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgLowerIf'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgOriginateAddress'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgAnswerAddress'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgSubAddress'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgClosedUserGroup'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgSpeed'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgInfoType'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgPermission'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgInactivityTimer'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgMinDuration'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgMaxDuration'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgCarrierDelay'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgCallRetries'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgRetryDelay'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgFailureDelay'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgTrapEnable'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCfgStatus'), ('DIAL-CONTROL-MIB', 'dialCtlPeerStatsConnectTime'), ('DIAL-CONTROL-MIB', 'dialCtlPeerStatsChargedUnits'), ('DIAL-CONTROL-MIB', 'dialCtlPeerStatsSuccessCalls'), ('DIAL-CONTROL-MIB', 'dialCtlPeerStatsFailCalls'), ('DIAL-CONTROL-MIB', 'dialCtlPeerStatsAcceptCalls'), ('DIAL-CONTROL-MIB', 'dialCtlPeerStatsRefuseCalls'), ('DIAL-CONTROL-MIB', 'dialCtlPeerStatsLastDisconnectCause'), ('DIAL-CONTROL-MIB', 'dialCtlPeerStatsLastDisconnectText'), ('DIAL-CONTROL-MIB', 'dialCtlPeerStatsLastSetupTime')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): dial_control_group = dialControlGroup.setStatus('current') call_active_group = object_group((1, 3, 6, 1, 2, 1, 10, 21, 3, 2, 2)).setObjects(('DIAL-CONTROL-MIB', 'callActivePeerAddress'), ('DIAL-CONTROL-MIB', 'callActivePeerSubAddress'), ('DIAL-CONTROL-MIB', 'callActivePeerId'), ('DIAL-CONTROL-MIB', 'callActivePeerIfIndex'), ('DIAL-CONTROL-MIB', 'callActiveLogicalIfIndex'), ('DIAL-CONTROL-MIB', 'callActiveConnectTime'), ('DIAL-CONTROL-MIB', 'callActiveCallState'), ('DIAL-CONTROL-MIB', 'callActiveCallOrigin'), ('DIAL-CONTROL-MIB', 'callActiveChargedUnits'), ('DIAL-CONTROL-MIB', 'callActiveInfoType'), ('DIAL-CONTROL-MIB', 'callActiveTransmitPackets'), ('DIAL-CONTROL-MIB', 'callActiveTransmitBytes'), ('DIAL-CONTROL-MIB', 'callActiveReceivePackets'), ('DIAL-CONTROL-MIB', 'callActiveReceiveBytes')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): call_active_group = callActiveGroup.setStatus('current') call_history_group = object_group((1, 3, 6, 1, 2, 1, 10, 21, 3, 2, 3)).setObjects(('DIAL-CONTROL-MIB', 'callHistoryTableMaxLength'), ('DIAL-CONTROL-MIB', 'callHistoryRetainTimer'), ('DIAL-CONTROL-MIB', 'callHistoryPeerAddress'), ('DIAL-CONTROL-MIB', 'callHistoryPeerSubAddress'), ('DIAL-CONTROL-MIB', 'callHistoryPeerId'), ('DIAL-CONTROL-MIB', 'callHistoryPeerIfIndex'), ('DIAL-CONTROL-MIB', 'callHistoryLogicalIfIndex'), ('DIAL-CONTROL-MIB', 'callHistoryDisconnectCause'), ('DIAL-CONTROL-MIB', 'callHistoryDisconnectText'), ('DIAL-CONTROL-MIB', 'callHistoryConnectTime'), ('DIAL-CONTROL-MIB', 'callHistoryDisconnectTime'), ('DIAL-CONTROL-MIB', 'callHistoryCallOrigin'), ('DIAL-CONTROL-MIB', 'callHistoryChargedUnits'), ('DIAL-CONTROL-MIB', 'callHistoryInfoType'), ('DIAL-CONTROL-MIB', 'callHistoryTransmitPackets'), ('DIAL-CONTROL-MIB', 'callHistoryTransmitBytes'), ('DIAL-CONTROL-MIB', 'callHistoryReceivePackets'), ('DIAL-CONTROL-MIB', 'callHistoryReceiveBytes')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): call_history_group = callHistoryGroup.setStatus('current') call_notifications_group = notification_group((1, 3, 6, 1, 2, 1, 10, 21, 3, 2, 4)).setObjects(('DIAL-CONTROL-MIB', 'dialCtlPeerCallInformation'), ('DIAL-CONTROL-MIB', 'dialCtlPeerCallSetup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): call_notifications_group = callNotificationsGroup.setStatus('current') mibBuilder.exportSymbols('DIAL-CONTROL-MIB', callHistoryPeerIfIndex=callHistoryPeerIfIndex, dialCtlPeerStatsAcceptCalls=dialCtlPeerStatsAcceptCalls, callHistoryCallOrigin=callHistoryCallOrigin, callActiveEntry=callActiveEntry, dialCtlPeerStatsTable=dialCtlPeerStatsTable, dialCtlPeerStatsChargedUnits=dialCtlPeerStatsChargedUnits, dialControlMibCompliances=dialControlMibCompliances, callActiveReceivePackets=callActiveReceivePackets, callHistoryTransmitPackets=callHistoryTransmitPackets, dialCtlPeerCfgStatus=dialCtlPeerCfgStatus, callActivePeerId=callActivePeerId, callHistoryLogicalIfIndex=callHistoryLogicalIfIndex, dialCtlPeerCfgInfoType=dialCtlPeerCfgInfoType, dialCtlPeerCfgId=dialCtlPeerCfgId, callActivePeerSubAddress=callActivePeerSubAddress, dialCtlPeerCfgMinDuration=dialCtlPeerCfgMinDuration, callHistoryEntry=callHistoryEntry, callActiveIndex=callActiveIndex, callNotificationsGroup=callNotificationsGroup, callActiveTransmitBytes=callActiveTransmitBytes, callHistoryTransmitBytes=callHistoryTransmitBytes, dialControlMibConformance=dialControlMibConformance, AbsoluteCounter32=AbsoluteCounter32, dialCtlPeerCfgIfType=dialCtlPeerCfgIfType, callActiveLogicalIfIndex=callActiveLogicalIfIndex, callHistoryChargedUnits=callHistoryChargedUnits, callActiveConnectTime=callActiveConnectTime, callHistoryReceiveBytes=callHistoryReceiveBytes, dialCtlPeerStatsEntry=dialCtlPeerStatsEntry, dialCtlPeerCfgRetryDelay=dialCtlPeerCfgRetryDelay, dialControlMibTraps=dialControlMibTraps, callActiveTable=callActiveTable, callHistoryInfoType=callHistoryInfoType, dialCtlPeerCfgLowerIf=dialCtlPeerCfgLowerIf, callHistoryPeerSubAddress=callHistoryPeerSubAddress, callHistory=callHistory, dialCtlPeerCfgTable=dialCtlPeerCfgTable, callActiveCallState=callActiveCallState, dialCtlPeerCfgInactivityTimer=dialCtlPeerCfgInactivityTimer, dialCtlPeerCfgClosedUserGroup=dialCtlPeerCfgClosedUserGroup, callHistoryConnectTime=callHistoryConnectTime, dialControlMibCompliance=dialControlMibCompliance, dialCtlPeerCfgEntry=dialCtlPeerCfgEntry, dialCtlPeer=dialCtlPeer, callHistoryDisconnectCause=callHistoryDisconnectCause, callActive=callActive, dialCtlPeerCfgFailureDelay=dialCtlPeerCfgFailureDelay, callHistoryGroup=callHistoryGroup, callHistoryDisconnectTime=callHistoryDisconnectTime, callHistoryTableMaxLength=callHistoryTableMaxLength, dialCtlPeerStatsLastDisconnectCause=dialCtlPeerStatsLastDisconnectCause, dialCtlPeerCfgMaxDuration=dialCtlPeerCfgMaxDuration, callActiveTransmitPackets=callActiveTransmitPackets, dialCtlPeerCfgSpeed=dialCtlPeerCfgSpeed, callActiveChargedUnits=callActiveChargedUnits, callActiveReceiveBytes=callActiveReceiveBytes, dialCtlPeerStatsLastSetupTime=dialCtlPeerStatsLastSetupTime, dialCtlPeerCfgCallRetries=dialCtlPeerCfgCallRetries, callActivePeerIfIndex=callActivePeerIfIndex, dialControlMib=dialControlMib, callHistoryDisconnectText=callHistoryDisconnectText, PYSNMP_MODULE_ID=dialControlMib, dialCtlPeerStatsRefuseCalls=dialCtlPeerStatsRefuseCalls, dialCtlPeerCfgCarrierDelay=dialCtlPeerCfgCarrierDelay, dialCtlAcceptMode=dialCtlAcceptMode, dialControlMibGroups=dialControlMibGroups, dialCtlPeerCallSetup=dialCtlPeerCallSetup, dialCtlPeerStatsSuccessCalls=dialCtlPeerStatsSuccessCalls, callHistoryTable=callHistoryTable, dialCtlPeerStatsLastDisconnectText=dialCtlPeerStatsLastDisconnectText, dialCtlPeerStatsFailCalls=dialCtlPeerStatsFailCalls, callHistoryPeerAddress=callHistoryPeerAddress, callActiveInfoType=callActiveInfoType, callActiveCallOrigin=callActiveCallOrigin, dialCtlPeerCfgOriginateAddress=dialCtlPeerCfgOriginateAddress, callHistoryRetainTimer=callHistoryRetainTimer, dialCtlPeerCfgSubAddress=dialCtlPeerCfgSubAddress, callActiveGroup=callActiveGroup, dialControlGroup=dialControlGroup, dialCtlConfiguration=dialCtlConfiguration, dialCtlPeerCallInformation=dialCtlPeerCallInformation, dialCtlTrapEnable=dialCtlTrapEnable, dialCtlPeerCfgAnswerAddress=dialCtlPeerCfgAnswerAddress, dialCtlPeerStatsConnectTime=dialCtlPeerStatsConnectTime, callActivePeerAddress=callActivePeerAddress, dialControlMibObjects=dialControlMibObjects, callHistoryPeerId=callHistoryPeerId, dialControlMibTrapPrefix=dialControlMibTrapPrefix, callActiveSetupTime=callActiveSetupTime, dialCtlPeerCfgTrapEnable=dialCtlPeerCfgTrapEnable, dialCtlPeerCfgPermission=dialCtlPeerCfgPermission, callHistoryReceivePackets=callHistoryReceivePackets)
# This file is responsible for validating if a action is valid def how_may_of(dices): # Find out how many values there are for a number out = {1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0} for dice in dices: out[dice.value] += 1 return out def check(dices, settings): dices = sorted(dices, key=lambda dice: dice.value) # Sort by the dices value amount_of = how_may_of(dices) # Amount of times a certain number appears validation = {"aces": None, "twos": None, "threes": None, "fours": None, "fives": None, "sixes": None, "toak": None, "foak": None, "fh": None, "smstraight": None, "lgstraight": None, "kniffel": None, "chance": None} if amount_of[1] > 0: validation["aces"] = amount_of[1]*1 else: validation["aces"] = 0 if amount_of[2] > 0: validation["twos"] = amount_of[2]*2 else: validation["twos"] = 0 if amount_of[3] > 0: validation["threes"] = amount_of[3]*3 else: validation["threes"] = 0 if amount_of[4] > 0: validation["fours"] = amount_of[4]*4 else: validation["fours"] = 0 if amount_of[5] > 0: validation["fives"] = amount_of[5]*5 else: validation["fives"] = 0 if amount_of[6] > 0: validation["sixes"] = amount_of[6]*6 else: validation["sixes"] = 0 # Three of a kind for num in amount_of: if amount_of[num] >= 3: validation["toak"] = num * amount_of[num] # Four of a kind for num in amount_of: if amount_of[num] >= 4: validation["foak"] = num*amount_of[num] # Full house full_house_waypoints = {"three_of":False, "two_of":False} for x in amount_of: if amount_of[x] == 3: full_house_waypoints["three_of"] = True elif amount_of[x] == 2: full_house_waypoints["two_of"] = True if full_house_waypoints["three_of"] and full_house_waypoints["two_of"]: validation["fh"] = settings["point_distribution"]["fh"] # Small Straight if amount_of[1] and amount_of[2] and amount_of[3] and amount_of[4]: validation["smstraight"] = settings["point_distribution"]["smstraight"] elif amount_of[2] and amount_of[3] and amount_of[4] and amount_of[5]: validation["smstraight"] = settings["point_distribution"]["smstraight"] elif amount_of[3] and amount_of[4] and amount_of[5] and amount_of[6]: validation["smstraight"] = settings["point_distribution"]["smstraight"] # Long Straight if amount_of[1] and amount_of[2] and amount_of[3] and amount_of[4] and amount_of[5]: validation["lgstraight"] = settings["point_distribution"]["lgstraight"] elif amount_of[2] and amount_of[3] and amount_of[4] and amount_of[5] and amount_of[6]: validation["lgstraight"] = settings["point_distribution"]["lgstraight"] # Kniffel for number in amount_of: if amount_of[number] == 5: validation["kniffel"] = settings["point_distribution"]["kniffel"] break # Chance chance_points = 0 for num in amount_of: chance_points += num * amount_of[num] if chance_points: validation["chance"] = chance_points return validation
def how_may_of(dices): out = {1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0} for dice in dices: out[dice.value] += 1 return out def check(dices, settings): dices = sorted(dices, key=lambda dice: dice.value) amount_of = how_may_of(dices) validation = {'aces': None, 'twos': None, 'threes': None, 'fours': None, 'fives': None, 'sixes': None, 'toak': None, 'foak': None, 'fh': None, 'smstraight': None, 'lgstraight': None, 'kniffel': None, 'chance': None} if amount_of[1] > 0: validation['aces'] = amount_of[1] * 1 else: validation['aces'] = 0 if amount_of[2] > 0: validation['twos'] = amount_of[2] * 2 else: validation['twos'] = 0 if amount_of[3] > 0: validation['threes'] = amount_of[3] * 3 else: validation['threes'] = 0 if amount_of[4] > 0: validation['fours'] = amount_of[4] * 4 else: validation['fours'] = 0 if amount_of[5] > 0: validation['fives'] = amount_of[5] * 5 else: validation['fives'] = 0 if amount_of[6] > 0: validation['sixes'] = amount_of[6] * 6 else: validation['sixes'] = 0 for num in amount_of: if amount_of[num] >= 3: validation['toak'] = num * amount_of[num] for num in amount_of: if amount_of[num] >= 4: validation['foak'] = num * amount_of[num] full_house_waypoints = {'three_of': False, 'two_of': False} for x in amount_of: if amount_of[x] == 3: full_house_waypoints['three_of'] = True elif amount_of[x] == 2: full_house_waypoints['two_of'] = True if full_house_waypoints['three_of'] and full_house_waypoints['two_of']: validation['fh'] = settings['point_distribution']['fh'] if amount_of[1] and amount_of[2] and amount_of[3] and amount_of[4]: validation['smstraight'] = settings['point_distribution']['smstraight'] elif amount_of[2] and amount_of[3] and amount_of[4] and amount_of[5]: validation['smstraight'] = settings['point_distribution']['smstraight'] elif amount_of[3] and amount_of[4] and amount_of[5] and amount_of[6]: validation['smstraight'] = settings['point_distribution']['smstraight'] if amount_of[1] and amount_of[2] and amount_of[3] and amount_of[4] and amount_of[5]: validation['lgstraight'] = settings['point_distribution']['lgstraight'] elif amount_of[2] and amount_of[3] and amount_of[4] and amount_of[5] and amount_of[6]: validation['lgstraight'] = settings['point_distribution']['lgstraight'] for number in amount_of: if amount_of[number] == 5: validation['kniffel'] = settings['point_distribution']['kniffel'] break chance_points = 0 for num in amount_of: chance_points += num * amount_of[num] if chance_points: validation['chance'] = chance_points return validation
def to_range(s): a, b = s.split("-") a, b = int(a), int(b) return lambda x: x >= a and x <= b def parse_rule(line): key, values = line.split(":") rules = list(map(to_range, values.split("or"))) return ( key.strip(), lambda foo: any(map(lambda rule: rule(foo), rules)), ) def parse_ticket(line): return list(map(lambda x: int(x), line.split(","))) def parse(lines): rules = [] tickets = [] nearby = [] i = 0 for line in lines: if not line: i += 1 continue if line.startswith("your ticket"): continue elif line.startswith("nearby tickets"): continue if i == 0: rules.append(parse_rule(line)) elif i == 1: tickets.extend(parse_ticket(line)) elif i == 2: nearby.append(parse_ticket(line)) else: raise Exception("what is this range?", i) return (dict(rules), tickets, nearby) def separate(rules, nearby): invalids, valids = [], [] for row in nearby: count = 0 for j in row: found = any(map(lambda rule: rule(j), rules.values())) if not found: invalids.append(j) continue count += 1 if count == len(row): valids.append(row) return invalids, valids def part2(rules, tickets, nearby): discards, seats = {}, {} for row in nearby: for (i, seat) in enumerate(row): if not seats.get(i): seats[i] = [] discards[i] = [] for (name, rule) in rules.items(): if rule(seat): if name not in seats[i] and name not in discards[i]: seats[i].append(name) else: if name in seats[i]: seats[i].remove(name) discards[i].append(name) seats = seats.items() results = [] while len(seats) > 0: seats = list( reversed(sorted(seats, key=(lambda seat: (len(seat[1]), seat[0])))) ) id, name = seats.pop() name = name[0] results.append((name, id)) for (i, seat) in enumerate(seats): _, v = seat if name in v: seats[i][1].remove(name) count = 1 for name, i in results: if name.startswith("departure"): count *= tickets[i] return count if __name__ == "__main__": lines = [] with open("input") as file: lines = list(map(lambda x: x.strip(), file)) rules, tickets, nearby = parse(lines) invalids, valids = separate(rules, nearby) print(sum(invalids)) print(part2(rules, tickets, valids))
def to_range(s): (a, b) = s.split('-') (a, b) = (int(a), int(b)) return lambda x: x >= a and x <= b def parse_rule(line): (key, values) = line.split(':') rules = list(map(to_range, values.split('or'))) return (key.strip(), lambda foo: any(map(lambda rule: rule(foo), rules))) def parse_ticket(line): return list(map(lambda x: int(x), line.split(','))) def parse(lines): rules = [] tickets = [] nearby = [] i = 0 for line in lines: if not line: i += 1 continue if line.startswith('your ticket'): continue elif line.startswith('nearby tickets'): continue if i == 0: rules.append(parse_rule(line)) elif i == 1: tickets.extend(parse_ticket(line)) elif i == 2: nearby.append(parse_ticket(line)) else: raise exception('what is this range?', i) return (dict(rules), tickets, nearby) def separate(rules, nearby): (invalids, valids) = ([], []) for row in nearby: count = 0 for j in row: found = any(map(lambda rule: rule(j), rules.values())) if not found: invalids.append(j) continue count += 1 if count == len(row): valids.append(row) return (invalids, valids) def part2(rules, tickets, nearby): (discards, seats) = ({}, {}) for row in nearby: for (i, seat) in enumerate(row): if not seats.get(i): seats[i] = [] discards[i] = [] for (name, rule) in rules.items(): if rule(seat): if name not in seats[i] and name not in discards[i]: seats[i].append(name) else: if name in seats[i]: seats[i].remove(name) discards[i].append(name) seats = seats.items() results = [] while len(seats) > 0: seats = list(reversed(sorted(seats, key=lambda seat: (len(seat[1]), seat[0])))) (id, name) = seats.pop() name = name[0] results.append((name, id)) for (i, seat) in enumerate(seats): (_, v) = seat if name in v: seats[i][1].remove(name) count = 1 for (name, i) in results: if name.startswith('departure'): count *= tickets[i] return count if __name__ == '__main__': lines = [] with open('input') as file: lines = list(map(lambda x: x.strip(), file)) (rules, tickets, nearby) = parse(lines) (invalids, valids) = separate(rules, nearby) print(sum(invalids)) print(part2(rules, tickets, valids))
#!/usr/bin/env python3 print(50 + 50) # add print (50 - 50) # subtract print(50 * 50) # multiply print( 50 / 50) #divide print (50 + 50 - 50 * 50 / 50) # PEMDAS print (50 ** 2) #raising to power. exponents print (50 % 6) #modulo, get remainder print( 50 // 6) # divides w/ no remainder
print(50 + 50) print(50 - 50) print(50 * 50) print(50 / 50) print(50 + 50 - 50 * 50 / 50) print(50 ** 2) print(50 % 6) print(50 // 6)
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### # <pep8-80 compliant> ''' Define the command 'print_struct_c99' for gdb, useful for creating a literal for a nested runtime struct. Example use: (gdb) source source/tools/utils/gdb_struct_repr_c99.py (gdb) print_struct_c99 scene->toolsettings ''' class PrintStructC99(gdb.Command): def __init__(self): super(PrintStructC99, self).__init__( "print_struct_c99", gdb.COMMAND_USER, ) def get_count_heading(self, string): for i, s in enumerate(string): if s != ' ': break return i def extract_typename(self, string): first_line = string.split('\n')[0] return first_line.split('=')[1][:-1].strip() def invoke(self, arg, from_tty): ret_ptype = gdb.execute('ptype {}'.format(arg), to_string=True) tname = self.extract_typename(ret_ptype) print('{} {} = {{'.format(tname, arg)) r = gdb.execute('p {}'.format(arg), to_string=True) r = r.split('\n') for rr in r[1:]: if '=' not in rr: print(rr) continue hs = self.get_count_heading(rr) rr_s = rr.strip().split('=', 1) rr_rval = rr_s[1].strip() print(' ' * hs + '.' + rr_s[0] + '= ' + rr_rval) print('Running GDB from: %s\n' % (gdb.PYTHONDIR)) gdb.execute("set print pretty") gdb.execute('set pagination off') gdb.execute('set print repeats 0') gdb.execute('set print elements unlimited') # instantiate PrintStructC99()
""" Define the command 'print_struct_c99' for gdb, useful for creating a literal for a nested runtime struct. Example use: (gdb) source source/tools/utils/gdb_struct_repr_c99.py (gdb) print_struct_c99 scene->toolsettings """ class Printstructc99(gdb.Command): def __init__(self): super(PrintStructC99, self).__init__('print_struct_c99', gdb.COMMAND_USER) def get_count_heading(self, string): for (i, s) in enumerate(string): if s != ' ': break return i def extract_typename(self, string): first_line = string.split('\n')[0] return first_line.split('=')[1][:-1].strip() def invoke(self, arg, from_tty): ret_ptype = gdb.execute('ptype {}'.format(arg), to_string=True) tname = self.extract_typename(ret_ptype) print('{} {} = {{'.format(tname, arg)) r = gdb.execute('p {}'.format(arg), to_string=True) r = r.split('\n') for rr in r[1:]: if '=' not in rr: print(rr) continue hs = self.get_count_heading(rr) rr_s = rr.strip().split('=', 1) rr_rval = rr_s[1].strip() print(' ' * hs + '.' + rr_s[0] + '= ' + rr_rval) print('Running GDB from: %s\n' % gdb.PYTHONDIR) gdb.execute('set print pretty') gdb.execute('set pagination off') gdb.execute('set print repeats 0') gdb.execute('set print elements unlimited') print_struct_c99()
# # @lc app=leetcode.cn id=1283 lang=python3 # # [1283] reformat-date # None # @lc code=end
None
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : count = 0 ; curr = 19 ; while ( True ) : sum = 0 ; x = curr ; while ( x > 0 ) : sum = sum + x % 10 ; x = int ( x / 10 ) ; if ( sum == 10 ) : count += 1 ; if ( count == n ) : return curr ; curr += 9 ; return - 1 ; #TOFILL if __name__ == '__main__': param = [ (93,), (10,), (55,), (94,), (2,), (5,), (37,), (4,), (11,), (46,) ] n_success = 0 for i, parameters_set in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
def f_gold(n): count = 0 curr = 19 while True: sum = 0 x = curr while x > 0: sum = sum + x % 10 x = int(x / 10) if sum == 10: count += 1 if count == n: return curr curr += 9 return -1 if __name__ == '__main__': param = [(93,), (10,), (55,), (94,), (2,), (5,), (37,), (4,), (11,), (46,)] n_success = 0 for (i, parameters_set) in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success += 1 print('#Results: %i, %i' % (n_success, len(param)))
types = { "_car_way": "motorway|motorway_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|residential|living_street|service_road|unclassified", "_pedestrian_way": "footway|steps|path|track|pedestrian_street", "address_housenumber": '["addr:housenumber"]', "address_street": '["addr:street"]', "attraction": "[tourism=attraction]", "bank": "[amenity=bank]", "bicycle_parking": "[amenity=bicycle_parking]", "bridleway": "[highway=bridleway]", "building": "[building]", "bus": "[route=bus]", "castle": "[historic=castle]", "catholic_place": "[denomination=roman_catholic]", "cycleway": "[highway=cycleway]", "footway": "[highway=footway]", "highway": "[highway]", "kindergarten": "[amenity=kindergarten]", "living_street": '[highway="living_street"]', "mall": "[shop=mall]", "motorway": "[highway=motorway]", "motorway_link": '[highway="motorway_link"]', "museum": "[tourism=museum]", "name": "[name]", "parking": "[amenity=parking]", "path": "[highway=path]", "pedestrian": "[highway=pedestrian]", "pedestrian_street": "[highway=pedestrian]", "polish_city": '["name:prefix"="miasto"]', "postcode": '["addr:postcode"]', "primary": "[highway=primary]", "primary_link": '[highway="primary_link"]', "residential": "[highway=residential]", "restaurant": "[amenity=restaurant]", "school": "[amenity=school]", "secondary": "[highway=secondary]", "secondary_link": '[highway="secondary_link"]', "service_road": "[highway=service]", "steps": "[highway=steps]", "supermarket": "[shop=supermarket]", "tertiary": "[highway=tertiary]", "tertiary_link": '[highway="tertiary_link"]', "theatre": "[amenity=theatre]", "track": "[highway=track]", "trolleybus": "[route=trolleybus]", "trunk": "[highway=trunk]", "trunk_link": '[highway="trunk_link"]', "unclassified": "[highway=unclassified]", "underground_parking_entrance": "[amenity=parking_entrance][parking=underground]", "university": "[amenity=university]", }
types = {'_car_way': 'motorway|motorway_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|residential|living_street|service_road|unclassified', '_pedestrian_way': 'footway|steps|path|track|pedestrian_street', 'address_housenumber': '["addr:housenumber"]', 'address_street': '["addr:street"]', 'attraction': '[tourism=attraction]', 'bank': '[amenity=bank]', 'bicycle_parking': '[amenity=bicycle_parking]', 'bridleway': '[highway=bridleway]', 'building': '[building]', 'bus': '[route=bus]', 'castle': '[historic=castle]', 'catholic_place': '[denomination=roman_catholic]', 'cycleway': '[highway=cycleway]', 'footway': '[highway=footway]', 'highway': '[highway]', 'kindergarten': '[amenity=kindergarten]', 'living_street': '[highway="living_street"]', 'mall': '[shop=mall]', 'motorway': '[highway=motorway]', 'motorway_link': '[highway="motorway_link"]', 'museum': '[tourism=museum]', 'name': '[name]', 'parking': '[amenity=parking]', 'path': '[highway=path]', 'pedestrian': '[highway=pedestrian]', 'pedestrian_street': '[highway=pedestrian]', 'polish_city': '["name:prefix"="miasto"]', 'postcode': '["addr:postcode"]', 'primary': '[highway=primary]', 'primary_link': '[highway="primary_link"]', 'residential': '[highway=residential]', 'restaurant': '[amenity=restaurant]', 'school': '[amenity=school]', 'secondary': '[highway=secondary]', 'secondary_link': '[highway="secondary_link"]', 'service_road': '[highway=service]', 'steps': '[highway=steps]', 'supermarket': '[shop=supermarket]', 'tertiary': '[highway=tertiary]', 'tertiary_link': '[highway="tertiary_link"]', 'theatre': '[amenity=theatre]', 'track': '[highway=track]', 'trolleybus': '[route=trolleybus]', 'trunk': '[highway=trunk]', 'trunk_link': '[highway="trunk_link"]', 'unclassified': '[highway=unclassified]', 'underground_parking_entrance': '[amenity=parking_entrance][parking=underground]', 'university': '[amenity=university]'}
class Solution: def maxPerformance(self, n: int, speed: List[int], efficiency: List[int], k: int) -> int: modulo = 10 ** 9 + 7 # (efficiency, speed) metrics = zip(efficiency, speed) metrics = sorted(metrics, key=lambda t:t[0], reverse=True) speed_heap = [] speed_sum, perf = 0, 0 for curr_efficiency, curr_speed in metrics: if len(speed_heap) > k-1: speed_sum -= heapq.heappop(speed_heap) speed_sum += curr_speed heapq.heappush(speed_heap, curr_speed) perf = max(perf, speed_sum * curr_efficiency) return perf % modulo
class Solution: def max_performance(self, n: int, speed: List[int], efficiency: List[int], k: int) -> int: modulo = 10 ** 9 + 7 metrics = zip(efficiency, speed) metrics = sorted(metrics, key=lambda t: t[0], reverse=True) speed_heap = [] (speed_sum, perf) = (0, 0) for (curr_efficiency, curr_speed) in metrics: if len(speed_heap) > k - 1: speed_sum -= heapq.heappop(speed_heap) speed_sum += curr_speed heapq.heappush(speed_heap, curr_speed) perf = max(perf, speed_sum * curr_efficiency) return perf % modulo
point_dict = {} class face_c: def __init__(self, data_string) -> None: # data string is in format "p1,p2,p3" data = data_string.split(",") self.points = [point_dict[p] for p in data] def __repr__(self) -> str: result = "\nfacet normal 0 0 0\n\touter loop" for point in self.points: result += f"\n\t\tvertex {point[0]} {point[1]} {point[2]}" result += "\n\tendloop\nendfacet" return result def __str__(self) -> str: return repr(self) def add_to_dict(point_list, names, prefix=""): global point_dict names = names.split(",") for i in range(len(point_list)): point_dict[prefix+names[i]] = point_list[i] def move_up(point, z): return (point[0], point[1], z) # BASE points_underside_floor = [(-0.5, 14.72, 0), (0.5, 14.72, 0), (8.5, 0.87, 0), (8, 0, 0), (-8, 0, 0), (-8.5, 0.87, 0)] add_to_dict(points_underside_floor, "A,B,C,D,E,F", prefix="b") points_inside_floor = [(-0.23, 14.4, 0.2), (0.23, 14.4, 0.2), (8.08, 0.79, 0.2), (7.85, 0.4, 0.2), (-7.85, 0.4, 0.2), (-8.08, 0.79, 0.2)] add_to_dict(points_inside_floor, "a,b,c,d,e,f", prefix="b") # TOP WALLS points_wall_outside = [move_up(p, 3) for p in points_underside_floor] add_to_dict(points_wall_outside, "A,B,C,D,E,F", prefix="t") points_wall_inside = [move_up(p, 3) for p in points_inside_floor] add_to_dict(points_wall_inside, "a,b,c,d,e,f", prefix="t") # HOLE1 points_opening_topleft_lower = [(-3.75, 9.09, 0.75), (-3.4, 8.89, 0.75), (-4.9, 6.29, 0.75), (-5.25, 6.49, 0.75)] add_to_dict(points_opening_topleft_lower, "G,g,h,H", prefix="b") points_opening_topleft_upper = [move_up(p, 2.25) for p in points_opening_topleft_lower] add_to_dict(points_opening_topleft_upper, "G,g,h,H", prefix="t") # HOLE2 points_opening_topright_lower = [(3.4, 8.89, 0.75), (3.75, 9.09, 0.75), (5.25, 6.49, 0.75), (4.9, 6.29, 0.75)] add_to_dict(points_opening_topright_lower, "i,I,J,j", prefix="b") points_opening_topright_upper = [move_up(p, 2.25) for p in points_opening_topright_lower] add_to_dict(points_opening_topright_upper, "i,I,J,j", prefix="t") # HOLE3 points_opening_middle_lower = [(-1.5, 0.4, 0.75), (1.5, 0.4, 0.75), (1.5, 0, 0.75), (-1.5, 0, 0.75)] add_to_dict(points_opening_middle_lower, "l,k,K,L", prefix="b") points_opening_middle_upper = [move_up(p, 2.25) for p in points_opening_middle_lower] add_to_dict(points_opening_middle_upper, "l,k,K,L", prefix="t") face_floor_bottom = "bA,bB,bC bC,bD,bE bE,bF,bA bA,bC,bE" face_floor_inside = "ba,bb,bc bc,bd,be be,bf,ba ba,bc,be" face_wall_top = "tA,ta,tb tB,tb,tc tC,tc,td tD,td,te tE,te,tf tF,tf,ta tA,tB,tb tB,tC,tc tC,tD,td tD,tE,te tE,tF,tf tF,tA,ta" face_pillars_inside = "ta,tb,bb ta,bb,ba tc,td,bd tc,bd,bc te,tf,bf te,bf,be" face_pillars_outside = "tA,tB,bB tA,bB,bA tC,tD,bD tC,bD,bC tE,tF,bF tE,bF,bE" face_walls_inside_bc = "tb,tc,ti tc,ti,tj tb,ti,bi tb,bb,bi tc,tj,bj tc,bj,bc bb,bi,bc bi,bj,bc" face_walls_inside_de = "td,te,tk te,tk,tl td,tk,bk td,bd,bk te,tl,bl te,bl,be bd,bk,be bk,bl,be" face_walls_inside_fa = "tf,ta,th ta,th,tg tf,th,bh tf,bf,bh ta,tg,bg ta,bg,ba bf,bh,ba bh,bg,ba" face_walls_outside_bc = "tB,tC,tI tC,tI,tJ tB,tI,bI tB,bB,bI tC,tJ,bJ tC,bJ,bC bB,bI,bC bI,bJ,bC" face_walls_outside_de = "tD,tE,tK tE,tK,tL tD,tK,bK tD,bD,bK tE,tL,bL tE,bL,bE bD,bK,bE bK,bL,bE" face_walls_outside_fa = "tF,tA,tH tA,tH,tG tF,tH,bH tF,bF,bH tA,tG,bG tA,bG,bA bF,bH,bA bH,bG,bA" face_hole_inside_ij = "tI,ti,bi tI,bI,bi bI,bi,bj bI,bJ,bj bJ,bj,tj bJ,tJ,tj tJ,tj,ti tJ,tI,ti" face_hole_inside_kl = "tK,tk,bk tK,bK,bk bK,bk,bl bK,bL,bl bL,bl,tl bL,tL,tl tL,tl,tk tL,tK,tk" face_hole_inside_hg = "tH,th,bh tH,bH,bh bH,bh,bg bH,bG,bg bG,bg,tg bG,tG,tg tG,tg,th tG,tH,th" faces = [face_floor_bottom, face_floor_inside, face_wall_top, face_pillars_inside, face_pillars_outside, face_walls_inside_bc, face_walls_inside_de, face_walls_inside_fa, face_walls_outside_bc, face_walls_outside_de, face_walls_outside_fa, face_hole_inside_ij,face_hole_inside_kl,face_hole_inside_hg ] face_objs = [] for part in faces: face_objs += [face_c(d) for d in part.split(" ")] f = open("data.stl", "w", encoding="ascii") f.write("solid nanoleaf") for face in face_objs: f.write(str(face)) f.write("\nendsolid nanoleaf") f.close()
point_dict = {} class Face_C: def __init__(self, data_string) -> None: data = data_string.split(',') self.points = [point_dict[p] for p in data] def __repr__(self) -> str: result = '\nfacet normal 0 0 0\n\touter loop' for point in self.points: result += f'\n\t\tvertex {point[0]} {point[1]} {point[2]}' result += '\n\tendloop\nendfacet' return result def __str__(self) -> str: return repr(self) def add_to_dict(point_list, names, prefix=''): global point_dict names = names.split(',') for i in range(len(point_list)): point_dict[prefix + names[i]] = point_list[i] def move_up(point, z): return (point[0], point[1], z) points_underside_floor = [(-0.5, 14.72, 0), (0.5, 14.72, 0), (8.5, 0.87, 0), (8, 0, 0), (-8, 0, 0), (-8.5, 0.87, 0)] add_to_dict(points_underside_floor, 'A,B,C,D,E,F', prefix='b') points_inside_floor = [(-0.23, 14.4, 0.2), (0.23, 14.4, 0.2), (8.08, 0.79, 0.2), (7.85, 0.4, 0.2), (-7.85, 0.4, 0.2), (-8.08, 0.79, 0.2)] add_to_dict(points_inside_floor, 'a,b,c,d,e,f', prefix='b') points_wall_outside = [move_up(p, 3) for p in points_underside_floor] add_to_dict(points_wall_outside, 'A,B,C,D,E,F', prefix='t') points_wall_inside = [move_up(p, 3) for p in points_inside_floor] add_to_dict(points_wall_inside, 'a,b,c,d,e,f', prefix='t') points_opening_topleft_lower = [(-3.75, 9.09, 0.75), (-3.4, 8.89, 0.75), (-4.9, 6.29, 0.75), (-5.25, 6.49, 0.75)] add_to_dict(points_opening_topleft_lower, 'G,g,h,H', prefix='b') points_opening_topleft_upper = [move_up(p, 2.25) for p in points_opening_topleft_lower] add_to_dict(points_opening_topleft_upper, 'G,g,h,H', prefix='t') points_opening_topright_lower = [(3.4, 8.89, 0.75), (3.75, 9.09, 0.75), (5.25, 6.49, 0.75), (4.9, 6.29, 0.75)] add_to_dict(points_opening_topright_lower, 'i,I,J,j', prefix='b') points_opening_topright_upper = [move_up(p, 2.25) for p in points_opening_topright_lower] add_to_dict(points_opening_topright_upper, 'i,I,J,j', prefix='t') points_opening_middle_lower = [(-1.5, 0.4, 0.75), (1.5, 0.4, 0.75), (1.5, 0, 0.75), (-1.5, 0, 0.75)] add_to_dict(points_opening_middle_lower, 'l,k,K,L', prefix='b') points_opening_middle_upper = [move_up(p, 2.25) for p in points_opening_middle_lower] add_to_dict(points_opening_middle_upper, 'l,k,K,L', prefix='t') face_floor_bottom = 'bA,bB,bC bC,bD,bE bE,bF,bA bA,bC,bE' face_floor_inside = 'ba,bb,bc bc,bd,be be,bf,ba ba,bc,be' face_wall_top = 'tA,ta,tb tB,tb,tc tC,tc,td tD,td,te tE,te,tf tF,tf,ta tA,tB,tb tB,tC,tc tC,tD,td tD,tE,te tE,tF,tf tF,tA,ta' face_pillars_inside = 'ta,tb,bb ta,bb,ba tc,td,bd tc,bd,bc te,tf,bf te,bf,be' face_pillars_outside = 'tA,tB,bB tA,bB,bA tC,tD,bD tC,bD,bC tE,tF,bF tE,bF,bE' face_walls_inside_bc = 'tb,tc,ti tc,ti,tj tb,ti,bi tb,bb,bi tc,tj,bj tc,bj,bc bb,bi,bc bi,bj,bc' face_walls_inside_de = 'td,te,tk te,tk,tl td,tk,bk td,bd,bk te,tl,bl te,bl,be bd,bk,be bk,bl,be' face_walls_inside_fa = 'tf,ta,th ta,th,tg tf,th,bh tf,bf,bh ta,tg,bg ta,bg,ba bf,bh,ba bh,bg,ba' face_walls_outside_bc = 'tB,tC,tI tC,tI,tJ tB,tI,bI tB,bB,bI tC,tJ,bJ tC,bJ,bC bB,bI,bC bI,bJ,bC' face_walls_outside_de = 'tD,tE,tK tE,tK,tL tD,tK,bK tD,bD,bK tE,tL,bL tE,bL,bE bD,bK,bE bK,bL,bE' face_walls_outside_fa = 'tF,tA,tH tA,tH,tG tF,tH,bH tF,bF,bH tA,tG,bG tA,bG,bA bF,bH,bA bH,bG,bA' face_hole_inside_ij = 'tI,ti,bi tI,bI,bi bI,bi,bj bI,bJ,bj bJ,bj,tj bJ,tJ,tj tJ,tj,ti tJ,tI,ti' face_hole_inside_kl = 'tK,tk,bk tK,bK,bk bK,bk,bl bK,bL,bl bL,bl,tl bL,tL,tl tL,tl,tk tL,tK,tk' face_hole_inside_hg = 'tH,th,bh tH,bH,bh bH,bh,bg bH,bG,bg bG,bg,tg bG,tG,tg tG,tg,th tG,tH,th' faces = [face_floor_bottom, face_floor_inside, face_wall_top, face_pillars_inside, face_pillars_outside, face_walls_inside_bc, face_walls_inside_de, face_walls_inside_fa, face_walls_outside_bc, face_walls_outside_de, face_walls_outside_fa, face_hole_inside_ij, face_hole_inside_kl, face_hole_inside_hg] face_objs = [] for part in faces: face_objs += [face_c(d) for d in part.split(' ')] f = open('data.stl', 'w', encoding='ascii') f.write('solid nanoleaf') for face in face_objs: f.write(str(face)) f.write('\nendsolid nanoleaf') f.close()
# # PySNMP MIB module VMWARE-CIMOM-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/VMWARE-CIMOM-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:34:48 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Gauge32, NotificationType, Unsigned32, TimeTicks, MibIdentifier, iso, Bits, ModuleIdentity, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, Counter32, Integer32, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "NotificationType", "Unsigned32", "TimeTicks", "MibIdentifier", "iso", "Bits", "ModuleIdentity", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "Counter32", "Integer32", "ObjectIdentity") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") vmwEnvIndicationTime, = mibBuilder.importSymbols("VMWARE-ENV-MIB", "vmwEnvIndicationTime") vmwProductSpecific, = mibBuilder.importSymbols("VMWARE-ROOT-MIB", "vmwProductSpecific") vmwCIMOMMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 6876, 4, 90, 10)) vmwCIMOMMIB.setRevisions(('2010-08-20 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: vmwCIMOMMIB.setRevisionsDescriptions(('Information on a CIM object manager subsystem.',)) if mibBuilder.loadTexts: vmwCIMOMMIB.setLastUpdated('201008200000Z') if mibBuilder.loadTexts: vmwCIMOMMIB.setOrganization('VMware, Inc') if mibBuilder.loadTexts: vmwCIMOMMIB.setContactInfo('VMware, Inc 3401 Hillview Ave Palo Alto, CA 94304 Tel: 1-877-486-9273 or 650-427-5000 Fax: 650-427-5001 Web: http://communities.vmware.com/community/developer/forums/managementapi ') if mibBuilder.loadTexts: vmwCIMOMMIB.setDescription('This MIB module provides instrumentation of a CIM Object Manager.') vmwCimOm = MibIdentifier((1, 3, 6, 1, 4, 1, 6876, 4, 90)) vmwCimOmNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 6876, 4, 90, 0)) vmwCimOmHeartbeat = NotificationType((1, 3, 6, 1, 4, 1, 6876, 4, 90, 0, 401)).setObjects(("VMWARE-ENV-MIB", "vmwEnvIndicationTime")) if mibBuilder.loadTexts: vmwCimOmHeartbeat.setStatus('current') if mibBuilder.loadTexts: vmwCimOmHeartbeat.setDescription('This notification, if the agent is so configured, will be sent on a periodic basis to indicate cimom indication delivery is functioning.') vmwCimOmMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 6876, 4, 90, 2)) vmwCimOmMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 6876, 4, 90, 2, 1)) vmwCimOmMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 6876, 4, 90, 2, 2)) vmwCimOmMIBBasicCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 6876, 4, 90, 2, 1, 4)).setObjects(("VMWARE-CIMOM-MIB", "vmwCimOmNotificationGroup"), ("VMWARE-CIMOM-MIB", "vmwCimOmNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): vmwCimOmMIBBasicCompliance = vmwCimOmMIBBasicCompliance.setStatus('current') if mibBuilder.loadTexts: vmwCimOmMIBBasicCompliance.setDescription('The compliance statement for entities which implement the VMWARE-CIMOM-MIB.') vmwCimOmNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 6876, 4, 90, 2, 2, 2)).setObjects(("VMWARE-CIMOM-MIB", "vmwCimOmHeartbeat")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): vmwCimOmNotificationGroup = vmwCimOmNotificationGroup.setStatus('current') if mibBuilder.loadTexts: vmwCimOmNotificationGroup.setDescription('Notifications related to CIM Object Manager subsystem.') mibBuilder.exportSymbols("VMWARE-CIMOM-MIB", vmwCimOmHeartbeat=vmwCimOmHeartbeat, vmwCimOmNotifications=vmwCimOmNotifications, vmwCimOmMIBCompliances=vmwCimOmMIBCompliances, vmwCimOmMIBConformance=vmwCimOmMIBConformance, vmwCimOmMIBGroups=vmwCimOmMIBGroups, vmwCimOmMIBBasicCompliance=vmwCimOmMIBBasicCompliance, vmwCimOmNotificationGroup=vmwCimOmNotificationGroup, vmwCIMOMMIB=vmwCIMOMMIB, vmwCimOm=vmwCimOm, PYSNMP_MODULE_ID=vmwCIMOMMIB)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, constraints_intersection, value_range_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (gauge32, notification_type, unsigned32, time_ticks, mib_identifier, iso, bits, module_identity, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, counter32, integer32, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'NotificationType', 'Unsigned32', 'TimeTicks', 'MibIdentifier', 'iso', 'Bits', 'ModuleIdentity', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'Counter32', 'Integer32', 'ObjectIdentity') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') (vmw_env_indication_time,) = mibBuilder.importSymbols('VMWARE-ENV-MIB', 'vmwEnvIndicationTime') (vmw_product_specific,) = mibBuilder.importSymbols('VMWARE-ROOT-MIB', 'vmwProductSpecific') vmw_cimommib = module_identity((1, 3, 6, 1, 4, 1, 6876, 4, 90, 10)) vmwCIMOMMIB.setRevisions(('2010-08-20 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: vmwCIMOMMIB.setRevisionsDescriptions(('Information on a CIM object manager subsystem.',)) if mibBuilder.loadTexts: vmwCIMOMMIB.setLastUpdated('201008200000Z') if mibBuilder.loadTexts: vmwCIMOMMIB.setOrganization('VMware, Inc') if mibBuilder.loadTexts: vmwCIMOMMIB.setContactInfo('VMware, Inc 3401 Hillview Ave Palo Alto, CA 94304 Tel: 1-877-486-9273 or 650-427-5000 Fax: 650-427-5001 Web: http://communities.vmware.com/community/developer/forums/managementapi ') if mibBuilder.loadTexts: vmwCIMOMMIB.setDescription('This MIB module provides instrumentation of a CIM Object Manager.') vmw_cim_om = mib_identifier((1, 3, 6, 1, 4, 1, 6876, 4, 90)) vmw_cim_om_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 6876, 4, 90, 0)) vmw_cim_om_heartbeat = notification_type((1, 3, 6, 1, 4, 1, 6876, 4, 90, 0, 401)).setObjects(('VMWARE-ENV-MIB', 'vmwEnvIndicationTime')) if mibBuilder.loadTexts: vmwCimOmHeartbeat.setStatus('current') if mibBuilder.loadTexts: vmwCimOmHeartbeat.setDescription('This notification, if the agent is so configured, will be sent on a periodic basis to indicate cimom indication delivery is functioning.') vmw_cim_om_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 6876, 4, 90, 2)) vmw_cim_om_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 6876, 4, 90, 2, 1)) vmw_cim_om_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 6876, 4, 90, 2, 2)) vmw_cim_om_mib_basic_compliance = module_compliance((1, 3, 6, 1, 4, 1, 6876, 4, 90, 2, 1, 4)).setObjects(('VMWARE-CIMOM-MIB', 'vmwCimOmNotificationGroup'), ('VMWARE-CIMOM-MIB', 'vmwCimOmNotificationGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): vmw_cim_om_mib_basic_compliance = vmwCimOmMIBBasicCompliance.setStatus('current') if mibBuilder.loadTexts: vmwCimOmMIBBasicCompliance.setDescription('The compliance statement for entities which implement the VMWARE-CIMOM-MIB.') vmw_cim_om_notification_group = notification_group((1, 3, 6, 1, 4, 1, 6876, 4, 90, 2, 2, 2)).setObjects(('VMWARE-CIMOM-MIB', 'vmwCimOmHeartbeat')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): vmw_cim_om_notification_group = vmwCimOmNotificationGroup.setStatus('current') if mibBuilder.loadTexts: vmwCimOmNotificationGroup.setDescription('Notifications related to CIM Object Manager subsystem.') mibBuilder.exportSymbols('VMWARE-CIMOM-MIB', vmwCimOmHeartbeat=vmwCimOmHeartbeat, vmwCimOmNotifications=vmwCimOmNotifications, vmwCimOmMIBCompliances=vmwCimOmMIBCompliances, vmwCimOmMIBConformance=vmwCimOmMIBConformance, vmwCimOmMIBGroups=vmwCimOmMIBGroups, vmwCimOmMIBBasicCompliance=vmwCimOmMIBBasicCompliance, vmwCimOmNotificationGroup=vmwCimOmNotificationGroup, vmwCIMOMMIB=vmwCIMOMMIB, vmwCimOm=vmwCimOm, PYSNMP_MODULE_ID=vmwCIMOMMIB)
class Solution: def smallestRangeI(self, nums: List[int], k: int) -> int: a = min(nums) b = max(nums) return max(b - a - 2 * k, 0)
class Solution: def smallest_range_i(self, nums: List[int], k: int) -> int: a = min(nums) b = max(nums) return max(b - a - 2 * k, 0)
# Number Spiral diagonals def indexed_odd_number(num): counter = 0 while num != 1: num -= 2 counter += 1 return counter spiral_dimension = 1001 sum_diagonals = 1 temp_num = 1 for i in range(indexed_odd_number(spiral_dimension)): for j in range(4): temp_num += 2*(i+1) sum_diagonals += temp_num print("Diagonal number: {}".format(temp_num)) print("Sum of diagonals: {}".format(sum_diagonals))
def indexed_odd_number(num): counter = 0 while num != 1: num -= 2 counter += 1 return counter spiral_dimension = 1001 sum_diagonals = 1 temp_num = 1 for i in range(indexed_odd_number(spiral_dimension)): for j in range(4): temp_num += 2 * (i + 1) sum_diagonals += temp_num print('Diagonal number: {}'.format(temp_num)) print('Sum of diagonals: {}'.format(sum_diagonals))
''' Created on Jun 6, 2019 @author: Winterberger ''' class Menu: def __init__(self, name, items, start_time, end_time): ''' print(name + " is served from %d to %d." % (start_time, end_time)) ''' self.name = name self.items = items self.start_time = start_time self.end_time = end_time def __repr__(self): return (self.name + " menu available from %d to %d." % (self.start_time, self.end_time)) def calculate_bill(self, purchased_items): bill = 0. for item in purchased_items: bill += self.items[item] print('This ' + self.name + ' bill comes to $%0.2f.' % bill) return bill brunch = Menu("Brunch", {'pancakes': 7.50, 'waffles': 9.00, 'burger': 11.00, 'home fries': 4.50, 'coffee': 1.50, 'espresso': 3.00, 'tea': 1.00, 'mimosa': 10.50, 'orange juice': 3.50}, 1100, 1600) early_bird = Menu("Early-Bird", {'salumeria plate': 8.00, 'salad and breadsticks (serves 2, no refills)': 14.00, 'pizza with quattro formaggi': 9.00, 'duck ragu': 17.50, 'mushroom ravioli (vegan)': 13.50, 'coffee': 1.50, 'espresso': 3.00}, 1500, 1800) dinner = Menu("Dinner", {'crostini with eggplant caponata': 13.00, 'ceaser salad': 16.00, 'pizza with quattro formaggi': 11.00, 'duck ragu': 19.50, 'mushroom ravioli (vegan)': 13.50, 'coffee': 2.00, 'espresso': 3.00}, 1700, 2300) kids = Menu("Kids Menu", {'chicken nuggets': 6.50, 'fusilli with wild mushrooms': 12.00, 'apple juice': 3.00}, 1100, 2100) print (brunch) print (early_bird) print (dinner) print (kids) print(brunch.calculate_bill(['pancakes', 'home fries', 'coffee'])) early_bird.calculate_bill(['salumeria plate', 'mushroom ravioli (vegan)'])
""" Created on Jun 6, 2019 @author: Winterberger """ class Menu: def __init__(self, name, items, start_time, end_time): """ print(name + " is served from %d to %d." % (start_time, end_time)) """ self.name = name self.items = items self.start_time = start_time self.end_time = end_time def __repr__(self): return self.name + ' menu available from %d to %d.' % (self.start_time, self.end_time) def calculate_bill(self, purchased_items): bill = 0.0 for item in purchased_items: bill += self.items[item] print('This ' + self.name + ' bill comes to $%0.2f.' % bill) return bill brunch = menu('Brunch', {'pancakes': 7.5, 'waffles': 9.0, 'burger': 11.0, 'home fries': 4.5, 'coffee': 1.5, 'espresso': 3.0, 'tea': 1.0, 'mimosa': 10.5, 'orange juice': 3.5}, 1100, 1600) early_bird = menu('Early-Bird', {'salumeria plate': 8.0, 'salad and breadsticks (serves 2, no refills)': 14.0, 'pizza with quattro formaggi': 9.0, 'duck ragu': 17.5, 'mushroom ravioli (vegan)': 13.5, 'coffee': 1.5, 'espresso': 3.0}, 1500, 1800) dinner = menu('Dinner', {'crostini with eggplant caponata': 13.0, 'ceaser salad': 16.0, 'pizza with quattro formaggi': 11.0, 'duck ragu': 19.5, 'mushroom ravioli (vegan)': 13.5, 'coffee': 2.0, 'espresso': 3.0}, 1700, 2300) kids = menu('Kids Menu', {'chicken nuggets': 6.5, 'fusilli with wild mushrooms': 12.0, 'apple juice': 3.0}, 1100, 2100) print(brunch) print(early_bird) print(dinner) print(kids) print(brunch.calculate_bill(['pancakes', 'home fries', 'coffee'])) early_bird.calculate_bill(['salumeria plate', 'mushroom ravioli (vegan)'])
# # PySNMP MIB module HUAWEI-MC-TRUNK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-MC-TRUNK-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:34:48 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint") huaweiMgmt, = mibBuilder.importSymbols("HUAWEI-MIB", "huaweiMgmt") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") IpAddress, Integer32, Unsigned32, NotificationType, Counter64, ModuleIdentity, Gauge32, ObjectIdentity, MibIdentifier, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, TimeTicks, iso = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "Integer32", "Unsigned32", "NotificationType", "Counter64", "ModuleIdentity", "Gauge32", "ObjectIdentity", "MibIdentifier", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "TimeTicks", "iso") PhysAddress, DisplayString, TruthValue, TextualConvention, TimeStamp, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "PhysAddress", "DisplayString", "TruthValue", "TextualConvention", "TimeStamp", "RowStatus") hwMcTrunkMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178)) if mibBuilder.loadTexts: hwMcTrunkMIB.setLastUpdated('200810211010Z') if mibBuilder.loadTexts: hwMcTrunkMIB.setOrganization('Organization.') hwDatacomm = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25)) hwMcTrunkObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1)) hwMcTrunkTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1), ) if mibBuilder.loadTexts: hwMcTrunkTable.setStatus('current') hwMcTrunkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1), ).setIndexNames((0, "HUAWEI-MC-TRUNK-MIB", "hwMcTrunkId")) if mibBuilder.loadTexts: hwMcTrunkEntry.setStatus('current') hwMcTrunkId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))) if mibBuilder.loadTexts: hwMcTrunkId.setStatus('current') hwMcTrunkSystemId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 2), PhysAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMcTrunkSystemId.setStatus('current') hwMcTrunkPri = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMcTrunkPri.setStatus('current') hwMcTrunkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("initialize", 1), ("backup", 2), ("master", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMcTrunkStatus.setStatus('current') hwMcTrunkStatusReason = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("pri", 1), ("timeout", 2), ("bfdDown", 3), ("peerTimeout", 4), ("peerBfdDown", 5), ("allMemberDown", 6), ("init", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMcTrunkStatusReason.setStatus('current') hwMcTrunkPeerIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 6), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMcTrunkPeerIpAddr.setStatus('current') hwMcTrunkSourceIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 7), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMcTrunkSourceIpAddr.setStatus('current') hwMcTrunkReceiveFailTimeMultiple = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 50))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMcTrunkReceiveFailTimeMultiple.setStatus('current') hwMcTrunkSendPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 100))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMcTrunkSendPeriod.setStatus('current') hwMcTrunkPacketReceive = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMcTrunkPacketReceive.setStatus('current') hwMcTrunkPacketSend = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMcTrunkPacketSend.setStatus('current') hwMcTrunkPacketRecDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMcTrunkPacketRecDrop.setStatus('current') hwMcTrunkPacketSndDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMcTrunkPacketSndDrop.setStatus('current') hwMcTrunkPeerSystemId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 14), PhysAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMcTrunkPeerSystemId.setStatus('current') hwMcTrunkPeerPri = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMcTrunkPeerPri.setStatus('current') hwMcTrunkPeerReceiveFailTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(15, 5000))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMcTrunkPeerReceiveFailTime.setStatus('current') hwMcTrunkSecurityKeyType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("simple", 1), ("cipher", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMcTrunkSecurityKeyType.setStatus('current') hwMcTrunkSecurityKey = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 18), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 24))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMcTrunkSecurityKey.setStatus('current') hwMcTrunkBfdSessId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8191))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMcTrunkBfdSessId.setStatus('current') hwMcTrunkResetCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 0))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMcTrunkResetCounter.setStatus('current') hwMcTrunkRevertTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMcTrunkRevertTime.setStatus('current') hwMcTrunkRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 50), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMcTrunkRowStatus.setStatus('current') hwMcTrunkMemberTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2), ) if mibBuilder.loadTexts: hwMcTrunkMemberTable.setStatus('current') hwMcTrunkMemberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1), ).setIndexNames((0, "HUAWEI-MC-TRUNK-MIB", "hwMcTrunkMemberParentId"), (0, "HUAWEI-MC-TRUNK-MIB", "hwMcTrunkMemberType"), (0, "HUAWEI-MC-TRUNK-MIB", "hwMcTrunkMemberId")) if mibBuilder.loadTexts: hwMcTrunkMemberEntry.setStatus('current') hwMcTrunkMemberParentId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))) if mibBuilder.loadTexts: hwMcTrunkMemberParentId.setStatus('current') hwMcTrunkMemberType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))) if mibBuilder.loadTexts: hwMcTrunkMemberType.setStatus('current') hwMcTrunkMemberId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 3), Unsigned32()) if mibBuilder.loadTexts: hwMcTrunkMemberId.setStatus('current') hwMcTrunkMemberStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("backup", 1), ("master", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMcTrunkMemberStatus.setStatus('current') hwMcTrunkMemberStatusReason = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("forceBackup", 1), ("forceMaster", 2), ("mctrunkInit", 3), ("mctrunkBackup", 4), ("mctrunkMaster", 5), ("peerMemberDown", 6), ("peerMemberUp", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMcTrunkMemberStatusReason.setStatus('current') hwMcTrunkMemberWorkMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("auto", 1), ("forceBackup", 2), ("forceMaster", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMcTrunkMemberWorkMode.setStatus('current') hwMcTrunkMemberPhyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMcTrunkMemberPhyStatus.setStatus('current') hwMcTrunkMemberRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 50), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMcTrunkMemberRowStatus.setStatus('current') hwMcTrunkTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 2)) hwMcTrunkStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 2, 1)).setObjects(("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkStatus"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkStatusReason")) if mibBuilder.loadTexts: hwMcTrunkStatusChange.setStatus('current') hwMcTrunkMemberStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 2, 2)).setObjects(("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkMemberStatus"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkMemberStatusReason")) if mibBuilder.loadTexts: hwMcTrunkMemberStatusChange.setStatus('current') hwMcTrunkConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 3)) hwMcTrunkCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 3, 1)) hwMcTrunkFullCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 3, 1, 1)).setObjects(("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkGroup"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkMemberGroup"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMcTrunkFullCompliance = hwMcTrunkFullCompliance.setStatus('current') hwMcTrunkGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 3, 2)) hwMcTrunkGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 3, 2, 1)).setObjects(("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkSystemId"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkPri"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkStatus"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkStatusReason"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkPeerIpAddr"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkSourceIpAddr"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkReceiveFailTimeMultiple"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkSendPeriod"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkPacketReceive"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkPacketSend"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkPacketRecDrop"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkPacketSndDrop"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkPeerSystemId"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkPeerPri"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkPeerReceiveFailTime"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkSecurityKeyType"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkSecurityKey"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkBfdSessId"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkResetCounter"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkRevertTime"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMcTrunkGroup = hwMcTrunkGroup.setStatus('current') hwMcTrunkMemberGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 3, 2, 2)).setObjects(("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkMemberStatus"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkMemberStatusReason"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkMemberWorkMode"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkMemberPhyStatus"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkMemberRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMcTrunkMemberGroup = hwMcTrunkMemberGroup.setStatus('current') hwMcTrunkNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 3, 2, 3)).setObjects(("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkStatusChange"), ("HUAWEI-MC-TRUNK-MIB", "hwMcTrunkMemberStatusChange")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMcTrunkNotificationGroup = hwMcTrunkNotificationGroup.setStatus('current') mibBuilder.exportSymbols("HUAWEI-MC-TRUNK-MIB", hwMcTrunkPeerPri=hwMcTrunkPeerPri, hwMcTrunkMemberEntry=hwMcTrunkMemberEntry, hwMcTrunkFullCompliance=hwMcTrunkFullCompliance, hwMcTrunkMIB=hwMcTrunkMIB, PYSNMP_MODULE_ID=hwMcTrunkMIB, hwMcTrunkMemberStatusReason=hwMcTrunkMemberStatusReason, hwMcTrunkSecurityKeyType=hwMcTrunkSecurityKeyType, hwMcTrunkRevertTime=hwMcTrunkRevertTime, hwMcTrunkCompliances=hwMcTrunkCompliances, hwMcTrunkMemberParentId=hwMcTrunkMemberParentId, hwMcTrunkMemberType=hwMcTrunkMemberType, hwMcTrunkGroups=hwMcTrunkGroups, hwMcTrunkNotificationGroup=hwMcTrunkNotificationGroup, hwMcTrunkSecurityKey=hwMcTrunkSecurityKey, hwMcTrunkPeerSystemId=hwMcTrunkPeerSystemId, hwMcTrunkEntry=hwMcTrunkEntry, hwMcTrunkConformance=hwMcTrunkConformance, hwMcTrunkPacketSndDrop=hwMcTrunkPacketSndDrop, hwMcTrunkMemberWorkMode=hwMcTrunkMemberWorkMode, hwMcTrunkPeerIpAddr=hwMcTrunkPeerIpAddr, hwMcTrunkPri=hwMcTrunkPri, hwMcTrunkMemberRowStatus=hwMcTrunkMemberRowStatus, hwMcTrunkMemberStatus=hwMcTrunkMemberStatus, hwMcTrunkRowStatus=hwMcTrunkRowStatus, hwMcTrunkMemberGroup=hwMcTrunkMemberGroup, hwMcTrunkMemberPhyStatus=hwMcTrunkMemberPhyStatus, hwMcTrunkGroup=hwMcTrunkGroup, hwMcTrunkSystemId=hwMcTrunkSystemId, hwMcTrunkPacketReceive=hwMcTrunkPacketReceive, hwMcTrunkMemberTable=hwMcTrunkMemberTable, hwMcTrunkReceiveFailTimeMultiple=hwMcTrunkReceiveFailTimeMultiple, hwMcTrunkSendPeriod=hwMcTrunkSendPeriod, hwMcTrunkSourceIpAddr=hwMcTrunkSourceIpAddr, hwDatacomm=hwDatacomm, hwMcTrunkPacketRecDrop=hwMcTrunkPacketRecDrop, hwMcTrunkStatus=hwMcTrunkStatus, hwMcTrunkStatusReason=hwMcTrunkStatusReason, hwMcTrunkPeerReceiveFailTime=hwMcTrunkPeerReceiveFailTime, hwMcTrunkObjects=hwMcTrunkObjects, hwMcTrunkTraps=hwMcTrunkTraps, hwMcTrunkMemberStatusChange=hwMcTrunkMemberStatusChange, hwMcTrunkTable=hwMcTrunkTable, hwMcTrunkPacketSend=hwMcTrunkPacketSend, hwMcTrunkResetCounter=hwMcTrunkResetCounter, hwMcTrunkStatusChange=hwMcTrunkStatusChange, hwMcTrunkId=hwMcTrunkId, hwMcTrunkMemberId=hwMcTrunkMemberId, hwMcTrunkBfdSessId=hwMcTrunkBfdSessId)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_range_constraint, constraints_intersection, value_size_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint') (huawei_mgmt,) = mibBuilder.importSymbols('HUAWEI-MIB', 'huaweiMgmt') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (ip_address, integer32, unsigned32, notification_type, counter64, module_identity, gauge32, object_identity, mib_identifier, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, time_ticks, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'Integer32', 'Unsigned32', 'NotificationType', 'Counter64', 'ModuleIdentity', 'Gauge32', 'ObjectIdentity', 'MibIdentifier', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'TimeTicks', 'iso') (phys_address, display_string, truth_value, textual_convention, time_stamp, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'PhysAddress', 'DisplayString', 'TruthValue', 'TextualConvention', 'TimeStamp', 'RowStatus') hw_mc_trunk_mib = module_identity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178)) if mibBuilder.loadTexts: hwMcTrunkMIB.setLastUpdated('200810211010Z') if mibBuilder.loadTexts: hwMcTrunkMIB.setOrganization('Organization.') hw_datacomm = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25)) hw_mc_trunk_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1)) hw_mc_trunk_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1)) if mibBuilder.loadTexts: hwMcTrunkTable.setStatus('current') hw_mc_trunk_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1)).setIndexNames((0, 'HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkId')) if mibBuilder.loadTexts: hwMcTrunkEntry.setStatus('current') hw_mc_trunk_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))) if mibBuilder.loadTexts: hwMcTrunkId.setStatus('current') hw_mc_trunk_system_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 2), phys_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMcTrunkSystemId.setStatus('current') hw_mc_trunk_pri = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 254))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMcTrunkPri.setStatus('current') hw_mc_trunk_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('initialize', 1), ('backup', 2), ('master', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMcTrunkStatus.setStatus('current') hw_mc_trunk_status_reason = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('pri', 1), ('timeout', 2), ('bfdDown', 3), ('peerTimeout', 4), ('peerBfdDown', 5), ('allMemberDown', 6), ('init', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMcTrunkStatusReason.setStatus('current') hw_mc_trunk_peer_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 6), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMcTrunkPeerIpAddr.setStatus('current') hw_mc_trunk_source_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 7), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMcTrunkSourceIpAddr.setStatus('current') hw_mc_trunk_receive_fail_time_multiple = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(3, 50))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMcTrunkReceiveFailTimeMultiple.setStatus('current') hw_mc_trunk_send_period = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(5, 100))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMcTrunkSendPeriod.setStatus('current') hw_mc_trunk_packet_receive = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMcTrunkPacketReceive.setStatus('current') hw_mc_trunk_packet_send = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMcTrunkPacketSend.setStatus('current') hw_mc_trunk_packet_rec_drop = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMcTrunkPacketRecDrop.setStatus('current') hw_mc_trunk_packet_snd_drop = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMcTrunkPacketSndDrop.setStatus('current') hw_mc_trunk_peer_system_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 14), phys_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMcTrunkPeerSystemId.setStatus('current') hw_mc_trunk_peer_pri = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(1, 254))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMcTrunkPeerPri.setStatus('current') hw_mc_trunk_peer_receive_fail_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(15, 5000))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMcTrunkPeerReceiveFailTime.setStatus('current') hw_mc_trunk_security_key_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('simple', 1), ('cipher', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMcTrunkSecurityKeyType.setStatus('current') hw_mc_trunk_security_key = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 18), octet_string().subtype(subtypeSpec=value_size_constraint(1, 24))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMcTrunkSecurityKey.setStatus('current') hw_mc_trunk_bfd_sess_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(0, 8191))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMcTrunkBfdSessId.setStatus('current') hw_mc_trunk_reset_counter = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 0))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMcTrunkResetCounter.setStatus('current') hw_mc_trunk_revert_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMcTrunkRevertTime.setStatus('current') hw_mc_trunk_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 1, 1, 50), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMcTrunkRowStatus.setStatus('current') hw_mc_trunk_member_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2)) if mibBuilder.loadTexts: hwMcTrunkMemberTable.setStatus('current') hw_mc_trunk_member_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1)).setIndexNames((0, 'HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkMemberParentId'), (0, 'HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkMemberType'), (0, 'HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkMemberId')) if mibBuilder.loadTexts: hwMcTrunkMemberEntry.setStatus('current') hw_mc_trunk_member_parent_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))) if mibBuilder.loadTexts: hwMcTrunkMemberParentId.setStatus('current') hw_mc_trunk_member_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))) if mibBuilder.loadTexts: hwMcTrunkMemberType.setStatus('current') hw_mc_trunk_member_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 3), unsigned32()) if mibBuilder.loadTexts: hwMcTrunkMemberId.setStatus('current') hw_mc_trunk_member_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('backup', 1), ('master', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMcTrunkMemberStatus.setStatus('current') hw_mc_trunk_member_status_reason = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('forceBackup', 1), ('forceMaster', 2), ('mctrunkInit', 3), ('mctrunkBackup', 4), ('mctrunkMaster', 5), ('peerMemberDown', 6), ('peerMemberUp', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMcTrunkMemberStatusReason.setStatus('current') hw_mc_trunk_member_work_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('auto', 1), ('forceBackup', 2), ('forceMaster', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMcTrunkMemberWorkMode.setStatus('current') hw_mc_trunk_member_phy_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMcTrunkMemberPhyStatus.setStatus('current') hw_mc_trunk_member_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 1, 2, 1, 50), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMcTrunkMemberRowStatus.setStatus('current') hw_mc_trunk_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 2)) hw_mc_trunk_status_change = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 2, 1)).setObjects(('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkStatus'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkStatusReason')) if mibBuilder.loadTexts: hwMcTrunkStatusChange.setStatus('current') hw_mc_trunk_member_status_change = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 2, 2)).setObjects(('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkMemberStatus'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkMemberStatusReason')) if mibBuilder.loadTexts: hwMcTrunkMemberStatusChange.setStatus('current') hw_mc_trunk_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 3)) hw_mc_trunk_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 3, 1)) hw_mc_trunk_full_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 3, 1, 1)).setObjects(('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkGroup'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkMemberGroup'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkNotificationGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mc_trunk_full_compliance = hwMcTrunkFullCompliance.setStatus('current') hw_mc_trunk_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 3, 2)) hw_mc_trunk_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 3, 2, 1)).setObjects(('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkSystemId'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkPri'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkStatus'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkStatusReason'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkPeerIpAddr'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkSourceIpAddr'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkReceiveFailTimeMultiple'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkSendPeriod'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkPacketReceive'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkPacketSend'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkPacketRecDrop'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkPacketSndDrop'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkPeerSystemId'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkPeerPri'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkPeerReceiveFailTime'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkSecurityKeyType'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkSecurityKey'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkBfdSessId'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkResetCounter'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkRevertTime'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mc_trunk_group = hwMcTrunkGroup.setStatus('current') hw_mc_trunk_member_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 3, 2, 2)).setObjects(('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkMemberStatus'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkMemberStatusReason'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkMemberWorkMode'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkMemberPhyStatus'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkMemberRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mc_trunk_member_group = hwMcTrunkMemberGroup.setStatus('current') hw_mc_trunk_notification_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 178, 3, 2, 3)).setObjects(('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkStatusChange'), ('HUAWEI-MC-TRUNK-MIB', 'hwMcTrunkMemberStatusChange')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mc_trunk_notification_group = hwMcTrunkNotificationGroup.setStatus('current') mibBuilder.exportSymbols('HUAWEI-MC-TRUNK-MIB', hwMcTrunkPeerPri=hwMcTrunkPeerPri, hwMcTrunkMemberEntry=hwMcTrunkMemberEntry, hwMcTrunkFullCompliance=hwMcTrunkFullCompliance, hwMcTrunkMIB=hwMcTrunkMIB, PYSNMP_MODULE_ID=hwMcTrunkMIB, hwMcTrunkMemberStatusReason=hwMcTrunkMemberStatusReason, hwMcTrunkSecurityKeyType=hwMcTrunkSecurityKeyType, hwMcTrunkRevertTime=hwMcTrunkRevertTime, hwMcTrunkCompliances=hwMcTrunkCompliances, hwMcTrunkMemberParentId=hwMcTrunkMemberParentId, hwMcTrunkMemberType=hwMcTrunkMemberType, hwMcTrunkGroups=hwMcTrunkGroups, hwMcTrunkNotificationGroup=hwMcTrunkNotificationGroup, hwMcTrunkSecurityKey=hwMcTrunkSecurityKey, hwMcTrunkPeerSystemId=hwMcTrunkPeerSystemId, hwMcTrunkEntry=hwMcTrunkEntry, hwMcTrunkConformance=hwMcTrunkConformance, hwMcTrunkPacketSndDrop=hwMcTrunkPacketSndDrop, hwMcTrunkMemberWorkMode=hwMcTrunkMemberWorkMode, hwMcTrunkPeerIpAddr=hwMcTrunkPeerIpAddr, hwMcTrunkPri=hwMcTrunkPri, hwMcTrunkMemberRowStatus=hwMcTrunkMemberRowStatus, hwMcTrunkMemberStatus=hwMcTrunkMemberStatus, hwMcTrunkRowStatus=hwMcTrunkRowStatus, hwMcTrunkMemberGroup=hwMcTrunkMemberGroup, hwMcTrunkMemberPhyStatus=hwMcTrunkMemberPhyStatus, hwMcTrunkGroup=hwMcTrunkGroup, hwMcTrunkSystemId=hwMcTrunkSystemId, hwMcTrunkPacketReceive=hwMcTrunkPacketReceive, hwMcTrunkMemberTable=hwMcTrunkMemberTable, hwMcTrunkReceiveFailTimeMultiple=hwMcTrunkReceiveFailTimeMultiple, hwMcTrunkSendPeriod=hwMcTrunkSendPeriod, hwMcTrunkSourceIpAddr=hwMcTrunkSourceIpAddr, hwDatacomm=hwDatacomm, hwMcTrunkPacketRecDrop=hwMcTrunkPacketRecDrop, hwMcTrunkStatus=hwMcTrunkStatus, hwMcTrunkStatusReason=hwMcTrunkStatusReason, hwMcTrunkPeerReceiveFailTime=hwMcTrunkPeerReceiveFailTime, hwMcTrunkObjects=hwMcTrunkObjects, hwMcTrunkTraps=hwMcTrunkTraps, hwMcTrunkMemberStatusChange=hwMcTrunkMemberStatusChange, hwMcTrunkTable=hwMcTrunkTable, hwMcTrunkPacketSend=hwMcTrunkPacketSend, hwMcTrunkResetCounter=hwMcTrunkResetCounter, hwMcTrunkStatusChange=hwMcTrunkStatusChange, hwMcTrunkId=hwMcTrunkId, hwMcTrunkMemberId=hwMcTrunkMemberId, hwMcTrunkBfdSessId=hwMcTrunkBfdSessId)
_base_ = [ '../_base_/datasets/kitti.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_cos20x.py' ] model = dict( type = 'Adabins', # model training and testing settings max_val=80, train_cfg=dict(), test_cfg=dict(mode='whole')) find_unused_parameters=True
_base_ = ['../_base_/datasets/kitti.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_cos20x.py'] model = dict(type='Adabins', max_val=80, train_cfg=dict(), test_cfg=dict(mode='whole')) find_unused_parameters = True
class Communicator: def __init__(self, nid, n_delay, in_lim, out_lim, out_conns): self.ins =set() # self.ordered_outs = out_conns self.outs = set(out_conns) self.id = nid self.node_delay = n_delay self.in_lim = in_lim self.out_lim = out_lim # self.received = False # self.from_whom = None # for debug # self.recv_time = 0 def get_peers(self): return self.outs | self.ins # get union def update_conns(self, outs, ins): self.outs = set(outs) self.ins = set(ins)
class Communicator: def __init__(self, nid, n_delay, in_lim, out_lim, out_conns): self.ins = set() self.outs = set(out_conns) self.id = nid self.node_delay = n_delay self.in_lim = in_lim self.out_lim = out_lim def get_peers(self): return self.outs | self.ins def update_conns(self, outs, ins): self.outs = set(outs) self.ins = set(ins)
class User: user_list =[] ''' class that defines user blueprint ''' def __init__(self,username,password,email): self.username = username self.password = password self.email = email def save_user(self): ''' function that saves new user objects ''' User.user_list.append(self) @classmethod def find_by_name(cls, username): ''' method that takes in user name and finds the user that matches it ''' for user in cls.user_list: if user.username == username: return user @classmethod def display_user(cls): ''' return user_list ''' return cls.user_list
class User: user_list = [] '\n class that defines user blueprint\n ' def __init__(self, username, password, email): self.username = username self.password = password self.email = email def save_user(self): """ function that saves new user objects """ User.user_list.append(self) @classmethod def find_by_name(cls, username): """ method that takes in user name and finds the user that matches it """ for user in cls.user_list: if user.username == username: return user @classmethod def display_user(cls): """ return user_list """ return cls.user_list
#!/usr/bin/env python head_joints = [ 'head_sidetilt_joint', 'head_pan_joint', 'head_tilt_joint', ] right_arm_joints = [ 'right_arm_shoulder_rotate_joint', 'right_arm_shoulder_lift_joint', 'right_arm_elbow_rotate_joint', 'right_arm_elbow_bend_joint', 'right_arm_wrist_bend_joint', 'right_arm_wrist_rotate_joint', 'right_arm_gripper_finger_joint', ] left_arm_joints = [ 'left_arm_shoulder_rotate_joint', 'left_arm_shoulder_lift_joint', 'left_arm_elbow_rotate_joint', 'left_arm_elbow_bend_joint', 'left_arm_wrist_bend_joint', 'left_arm_wrist_rotate_joint', 'left_arm_gripper_finger_joint', ] chest_camera_joints = [ 'chest_camera_tilt_joint', ] leg_joints = [ 'knee_bend_joint', 'hip_bend_joint', ] right_arm_kinematic_joints = [ 'knee_bend_joint', 'hip_bend_joint', 'right_arm_shoulder_rotate_joint', 'right_arm_shoulder_lift_joint', 'right_arm_elbow_rotate_joint', 'right_arm_elbow_bend_joint', 'right_arm_wrist_bend_joint', 'right_arm_wrist_rotate_joint', ] left_arm_kinematic_joints = [ 'knee_bend_joint', 'hip_bend_joint', 'left_arm_shoulder_rotate_joint', 'left_arm_shoulder_lift_joint', 'left_arm_elbow_rotate_joint', 'left_arm_elbow_bend_joint', 'left_arm_wrist_bend_joint', 'left_arm_wrist_rotate_joint', ] all_servo_joints = head_joints + chest_camera_joints + right_arm_joints + left_arm_joints all_joints = head_joints + chest_camera_joints + right_arm_joints + left_arm_joints + leg_joints # warning - don't use for dynamixel commands!
head_joints = ['head_sidetilt_joint', 'head_pan_joint', 'head_tilt_joint'] right_arm_joints = ['right_arm_shoulder_rotate_joint', 'right_arm_shoulder_lift_joint', 'right_arm_elbow_rotate_joint', 'right_arm_elbow_bend_joint', 'right_arm_wrist_bend_joint', 'right_arm_wrist_rotate_joint', 'right_arm_gripper_finger_joint'] left_arm_joints = ['left_arm_shoulder_rotate_joint', 'left_arm_shoulder_lift_joint', 'left_arm_elbow_rotate_joint', 'left_arm_elbow_bend_joint', 'left_arm_wrist_bend_joint', 'left_arm_wrist_rotate_joint', 'left_arm_gripper_finger_joint'] chest_camera_joints = ['chest_camera_tilt_joint'] leg_joints = ['knee_bend_joint', 'hip_bend_joint'] right_arm_kinematic_joints = ['knee_bend_joint', 'hip_bend_joint', 'right_arm_shoulder_rotate_joint', 'right_arm_shoulder_lift_joint', 'right_arm_elbow_rotate_joint', 'right_arm_elbow_bend_joint', 'right_arm_wrist_bend_joint', 'right_arm_wrist_rotate_joint'] left_arm_kinematic_joints = ['knee_bend_joint', 'hip_bend_joint', 'left_arm_shoulder_rotate_joint', 'left_arm_shoulder_lift_joint', 'left_arm_elbow_rotate_joint', 'left_arm_elbow_bend_joint', 'left_arm_wrist_bend_joint', 'left_arm_wrist_rotate_joint'] all_servo_joints = head_joints + chest_camera_joints + right_arm_joints + left_arm_joints all_joints = head_joints + chest_camera_joints + right_arm_joints + left_arm_joints + leg_joints
#lamex1------Lambda Function big=lambda a,b: a if a>b else b #Main Program num1 = int(input("Enter First number:")) num2 = int(input("Enter Second number:")) print("{0} is bigger".format(big(num1,num2)))
big = lambda a, b: a if a > b else b num1 = int(input('Enter First number:')) num2 = int(input('Enter Second number:')) print('{0} is bigger'.format(big(num1, num2)))
stmttype=''' typedef enum EStmtType { sstunknown,sstinvalid,sstselect,sstdelete,sstupdate, sstinsert,sstcreatetable,sstcreateview,sstsqlpluscmd, sstcreatesequence, sstdropsequencestmt,sstdroptypestmt,sstplsql_packages,sstplsql_objecttype,sstcreate_plsql_procedure, sstcreate_plsql_function,sstcreate_varray_type,sstcreate_nested_table_type,sstcreateobjecttablestmt,sstplsql_block, sstplsql_createprocedure,sstplsql_createfunction,sstplsql_createpackage,sstplsql_createtrigger,sstplsql_createtype, sstplsql_createtypebody,sstplsql_tabletypedef,sstplsql_varraytypedef,sstplsql_createtype_placeholder, sstaltersession,sstcreateindex,sstdropindex,sstdropview,sstmerge, sstdroptable,sstaltertable,sstcommit,sstrollback,sstsavepoint, sstsettransaction,sstlocktable,sstmssqldummystmt,sstcreatedatabase,sstrevoke, sstTruncate, sstcreatematerializedview, sstcreatesynonym, sstmssqlcreateprocedure,sstmssqlcreatetrigger,sstmssqlcreatefunction,sstmssqlalterprocedure,sstmssqlaltertrigger, sstmssqlalterfunction,sstmssqlif,sstmssqlblock,sstmssqlgo,sstmssqldbcc, sstmssqlrestore,sstmssqlbackup,sstmssqlrevoke,sstmssqlreadtext,sstmssqlgrant, sstmssqltruncatetable,sstmssqladdsignature,sstmssqlalterapplicationrole,sstmssqlalterassembly,sstmssqlalterasymmetrickey, sstmssqlalterauthorization,sstmssqlaltercertificate,sstmssqlaltercredential, sstmssqlalterdatabase,sstmssqlcreatedatabase, sstmssqlalterendpoint, sstmssqlalterfulltextcatalog,sstmssqlalterfulltextindex,sstmssqlalterindex,sstmssqlalterlogin,sstmssqlaltermasterkey, sstmssqlaltermessagetype,sstmssqlalterpartitionfunction,sstmssqlalterpartitionscheme,sstmssqlalterqueue,sstmssqlalterremoteservicebinding, sstmssqlalterrole,sstmssqlalterroute,sstmssqlalterschema,sstmssqlalterservice,sstmssqlalterservicemasterkey, sstmssqlaltersymmetrickey,sstmssqlalteruser,sstmssqlalterview,sstmssqlalterxmlschemacollection,sstmssqlbackupdatabase, sstmssqlbackupcertificate,sstmssqlbackuplog,sstmssqlbackupmasterkey,sstmssqlbackupservicemasterkey,sstmssqlbeginconversationtimer, sstmssqlbegindialog,sstmssqlbegindistributed,sstmssqlbegintran,sstmssqlbreak,sstmssqlbulkinsert, sstmssqlclose,sstmssqlclosemasterkey,sstmssqlclosesymmetrickey,sstmssqlcontinue,sstmssqlcreateaggregate, sstmssqlcreateapplicationrole,sstmssqlcreateassembly,sstmssqlcreateasymmetrickey,sstmssqlcreatecertificate,sstmssqlcreatecontract, sstmssqlcreatecredential,sstmssqlcreatedefault,sstmssqlcreateendpoint,sstmssqlcreateeventnotification,sstmssqlcreatefulltextcatalog, sstmssqlcreatefulltextindex,sstmssqlcreatelogin,sstmssqlcreatemasterkey,sstmssqlcreatemessagetype,sstmssqlcreatepartitionfunction, sstmssqlcreatepartitionscheme,sstmssqlcreatequeue,sstmssqlcreateremoteservicebinding,sstmssqlcreaterole,sstmssqlcreateroute, sstmssqlcreaterule,sstmssqlcreateschema,sstmssqlcreateservice,sstmssqlcreatestatistics,sstmssqlcreatesymmetrickey, sstmssqlcreatesynonym,sstmssqlcreatetype,sstmssqlcreateuser,sstmssqlcreatexmlschemacollection,sstmssqldeallocate, sstmssqldeclare,sstmssqldeny,sstmssqldisabletrigger,sstmssqldropaggregate,sstmssqldropapplicationrole, sstmssqldropassembly,sstmssqldropasymmetrickey,sstmssqldropcertificate,sstmssqldropcontract,sstmssqldropcredential, sstmssqldropdatabase,sstmssqldropdefault,sstmssqldropendpoint,sstmssqldropeventnotification,sstmssqldropfulltextcatalog, sstmssqldropfulltextindex,sstmssqldropfunction,sstmssqldropdbobject,sstmssqldropindex,sstmssqldroplogin, sstmssqldropmasterkey,sstmssqldropmessagetype,sstmssqldroppartitionfunction,sstmssqldroppartitionscheme,sstmssqldropprocedure, sstmssqldropqueue,sstmssqldropremoteservicebinding,sstmssqldroprole,sstmssqldroproute,sstmssqldroprule, sstmssqldropschema,sstmssqldropservice,sstmssqldropsignature,sstmssqldropstatistics,sstmssqldropsymmetrickey, sstmssqldropsynonym,sstmssqldroptable,sstmssqldroptrigger,sstmssqldroptype,sstmssqldropuser, sstmssqldropview,sstmssqldropxmlschemacollection,sstmssqlenabletrigger,sstmssqlendconversation,sstmssqlexecuteas, sstmssqlfetch,sstmssqlgoto,sstmssqlkill,sstmssqlkillquerynotificationsubscription,sstmssqlkillstats, sstmssqlmoveconversation,sstmssqlopen,sstmssqlopenmasterkey,sstmssqlopensymmetrickey,sstmssqlprint, sstmssqlraiserror,sstmssqlreceive,sstmssqlreconfigure,sstmssqlrestoredatabase,sstmssqlrestorefilelistonly, sstmssqlrestoreheaderonly,sstmssqlrestorelabelonly,sstmssqlrestorelog,sstmssqlrestoremasterkey,sstmssqlrestorerewindonly, sstmssqlrestoreservicemasterkey,sstmssqlrestoreverifyonly,sstmssqlrevert,sstmssqlreturn,sstmssqlsavetran, sstmssqlselect,sstmssqlsendonconversation,sstmssqlset,sstmssqlsetuser,sstmssqlshutdown, sstmssqlsign,sstmssqlbegintry,sstmssqlbegincatch,sstmssqlupdatestatistics,sstmssqlupdatetext, sstmssqluse,sstmssqlwaitfor,sstmssqlwhile,sstmssqlcte,sstmssqlwithxmlnamespaces, sstmssqlwritetext,sstmssqlexec,sstexecutestmt,sstsetstmt,sstmssqlcommit, sstmssqlrollback,sstraiserror,sstmssqlwithas,sstmssqllabel,ssterrorstmt, sstmssqldrop,sstmssqlstmtstub,sstmssqlcheckpoint, sstoraclealtercluster,sstoraclealterdatabase, sstmssqlexecfake, sstoraclealterdimension,sstoraclealterdiskgroup,sstoraclealterfunction,sstoraclealterindex,sstoraclealterindextype, sstoraclealterjava,sstoraclealtermaterializedview,sstoraclealtermaterializedviewlog,sstoraclealteroperator,sstoraclealteroutline, sstoraclealterpackage,sstoraclealterprocedure,sstoraclealterprofile,sstoraclealterresourcecost,sstoraclealterrole, sstoraclealterrollbacksegment,sstoraclealtersequence,sstoraclealtersession,sstoraclealtersystem,sstoraclealtertablespace, sstoraclealtertrigger,sstoraclealtertype,sstoraclealteruser,sstoraclealterview,sstoracleanalyze, sstoracleassociatestatistics,sstoracleaudit,sstoraclecall,sstoraclecomment,sstoraclecommit, sstoraclecreatecluster,sstoraclecreatecontext,sstoraclecreatecontrolfile,sstoraclecreatedatabase,sstoraclecreatedatabaselink, sstoraclecreatedimension,sstoraclecreatedirectory,sstoraclecreatediskgroup,sstoraclecreatefunction,sstoraclecreateindex, sstoraclecreateindextype,sstoraclecreatejava,sstoraclecreatelibrary,sstoraclecreatematerializedview,sstoraclecreatematerializedviewlog, sstoraclecreateoperator,sstoraclecreateoutline,sstoraclecreatepackagebody,sstoraclecreatepfile, sstoraclecreateprocedure,sstoraclecreateprofile,sstoraclecreaterestorepoint,sstoraclecreaterole,sstoraclecreaterollbacksegment, sstoraclecreateschema,sstoraclecreatesequence,sstoraclecreatespfile,sstoraclecreatesynonym,sstoraclecreatetablespace, sstoraclecreatetrigger,sstoraclecreatetype, sstoraclecreateuser,sstoraclecreateview, sstoracledisassociatestatistics,sstoracledropcluster,sstoracledropcontext,sstoracledropdatabase,sstoracledropdatabaselink, sstoracledropdimension,sstoracledropdirectory,sstoracledropdiskgroup,sstoracledropfunction,sstoracledropindex, sstoracledropindextype,sstoracledropjava,sstoracledroplibrary,sstoracledropmaterializedview,sstoracledropmaterializedviewlog, sstoracledropoperator,sstoracledropoutline,sstoracledroppackage,sstoracledropprocedure,sstoracledropprofile, sstoracledroprestorepoint,sstoracledroprole,sstoracledroprollbacksegment,sstoracledropsequence,sstoracledropsynonym, sstoracledroptable,sstoracledroptablespace,sstoracledroptrigger,sstoracledroptype,sstoracledroptypebody, sstoracledropuser,sstoracledropview,sstoracleexplainplan,sstoracleflashbackdatabase, sstoracleflashbacktable,sstoraclegrant,sstoraclelocktable,sstoraclenoaudit,sstoraclepurge, sstoraclerename,sstoraclerevoke,sstoraclerollback,sstoraclesavepoint,sstoraclesetconstraint, sstoraclesetrole,sstoraclesettransaction,sstoracletruncate, sstmysqlalterdatabase,sstmysqlalterfunction, sstmysqlalterprocedure,sstmysqlalterview,sstmysqlanalyzetable,sstmysqlbackuptable,sstmysqlcacheindex, sstmysqlcall,sstmysqlcase,sstmysqlchangemasterto,sstmysqlchecktable,sstmysqlchecksumtable, sstmysqlclose,sstmysqlcommit,sstmysqlcreatedatabase,sstmysqlcreateindex,sstmysqlcreatefunction, sstmysqlcreateprocedure,sstmysqlcreatetrigger,sstmysqlcreateuser,sstmysqlcreateview,sstmysqldeclare, sstmysqldescribe,sstmysqldo,sstmysqldropdatabase,sstmysqldropfunction,sstmysqldropindex, sstmysqldropprocedure,sstmysqldroptable,sstmysqldroptrigger,sstmysqldropuser,sstmysqldropview, sstmysqlexecute,sstmysqlfetch,sstmysqlflush,sstmysqlgrant,sstmysqlhandler, sstmysqlif,sstmysqliterate,sstmysqlkill,sstmysqlleave,sstmysqlloaddatainfile, sstmysqlloaddatafrommaster,sstmysqlloadindexintocache,sstmysqlloadtable,sstmysqllocktable,sstmysqlloop, sstmysqlopen,sstmysqloptimizetable,sstmysqldeallocateprepare,sstmysqldropprepare,sstmysqlprepare, sstmysqlpurgelogs,sstmysqlrepeat,sstmysqlreplace,sstmysqlrenametable,sstmysqlrepairtable, sstmysqlreleasesavepoint,sstmysqlrenameuser,sstmysqlrest,sstmysqlresetmaster,sstmysqlresetslave, sstmysqlrestoretable,sstmysqlrevoke,sstmysqlrollback,sstmysqlsavepoint,sstmysqlreset, sstmysqlset,sstmysqlsetautocommit,sstmysqlsettransaction,sstmysqlsetpassword,sstmysqlshowcreatedatabase, sstmysqlshowcharacterset,sstmysqlshowcollation,sstmysqlshowcolumns,sstmysqlshowcreatetable,sstmysqlshowcreateview, sstmysqlshowcreatefunction,sstmysqlshowcreateprocedure,sstmysqlshowdatabases,sstmysqlshowengines,sstmysqlshowerrors, sstmysqlshowgrants,sstmysqlshowfunctionstatus,sstmysqlshowindex,sstmysqlshowinnodbstatus,sstmysqlshowlogs, sstmysqlshowprivileges,sstmysqlshowprocesslist,sstmysqlshowstatus,sstmysqlshowtablestatus,sstmysqlshowtables, sstmysqlshowtriggers,sstmysqlshowvariables,sstmysqlshowwarnings,sstmysqlshowbinlogevents,sstmysqlshowmasterlogs, sstmysqlshowmasterstatus,sstmysqlshowslavehosts,sstmysqlshowslavestatus,sstmysqlstartslave,sstmysqlstarttransaction, sstmysqlsetglobalsql_slave_skip_counter,sstmysqlsetsql_log_bin,sstmysqlstopslave,sstmysqltruncate,sstmysqlunlocktable, sstmysqluse,sstmysqlwhile,sstmysqlshow,sstmysqlreturn,sstmysqlrepeatstmt, sstmysqlwhilestmt,sstmysqlopencursor,sstmysqlfetchcursor,sstmysqlcasestmt,sstmysqlifstmt, sstmysqlloopstmt,sstmysqlstmtstub, sstmysqlblock, sstdb2allocatecursor,sstdb2alterbufferpool,sstdb2alterdatabasepartitiongroup,sstdb2alterfunction, sstdb2altermethod,sstdb2alternickname,sstdb2alterprocedure,sstdb2altersequence,sstdb2alterserver, sstdb2altertable,sstdb2altertablespace,sstdb2altertype,sstdb2alterusermapping,sstdb2alterview, sstdb2alterwrapper,sstdb2associatelocators,sstdb2begindeclaresection,sstdb2call,sstdb2case, sstdb2close,sstdb2comment,sstdb2commit,sstdb2connect,sstdb2createalias, sstdb2createbufferpool,sstdb2createdatabasepartitiongroup,sstdb2createdistincttype,sstdb2createeventmonitor,sstdb2createfunction, sstdb2createfunctionmapping,sstdb2createindex,sstdb2createindexextension,sstdb2createmethod,sstdb2createnickname, sstdb2createprocedure,sstdb2createschema,sstdb2createsequence,sstdb2createserver,sstdb2createtablespace, sstdb2createtransform,sstdb2createtrigger,sstdb2createtype,sstdb2createtypemapping,sstdb2createusermapping, sstdb2createwrapper,sstdb2declarecursor,sstdb2declareglobaltemporarytable,sstdb2describe,sstdb2disconnect, sstdb2drop,sstdb2echo, sstdb2enddeclaresection,sstdb2execute,sstdb2executeimmediate,sstdb2explain, sstdb2fetch,sstdb2flusheventmonitor,sstdb2flushpackagecache,sstdb2for,sstdb2freelocator, sstdb2getdiagnostics,sstdb2goto,sstdb2grant,sstdb2if,sstdb2include, sstdb2iterate,sstdb2leave,sstdb2locktable,sstdb2loop,sstdb2open, sstdb2prepare,sstdb2refreshtable,sstdb2release,sstdb2releasesavepoint,sstdb2rename, sstdb2renametablespace,sstdb2repeat,sstdb2resignal,sstdb2return,sstdb2revoke, sstdb2rollback,sstdb2savepoint,sstdb2setconnection,sstdb2setcurrentdefaulttransformgroup,sstdb2setcurrentdegree, sstdb2setcurrentexplainmode,sstdb2setcurrentexplainsnapshot,sstdb2setcurrentisolation,sstdb2setcurrentlocktimeout,sstdb2setcurrentmaintainedtabletypesforoptimization, sstdb2setcurrentpackagepath,sstdb2setcurrentpackageset,sstdb2setcurrentqueryoptimization,sstdb2setcurrentrefreshage,sstdb2setencryptionpassword, sstdb2seteventmonitorstate,sstdb2setintegrity,sstdb2setpassthru,sstdb2setpath,sstdb2setschema, sstdb2setserveroption,sstdb2setsessionauthorization,sstdb2set,sstdb2terminate,sstdb2signal, sstdb2values,sstdb2whenever,sstdb2while,sstdb2sqlvariabledeclaration,sstdb2conditiondeclaration, sstdb2returncodesdeclaration,sstdb2statementdeclaration,sstdb2declarecursorstatement,sstdb2handlerdeclaration,sstdb2sqlprocedurestatement, sstdb2callstmt,sstdb2forstmt,sstdb2ifstmt,sstdb2iteratestmt,sstdb2leavestmt, sstdb2signalstatement,sstdb2whilestmt,sstdb2repeatstmt,sstdb2closecursorstmt,sstdb2opencursorstmt, sstdb2fetchcursorstmt,sstdb2gotostmt,sstdb2loopstmt,sstdb2casestmt,sstdb2procedurecompoundstatement, sstdb2dynamiccompoundstatement,sstdb2returnstmt,sstdb2dummystmt,sstdb2valuesinto, sstdb2stmtstub,sstdb2declare, sstplsql_assignstmt, sstplsql_casestmt,sstplsql_closestmt,sstplsql_cursordecl,sstplsql_dummystmt,sstplsql_elsifstmt, sstplsql_execimmestmt,sstplsql_exitstmt,sstplsql_fetchstmt,sstplsql_forallstmt,sstplsql_gotostmt, sstplsql_ifstmt,sstplsql_loopstmt,sstplsql_nullstmt,sstplsql_openforstmt,sstplsql_openstmt, sstplsql_pragmadecl,sstplsql_procbasicstmt,sstplsql_procedurespec,sstplsql_raisestmt,sstplsql_recordtypedef, sstplsql_returnstmt,sstplsql_sqlstmt,sstplsql_proceduredecl,sstplsql_vardecl, sstplsql_piperowstmt, sstsybaselocktable, sstmdxunknown,sstmdxselect,sstmdxupdate,sstmdxalterdimension, sstmdxcall,sstmdxclearcalculations,sstmdxdrillthrough,sstmdxaltercube,sstmdxcreateaction, sstmdxcreatecellcalculation,sstmdxcreatedimensionmember,sstmdxcreateglobalcube,sstmdxcreatemember,sstmdxcreatesessioncube, sstmdxcreateset,sstmdxcreatesubcube,sstmdxdropaction,sstmdxdropcellcalculation,sstmdxdropdimensionmember, sstmdxdropmember,sstmdxdropset,sstmdxdropsubcube,sstmdxrefreshcube,sstmdxcalculate, sstmdxcase,sstmdxexisting,sstmdxfreeze,sstmdxif, sstmdxscope,sstmdxexpression, sstteradataabort,sstteradataalterfunction,sstteradataaltermethod,sstteradataalterprocedure, sstteradataalterreplicationgroup,sstteradataaltertable,sstteradataaltertrigger, sstteradataaltertype,sstteradatabegindeclaresection, sstteradatabeginlogging,sstteradatabeginquerylogging,sstteradatabegintransaction, sstteradatacall, sstteradatacheckpoint,sstteradataclose, sstteradatacollectdemographics,sstteradatacollectstatistics, sstteradatacomment,sstteradatacommit,sstteradataconnect, sstteradatacreatecast, sstteradatacreateauthorization, sstteradatacreatedatabase,sstteradatacreatefunction,sstteradatacreateindex, sstteradatacreatemacro, sstteradatacreatemethod,sstteradatacreateordering, sstteradatacreateprocedure,sstteradatacreateprofile, sstteradatacreatereplicationgroup,sstteradatacreaterole,sstteradatacreatetransform, sstteradatacreatetrigger,sstteradatacreatetype, sstteradatacreateuser,sstteradatadatabase,sstteradatadeclarecursor,sstteradatadeclarestatement, sstteradatadeclaretable,sstteradatadeletedatabase,sstteradatadeleteuser,sstteradatadescribe, sstteradatadiagnostic,sstteradatadropauthorization,sstteradatadropdatabase, sstteradatadropdbobject, sstteradatadropfunction, sstteradatadropuser, sstteradatadropcast,sstteradatadropmacro,sstteradatadropordering,sstteradatadropprocedure, sstteradatadropprofile,sstteradatadropreplicationgroup,sstteradatadroprole, sstteradatadropstatistics,sstteradatadroptransform,sstteradatadroptrigger,sstteradatadroptype, sstteradatadumpexplain,sstteradataecho,sstteradataenddeclaresection,sstteradataendlogging, sstteradataendquerylogging,sstteradataendtransaction,sstteradataexecute,sstteradataexecuteimmediate, sstteradatafetch, sstteradatagetcrash,sstteradatagive,sstteradatagrant,sstteradatagrantlogon,sstteradatagrantmonitor, sstteradatahelp,sstteradatainclude,sstteradataincludesqlca,sstteradatasqlda,sstteradatainitiateindexanalysis, sstteradatainsertexplain,sstteradatalogoff,sstteradatalogon,sstteradatamodifydatabase, sstteradatamodifyprofile,sstteradatamodifyuser,sstteradataopen,sstteradataposition, sstteradataprepare, sstteradatarenamefunction,sstteradatarenamemacro, sstteradatarenameprocedure,sstteradatarenametable,sstteradatarenametrigger,sstteradatarenameview, sstteradatareplacecast, sstteradatareplacefunction,sstteradatareplacemacro,sstteradatareplacemethod, sstteradatareplaceordering, sstteradatareplaceprocedure,sstteradatareplacetransform,sstteradatareplacetrigger,sstteradatareplaceview, sstteradatarestartindexanalysis,sstteradatarevoke,sstteradatarevokelogon,sstteradatarevokemonitor, sstteradatarevokerole,sstteradatarewind,sstteradatarollback,sstteradatasetbuffersize, sstteradatasetcharset,sstteradatasetconnection,sstteradatasetcrash,sstteradatasetrole, sstteradatasetsessionaccount, sstteradatasetsession,sstteradatasettimezone,sstteradatashow,sstteradatashowfunction, sstteradatashowindex,sstteradatashowmacro,sstteradatashowmethod,sstteradatashowprocedure, sstteradatashowreplicationgroup,sstteradatashowtable,sstteradatashowtrigger, sstteradatashowtype,sstteradatashowview, sstteradatatest,sstteradatawait,sstteradatawhenever,sstteradataasync,sstteradataexplain, sstteradatausing,sstteradatanotimplement, sstblockstmt , sststoredprocedurestmt,sstoraclestoredprocedurestmt, sstpostgresqlabort,sstpostgresqlAlterAggregate,sstpostgresqlAlterCollation, sstpostgresqlAlterConversion,sstpostgresqlalterdatabase, sstpostgresqlAlterDefaultPrivileges,sstpostgresqlAlterDomain , sstpostgresqlAlterExtension, sstpostgresqlAlterForeignDataWrapper,sstpostgresqlAlterForeignTable, sstpostgresqlAlterfunction, sstpostgresqlAlterGroup,sstpostgresqlAlterIndex, sstpostgresqlAlterLanguage, sstpostgresqlAlterLargeObject,sstpostgresqlAlterOperator, sstpostgresqlAlterOperatorClass,sstpostgresqlAlterOperatorFamily,sstpostgresqlAlterRole, sstpostgresqlAlterSchema,sstpostgresqlAlterSequence,sstpostgresqlAlterServer, sstpostgresqlAlterTablespace, sstpostgresqlAlterTextSearchConfiguration, sstpostgresqlAlterTextSearchDictionary,sstpostgresqlAlterTextSearchParser, sstpostgresqlAlterTextSearchTemplate,sstpostgresqlAlterTrigger, sstpostgresqlAlterType,sstpostgresqlAlterUser,sstpostgresqlAlterUserMapping, sstpostgresqlAlterView,sstpostgresqlAnalyze,sstpostgresqlBegin,sstpostgresqlCheckpoint, sstpostgresqlClose,sstpostgresqlCluster,sstpostgresqlComment,sstpostgresqlCommit, sstpostgresqlCommitPrepared,sstpostgresqlCopy, sstpostgresqlCreateAggregate,sstpostgresqlCreateCast,sstpostgresqlCreateCollation, sstpostgresqlConversion,sstpostgresqlCreateDatabase,sstpostgresqlCreateDomain, sstpostgresqlCreateExtension,sstpostgresqlCreateForeignDataWrapper,sstpostgresqlCreateForeignTable, sstpostgresqlCeateFunction,sstpostgresqlCeateGroup,sstpostgresqlCreateIndex,sstpostgresqlCreateLanguage, sstpostgresqlCreateOperator,sstpostgresqlCreateOperatorFimaly,sstpostgresqlCreateOperatorClass, sstpostgresqlCreateRole,sstpostgresqlCreateRule,sstpostgresqlCreateSchema, sstpostgresqlCreateSequence,sstpostgresqlCreateServer,sstpostgresqlCreateTablespace, sstpostgresqlCreateTextSearchConfiguration,sstpostgresqlCreateTextSearchDictionary, sstpostgresqlCreateTextSearchParser,sstpostgresqlCreateTextSearchTemplate, sstpostgresqlCreateTrigger,sstpostgresqlCreateType,sstpostgresqlCreateUser, sstpostgresqlCreateUserMapping,sstpostgresqlCreateView,sstpostgresqlDeallocate, sstpostgresqlDeclare,sstpostgresqlDiscard,sstpostgresqlDo,sstpostgresqlDropAggregate, sstpostgresqlDropCast,sstpostgresqlDropCollation,sstpostgresqlDropConversion, sstpostgresqlDropDatabase,sstpostgresqlDropDomain,sstpostgresqlDropExtension, sstpostgresqlDropForeignDataWrapper,sstpostgresqlDropForeignTable,sstpostgresqlDropFunction, sstpostgresqlDropGroup,sstpostgresqlDropLanguage,sstpostgresqlDropOperator, sstpostgresqlDropOperatorClass,sstpostgresqlDropOperatorFamily,sstpostgresqlDropOwned, sstpostgresqlDropRole,sstpostgresqlDropRule,sstpostgresqlDropSchema,sstpostgresqlDropSequence, sstpostgresqlDropServer,sstpostgresqlDropTable,sstpostgresqlDropTablespace,sstpostgresqlDropTextSearchConfiguration, sstpostgresqlDropTextSearchDictionary,sstpostgresqlDropTextSearchParser,sstpostgresqlDropTextSearchTemplate, sstpostgresqlDropTrigger,sstpostgresqlDropType,sstpostgresqlDropUser,sstpostgresqlDropUserMapping, sstpostgresqlDropView,sstpostgresqlEnd,sstpostgresqlExecute,sstpostgresqlExplain,sstpostgresqlFetch, sstpostgresqlGrant,sstpostgresqlListen,sstpostgresqlLoad,sstpostgresqlLock,sstpostgresqlMove, sstpostgresqlNotify,sstpostgresqlPrepare,sstpostgresqlPrepareTransaction,sstpostgresqlReassignOwned, sstpostgresqlReindex,sstpostgresqlReleaseSavepoint,sstpostgresqlReset,sstpostgresqlRevoke, sstpostgresqlRollback,sstpostgresqlRollbackPrepared,sstpostgresqlSavepoint,sstpostgresqlSecurityLabel, sstpostgresqlSet,sstpostgresqlSetConstraints,sstpostgresqlSetRole,sstpostgresqlSetSessionAuthorization, sstpostgresqlSetTransaction,sstpostgresqlTruncate,sstpostgresqlUnlisten,sstpostgresqlValues, sstnetezzaAlterDatabase,sstnetezzaAlterGroup,sstnetezzaAlterHistoryConfiguration, sstnetezzaAlterSequence,sstnetezzaAlterSynonym, sstnetezzaAlterTable,sstnetezzaAlterUser,sstnetezzaAlterView, sstnetezzaBegin,sstnetezzaComment,sstnetezzaCommit,sstnetezzaCopy, sstnetezzaCreateExternalTable,sstnetezzaCreateGruop, sstnetezzaCreateHistoryConfiguration, sstnetezzaCreateUser, sstnetezzaDropConnection,sstnetezzaDropDatabase, sstnetezzaDropGroup,sstnetezzaDropHistoryConfiguration,sstnetezzaDropSequence, sstnetezzaDropSession,sstnetezzaDropSynonym,sstnetezzaDropTable,sstnetezzaDropUser, sstnetezzaDropView,sstnetezzaExplain,sstnetezzaGenerateExpressStatistics, sstnetezzaGenerateStatistics,sstnetezzaGrant,sstnetezzaGroomTable,sstnetezzaReset, sstnetezzaRevoke,sstnetezzaRollback,sstnetezzaSet, sstnetezzaShow, sstinformixAllocateCollection, sstinformixAllocateDescriptor, sstinformixAlterAccess_Method, sstinformixAlterFragment, sstinformixAlterFunction, sstinformixAlterIndex, sstinformixAlterProcedure, sstinformixAlterRoutine, sstinformixAlterSecurityLabelComponent, sstinformixAlterSequence, sstinformixAlterTable, sstinformixAlterTrustedContext, sstinformixAlterUser, sstinformixBegin, sstinformixClose, sstinformixCloseDatabase, sstinformixCommit, sstinformixConnect, sstinformixCreateAccess_Method, sstinformixCreateAggregate, sstinformixCreateCast, sstinformixCreateIndex, sstinformixCreateDatabase, sstinformixCreateFunction, sstinformixCreateDefaultUser, sstinformixCreateDistinctType, sstinformixCreateExternalTable, sstinformixCreateFunctionFrom, sstinformixCreateOpaqueType, sstinformixCreateOpclass, sstinformixCreateProcedure, sstinformixCreateProcedureFrom, sstinformixAlterTrigger, sstinformixCreateRole, sstinformixCreateRoutineFrom, sstinformixCreateRowType, sstinformixCreateSchema, sstinformixCreateSecurityLabel, sstinformixCreateSecurityLabelComponent, sstinformixCreateSecurityPolicy, sstinformixCreateSequence, sstinformixCreateSynonym, sstinformixCreateTempTable, sstinformixCreateTrigger, sstinformixCreateTrustedContext, sstinformixCreateUser, sstinformixCreateView, sstinformixCreateXaDatasource, sstinformixCreateXaDatasourceType, sstinformixDatabase, sstinformixDeallocateCollection, sstinformixDeallocateDescriptor, sstinformixDeallocateRow, sstinformixDeclare, sstinformixDescribe, sstinformixDescribeInput, sstinformixDisconnect, sstinformixDropAccess_Method, sstinformixDropAggregate, sstinformixDropCast, sstinformixDropDatabase, sstinformixDropFunction, sstinformixDropIndex, sstinformixDropOpclass, sstinformixDropProcedure, sstinformixDropRole, sstinformixDropRoutine, sstinformixDropRowType, sstinformixDropSecurity, sstinformixDropSequence, sstinformixDropSynonym, sstinformixDropTable, sstinformixDropTrigger, sstinformixDropTrustedContext, sstinformixDropType, sstinformixDropUser, sstinformixDropView, sstinformixDropXaDatasource, sstinformixDropXaDatasourceType, sstinformixExecute, sstinformixExecuteFunction, sstinformixExecuteImmediate, sstinformixExecuteProcedure, sstinformixFetch, sstinformixFlush, sstinformixFree, sstinformixGetDescriptor, sstinformixGetDiagnostics, sstinformixGrant, sstinformixGrantFragment, sstinformixInfo, sstinformixLoad, sstinformixLockTable, sstinformixOpen, sstinformixOutput, sstinformixPrepare, sstinformixPut, sstinformixReleaseSavepoint, sstinformixRenameColumn, sstinformixRenameDatabase, sstinformixRenameIndex, sstinformixRenameSecurity, sstinformixRenameSequence, sstinformixRenameTable, sstinformixRenameTrustedContext, sstinformixRenameUser, sstinformixRevoke, sstinformixRevokeFragment, sstinformixRollbackWork, sstinformixSaveExternalDirectives, sstinformixSavepoint, sstinformixSetAutofree, sstinformixSetCollation, sstinformixSetConnection, sstinformixSetConstraints, sstinformixSetDatabaseObject, sstinformixSetDataskip, sstinformixSetDebugFile, sstinformixSetDeferred_Prepare, sstinformixSetDescriptor, sstinformixSetEncryptionPassword, sstinformixSetEnvironment, sstinformixSetExplain, sstinformixSetIndexes, sstinformixSetIsolation, sstinformixSetLockMode, sstinformixSetLog, sstinformixSetOptimization, sstinformixSetPDQPriority, sstinformixSetRole, sstinformixSetSessionAuthorization, sstinformixSetStatementCache, sstinformixSetTransaction, sstinformixSetTransactionMode, sstinformixSetTriggers, sstinformixSetUserPassword, sstinformixStartViolationsTable, sstinformixStopViolationsTable, sstinformixUnload, sstinformixUnlockTable, sstinformixUpdateStatistics, sstinformixWhenever }EStmtType; ''' nodetype = ''' typedef enum ENodeType { t_gsp_invalid, t_gsp_dummy, t_gsp_join, t_gsp_joinItem, t_gsp_sql_statement, t_gsp_selectStatement, t_gsp_insertStatement, t_gsp_deleteStatement, t_gsp_updateStatement, t_gsp_createTableStatement, t_gsp_createIndexStatement, t_gsp_createViewStatement, t_gsp_unknownStatement, t_gsp_dropTableStatement, t_gsp_dropIndexStatement, t_gsp_dropViewStatement, t_gsp_dropDatabaseStatement, t_gsp_alterDatabaseStatement, t_gsp_createDatabaseStatement, t_gsp_createSequenceStatement, t_gsp_createSynonymStatement, t_gsp_createDirectoryStatement, t_gsp_alterTableStatement, t_gsp_mergeStatement, t_gsp_createPackageStatement, t_gsp_createProcedureStatement, t_gsp_createFunctionStatement, t_gsp_blockStatement, t_gsp_createTriggerStatement, t_gsp_trigger_event, t_gsp_arrayAccess, t_gsp_valueClause, t_gsp_constant, t_gsp_list, t_gsp_listcell, t_gsp_objectAccess, t_gsp_objectname , t_gsp_expr, t_gsp_resultColumn, t_gsp_aliasClause, t_gsp_functionCall, t_gsp_keepDenseRankClause, t_gsp_analyticFunction, t_gsp_whenClauseItem, t_gsp_caseExpression, t_gsp_intervalExpression, t_gsp_trimArgument, t_gsp_typename, t_gsp_precisionScale, t_gsp_keyReference, t_gsp_keyAction, t_gsp_constraint, t_gsp_mergeInsertClause, t_gsp_mergeUpdateClause, t_gsp_mergeDeleteClause, t_gsp_mergeWhenClause, t_gsp_fromTable, t_gsp_multiTarget, t_gsp_insertRest, t_gsp_insertValuesClause, t_gsp_mergeSqlNode, t_gsp_alterTableOption, t_gsp_alterTableSqlNode, t_gsp_createSequenceSqlNode, t_gsp_createSynonymSqlNode, t_gsp_createDirectorySqlNode, t_gsp_dropViewSqlNode, t_gsp_dropIndexSqlNode, t_gsp_dropTableSqlNode, t_gsp_dropDatabaseSqlNode, t_gsp_alterDatabaseSqlNode, t_gsp_viewAliasItem, t_gsp_viewAliasClause, t_gsp_createViewSqlNode, t_gsp_createMaterializedViewSqlNode, t_gsp_createMaterializedViewLogSqlNode, t_gsp_orderByItem, t_gsp_createIndexSqlNode, t_gsp_columnDefinition, t_gsp_tableElement, t_gsp_table, t_gsp_createTableSqlNode, t_gsp_returningClause, t_gsp_selectSqlNode, t_gsp_deleteSqlNode, t_gsp_updateSqlNode, t_gsp_insertIntoValue, t_gsp_insertCondition, t_gsp_insertSqlNode, t_gsp_whereClause, t_gsp_joinExpr, t_gsp_tableSamplePart, t_gsp_tableSample, t_gsp_pxGranule, t_gsp_flashback, t_gsp_forUpdate, t_gsp_groupingSetItem, t_gsp_groupingSet, t_gsp_rollupCube, t_gsp_gruopByItem, t_gsp_groupBy, t_gsp_orderBy, t_gsp_selectDistinct, t_gsp_hierarchical, t_gsp_intoClause, t_gsp_cte, t_gsp_commentSqlNode, t_gsp_plsqlCreateTypeBody, t_gsp_callSpec, t_gsp_typeAttribute, t_gsp_plsqlCreateType, t_gsp_dmlEventClause, t_gsp_nonDmlTriggerClause, t_gsp_compoundDmlTriggerClause, t_gsp_simpleDmlTriggerClause, t_gsp_createTriggerSqlNode, t_gsp_createPackageSqlNode, t_gsp_plsqlVarDeclStmt, t_gsp_createFunctionSqlNode, t_gsp_parameterDeclaration, t_gsp_createProcedureSqlNode, t_gsp_plsqlReturnStmt, t_gsp_plsqlRaiseStmt, t_gsp_plsqlLoopStmt, t_gsp_plsqlCaseStmt, t_gsp_plsqlForallStmt, t_gsp_plsqlElsifStmt, t_gsp_plsqlIfStmt, t_gsp_plsqlGotoStmt, t_gsp_plsqlExitStmt, t_gsp_plsqlAssignStmt, t_gsp_plsqlCursorDeclStmt, t_gsp_plsqlRecordTypeDefStmt, t_gsp_plsqlVarrayTypeDefStmt, t_gsp_plsqlTableTypeDefStmt, t_gsp_plsqlNullStmt, t_gsp_plsqlFetchStmt, t_gsp_plsqlPipeRowStmt, t_gsp_plsqlOpenforStmt, t_gsp_plsqlOpenStmt, t_gsp_plsqlCloseStmt, t_gsp_plsqlBasicStmt, t_gsp_blockSqlNode, t_gsp_bindArgument, t_gsp_execImmeNode, t_gsp_exceptionHandler, t_gsp_exceptionClause, t_gsp_fetchFirstClause, t_gsp_optimizeForClause, t_gsp_isolationClause, t_gsp_valueRowItem, t_gsp_dataChangeTable, t_gsp_includeColumns, t_gsp_db2_signal, t_gsp_db2_compoundSqlNode, t_gsp_db2_triggerAction, t_gsp_db2_callStmtSqlNode, t_gsp_db2_forSqlNode, t_gsp_db2_ifSqlNode, t_gsp_db2_elseIfSqlNode, t_gsp_db2_iterateStmtSqlNode, t_gsp_db2_leaveStmtSqlNode, t_gsp_db2_setSqlNode, t_gsp_db2_whileSqlNode, t_gsp_db2_repeatSqlNode, t_gsp_db2_gotoSqlNode, t_gsp_db2_loopSqlNode, t_gsp_returnSqlNode, t_gsp_continueSqlNode, t_gsp_breakSqlNode, t_gsp_grantSqlNode, t_gsp_fetchSqlNode, t_gsp_openSqlNode, t_gsp_closeSqlNode, t_gsp_mssql_executeAsSqlNode, t_gsp_mssql_executeSqlNode, t_gsp_mssql_execParameter, t_gsp_mssql_dropDbObjectSqlNode, t_gsp_dropIndexItem, t_gsp_truncateTableSqlNode, t_gsp_mssql_setSqlNode, t_gsp_mssql_beginTranSqlNode, t_gsp_mssql_raiserrorSqlNode, t_gsp_mssql_gotoSqlNode, t_gsp_mssql_labelSqlNode, t_gsp_mssql_killSqlNode, t_gsp_mssql_deallocateSqlNode, t_gsp_declareSqlNode, t_gsp_declareVariable, t_gsp_mssql_beginDialogSqlNode, t_gsp_mssql_sendOnConversationSqlNode, t_gsp_mssql_endConversationSqlNode, t_gsp_mssql_revertSqlNode, t_gsp_mssql_goSqlNode, t_gsp_mssql_useSqlNode, t_gsp_mssql_printSqlNode, t_gsp_ifSqlNode, t_gsp_elseIfSqlNode, t_gsp_createTriggerUpdateColumn, t_gsp_whileSqlNode, t_gsp_mssql_computeClause, t_gsp_mssql_computeClauseItem, t_gsp_mssql_computeExpr, t_gsp_topClause, t_gsp_mssql_containsTable, t_gsp_mssql_tableHint, t_gsp_mssql_freeTable, t_gsp_mssql_openXML, t_gsp_mssql_openRowSet, t_gsp_pivotClause, t_gsp_unPivotClause, t_gsp_mssql_bulkInsertSqlNode, t_gsp_mssql_openQuery, t_gsp_mssql_openDatasource, t_gsp_mssql_outputClause, t_gsp_mssql_updateTextSqlNode, t_gsp_commitSqlNode, t_gsp_rollbackSqlNode, t_gsp_saveTransSqlNode, t_gsp_renameColumnSqlNode, t_gsp_renameSequenceSqlNode, t_gsp_renameTableSqlNode, t_gsp_renameIndexSqlNode, t_gsp_dropSequenceSqlNode, t_gsp_dropSynonymSqlNode, t_gsp_dropRowTypeSqlNode, t_gsp_alterIndexSqlNode, t_gsp_alterIndexStatement, t_gsp_intoTableClause, t_gsp_informixOuterClause, t_gsp_createRowTypeSqlNode, t_gsp_subscripts, t_gsp_limitClause, t_gsp_callSqlNode, t_gsp_createDatabaseSqlNode, t_gsp_iterateSqlNode, t_gsp_leaveSqlNode, t_gsp_repeatSqlNode, t_gsp_loopSqlNode, t_gsp_revokeSqlNode, t_gsp_executeSqlNode, t_gsp_dropRoleSqlNode, t_gsp_dropTriggerSqlNode, t_gsp_lockTableSqlNode, t_gsp_lockingClause, t_gsp_windowClause, t_gsp_windowDef, t_gsp_partitionClause, t_gsp_indices, t_gsp_alterSequenceSqlNode, t_gsp_alterViewSqlNode, t_gsp_collectStatisticsSqlNode, t_gsp_teradataWithClause, t_gsp_qualifyClause, t_gsp_sampleClause, t_gsp_expandOnClause, t_gsp_datatypeAttribute, t_gsp_newVariantTypeArgument, t_gsp_outputFormatPhrase } ENodeType; ''' def printf_func(define, name, first, last): s, e = define.index('{'), define.rindex('}') items = define[s+1:e].split(',') assert items[0].strip() == first, (items[0].strip(), first) assert items[-1].strip() == last, (items[-1].strip(),last) print('''void {function}_init(lua_State *L) { \tstatic const char* Var_{function} = "{function}"; \tlua_pushstring(L, Var_{function}); \tlua_newtable(L);\n'''.replace("{function}", name)) i = 0 for k in items: k = k.strip() if k: print('\tlua_pushstring(L, "%s"); lua_pushnumber(L, %s); lua_settable(L, -3);' % (k,k)) if i % 100 == 0:print('\tassert( %d == %s);\n' % (i, k)) i+=1 print('\tassert( %d == %s);' %(i, k)) print("\n\tlua_settable(L, -3);\n}\n") printf_func(stmttype, "EStmtType", "sstunknown", "sstinformixWhenever") printf_func(nodetype, "ENodeType", "t_gsp_invalid", "t_gsp_outputFormatPhrase")
stmttype = '\ntypedef enum EStmtType {\n sstunknown,sstinvalid,sstselect,sstdelete,sstupdate,\n sstinsert,sstcreatetable,sstcreateview,sstsqlpluscmd, sstcreatesequence,\n sstdropsequencestmt,sstdroptypestmt,sstplsql_packages,sstplsql_objecttype,sstcreate_plsql_procedure,\n sstcreate_plsql_function,sstcreate_varray_type,sstcreate_nested_table_type,sstcreateobjecttablestmt,sstplsql_block,\n sstplsql_createprocedure,sstplsql_createfunction,sstplsql_createpackage,sstplsql_createtrigger,sstplsql_createtype,\n sstplsql_createtypebody,sstplsql_tabletypedef,sstplsql_varraytypedef,sstplsql_createtype_placeholder,\n sstaltersession,sstcreateindex,sstdropindex,sstdropview,sstmerge,\n sstdroptable,sstaltertable,sstcommit,sstrollback,sstsavepoint,\n sstsettransaction,sstlocktable,sstmssqldummystmt,sstcreatedatabase,sstrevoke,\n sstTruncate, sstcreatematerializedview, sstcreatesynonym,\n sstmssqlcreateprocedure,sstmssqlcreatetrigger,sstmssqlcreatefunction,sstmssqlalterprocedure,sstmssqlaltertrigger,\n sstmssqlalterfunction,sstmssqlif,sstmssqlblock,sstmssqlgo,sstmssqldbcc,\n sstmssqlrestore,sstmssqlbackup,sstmssqlrevoke,sstmssqlreadtext,sstmssqlgrant,\n sstmssqltruncatetable,sstmssqladdsignature,sstmssqlalterapplicationrole,sstmssqlalterassembly,sstmssqlalterasymmetrickey,\n sstmssqlalterauthorization,sstmssqlaltercertificate,sstmssqlaltercredential,\n sstmssqlalterdatabase,sstmssqlcreatedatabase,\n sstmssqlalterendpoint,\n sstmssqlalterfulltextcatalog,sstmssqlalterfulltextindex,sstmssqlalterindex,sstmssqlalterlogin,sstmssqlaltermasterkey,\n sstmssqlaltermessagetype,sstmssqlalterpartitionfunction,sstmssqlalterpartitionscheme,sstmssqlalterqueue,sstmssqlalterremoteservicebinding,\n sstmssqlalterrole,sstmssqlalterroute,sstmssqlalterschema,sstmssqlalterservice,sstmssqlalterservicemasterkey,\n sstmssqlaltersymmetrickey,sstmssqlalteruser,sstmssqlalterview,sstmssqlalterxmlschemacollection,sstmssqlbackupdatabase,\n sstmssqlbackupcertificate,sstmssqlbackuplog,sstmssqlbackupmasterkey,sstmssqlbackupservicemasterkey,sstmssqlbeginconversationtimer,\n sstmssqlbegindialog,sstmssqlbegindistributed,sstmssqlbegintran,sstmssqlbreak,sstmssqlbulkinsert,\n sstmssqlclose,sstmssqlclosemasterkey,sstmssqlclosesymmetrickey,sstmssqlcontinue,sstmssqlcreateaggregate,\n sstmssqlcreateapplicationrole,sstmssqlcreateassembly,sstmssqlcreateasymmetrickey,sstmssqlcreatecertificate,sstmssqlcreatecontract,\n sstmssqlcreatecredential,sstmssqlcreatedefault,sstmssqlcreateendpoint,sstmssqlcreateeventnotification,sstmssqlcreatefulltextcatalog,\n sstmssqlcreatefulltextindex,sstmssqlcreatelogin,sstmssqlcreatemasterkey,sstmssqlcreatemessagetype,sstmssqlcreatepartitionfunction,\n sstmssqlcreatepartitionscheme,sstmssqlcreatequeue,sstmssqlcreateremoteservicebinding,sstmssqlcreaterole,sstmssqlcreateroute,\n sstmssqlcreaterule,sstmssqlcreateschema,sstmssqlcreateservice,sstmssqlcreatestatistics,sstmssqlcreatesymmetrickey,\n sstmssqlcreatesynonym,sstmssqlcreatetype,sstmssqlcreateuser,sstmssqlcreatexmlschemacollection,sstmssqldeallocate,\n sstmssqldeclare,sstmssqldeny,sstmssqldisabletrigger,sstmssqldropaggregate,sstmssqldropapplicationrole,\n sstmssqldropassembly,sstmssqldropasymmetrickey,sstmssqldropcertificate,sstmssqldropcontract,sstmssqldropcredential,\n sstmssqldropdatabase,sstmssqldropdefault,sstmssqldropendpoint,sstmssqldropeventnotification,sstmssqldropfulltextcatalog,\n sstmssqldropfulltextindex,sstmssqldropfunction,sstmssqldropdbobject,sstmssqldropindex,sstmssqldroplogin,\n sstmssqldropmasterkey,sstmssqldropmessagetype,sstmssqldroppartitionfunction,sstmssqldroppartitionscheme,sstmssqldropprocedure,\n sstmssqldropqueue,sstmssqldropremoteservicebinding,sstmssqldroprole,sstmssqldroproute,sstmssqldroprule,\n sstmssqldropschema,sstmssqldropservice,sstmssqldropsignature,sstmssqldropstatistics,sstmssqldropsymmetrickey,\n sstmssqldropsynonym,sstmssqldroptable,sstmssqldroptrigger,sstmssqldroptype,sstmssqldropuser,\n sstmssqldropview,sstmssqldropxmlschemacollection,sstmssqlenabletrigger,sstmssqlendconversation,sstmssqlexecuteas,\n sstmssqlfetch,sstmssqlgoto,sstmssqlkill,sstmssqlkillquerynotificationsubscription,sstmssqlkillstats,\n sstmssqlmoveconversation,sstmssqlopen,sstmssqlopenmasterkey,sstmssqlopensymmetrickey,sstmssqlprint,\n sstmssqlraiserror,sstmssqlreceive,sstmssqlreconfigure,sstmssqlrestoredatabase,sstmssqlrestorefilelistonly,\n sstmssqlrestoreheaderonly,sstmssqlrestorelabelonly,sstmssqlrestorelog,sstmssqlrestoremasterkey,sstmssqlrestorerewindonly,\n sstmssqlrestoreservicemasterkey,sstmssqlrestoreverifyonly,sstmssqlrevert,sstmssqlreturn,sstmssqlsavetran,\n sstmssqlselect,sstmssqlsendonconversation,sstmssqlset,sstmssqlsetuser,sstmssqlshutdown,\n sstmssqlsign,sstmssqlbegintry,sstmssqlbegincatch,sstmssqlupdatestatistics,sstmssqlupdatetext,\n sstmssqluse,sstmssqlwaitfor,sstmssqlwhile,sstmssqlcte,sstmssqlwithxmlnamespaces,\n sstmssqlwritetext,sstmssqlexec,sstexecutestmt,sstsetstmt,sstmssqlcommit,\n sstmssqlrollback,sstraiserror,sstmssqlwithas,sstmssqllabel,ssterrorstmt,\n sstmssqldrop,sstmssqlstmtstub,sstmssqlcheckpoint,\n sstoraclealtercluster,sstoraclealterdatabase,\n sstmssqlexecfake,\n sstoraclealterdimension,sstoraclealterdiskgroup,sstoraclealterfunction,sstoraclealterindex,sstoraclealterindextype,\n sstoraclealterjava,sstoraclealtermaterializedview,sstoraclealtermaterializedviewlog,sstoraclealteroperator,sstoraclealteroutline,\n sstoraclealterpackage,sstoraclealterprocedure,sstoraclealterprofile,sstoraclealterresourcecost,sstoraclealterrole,\n sstoraclealterrollbacksegment,sstoraclealtersequence,sstoraclealtersession,sstoraclealtersystem,sstoraclealtertablespace,\n sstoraclealtertrigger,sstoraclealtertype,sstoraclealteruser,sstoraclealterview,sstoracleanalyze,\n sstoracleassociatestatistics,sstoracleaudit,sstoraclecall,sstoraclecomment,sstoraclecommit,\n sstoraclecreatecluster,sstoraclecreatecontext,sstoraclecreatecontrolfile,sstoraclecreatedatabase,sstoraclecreatedatabaselink,\n sstoraclecreatedimension,sstoraclecreatedirectory,sstoraclecreatediskgroup,sstoraclecreatefunction,sstoraclecreateindex,\n sstoraclecreateindextype,sstoraclecreatejava,sstoraclecreatelibrary,sstoraclecreatematerializedview,sstoraclecreatematerializedviewlog,\n sstoraclecreateoperator,sstoraclecreateoutline,sstoraclecreatepackagebody,sstoraclecreatepfile,\n sstoraclecreateprocedure,sstoraclecreateprofile,sstoraclecreaterestorepoint,sstoraclecreaterole,sstoraclecreaterollbacksegment,\n sstoraclecreateschema,sstoraclecreatesequence,sstoraclecreatespfile,sstoraclecreatesynonym,sstoraclecreatetablespace,\n sstoraclecreatetrigger,sstoraclecreatetype, sstoraclecreateuser,sstoraclecreateview,\n sstoracledisassociatestatistics,sstoracledropcluster,sstoracledropcontext,sstoracledropdatabase,sstoracledropdatabaselink,\n sstoracledropdimension,sstoracledropdirectory,sstoracledropdiskgroup,sstoracledropfunction,sstoracledropindex,\n sstoracledropindextype,sstoracledropjava,sstoracledroplibrary,sstoracledropmaterializedview,sstoracledropmaterializedviewlog,\n sstoracledropoperator,sstoracledropoutline,sstoracledroppackage,sstoracledropprocedure,sstoracledropprofile,\n sstoracledroprestorepoint,sstoracledroprole,sstoracledroprollbacksegment,sstoracledropsequence,sstoracledropsynonym,\n sstoracledroptable,sstoracledroptablespace,sstoracledroptrigger,sstoracledroptype,sstoracledroptypebody,\n sstoracledropuser,sstoracledropview,sstoracleexplainplan,sstoracleflashbackdatabase,\n sstoracleflashbacktable,sstoraclegrant,sstoraclelocktable,sstoraclenoaudit,sstoraclepurge,\n sstoraclerename,sstoraclerevoke,sstoraclerollback,sstoraclesavepoint,sstoraclesetconstraint,\n sstoraclesetrole,sstoraclesettransaction,sstoracletruncate,\n sstmysqlalterdatabase,sstmysqlalterfunction,\n sstmysqlalterprocedure,sstmysqlalterview,sstmysqlanalyzetable,sstmysqlbackuptable,sstmysqlcacheindex,\n sstmysqlcall,sstmysqlcase,sstmysqlchangemasterto,sstmysqlchecktable,sstmysqlchecksumtable,\n sstmysqlclose,sstmysqlcommit,sstmysqlcreatedatabase,sstmysqlcreateindex,sstmysqlcreatefunction,\n sstmysqlcreateprocedure,sstmysqlcreatetrigger,sstmysqlcreateuser,sstmysqlcreateview,sstmysqldeclare,\n sstmysqldescribe,sstmysqldo,sstmysqldropdatabase,sstmysqldropfunction,sstmysqldropindex,\n sstmysqldropprocedure,sstmysqldroptable,sstmysqldroptrigger,sstmysqldropuser,sstmysqldropview,\n sstmysqlexecute,sstmysqlfetch,sstmysqlflush,sstmysqlgrant,sstmysqlhandler,\n sstmysqlif,sstmysqliterate,sstmysqlkill,sstmysqlleave,sstmysqlloaddatainfile,\n sstmysqlloaddatafrommaster,sstmysqlloadindexintocache,sstmysqlloadtable,sstmysqllocktable,sstmysqlloop,\n sstmysqlopen,sstmysqloptimizetable,sstmysqldeallocateprepare,sstmysqldropprepare,sstmysqlprepare,\n sstmysqlpurgelogs,sstmysqlrepeat,sstmysqlreplace,sstmysqlrenametable,sstmysqlrepairtable,\n sstmysqlreleasesavepoint,sstmysqlrenameuser,sstmysqlrest,sstmysqlresetmaster,sstmysqlresetslave,\n sstmysqlrestoretable,sstmysqlrevoke,sstmysqlrollback,sstmysqlsavepoint,sstmysqlreset,\n sstmysqlset,sstmysqlsetautocommit,sstmysqlsettransaction,sstmysqlsetpassword,sstmysqlshowcreatedatabase,\n sstmysqlshowcharacterset,sstmysqlshowcollation,sstmysqlshowcolumns,sstmysqlshowcreatetable,sstmysqlshowcreateview,\n sstmysqlshowcreatefunction,sstmysqlshowcreateprocedure,sstmysqlshowdatabases,sstmysqlshowengines,sstmysqlshowerrors,\n sstmysqlshowgrants,sstmysqlshowfunctionstatus,sstmysqlshowindex,sstmysqlshowinnodbstatus,sstmysqlshowlogs,\n sstmysqlshowprivileges,sstmysqlshowprocesslist,sstmysqlshowstatus,sstmysqlshowtablestatus,sstmysqlshowtables,\n sstmysqlshowtriggers,sstmysqlshowvariables,sstmysqlshowwarnings,sstmysqlshowbinlogevents,sstmysqlshowmasterlogs,\n sstmysqlshowmasterstatus,sstmysqlshowslavehosts,sstmysqlshowslavestatus,sstmysqlstartslave,sstmysqlstarttransaction,\n sstmysqlsetglobalsql_slave_skip_counter,sstmysqlsetsql_log_bin,sstmysqlstopslave,sstmysqltruncate,sstmysqlunlocktable,\n sstmysqluse,sstmysqlwhile,sstmysqlshow,sstmysqlreturn,sstmysqlrepeatstmt,\n sstmysqlwhilestmt,sstmysqlopencursor,sstmysqlfetchcursor,sstmysqlcasestmt,sstmysqlifstmt,\n sstmysqlloopstmt,sstmysqlstmtstub, sstmysqlblock,\n sstdb2allocatecursor,sstdb2alterbufferpool,sstdb2alterdatabasepartitiongroup,sstdb2alterfunction,\n sstdb2altermethod,sstdb2alternickname,sstdb2alterprocedure,sstdb2altersequence,sstdb2alterserver,\n sstdb2altertable,sstdb2altertablespace,sstdb2altertype,sstdb2alterusermapping,sstdb2alterview,\n sstdb2alterwrapper,sstdb2associatelocators,sstdb2begindeclaresection,sstdb2call,sstdb2case,\n sstdb2close,sstdb2comment,sstdb2commit,sstdb2connect,sstdb2createalias,\n sstdb2createbufferpool,sstdb2createdatabasepartitiongroup,sstdb2createdistincttype,sstdb2createeventmonitor,sstdb2createfunction,\n sstdb2createfunctionmapping,sstdb2createindex,sstdb2createindexextension,sstdb2createmethod,sstdb2createnickname,\n sstdb2createprocedure,sstdb2createschema,sstdb2createsequence,sstdb2createserver,sstdb2createtablespace,\n sstdb2createtransform,sstdb2createtrigger,sstdb2createtype,sstdb2createtypemapping,sstdb2createusermapping,\n sstdb2createwrapper,sstdb2declarecursor,sstdb2declareglobaltemporarytable,sstdb2describe,sstdb2disconnect,\n sstdb2drop,sstdb2echo,\n sstdb2enddeclaresection,sstdb2execute,sstdb2executeimmediate,sstdb2explain,\n sstdb2fetch,sstdb2flusheventmonitor,sstdb2flushpackagecache,sstdb2for,sstdb2freelocator,\n sstdb2getdiagnostics,sstdb2goto,sstdb2grant,sstdb2if,sstdb2include,\n sstdb2iterate,sstdb2leave,sstdb2locktable,sstdb2loop,sstdb2open,\n sstdb2prepare,sstdb2refreshtable,sstdb2release,sstdb2releasesavepoint,sstdb2rename,\n sstdb2renametablespace,sstdb2repeat,sstdb2resignal,sstdb2return,sstdb2revoke,\n sstdb2rollback,sstdb2savepoint,sstdb2setconnection,sstdb2setcurrentdefaulttransformgroup,sstdb2setcurrentdegree,\n sstdb2setcurrentexplainmode,sstdb2setcurrentexplainsnapshot,sstdb2setcurrentisolation,sstdb2setcurrentlocktimeout,sstdb2setcurrentmaintainedtabletypesforoptimization,\n sstdb2setcurrentpackagepath,sstdb2setcurrentpackageset,sstdb2setcurrentqueryoptimization,sstdb2setcurrentrefreshage,sstdb2setencryptionpassword,\n sstdb2seteventmonitorstate,sstdb2setintegrity,sstdb2setpassthru,sstdb2setpath,sstdb2setschema,\n sstdb2setserveroption,sstdb2setsessionauthorization,sstdb2set,sstdb2terminate,sstdb2signal,\n sstdb2values,sstdb2whenever,sstdb2while,sstdb2sqlvariabledeclaration,sstdb2conditiondeclaration,\n sstdb2returncodesdeclaration,sstdb2statementdeclaration,sstdb2declarecursorstatement,sstdb2handlerdeclaration,sstdb2sqlprocedurestatement,\n sstdb2callstmt,sstdb2forstmt,sstdb2ifstmt,sstdb2iteratestmt,sstdb2leavestmt,\n sstdb2signalstatement,sstdb2whilestmt,sstdb2repeatstmt,sstdb2closecursorstmt,sstdb2opencursorstmt,\n sstdb2fetchcursorstmt,sstdb2gotostmt,sstdb2loopstmt,sstdb2casestmt,sstdb2procedurecompoundstatement,\n sstdb2dynamiccompoundstatement,sstdb2returnstmt,sstdb2dummystmt,sstdb2valuesinto,\n sstdb2stmtstub,sstdb2declare,\n sstplsql_assignstmt,\n sstplsql_casestmt,sstplsql_closestmt,sstplsql_cursordecl,sstplsql_dummystmt,sstplsql_elsifstmt,\n sstplsql_execimmestmt,sstplsql_exitstmt,sstplsql_fetchstmt,sstplsql_forallstmt,sstplsql_gotostmt,\n sstplsql_ifstmt,sstplsql_loopstmt,sstplsql_nullstmt,sstplsql_openforstmt,sstplsql_openstmt,\n sstplsql_pragmadecl,sstplsql_procbasicstmt,sstplsql_procedurespec,sstplsql_raisestmt,sstplsql_recordtypedef,\n sstplsql_returnstmt,sstplsql_sqlstmt,sstplsql_proceduredecl,sstplsql_vardecl,\n sstplsql_piperowstmt, \n sstsybaselocktable,\n sstmdxunknown,sstmdxselect,sstmdxupdate,sstmdxalterdimension,\n sstmdxcall,sstmdxclearcalculations,sstmdxdrillthrough,sstmdxaltercube,sstmdxcreateaction,\n sstmdxcreatecellcalculation,sstmdxcreatedimensionmember,sstmdxcreateglobalcube,sstmdxcreatemember,sstmdxcreatesessioncube,\n sstmdxcreateset,sstmdxcreatesubcube,sstmdxdropaction,sstmdxdropcellcalculation,sstmdxdropdimensionmember,\n sstmdxdropmember,sstmdxdropset,sstmdxdropsubcube,sstmdxrefreshcube,sstmdxcalculate,\n sstmdxcase,sstmdxexisting,sstmdxfreeze,sstmdxif, sstmdxscope,sstmdxexpression,\n sstteradataabort,sstteradataalterfunction,sstteradataaltermethod,sstteradataalterprocedure,\n sstteradataalterreplicationgroup,sstteradataaltertable,sstteradataaltertrigger,\n sstteradataaltertype,sstteradatabegindeclaresection,\n sstteradatabeginlogging,sstteradatabeginquerylogging,sstteradatabegintransaction,\n sstteradatacall,\n sstteradatacheckpoint,sstteradataclose,\n sstteradatacollectdemographics,sstteradatacollectstatistics,\n sstteradatacomment,sstteradatacommit,sstteradataconnect,\n sstteradatacreatecast,\n sstteradatacreateauthorization,\n sstteradatacreatedatabase,sstteradatacreatefunction,sstteradatacreateindex,\n sstteradatacreatemacro, sstteradatacreatemethod,sstteradatacreateordering,\n sstteradatacreateprocedure,sstteradatacreateprofile,\n sstteradatacreatereplicationgroup,sstteradatacreaterole,sstteradatacreatetransform,\n sstteradatacreatetrigger,sstteradatacreatetype,\n sstteradatacreateuser,sstteradatadatabase,sstteradatadeclarecursor,sstteradatadeclarestatement,\n sstteradatadeclaretable,sstteradatadeletedatabase,sstteradatadeleteuser,sstteradatadescribe,\n sstteradatadiagnostic,sstteradatadropauthorization,sstteradatadropdatabase,\n sstteradatadropdbobject,\n sstteradatadropfunction,\n sstteradatadropuser,\n sstteradatadropcast,sstteradatadropmacro,sstteradatadropordering,sstteradatadropprocedure,\n sstteradatadropprofile,sstteradatadropreplicationgroup,sstteradatadroprole,\n sstteradatadropstatistics,sstteradatadroptransform,sstteradatadroptrigger,sstteradatadroptype,\n sstteradatadumpexplain,sstteradataecho,sstteradataenddeclaresection,sstteradataendlogging,\n sstteradataendquerylogging,sstteradataendtransaction,sstteradataexecute,sstteradataexecuteimmediate,\n sstteradatafetch, \n sstteradatagetcrash,sstteradatagive,sstteradatagrant,sstteradatagrantlogon,sstteradatagrantmonitor,\n sstteradatahelp,sstteradatainclude,sstteradataincludesqlca,sstteradatasqlda,sstteradatainitiateindexanalysis,\n sstteradatainsertexplain,sstteradatalogoff,sstteradatalogon,sstteradatamodifydatabase,\n sstteradatamodifyprofile,sstteradatamodifyuser,sstteradataopen,sstteradataposition,\n sstteradataprepare,\n sstteradatarenamefunction,sstteradatarenamemacro,\n sstteradatarenameprocedure,sstteradatarenametable,sstteradatarenametrigger,sstteradatarenameview,\n sstteradatareplacecast,\n sstteradatareplacefunction,sstteradatareplacemacro,sstteradatareplacemethod,\n sstteradatareplaceordering,\n sstteradatareplaceprocedure,sstteradatareplacetransform,sstteradatareplacetrigger,sstteradatareplaceview,\n sstteradatarestartindexanalysis,sstteradatarevoke,sstteradatarevokelogon,sstteradatarevokemonitor,\n sstteradatarevokerole,sstteradatarewind,sstteradatarollback,sstteradatasetbuffersize,\n sstteradatasetcharset,sstteradatasetconnection,sstteradatasetcrash,sstteradatasetrole,\n sstteradatasetsessionaccount,\n sstteradatasetsession,sstteradatasettimezone,sstteradatashow,sstteradatashowfunction,\n sstteradatashowindex,sstteradatashowmacro,sstteradatashowmethod,sstteradatashowprocedure,\n sstteradatashowreplicationgroup,sstteradatashowtable,sstteradatashowtrigger,\n sstteradatashowtype,sstteradatashowview,\n sstteradatatest,sstteradatawait,sstteradatawhenever,sstteradataasync,sstteradataexplain,\n sstteradatausing,sstteradatanotimplement,\n sstblockstmt , sststoredprocedurestmt,sstoraclestoredprocedurestmt,\n sstpostgresqlabort,sstpostgresqlAlterAggregate,sstpostgresqlAlterCollation,\n sstpostgresqlAlterConversion,sstpostgresqlalterdatabase,\n sstpostgresqlAlterDefaultPrivileges,sstpostgresqlAlterDomain , sstpostgresqlAlterExtension,\n sstpostgresqlAlterForeignDataWrapper,sstpostgresqlAlterForeignTable,\n sstpostgresqlAlterfunction, sstpostgresqlAlterGroup,sstpostgresqlAlterIndex,\n sstpostgresqlAlterLanguage, sstpostgresqlAlterLargeObject,sstpostgresqlAlterOperator,\n sstpostgresqlAlterOperatorClass,sstpostgresqlAlterOperatorFamily,sstpostgresqlAlterRole,\n sstpostgresqlAlterSchema,sstpostgresqlAlterSequence,sstpostgresqlAlterServer,\n sstpostgresqlAlterTablespace, sstpostgresqlAlterTextSearchConfiguration,\n sstpostgresqlAlterTextSearchDictionary,sstpostgresqlAlterTextSearchParser,\n sstpostgresqlAlterTextSearchTemplate,sstpostgresqlAlterTrigger,\n sstpostgresqlAlterType,sstpostgresqlAlterUser,sstpostgresqlAlterUserMapping,\n sstpostgresqlAlterView,sstpostgresqlAnalyze,sstpostgresqlBegin,sstpostgresqlCheckpoint,\n sstpostgresqlClose,sstpostgresqlCluster,sstpostgresqlComment,sstpostgresqlCommit,\n sstpostgresqlCommitPrepared,sstpostgresqlCopy,\n sstpostgresqlCreateAggregate,sstpostgresqlCreateCast,sstpostgresqlCreateCollation,\n sstpostgresqlConversion,sstpostgresqlCreateDatabase,sstpostgresqlCreateDomain,\n sstpostgresqlCreateExtension,sstpostgresqlCreateForeignDataWrapper,sstpostgresqlCreateForeignTable,\n sstpostgresqlCeateFunction,sstpostgresqlCeateGroup,sstpostgresqlCreateIndex,sstpostgresqlCreateLanguage,\n sstpostgresqlCreateOperator,sstpostgresqlCreateOperatorFimaly,sstpostgresqlCreateOperatorClass,\n sstpostgresqlCreateRole,sstpostgresqlCreateRule,sstpostgresqlCreateSchema,\n sstpostgresqlCreateSequence,sstpostgresqlCreateServer,sstpostgresqlCreateTablespace,\n sstpostgresqlCreateTextSearchConfiguration,sstpostgresqlCreateTextSearchDictionary,\n sstpostgresqlCreateTextSearchParser,sstpostgresqlCreateTextSearchTemplate,\n sstpostgresqlCreateTrigger,sstpostgresqlCreateType,sstpostgresqlCreateUser,\n sstpostgresqlCreateUserMapping,sstpostgresqlCreateView,sstpostgresqlDeallocate,\n sstpostgresqlDeclare,sstpostgresqlDiscard,sstpostgresqlDo,sstpostgresqlDropAggregate,\n sstpostgresqlDropCast,sstpostgresqlDropCollation,sstpostgresqlDropConversion,\n sstpostgresqlDropDatabase,sstpostgresqlDropDomain,sstpostgresqlDropExtension,\n sstpostgresqlDropForeignDataWrapper,sstpostgresqlDropForeignTable,sstpostgresqlDropFunction,\n sstpostgresqlDropGroup,sstpostgresqlDropLanguage,sstpostgresqlDropOperator,\n sstpostgresqlDropOperatorClass,sstpostgresqlDropOperatorFamily,sstpostgresqlDropOwned,\n sstpostgresqlDropRole,sstpostgresqlDropRule,sstpostgresqlDropSchema,sstpostgresqlDropSequence,\n sstpostgresqlDropServer,sstpostgresqlDropTable,sstpostgresqlDropTablespace,sstpostgresqlDropTextSearchConfiguration,\n sstpostgresqlDropTextSearchDictionary,sstpostgresqlDropTextSearchParser,sstpostgresqlDropTextSearchTemplate,\n sstpostgresqlDropTrigger,sstpostgresqlDropType,sstpostgresqlDropUser,sstpostgresqlDropUserMapping,\n sstpostgresqlDropView,sstpostgresqlEnd,sstpostgresqlExecute,sstpostgresqlExplain,sstpostgresqlFetch,\n sstpostgresqlGrant,sstpostgresqlListen,sstpostgresqlLoad,sstpostgresqlLock,sstpostgresqlMove,\n sstpostgresqlNotify,sstpostgresqlPrepare,sstpostgresqlPrepareTransaction,sstpostgresqlReassignOwned,\n sstpostgresqlReindex,sstpostgresqlReleaseSavepoint,sstpostgresqlReset,sstpostgresqlRevoke,\n sstpostgresqlRollback,sstpostgresqlRollbackPrepared,sstpostgresqlSavepoint,sstpostgresqlSecurityLabel,\n sstpostgresqlSet,sstpostgresqlSetConstraints,sstpostgresqlSetRole,sstpostgresqlSetSessionAuthorization,\n sstpostgresqlSetTransaction,sstpostgresqlTruncate,sstpostgresqlUnlisten,sstpostgresqlValues,\n sstnetezzaAlterDatabase,sstnetezzaAlterGroup,sstnetezzaAlterHistoryConfiguration,\n sstnetezzaAlterSequence,sstnetezzaAlterSynonym,\n sstnetezzaAlterTable,sstnetezzaAlterUser,sstnetezzaAlterView,\n sstnetezzaBegin,sstnetezzaComment,sstnetezzaCommit,sstnetezzaCopy,\n sstnetezzaCreateExternalTable,sstnetezzaCreateGruop,\n sstnetezzaCreateHistoryConfiguration,\n sstnetezzaCreateUser,\n sstnetezzaDropConnection,sstnetezzaDropDatabase,\n sstnetezzaDropGroup,sstnetezzaDropHistoryConfiguration,sstnetezzaDropSequence,\n sstnetezzaDropSession,sstnetezzaDropSynonym,sstnetezzaDropTable,sstnetezzaDropUser,\n sstnetezzaDropView,sstnetezzaExplain,sstnetezzaGenerateExpressStatistics,\n sstnetezzaGenerateStatistics,sstnetezzaGrant,sstnetezzaGroomTable,sstnetezzaReset,\n sstnetezzaRevoke,sstnetezzaRollback,sstnetezzaSet,\n sstnetezzaShow,\n sstinformixAllocateCollection,\n sstinformixAllocateDescriptor,\n sstinformixAlterAccess_Method,\n sstinformixAlterFragment, \n sstinformixAlterFunction, \n sstinformixAlterIndex, \n sstinformixAlterProcedure, \n sstinformixAlterRoutine, \n sstinformixAlterSecurityLabelComponent, \n sstinformixAlterSequence, \n sstinformixAlterTable, \n sstinformixAlterTrustedContext, \n sstinformixAlterUser, \n sstinformixBegin, \n sstinformixClose, \n sstinformixCloseDatabase, \n sstinformixCommit, \n sstinformixConnect, \n sstinformixCreateAccess_Method, \n sstinformixCreateAggregate, \n sstinformixCreateCast, \n sstinformixCreateIndex,\n sstinformixCreateDatabase, \n sstinformixCreateFunction, \n \n sstinformixCreateDefaultUser,\n sstinformixCreateDistinctType, \n sstinformixCreateExternalTable,\n \n sstinformixCreateFunctionFrom,\n \n sstinformixCreateOpaqueType, \n sstinformixCreateOpclass, \n \n sstinformixCreateProcedure, \n sstinformixCreateProcedureFrom, \n sstinformixAlterTrigger,\n \n sstinformixCreateRole, \n sstinformixCreateRoutineFrom,\n sstinformixCreateRowType, \n sstinformixCreateSchema, \n sstinformixCreateSecurityLabel,\n sstinformixCreateSecurityLabelComponent,\n sstinformixCreateSecurityPolicy, \n sstinformixCreateSequence, \n \n sstinformixCreateSynonym, \n sstinformixCreateTempTable, \n sstinformixCreateTrigger, \n sstinformixCreateTrustedContext, \n sstinformixCreateUser, \n sstinformixCreateView, \n sstinformixCreateXaDatasource, \n sstinformixCreateXaDatasourceType, \n sstinformixDatabase, \n sstinformixDeallocateCollection,\n sstinformixDeallocateDescriptor,\n sstinformixDeallocateRow, \n sstinformixDeclare, \n sstinformixDescribe,\n sstinformixDescribeInput, \n sstinformixDisconnect, \n sstinformixDropAccess_Method,\n sstinformixDropAggregate, \n sstinformixDropCast, \n sstinformixDropDatabase, \n sstinformixDropFunction, \n sstinformixDropIndex, \n sstinformixDropOpclass,\n sstinformixDropProcedure,\n sstinformixDropRole,\n sstinformixDropRoutine, \n sstinformixDropRowType, \n sstinformixDropSecurity,\n sstinformixDropSequence,\n sstinformixDropSynonym, \n sstinformixDropTable, \n sstinformixDropTrigger,\n sstinformixDropTrustedContext,\n sstinformixDropType, \n sstinformixDropUser, \n sstinformixDropView, \n sstinformixDropXaDatasource,\n sstinformixDropXaDatasourceType,\n sstinformixExecute, \n \n sstinformixExecuteFunction, \n sstinformixExecuteImmediate,\n sstinformixExecuteProcedure,\n sstinformixFetch, \n sstinformixFlush, \n sstinformixFree, \n sstinformixGetDescriptor, \n sstinformixGetDiagnostics,\n sstinformixGrant,\n sstinformixGrantFragment, \n sstinformixInfo, \n \n sstinformixLoad, \n sstinformixLockTable, \n sstinformixOpen,\n sstinformixOutput,\n sstinformixPrepare, \n sstinformixPut, \n sstinformixReleaseSavepoint, \n sstinformixRenameColumn, \n sstinformixRenameDatabase,\n sstinformixRenameIndex, \n sstinformixRenameSecurity,\n sstinformixRenameSequence,\n sstinformixRenameTable, \n sstinformixRenameTrustedContext,\n sstinformixRenameUser,\n sstinformixRevoke,\n sstinformixRevokeFragment, \n sstinformixRollbackWork, \n sstinformixSaveExternalDirectives, \n sstinformixSavepoint, \n sstinformixSetAutofree,\n sstinformixSetCollation, \n sstinformixSetConnection,\n sstinformixSetConstraints,\n sstinformixSetDatabaseObject, \n sstinformixSetDataskip,\n sstinformixSetDebugFile,\n sstinformixSetDeferred_Prepare, \n sstinformixSetDescriptor, \n sstinformixSetEncryptionPassword, \n sstinformixSetEnvironment, \n sstinformixSetExplain, \n sstinformixSetIndexes, \n sstinformixSetIsolation,\n sstinformixSetLockMode, \n sstinformixSetLog, \n sstinformixSetOptimization,\n sstinformixSetPDQPriority, \n sstinformixSetRole, \n sstinformixSetSessionAuthorization, \n sstinformixSetStatementCache, \n sstinformixSetTransaction, \n sstinformixSetTransactionMode,\n sstinformixSetTriggers, \n sstinformixSetUserPassword,\n sstinformixStartViolationsTable,\n sstinformixStopViolationsTable, \n sstinformixUnload,\n sstinformixUnlockTable, \n sstinformixUpdateStatistics, \n sstinformixWhenever\n }EStmtType;\n' nodetype = '\ntypedef enum ENodeType\n{\n t_gsp_invalid,\n t_gsp_dummy,\n t_gsp_join,\n t_gsp_joinItem,\n t_gsp_sql_statement,\n t_gsp_selectStatement,\n t_gsp_insertStatement,\n t_gsp_deleteStatement,\n t_gsp_updateStatement,\n t_gsp_createTableStatement,\n t_gsp_createIndexStatement,\n t_gsp_createViewStatement,\n t_gsp_unknownStatement,\n t_gsp_dropTableStatement,\n t_gsp_dropIndexStatement,\n t_gsp_dropViewStatement,\n t_gsp_dropDatabaseStatement,\n t_gsp_alterDatabaseStatement,\n t_gsp_createDatabaseStatement,\n t_gsp_createSequenceStatement,\n t_gsp_createSynonymStatement,\n t_gsp_createDirectoryStatement,\n t_gsp_alterTableStatement,\n t_gsp_mergeStatement,\n t_gsp_createPackageStatement,\n t_gsp_createProcedureStatement,\n t_gsp_createFunctionStatement,\n t_gsp_blockStatement,\n t_gsp_createTriggerStatement,\n t_gsp_trigger_event,\n t_gsp_arrayAccess,\n t_gsp_valueClause,\n t_gsp_constant,\n t_gsp_list,\n t_gsp_listcell,\n t_gsp_objectAccess,\n t_gsp_objectname ,\n t_gsp_expr,\n t_gsp_resultColumn,\n t_gsp_aliasClause,\n t_gsp_functionCall,\n t_gsp_keepDenseRankClause,\n t_gsp_analyticFunction,\n t_gsp_whenClauseItem,\n t_gsp_caseExpression,\n t_gsp_intervalExpression,\n t_gsp_trimArgument,\n t_gsp_typename,\n t_gsp_precisionScale,\n t_gsp_keyReference,\n t_gsp_keyAction,\n t_gsp_constraint,\n t_gsp_mergeInsertClause,\n t_gsp_mergeUpdateClause,\n t_gsp_mergeDeleteClause,\n t_gsp_mergeWhenClause,\n t_gsp_fromTable,\n t_gsp_multiTarget,\n t_gsp_insertRest,\n t_gsp_insertValuesClause,\n t_gsp_mergeSqlNode,\n t_gsp_alterTableOption,\n t_gsp_alterTableSqlNode,\n t_gsp_createSequenceSqlNode,\n t_gsp_createSynonymSqlNode,\n t_gsp_createDirectorySqlNode,\n t_gsp_dropViewSqlNode,\n t_gsp_dropIndexSqlNode,\n t_gsp_dropTableSqlNode,\n t_gsp_dropDatabaseSqlNode,\n t_gsp_alterDatabaseSqlNode,\n t_gsp_viewAliasItem,\n t_gsp_viewAliasClause,\n t_gsp_createViewSqlNode,\n t_gsp_createMaterializedViewSqlNode,\n t_gsp_createMaterializedViewLogSqlNode,\n t_gsp_orderByItem,\n t_gsp_createIndexSqlNode,\n t_gsp_columnDefinition,\n t_gsp_tableElement,\n t_gsp_table,\n t_gsp_createTableSqlNode,\n t_gsp_returningClause,\n t_gsp_selectSqlNode,\n t_gsp_deleteSqlNode,\n t_gsp_updateSqlNode,\n t_gsp_insertIntoValue,\n t_gsp_insertCondition,\n t_gsp_insertSqlNode,\n t_gsp_whereClause,\n t_gsp_joinExpr,\n t_gsp_tableSamplePart,\n t_gsp_tableSample,\n t_gsp_pxGranule,\n t_gsp_flashback,\n t_gsp_forUpdate,\n t_gsp_groupingSetItem,\n t_gsp_groupingSet,\n t_gsp_rollupCube,\n t_gsp_gruopByItem,\n t_gsp_groupBy,\n t_gsp_orderBy,\n t_gsp_selectDistinct,\n t_gsp_hierarchical,\n t_gsp_intoClause,\n t_gsp_cte,\n t_gsp_commentSqlNode,\n t_gsp_plsqlCreateTypeBody,\n t_gsp_callSpec,\n t_gsp_typeAttribute,\n t_gsp_plsqlCreateType,\n t_gsp_dmlEventClause,\n t_gsp_nonDmlTriggerClause,\n t_gsp_compoundDmlTriggerClause,\n t_gsp_simpleDmlTriggerClause,\n t_gsp_createTriggerSqlNode,\n t_gsp_createPackageSqlNode,\n t_gsp_plsqlVarDeclStmt,\n t_gsp_createFunctionSqlNode,\n t_gsp_parameterDeclaration,\n t_gsp_createProcedureSqlNode,\n t_gsp_plsqlReturnStmt,\n t_gsp_plsqlRaiseStmt,\n t_gsp_plsqlLoopStmt,\n t_gsp_plsqlCaseStmt,\n t_gsp_plsqlForallStmt,\n t_gsp_plsqlElsifStmt,\n t_gsp_plsqlIfStmt,\n t_gsp_plsqlGotoStmt,\n t_gsp_plsqlExitStmt,\n t_gsp_plsqlAssignStmt,\n t_gsp_plsqlCursorDeclStmt,\n t_gsp_plsqlRecordTypeDefStmt,\n t_gsp_plsqlVarrayTypeDefStmt,\n t_gsp_plsqlTableTypeDefStmt,\n t_gsp_plsqlNullStmt,\n t_gsp_plsqlFetchStmt,\n t_gsp_plsqlPipeRowStmt,\n t_gsp_plsqlOpenforStmt,\n t_gsp_plsqlOpenStmt,\n t_gsp_plsqlCloseStmt,\n t_gsp_plsqlBasicStmt,\n t_gsp_blockSqlNode,\n t_gsp_bindArgument,\n t_gsp_execImmeNode,\n t_gsp_exceptionHandler,\n t_gsp_exceptionClause,\n t_gsp_fetchFirstClause,\n t_gsp_optimizeForClause,\n t_gsp_isolationClause,\n t_gsp_valueRowItem,\n t_gsp_dataChangeTable,\n t_gsp_includeColumns,\n t_gsp_db2_signal,\n t_gsp_db2_compoundSqlNode,\n t_gsp_db2_triggerAction,\n t_gsp_db2_callStmtSqlNode,\n t_gsp_db2_forSqlNode,\n t_gsp_db2_ifSqlNode,\n t_gsp_db2_elseIfSqlNode,\n t_gsp_db2_iterateStmtSqlNode,\n t_gsp_db2_leaveStmtSqlNode,\n t_gsp_db2_setSqlNode,\n t_gsp_db2_whileSqlNode,\n t_gsp_db2_repeatSqlNode,\n t_gsp_db2_gotoSqlNode,\n t_gsp_db2_loopSqlNode,\n t_gsp_returnSqlNode,\n t_gsp_continueSqlNode,\n t_gsp_breakSqlNode,\n t_gsp_grantSqlNode,\n t_gsp_fetchSqlNode,\n t_gsp_openSqlNode,\n t_gsp_closeSqlNode,\n t_gsp_mssql_executeAsSqlNode,\n t_gsp_mssql_executeSqlNode,\n t_gsp_mssql_execParameter,\n t_gsp_mssql_dropDbObjectSqlNode,\n t_gsp_dropIndexItem,\n t_gsp_truncateTableSqlNode,\n t_gsp_mssql_setSqlNode,\n t_gsp_mssql_beginTranSqlNode,\n t_gsp_mssql_raiserrorSqlNode,\n t_gsp_mssql_gotoSqlNode,\n t_gsp_mssql_labelSqlNode,\n t_gsp_mssql_killSqlNode,\n t_gsp_mssql_deallocateSqlNode,\n t_gsp_declareSqlNode,\n t_gsp_declareVariable,\n t_gsp_mssql_beginDialogSqlNode,\n t_gsp_mssql_sendOnConversationSqlNode,\n t_gsp_mssql_endConversationSqlNode,\n t_gsp_mssql_revertSqlNode,\n t_gsp_mssql_goSqlNode,\n t_gsp_mssql_useSqlNode,\n t_gsp_mssql_printSqlNode,\n t_gsp_ifSqlNode,\n t_gsp_elseIfSqlNode,\n t_gsp_createTriggerUpdateColumn,\n t_gsp_whileSqlNode,\n t_gsp_mssql_computeClause,\n t_gsp_mssql_computeClauseItem,\n t_gsp_mssql_computeExpr,\n t_gsp_topClause,\n t_gsp_mssql_containsTable,\n t_gsp_mssql_tableHint,\n t_gsp_mssql_freeTable,\n t_gsp_mssql_openXML,\n t_gsp_mssql_openRowSet,\n t_gsp_pivotClause,\n t_gsp_unPivotClause,\n t_gsp_mssql_bulkInsertSqlNode,\n t_gsp_mssql_openQuery,\n t_gsp_mssql_openDatasource,\n t_gsp_mssql_outputClause,\n t_gsp_mssql_updateTextSqlNode,\n t_gsp_commitSqlNode,\n t_gsp_rollbackSqlNode,\n t_gsp_saveTransSqlNode,\n t_gsp_renameColumnSqlNode,\n t_gsp_renameSequenceSqlNode,\n t_gsp_renameTableSqlNode,\n t_gsp_renameIndexSqlNode,\n t_gsp_dropSequenceSqlNode,\n t_gsp_dropSynonymSqlNode,\n t_gsp_dropRowTypeSqlNode,\n t_gsp_alterIndexSqlNode,\n t_gsp_alterIndexStatement,\n t_gsp_intoTableClause,\n t_gsp_informixOuterClause,\n t_gsp_createRowTypeSqlNode,\n t_gsp_subscripts,\n t_gsp_limitClause,\n t_gsp_callSqlNode,\n t_gsp_createDatabaseSqlNode,\n t_gsp_iterateSqlNode,\n t_gsp_leaveSqlNode,\n t_gsp_repeatSqlNode,\n t_gsp_loopSqlNode,\n t_gsp_revokeSqlNode,\n t_gsp_executeSqlNode,\n t_gsp_dropRoleSqlNode,\n t_gsp_dropTriggerSqlNode,\n t_gsp_lockTableSqlNode,\n t_gsp_lockingClause,\n t_gsp_windowClause,\n t_gsp_windowDef,\n t_gsp_partitionClause,\n t_gsp_indices,\n t_gsp_alterSequenceSqlNode,\n t_gsp_alterViewSqlNode,\n t_gsp_collectStatisticsSqlNode,\n t_gsp_teradataWithClause,\n t_gsp_qualifyClause,\n t_gsp_sampleClause,\n t_gsp_expandOnClause,\n t_gsp_datatypeAttribute,\n t_gsp_newVariantTypeArgument,\n t_gsp_outputFormatPhrase\n} ENodeType;\n' def printf_func(define, name, first, last): (s, e) = (define.index('{'), define.rindex('}')) items = define[s + 1:e].split(',') assert items[0].strip() == first, (items[0].strip(), first) assert items[-1].strip() == last, (items[-1].strip(), last) print('void {function}_init(lua_State *L) {\n\tstatic const char* Var_{function} = "{function}";\n\tlua_pushstring(L, Var_{function});\n\tlua_newtable(L);\n'.replace('{function}', name)) i = 0 for k in items: k = k.strip() if k: print('\tlua_pushstring(L, "%s"); lua_pushnumber(L, %s); lua_settable(L, -3);' % (k, k)) if i % 100 == 0: print('\tassert( %d == %s);\n' % (i, k)) i += 1 print('\tassert( %d == %s);' % (i, k)) print('\n\tlua_settable(L, -3);\n}\n') printf_func(stmttype, 'EStmtType', 'sstunknown', 'sstinformixWhenever') printf_func(nodetype, 'ENodeType', 't_gsp_invalid', 't_gsp_outputFormatPhrase')
linha1 = input().split(" ") linha2 = input().split(" ") c1, n1, v1 = linha1 c2, n2, v2 = linha2 valor_pago = (int(n1) * float(v1)) + (int(n2) * float(v2)) print("VALOR A PAGAR: R$ {:.2f}".format(valor_pago))
linha1 = input().split(' ') linha2 = input().split(' ') (c1, n1, v1) = linha1 (c2, n2, v2) = linha2 valor_pago = int(n1) * float(v1) + int(n2) * float(v2) print('VALOR A PAGAR: R$ {:.2f}'.format(valor_pago))
CryptoCurrencyCodes = [ 'ADA', 'BCH', 'BTC', 'DASH', 'EOS', 'ETC', 'ETH', 'LTC', 'NEO', 'XLM', 'XMR', 'XRP', 'ZEC', ] def is_CryptoCurrencyCode(text): return text.upper() in CryptoCurrencyCodes
crypto_currency_codes = ['ADA', 'BCH', 'BTC', 'DASH', 'EOS', 'ETC', 'ETH', 'LTC', 'NEO', 'XLM', 'XMR', 'XRP', 'ZEC'] def is__crypto_currency_code(text): return text.upper() in CryptoCurrencyCodes
class ExceptionHandler: def __init__(self, application, driver_config=None): self.application = application self.drivers = {} self.driver_config = driver_config or {} self.options = {} def set_options(self, options): self.options = options return self def add_driver(self, name, driver): self.drivers.update({name: driver}) def set_configuration(self, config): self.driver_config = config return self def get_driver(self, name=None): if name is None: return self.drivers[self.driver_config.get("default")] return self.drivers[name] def get_config_options(self, driver=None): if driver is None: return self.driver_config[self.driver_config.get("default")] return self.driver_config.get(driver, {}) def handle(self, exception): response = self.application.make("response") request = self.application.make("request") self.application.make("event").fire( f"masonite.exception.{exception.__class__.__name__}", exception ) if self.application.has(f"{exception.__class__.__name__}Handler"): return self.application.make(f"{exception.__class__.__name__}Handler").handle( exception ) if hasattr(exception, "get_response"): return response.view(exception.get_response(), exception.get_status()) self.get_driver("debug").start(exception) # handler.context( # { # "WSGI": { # "Path": request.get_path(), # "Input": request.input_bag.all_as_values() or None, # # 'Parameters': request.url_params, # "Request Method": request.get_request_method(), # }, # "Headers": request.header_bag.to_dict(), # } # ) return response.view(self.get_driver("debug").render(), status=500)
class Exceptionhandler: def __init__(self, application, driver_config=None): self.application = application self.drivers = {} self.driver_config = driver_config or {} self.options = {} def set_options(self, options): self.options = options return self def add_driver(self, name, driver): self.drivers.update({name: driver}) def set_configuration(self, config): self.driver_config = config return self def get_driver(self, name=None): if name is None: return self.drivers[self.driver_config.get('default')] return self.drivers[name] def get_config_options(self, driver=None): if driver is None: return self.driver_config[self.driver_config.get('default')] return self.driver_config.get(driver, {}) def handle(self, exception): response = self.application.make('response') request = self.application.make('request') self.application.make('event').fire(f'masonite.exception.{exception.__class__.__name__}', exception) if self.application.has(f'{exception.__class__.__name__}Handler'): return self.application.make(f'{exception.__class__.__name__}Handler').handle(exception) if hasattr(exception, 'get_response'): return response.view(exception.get_response(), exception.get_status()) self.get_driver('debug').start(exception) return response.view(self.get_driver('debug').render(), status=500)
def perform_tsne(X, y, perplexity=100, learning_rate=200, n_components=2): tsne = TSNE(n_components=n_components, init='random', random_state=None, perplexity=perplexity, verbose=1) result = tsne.fit_transform(X) result = pd.DataFrame(result) result = result.join(y) result.columns = ['x0', 'x1', 'y'] sns.lmplot('x0', 'x1', result, fit_reg=False, hue='y', palette={0:"#2662c1", 1:"#c9001e"}, scatter_kws={'alpha': .5}) plt.title('t-SNE plot') plt.plot()
def perform_tsne(X, y, perplexity=100, learning_rate=200, n_components=2): tsne = tsne(n_components=n_components, init='random', random_state=None, perplexity=perplexity, verbose=1) result = tsne.fit_transform(X) result = pd.DataFrame(result) result = result.join(y) result.columns = ['x0', 'x1', 'y'] sns.lmplot('x0', 'x1', result, fit_reg=False, hue='y', palette={0: '#2662c1', 1: '#c9001e'}, scatter_kws={'alpha': 0.5}) plt.title('t-SNE plot') plt.plot()
top_twenty = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen"] tens = ["", "", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"] def num_digits(n): # check for if 0 <= n < 20: return top_twenty[n] elif 20 <= n < 100: return tens[n // 10] + (top_twenty[n % 10] if (n % 10 != 0) else "") elif 100 <= n < 1000: return top_twenty[n // 100] + "hundred" + (("and" + num_digits(n % 100)) if (n % 100 != 0) else "") elif 1000 <= n < 1000000: return num_digits(n // 1000) + "thousand" + (num_digits(n % 1000) if (n % 1000 != 0) else "") else: raise ValueError() if __name__ == "__main__": ans = sum(len(num_digits(i)) for i in range(1, 1001)) print(ans)
top_twenty = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'] tens = ['', '', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'] def num_digits(n): if 0 <= n < 20: return top_twenty[n] elif 20 <= n < 100: return tens[n // 10] + (top_twenty[n % 10] if n % 10 != 0 else '') elif 100 <= n < 1000: return top_twenty[n // 100] + 'hundred' + ('and' + num_digits(n % 100) if n % 100 != 0 else '') elif 1000 <= n < 1000000: return num_digits(n // 1000) + 'thousand' + (num_digits(n % 1000) if n % 1000 != 0 else '') else: raise value_error() if __name__ == '__main__': ans = sum((len(num_digits(i)) for i in range(1, 1001))) print(ans)
get_market_book_success = { 'data': { 'getMarketBook': { 'dynamicPriceExpiry': 1612756694, 'orders': { 'edges': [ { 'cursor': 'MQ', 'node': { 'coinAmount': '0.00963874', 'createdAt': 1612716031, 'cryptocurrency': 'bitcoin', 'dynamicExchangeRate': None, 'id': 'UG9zdE9yZGVyLThjMzRjZThiLTNlM2MtNDI4My04Yzg4LWVhYzE4MGRkNjQ4Mw==', 'pricePerCoin': '17990000.0', 'priceType': 'static', 'side': 'sell', 'staticPrice': '1799000000', 'status': 'active' } }, ], 'pageInfo': { 'endCursor': 'Mg', 'hasNextPage': True, 'hasPreviousPage': True, 'startCursor': 'MQ' } } } } } get_orders_success = { 'data': { 'getOrders': { 'dynamicPriceExpiry': 1612758374, 'orders': { 'edges': [], 'pageInfo': { 'endCursor': None, 'hasNextPage': False, 'hasPreviousPage': False, 'startCursor': None } } } } } get_payments_success = { 'data': { 'getPayments': { 'edges': [ { 'cursor': 'MQ', 'node': { 'amount': '2859.0', 'createdAt': 1611182392, 'fee': '0.0', 'id': 'random_id', 'reference': 'random_ref', 'status': 'success', 'totalAmount': '2859.0', 'type': 'withdrawal' } } ], 'pageInfo': { 'endCursor': 'MQ', 'hasNextPage': True, 'hasPreviousPage': False, 'startCursor': 'MQ' } } } } get_prices_success = { 'data': { 'getPrices': [ { 'buyPricePerCoin': '17779805.68', 'cryptocurrency': 'bitcoin', 'expiresAt': 1612759034, 'id': 'QnV5Y29pbnNQcmljZS03NWY3ZGIwMy1hNDk1LTQ0NjAtOGJjYi01ZGMwMTYzYjU5MDg=', 'maxBuy': '0.00768501', 'maxSell': '4.98935757', 'minBuy': '0.001', 'minCoinAmount': '0.001', 'minSell': '0.001', 'sellPricePerCoin': '17427685.275', 'status': 'active' } ] } } node_success = { 'data': { 'node': { 'address': 'MNjTVmqy5a9mjUShT8XsWgJQFasgHpr1ML', 'createdAt': 1612759118, 'cryptocurrency': 'litecoin', 'id': 'QWRkcmVzcy1iOWM1NWZiNy01ODc2LTQ2NjMtOTc0OS0zODIwZjI5MGZlZTk=' } } } nodes_success = { 'data': { 'nodes': [{ 'address': 'MNjTVmqy5a9mjUShT8XsWgJQFasgHpr1ML', 'createdAt': 1612759118, 'cryptocurrency': 'litecoin', 'id': 'QWRkcmVzcy1iOWM1NWZiNy01ODc2LTQ2NjMtOTc0OS0zODIwZjI5MGZlZTk=' }, { 'address': 'MNjTVmqy5a9mjUShT8XsWgJQFasgHpr1ML', 'createdAt': 1612759118, 'cryptocurrency': 'litecoin', 'id': 'QWRkcmVzcy1iOWM1NWZiNy01ODc2LTQ2NjMtOTc0OS0zODIwZjI5MGZlZTk=' } ] } } buy_success = { 'data': { 'buy': { 'createdAt': 1612759118, 'cryptocurrency': 'bitcoin', 'filledCoinAmount': '1202020302', 'id': 'some random id', 'price': { 'buyPricePerCoin': '17779805.68', 'cryptocurrency': 'bitcoin', 'expiresAt': 1612759034, 'id': 'QnV5Y29pbnNQcmljZS03NWY3ZGIwMy1hNDk1LTQ0NjAtOGJjYi01ZGMwMTYzYjU5MDg=', 'maxBuy': '0.00768501', 'maxSell': '4.98935757', 'minBuy': '0.001', 'minCoinAmount': '0.001', 'minSell': '0.001', 'sellPricePerCoin': '17427685.275', 'status': 'active' }, 'side': 'buy', 'status': 'done', 'totalCoinAmount': '123039230' } } } cancel_withdrawal_success = { 'data': { 'cancelWithdrawal': { 'amount': '2859.0', 'createdAt': 1611182392, 'fee': '0.0', 'id': 'random_id', 'reference': 'random_ref', 'status': 'success', 'totalAmount': '2859.0', 'type': 'withdrawal' } } } create_address_success = { 'data': { 'createAddress': { 'address': 'MNjTVmqy5a9mjUShT8XsWgJQFasgHpr1ML', 'createdAt': 1612759118, 'cryptocurrency': 'litecoin', 'id': 'QWRkcmVzcy1iOWM1NWZiNy01ODc2LTQ2NjMtOTc0OS0zODIwZjI5MGZlZTk=' } } } create_deposit_account_success = { 'data': { 'createDepositAccount': { 'id': 'random id', 'accountName': 'foo', 'accountNumber': '123', 'accountReference': '123', 'accountType': 'deposit', 'bankName': 'bar' } } } create_withdrawal_success = { 'data': { 'createWithdrawal': { 'amount': '2859.0', 'createdAt': 1611182392, 'fee': '0.0', 'id': 'random_id', 'reference': 'random_ref', 'status': 'success', 'totalAmount': '2859.0', 'type': 'withdrawal' } } } post_limit_order_success = { 'data': { 'postLimitOrder': { 'id': 'random id', 'coinAmount': '137392302.892', 'createdAt': 1612759118, 'cryptocurrency': 'bitcoin', 'dynamicExchangeRate': '1673822.8292', 'pricePerCoin': '237920.73839', 'priceType': 'static', 'side': 'buy', 'staticPrice': '378320.2893', 'status': 'active' } } } post_market_order_success = { 'data': { 'postMarketOrder': { 'id': 'random id', 'coinAmount': '137392302.892', 'createdAt': 1612759118, 'cryptocurrency': 'bitcoin', 'dynamicExchangeRate': '1673822.8292', 'pricePerCoin': '237920.73839', 'priceType': 'static', 'side': 'buy', 'staticPrice': '378320.2893', 'status': 'active' } } } sell_success = { 'data': { 'sell': { 'createdAt': 1612759118, 'cryptocurrency': 'bitcoin', 'filledCoinAmount': '1202020302', 'id': 'some random id', 'price': { 'buyPricePerCoin': '17779805.68', 'cryptocurrency': 'bitcoin', 'expiresAt': 1612759034, 'id': 'QnV5Y29pbnNQcmljZS03NWY3ZGIwMy1hNDk1LTQ0NjAtOGJjYi01ZGMwMTYzYjU5MDg=', 'maxBuy': '0.00768501', 'maxSell': '4.98935757', 'minBuy': '0.001', 'minCoinAmount': '0.001', 'minSell': '0.001', 'sellPricePerCoin': '17427685.275', 'status': 'active' }, 'side': 'sell', 'status': 'done', 'totalCoinAmount': '123039230' } } } send_success = { 'data': { 'send': { 'id': 'random id', 'address': 'random address', 'amount': '1626378.7829', 'createdAt': 1673839222, 'cryptocurrency': 'bitcoin', 'fee': '13789.27829', 'status': 'confirmed', 'transaction': { 'id': 'random id', 'address': { 'address': 'MNjTVmqy5a9mjUShT8XsWgJQFasgHpr1ML', 'createdAt': 1612759118, 'cryptocurrency': 'litecoin', 'id': 'QWRkcmVzcy1iOWM1NWZiNy01ODc2LTQ2NjMtOTc0OS0zODIwZjI5MGZlZTk=' }, 'amount': '1638920.82902', 'confirmed': True, 'createdAt': 1673839222, 'cryptocurrency': 'bitcoin', 'direction': 'incoming', 'onchainTransferRequest': { 'id': 'random id' }, 'txhash': 'tx hash ' } } } } send_offchain_success = { 'data': { 'sendOffchain': { 'initiated': True } } }
get_market_book_success = {'data': {'getMarketBook': {'dynamicPriceExpiry': 1612756694, 'orders': {'edges': [{'cursor': 'MQ', 'node': {'coinAmount': '0.00963874', 'createdAt': 1612716031, 'cryptocurrency': 'bitcoin', 'dynamicExchangeRate': None, 'id': 'UG9zdE9yZGVyLThjMzRjZThiLTNlM2MtNDI4My04Yzg4LWVhYzE4MGRkNjQ4Mw==', 'pricePerCoin': '17990000.0', 'priceType': 'static', 'side': 'sell', 'staticPrice': '1799000000', 'status': 'active'}}], 'pageInfo': {'endCursor': 'Mg', 'hasNextPage': True, 'hasPreviousPage': True, 'startCursor': 'MQ'}}}}} get_orders_success = {'data': {'getOrders': {'dynamicPriceExpiry': 1612758374, 'orders': {'edges': [], 'pageInfo': {'endCursor': None, 'hasNextPage': False, 'hasPreviousPage': False, 'startCursor': None}}}}} get_payments_success = {'data': {'getPayments': {'edges': [{'cursor': 'MQ', 'node': {'amount': '2859.0', 'createdAt': 1611182392, 'fee': '0.0', 'id': 'random_id', 'reference': 'random_ref', 'status': 'success', 'totalAmount': '2859.0', 'type': 'withdrawal'}}], 'pageInfo': {'endCursor': 'MQ', 'hasNextPage': True, 'hasPreviousPage': False, 'startCursor': 'MQ'}}}} get_prices_success = {'data': {'getPrices': [{'buyPricePerCoin': '17779805.68', 'cryptocurrency': 'bitcoin', 'expiresAt': 1612759034, 'id': 'QnV5Y29pbnNQcmljZS03NWY3ZGIwMy1hNDk1LTQ0NjAtOGJjYi01ZGMwMTYzYjU5MDg=', 'maxBuy': '0.00768501', 'maxSell': '4.98935757', 'minBuy': '0.001', 'minCoinAmount': '0.001', 'minSell': '0.001', 'sellPricePerCoin': '17427685.275', 'status': 'active'}]}} node_success = {'data': {'node': {'address': 'MNjTVmqy5a9mjUShT8XsWgJQFasgHpr1ML', 'createdAt': 1612759118, 'cryptocurrency': 'litecoin', 'id': 'QWRkcmVzcy1iOWM1NWZiNy01ODc2LTQ2NjMtOTc0OS0zODIwZjI5MGZlZTk='}}} nodes_success = {'data': {'nodes': [{'address': 'MNjTVmqy5a9mjUShT8XsWgJQFasgHpr1ML', 'createdAt': 1612759118, 'cryptocurrency': 'litecoin', 'id': 'QWRkcmVzcy1iOWM1NWZiNy01ODc2LTQ2NjMtOTc0OS0zODIwZjI5MGZlZTk='}, {'address': 'MNjTVmqy5a9mjUShT8XsWgJQFasgHpr1ML', 'createdAt': 1612759118, 'cryptocurrency': 'litecoin', 'id': 'QWRkcmVzcy1iOWM1NWZiNy01ODc2LTQ2NjMtOTc0OS0zODIwZjI5MGZlZTk='}]}} buy_success = {'data': {'buy': {'createdAt': 1612759118, 'cryptocurrency': 'bitcoin', 'filledCoinAmount': '1202020302', 'id': 'some random id', 'price': {'buyPricePerCoin': '17779805.68', 'cryptocurrency': 'bitcoin', 'expiresAt': 1612759034, 'id': 'QnV5Y29pbnNQcmljZS03NWY3ZGIwMy1hNDk1LTQ0NjAtOGJjYi01ZGMwMTYzYjU5MDg=', 'maxBuy': '0.00768501', 'maxSell': '4.98935757', 'minBuy': '0.001', 'minCoinAmount': '0.001', 'minSell': '0.001', 'sellPricePerCoin': '17427685.275', 'status': 'active'}, 'side': 'buy', 'status': 'done', 'totalCoinAmount': '123039230'}}} cancel_withdrawal_success = {'data': {'cancelWithdrawal': {'amount': '2859.0', 'createdAt': 1611182392, 'fee': '0.0', 'id': 'random_id', 'reference': 'random_ref', 'status': 'success', 'totalAmount': '2859.0', 'type': 'withdrawal'}}} create_address_success = {'data': {'createAddress': {'address': 'MNjTVmqy5a9mjUShT8XsWgJQFasgHpr1ML', 'createdAt': 1612759118, 'cryptocurrency': 'litecoin', 'id': 'QWRkcmVzcy1iOWM1NWZiNy01ODc2LTQ2NjMtOTc0OS0zODIwZjI5MGZlZTk='}}} create_deposit_account_success = {'data': {'createDepositAccount': {'id': 'random id', 'accountName': 'foo', 'accountNumber': '123', 'accountReference': '123', 'accountType': 'deposit', 'bankName': 'bar'}}} create_withdrawal_success = {'data': {'createWithdrawal': {'amount': '2859.0', 'createdAt': 1611182392, 'fee': '0.0', 'id': 'random_id', 'reference': 'random_ref', 'status': 'success', 'totalAmount': '2859.0', 'type': 'withdrawal'}}} post_limit_order_success = {'data': {'postLimitOrder': {'id': 'random id', 'coinAmount': '137392302.892', 'createdAt': 1612759118, 'cryptocurrency': 'bitcoin', 'dynamicExchangeRate': '1673822.8292', 'pricePerCoin': '237920.73839', 'priceType': 'static', 'side': 'buy', 'staticPrice': '378320.2893', 'status': 'active'}}} post_market_order_success = {'data': {'postMarketOrder': {'id': 'random id', 'coinAmount': '137392302.892', 'createdAt': 1612759118, 'cryptocurrency': 'bitcoin', 'dynamicExchangeRate': '1673822.8292', 'pricePerCoin': '237920.73839', 'priceType': 'static', 'side': 'buy', 'staticPrice': '378320.2893', 'status': 'active'}}} sell_success = {'data': {'sell': {'createdAt': 1612759118, 'cryptocurrency': 'bitcoin', 'filledCoinAmount': '1202020302', 'id': 'some random id', 'price': {'buyPricePerCoin': '17779805.68', 'cryptocurrency': 'bitcoin', 'expiresAt': 1612759034, 'id': 'QnV5Y29pbnNQcmljZS03NWY3ZGIwMy1hNDk1LTQ0NjAtOGJjYi01ZGMwMTYzYjU5MDg=', 'maxBuy': '0.00768501', 'maxSell': '4.98935757', 'minBuy': '0.001', 'minCoinAmount': '0.001', 'minSell': '0.001', 'sellPricePerCoin': '17427685.275', 'status': 'active'}, 'side': 'sell', 'status': 'done', 'totalCoinAmount': '123039230'}}} send_success = {'data': {'send': {'id': 'random id', 'address': 'random address', 'amount': '1626378.7829', 'createdAt': 1673839222, 'cryptocurrency': 'bitcoin', 'fee': '13789.27829', 'status': 'confirmed', 'transaction': {'id': 'random id', 'address': {'address': 'MNjTVmqy5a9mjUShT8XsWgJQFasgHpr1ML', 'createdAt': 1612759118, 'cryptocurrency': 'litecoin', 'id': 'QWRkcmVzcy1iOWM1NWZiNy01ODc2LTQ2NjMtOTc0OS0zODIwZjI5MGZlZTk='}, 'amount': '1638920.82902', 'confirmed': True, 'createdAt': 1673839222, 'cryptocurrency': 'bitcoin', 'direction': 'incoming', 'onchainTransferRequest': {'id': 'random id'}, 'txhash': 'tx hash '}}}} send_offchain_success = {'data': {'sendOffchain': {'initiated': True}}}
def Draw(w, h, gridscale, ox, oy): stroke(0) strokeWeight(1) line(ox, 0, ox, h) line(0, oy, w, oy) stroke(175, 175, 175) strokeWeight(1) for x in range(w / gridscale / 2): gx = (x + 1) * gridscale line(ox + gx, 0, ox + gx, h) line(ox - gx, 0, ox - gx, h) for y in range(h / gridscale / 2): gy = (y + 1) * gridscale line(0, oy + gy, w, oy + gy) line(0, oy - gy, w, oy - gy)
def draw(w, h, gridscale, ox, oy): stroke(0) stroke_weight(1) line(ox, 0, ox, h) line(0, oy, w, oy) stroke(175, 175, 175) stroke_weight(1) for x in range(w / gridscale / 2): gx = (x + 1) * gridscale line(ox + gx, 0, ox + gx, h) line(ox - gx, 0, ox - gx, h) for y in range(h / gridscale / 2): gy = (y + 1) * gridscale line(0, oy + gy, w, oy + gy) line(0, oy - gy, w, oy - gy)
n, m = map(int, input().split()) matrix = [] for row in range(n): for col in range(m): first_and_last = chr(ord("a") + row) middle = chr(ord("a") + row + col) print(f"{first_and_last}{middle}{first_and_last}", end=" ") print()
(n, m) = map(int, input().split()) matrix = [] for row in range(n): for col in range(m): first_and_last = chr(ord('a') + row) middle = chr(ord('a') + row + col) print(f'{first_and_last}{middle}{first_and_last}', end=' ') print()
class Solution: def sortedSquares(self, nums: List[int]) -> List[int]: token = 0 for i in nums: temp = i**2 nums[token] = temp token += 1 nums = sorted(nums, reverse=False) return nums # return sorted(x*x for x in nums)
class Solution: def sorted_squares(self, nums: List[int]) -> List[int]: token = 0 for i in nums: temp = i ** 2 nums[token] = temp token += 1 nums = sorted(nums, reverse=False) return nums
def verify_browser_exists(browser): raise RuntimeError('Browser detection and automatic selenium updates are not yet available for Linux distributions!\nPlease update your selenium driver manually.') def get_browser_version(browser): raise RuntimeError('Browser version detection and automatic selenium updates are not yet available for Linux distributions!\nPlease update your selenium driver manually.')
def verify_browser_exists(browser): raise runtime_error('Browser detection and automatic selenium updates are not yet available for Linux distributions!\nPlease update your selenium driver manually.') def get_browser_version(browser): raise runtime_error('Browser version detection and automatic selenium updates are not yet available for Linux distributions!\nPlease update your selenium driver manually.')
n = int(input('Enter A Number:')) i = 1 a = 2 while i <= n: j = 1 while j <= i: print(j*2, end=' ') j += 1 i += 1 print()
n = int(input('Enter A Number:')) i = 1 a = 2 while i <= n: j = 1 while j <= i: print(j * 2, end=' ') j += 1 i += 1 print()
# String matching algorithms word = "axascass" pattern = "ssaafasdasdcasaxqwdwdascassaxascassawdqwxascassaxascassaxascassaxascass" def find_match(word, pattern): j = 0; if(len(word) > len(pattern)): return -1 for i in range(0, len(pattern)): if(word[j] == pattern[i]): j+=1 else: j = 0 if(j == len(word)): return i - len(word) + 1 return -1 index = find_match(word, pattern) print(index) if(index > 0): print(pattern[index:index+len(word)])
word = 'axascass' pattern = 'ssaafasdasdcasaxqwdwdascassaxascassawdqwxascassaxascassaxascassaxascass' def find_match(word, pattern): j = 0 if len(word) > len(pattern): return -1 for i in range(0, len(pattern)): if word[j] == pattern[i]: j += 1 else: j = 0 if j == len(word): return i - len(word) + 1 return -1 index = find_match(word, pattern) print(index) if index > 0: print(pattern[index:index + len(word)])
# Copyright 2020 Board of Trustees of the University of Illinois. # # 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. class Contact: def __init__(self): self.name = None self.email = None self.phone = None self.organization = None self.officialAddress = None def set_name(self, name): self.name = name def get_name(self): return self.name def set_email(self, email): self.email = email def get_email(self): return self.email def set_phone(self, phone): self.phone = phone def get_phone(self): return self.phone def set_organization(self, organization): self.organization = organization def get_organization(self): return self.organization def set_officialAddress(self, officialAddress): self.officialAddress = officialAddress def get_officialAddress(self): return self.officialAddress
class Contact: def __init__(self): self.name = None self.email = None self.phone = None self.organization = None self.officialAddress = None def set_name(self, name): self.name = name def get_name(self): return self.name def set_email(self, email): self.email = email def get_email(self): return self.email def set_phone(self, phone): self.phone = phone def get_phone(self): return self.phone def set_organization(self, organization): self.organization = organization def get_organization(self): return self.organization def set_official_address(self, officialAddress): self.officialAddress = officialAddress def get_official_address(self): return self.officialAddress
num_l = num_o = num_v = num_e = 0 for i in input()[::-1]: if i == "e": num_e += 1 elif i == "v": num_v += num_e elif i == "o": num_o += num_v elif i == "l": num_l += num_o print(num_l)
num_l = num_o = num_v = num_e = 0 for i in input()[::-1]: if i == 'e': num_e += 1 elif i == 'v': num_v += num_e elif i == 'o': num_o += num_v elif i == 'l': num_l += num_o print(num_l)
pkgname = "libxpm" pkgver = "3.5.13" pkgrel = 0 build_style = "gnu_configure" hostmakedepends = ["pkgconf", "gettext-tiny"] makedepends = ["xorgproto", "libsm-devel", "libxext-devel", "libxt-devel"] pkgdesc = "X PixMap library" maintainer = "q66 <q66@chimera-linux.org>" license = "MIT" url = "https://xorg.freedesktop.org" source = f"$(XORG_SITE)/lib/libXpm-{pkgver}.tar.bz2" sha256 = "9cd1da57588b6cb71450eff2273ef6b657537a9ac4d02d0014228845b935ac25" def post_install(self): self.install_license("COPYING") @subpackage("libxpm-devel") def _devel(self): return self.default_devel()
pkgname = 'libxpm' pkgver = '3.5.13' pkgrel = 0 build_style = 'gnu_configure' hostmakedepends = ['pkgconf', 'gettext-tiny'] makedepends = ['xorgproto', 'libsm-devel', 'libxext-devel', 'libxt-devel'] pkgdesc = 'X PixMap library' maintainer = 'q66 <q66@chimera-linux.org>' license = 'MIT' url = 'https://xorg.freedesktop.org' source = f'$(XORG_SITE)/lib/libXpm-{pkgver}.tar.bz2' sha256 = '9cd1da57588b6cb71450eff2273ef6b657537a9ac4d02d0014228845b935ac25' def post_install(self): self.install_license('COPYING') @subpackage('libxpm-devel') def _devel(self): return self.default_devel()
# We can check the divisibility by 3 by taking the sum of digits. # If remainder is 0, we consider it as it is. If remainder is 1 or 2 we can combine them greedily. # We can then combine 3 numbers each with remainder 1 or 2. def sum_of(n): s = 0 num = n while(num>0): s+=num%10 num = num//10 return s for i in range(int(input())): n = int(input()) l = list(map(int, input().split())) x_0 = 0 x_1 = 0 x_2 = 0 for i in range(n): temp = sum_of(l[i]) if(temp%3 == 0): x_0 += 1 elif((temp-1)%3 == 0): x_1 += 1 else: x_2+=1 temp = min(x_1, x_2) count = x_0 + temp x_1-=temp x_2-=temp count += x_1//3 count += x_2//3 print(count)
def sum_of(n): s = 0 num = n while num > 0: s += num % 10 num = num // 10 return s for i in range(int(input())): n = int(input()) l = list(map(int, input().split())) x_0 = 0 x_1 = 0 x_2 = 0 for i in range(n): temp = sum_of(l[i]) if temp % 3 == 0: x_0 += 1 elif (temp - 1) % 3 == 0: x_1 += 1 else: x_2 += 1 temp = min(x_1, x_2) count = x_0 + temp x_1 -= temp x_2 -= temp count += x_1 // 3 count += x_2 // 3 print(count)
#deleting duplicate elements from lists def delete(a): temp=[] for i in range(0,len(a)): if a[i] not in temp: temp.append(a[i]) print(temp) a=[] ac=input("enter count of array") for i in range(0,ac): a.append(input()) delete(a)
def delete(a): temp = [] for i in range(0, len(a)): if a[i] not in temp: temp.append(a[i]) print(temp) a = [] ac = input('enter count of array') for i in range(0, ac): a.append(input()) delete(a)
_base_ = [ '../../_base_/models/swav/r18.py', '../../_base_/datasets/imagenet/swav_mcrop-2-6_sz224_96_bs32.py', '../../_base_/default_runtime.py', ] # interval for accumulate gradient update_interval = 8 # total: 8 x bs64 x 8 accumulates = bs4096 # additional hooks custom_hooks = [ dict(type='SwAVHook', priority='VERY_HIGH', batch_size=64, epoch_queue_starts=15, crops_for_assign=[0, 1], feat_dim=128, queue_length=3840) ] # optimizer optimizer = dict( type='LARS', lr=0.6 * 16, # lr=0.6 / bs256 momentum=0.9, weight_decay=1e-6, paramwise_options={ '(bn|ln|gn)(\d+)?.(weight|bias)': dict(weight_decay=0., lars_exclude=True), 'bias': dict(weight_decay=0., lars_exclude=True), }) # apex use_fp16 = False fp16 = dict(type='apex', loss_scale=dict(init_scale=512., mode='dynamic')) # optimizer args optimizer_config = dict( update_interval=update_interval, use_fp16=use_fp16, grad_clip=None, cancel_grad=dict(prototypes=2503), # cancel grad of `prototypes` for 1 ep ) # lr scheduler lr_config = dict( policy='CosineAnnealing', by_epoch=False, min_lr=6e-4, warmup='linear', warmup_iters=10, warmup_by_epoch=True, warmup_ratio=1e-5, ) # runtime settings runner = dict(type='EpochBasedRunner', max_epochs=100)
_base_ = ['../../_base_/models/swav/r18.py', '../../_base_/datasets/imagenet/swav_mcrop-2-6_sz224_96_bs32.py', '../../_base_/default_runtime.py'] update_interval = 8 custom_hooks = [dict(type='SwAVHook', priority='VERY_HIGH', batch_size=64, epoch_queue_starts=15, crops_for_assign=[0, 1], feat_dim=128, queue_length=3840)] optimizer = dict(type='LARS', lr=0.6 * 16, momentum=0.9, weight_decay=1e-06, paramwise_options={'(bn|ln|gn)(\\d+)?.(weight|bias)': dict(weight_decay=0.0, lars_exclude=True), 'bias': dict(weight_decay=0.0, lars_exclude=True)}) use_fp16 = False fp16 = dict(type='apex', loss_scale=dict(init_scale=512.0, mode='dynamic')) optimizer_config = dict(update_interval=update_interval, use_fp16=use_fp16, grad_clip=None, cancel_grad=dict(prototypes=2503)) lr_config = dict(policy='CosineAnnealing', by_epoch=False, min_lr=0.0006, warmup='linear', warmup_iters=10, warmup_by_epoch=True, warmup_ratio=1e-05) runner = dict(type='EpochBasedRunner', max_epochs=100)
def verify(isbn): characters = list(isbn.replace("-", "")) if characters and characters[-1] == "X": characters[-1] = "10" if not len(characters) == 10 or not all(char.isdigit() for char in characters): return False indices = range(10, 0, -1) return sum(int(char) * index for char, index in zip(characters, indices)) % 11 == 0
def verify(isbn): characters = list(isbn.replace('-', '')) if characters and characters[-1] == 'X': characters[-1] = '10' if not len(characters) == 10 or not all((char.isdigit() for char in characters)): return False indices = range(10, 0, -1) return sum((int(char) * index for (char, index) in zip(characters, indices))) % 11 == 0
# Write a Python program to find the type of the progression (arithmetic progression/geometric progression) and the next successive member of a given three successive members of a sequence. # According to Wikipedia, an arithmetic progression (AP) is a sequence of numbers such that the difference of any two successive members of the sequence is a constant. For instance, the sequence 3, 5, 7, 9, 11, 13, . . . is an arithmetic progression with common difference 2. For this problem, we will limit ourselves to arithmetic progression whose common difference is a non-zero integer. # On the other hand, a geometric progression (GP) is a sequence of numbers where each term after the first is found by multiplying the previous one by a fixed non-zero number called the common ratio. For example, the sequence 2, 6, 18, 54, . . . is a geometric progression with common ratio 3. For this problem, we will limit ourselves to geometric progression whose common ratio is a non-zero integer def ap_gp_sequence(arr): if arr[0]==arr[1]==arr[2]==0: return "Wrong Numbers" else: if arr[1]-arr[0]==arr[2]-arr[1]: n=2*arr[2]-arr[1] return "AP sequence, "+'Next number of the sequence: '+str(n) else: n=arr[2]**2/arr[1] return "GP sequence, " + 'Next number of the sequence: '+str(n) print(ap_gp_sequence([1,2,3])) print(ap_gp_sequence([2,6,18])) print(ap_gp_sequence([0,0,0]))
def ap_gp_sequence(arr): if arr[0] == arr[1] == arr[2] == 0: return 'Wrong Numbers' elif arr[1] - arr[0] == arr[2] - arr[1]: n = 2 * arr[2] - arr[1] return 'AP sequence, ' + 'Next number of the sequence: ' + str(n) else: n = arr[2] ** 2 / arr[1] return 'GP sequence, ' + 'Next number of the sequence: ' + str(n) print(ap_gp_sequence([1, 2, 3])) print(ap_gp_sequence([2, 6, 18])) print(ap_gp_sequence([0, 0, 0]))
X, Y = map(int, input().split()) if abs(X-Y) <= 2: print('Yes') else: print('No')
(x, y) = map(int, input().split()) if abs(X - Y) <= 2: print('Yes') else: print('No')
class TimeInForceEnum: TIF_UNSET = 0 TIF_DAY = 1 TIF_GOOD_TILL_CANCELED = 2 TIF_GOOD_TILL_DATE_TIME = 3 TIF_IMMEDIATE_OR_CANCEL = 4 TIF_ALL_OR_NONE = 5 TIF_FILL_OR_KILL = 6
class Timeinforceenum: tif_unset = 0 tif_day = 1 tif_good_till_canceled = 2 tif_good_till_date_time = 3 tif_immediate_or_cancel = 4 tif_all_or_none = 5 tif_fill_or_kill = 6
OVER5_HEALTH_INDICATORS = dict( app="mvp_over5", indicators=dict( over5_health=dict( over5_positive_rdt=dict( description="No. Over5 who received positive RDT Result", title="# Over5 who received positive RDT Result", indicator_key="over5_positive_rdt" ), over5_positive_rdt_medicated=dict( description="No. Over5 who received positive RDT Result and were given anti-malarials", title="# Over5 who received positive RDT Result and were given anti-malarials", indicator_key="over5_positive_rdt_medicated" ), ), ) )
over5_health_indicators = dict(app='mvp_over5', indicators=dict(over5_health=dict(over5_positive_rdt=dict(description='No. Over5 who received positive RDT Result', title='# Over5 who received positive RDT Result', indicator_key='over5_positive_rdt'), over5_positive_rdt_medicated=dict(description='No. Over5 who received positive RDT Result and were given anti-malarials', title='# Over5 who received positive RDT Result and were given anti-malarials', indicator_key='over5_positive_rdt_medicated'))))
''' Created on Nov 11, 2018 @author: nilson.nieto ''' lst = [1,4,431,24,1,4,234,2,1,128] print(list(filter(lambda a : a%2==0,lst)))
""" Created on Nov 11, 2018 @author: nilson.nieto """ lst = [1, 4, 431, 24, 1, 4, 234, 2, 1, 128] print(list(filter(lambda a: a % 2 == 0, lst)))
#!/usr/bin/env python # coding: utf-8 # In[3]: n = int(input()) hobbits = 0 humanos = 0 elfos = 0 anoes = 0 magos = 0 for _ in range(0, n): raca = input().split()[1] if raca == 'X': hobbits += 1 elif raca == 'H': humanos += 1 elif raca == 'E': elfos += 1 elif raca == 'A': anoes += 1 elif raca == 'M': magos += 1 print(hobbits, 'Hobbit(s)') print(humanos, 'Humano(s)') print(elfos, 'Elfo(s)') print(anoes, 'Anao(s)') print(magos, 'Mago(s)')
n = int(input()) hobbits = 0 humanos = 0 elfos = 0 anoes = 0 magos = 0 for _ in range(0, n): raca = input().split()[1] if raca == 'X': hobbits += 1 elif raca == 'H': humanos += 1 elif raca == 'E': elfos += 1 elif raca == 'A': anoes += 1 elif raca == 'M': magos += 1 print(hobbits, 'Hobbit(s)') print(humanos, 'Humano(s)') print(elfos, 'Elfo(s)') print(anoes, 'Anao(s)') print(magos, 'Mago(s)')
# # PySNMP MIB module FRDTE-OPT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FRDTE-OPT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:02:28 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") enterprises, MibIdentifier, ModuleIdentity, Gauge32, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, mgmt, ObjectIdentity, Unsigned32, Bits, TimeTicks, iso, Integer32, Counter32, IpAddress, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "enterprises", "MibIdentifier", "ModuleIdentity", "Gauge32", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "mgmt", "ObjectIdentity", "Unsigned32", "Bits", "TimeTicks", "iso", "Integer32", "Counter32", "IpAddress", "Counter64") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") codex = MibIdentifier((1, 3, 6, 1, 4, 1, 449)) cdxProductSpecific = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2)) cdx6500 = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1)) cdx6500Configuration = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2)) cdx6500CfgProtocolGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1)) cdx6500PCTPortProtocolGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1)) cdx6500PCTStationProtocolGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3)) cdx6500Statistics = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3)) cdx6500StatProtocolGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1)) cdx6500PSTPortProtocolGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1)) cdx6500PSTStationProtocolGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3)) cdx6500Controls = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 4)) class Counter16(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 65535) class DisplayString(OctetString): pass cdx6500PCTFRDTEPortTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5), ) if mibBuilder.loadTexts: cdx6500PCTFRDTEPortTable.setStatus('mandatory') cdx6500PCTFRDTEPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1), ).setIndexNames((0, "FRDTE-OPT-MIB", "cdx6500frdtepCfgPortNum")) if mibBuilder.loadTexts: cdx6500PCTFRDTEPortEntry.setStatus('mandatory') cdx6500frdtepCfgPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepCfgPortNum.setStatus('mandatory') cdx6500frdtepConnectionType = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 21, 100))).clone(namedValues=NamedValues(("simp", 1), ("dtr", 2), ("simpb", 21), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepConnectionType.setStatus('mandatory') cdx6500frdtepClockSource = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 100))).clone(namedValues=NamedValues(("int", 1), ("ext", 2), ("extint", 3), ("extlp", 4), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepClockSource.setStatus('mandatory') cdx6500frdtepClockSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1200, 2048000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepClockSpeed.setStatus('mandatory') cdx6500frdtepMaxStations = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepMaxStations.setStatus('deprecated') cdx6500frdtepFrameSeqCounting = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 100))).clone(namedValues=NamedValues(("normal", 1), ("extended", 2), ("nc", 100)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepFrameSeqCounting.setStatus('mandatory') cdx6500frdtepPktSeqCounting = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 100))).clone(namedValues=NamedValues(("normal", 1), ("extended", 2), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepPktSeqCounting.setStatus('mandatory') cdx6500frdtepCtrlProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 100))).clone(namedValues=NamedValues(("annexD", 1), ("none", 2), ("lmi", 3), ("annexA", 4), ("auto", 5), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepCtrlProtocol.setStatus('mandatory') cdx6500frdtepT391 = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepT391.setStatus('mandatory') cdx6500frdtepT392 = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 30))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepT392.setStatus('mandatory') cdx6500frdtepN391 = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 12), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepN391.setStatus('mandatory') cdx6500frdtepN392 = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepN392.setStatus('mandatory') cdx6500frdtepN393 = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 14), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepN393.setStatus('mandatory') cdx6500frdtepNT1 = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepNT1.setStatus('mandatory') cdx6500frdtepNT2 = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 30))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepNT2.setStatus('mandatory') cdx6500frdtepNN1 = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepNN1.setStatus('mandatory') cdx6500frdtepNN2 = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 18), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepNN2.setStatus('mandatory') cdx6500frdtepNN3 = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepNN3.setStatus('mandatory') cdx6500frdtepHighPriorityStn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepHighPriorityStn.setStatus('mandatory') cdx6500frdtepMaxVoiceBWBitsPerSec = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2048000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepMaxVoiceBWBitsPerSec.setStatus('mandatory') cdx6500frdtepSegSizeVoicePresent = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(33, 65, 129, 257, 513, 1025, 100))).clone(namedValues=NamedValues(("segSize32", 33), ("segSize64", 65), ("segSize128", 129), ("segSize256", 257), ("segSize512", 513), ("segSize1024", 1025), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepSegSizeVoicePresent.setStatus('mandatory') cdx6500frdtepSegSizeVoiceNotPresent = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(33, 65, 129, 257, 513, 1025, 2049, 4097, 32000, 100))).clone(namedValues=NamedValues(("segSize32", 33), ("segSize64", 65), ("segSize128", 129), ("segSize256", 257), ("segSize512", 513), ("segSize1024", 1025), ("segSize2048", 2049), ("segSize4096", 4097), ("disable", 32000), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepSegSizeVoiceNotPresent.setStatus('mandatory') cdx6500frdtepInvertTXClock = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 100))).clone(namedValues=NamedValues(("no", 1), ("yes", 2), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepInvertTXClock.setStatus('mandatory') cdx6500frdtepControlProtocolOptions = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 25), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepControlProtocolOptions.setStatus('mandatory') cdx6500frdtepDiscardControlOptions = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("debit", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepDiscardControlOptions.setStatus('mandatory') cdx6500frdtepElectricalInterfaceType = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("v24", 1), ("v35", 2), ("v36", 3), ("x21", 4), ("none", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepElectricalInterfaceType.setStatus('mandatory') cdx6500frdtepV24ElectricalInterfaceOption = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ri", 1), ("tm", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepV24ElectricalInterfaceOption.setStatus('mandatory') cdx6500frdtepHighSpeedElectricalInterfaceOption = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 29), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("xover", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtepHighSpeedElectricalInterfaceOption.setStatus('mandatory') cdx6500PPSTFRDTEPortTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5), ) if mibBuilder.loadTexts: cdx6500PPSTFRDTEPortTable.setStatus('mandatory') cdx6500PPSTFRDTEPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1), ).setIndexNames((0, "FRDTE-OPT-MIB", "cdx6500frdtepStatsPortNum")) if mibBuilder.loadTexts: cdx6500PPSTFRDTEPortEntry.setStatus('mandatory') cdx6500frdtepStatsPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepStatsPortNum.setStatus('mandatory') cdx6500frdtepPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 100))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("busyOut", 3), ("up", 4), ("down", 5), ("na", 100)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepPortStatus.setStatus('mandatory') cdx6500frdtepPortSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepPortSpeed.setStatus('mandatory') cdx6500frdtepUtilizationIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepUtilizationIn.setStatus('mandatory') cdx6500frdtepUtilizationOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepUtilizationOut.setStatus('mandatory') cdx6500frdtepCharInTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepCharInTotal.setStatus('mandatory') cdx6500frdtepCharOutTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepCharOutTotal.setStatus('mandatory') cdx6500frdtepCharsInPerSec = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepCharsInPerSec.setStatus('mandatory') cdx6500frdtepCharsOutPerSec = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepCharsOutPerSec.setStatus('mandatory') cdx6500frdtepFrameInTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepFrameInTotal.setStatus('mandatory') cdx6500frdtepFrameOutTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepFrameOutTotal.setStatus('mandatory') cdx6500frdtepFramesInPerSec = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepFramesInPerSec.setStatus('mandatory') cdx6500frdtepFramesOutPerSec = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepFramesOutPerSec.setStatus('mandatory') cdx6500frdtepOverrunErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 14), Counter16()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepOverrunErrors.setStatus('mandatory') cdx6500frdtepUnderrunErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 15), Counter16()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepUnderrunErrors.setStatus('mandatory') cdx6500frdtepCRCErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 16), Counter16()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtepCRCErrors.setStatus('mandatory') cdx6500SPCTFRDTEStationTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2), ) if mibBuilder.loadTexts: cdx6500SPCTFRDTEStationTable.setStatus('mandatory') cdx6500SPCTFRDTEStationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1), ).setIndexNames((0, "FRDTE-OPT-MIB", "cdx6500frdtesCfgPortNum"), (0, "FRDTE-OPT-MIB", "cdx6500frdtesCfgStationNum")) if mibBuilder.loadTexts: cdx6500SPCTFRDTEStationEntry.setStatus('mandatory') cdx6500frdtesCfgPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesCfgPortNum.setStatus('mandatory') cdx6500frdtesCfgDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(16, 1007))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesCfgDLCI.setStatus('mandatory') cdx6500frdtesStationType = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("annexG", 1), ("bypass", 2), ("voiceRelay", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesStationType.setStatus('mandatory') cdx6500frdtesCommInfoRate = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesCommInfoRate.setStatus('mandatory') cdx6500frdtesCommBurstSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesCommBurstSize.setStatus('mandatory') cdx6500frdtesTransDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesTransDelay.setStatus('mandatory') cdx6500frdtesControlledMode = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 100))).clone(namedValues=NamedValues(("normal", 1), ("disable", 2), ("congested", 3), ("limit", 4), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesControlledMode.setStatus('mandatory') cdx6500frdtesLinkAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 100))).clone(namedValues=NamedValues(("dte", 1), ("dce", 2), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesLinkAddress.setStatus('mandatory') cdx6500frdtesPVCChannels = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesPVCChannels.setStatus('mandatory') cdx6500frdtesStartingPVC = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesStartingPVC.setStatus('mandatory') cdx6500frdtesSVCChannels = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 11), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesSVCChannels.setStatus('mandatory') cdx6500frdtesStartingSVC = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 12), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesStartingSVC.setStatus('mandatory') cdx6500frdtesInitialFrame = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 100))).clone(namedValues=NamedValues(("sabm", 1), ("disc", 2), ("none", 3), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesInitialFrame.setStatus('mandatory') cdx6500frdtesRetryTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 14), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesRetryTimer.setStatus('mandatory') cdx6500frdtesPollTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 15), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesPollTimer.setStatus('mandatory') cdx6500frdtesTries = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 16), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesTries.setStatus('mandatory') cdx6500frdtesFrameWinSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 17), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesFrameWinSize.setStatus('mandatory') cdx6500frdtesPacketWinSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 18), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesPacketWinSize.setStatus('mandatory') cdx6500frdtesMaxPacketSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(6, 7, 8, 9, 10, 11, 100))).clone(namedValues=NamedValues(("psize32", 6), ("psize64", 7), ("psize128", 8), ("psize256", 9), ("psize512", 10), ("psize1024", 11), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesMaxPacketSize.setStatus('mandatory') cdx6500frdtesUpperQueue = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 20), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesUpperQueue.setStatus('mandatory') cdx6500frdtesLowerQueue = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 21), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesLowerQueue.setStatus('mandatory') cdx6500frdtesRestartTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 22), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesRestartTimer.setStatus('mandatory') cdx6500frdtesResetTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 23), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesResetTimer.setStatus('mandatory') cdx6500frdtesCallTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 24), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesCallTimer.setStatus('mandatory') cdx6500frdtesClearTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 25), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesClearTimer.setStatus('mandatory') cdx6500frdtesX25Options = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 26), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesX25Options.setStatus('deprecated') cdx6500frdtesRCDestination = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 27), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesRCDestination.setStatus('mandatory') cdx6500frdtesCUG = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 28), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 23))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesCUG.setStatus('mandatory') cdx6500frdtesBillingRecords = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 29), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 100))).clone(namedValues=NamedValues(("off", 1), ("on", 2), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesBillingRecords.setStatus('mandatory') cdx6500frdtesCfgStationNum = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 30), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesCfgStationNum.setStatus('mandatory') cdx6500frdtesStnX25Options = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 31), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesStnX25Options.setStatus('mandatory') cdx6500frdtesStnFrameSegmenter = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 100))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesStnFrameSegmenter.setStatus('mandatory') cdx6500frdtesStnVoiceSVCChannels = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 33), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesStnVoiceSVCChannels.setStatus('mandatory') cdx6500frdtesStnVoiceCongCtrlMode = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 100))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesStnVoiceCongCtrlMode.setStatus('mandatory') cdx6500frdtesStnPeakUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 35), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 240))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesStnPeakUtilization.setStatus('mandatory') cdx6500frdtesStnMaxInboundQueue = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 36), Integer32().subtype(subtypeSpec=ValueRangeConstraint(100, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesStnMaxInboundQueue.setStatus('mandatory') cdx6500frdtesStnAnnexGRateReduction = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 37), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 100))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("nc", 100)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdx6500frdtesStnAnnexGRateReduction.setStatus('mandatory') cdx6500SPSTFRDTEStationTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2), ) if mibBuilder.loadTexts: cdx6500SPSTFRDTEStationTable.setStatus('mandatory') cdx6500SPSTFRDTEStationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1), ).setIndexNames((0, "FRDTE-OPT-MIB", "cdx6500frdtesStatsPortNum"), (0, "FRDTE-OPT-MIB", "cdx6500frdtesStatsStationNumber")) if mibBuilder.loadTexts: cdx6500SPSTFRDTEStationEntry.setStatus('mandatory') cdx6500frdtesStatsPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesStatsPortNum.setStatus('mandatory') cdx6500frdtesStatsDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(16, 1007))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesStatsDLCI.setStatus('mandatory') cdx6500frdtesUtilizationIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesUtilizationIn.setStatus('mandatory') cdx6500frdtesUtilizationOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesUtilizationOut.setStatus('mandatory') cdx6500frdtesMaxSVCCount = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesMaxSVCCount.setStatus('mandatory') cdx6500frdtesCurrentSVCCount = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesCurrentSVCCount.setStatus('mandatory') cdx6500frdtesCharInTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesCharInTotal.setStatus('mandatory') cdx6500frdtesCharOutTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesCharOutTotal.setStatus('mandatory') cdx6500frdtesCharsInPerSec = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesCharsInPerSec.setStatus('mandatory') cdx6500frdtesCharsOutPerSec = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesCharsOutPerSec.setStatus('mandatory') cdx6500frdtesPktInTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesPktInTotal.setStatus('mandatory') cdx6500frdtesPktOutTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesPktOutTotal.setStatus('mandatory') cdx6500frdtesPktsInPerSec = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesPktsInPerSec.setStatus('mandatory') cdx6500frdtesPktsOutPerSec = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesPktsOutPerSec.setStatus('mandatory') cdx6500frdtesPacketsQueued = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesPacketsQueued.setStatus('mandatory') cdx6500frdtesFrameInTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesFrameInTotal.setStatus('mandatory') cdx6500frdtesFrameOutTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesFrameOutTotal.setStatus('mandatory') cdx6500frdtesFramesInPerSec = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesFramesInPerSec.setStatus('mandatory') cdx6500frdtesFramesOutPerSec = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesFramesOutPerSec.setStatus('mandatory') cdx6500frdtesInfoFramesIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesInfoFramesIn.setStatus('mandatory') cdx6500frdtesInfoFramesOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesInfoFramesOut.setStatus('mandatory') cdx6500frdtesRNRFramesIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesRNRFramesIn.setStatus('mandatory') cdx6500frdtesRNRFramesOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesRNRFramesOut.setStatus('mandatory') cdx6500frdtesRRFramesIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesRRFramesIn.setStatus('mandatory') cdx6500frdtesRRFramesOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesRRFramesOut.setStatus('mandatory') cdx6500frdtesREJFramesIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesREJFramesIn.setStatus('mandatory') cdx6500frdtesREJFramesOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesREJFramesOut.setStatus('mandatory') cdx6500frdtesDataPktsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesDataPktsIn.setStatus('mandatory') cdx6500frdtesDataPktsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesDataPktsOut.setStatus('mandatory') cdx6500frdtesResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("reset", 1), ("noReset", 2)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: cdx6500frdtesResetStats.setStatus('mandatory') cdx6500frdtesBoot = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("boot", 1), ("noBoot", 2)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: cdx6500frdtesBoot.setStatus('mandatory') cdx6500frdtesDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("noDisable", 2)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: cdx6500frdtesDisable.setStatus('mandatory') cdx6500frdtesEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("noEnable", 2)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: cdx6500frdtesEnable.setStatus('mandatory') cdx6500frdtesStatsStationNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 34), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500frdtesStatsStationNumber.setStatus('mandatory') mibBuilder.exportSymbols("FRDTE-OPT-MIB", cdx6500frdtesUtilizationOut=cdx6500frdtesUtilizationOut, cdx6500frdtepFrameInTotal=cdx6500frdtepFrameInTotal, cdx6500StatProtocolGroup=cdx6500StatProtocolGroup, cdx6500PPSTFRDTEPortEntry=cdx6500PPSTFRDTEPortEntry, cdx6500frdtesClearTimer=cdx6500frdtesClearTimer, codex=codex, cdx6500frdtesPVCChannels=cdx6500frdtesPVCChannels, cdx6500frdtepStatsPortNum=cdx6500frdtepStatsPortNum, cdx6500frdtesRRFramesIn=cdx6500frdtesRRFramesIn, cdx6500frdtesStnX25Options=cdx6500frdtesStnX25Options, cdx6500PSTStationProtocolGroup=cdx6500PSTStationProtocolGroup, cdx6500frdtesStnVoiceCongCtrlMode=cdx6500frdtesStnVoiceCongCtrlMode, cdx6500frdtesLowerQueue=cdx6500frdtesLowerQueue, cdx6500PCTFRDTEPortEntry=cdx6500PCTFRDTEPortEntry, Counter16=Counter16, cdx6500frdtepT392=cdx6500frdtepT392, cdx6500frdtesDataPktsOut=cdx6500frdtesDataPktsOut, cdx6500frdtepNN1=cdx6500frdtepNN1, cdx6500frdtesControlledMode=cdx6500frdtesControlledMode, cdx6500frdtepCharsOutPerSec=cdx6500frdtepCharsOutPerSec, cdx6500frdtesRNRFramesIn=cdx6500frdtesRNRFramesIn, cdx6500frdtepNN2=cdx6500frdtepNN2, cdx6500frdtepClockSource=cdx6500frdtepClockSource, cdx6500frdtepClockSpeed=cdx6500frdtepClockSpeed, cdx6500frdtesStnFrameSegmenter=cdx6500frdtesStnFrameSegmenter, cdx6500PCTPortProtocolGroup=cdx6500PCTPortProtocolGroup, cdx6500frdtepInvertTXClock=cdx6500frdtepInvertTXClock, cdx6500frdtesCharInTotal=cdx6500frdtesCharInTotal, cdx6500frdtepPortSpeed=cdx6500frdtepPortSpeed, cdx6500frdtesCallTimer=cdx6500frdtesCallTimer, cdx6500frdtesRetryTimer=cdx6500frdtesRetryTimer, cdx6500frdtepCfgPortNum=cdx6500frdtepCfgPortNum, cdx6500frdtesStnAnnexGRateReduction=cdx6500frdtesStnAnnexGRateReduction, cdx6500frdtesDataPktsIn=cdx6500frdtesDataPktsIn, cdx6500frdtesTransDelay=cdx6500frdtesTransDelay, cdx6500frdtesFramesInPerSec=cdx6500frdtesFramesInPerSec, cdx6500frdtesCharsOutPerSec=cdx6500frdtesCharsOutPerSec, cdx6500frdtepFrameOutTotal=cdx6500frdtepFrameOutTotal, cdx6500frdtesRRFramesOut=cdx6500frdtesRRFramesOut, cdx6500SPSTFRDTEStationEntry=cdx6500SPSTFRDTEStationEntry, cdx6500frdtepV24ElectricalInterfaceOption=cdx6500frdtepV24ElectricalInterfaceOption, cdx6500frdtesStartingSVC=cdx6500frdtesStartingSVC, cdx6500frdtepN391=cdx6500frdtepN391, cdx6500SPCTFRDTEStationEntry=cdx6500SPCTFRDTEStationEntry, cdx6500frdtesStartingPVC=cdx6500frdtesStartingPVC, cdx6500frdtepMaxVoiceBWBitsPerSec=cdx6500frdtepMaxVoiceBWBitsPerSec, cdx6500Configuration=cdx6500Configuration, cdx6500frdtesMaxPacketSize=cdx6500frdtesMaxPacketSize, cdx6500frdtesCharOutTotal=cdx6500frdtesCharOutTotal, cdx6500frdtepNN3=cdx6500frdtepNN3, DisplayString=DisplayString, cdx6500frdtepCtrlProtocol=cdx6500frdtepCtrlProtocol, cdx6500frdtepCharOutTotal=cdx6500frdtepCharOutTotal, cdx6500frdtepPortStatus=cdx6500frdtepPortStatus, cdx6500frdtesPktInTotal=cdx6500frdtesPktInTotal, cdx6500frdtepNT2=cdx6500frdtepNT2, cdx6500frdtepHighSpeedElectricalInterfaceOption=cdx6500frdtepHighSpeedElectricalInterfaceOption, cdx6500frdtesInfoFramesIn=cdx6500frdtesInfoFramesIn, cdx6500frdtesResetStats=cdx6500frdtesResetStats, cdx6500frdtepConnectionType=cdx6500frdtepConnectionType, cdx6500frdtepFrameSeqCounting=cdx6500frdtepFrameSeqCounting, cdx6500frdtesStatsPortNum=cdx6500frdtesStatsPortNum, cdx6500frdtesResetTimer=cdx6500frdtesResetTimer, cdx6500frdtepN392=cdx6500frdtepN392, cdx6500frdtesTries=cdx6500frdtesTries, cdx6500frdtesRNRFramesOut=cdx6500frdtesRNRFramesOut, cdx6500frdtesStnPeakUtilization=cdx6500frdtesStnPeakUtilization, cdx6500frdtesFrameInTotal=cdx6500frdtesFrameInTotal, cdx6500frdtesPacketsQueued=cdx6500frdtesPacketsQueued, cdx6500frdtesCfgPortNum=cdx6500frdtesCfgPortNum, cdx6500frdtesCfgDLCI=cdx6500frdtesCfgDLCI, cdx6500PSTPortProtocolGroup=cdx6500PSTPortProtocolGroup, cdx6500frdtepUnderrunErrors=cdx6500frdtepUnderrunErrors, cdx6500frdtesSVCChannels=cdx6500frdtesSVCChannels, cdx6500PCTFRDTEPortTable=cdx6500PCTFRDTEPortTable, cdx6500frdtesFramesOutPerSec=cdx6500frdtesFramesOutPerSec, cdx6500frdtesDisable=cdx6500frdtesDisable, cdx6500frdtepControlProtocolOptions=cdx6500frdtepControlProtocolOptions, cdx6500frdtesPktsOutPerSec=cdx6500frdtesPktsOutPerSec, cdx6500SPSTFRDTEStationTable=cdx6500SPSTFRDTEStationTable, cdx6500frdtepOverrunErrors=cdx6500frdtepOverrunErrors, cdx6500frdtesCharsInPerSec=cdx6500frdtesCharsInPerSec, cdx6500frdtepElectricalInterfaceType=cdx6500frdtepElectricalInterfaceType, cdx6500frdtesREJFramesOut=cdx6500frdtesREJFramesOut, cdx6500frdtepUtilizationIn=cdx6500frdtepUtilizationIn, cdx6500frdtesREJFramesIn=cdx6500frdtesREJFramesIn, cdx6500frdtepHighPriorityStn=cdx6500frdtepHighPriorityStn, cdx6500frdtesCommInfoRate=cdx6500frdtesCommInfoRate, cdx6500frdtesPacketWinSize=cdx6500frdtesPacketWinSize, cdx6500frdtesUtilizationIn=cdx6500frdtesUtilizationIn, cdx6500frdtesFrameWinSize=cdx6500frdtesFrameWinSize, cdx6500frdtepCharsInPerSec=cdx6500frdtepCharsInPerSec, cdx6500frdtesFrameOutTotal=cdx6500frdtesFrameOutTotal, cdx6500frdtesInitialFrame=cdx6500frdtesInitialFrame, cdx6500frdtesX25Options=cdx6500frdtesX25Options, cdx6500CfgProtocolGroup=cdx6500CfgProtocolGroup, cdx6500frdtesInfoFramesOut=cdx6500frdtesInfoFramesOut, cdx6500frdtepCRCErrors=cdx6500frdtepCRCErrors, cdxProductSpecific=cdxProductSpecific, cdx6500frdtepUtilizationOut=cdx6500frdtepUtilizationOut, cdx6500frdtesPktOutTotal=cdx6500frdtesPktOutTotal, cdx6500SPCTFRDTEStationTable=cdx6500SPCTFRDTEStationTable, cdx6500Controls=cdx6500Controls, cdx6500Statistics=cdx6500Statistics, cdx6500frdtepN393=cdx6500frdtepN393, cdx6500frdtepSegSizeVoicePresent=cdx6500frdtepSegSizeVoicePresent, cdx6500frdtepMaxStations=cdx6500frdtepMaxStations, cdx6500frdtesLinkAddress=cdx6500frdtesLinkAddress, cdx6500frdtepDiscardControlOptions=cdx6500frdtepDiscardControlOptions, cdx6500frdtesRCDestination=cdx6500frdtesRCDestination, cdx6500frdtesCurrentSVCCount=cdx6500frdtesCurrentSVCCount, cdx6500PCTStationProtocolGroup=cdx6500PCTStationProtocolGroup, cdx6500frdtepFramesOutPerSec=cdx6500frdtepFramesOutPerSec, cdx6500frdtesStationType=cdx6500frdtesStationType, cdx6500frdtesBoot=cdx6500frdtesBoot, cdx6500frdtesStnVoiceSVCChannels=cdx6500frdtesStnVoiceSVCChannels, cdx6500frdtepNT1=cdx6500frdtepNT1, cdx6500frdtepFramesInPerSec=cdx6500frdtepFramesInPerSec, cdx6500frdtesStatsStationNumber=cdx6500frdtesStatsStationNumber, cdx6500frdtepT391=cdx6500frdtepT391, cdx6500frdtesBillingRecords=cdx6500frdtesBillingRecords, cdx6500frdtesStnMaxInboundQueue=cdx6500frdtesStnMaxInboundQueue, cdx6500frdtesStatsDLCI=cdx6500frdtesStatsDLCI, cdx6500frdtesUpperQueue=cdx6500frdtesUpperQueue, cdx6500frdtesMaxSVCCount=cdx6500frdtesMaxSVCCount, cdx6500frdtepCharInTotal=cdx6500frdtepCharInTotal, cdx6500frdtesCommBurstSize=cdx6500frdtesCommBurstSize, cdx6500frdtesCfgStationNum=cdx6500frdtesCfgStationNum, cdx6500frdtesPktsInPerSec=cdx6500frdtesPktsInPerSec, cdx6500frdtepSegSizeVoiceNotPresent=cdx6500frdtepSegSizeVoiceNotPresent, cdx6500frdtepPktSeqCounting=cdx6500frdtepPktSeqCounting, cdx6500=cdx6500, cdx6500frdtesRestartTimer=cdx6500frdtesRestartTimer, cdx6500frdtesCUG=cdx6500frdtesCUG, cdx6500PPSTFRDTEPortTable=cdx6500PPSTFRDTEPortTable, cdx6500frdtesEnable=cdx6500frdtesEnable, cdx6500frdtesPollTimer=cdx6500frdtesPollTimer)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_union, constraints_intersection, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint', 'SingleValueConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (enterprises, mib_identifier, module_identity, gauge32, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, mgmt, object_identity, unsigned32, bits, time_ticks, iso, integer32, counter32, ip_address, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'enterprises', 'MibIdentifier', 'ModuleIdentity', 'Gauge32', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'mgmt', 'ObjectIdentity', 'Unsigned32', 'Bits', 'TimeTicks', 'iso', 'Integer32', 'Counter32', 'IpAddress', 'Counter64') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') codex = mib_identifier((1, 3, 6, 1, 4, 1, 449)) cdx_product_specific = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2)) cdx6500 = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1)) cdx6500_configuration = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2)) cdx6500_cfg_protocol_group = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1)) cdx6500_pct_port_protocol_group = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1)) cdx6500_pct_station_protocol_group = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3)) cdx6500_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3)) cdx6500_stat_protocol_group = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1)) cdx6500_pst_port_protocol_group = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1)) cdx6500_pst_station_protocol_group = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3)) cdx6500_controls = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 4)) class Counter16(Integer32): subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 65535) class Displaystring(OctetString): pass cdx6500_pctfrdte_port_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5)) if mibBuilder.loadTexts: cdx6500PCTFRDTEPortTable.setStatus('mandatory') cdx6500_pctfrdte_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1)).setIndexNames((0, 'FRDTE-OPT-MIB', 'cdx6500frdtepCfgPortNum')) if mibBuilder.loadTexts: cdx6500PCTFRDTEPortEntry.setStatus('mandatory') cdx6500frdtep_cfg_port_num = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepCfgPortNum.setStatus('mandatory') cdx6500frdtep_connection_type = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 21, 100))).clone(namedValues=named_values(('simp', 1), ('dtr', 2), ('simpb', 21), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepConnectionType.setStatus('mandatory') cdx6500frdtep_clock_source = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 100))).clone(namedValues=named_values(('int', 1), ('ext', 2), ('extint', 3), ('extlp', 4), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepClockSource.setStatus('mandatory') cdx6500frdtep_clock_speed = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1200, 2048000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepClockSpeed.setStatus('mandatory') cdx6500frdtep_max_stations = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepMaxStations.setStatus('deprecated') cdx6500frdtep_frame_seq_counting = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 100))).clone(namedValues=named_values(('normal', 1), ('extended', 2), ('nc', 100)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepFrameSeqCounting.setStatus('mandatory') cdx6500frdtep_pkt_seq_counting = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 100))).clone(namedValues=named_values(('normal', 1), ('extended', 2), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepPktSeqCounting.setStatus('mandatory') cdx6500frdtep_ctrl_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 100))).clone(namedValues=named_values(('annexD', 1), ('none', 2), ('lmi', 3), ('annexA', 4), ('auto', 5), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepCtrlProtocol.setStatus('mandatory') cdx6500frdtep_t391 = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(5, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepT391.setStatus('mandatory') cdx6500frdtep_t392 = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(5, 30))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepT392.setStatus('mandatory') cdx6500frdtep_n391 = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 12), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepN391.setStatus('mandatory') cdx6500frdtep_n392 = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepN392.setStatus('mandatory') cdx6500frdtep_n393 = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 14), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepN393.setStatus('mandatory') cdx6500frdtep_nt1 = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(5, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepNT1.setStatus('mandatory') cdx6500frdtep_nt2 = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(5, 30))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepNT2.setStatus('mandatory') cdx6500frdtep_nn1 = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 17), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepNN1.setStatus('mandatory') cdx6500frdtep_nn2 = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 18), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepNN2.setStatus('mandatory') cdx6500frdtep_nn3 = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 19), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepNN3.setStatus('mandatory') cdx6500frdtep_high_priority_stn = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(1, 254))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepHighPriorityStn.setStatus('mandatory') cdx6500frdtep_max_voice_bw_bits_per_sec = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 2048000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepMaxVoiceBWBitsPerSec.setStatus('mandatory') cdx6500frdtep_seg_size_voice_present = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(33, 65, 129, 257, 513, 1025, 100))).clone(namedValues=named_values(('segSize32', 33), ('segSize64', 65), ('segSize128', 129), ('segSize256', 257), ('segSize512', 513), ('segSize1024', 1025), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepSegSizeVoicePresent.setStatus('mandatory') cdx6500frdtep_seg_size_voice_not_present = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(33, 65, 129, 257, 513, 1025, 2049, 4097, 32000, 100))).clone(namedValues=named_values(('segSize32', 33), ('segSize64', 65), ('segSize128', 129), ('segSize256', 257), ('segSize512', 513), ('segSize1024', 1025), ('segSize2048', 2049), ('segSize4096', 4097), ('disable', 32000), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepSegSizeVoiceNotPresent.setStatus('mandatory') cdx6500frdtep_invert_tx_clock = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 24), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 100))).clone(namedValues=named_values(('no', 1), ('yes', 2), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepInvertTXClock.setStatus('mandatory') cdx6500frdtep_control_protocol_options = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 25), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepControlProtocolOptions.setStatus('mandatory') cdx6500frdtep_discard_control_options = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 26), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('none', 1), ('debit', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepDiscardControlOptions.setStatus('mandatory') cdx6500frdtep_electrical_interface_type = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('v24', 1), ('v35', 2), ('v36', 3), ('x21', 4), ('none', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepElectricalInterfaceType.setStatus('mandatory') cdx6500frdtep_v24_electrical_interface_option = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ri', 1), ('tm', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepV24ElectricalInterfaceOption.setStatus('mandatory') cdx6500frdtep_high_speed_electrical_interface_option = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 5, 1, 29), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('none', 1), ('xover', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtepHighSpeedElectricalInterfaceOption.setStatus('mandatory') cdx6500_ppstfrdte_port_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5)) if mibBuilder.loadTexts: cdx6500PPSTFRDTEPortTable.setStatus('mandatory') cdx6500_ppstfrdte_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1)).setIndexNames((0, 'FRDTE-OPT-MIB', 'cdx6500frdtepStatsPortNum')) if mibBuilder.loadTexts: cdx6500PPSTFRDTEPortEntry.setStatus('mandatory') cdx6500frdtep_stats_port_num = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepStatsPortNum.setStatus('mandatory') cdx6500frdtep_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 100))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('busyOut', 3), ('up', 4), ('down', 5), ('na', 100)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepPortStatus.setStatus('mandatory') cdx6500frdtep_port_speed = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepPortSpeed.setStatus('mandatory') cdx6500frdtep_utilization_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepUtilizationIn.setStatus('mandatory') cdx6500frdtep_utilization_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepUtilizationOut.setStatus('mandatory') cdx6500frdtep_char_in_total = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepCharInTotal.setStatus('mandatory') cdx6500frdtep_char_out_total = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepCharOutTotal.setStatus('mandatory') cdx6500frdtep_chars_in_per_sec = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepCharsInPerSec.setStatus('mandatory') cdx6500frdtep_chars_out_per_sec = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepCharsOutPerSec.setStatus('mandatory') cdx6500frdtep_frame_in_total = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepFrameInTotal.setStatus('mandatory') cdx6500frdtep_frame_out_total = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepFrameOutTotal.setStatus('mandatory') cdx6500frdtep_frames_in_per_sec = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepFramesInPerSec.setStatus('mandatory') cdx6500frdtep_frames_out_per_sec = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepFramesOutPerSec.setStatus('mandatory') cdx6500frdtep_overrun_errors = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 14), counter16()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepOverrunErrors.setStatus('mandatory') cdx6500frdtep_underrun_errors = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 15), counter16()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepUnderrunErrors.setStatus('mandatory') cdx6500frdtep_crc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 5, 1, 16), counter16()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtepCRCErrors.setStatus('mandatory') cdx6500_spctfrdte_station_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2)) if mibBuilder.loadTexts: cdx6500SPCTFRDTEStationTable.setStatus('mandatory') cdx6500_spctfrdte_station_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1)).setIndexNames((0, 'FRDTE-OPT-MIB', 'cdx6500frdtesCfgPortNum'), (0, 'FRDTE-OPT-MIB', 'cdx6500frdtesCfgStationNum')) if mibBuilder.loadTexts: cdx6500SPCTFRDTEStationEntry.setStatus('mandatory') cdx6500frdtes_cfg_port_num = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesCfgPortNum.setStatus('mandatory') cdx6500frdtes_cfg_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(16, 1007))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesCfgDLCI.setStatus('mandatory') cdx6500frdtes_station_type = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('annexG', 1), ('bypass', 2), ('voiceRelay', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesStationType.setStatus('mandatory') cdx6500frdtes_comm_info_rate = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesCommInfoRate.setStatus('mandatory') cdx6500frdtes_comm_burst_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesCommBurstSize.setStatus('mandatory') cdx6500frdtes_trans_delay = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesTransDelay.setStatus('mandatory') cdx6500frdtes_controlled_mode = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 100))).clone(namedValues=named_values(('normal', 1), ('disable', 2), ('congested', 3), ('limit', 4), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesControlledMode.setStatus('mandatory') cdx6500frdtes_link_address = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 100))).clone(namedValues=named_values(('dte', 1), ('dce', 2), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesLinkAddress.setStatus('mandatory') cdx6500frdtes_pvc_channels = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesPVCChannels.setStatus('mandatory') cdx6500frdtes_starting_pvc = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 10), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesStartingPVC.setStatus('mandatory') cdx6500frdtes_svc_channels = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 11), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesSVCChannels.setStatus('mandatory') cdx6500frdtes_starting_svc = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 12), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesStartingSVC.setStatus('mandatory') cdx6500frdtes_initial_frame = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 100))).clone(namedValues=named_values(('sabm', 1), ('disc', 2), ('none', 3), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesInitialFrame.setStatus('mandatory') cdx6500frdtes_retry_timer = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 14), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesRetryTimer.setStatus('mandatory') cdx6500frdtes_poll_timer = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 15), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesPollTimer.setStatus('mandatory') cdx6500frdtes_tries = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 16), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesTries.setStatus('mandatory') cdx6500frdtes_frame_win_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 17), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesFrameWinSize.setStatus('mandatory') cdx6500frdtes_packet_win_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 18), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesPacketWinSize.setStatus('mandatory') cdx6500frdtes_max_packet_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(6, 7, 8, 9, 10, 11, 100))).clone(namedValues=named_values(('psize32', 6), ('psize64', 7), ('psize128', 8), ('psize256', 9), ('psize512', 10), ('psize1024', 11), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesMaxPacketSize.setStatus('mandatory') cdx6500frdtes_upper_queue = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 20), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesUpperQueue.setStatus('mandatory') cdx6500frdtes_lower_queue = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 21), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesLowerQueue.setStatus('mandatory') cdx6500frdtes_restart_timer = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 22), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesRestartTimer.setStatus('mandatory') cdx6500frdtes_reset_timer = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 23), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesResetTimer.setStatus('mandatory') cdx6500frdtes_call_timer = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 24), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesCallTimer.setStatus('mandatory') cdx6500frdtes_clear_timer = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 25), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesClearTimer.setStatus('mandatory') cdx6500frdtes_x25_options = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 26), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesX25Options.setStatus('deprecated') cdx6500frdtes_rc_destination = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 27), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesRCDestination.setStatus('mandatory') cdx6500frdtes_cug = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 28), display_string().subtype(subtypeSpec=value_size_constraint(0, 23))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesCUG.setStatus('mandatory') cdx6500frdtes_billing_records = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 29), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 100))).clone(namedValues=named_values(('off', 1), ('on', 2), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesBillingRecords.setStatus('mandatory') cdx6500frdtes_cfg_station_num = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 30), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesCfgStationNum.setStatus('mandatory') cdx6500frdtes_stn_x25_options = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 31), display_string().subtype(subtypeSpec=value_size_constraint(0, 24))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesStnX25Options.setStatus('mandatory') cdx6500frdtes_stn_frame_segmenter = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 100))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesStnFrameSegmenter.setStatus('mandatory') cdx6500frdtes_stn_voice_svc_channels = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 33), integer32().subtype(subtypeSpec=value_range_constraint(0, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesStnVoiceSVCChannels.setStatus('mandatory') cdx6500frdtes_stn_voice_cong_ctrl_mode = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 34), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 100))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesStnVoiceCongCtrlMode.setStatus('mandatory') cdx6500frdtes_stn_peak_utilization = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 35), integer32().subtype(subtypeSpec=value_range_constraint(0, 240))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesStnPeakUtilization.setStatus('mandatory') cdx6500frdtes_stn_max_inbound_queue = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 36), integer32().subtype(subtypeSpec=value_range_constraint(100, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesStnMaxInboundQueue.setStatus('mandatory') cdx6500frdtes_stn_annex_g_rate_reduction = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 3, 2, 1, 37), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 100))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('nc', 100)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cdx6500frdtesStnAnnexGRateReduction.setStatus('mandatory') cdx6500_spstfrdte_station_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2)) if mibBuilder.loadTexts: cdx6500SPSTFRDTEStationTable.setStatus('mandatory') cdx6500_spstfrdte_station_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1)).setIndexNames((0, 'FRDTE-OPT-MIB', 'cdx6500frdtesStatsPortNum'), (0, 'FRDTE-OPT-MIB', 'cdx6500frdtesStatsStationNumber')) if mibBuilder.loadTexts: cdx6500SPSTFRDTEStationEntry.setStatus('mandatory') cdx6500frdtes_stats_port_num = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesStatsPortNum.setStatus('mandatory') cdx6500frdtes_stats_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(16, 1007))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesStatsDLCI.setStatus('mandatory') cdx6500frdtes_utilization_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesUtilizationIn.setStatus('mandatory') cdx6500frdtes_utilization_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesUtilizationOut.setStatus('mandatory') cdx6500frdtes_max_svc_count = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesMaxSVCCount.setStatus('mandatory') cdx6500frdtes_current_svc_count = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesCurrentSVCCount.setStatus('mandatory') cdx6500frdtes_char_in_total = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesCharInTotal.setStatus('mandatory') cdx6500frdtes_char_out_total = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesCharOutTotal.setStatus('mandatory') cdx6500frdtes_chars_in_per_sec = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesCharsInPerSec.setStatus('mandatory') cdx6500frdtes_chars_out_per_sec = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesCharsOutPerSec.setStatus('mandatory') cdx6500frdtes_pkt_in_total = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesPktInTotal.setStatus('mandatory') cdx6500frdtes_pkt_out_total = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesPktOutTotal.setStatus('mandatory') cdx6500frdtes_pkts_in_per_sec = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesPktsInPerSec.setStatus('mandatory') cdx6500frdtes_pkts_out_per_sec = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesPktsOutPerSec.setStatus('mandatory') cdx6500frdtes_packets_queued = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesPacketsQueued.setStatus('mandatory') cdx6500frdtes_frame_in_total = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesFrameInTotal.setStatus('mandatory') cdx6500frdtes_frame_out_total = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesFrameOutTotal.setStatus('mandatory') cdx6500frdtes_frames_in_per_sec = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesFramesInPerSec.setStatus('mandatory') cdx6500frdtes_frames_out_per_sec = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 19), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesFramesOutPerSec.setStatus('mandatory') cdx6500frdtes_info_frames_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesInfoFramesIn.setStatus('mandatory') cdx6500frdtes_info_frames_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesInfoFramesOut.setStatus('mandatory') cdx6500frdtes_rnr_frames_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesRNRFramesIn.setStatus('mandatory') cdx6500frdtes_rnr_frames_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesRNRFramesOut.setStatus('mandatory') cdx6500frdtes_rr_frames_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesRRFramesIn.setStatus('mandatory') cdx6500frdtes_rr_frames_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesRRFramesOut.setStatus('mandatory') cdx6500frdtes_rej_frames_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesREJFramesIn.setStatus('mandatory') cdx6500frdtes_rej_frames_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 27), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesREJFramesOut.setStatus('mandatory') cdx6500frdtes_data_pkts_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 28), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesDataPktsIn.setStatus('mandatory') cdx6500frdtes_data_pkts_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 29), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesDataPktsOut.setStatus('mandatory') cdx6500frdtes_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 30), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('reset', 1), ('noReset', 2)))).setMaxAccess('writeonly') if mibBuilder.loadTexts: cdx6500frdtesResetStats.setStatus('mandatory') cdx6500frdtes_boot = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 31), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('boot', 1), ('noBoot', 2)))).setMaxAccess('writeonly') if mibBuilder.loadTexts: cdx6500frdtesBoot.setStatus('mandatory') cdx6500frdtes_disable = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disable', 1), ('noDisable', 2)))).setMaxAccess('writeonly') if mibBuilder.loadTexts: cdx6500frdtesDisable.setStatus('mandatory') cdx6500frdtes_enable = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 33), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('noEnable', 2)))).setMaxAccess('writeonly') if mibBuilder.loadTexts: cdx6500frdtesEnable.setStatus('mandatory') cdx6500frdtes_stats_station_number = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 3, 2, 1, 34), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500frdtesStatsStationNumber.setStatus('mandatory') mibBuilder.exportSymbols('FRDTE-OPT-MIB', cdx6500frdtesUtilizationOut=cdx6500frdtesUtilizationOut, cdx6500frdtepFrameInTotal=cdx6500frdtepFrameInTotal, cdx6500StatProtocolGroup=cdx6500StatProtocolGroup, cdx6500PPSTFRDTEPortEntry=cdx6500PPSTFRDTEPortEntry, cdx6500frdtesClearTimer=cdx6500frdtesClearTimer, codex=codex, cdx6500frdtesPVCChannels=cdx6500frdtesPVCChannels, cdx6500frdtepStatsPortNum=cdx6500frdtepStatsPortNum, cdx6500frdtesRRFramesIn=cdx6500frdtesRRFramesIn, cdx6500frdtesStnX25Options=cdx6500frdtesStnX25Options, cdx6500PSTStationProtocolGroup=cdx6500PSTStationProtocolGroup, cdx6500frdtesStnVoiceCongCtrlMode=cdx6500frdtesStnVoiceCongCtrlMode, cdx6500frdtesLowerQueue=cdx6500frdtesLowerQueue, cdx6500PCTFRDTEPortEntry=cdx6500PCTFRDTEPortEntry, Counter16=Counter16, cdx6500frdtepT392=cdx6500frdtepT392, cdx6500frdtesDataPktsOut=cdx6500frdtesDataPktsOut, cdx6500frdtepNN1=cdx6500frdtepNN1, cdx6500frdtesControlledMode=cdx6500frdtesControlledMode, cdx6500frdtepCharsOutPerSec=cdx6500frdtepCharsOutPerSec, cdx6500frdtesRNRFramesIn=cdx6500frdtesRNRFramesIn, cdx6500frdtepNN2=cdx6500frdtepNN2, cdx6500frdtepClockSource=cdx6500frdtepClockSource, cdx6500frdtepClockSpeed=cdx6500frdtepClockSpeed, cdx6500frdtesStnFrameSegmenter=cdx6500frdtesStnFrameSegmenter, cdx6500PCTPortProtocolGroup=cdx6500PCTPortProtocolGroup, cdx6500frdtepInvertTXClock=cdx6500frdtepInvertTXClock, cdx6500frdtesCharInTotal=cdx6500frdtesCharInTotal, cdx6500frdtepPortSpeed=cdx6500frdtepPortSpeed, cdx6500frdtesCallTimer=cdx6500frdtesCallTimer, cdx6500frdtesRetryTimer=cdx6500frdtesRetryTimer, cdx6500frdtepCfgPortNum=cdx6500frdtepCfgPortNum, cdx6500frdtesStnAnnexGRateReduction=cdx6500frdtesStnAnnexGRateReduction, cdx6500frdtesDataPktsIn=cdx6500frdtesDataPktsIn, cdx6500frdtesTransDelay=cdx6500frdtesTransDelay, cdx6500frdtesFramesInPerSec=cdx6500frdtesFramesInPerSec, cdx6500frdtesCharsOutPerSec=cdx6500frdtesCharsOutPerSec, cdx6500frdtepFrameOutTotal=cdx6500frdtepFrameOutTotal, cdx6500frdtesRRFramesOut=cdx6500frdtesRRFramesOut, cdx6500SPSTFRDTEStationEntry=cdx6500SPSTFRDTEStationEntry, cdx6500frdtepV24ElectricalInterfaceOption=cdx6500frdtepV24ElectricalInterfaceOption, cdx6500frdtesStartingSVC=cdx6500frdtesStartingSVC, cdx6500frdtepN391=cdx6500frdtepN391, cdx6500SPCTFRDTEStationEntry=cdx6500SPCTFRDTEStationEntry, cdx6500frdtesStartingPVC=cdx6500frdtesStartingPVC, cdx6500frdtepMaxVoiceBWBitsPerSec=cdx6500frdtepMaxVoiceBWBitsPerSec, cdx6500Configuration=cdx6500Configuration, cdx6500frdtesMaxPacketSize=cdx6500frdtesMaxPacketSize, cdx6500frdtesCharOutTotal=cdx6500frdtesCharOutTotal, cdx6500frdtepNN3=cdx6500frdtepNN3, DisplayString=DisplayString, cdx6500frdtepCtrlProtocol=cdx6500frdtepCtrlProtocol, cdx6500frdtepCharOutTotal=cdx6500frdtepCharOutTotal, cdx6500frdtepPortStatus=cdx6500frdtepPortStatus, cdx6500frdtesPktInTotal=cdx6500frdtesPktInTotal, cdx6500frdtepNT2=cdx6500frdtepNT2, cdx6500frdtepHighSpeedElectricalInterfaceOption=cdx6500frdtepHighSpeedElectricalInterfaceOption, cdx6500frdtesInfoFramesIn=cdx6500frdtesInfoFramesIn, cdx6500frdtesResetStats=cdx6500frdtesResetStats, cdx6500frdtepConnectionType=cdx6500frdtepConnectionType, cdx6500frdtepFrameSeqCounting=cdx6500frdtepFrameSeqCounting, cdx6500frdtesStatsPortNum=cdx6500frdtesStatsPortNum, cdx6500frdtesResetTimer=cdx6500frdtesResetTimer, cdx6500frdtepN392=cdx6500frdtepN392, cdx6500frdtesTries=cdx6500frdtesTries, cdx6500frdtesRNRFramesOut=cdx6500frdtesRNRFramesOut, cdx6500frdtesStnPeakUtilization=cdx6500frdtesStnPeakUtilization, cdx6500frdtesFrameInTotal=cdx6500frdtesFrameInTotal, cdx6500frdtesPacketsQueued=cdx6500frdtesPacketsQueued, cdx6500frdtesCfgPortNum=cdx6500frdtesCfgPortNum, cdx6500frdtesCfgDLCI=cdx6500frdtesCfgDLCI, cdx6500PSTPortProtocolGroup=cdx6500PSTPortProtocolGroup, cdx6500frdtepUnderrunErrors=cdx6500frdtepUnderrunErrors, cdx6500frdtesSVCChannels=cdx6500frdtesSVCChannels, cdx6500PCTFRDTEPortTable=cdx6500PCTFRDTEPortTable, cdx6500frdtesFramesOutPerSec=cdx6500frdtesFramesOutPerSec, cdx6500frdtesDisable=cdx6500frdtesDisable, cdx6500frdtepControlProtocolOptions=cdx6500frdtepControlProtocolOptions, cdx6500frdtesPktsOutPerSec=cdx6500frdtesPktsOutPerSec, cdx6500SPSTFRDTEStationTable=cdx6500SPSTFRDTEStationTable, cdx6500frdtepOverrunErrors=cdx6500frdtepOverrunErrors, cdx6500frdtesCharsInPerSec=cdx6500frdtesCharsInPerSec, cdx6500frdtepElectricalInterfaceType=cdx6500frdtepElectricalInterfaceType, cdx6500frdtesREJFramesOut=cdx6500frdtesREJFramesOut, cdx6500frdtepUtilizationIn=cdx6500frdtepUtilizationIn, cdx6500frdtesREJFramesIn=cdx6500frdtesREJFramesIn, cdx6500frdtepHighPriorityStn=cdx6500frdtepHighPriorityStn, cdx6500frdtesCommInfoRate=cdx6500frdtesCommInfoRate, cdx6500frdtesPacketWinSize=cdx6500frdtesPacketWinSize, cdx6500frdtesUtilizationIn=cdx6500frdtesUtilizationIn, cdx6500frdtesFrameWinSize=cdx6500frdtesFrameWinSize, cdx6500frdtepCharsInPerSec=cdx6500frdtepCharsInPerSec, cdx6500frdtesFrameOutTotal=cdx6500frdtesFrameOutTotal, cdx6500frdtesInitialFrame=cdx6500frdtesInitialFrame, cdx6500frdtesX25Options=cdx6500frdtesX25Options, cdx6500CfgProtocolGroup=cdx6500CfgProtocolGroup, cdx6500frdtesInfoFramesOut=cdx6500frdtesInfoFramesOut, cdx6500frdtepCRCErrors=cdx6500frdtepCRCErrors, cdxProductSpecific=cdxProductSpecific, cdx6500frdtepUtilizationOut=cdx6500frdtepUtilizationOut, cdx6500frdtesPktOutTotal=cdx6500frdtesPktOutTotal, cdx6500SPCTFRDTEStationTable=cdx6500SPCTFRDTEStationTable, cdx6500Controls=cdx6500Controls, cdx6500Statistics=cdx6500Statistics, cdx6500frdtepN393=cdx6500frdtepN393, cdx6500frdtepSegSizeVoicePresent=cdx6500frdtepSegSizeVoicePresent, cdx6500frdtepMaxStations=cdx6500frdtepMaxStations, cdx6500frdtesLinkAddress=cdx6500frdtesLinkAddress, cdx6500frdtepDiscardControlOptions=cdx6500frdtepDiscardControlOptions, cdx6500frdtesRCDestination=cdx6500frdtesRCDestination, cdx6500frdtesCurrentSVCCount=cdx6500frdtesCurrentSVCCount, cdx6500PCTStationProtocolGroup=cdx6500PCTStationProtocolGroup, cdx6500frdtepFramesOutPerSec=cdx6500frdtepFramesOutPerSec, cdx6500frdtesStationType=cdx6500frdtesStationType, cdx6500frdtesBoot=cdx6500frdtesBoot, cdx6500frdtesStnVoiceSVCChannels=cdx6500frdtesStnVoiceSVCChannels, cdx6500frdtepNT1=cdx6500frdtepNT1, cdx6500frdtepFramesInPerSec=cdx6500frdtepFramesInPerSec, cdx6500frdtesStatsStationNumber=cdx6500frdtesStatsStationNumber, cdx6500frdtepT391=cdx6500frdtepT391, cdx6500frdtesBillingRecords=cdx6500frdtesBillingRecords, cdx6500frdtesStnMaxInboundQueue=cdx6500frdtesStnMaxInboundQueue, cdx6500frdtesStatsDLCI=cdx6500frdtesStatsDLCI, cdx6500frdtesUpperQueue=cdx6500frdtesUpperQueue, cdx6500frdtesMaxSVCCount=cdx6500frdtesMaxSVCCount, cdx6500frdtepCharInTotal=cdx6500frdtepCharInTotal, cdx6500frdtesCommBurstSize=cdx6500frdtesCommBurstSize, cdx6500frdtesCfgStationNum=cdx6500frdtesCfgStationNum, cdx6500frdtesPktsInPerSec=cdx6500frdtesPktsInPerSec, cdx6500frdtepSegSizeVoiceNotPresent=cdx6500frdtepSegSizeVoiceNotPresent, cdx6500frdtepPktSeqCounting=cdx6500frdtepPktSeqCounting, cdx6500=cdx6500, cdx6500frdtesRestartTimer=cdx6500frdtesRestartTimer, cdx6500frdtesCUG=cdx6500frdtesCUG, cdx6500PPSTFRDTEPortTable=cdx6500PPSTFRDTEPortTable, cdx6500frdtesEnable=cdx6500frdtesEnable, cdx6500frdtesPollTimer=cdx6500frdtesPollTimer)
with open("input2.txt", "r") as f: tx = f.read() base_program = list(map(int, tx.split(","))) # only solution 2 is here but solution 1 can be found by setting noun and verb def run_to_halt(program, noun, verb): program[1] = noun program[2] = verb for index, opcode in list(enumerate(program))[::4]: if opcode == 99: break in1 = program[index+1] in2 = program[index+2] out = program[index+3] if opcode == 1: program[out] = program[in1] + program[in2] elif opcode == 2: program[out] = program[in1] * program[in2] return program[0] for x in range(len(base_program)-1): for y in range(len(base_program)-1): p = base_program.copy() r = run_to_halt(p, x, y) if r == 19690720: print(f"\nFound noun {x} verb {y}") print(f"Puzzle result is thus {100*x + y}") break else: # python's way of breaking out of nested loops continue break
with open('input2.txt', 'r') as f: tx = f.read() base_program = list(map(int, tx.split(','))) def run_to_halt(program, noun, verb): program[1] = noun program[2] = verb for (index, opcode) in list(enumerate(program))[::4]: if opcode == 99: break in1 = program[index + 1] in2 = program[index + 2] out = program[index + 3] if opcode == 1: program[out] = program[in1] + program[in2] elif opcode == 2: program[out] = program[in1] * program[in2] return program[0] for x in range(len(base_program) - 1): for y in range(len(base_program) - 1): p = base_program.copy() r = run_to_halt(p, x, y) if r == 19690720: print(f'\nFound noun {x} verb {y}') print(f'Puzzle result is thus {100 * x + y}') break else: continue break
nombres=["Juan", "murcielago", "Alejandro"] vocales=["a","e","i","o","u"] conteo_vocales =[] for nombre in nombres: for letra in nombre: if letra not in vocales: continue else: print(letra) conteo_vocales.append(letra) print(conteo_vocales) print(len(conteo_vocales)) option = str(input("> ")) cantidad_vocales = conteo_vocales.count(option) print(f"La cantidad de \"{option}'s\" que hay es {cantidad_vocales}") print("La cantidad de {option}'s que hay es {cantidad_vocales}".format(option=option, cantidad_vocales=cantidad_vocales))
nombres = ['Juan', 'murcielago', 'Alejandro'] vocales = ['a', 'e', 'i', 'o', 'u'] conteo_vocales = [] for nombre in nombres: for letra in nombre: if letra not in vocales: continue else: print(letra) conteo_vocales.append(letra) print(conteo_vocales) print(len(conteo_vocales)) option = str(input('> ')) cantidad_vocales = conteo_vocales.count(option) print(f'''La cantidad de "{option}'s" que hay es {cantidad_vocales}''') print("La cantidad de {option}'s que hay es {cantidad_vocales}".format(option=option, cantidad_vocales=cantidad_vocales))
# This is here to allow a sub-object that contains all of our crud information within the # peewee model and avoid messing with model object data as much as possible class ResponseMessages: # Errors ErrorDoesNotExist = 'Resource with id \'{0}\' does not exist' ErrorTypeInteger = 'Value \'{0}\' must be an integer' ErrorTypeBoolean = 'Value \'{0}\' must be a boolean: 0 or 1' ErrorTypeDatetime = 'Value \'{0}\' must be a datetime: YYYY-mm-dd HH:MM:SS or integer' ErrorTypeList = 'Value \'{0}\' must be a comma separated list' ErrorPrimaryKeyUpdateInsert = 'Field: \'id\' cannot be inserted or modified, field is primary key' ErrorInvalidField = 'Field: \'{0}\' does not exist choices are {1}' ErrorNonNullableFieldInsert = 'Field: \'{0}\' cannot be null, required fields are: {1}' ErrorInvalidJSON = 'Invalid JSON input' ErrorInvalidFilterOption = 'Invalid Filter Option: {0}, valid options are {1}' ErrorFieldOutOfRange = 'Invalid range for field \'{0}\', must be between {1} and {2}' # Success SuccessOk = 'OK' SuccessRowUpdated = 'Resource with id \'{0}\' was updated!' SuccessRowCreated = 'Resource with id \'{0}\' was created!' SuccessRowDeleted = 'Resource with id \'{0}\' was deleted!' class CrudConfig(object): COLLECTION_MAX_RESULTS_PER_PAGE = 100 # {'filter_key': 'human readable description'} FILTER_OPTIONS = { 'startswith': 'field starts with value', 'contains': 'field contains value', 'lt': 'field is less than value', 'lte': 'field is less than or equal to value', 'gt': 'field is greater than value', 'gte': 'field is greater than or equal to value', 'null': 'field is null', '=': 'field is equal to value', 'in': 'field is in list', 'notin': 'field is not in list' } response_messages = ResponseMessages() # Internal class only used to shortcut a variety of things class CrudShortcuts(object): def __init__(self, model): self.table_name = model._meta.db_table self.model = model @property def primary_key(self): for key, value in self.fields.items(): if value.primary_key: return key @property def primary_key_type(self): pk_field = self.fields.get(self.primary_key).get_column_type() column_type = pk_field.replace(' ', '') column_type = column_type.replace('AUTO_INCREMENT', '') types = { 'INTEGER': 'int', 'SERIAL': 'int', 'VARCHAR': 'str' } return types.get(column_type, None) @property def base_uri(self): return '/{}'.format(self.table_name) @property def required_fields(self): required_fields = [] for field, field_object in self.editable_fields.items(): if not field_object.null: required_fields.append(field) return required_fields @property def editable_fields(self): fields = {} for key, value in self.model._meta.fields.items(): if self.primary_key == key: continue fields[key] = value return fields @property def fields(self): fields = {} for key, value in self.model._meta.fields.items(): fields[key] = value return fields
class Responsemessages: error_does_not_exist = "Resource with id '{0}' does not exist" error_type_integer = "Value '{0}' must be an integer" error_type_boolean = "Value '{0}' must be a boolean: 0 or 1" error_type_datetime = "Value '{0}' must be a datetime: YYYY-mm-dd HH:MM:SS or integer" error_type_list = "Value '{0}' must be a comma separated list" error_primary_key_update_insert = "Field: 'id' cannot be inserted or modified, field is primary key" error_invalid_field = "Field: '{0}' does not exist choices are {1}" error_non_nullable_field_insert = "Field: '{0}' cannot be null, required fields are: {1}" error_invalid_json = 'Invalid JSON input' error_invalid_filter_option = 'Invalid Filter Option: {0}, valid options are {1}' error_field_out_of_range = "Invalid range for field '{0}', must be between {1} and {2}" success_ok = 'OK' success_row_updated = "Resource with id '{0}' was updated!" success_row_created = "Resource with id '{0}' was created!" success_row_deleted = "Resource with id '{0}' was deleted!" class Crudconfig(object): collection_max_results_per_page = 100 filter_options = {'startswith': 'field starts with value', 'contains': 'field contains value', 'lt': 'field is less than value', 'lte': 'field is less than or equal to value', 'gt': 'field is greater than value', 'gte': 'field is greater than or equal to value', 'null': 'field is null', '=': 'field is equal to value', 'in': 'field is in list', 'notin': 'field is not in list'} response_messages = response_messages() class Crudshortcuts(object): def __init__(self, model): self.table_name = model._meta.db_table self.model = model @property def primary_key(self): for (key, value) in self.fields.items(): if value.primary_key: return key @property def primary_key_type(self): pk_field = self.fields.get(self.primary_key).get_column_type() column_type = pk_field.replace(' ', '') column_type = column_type.replace('AUTO_INCREMENT', '') types = {'INTEGER': 'int', 'SERIAL': 'int', 'VARCHAR': 'str'} return types.get(column_type, None) @property def base_uri(self): return '/{}'.format(self.table_name) @property def required_fields(self): required_fields = [] for (field, field_object) in self.editable_fields.items(): if not field_object.null: required_fields.append(field) return required_fields @property def editable_fields(self): fields = {} for (key, value) in self.model._meta.fields.items(): if self.primary_key == key: continue fields[key] = value return fields @property def fields(self): fields = {} for (key, value) in self.model._meta.fields.items(): fields[key] = value return fields
# # PySNMP MIB module BAY-STACK-RADIUS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BAY-STACK-RADIUS-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:36:14 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, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection") InetAddress, InetPortNumber, InetAddressType = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddress", "InetPortNumber", "InetAddressType") radiusDynAuthClientEntry, = mibBuilder.importSymbols("RADIUS-DYNAUTH-SERVER-MIB", "radiusDynAuthClientEntry") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Counter64, Counter32, TimeTicks, MibIdentifier, ModuleIdentity, NotificationType, iso, ObjectIdentity, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Unsigned32, Gauge32, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "Counter32", "TimeTicks", "MibIdentifier", "ModuleIdentity", "NotificationType", "iso", "ObjectIdentity", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Unsigned32", "Gauge32", "Bits") TruthValue, DisplayString, RowStatus, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "DisplayString", "RowStatus", "TextualConvention") bayStackMibs, = mibBuilder.importSymbols("SYNOPTICS-ROOT-MIB", "bayStackMibs") bayStackRadiusMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 45, 5, 21)) bayStackRadiusMib.setRevisions(('2015-07-23 00:00', '2014-10-20 00:00', '2012-03-15 00:00', '2010-10-15 00:00', '2010-10-14 00:00', '2010-09-07 00:00', '2010-02-10 00:00', '2009-10-13 00:00', '2009-05-28 00:00', '2009-04-16 00:00', '2009-03-30 00:00', '2008-10-30 00:00', '2008-05-29 00:00', '2008-03-25 00:00', '2007-04-03 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: bayStackRadiusMib.setRevisionsDescriptions(('Ver 15: Added bsRadiusExtDynAuthClientEntry, bsRadiusDynAuthClientProcessReAuthRequests .', 'Ver 14: Added bsRadiusReachabilityTimeout bsRadiusReachabilityRetry bsRadiusReachabilityBadTimer bsRadiusReachabilityGoodTimer .', 'Ver 13: Added bsRadiusEncapsulationProtocol.', 'Ver 12: Added notification types for reachability up/down.', 'Ver 11: Added additional radius server settings.', 'Ver 10: Added bsRadiusReachabilityUserName and bsRadiusReachabilityPassword.', 'Ver 9: Added bsRadiusReachability.', 'Ver 8: Added bsRadiusDynAuthReplayProtection.', 'Ver 7: Added bsRadiusAccountingInterimUpdatesIntervalSource.', 'Ver 6: Added bsRadiusDynAuthClientReplayProtection Added bsRadiusAccountingInterimUpdates and bsRadiusAccountingInterimUpdatesInterval.', 'Ver 5: Added bsRadiusAccountingEnabled, bsRadiusPasswordFallbackEnabled, bsRadiusAccountingPort', 'Ver 4: Added bsRadiusUseMgmtIp.', 'Ver 3: Changes based on RFC 5176.', 'Ver 2: Added support for RADIUS requests servers.', 'Ver 1: Initial version.',)) if mibBuilder.loadTexts: bayStackRadiusMib.setLastUpdated('201507230000Z') if mibBuilder.loadTexts: bayStackRadiusMib.setOrganization('Avaya') if mibBuilder.loadTexts: bayStackRadiusMib.setContactInfo('avaya.com') if mibBuilder.loadTexts: bayStackRadiusMib.setDescription("This MIB module is used for RADIUS configuration settings in Nortel's software and products.") bsRadiusNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 45, 5, 21, 0)) bsRadiusObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 45, 5, 21, 1)) bsRadiusScalars = MibIdentifier((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1)) bsRadiusUseMgmtIp = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 1), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusUseMgmtIp.setStatus('current') if mibBuilder.loadTexts: bsRadiusUseMgmtIp.setDescription("This object controls whether RADIUS uses the system's management IP address as the source address for RADIUS requests.") bsRadiusAccountingEnabled = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusAccountingEnabled.setStatus('current') if mibBuilder.loadTexts: bsRadiusAccountingEnabled.setDescription('This object controls whether RADIUS accounting is enabled.') bsRadiusPasswordFallbackEnabled = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusPasswordFallbackEnabled.setStatus('current') if mibBuilder.loadTexts: bsRadiusPasswordFallbackEnabled.setDescription('This object controls whether RADIUS password fallback is enabled.') bsRadiusAccountingPort = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 4), InetPortNumber().clone(1813)).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusAccountingPort.setStatus('current') if mibBuilder.loadTexts: bsRadiusAccountingPort.setDescription('This object controls the port used for RADIUS accounting.') bsRadiusAccountingInterimUpdates = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusAccountingInterimUpdates.setStatus('current') if mibBuilder.loadTexts: bsRadiusAccountingInterimUpdates.setDescription('This object controls whether RADIUS interim updates are enabled or disabled.') bsRadiusAccountingInterimUpdatesInterval = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 6), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(60, 3600), )).clone(60)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusAccountingInterimUpdatesInterval.setStatus('current') if mibBuilder.loadTexts: bsRadiusAccountingInterimUpdatesInterval.setDescription('This object controls the interval for RADIUS interim updates.') bsRadiusAccountingInterimUpdatesIntervalSource = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("configuredValue", 1), ("radiusServer", 2))).clone('configuredValue')).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusAccountingInterimUpdatesIntervalSource.setStatus('current') if mibBuilder.loadTexts: bsRadiusAccountingInterimUpdatesIntervalSource.setDescription('This object controls the source for the interval value for RADIUS interim updates. If the value is configuredValue(1), then the value of bsRadiusAccountingInterimUpdatesInterval is used. If the value is radiusServer(2), then a value obtained from the RADIUS server is used.') bsRadiusDynAuthReplayProtection = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 8), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusDynAuthReplayProtection.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthReplayProtection.setDescription('Globally enable or disable RADIUS replay protection.') bsRadiusReachability = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("useRadius", 1), ("useIcmp", 2))).clone('useIcmp')).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusReachability.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachability.setDescription('Select the method used to test RADIUS server reachablity.') bsRadiusReachabilityUserName = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 16)).clone('avaya')).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusReachabilityUserName.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityUserName.setDescription('The username used for the RADIUS server reachability useRadius option.') bsRadiusReachabilityPassword = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 16)).clone('avaya')).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusReachabilityPassword.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityPassword.setDescription('The password used for the RADIUS server reachability useRadius option.') bsRadiusEncapsulationProtocol = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("pap", 1), ("ms-chap-v2", 2))).clone('pap')).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusEncapsulationProtocol.setStatus('current') if mibBuilder.loadTexts: bsRadiusEncapsulationProtocol.setDescription('This object specifies the type of encapsulation for RADIUS packets.') bsRadiusReachabilityTimeout = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 60)).clone(2)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusReachabilityTimeout.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityTimeout.setDescription('This object specifies the time interval to wait before re-sending a message to the RADIUS server .') bsRadiusReachabilityRetry = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 5)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusReachabilityRetry.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityRetry.setDescription('This object specifies the number of retry attempts to reach the RADIUS server.') bsRadiusReachabilityBadTimer = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(30, 600)).clone(60)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusReachabilityBadTimer.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityBadTimer.setDescription('This object specifies the interval between checks when the RADIUS server is unreachable.') bsRadiusReachabilityGoodTimer = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(30, 600)).clone(180)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusReachabilityGoodTimer.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityGoodTimer.setDescription('This object specifies the interval between checks when the RADIUS server is reachable.') bsRadiusServerTable = MibTable((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2), ) if mibBuilder.loadTexts: bsRadiusServerTable.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerTable.setDescription('This table is used to control RADIUS server settings.') bsRadiusServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1), ).setIndexNames((0, "BAY-STACK-RADIUS-MIB", "bsRadiusServerIndex")) if mibBuilder.loadTexts: bsRadiusServerEntry.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerEntry.setDescription('An entry containing objects defining how to connect to a RADIUS server.') bsRadiusServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: bsRadiusServerIndex.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerIndex.setDescription('A unique integer value used to identify entries in this table.') bsRadiusServerPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusServerPriority.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerPriority.setDescription('This value indicates the order in which entries in this table are used when attempting to contact a RADIUS server. Entries with a lower priority number are tried first. If two entries have the same priority value, the entry with a lower index value is tried first. Also note that entries which contain an invalid internet address will not be used.') bsRadiusServerAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 3), InetAddressType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusServerAddressType.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerAddressType.setDescription('The type of address contained in the corresponding instance of bsRadiusServerAddress.') bsRadiusServerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 4), InetAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusServerAddress.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerAddress.setDescription('The internet address to use when attempting to contact a RADIUS server.') bsRadiusServerUdpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 5), InetPortNumber()).setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusServerUdpPort.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerUdpPort.setDescription('The UDP port number to use when trying to contact the RADIUS server at the address contained in the corresponding instance of bsRadiusServerAddress.') bsRadiusServerTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 6), Integer32()).setUnits('seconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusServerTimeout.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerTimeout.setDescription('The time interval to wait before re-sending a message to this RADIUS server.') bsRadiusServerSecret = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusServerSecret.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerSecret.setDescription('The shared RADIUS secret to use when communicating with the RADIUS server. Note that when this object is retrieved, its value will always by a zero-length octet string.') bsRadiusServerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 8), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusServerRowStatus.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerRowStatus.setDescription('Controls row creation/deletion in this table.') bsRadiusServerAccountingPort = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 9), InetPortNumber()).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusServerAccountingPort.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerAccountingPort.setDescription('The UDP accounting port number to use when trying to contact the RADIUS server at the address contained in the corresponding instance of bsRadiusServerAddress.') bsRadiusServerAccountingEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 10), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusServerAccountingEnabled.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerAccountingEnabled.setDescription('This object controls whether RADIUS accounting is enabled for this RADIUS server instance.') bsRadiusServerRetryLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 5)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: bsRadiusServerRetryLimit.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerRetryLimit.setDescription('This object specifies the number of RADIUS retry attempts, for this RADIUS server instance.') bsRadiusDynAuthClientTable = MibTable((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3), ) if mibBuilder.loadTexts: bsRadiusDynAuthClientTable.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientTable.setDescription('This table is used to configure RADIUS Dynamic Authorization Clients. RADIUS Dynamic Authorization Clients are entities which can send Disconnect and Change Of Authorization requests to a RADIUS Dynamic Authorization Server.') bsRadiusDynAuthClientEntry = MibTableRow((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1), ).setIndexNames((0, "BAY-STACK-RADIUS-MIB", "bsRadiusDynAuthClientAddressType"), (0, "BAY-STACK-RADIUS-MIB", "bsRadiusDynAuthClientAddress")) if mibBuilder.loadTexts: bsRadiusDynAuthClientEntry.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientEntry.setDescription('An entry containing objects defining RADIUS Dynamic Authorization Clients which can connect to this RADIUS Dynamic Authorization Server.') bsRadiusDynAuthClientAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 1), InetAddressType()) if mibBuilder.loadTexts: bsRadiusDynAuthClientAddressType.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientAddressType.setDescription('The type of address contained in the corresponding instance of bsRadiusDynAuthClientAddress.') bsRadiusDynAuthClientAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 2), InetAddress().subtype(subtypeSpec=ValueSizeConstraint(0, 113))) if mibBuilder.loadTexts: bsRadiusDynAuthClientAddress.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientAddress.setDescription('The internet address of a RADIUS Dynamic Authorization Client configured in this entry.') bsRadiusDynAuthClientUdpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 3), InetPortNumber().clone(3799)).setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusDynAuthClientUdpPort.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientUdpPort.setDescription('The UDP port number the server/NAS listens on for requests from the RADIUS Dynamic Authorization Client configured in this entry.') bsRadiusDynAuthClientSecret = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 16)).clone(hexValue="")).setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusDynAuthClientSecret.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientSecret.setDescription('The secret shared between RADIUS Dynamic Authorization Client and Server. Note that when this object is retrieved, its value will always by a zero-length octet string.') bsRadiusDynAuthClientEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 5), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusDynAuthClientEnabled.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientEnabled.setDescription('Enable or disable packet receive from this RADIUS Dynamic Authorization Client. The NAS will not listen for requests from the client unless this object is true(1).') bsRadiusDynAuthClientProcessDisconnectRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 6), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusDynAuthClientProcessDisconnectRequests.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientProcessDisconnectRequests.setDescription('Enable or disable processing of Disconnect requests from the RADIUS Dynamic Authorization Client.') bsRadiusDynAuthClientProcessCoARequests = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 7), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusDynAuthClientProcessCoARequests.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientProcessCoARequests.setDescription('Enable or disable processing of Change-Of-Authorization requests from the RADIUS Dynamic Authorization Client.') bsRadiusDynAuthClientRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 8), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusDynAuthClientRowStatus.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientRowStatus.setDescription('Controls row creation/deletion in this table.') bsRadiusDynAuthClientReplayProtection = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 9), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusDynAuthClientReplayProtection.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientReplayProtection.setDescription('Enable or disable RADIUS replay protection.') bsRadiusDynAuthClientProcessReAuthRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 10), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: bsRadiusDynAuthClientProcessReAuthRequests.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientProcessReAuthRequests.setDescription('Enable or disable the processing of Reauthentication requests from the RADIUS Dynamic Authorization Client.') bsRadiusExtDynAuthClientTable = MibTable((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4), ) if mibBuilder.loadTexts: bsRadiusExtDynAuthClientTable.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthClientTable.setDescription('The (conceptual) table listing the RADIUS Dynamic Authorization Clients with which the server shares a secret. This is an extension of radiusDynAuthClientTable.') bsRadiusExtDynAuthClientEntry = MibTableRow((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1), ) radiusDynAuthClientEntry.registerAugmentions(("BAY-STACK-RADIUS-MIB", "bsRadiusExtDynAuthClientEntry")) bsRadiusExtDynAuthClientEntry.setIndexNames(*radiusDynAuthClientEntry.getIndexNames()) if mibBuilder.loadTexts: bsRadiusExtDynAuthClientEntry.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthClientEntry.setDescription('An entry (conceptual row) representing one Dynamic Authorization Client with which the server shares a secret.') bsRadiusExtDynAuthServRcRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 1), Counter32()).setUnits('requests').setMaxAccess("readonly") if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcRequests.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcRequests.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcRequests.setDescription("The number of RADIUS Reauthentication-requests received from this Dynamic Authorization Client. This also includes the Reauthentication requests that have a Service-Type attribute with value 'Authorize Only'. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.") bsRadiusExtDynAuthServRcAuthOnlyRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 2), Counter32()).setUnits('requests').setMaxAccess("readonly") if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcAuthOnlyRequests.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcAuthOnlyRequests.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcAuthOnlyRequests.setDescription("The number of RADIUS Reauthentication-requests that include a Service-Type attribute with value 'Authorize Only' received from this Dynamic Authorization Client. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.") bsRadiusExtDynAuthServRcDupRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 3), Counter32()).setUnits('requests').setMaxAccess("readonly") if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcDupRequests.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcDupRequests.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcDupRequests.setDescription('The number of duplicate RADIUS Reauthentication-Request packets received from this Dynamic Authorization Client. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.') bsRadiusExtDynAuthServRcAcks = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 4), Counter32()).setUnits('requests').setMaxAccess("readonly") if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcAcks.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcAcks.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcAcks.setDescription('The number of incoming Reauthentication packets from this Dynamic Authorization Client silently discarded by the server application for some reason other than malformed, bad authenticators, or unknown types. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.') bsRadiusExtDynAuthServRcNacks = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 5), Counter32()).setUnits('requests').setMaxAccess("readonly") if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacks.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacks.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacks.setDescription("The number of RADIUS Reauthentication-NAK packets sent to this Dynamic Authorization Client. This includes the RADIUS Reauthentication-NAK packets sent with a Service-Type attribute with value 'Authorize Only' and the RADIUS Reauthentication-NAK packets sent because no session context was found. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.") bsRadiusExtDynAuthServRcNacksAuthOnlyRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 6), Counter32()).setUnits('requests').setMaxAccess("readonly") if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacksAuthOnlyRequests.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacksAuthOnlyRequests.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacksAuthOnlyRequests.setDescription("The number of RADIUS Reauthentication-NAK packets that include a Service-Type attribute with value 'Authorize Only' sent to this Dynamic Authorization Client. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.") bsRadiusExtDynAuthServRcNacksNoSess = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 7), Counter32()).setUnits('requests').setMaxAccess("readonly") if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacksNoSess.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacksNoSess.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacksNoSess.setDescription('The number of RADIUS Reauthentication-NAK packets sent to this Dynamic Authorization Client because no session context was found. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.') bsRadiusExtDynAuthServRcSessReauthenticated = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 8), Counter32()).setUnits('requests').setMaxAccess("readonly") if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcSessReauthenticated.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcSessReauthenticated.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcSessReauthenticated.setDescription("The number of user sessions reauthenticated for the Reauthentication-Requests received from this Dynamic Authorization Client. Depending on site- specific policies, a single Reauthentication request can change multiple user sessions' authorization. In cases where this Dynamic Authorization Server has no knowledge of the number of user sessions that are affected by a single request, each such CoA-Request will count as a single affected user session only. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.") bsRadiusExtDynAuthServRcMalformed = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 9), Counter32()).setUnits('requests').setMaxAccess("readonly") if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcMalformed.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcMalformed.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcMalformed.setDescription('The number of malformed RADIUS Reauthentication-Request packets received from this Dynamic Authorization Client. Bad authenticators and unknown types are not included as malformed Reauthentication-Requests. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.') bsRadiusExtDynAuthServRcDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 10), Counter32()).setUnits('requests').setMaxAccess("readonly") if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcDropped.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcDropped.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcDropped.setDescription('The number of incoming Reauthentication packets from this Dynamic Authorization Client silently discarded by the server application for some reason other than malformed, bad authenticators, or unknown types. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.') bsRadiusExtDynAuthServRcBadAuths = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 11), Counter32()).setUnits('requests').setMaxAccess("readonly") if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcBadAuths.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcBadAuths.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcBadAuths.setDescription('The number of RADIUS Reauthentication-Request packets that contained an invalid Authenticator field received from this Dynamic Authorization Client. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.') bsRadiusReachabilityServerDown = NotificationType((1, 3, 6, 1, 4, 1, 45, 5, 21, 0, 1)).setObjects(("BAY-STACK-RADIUS-MIB", "bsRadiusServerAddressType"), ("BAY-STACK-RADIUS-MIB", "bsRadiusServerAddress")) if mibBuilder.loadTexts: bsRadiusReachabilityServerDown.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityServerDown.setDescription('This notification is generated when a Radius server fails to respond to reachability requests.') bsRadiusReachabilityServerUp = NotificationType((1, 3, 6, 1, 4, 1, 45, 5, 21, 0, 2)).setObjects(("BAY-STACK-RADIUS-MIB", "bsRadiusServerAddressType"), ("BAY-STACK-RADIUS-MIB", "bsRadiusServerAddress")) if mibBuilder.loadTexts: bsRadiusReachabilityServerUp.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityServerUp.setDescription('This notification is generated when a Radius server, which has previously failed to respond to reachability requests, responds to a reachability request.') mibBuilder.exportSymbols("BAY-STACK-RADIUS-MIB", bsRadiusDynAuthClientSecret=bsRadiusDynAuthClientSecret, bsRadiusDynAuthClientProcessCoARequests=bsRadiusDynAuthClientProcessCoARequests, bsRadiusDynAuthClientReplayProtection=bsRadiusDynAuthClientReplayProtection, bsRadiusReachabilityRetry=bsRadiusReachabilityRetry, bsRadiusServerSecret=bsRadiusServerSecret, bsRadiusExtDynAuthServRcNacksAuthOnlyRequests=bsRadiusExtDynAuthServRcNacksAuthOnlyRequests, bsRadiusAccountingEnabled=bsRadiusAccountingEnabled, bsRadiusReachabilityPassword=bsRadiusReachabilityPassword, bsRadiusServerEntry=bsRadiusServerEntry, bayStackRadiusMib=bayStackRadiusMib, bsRadiusExtDynAuthServRcNacksNoSess=bsRadiusExtDynAuthServRcNacksNoSess, bsRadiusServerAccountingEnabled=bsRadiusServerAccountingEnabled, bsRadiusDynAuthClientTable=bsRadiusDynAuthClientTable, bsRadiusExtDynAuthServRcRequests=bsRadiusExtDynAuthServRcRequests, bsRadiusReachabilityTimeout=bsRadiusReachabilityTimeout, bsRadiusServerUdpPort=bsRadiusServerUdpPort, bsRadiusReachability=bsRadiusReachability, bsRadiusExtDynAuthServRcAuthOnlyRequests=bsRadiusExtDynAuthServRcAuthOnlyRequests, bsRadiusDynAuthClientEntry=bsRadiusDynAuthClientEntry, bsRadiusReachabilityUserName=bsRadiusReachabilityUserName, bsRadiusReachabilityServerUp=bsRadiusReachabilityServerUp, bsRadiusServerRowStatus=bsRadiusServerRowStatus, bsRadiusDynAuthClientProcessReAuthRequests=bsRadiusDynAuthClientProcessReAuthRequests, bsRadiusExtDynAuthServRcMalformed=bsRadiusExtDynAuthServRcMalformed, bsRadiusExtDynAuthServRcSessReauthenticated=bsRadiusExtDynAuthServRcSessReauthenticated, bsRadiusServerTimeout=bsRadiusServerTimeout, bsRadiusServerRetryLimit=bsRadiusServerRetryLimit, bsRadiusExtDynAuthServRcAcks=bsRadiusExtDynAuthServRcAcks, bsRadiusObjects=bsRadiusObjects, bsRadiusEncapsulationProtocol=bsRadiusEncapsulationProtocol, bsRadiusServerAddress=bsRadiusServerAddress, bsRadiusDynAuthClientProcessDisconnectRequests=bsRadiusDynAuthClientProcessDisconnectRequests, bsRadiusScalars=bsRadiusScalars, bsRadiusExtDynAuthServRcDropped=bsRadiusExtDynAuthServRcDropped, bsRadiusAccountingInterimUpdates=bsRadiusAccountingInterimUpdates, bsRadiusAccountingInterimUpdatesIntervalSource=bsRadiusAccountingInterimUpdatesIntervalSource, bsRadiusExtDynAuthServRcNacks=bsRadiusExtDynAuthServRcNacks, bsRadiusDynAuthReplayProtection=bsRadiusDynAuthReplayProtection, bsRadiusExtDynAuthServRcBadAuths=bsRadiusExtDynAuthServRcBadAuths, bsRadiusDynAuthClientAddressType=bsRadiusDynAuthClientAddressType, bsRadiusReachabilityServerDown=bsRadiusReachabilityServerDown, bsRadiusExtDynAuthServRcDupRequests=bsRadiusExtDynAuthServRcDupRequests, bsRadiusAccountingPort=bsRadiusAccountingPort, bsRadiusPasswordFallbackEnabled=bsRadiusPasswordFallbackEnabled, bsRadiusDynAuthClientEnabled=bsRadiusDynAuthClientEnabled, bsRadiusExtDynAuthClientTable=bsRadiusExtDynAuthClientTable, bsRadiusExtDynAuthClientEntry=bsRadiusExtDynAuthClientEntry, bsRadiusNotifications=bsRadiusNotifications, bsRadiusDynAuthClientUdpPort=bsRadiusDynAuthClientUdpPort, bsRadiusServerTable=bsRadiusServerTable, bsRadiusServerPriority=bsRadiusServerPriority, bsRadiusServerAddressType=bsRadiusServerAddressType, bsRadiusDynAuthClientAddress=bsRadiusDynAuthClientAddress, bsRadiusUseMgmtIp=bsRadiusUseMgmtIp, bsRadiusDynAuthClientRowStatus=bsRadiusDynAuthClientRowStatus, bsRadiusReachabilityBadTimer=bsRadiusReachabilityBadTimer, bsRadiusServerAccountingPort=bsRadiusServerAccountingPort, bsRadiusAccountingInterimUpdatesInterval=bsRadiusAccountingInterimUpdatesInterval, bsRadiusServerIndex=bsRadiusServerIndex, PYSNMP_MODULE_ID=bayStackRadiusMib, bsRadiusReachabilityGoodTimer=bsRadiusReachabilityGoodTimer)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_size_constraint, single_value_constraint, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection') (inet_address, inet_port_number, inet_address_type) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddress', 'InetPortNumber', 'InetAddressType') (radius_dyn_auth_client_entry,) = mibBuilder.importSymbols('RADIUS-DYNAUTH-SERVER-MIB', 'radiusDynAuthClientEntry') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (counter64, counter32, time_ticks, mib_identifier, module_identity, notification_type, iso, object_identity, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, unsigned32, gauge32, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'Counter32', 'TimeTicks', 'MibIdentifier', 'ModuleIdentity', 'NotificationType', 'iso', 'ObjectIdentity', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'Unsigned32', 'Gauge32', 'Bits') (truth_value, display_string, row_status, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'DisplayString', 'RowStatus', 'TextualConvention') (bay_stack_mibs,) = mibBuilder.importSymbols('SYNOPTICS-ROOT-MIB', 'bayStackMibs') bay_stack_radius_mib = module_identity((1, 3, 6, 1, 4, 1, 45, 5, 21)) bayStackRadiusMib.setRevisions(('2015-07-23 00:00', '2014-10-20 00:00', '2012-03-15 00:00', '2010-10-15 00:00', '2010-10-14 00:00', '2010-09-07 00:00', '2010-02-10 00:00', '2009-10-13 00:00', '2009-05-28 00:00', '2009-04-16 00:00', '2009-03-30 00:00', '2008-10-30 00:00', '2008-05-29 00:00', '2008-03-25 00:00', '2007-04-03 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: bayStackRadiusMib.setRevisionsDescriptions(('Ver 15: Added bsRadiusExtDynAuthClientEntry, bsRadiusDynAuthClientProcessReAuthRequests .', 'Ver 14: Added bsRadiusReachabilityTimeout bsRadiusReachabilityRetry bsRadiusReachabilityBadTimer bsRadiusReachabilityGoodTimer .', 'Ver 13: Added bsRadiusEncapsulationProtocol.', 'Ver 12: Added notification types for reachability up/down.', 'Ver 11: Added additional radius server settings.', 'Ver 10: Added bsRadiusReachabilityUserName and bsRadiusReachabilityPassword.', 'Ver 9: Added bsRadiusReachability.', 'Ver 8: Added bsRadiusDynAuthReplayProtection.', 'Ver 7: Added bsRadiusAccountingInterimUpdatesIntervalSource.', 'Ver 6: Added bsRadiusDynAuthClientReplayProtection Added bsRadiusAccountingInterimUpdates and bsRadiusAccountingInterimUpdatesInterval.', 'Ver 5: Added bsRadiusAccountingEnabled, bsRadiusPasswordFallbackEnabled, bsRadiusAccountingPort', 'Ver 4: Added bsRadiusUseMgmtIp.', 'Ver 3: Changes based on RFC 5176.', 'Ver 2: Added support for RADIUS requests servers.', 'Ver 1: Initial version.')) if mibBuilder.loadTexts: bayStackRadiusMib.setLastUpdated('201507230000Z') if mibBuilder.loadTexts: bayStackRadiusMib.setOrganization('Avaya') if mibBuilder.loadTexts: bayStackRadiusMib.setContactInfo('avaya.com') if mibBuilder.loadTexts: bayStackRadiusMib.setDescription("This MIB module is used for RADIUS configuration settings in Nortel's software and products.") bs_radius_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 45, 5, 21, 0)) bs_radius_objects = mib_identifier((1, 3, 6, 1, 4, 1, 45, 5, 21, 1)) bs_radius_scalars = mib_identifier((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1)) bs_radius_use_mgmt_ip = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 1), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusUseMgmtIp.setStatus('current') if mibBuilder.loadTexts: bsRadiusUseMgmtIp.setDescription("This object controls whether RADIUS uses the system's management IP address as the source address for RADIUS requests.") bs_radius_accounting_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 2), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusAccountingEnabled.setStatus('current') if mibBuilder.loadTexts: bsRadiusAccountingEnabled.setDescription('This object controls whether RADIUS accounting is enabled.') bs_radius_password_fallback_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 3), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusPasswordFallbackEnabled.setStatus('current') if mibBuilder.loadTexts: bsRadiusPasswordFallbackEnabled.setDescription('This object controls whether RADIUS password fallback is enabled.') bs_radius_accounting_port = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 4), inet_port_number().clone(1813)).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusAccountingPort.setStatus('current') if mibBuilder.loadTexts: bsRadiusAccountingPort.setDescription('This object controls the port used for RADIUS accounting.') bs_radius_accounting_interim_updates = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 5), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusAccountingInterimUpdates.setStatus('current') if mibBuilder.loadTexts: bsRadiusAccountingInterimUpdates.setDescription('This object controls whether RADIUS interim updates are enabled or disabled.') bs_radius_accounting_interim_updates_interval = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 6), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(60, 3600))).clone(60)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusAccountingInterimUpdatesInterval.setStatus('current') if mibBuilder.loadTexts: bsRadiusAccountingInterimUpdatesInterval.setDescription('This object controls the interval for RADIUS interim updates.') bs_radius_accounting_interim_updates_interval_source = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('configuredValue', 1), ('radiusServer', 2))).clone('configuredValue')).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusAccountingInterimUpdatesIntervalSource.setStatus('current') if mibBuilder.loadTexts: bsRadiusAccountingInterimUpdatesIntervalSource.setDescription('This object controls the source for the interval value for RADIUS interim updates. If the value is configuredValue(1), then the value of bsRadiusAccountingInterimUpdatesInterval is used. If the value is radiusServer(2), then a value obtained from the RADIUS server is used.') bs_radius_dyn_auth_replay_protection = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 8), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusDynAuthReplayProtection.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthReplayProtection.setDescription('Globally enable or disable RADIUS replay protection.') bs_radius_reachability = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('useRadius', 1), ('useIcmp', 2))).clone('useIcmp')).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusReachability.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachability.setDescription('Select the method used to test RADIUS server reachablity.') bs_radius_reachability_user_name = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(1, 16)).clone('avaya')).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusReachabilityUserName.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityUserName.setDescription('The username used for the RADIUS server reachability useRadius option.') bs_radius_reachability_password = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 11), display_string().subtype(subtypeSpec=value_size_constraint(1, 16)).clone('avaya')).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusReachabilityPassword.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityPassword.setDescription('The password used for the RADIUS server reachability useRadius option.') bs_radius_encapsulation_protocol = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('pap', 1), ('ms-chap-v2', 2))).clone('pap')).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusEncapsulationProtocol.setStatus('current') if mibBuilder.loadTexts: bsRadiusEncapsulationProtocol.setDescription('This object specifies the type of encapsulation for RADIUS packets.') bs_radius_reachability_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(1, 60)).clone(2)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusReachabilityTimeout.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityTimeout.setDescription('This object specifies the time interval to wait before re-sending a message to the RADIUS server .') bs_radius_reachability_retry = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(1, 5)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusReachabilityRetry.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityRetry.setDescription('This object specifies the number of retry attempts to reach the RADIUS server.') bs_radius_reachability_bad_timer = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(30, 600)).clone(60)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusReachabilityBadTimer.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityBadTimer.setDescription('This object specifies the interval between checks when the RADIUS server is unreachable.') bs_radius_reachability_good_timer = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(30, 600)).clone(180)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusReachabilityGoodTimer.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityGoodTimer.setDescription('This object specifies the interval between checks when the RADIUS server is reachable.') bs_radius_server_table = mib_table((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2)) if mibBuilder.loadTexts: bsRadiusServerTable.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerTable.setDescription('This table is used to control RADIUS server settings.') bs_radius_server_entry = mib_table_row((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1)).setIndexNames((0, 'BAY-STACK-RADIUS-MIB', 'bsRadiusServerIndex')) if mibBuilder.loadTexts: bsRadiusServerEntry.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerEntry.setDescription('An entry containing objects defining how to connect to a RADIUS server.') bs_radius_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: bsRadiusServerIndex.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerIndex.setDescription('A unique integer value used to identify entries in this table.') bs_radius_server_priority = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusServerPriority.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerPriority.setDescription('This value indicates the order in which entries in this table are used when attempting to contact a RADIUS server. Entries with a lower priority number are tried first. If two entries have the same priority value, the entry with a lower index value is tried first. Also note that entries which contain an invalid internet address will not be used.') bs_radius_server_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 3), inet_address_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusServerAddressType.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerAddressType.setDescription('The type of address contained in the corresponding instance of bsRadiusServerAddress.') bs_radius_server_address = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 4), inet_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusServerAddress.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerAddress.setDescription('The internet address to use when attempting to contact a RADIUS server.') bs_radius_server_udp_port = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 5), inet_port_number()).setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusServerUdpPort.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerUdpPort.setDescription('The UDP port number to use when trying to contact the RADIUS server at the address contained in the corresponding instance of bsRadiusServerAddress.') bs_radius_server_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 6), integer32()).setUnits('seconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusServerTimeout.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerTimeout.setDescription('The time interval to wait before re-sending a message to this RADIUS server.') bs_radius_server_secret = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusServerSecret.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerSecret.setDescription('The shared RADIUS secret to use when communicating with the RADIUS server. Note that when this object is retrieved, its value will always by a zero-length octet string.') bs_radius_server_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 8), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusServerRowStatus.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerRowStatus.setDescription('Controls row creation/deletion in this table.') bs_radius_server_accounting_port = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 9), inet_port_number()).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusServerAccountingPort.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerAccountingPort.setDescription('The UDP accounting port number to use when trying to contact the RADIUS server at the address contained in the corresponding instance of bsRadiusServerAddress.') bs_radius_server_accounting_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 10), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusServerAccountingEnabled.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerAccountingEnabled.setDescription('This object controls whether RADIUS accounting is enabled for this RADIUS server instance.') bs_radius_server_retry_limit = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 2, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 5)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: bsRadiusServerRetryLimit.setStatus('current') if mibBuilder.loadTexts: bsRadiusServerRetryLimit.setDescription('This object specifies the number of RADIUS retry attempts, for this RADIUS server instance.') bs_radius_dyn_auth_client_table = mib_table((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3)) if mibBuilder.loadTexts: bsRadiusDynAuthClientTable.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientTable.setDescription('This table is used to configure RADIUS Dynamic Authorization Clients. RADIUS Dynamic Authorization Clients are entities which can send Disconnect and Change Of Authorization requests to a RADIUS Dynamic Authorization Server.') bs_radius_dyn_auth_client_entry = mib_table_row((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1)).setIndexNames((0, 'BAY-STACK-RADIUS-MIB', 'bsRadiusDynAuthClientAddressType'), (0, 'BAY-STACK-RADIUS-MIB', 'bsRadiusDynAuthClientAddress')) if mibBuilder.loadTexts: bsRadiusDynAuthClientEntry.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientEntry.setDescription('An entry containing objects defining RADIUS Dynamic Authorization Clients which can connect to this RADIUS Dynamic Authorization Server.') bs_radius_dyn_auth_client_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 1), inet_address_type()) if mibBuilder.loadTexts: bsRadiusDynAuthClientAddressType.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientAddressType.setDescription('The type of address contained in the corresponding instance of bsRadiusDynAuthClientAddress.') bs_radius_dyn_auth_client_address = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 2), inet_address().subtype(subtypeSpec=value_size_constraint(0, 113))) if mibBuilder.loadTexts: bsRadiusDynAuthClientAddress.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientAddress.setDescription('The internet address of a RADIUS Dynamic Authorization Client configured in this entry.') bs_radius_dyn_auth_client_udp_port = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 3), inet_port_number().clone(3799)).setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusDynAuthClientUdpPort.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientUdpPort.setDescription('The UDP port number the server/NAS listens on for requests from the RADIUS Dynamic Authorization Client configured in this entry.') bs_radius_dyn_auth_client_secret = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 16)).clone(hexValue='')).setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusDynAuthClientSecret.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientSecret.setDescription('The secret shared between RADIUS Dynamic Authorization Client and Server. Note that when this object is retrieved, its value will always by a zero-length octet string.') bs_radius_dyn_auth_client_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 5), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusDynAuthClientEnabled.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientEnabled.setDescription('Enable or disable packet receive from this RADIUS Dynamic Authorization Client. The NAS will not listen for requests from the client unless this object is true(1).') bs_radius_dyn_auth_client_process_disconnect_requests = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 6), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusDynAuthClientProcessDisconnectRequests.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientProcessDisconnectRequests.setDescription('Enable or disable processing of Disconnect requests from the RADIUS Dynamic Authorization Client.') bs_radius_dyn_auth_client_process_co_a_requests = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 7), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusDynAuthClientProcessCoARequests.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientProcessCoARequests.setDescription('Enable or disable processing of Change-Of-Authorization requests from the RADIUS Dynamic Authorization Client.') bs_radius_dyn_auth_client_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 8), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusDynAuthClientRowStatus.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientRowStatus.setDescription('Controls row creation/deletion in this table.') bs_radius_dyn_auth_client_replay_protection = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 9), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusDynAuthClientReplayProtection.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientReplayProtection.setDescription('Enable or disable RADIUS replay protection.') bs_radius_dyn_auth_client_process_re_auth_requests = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 3, 1, 10), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: bsRadiusDynAuthClientProcessReAuthRequests.setStatus('current') if mibBuilder.loadTexts: bsRadiusDynAuthClientProcessReAuthRequests.setDescription('Enable or disable the processing of Reauthentication requests from the RADIUS Dynamic Authorization Client.') bs_radius_ext_dyn_auth_client_table = mib_table((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4)) if mibBuilder.loadTexts: bsRadiusExtDynAuthClientTable.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthClientTable.setDescription('The (conceptual) table listing the RADIUS Dynamic Authorization Clients with which the server shares a secret. This is an extension of radiusDynAuthClientTable.') bs_radius_ext_dyn_auth_client_entry = mib_table_row((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1)) radiusDynAuthClientEntry.registerAugmentions(('BAY-STACK-RADIUS-MIB', 'bsRadiusExtDynAuthClientEntry')) bsRadiusExtDynAuthClientEntry.setIndexNames(*radiusDynAuthClientEntry.getIndexNames()) if mibBuilder.loadTexts: bsRadiusExtDynAuthClientEntry.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthClientEntry.setDescription('An entry (conceptual row) representing one Dynamic Authorization Client with which the server shares a secret.') bs_radius_ext_dyn_auth_serv_rc_requests = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 1), counter32()).setUnits('requests').setMaxAccess('readonly') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcRequests.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcRequests.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcRequests.setDescription("The number of RADIUS Reauthentication-requests received from this Dynamic Authorization Client. This also includes the Reauthentication requests that have a Service-Type attribute with value 'Authorize Only'. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.") bs_radius_ext_dyn_auth_serv_rc_auth_only_requests = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 2), counter32()).setUnits('requests').setMaxAccess('readonly') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcAuthOnlyRequests.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcAuthOnlyRequests.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcAuthOnlyRequests.setDescription("The number of RADIUS Reauthentication-requests that include a Service-Type attribute with value 'Authorize Only' received from this Dynamic Authorization Client. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.") bs_radius_ext_dyn_auth_serv_rc_dup_requests = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 3), counter32()).setUnits('requests').setMaxAccess('readonly') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcDupRequests.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcDupRequests.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcDupRequests.setDescription('The number of duplicate RADIUS Reauthentication-Request packets received from this Dynamic Authorization Client. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.') bs_radius_ext_dyn_auth_serv_rc_acks = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 4), counter32()).setUnits('requests').setMaxAccess('readonly') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcAcks.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcAcks.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcAcks.setDescription('The number of incoming Reauthentication packets from this Dynamic Authorization Client silently discarded by the server application for some reason other than malformed, bad authenticators, or unknown types. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.') bs_radius_ext_dyn_auth_serv_rc_nacks = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 5), counter32()).setUnits('requests').setMaxAccess('readonly') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacks.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacks.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacks.setDescription("The number of RADIUS Reauthentication-NAK packets sent to this Dynamic Authorization Client. This includes the RADIUS Reauthentication-NAK packets sent with a Service-Type attribute with value 'Authorize Only' and the RADIUS Reauthentication-NAK packets sent because no session context was found. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.") bs_radius_ext_dyn_auth_serv_rc_nacks_auth_only_requests = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 6), counter32()).setUnits('requests').setMaxAccess('readonly') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacksAuthOnlyRequests.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacksAuthOnlyRequests.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacksAuthOnlyRequests.setDescription("The number of RADIUS Reauthentication-NAK packets that include a Service-Type attribute with value 'Authorize Only' sent to this Dynamic Authorization Client. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.") bs_radius_ext_dyn_auth_serv_rc_nacks_no_sess = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 7), counter32()).setUnits('requests').setMaxAccess('readonly') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacksNoSess.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacksNoSess.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcNacksNoSess.setDescription('The number of RADIUS Reauthentication-NAK packets sent to this Dynamic Authorization Client because no session context was found. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.') bs_radius_ext_dyn_auth_serv_rc_sess_reauthenticated = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 8), counter32()).setUnits('requests').setMaxAccess('readonly') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcSessReauthenticated.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcSessReauthenticated.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcSessReauthenticated.setDescription("The number of user sessions reauthenticated for the Reauthentication-Requests received from this Dynamic Authorization Client. Depending on site- specific policies, a single Reauthentication request can change multiple user sessions' authorization. In cases where this Dynamic Authorization Server has no knowledge of the number of user sessions that are affected by a single request, each such CoA-Request will count as a single affected user session only. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.") bs_radius_ext_dyn_auth_serv_rc_malformed = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 9), counter32()).setUnits('requests').setMaxAccess('readonly') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcMalformed.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcMalformed.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcMalformed.setDescription('The number of malformed RADIUS Reauthentication-Request packets received from this Dynamic Authorization Client. Bad authenticators and unknown types are not included as malformed Reauthentication-Requests. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.') bs_radius_ext_dyn_auth_serv_rc_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 10), counter32()).setUnits('requests').setMaxAccess('readonly') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcDropped.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcDropped.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcDropped.setDescription('The number of incoming Reauthentication packets from this Dynamic Authorization Client silently discarded by the server application for some reason other than malformed, bad authenticators, or unknown types. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.') bs_radius_ext_dyn_auth_serv_rc_bad_auths = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 21, 1, 4, 1, 11), counter32()).setUnits('requests').setMaxAccess('readonly') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcBadAuths.setReference('Reauthentication extension for RFC3576 .') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcBadAuths.setStatus('current') if mibBuilder.loadTexts: bsRadiusExtDynAuthServRcBadAuths.setDescription('The number of RADIUS Reauthentication-Request packets that contained an invalid Authenticator field received from this Dynamic Authorization Client. This counter may experience a discontinuity when the DAS module (re)starts, as indicated by the value of radiusDynAuthServerCounterDiscontinuity.') bs_radius_reachability_server_down = notification_type((1, 3, 6, 1, 4, 1, 45, 5, 21, 0, 1)).setObjects(('BAY-STACK-RADIUS-MIB', 'bsRadiusServerAddressType'), ('BAY-STACK-RADIUS-MIB', 'bsRadiusServerAddress')) if mibBuilder.loadTexts: bsRadiusReachabilityServerDown.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityServerDown.setDescription('This notification is generated when a Radius server fails to respond to reachability requests.') bs_radius_reachability_server_up = notification_type((1, 3, 6, 1, 4, 1, 45, 5, 21, 0, 2)).setObjects(('BAY-STACK-RADIUS-MIB', 'bsRadiusServerAddressType'), ('BAY-STACK-RADIUS-MIB', 'bsRadiusServerAddress')) if mibBuilder.loadTexts: bsRadiusReachabilityServerUp.setStatus('current') if mibBuilder.loadTexts: bsRadiusReachabilityServerUp.setDescription('This notification is generated when a Radius server, which has previously failed to respond to reachability requests, responds to a reachability request.') mibBuilder.exportSymbols('BAY-STACK-RADIUS-MIB', bsRadiusDynAuthClientSecret=bsRadiusDynAuthClientSecret, bsRadiusDynAuthClientProcessCoARequests=bsRadiusDynAuthClientProcessCoARequests, bsRadiusDynAuthClientReplayProtection=bsRadiusDynAuthClientReplayProtection, bsRadiusReachabilityRetry=bsRadiusReachabilityRetry, bsRadiusServerSecret=bsRadiusServerSecret, bsRadiusExtDynAuthServRcNacksAuthOnlyRequests=bsRadiusExtDynAuthServRcNacksAuthOnlyRequests, bsRadiusAccountingEnabled=bsRadiusAccountingEnabled, bsRadiusReachabilityPassword=bsRadiusReachabilityPassword, bsRadiusServerEntry=bsRadiusServerEntry, bayStackRadiusMib=bayStackRadiusMib, bsRadiusExtDynAuthServRcNacksNoSess=bsRadiusExtDynAuthServRcNacksNoSess, bsRadiusServerAccountingEnabled=bsRadiusServerAccountingEnabled, bsRadiusDynAuthClientTable=bsRadiusDynAuthClientTable, bsRadiusExtDynAuthServRcRequests=bsRadiusExtDynAuthServRcRequests, bsRadiusReachabilityTimeout=bsRadiusReachabilityTimeout, bsRadiusServerUdpPort=bsRadiusServerUdpPort, bsRadiusReachability=bsRadiusReachability, bsRadiusExtDynAuthServRcAuthOnlyRequests=bsRadiusExtDynAuthServRcAuthOnlyRequests, bsRadiusDynAuthClientEntry=bsRadiusDynAuthClientEntry, bsRadiusReachabilityUserName=bsRadiusReachabilityUserName, bsRadiusReachabilityServerUp=bsRadiusReachabilityServerUp, bsRadiusServerRowStatus=bsRadiusServerRowStatus, bsRadiusDynAuthClientProcessReAuthRequests=bsRadiusDynAuthClientProcessReAuthRequests, bsRadiusExtDynAuthServRcMalformed=bsRadiusExtDynAuthServRcMalformed, bsRadiusExtDynAuthServRcSessReauthenticated=bsRadiusExtDynAuthServRcSessReauthenticated, bsRadiusServerTimeout=bsRadiusServerTimeout, bsRadiusServerRetryLimit=bsRadiusServerRetryLimit, bsRadiusExtDynAuthServRcAcks=bsRadiusExtDynAuthServRcAcks, bsRadiusObjects=bsRadiusObjects, bsRadiusEncapsulationProtocol=bsRadiusEncapsulationProtocol, bsRadiusServerAddress=bsRadiusServerAddress, bsRadiusDynAuthClientProcessDisconnectRequests=bsRadiusDynAuthClientProcessDisconnectRequests, bsRadiusScalars=bsRadiusScalars, bsRadiusExtDynAuthServRcDropped=bsRadiusExtDynAuthServRcDropped, bsRadiusAccountingInterimUpdates=bsRadiusAccountingInterimUpdates, bsRadiusAccountingInterimUpdatesIntervalSource=bsRadiusAccountingInterimUpdatesIntervalSource, bsRadiusExtDynAuthServRcNacks=bsRadiusExtDynAuthServRcNacks, bsRadiusDynAuthReplayProtection=bsRadiusDynAuthReplayProtection, bsRadiusExtDynAuthServRcBadAuths=bsRadiusExtDynAuthServRcBadAuths, bsRadiusDynAuthClientAddressType=bsRadiusDynAuthClientAddressType, bsRadiusReachabilityServerDown=bsRadiusReachabilityServerDown, bsRadiusExtDynAuthServRcDupRequests=bsRadiusExtDynAuthServRcDupRequests, bsRadiusAccountingPort=bsRadiusAccountingPort, bsRadiusPasswordFallbackEnabled=bsRadiusPasswordFallbackEnabled, bsRadiusDynAuthClientEnabled=bsRadiusDynAuthClientEnabled, bsRadiusExtDynAuthClientTable=bsRadiusExtDynAuthClientTable, bsRadiusExtDynAuthClientEntry=bsRadiusExtDynAuthClientEntry, bsRadiusNotifications=bsRadiusNotifications, bsRadiusDynAuthClientUdpPort=bsRadiusDynAuthClientUdpPort, bsRadiusServerTable=bsRadiusServerTable, bsRadiusServerPriority=bsRadiusServerPriority, bsRadiusServerAddressType=bsRadiusServerAddressType, bsRadiusDynAuthClientAddress=bsRadiusDynAuthClientAddress, bsRadiusUseMgmtIp=bsRadiusUseMgmtIp, bsRadiusDynAuthClientRowStatus=bsRadiusDynAuthClientRowStatus, bsRadiusReachabilityBadTimer=bsRadiusReachabilityBadTimer, bsRadiusServerAccountingPort=bsRadiusServerAccountingPort, bsRadiusAccountingInterimUpdatesInterval=bsRadiusAccountingInterimUpdatesInterval, bsRadiusServerIndex=bsRadiusServerIndex, PYSNMP_MODULE_ID=bayStackRadiusMib, bsRadiusReachabilityGoodTimer=bsRadiusReachabilityGoodTimer)