content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
class Solution: def firstPalindrome(self, words: List[str]) -> str: def checkPalindrome(word): l = len(word) for i in range(l // 2): last = l - 1 - i if word[i] != word[last]: return False return True for word in words: if checkPalindrome(word): return word return ""
class Solution: def first_palindrome(self, words: List[str]) -> str: def check_palindrome(word): l = len(word) for i in range(l // 2): last = l - 1 - i if word[i] != word[last]: return False return True for word in words: if check_palindrome(word): return word return ''
# import DevsExpo zee5 = "https://userapi.zee5.com/v1/user/loginemail?email={email}&password={password}" nord = "https://zwyr157wwiu6eior.com/v1/users/tokens" vortex = "https://vortex-api.gg/login" vypr = "https://api.goldenfrog.com/settings"
zee5 = 'https://userapi.zee5.com/v1/user/loginemail?email={email}&password={password}' nord = 'https://zwyr157wwiu6eior.com/v1/users/tokens' vortex = 'https://vortex-api.gg/login' vypr = 'https://api.goldenfrog.com/settings'
class Vehicle: def __init__(self, cost): self.cost = cost def description(self): return "Vehicle cost is {}".format(self.cost) car1 = Vehicle(12000) car2 = Vehicle(5999.99) print(car1.description()) print(car2.description())
class Vehicle: def __init__(self, cost): self.cost = cost def description(self): return 'Vehicle cost is {}'.format(self.cost) car1 = vehicle(12000) car2 = vehicle(5999.99) print(car1.description()) print(car2.description())
class Solution: def shortestPath(self, grid: List[List[int]], k: int) -> int: m = len(grid) n = len(grid[0]) if m == 1 and n == 1: return 0 dirs = [0, 1, 0, -1, 0] steps = 0 q = deque([(0, 0, k)]) seen = {(0, 0, k)} while q: steps += 1 for _ in range(len(q)): i, j, r = q.popleft() for l in range(4): x = i + dirs[l] y = j + dirs[l + 1] if x < 0 or x == m or y < 0 or y == n: continue if x == m - 1 and y == n - 1: return steps if grid[x][y] == 1 and r == 0: continue newR = r - grid[x][y] if (x, y, newR) in seen: continue q.append((x, y, newR)) seen.add((x, y, newR)) return -1
class Solution: def shortest_path(self, grid: List[List[int]], k: int) -> int: m = len(grid) n = len(grid[0]) if m == 1 and n == 1: return 0 dirs = [0, 1, 0, -1, 0] steps = 0 q = deque([(0, 0, k)]) seen = {(0, 0, k)} while q: steps += 1 for _ in range(len(q)): (i, j, r) = q.popleft() for l in range(4): x = i + dirs[l] y = j + dirs[l + 1] if x < 0 or x == m or y < 0 or (y == n): continue if x == m - 1 and y == n - 1: return steps if grid[x][y] == 1 and r == 0: continue new_r = r - grid[x][y] if (x, y, newR) in seen: continue q.append((x, y, newR)) seen.add((x, y, newR)) return -1
for i in range(1, 21): for j in range(2, i): if(i % 2 == 0): break else: print(i)
for i in range(1, 21): for j in range(2, i): if i % 2 == 0: break else: print(i)
Totalplyers = int(input("Number of players: ")) Starplayers = 0 for i in range(Totalplyers): Numberofpoints = int(input("Number of goals: ")) Numberoffouls = int(input("Number of fouls: ")) Numberofstars = Numberofpoints * 5 - Numberoffouls * 3 if Numberofstars > 40: Starplayers = Starplayers + 1 if Starplayers == Totalplyers: print(str(Starplayers) + '+') else: print(Starplayers)
totalplyers = int(input('Number of players: ')) starplayers = 0 for i in range(Totalplyers): numberofpoints = int(input('Number of goals: ')) numberoffouls = int(input('Number of fouls: ')) numberofstars = Numberofpoints * 5 - Numberoffouls * 3 if Numberofstars > 40: starplayers = Starplayers + 1 if Starplayers == Totalplyers: print(str(Starplayers) + '+') else: print(Starplayers)
__all__ = () class InfoException(Exception): def __init__(self, info=None): self.info = info or {} super().__init__(self.info) class DeepQMCError(Exception): pass class NanError(DeepQMCError): def __init__(self, rs): super().__init__() self.rs = rs class TrainingBlowup(DeepQMCError): pass class TrainingCrash(DeepQMCError): def __init__(self, state=None, chkpts=None): super().__init__() self.state = state self.chkpts = chkpts class LUFactError(InfoException, DeepQMCError): pass class TomlError(DeepQMCError): pass
__all__ = () class Infoexception(Exception): def __init__(self, info=None): self.info = info or {} super().__init__(self.info) class Deepqmcerror(Exception): pass class Nanerror(DeepQMCError): def __init__(self, rs): super().__init__() self.rs = rs class Trainingblowup(DeepQMCError): pass class Trainingcrash(DeepQMCError): def __init__(self, state=None, chkpts=None): super().__init__() self.state = state self.chkpts = chkpts class Lufacterror(InfoException, DeepQMCError): pass class Tomlerror(DeepQMCError): pass
# # PySNMP MIB module NETSCREEN-VR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NETSCREEN-VR-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:20:42 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint") netscreenVR, = mibBuilder.importSymbols("NETSCREEN-SMI", "netscreenVR") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter32, MibIdentifier, ModuleIdentity, Counter64, NotificationType, Gauge32, IpAddress, Integer32, ObjectIdentity, iso, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "MibIdentifier", "ModuleIdentity", "Counter64", "NotificationType", "Gauge32", "IpAddress", "Integer32", "ObjectIdentity", "iso", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Unsigned32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") netscreenVRMibModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 3224, 18, 0)) netscreenVRMibModule.setRevisions(('2004-05-03 00:00', '2001-09-01 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: netscreenVRMibModule.setRevisionsDescriptions(('Modified copyright and contact information', 'Creation Date',)) if mibBuilder.loadTexts: netscreenVRMibModule.setLastUpdated('200405032022Z') if mibBuilder.loadTexts: netscreenVRMibModule.setOrganization('Juniper Networks, Inc.') if mibBuilder.loadTexts: netscreenVRMibModule.setContactInfo('Customer Support 1194 North Mathilda Avenue Sunnyvale, California 94089-1206 USA Tel: 1-800-638-8296 E-mail: customerservice@juniper.net HTTP://www.juniper.net') if mibBuilder.loadTexts: netscreenVRMibModule.setDescription('This module defines the object that are used to monitor VR info') vrTable = MibTable((1, 3, 6, 1, 4, 1, 3224, 18, 1), ) if mibBuilder.loadTexts: vrTable.setStatus('current') if mibBuilder.loadTexts: vrTable.setDescription('VR table. This table contains VR info.') vrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1), ).setIndexNames((0, "NETSCREEN-VR-MIB", "vrId")) if mibBuilder.loadTexts: vrEntry.setStatus('current') if mibBuilder.loadTexts: vrEntry.setDescription("Entry containing information about the BGP's Version, LocalAs and Identifier") vrName = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 1), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrName.setStatus('current') if mibBuilder.loadTexts: vrName.setDescription('Name of the VR.') vrId = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrId.setStatus('current') if mibBuilder.loadTexts: vrId.setDescription('Id for the VR. It will be used in all other private MIBs so that cross reference can be made.') vrVsysName = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 3), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrVsysName.setStatus('current') if mibBuilder.loadTexts: vrVsysName.setDescription('Id of the vsys which owns this VR.') vrRouteId = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrRouteId.setStatus('current') if mibBuilder.loadTexts: vrRouteId.setDescription('Router id, used by OSFP and BGP.') vrMaxRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrMaxRoutes.setStatus('current') if mibBuilder.loadTexts: vrMaxRoutes.setDescription('Maximum routes allowed for this VR.') vrNumRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrNumRoutes.setStatus('current') if mibBuilder.loadTexts: vrNumRoutes.setDescription('The number of routes currently the VR has.') vrSharable = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrSharable.setStatus('current') if mibBuilder.loadTexts: vrSharable.setDescription('The VR is sharable or not.') vrOspfRipBgpEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrOspfRipBgpEnabled.setStatus('current') if mibBuilder.loadTexts: vrOspfRipBgpEnabled.setDescription('Enable OSPF, RIP, BGP.') vrTrapPrivate = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrTrapPrivate.setStatus('current') if mibBuilder.loadTexts: vrTrapPrivate.setDescription("0 private, 1 public. This only applies to root system' default VR. If private trap is enabled, a private trap is sent, otherwise, the standard trap is sent. For other VRs, By default, the public trap is supported.") mibBuilder.exportSymbols("NETSCREEN-VR-MIB", vrName=vrName, vrNumRoutes=vrNumRoutes, vrTable=vrTable, vrOspfRipBgpEnabled=vrOspfRipBgpEnabled, vrTrapPrivate=vrTrapPrivate, vrVsysName=vrVsysName, PYSNMP_MODULE_ID=netscreenVRMibModule, vrSharable=vrSharable, vrEntry=vrEntry, vrRouteId=vrRouteId, netscreenVRMibModule=netscreenVRMibModule, vrMaxRoutes=vrMaxRoutes, vrId=vrId)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, constraints_intersection, value_size_constraint, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint') (netscreen_vr,) = mibBuilder.importSymbols('NETSCREEN-SMI', 'netscreenVR') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (counter32, mib_identifier, module_identity, counter64, notification_type, gauge32, ip_address, integer32, object_identity, iso, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'MibIdentifier', 'ModuleIdentity', 'Counter64', 'NotificationType', 'Gauge32', 'IpAddress', 'Integer32', 'ObjectIdentity', 'iso', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'Unsigned32') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') netscreen_vr_mib_module = module_identity((1, 3, 6, 1, 4, 1, 3224, 18, 0)) netscreenVRMibModule.setRevisions(('2004-05-03 00:00', '2001-09-01 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: netscreenVRMibModule.setRevisionsDescriptions(('Modified copyright and contact information', 'Creation Date')) if mibBuilder.loadTexts: netscreenVRMibModule.setLastUpdated('200405032022Z') if mibBuilder.loadTexts: netscreenVRMibModule.setOrganization('Juniper Networks, Inc.') if mibBuilder.loadTexts: netscreenVRMibModule.setContactInfo('Customer Support 1194 North Mathilda Avenue Sunnyvale, California 94089-1206 USA Tel: 1-800-638-8296 E-mail: customerservice@juniper.net HTTP://www.juniper.net') if mibBuilder.loadTexts: netscreenVRMibModule.setDescription('This module defines the object that are used to monitor VR info') vr_table = mib_table((1, 3, 6, 1, 4, 1, 3224, 18, 1)) if mibBuilder.loadTexts: vrTable.setStatus('current') if mibBuilder.loadTexts: vrTable.setDescription('VR table. This table contains VR info.') vr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1)).setIndexNames((0, 'NETSCREEN-VR-MIB', 'vrId')) if mibBuilder.loadTexts: vrEntry.setStatus('current') if mibBuilder.loadTexts: vrEntry.setDescription("Entry containing information about the BGP's Version, LocalAs and Identifier") vr_name = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 1), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrName.setStatus('current') if mibBuilder.loadTexts: vrName.setDescription('Name of the VR.') vr_id = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrId.setStatus('current') if mibBuilder.loadTexts: vrId.setDescription('Id for the VR. It will be used in all other private MIBs so that cross reference can be made.') vr_vsys_name = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 3), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrVsysName.setStatus('current') if mibBuilder.loadTexts: vrVsysName.setDescription('Id of the vsys which owns this VR.') vr_route_id = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrRouteId.setStatus('current') if mibBuilder.loadTexts: vrRouteId.setDescription('Router id, used by OSFP and BGP.') vr_max_routes = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrMaxRoutes.setStatus('current') if mibBuilder.loadTexts: vrMaxRoutes.setDescription('Maximum routes allowed for this VR.') vr_num_routes = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrNumRoutes.setStatus('current') if mibBuilder.loadTexts: vrNumRoutes.setDescription('The number of routes currently the VR has.') vr_sharable = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrSharable.setStatus('current') if mibBuilder.loadTexts: vrSharable.setDescription('The VR is sharable or not.') vr_ospf_rip_bgp_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrOspfRipBgpEnabled.setStatus('current') if mibBuilder.loadTexts: vrOspfRipBgpEnabled.setDescription('Enable OSPF, RIP, BGP.') vr_trap_private = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 18, 1, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrTrapPrivate.setStatus('current') if mibBuilder.loadTexts: vrTrapPrivate.setDescription("0 private, 1 public. This only applies to root system' default VR. If private trap is enabled, a private trap is sent, otherwise, the standard trap is sent. For other VRs, By default, the public trap is supported.") mibBuilder.exportSymbols('NETSCREEN-VR-MIB', vrName=vrName, vrNumRoutes=vrNumRoutes, vrTable=vrTable, vrOspfRipBgpEnabled=vrOspfRipBgpEnabled, vrTrapPrivate=vrTrapPrivate, vrVsysName=vrVsysName, PYSNMP_MODULE_ID=netscreenVRMibModule, vrSharable=vrSharable, vrEntry=vrEntry, vrRouteId=vrRouteId, netscreenVRMibModule=netscreenVRMibModule, vrMaxRoutes=vrMaxRoutes, vrId=vrId)
pasword = '123456' username = 'kamilklkn' a,b,c,d = 5,5,10,4 result = (a==b) #True result = (a == c) #False result = ('sdktrn' == username) result = (a != b) result = (a != c) result = (a >= b) result = (True == 1) result = (False == 1) print(result)
pasword = '123456' username = 'kamilklkn' (a, b, c, d) = (5, 5, 10, 4) result = a == b result = a == c result = 'sdktrn' == username result = a != b result = a != c result = a >= b result = True == 1 result = False == 1 print(result)
__title__ = 'sellsy_api' __description__ = 'sellsy_api is a tiny client for Sellsy API' __url__ = 'https://github.com/Annouar/sellsy-api' __version__ = '0.0.2' __author__ = 'Annouar' __license__ = 'MIT'
__title__ = 'sellsy_api' __description__ = 'sellsy_api is a tiny client for Sellsy API' __url__ = 'https://github.com/Annouar/sellsy-api' __version__ = '0.0.2' __author__ = 'Annouar' __license__ = 'MIT'
buses = [] n, m, h = map(int, input().split()) for i in range(n): buses.append(int(input())) count = 0 for i in range(n - 1): while buses[n - i - 1] - buses[n - i - 2] > h: buses[n - i - 2] += m count += 1 print(count)
buses = [] (n, m, h) = map(int, input().split()) for i in range(n): buses.append(int(input())) count = 0 for i in range(n - 1): while buses[n - i - 1] - buses[n - i - 2] > h: buses[n - i - 2] += m count += 1 print(count)
#pembuatan fungsi def hitung_gaji(): nama =(input("masukan Nama anda :")) gol=(input("masukan golongan:")) if gol =="1": gaji=1000000 tunjangan= 250000 total=gaji+tunjangan print(f"total gaji yang anda terima {total}") elif gol == "2": gaji = 2000000 tunjangan = 500000 total = gaji+tunjangan print(f"total gaji yang anda terima {total}") elif gol == "3" : gaji =3000000 tunjangan = 700000 total=gaji+tunjangan print(f"total gaji yang anda terima {total}") else: print("mohon masukan golongan anda") #pemanggil fungsi print("selamat Datang di Program Hitung Gaji") print("--------------------------") devisi=input("masukan devisi anda:") if devisi == "kantor": hitung_gaji() elif devisi =="lapangan": hitung_gaji() transportasi=100000 print("tambahan tunjangan lapangan",transportasi) else: print("devisi yang anda masukan salah")
def hitung_gaji(): nama = input('masukan Nama anda :') gol = input('masukan golongan:') if gol == '1': gaji = 1000000 tunjangan = 250000 total = gaji + tunjangan print(f'total gaji yang anda terima {total}') elif gol == '2': gaji = 2000000 tunjangan = 500000 total = gaji + tunjangan print(f'total gaji yang anda terima {total}') elif gol == '3': gaji = 3000000 tunjangan = 700000 total = gaji + tunjangan print(f'total gaji yang anda terima {total}') else: print('mohon masukan golongan anda') print('selamat Datang di Program Hitung Gaji') print('--------------------------') devisi = input('masukan devisi anda:') if devisi == 'kantor': hitung_gaji() elif devisi == 'lapangan': hitung_gaji() transportasi = 100000 print('tambahan tunjangan lapangan', transportasi) else: print('devisi yang anda masukan salah')
def add(x, y): return x + y def times(func, x, y): return func(x, y) a = 2 b = 4 r = times(add, a, b) print(' - Resultado = ', r)
def add(x, y): return x + y def times(func, x, y): return func(x, y) a = 2 b = 4 r = times(add, a, b) print(' - Resultado = ', r)
# ##Create 5 dictionaries which have list values dict1 = {'State': 'Maharashtra', 'City': 'Pune', 'Best Places to Visit': ['Shanivarwada', "Pataleshwar", "Dagdusheth", "Tulshibag"]} dict2 = {'State': 'Goa', 'Cty': 'North Goa', 'Best Places to Visit': ["panji", "Baga", "Calngut", "Meeramaar"]} dict3 = {'State': 'Maharashtra', 'City': 'Pune', 'Best Hotel to Visit': ["PK Biryani", "Vaishali", "Jogeshwari", "Surves"]} dict4 = {'State': 'GOA', 'City': 'North Goa', 'Best Hotel to Visit': ["RITZ", "DE Baga DECK", "DE Calangut DECK", "Pinkvilla"]} dict5 = {'pune':["VEGMARATHA", "Pav Bhaji", "MASTANI", "MISALPAV"], 'GOA': ["Mahroom omlette", "Fish thali", "RAVA FRY-"]} print("WHEN I ROME WITH MY FRIEND IN", dict1['City'], "I usually go with my friends to visit", dict1['Best Places to Visit'][1], "&", dict1['Best Places to Visit'][3] ) print("every year we go to", dict2['State'], "we use to stay at", dict2['Best Places to Visit'][2]) print("In", dict4['City'], "we love to go", dict4['Best Hotel to Visit'][0], "and", dict4['Best Hotel to Visit'][2], "Hotel" ) print("when you visit to", dict1['City'], "City dont forget to taste", dict5['pune'][2], "and", dict5['pune'][3] ) print("when you visit to", dict4['City'], "City dont forget to taste", dict5['GOA'][2], "and", dict5['GOA'][0] )
dict1 = {'State': 'Maharashtra', 'City': 'Pune', 'Best Places to Visit': ['Shanivarwada', 'Pataleshwar', 'Dagdusheth', 'Tulshibag']} dict2 = {'State': 'Goa', 'Cty': 'North Goa', 'Best Places to Visit': ['panji', 'Baga', 'Calngut', 'Meeramaar']} dict3 = {'State': 'Maharashtra', 'City': 'Pune', 'Best Hotel to Visit': ['PK Biryani', 'Vaishali', 'Jogeshwari', 'Surves']} dict4 = {'State': 'GOA', 'City': 'North Goa', 'Best Hotel to Visit': ['RITZ', 'DE Baga DECK', 'DE Calangut DECK', 'Pinkvilla']} dict5 = {'pune': ['VEGMARATHA', 'Pav Bhaji', 'MASTANI', 'MISALPAV'], 'GOA': ['Mahroom omlette', 'Fish thali', 'RAVA FRY-']} print('WHEN I ROME WITH MY FRIEND IN', dict1['City'], 'I usually go with my friends to visit', dict1['Best Places to Visit'][1], '&', dict1['Best Places to Visit'][3]) print('every year we go to', dict2['State'], 'we use to stay at', dict2['Best Places to Visit'][2]) print('In', dict4['City'], 'we love to go', dict4['Best Hotel to Visit'][0], 'and', dict4['Best Hotel to Visit'][2], 'Hotel') print('when you visit to', dict1['City'], 'City dont forget to taste', dict5['pune'][2], 'and', dict5['pune'][3]) print('when you visit to', dict4['City'], 'City dont forget to taste', dict5['GOA'][2], 'and', dict5['GOA'][0])
description = 'TOF counter devices' group = 'lowlevel' devices = dict( monitor = device('nicos.devices.generic.VirtualCounter', description = 'TOFTOF monitor', fmtstr = '%d', type = 'monitor', lowlevel = True, pollinterval = None, ), timer = device('nicos.devices.generic.VirtualTimer', description = 'TOFTOF timer', fmtstr = '%.2f', unit = 's', lowlevel = True, pollinterval = None, ), image = device('nicos_mlz.toftof.devices.virtual.VirtualImage', description = 'Image data device', fmtstr = '%d', pollinterval = None, lowlevel = True, numinputs = 1006, size = (1024, 1024), datafile = 'nicos_demo/vtoftof/data/test/data.npz', ), det = device('nicos_mlz.toftof.devices.detector.Detector', description = 'The TOFTOF detector device', timers = ['timer'], monitors = ['monitor'], images = ['image'], rc = 'rc', chopper = 'ch', chdelay = 'chdelay', maxage = 3, pollinterval = None, liveinterval = 10.0, saveintervals = [30.], detinfofile = 'nicos_demo/vtoftof/detinfo.dat', ), )
description = 'TOF counter devices' group = 'lowlevel' devices = dict(monitor=device('nicos.devices.generic.VirtualCounter', description='TOFTOF monitor', fmtstr='%d', type='monitor', lowlevel=True, pollinterval=None), timer=device('nicos.devices.generic.VirtualTimer', description='TOFTOF timer', fmtstr='%.2f', unit='s', lowlevel=True, pollinterval=None), image=device('nicos_mlz.toftof.devices.virtual.VirtualImage', description='Image data device', fmtstr='%d', pollinterval=None, lowlevel=True, numinputs=1006, size=(1024, 1024), datafile='nicos_demo/vtoftof/data/test/data.npz'), det=device('nicos_mlz.toftof.devices.detector.Detector', description='The TOFTOF detector device', timers=['timer'], monitors=['monitor'], images=['image'], rc='rc', chopper='ch', chdelay='chdelay', maxage=3, pollinterval=None, liveinterval=10.0, saveintervals=[30.0], detinfofile='nicos_demo/vtoftof/detinfo.dat'))
# -*- coding: utf-8 -*- # @Time : 2020/12/20 17:54:58 # @Author : ddvv # @Site : https://ddvvmmzz.github.io # @File : filetypes.py # @Software: Visual Studio Code FILE_TYPE_MAPPING = { 'eml': 'eml', 'html': 'html', 'zip': 'zip', 'doc': 'ole', 'docx': 'zip', 'xls': 'ole', 'xlsx': 'zip', 'ppt': 'ole', 'pptx': 'zip', 'rtf': 'rtf', 'vba': 'vba', 'exe': 'exe', 'pdf': 'pdf', 'ole': 'ole', 'lnk': 'lnk', } OTHER_LIST = ['vba', 'exe', 'pdf', 'bat'] def get_support_file_type(ext): return FILE_TYPE_MAPPING.get(ext, 'other')
file_type_mapping = {'eml': 'eml', 'html': 'html', 'zip': 'zip', 'doc': 'ole', 'docx': 'zip', 'xls': 'ole', 'xlsx': 'zip', 'ppt': 'ole', 'pptx': 'zip', 'rtf': 'rtf', 'vba': 'vba', 'exe': 'exe', 'pdf': 'pdf', 'ole': 'ole', 'lnk': 'lnk'} other_list = ['vba', 'exe', 'pdf', 'bat'] def get_support_file_type(ext): return FILE_TYPE_MAPPING.get(ext, 'other')
# Enter your code here. Read input from STDIN. Print output to STDOUT NumOfLines = int(input()) # taking first input 2 for j in range(NumOfLines): # makes sure we take all the lines as n s = input() # taking 1st and 2nd line evens, odds = '','' for i in range(len(s)): if i % 2 == 0: evens += s[i] else: odds += s[i] print(evens, odds)
num_of_lines = int(input()) for j in range(NumOfLines): s = input() (evens, odds) = ('', '') for i in range(len(s)): if i % 2 == 0: evens += s[i] else: odds += s[i] print(evens, odds)
def add_feature(training_df): training_df["bin_label"] = training_df.label.apply(lambda l: "O" if l == "O" else "I") training_df["token_num"] = training_df.token.apply(lambda t: len(t.doc)) training_df["loc"] = training_df.token.apply(lambda t: t.i) training_df["len"] = training_df.token.apply(lambda t: len(t.text)) training_df["pos"] = training_df.token.apply(lambda t: t.pos_) training_df["lemma"] = training_df.token.apply(lambda t: t.lemma_) training_df["like_num"] = training_df.token.apply(lambda t: t.like_num) training_df["is_quote"] = training_df.token.apply(lambda t: t.is_quote) training_df["is_head"] = training_df.token.apply(lambda t: t.head.text == t.text) training_df["is_digit"] = training_df.token.apply(lambda t: t.is_digit) training_df["is_upper"] = training_df.token.apply(lambda t: len([c for c in t.text if c.isupper()]) != 0) training_df["is_punct"] = training_df.token.apply(lambda t: t.is_punct) training_df["is_start"] = training_df.token.apply(lambda t: t.i == 0) return training_df
def add_feature(training_df): training_df['bin_label'] = training_df.label.apply(lambda l: 'O' if l == 'O' else 'I') training_df['token_num'] = training_df.token.apply(lambda t: len(t.doc)) training_df['loc'] = training_df.token.apply(lambda t: t.i) training_df['len'] = training_df.token.apply(lambda t: len(t.text)) training_df['pos'] = training_df.token.apply(lambda t: t.pos_) training_df['lemma'] = training_df.token.apply(lambda t: t.lemma_) training_df['like_num'] = training_df.token.apply(lambda t: t.like_num) training_df['is_quote'] = training_df.token.apply(lambda t: t.is_quote) training_df['is_head'] = training_df.token.apply(lambda t: t.head.text == t.text) training_df['is_digit'] = training_df.token.apply(lambda t: t.is_digit) training_df['is_upper'] = training_df.token.apply(lambda t: len([c for c in t.text if c.isupper()]) != 0) training_df['is_punct'] = training_df.token.apply(lambda t: t.is_punct) training_df['is_start'] = training_df.token.apply(lambda t: t.i == 0) return training_df
''' @Author: CSY @Date: 2020-01-28 09:55:04 @LastEditors : CSY @LastEditTime : 2020-01-28 09:55:17 ''' a=5%2==1 print(a)
""" @Author: CSY @Date: 2020-01-28 09:55:04 @LastEditors : CSY @LastEditTime : 2020-01-28 09:55:17 """ a = 5 % 2 == 1 print(a)
# sum of n to n verbose 1 print('sum of n to n') number1 = int(input('input number1: ')) number2 = int(input('input number2: ')) if number1 > number2: number1, number2 = number2, number1 sum = 0 for i in range(number1, number2 + 1): if i < number2: print(f'{i} + ', end='') else: print(f'{i} = ', end='') sum += i print(sum)
print('sum of n to n') number1 = int(input('input number1: ')) number2 = int(input('input number2: ')) if number1 > number2: (number1, number2) = (number2, number1) sum = 0 for i in range(number1, number2 + 1): if i < number2: print(f'{i} + ', end='') else: print(f'{i} = ', end='') sum += i print(sum)
#!/usr/bin/python3 # Read the file in to an array input = [] f = open("input.txt", "r") for l in f: input.append(l) def find_search_bit(position, input_list): v = "" for i in input_list: v = v + i[position] if v.count('1') == v.count('0'): return 1 elif v.count('1') > v.count('0'): return 1 else: return 0 def filter_list(position, filter, input_list): out_list = [] if position > len(input_list[0]): print("Error: search position is longer than input string length") for i in input_list: if str(i[position]) == str(filter): out_list.append(i) return out_list o2_list = input.copy() co2_list = input.copy() for i in range(0, len(input[0])-1): o2_search_bit = find_search_bit(i, o2_list) o2_list = filter_list(i, o2_search_bit, o2_list) if len(o2_list) < 2: break print(f"O2 List = {o2_list}") for i in range(0, len(input[0])-1): co2_search_bit = find_search_bit(i, co2_list) if co2_search_bit == 1: co2_search_bit = 0 else: co2_search_bit = 1 co2_list = filter_list(i, co2_search_bit, co2_list) if len(co2_list) < 2: break print(f"CO2 List = {o2_list}") print(f"result = {int(o2_list[0],2) * int(co2_list[0],2)}")
input = [] f = open('input.txt', 'r') for l in f: input.append(l) def find_search_bit(position, input_list): v = '' for i in input_list: v = v + i[position] if v.count('1') == v.count('0'): return 1 elif v.count('1') > v.count('0'): return 1 else: return 0 def filter_list(position, filter, input_list): out_list = [] if position > len(input_list[0]): print('Error: search position is longer than input string length') for i in input_list: if str(i[position]) == str(filter): out_list.append(i) return out_list o2_list = input.copy() co2_list = input.copy() for i in range(0, len(input[0]) - 1): o2_search_bit = find_search_bit(i, o2_list) o2_list = filter_list(i, o2_search_bit, o2_list) if len(o2_list) < 2: break print(f'O2 List = {o2_list}') for i in range(0, len(input[0]) - 1): co2_search_bit = find_search_bit(i, co2_list) if co2_search_bit == 1: co2_search_bit = 0 else: co2_search_bit = 1 co2_list = filter_list(i, co2_search_bit, co2_list) if len(co2_list) < 2: break print(f'CO2 List = {o2_list}') print(f'result = {int(o2_list[0], 2) * int(co2_list[0], 2)}')
class SudokuGrid : def __init__(self,grid=[]) : if grid : i = iter(grid) j = len(next(i)) if j == 9 and all(len(l) == j for l in i): self.grid = grid return self.grid = [[0 for i in range(9)] for j in range(9)] def show(self) : print('-------------------------',end='\n') for i in range(9) : for j in range(9) : if j==0 : print('|',end=(' ')) print(self.grid[i][j],end=(' ')) if j in [2,5] : print('|',end=(' ')) if j==8 : print('|',end=('\n')) if ((i+1)%3==0 and j==8) : print('-------------------------',end='\n') def test(self,x,y,n) : for i in range(9) : if self.grid[i][y] == n : return False for i in range(9) : if self.grid[x][i] == n : return False x0 = (x//3)*3 y0 = (y//3)*3 for i in range(3) : for j in range(3) : if self.grid[x0+i][y0+j] == n : return False return True def solve(self) : for i in range(9) : for j in range(9) : if self.grid[i][j] == 0 : for n in range(1,10) : if self.test(i,j,n) : self.grid[i][j] = n self.solve() self.grid[i][j] = 0 return self.show() return
class Sudokugrid: def __init__(self, grid=[]): if grid: i = iter(grid) j = len(next(i)) if j == 9 and all((len(l) == j for l in i)): self.grid = grid return self.grid = [[0 for i in range(9)] for j in range(9)] def show(self): print('-------------------------', end='\n') for i in range(9): for j in range(9): if j == 0: print('|', end=' ') print(self.grid[i][j], end=' ') if j in [2, 5]: print('|', end=' ') if j == 8: print('|', end='\n') if (i + 1) % 3 == 0 and j == 8: print('-------------------------', end='\n') def test(self, x, y, n): for i in range(9): if self.grid[i][y] == n: return False for i in range(9): if self.grid[x][i] == n: return False x0 = x // 3 * 3 y0 = y // 3 * 3 for i in range(3): for j in range(3): if self.grid[x0 + i][y0 + j] == n: return False return True def solve(self): for i in range(9): for j in range(9): if self.grid[i][j] == 0: for n in range(1, 10): if self.test(i, j, n): self.grid[i][j] = n self.solve() self.grid[i][j] = 0 return self.show() return
class Heapsort: def sort(self, arr): self.__build_max_heap(arr) size = len(arr) - 1 for i in range(size, -1, -1): self.__max_heapify(arr, 0, i) # swap last index with first index already sorted arr[0], arr[i] = arr[i], arr[0] def __build_max_heap(self, arr): size = len(arr) - 1 for i in range(int(size / 2), -1, -1): self.__max_heapify(arr, i, size) def __max_heapify(self, arr, root_index, size): ''' Heapify subtree rooted at index root_index Parameters ---------- arr: list List of values root_index: int Root index size: int Index of the last valid element of the list (Heap size) ---------- ''' # Initialize largest as root largest = root_index # Set index of left and right children left = (2 * root_index) + 1 right = left + 1 # See if left child of root exists and is greater than root if(left <= size and arr[left] > arr[largest]): largest = left # See if right child of root exists and is greater than root if(right <= size and arr[right] > arr[largest]): largest = right # Change root, if needed if largest != root_index: # swap arr[root_index], arr[largest] = arr[largest], arr[root_index] # Heapify the new root. self.__max_heapify(arr, largest, size) if __name__ == "__main__": arr = [4, 1, 3, 2, 16, 9, 10, 14, 8, 7] Heapsort().sort(arr) print(arr)
class Heapsort: def sort(self, arr): self.__build_max_heap(arr) size = len(arr) - 1 for i in range(size, -1, -1): self.__max_heapify(arr, 0, i) (arr[0], arr[i]) = (arr[i], arr[0]) def __build_max_heap(self, arr): size = len(arr) - 1 for i in range(int(size / 2), -1, -1): self.__max_heapify(arr, i, size) def __max_heapify(self, arr, root_index, size): """ Heapify subtree rooted at index root_index Parameters ---------- arr: list List of values root_index: int Root index size: int Index of the last valid element of the list (Heap size) ---------- """ largest = root_index left = 2 * root_index + 1 right = left + 1 if left <= size and arr[left] > arr[largest]: largest = left if right <= size and arr[right] > arr[largest]: largest = right if largest != root_index: (arr[root_index], arr[largest]) = (arr[largest], arr[root_index]) self.__max_heapify(arr, largest, size) if __name__ == '__main__': arr = [4, 1, 3, 2, 16, 9, 10, 14, 8, 7] heapsort().sort(arr) print(arr)
# # PySNMP MIB module ADTRAN-AOS-VQM (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ADTRAN-AOS-VQM # Produced by pysmi-0.3.4 at Mon Apr 29 16:58:58 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # adGenAOSVoice, adGenAOSConformance = mibBuilder.importSymbols("ADTRAN-AOS", "adGenAOSVoice", "adGenAOSConformance") adIdentity, = mibBuilder.importSymbols("ADTRAN-MIB", "adIdentity") Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") MibIdentifier, Counter32, ObjectIdentity, TimeTicks, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Gauge32, IpAddress, Integer32, Bits, iso, Counter64, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Counter32", "ObjectIdentity", "TimeTicks", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Gauge32", "IpAddress", "Integer32", "Bits", "iso", "Counter64", "ModuleIdentity") TextualConvention, DateAndTime, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DateAndTime", "DisplayString", "TruthValue") adGenAOSVQMMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 664, 6, 10000, 53, 5, 3)) if mibBuilder.loadTexts: adGenAOSVQMMib.setLastUpdated('200901060000Z') if mibBuilder.loadTexts: adGenAOSVQMMib.setOrganization('ADTRAN, Inc.') adVQM = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3)) adVQMTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 0)) adVQMTrapControl = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1)) adVQMCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2)) adVQMThreshold = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3)) adVQMSysPerf = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4)) adVQMInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5)) adVQMEndPoint = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6)) adVQMHistory = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7)) adVQMActive = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8)) class MOSvalue(TextualConvention, Integer32): status = 'current' displayHint = 'd' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(100, 1000), ValueRangeConstraint(65535, 65535), ) class Percentage(TextualConvention, Integer32): status = 'current' displayHint = 'd' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 1000), ValueRangeConstraint(65535, 65535), ) class MsecValue(TextualConvention, Integer32): status = 'current' displayHint = 'd' adVQMEndOfCallTrap = NotificationType((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 0, 1)).setObjects(("ADTRAN-AOS-VQM", "adVqmTrapEventType"), ("ADTRAN-AOS-VQM", "adVqmCallHistMosLq"), ("ADTRAN-AOS-VQM", "adVqmCallHistMosPq"), ("ADTRAN-AOS-VQM", "adVqmCallHistPktsLostTotal"), ("ADTRAN-AOS-VQM", "adVqmCallHistOutOfOrder"), ("ADTRAN-AOS-VQM", "adVqmCallHistPdvAverageMs")) if mibBuilder.loadTexts: adVQMEndOfCallTrap.setStatus('current') adVqmTrapState = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: adVqmTrapState.setStatus('current') adVqmTrapCfgSeverityLevel = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("error", 1), ("warning", 2), ("notice", 3), ("info", 4))).clone('warning')).setMaxAccess("readwrite") if mibBuilder.loadTexts: adVqmTrapCfgSeverityLevel.setStatus('current') adVqmTrapEventType = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1, 3), Bits().clone(namedValues=NamedValues(("lQMos", 0), ("pQMos", 1), ("loss", 2), ("outOfOrder", 3), ("jitter", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmTrapEventType.setStatus('current') adVqmCfgEnable = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgEnable.setStatus('current') adVqmCfgSipEnable = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgSipEnable.setStatus('current') adVqmCfgUdpEnable = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgUdpEnable.setStatus('current') adVqmCfgInternationalCode = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 5))).clone(namedValues=NamedValues(("none", 1), ("japan", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgInternationalCode.setStatus('current') adVqmCfgJitterBufferType = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("jitterBufferFixed", 1), ("jitterBufferAdaptive", 2), ("jitterBufferUnknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgJitterBufferType.setStatus('current') adVqmCfgJitterBufferAdaptiveMin = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgJitterBufferAdaptiveMin.setStatus('current') adVqmCfgJitterBufferAdaptiveNominal = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgJitterBufferAdaptiveNominal.setStatus('current') adVqmCfgJitterBufferAdaptiveMax = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgJitterBufferAdaptiveMax.setStatus('current') adVqmCfgJitterBufferFixedNominal = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgJitterBufferFixedNominal.setStatus('current') adVqmCfgJitterBufferFixedSize = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgJitterBufferFixedSize.setStatus('current') adVqmCfgJitterBufferThresholdEarlyMs = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 11), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgJitterBufferThresholdEarlyMs.setStatus('current') adVqmCfgJitterBufferThresholdLateMs = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 12), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgJitterBufferThresholdLateMs.setStatus('current') adVqmCfgRoundTripPingEnabled = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgRoundTripPingEnabled.setStatus('current') adVqmCfgRoundTripPingType = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ping", 1), ("timestamp", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgRoundTripPingType.setStatus('current') adVqmCfgCallHistorySize = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 15), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgCallHistorySize.setStatus('current') adVqmCfgHistoryThresholdLqmos = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 16), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgHistoryThresholdLqmos.setStatus('current') adVqmCfgHistoryThresholdCqmos = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 17), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgHistoryThresholdCqmos.setStatus('current') adVqmCfgHistoryThresholdPqmos = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 18), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgHistoryThresholdPqmos.setStatus('current') adVqmCfgHistoryThresholdLoss = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 19), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgHistoryThresholdLoss.setStatus('current') adVqmCfgHistoryThresholdOutOfOrder = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 20), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgHistoryThresholdOutOfOrder.setStatus('current') adVqmCfgHistoryThresholdJitter = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 21), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCfgHistoryThresholdJitter.setStatus('current') adVqmCfgClear = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("clear", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: adVqmCfgClear.setStatus('current') adVqmCfgClearCallHistory = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("clear", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: adVqmCfgClearCallHistory.setStatus('current') adVqmThresholdLqmosInfo = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 1), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdLqmosInfo.setStatus('current') adVqmThresholdLqmosNotice = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 2), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdLqmosNotice.setStatus('current') adVqmThresholdLqmosWarning = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 3), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdLqmosWarning.setStatus('current') adVqmThresholdLqmosError = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 4), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdLqmosError.setStatus('current') adVqmThresholdPqmosInfo = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 5), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdPqmosInfo.setStatus('current') adVqmThresholdPqmosNotice = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 6), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdPqmosNotice.setStatus('current') adVqmThresholdPqmosWarning = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 7), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdPqmosWarning.setStatus('current') adVqmThresholdPqmosError = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 8), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdPqmosError.setStatus('current') adVqmThresholdOutOfOrderInfo = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdOutOfOrderInfo.setStatus('current') adVqmThresholdOutOfOrderNotice = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdOutOfOrderNotice.setStatus('current') adVqmThresholdOutOfOrderWarning = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 11), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdOutOfOrderWarning.setStatus('current') adVqmThresholdOutOfOrderError = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 12), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdOutOfOrderError.setStatus('current') adVqmThresholdLossInfo = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 13), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdLossInfo.setStatus('current') adVqmThresholdLossNotice = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 14), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdLossNotice.setStatus('current') adVqmThresholdLossWarning = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 15), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdLossWarning.setStatus('current') adVqmThresholdLossError = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 16), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdLossError.setStatus('current') adVqmThresholdJitterInfo = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 17), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdJitterInfo.setStatus('current') adVqmThresholdJitterNotice = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 18), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdJitterNotice.setStatus('current') adVqmThresholdJitterWarning = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 19), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdJitterWarning.setStatus('current') adVqmThresholdJitterError = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 20), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmThresholdJitterError.setStatus('current') adVqmSysActiveCalls = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmSysActiveCalls.setStatus('current') adVqmSysActiveExcellent = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmSysActiveExcellent.setStatus('current') adVqmSysActiveGood = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmSysActiveGood.setStatus('current') adVqmSysActiveFair = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmSysActiveFair.setStatus('current') adVqmSysActivePoor = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmSysActivePoor.setStatus('current') adVqmSysCallHistoryCalls = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmSysCallHistoryCalls.setStatus('current') adVqmSysCallHistoryExcellent = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmSysCallHistoryExcellent.setStatus('current') adVqmSysCallHistoryGood = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmSysCallHistoryGood.setStatus('current') adVqmSysCallHistoryFair = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmSysCallHistoryFair.setStatus('current') adVqmSysCallHistoryPoor = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmSysCallHistoryPoor.setStatus('current') adVqmSysAllCallsExcellent = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmSysAllCallsExcellent.setStatus('current') adVqmSysAllCallsGood = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmSysAllCallsGood.setStatus('current') adVqmSysAllCallsFair = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmSysAllCallsFair.setStatus('current') adVqmSysAllCallsPoor = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmSysAllCallsPoor.setStatus('current') adVQMInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1), ) if mibBuilder.loadTexts: adVQMInterfaceTable.setStatus('current') adVQMInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1), ).setIndexNames((0, "ADTRAN-AOS-VQM", "adVqmIfcId")) if mibBuilder.loadTexts: adVQMInterfaceEntry.setStatus('current') adVqmIfcId = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcId.setStatus('current') adVqmIfcName = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcName.setStatus('current') adVqmIfcPktsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcPktsRx.setStatus('current') adVqmIfcPktsLost = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcPktsLost.setStatus('current') adVqmIfcPktsOoo = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcPktsOoo.setStatus('current') adVqmIfcPktsDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcPktsDiscarded.setStatus('current') adVqmIfcNumberActiveCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcNumberActiveCalls.setStatus('current') adVqmIfcTerminatedCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcTerminatedCalls.setStatus('current') adVqmIfcRLqMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcRLqMinimum.setStatus('current') adVqmIfcRLqAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcRLqAverage.setStatus('current') adVqmIfcRLqMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 11), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcRLqMaximum.setStatus('current') adVqmIfcRCqMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 12), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcRCqMinimum.setStatus('current') adVqmIfcRCqAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 13), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcRCqAverage.setStatus('current') adVqmIfcRCqMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 14), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcRCqMaximum.setStatus('current') adVqmIfcRG107Minimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 15), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcRG107Minimum.setStatus('current') adVqmIfcRG107Average = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 16), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcRG107Average.setStatus('current') adVqmIfcRG107Maximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 17), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcRG107Maximum.setStatus('current') adVqmIfcMosLqMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 18), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcMosLqMinimum.setStatus('current') adVqmIfcMosLqAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 19), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcMosLqAverage.setStatus('current') adVqmIfcMosLqMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 20), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcMosLqMaximum.setStatus('current') adVqmIfcMosCqMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 21), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcMosCqMinimum.setStatus('current') adVqmIfcMosCqAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 22), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcMosCqAverage.setStatus('current') adVqmIfcMosCqMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 23), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcMosCqMaximum.setStatus('current') adVqmIfcMosPqMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 24), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcMosPqMinimum.setStatus('current') adVqmIfcMosPqAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 25), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcMosPqAverage.setStatus('current') adVqmIfcMosPqMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 26), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcMosPqMaximum.setStatus('current') adVqmIfcLossMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 27), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcLossMinimum.setStatus('current') adVqmIfcLossAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 28), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcLossAverage.setStatus('current') adVqmIfcLossMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 29), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcLossMaximum.setStatus('current') adVqmIfcDiscardsMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 30), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcDiscardsMinimum.setStatus('current') adVqmIfcDiscardsAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 31), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcDiscardsAverage.setStatus('current') adVqmIfcDiscardsMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 32), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcDiscardsMaximum.setStatus('current') adVqmIfcPdvAverageMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 33), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcPdvAverageMs.setStatus('current') adVqmIfcPdvMaximumMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 34), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcPdvMaximumMs.setStatus('current') adVqmIfcDelayMinMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 35), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcDelayMinMsec.setStatus('current') adVqmIfcDelayAvgMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 36), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcDelayAvgMsec.setStatus('current') adVqmIfcDelayMaxMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 37), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcDelayMaxMsec.setStatus('current') adVqmIfcNumberStreamsExcellent = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 38), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcNumberStreamsExcellent.setStatus('current') adVqmIfcNumberStreamsGood = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 39), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcNumberStreamsGood.setStatus('current') adVqmIfcNumberStreamsFair = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 40), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcNumberStreamsFair.setStatus('current') adVqmIfcNumberStreamsPoor = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 41), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmIfcNumberStreamsPoor.setStatus('current') adVqmIfcClear = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("clear", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: adVqmIfcClear.setStatus('current') adVQMEndPointTable = MibTable((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1), ) if mibBuilder.loadTexts: adVQMEndPointTable.setStatus('current') adVQMEndPointEntry = MibTableRow((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1), ).setIndexNames((0, "ADTRAN-AOS-VQM", "adVqmEndPointRtpSourceIp")) if mibBuilder.loadTexts: adVQMEndPointEntry.setStatus('current') adVqmEndPointRtpSourceIp = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointRtpSourceIp.setStatus('current') adVqmEndPointNumberCompletedCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointNumberCompletedCalls.setStatus('current') adVqmEndPointInterfaceId = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointInterfaceId.setStatus('current') adVqmEndPointInterfaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointInterfaceName.setStatus('current') adVqmEndPointMosLqMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 5), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointMosLqMinimum.setStatus('current') adVqmEndPointMosLqAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 6), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointMosLqAverage.setStatus('current') adVqmEndPointMosLqMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 7), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointMosLqMaximum.setStatus('current') adVqmEndPointMosPqMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 8), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointMosPqMinimum.setStatus('current') adVqmEndPointMosPqAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 9), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointMosPqAverage.setStatus('current') adVqmEndPointMosPqMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 10), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointMosPqMaximum.setStatus('current') adVqmEndPointPktsLostTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointPktsLostTotal.setStatus('current') adVqmEndPointPktsOutOfOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointPktsOutOfOrder.setStatus('current') adVqmEndPointJitterMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 13), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointJitterMaximum.setStatus('current') adVqmEndPointNumberStreamsExcellent = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointNumberStreamsExcellent.setStatus('current') adVqmEndPointNumberStreamsGood = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointNumberStreamsGood.setStatus('current') adVqmEndPointNumberStreamsFair = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointNumberStreamsFair.setStatus('current') adVqmEndPointNumberStreamsPoor = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmEndPointNumberStreamsPoor.setStatus('current') adVQMCallHistoryTable = MibTable((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1), ) if mibBuilder.loadTexts: adVQMCallHistoryTable.setStatus('current') adVQMCallHistoryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1), ).setIndexNames((0, "ADTRAN-AOS-VQM", "adVqmCallHistRtpSourceIp"), (0, "ADTRAN-AOS-VQM", "adVqmCallHistRtpSourcePort"), (0, "ADTRAN-AOS-VQM", "adVqmCallHistRtpDestIp"), (0, "ADTRAN-AOS-VQM", "adVqmCallHistRtpDestPort"), (0, "ADTRAN-AOS-VQM", "adVqmCallHistSsrcid")) if mibBuilder.loadTexts: adVQMCallHistoryEntry.setStatus('current') adVqmCallHistRtpSourceIp = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistRtpSourceIp.setStatus('current') adVqmCallHistRtpSourcePort = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistRtpSourcePort.setStatus('current') adVqmCallHistRtpDestIp = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 3), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistRtpDestIp.setStatus('current') adVqmCallHistRtpDestPort = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistRtpDestPort.setStatus('current') adVqmCallHistSsrcid = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistSsrcid.setStatus('current') adVqmCallHistTo = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistTo.setStatus('current') adVqmCallHistFrom = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistFrom.setStatus('current') adVqmCallHistRtpSourceUri = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 8), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistRtpSourceUri.setStatus('current') adVqmCallHistCallid = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 9), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistCallid.setStatus('current') adVqmCallHistCcmid = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistCcmid.setStatus('current') adVqmCallHistSourceIntName = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 11), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistSourceIntName.setStatus('current') adVqmCallHistDestIntName = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 12), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDestIntName.setStatus('current') adVqmCallHistSourceIntDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 13), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistSourceIntDescription.setStatus('current') adVqmCallHistDestIntDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 14), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDestIntDescription.setStatus('current') adVqmCallHistCallStart = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 15), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistCallStart.setStatus('current') adVqmCallHistCallDurationMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 16), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistCallDurationMs.setStatus('current') adVqmCallHistCodec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89))).clone(namedValues=NamedValues(("unknown", 1), ("g711U", 2), ("g711UPLC", 3), ("g723153K", 4), ("deprecated1", 5), ("g723163K", 6), ("deprecated2", 7), ("g728", 8), ("deprecated3", 9), ("g729", 10), ("deprecated4", 11), ("g729A", 12), ("deprecated5", 13), ("user1", 14), ("user2", 15), ("user3", 16), ("user4", 17), ("gsmfr", 18), ("reservedgsmhr", 19), ("gsmefr", 20), ("sx7300", 21), ("sx9600", 22), ("g711A", 23), ("g711APLC", 24), ("deprecated6", 25), ("g72616K", 26), ("g72624K", 27), ("g72632K", 28), ("g72640K", 29), ("gipse711U", 30), ("gipse711A", 31), ("gipsilbc", 32), ("gipsisac", 33), ("gipsipcmwb", 34), ("g729E8K0", 35), ("g729E11k8", 36), ("wblinearpcm", 37), ("wblinearpcmPlc", 38), ("g722at64k", 39), ("g722at56k", 40), ("g722at48k", 41), ("g7221at32k", 42), ("g7221at24k", 43), ("g7222at23k85", 44), ("g7222at23k05", 45), ("g7222at19k85", 46), ("g7222at18k25", 47), ("g7222at15k85", 48), ("g7222at14k25", 49), ("g7222at12k85", 50), ("g7222at8k85", 51), ("g7222at6k6", 52), ("qcelp8", 53), ("qcelp13", 54), ("evrc", 55), ("smv812", 56), ("smv579", 57), ("smv444", 58), ("smv395", 59), ("amrnb12k2", 60), ("amrnb10k2", 61), ("amrnb7k95", 62), ("amrnb7k4", 63), ("amrnb6k7", 64), ("amrnb5k9", 65), ("amrnb5k15", 66), ("amrnb4k75", 67), ("ilbc13k3", 68), ("ilbc15k2", 69), ("g711u56k", 70), ("g711uPLC56k", 71), ("g711A56k", 72), ("g711APLC56k", 73), ("g7231C", 74), ("speex2k15", 75), ("speex5k95", 76), ("speeX8k", 77), ("speeX11k", 78), ("speeX15k", 79), ("speeX18k2", 80), ("speeX24k6", 81), ("speeX3k95", 82), ("speeX12k8", 83), ("speeX16k8", 84), ("speeX20k6", 85), ("speeX23k8", 86), ("speeX27k8", 87), ("speeX34k2", 88), ("speeX42k2", 89)))).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistCodec.setStatus('current') adVqmCallHistCodecClass = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("wideband", 1), ("other", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistCodecClass.setStatus('current') adVqmCallHistDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 19), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDscp.setStatus('current') adVqmCallHistPktsRcvdTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistPktsRcvdTotal.setStatus('current') adVqmCallHistPktsLostTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistPktsLostTotal.setStatus('current') adVqmCallHistPktsDiscardedTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistPktsDiscardedTotal.setStatus('current') adVqmCallHistOutOfOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistOutOfOrder.setStatus('current') adVqmCallHistPdvAverageMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 24), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistPdvAverageMs.setStatus('current') adVqmCallHistPdvMaximumMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 25), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistPdvMaximumMs.setStatus('current') adVqmCallHistRtDelayInst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 26), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistRtDelayInst.setStatus('current') adVqmCallHistRtDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 27), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistRtDelayAverage.setStatus('current') adVqmCallHistRtDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 28), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistRtDelayMaximum.setStatus('current') adVqmCallHistOnewayDelayInst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 29), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistOnewayDelayInst.setStatus('current') adVqmCallHistOnewayDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 30), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistOnewayDelayAverage.setStatus('current') adVqmCallHistOnewayDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 31), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistOnewayDelayMaximum.setStatus('current') adVqmCallHistOrigDelayInst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 32), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistOrigDelayInst.setStatus('current') adVqmCallHistOrigDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 33), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistOrigDelayAverage.setStatus('current') adVqmCallHistOrigDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 34), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistOrigDelayMaximum.setStatus('current') adVqmCallHistTermDelayMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 35), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistTermDelayMinimum.setStatus('current') adVqmCallHistTermDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 36), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistTermDelayAverage.setStatus('current') adVqmCallHistTermDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 37), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistTermDelayMaximum.setStatus('current') adVqmCallHistRLq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 38), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistRLq.setStatus('current') adVqmCallHistRCq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 39), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistRCq.setStatus('current') adVqmCallHistRNominal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 40), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistRNominal.setStatus('current') adVqmCallHistRG107 = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 41), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistRG107.setStatus('current') adVqmCallHistMosLq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 42), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistMosLq.setStatus('current') adVqmCallHistMosCq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 43), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistMosCq.setStatus('current') adVqmCallHistMosPq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 44), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistMosPq.setStatus('current') adVqmCallHistMosNominal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 45), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistMosNominal.setStatus('current') adVqmCallHistDegLoss = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 46), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDegLoss.setStatus('current') adVqmCallHistDegDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 47), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDegDiscard.setStatus('current') adVqmCallHistDegVocoder = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 48), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDegVocoder.setStatus('current') adVqmCallHistDegRecency = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 49), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDegRecency.setStatus('current') adVqmCallHistDegDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 50), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDegDelay.setStatus('current') adVqmCallHistDegSiglvl = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 51), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDegSiglvl.setStatus('current') adVqmCallHistDegNoiselvl = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 52), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDegNoiselvl.setStatus('current') adVqmCallHistDegEcholvl = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 53), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDegEcholvl.setStatus('current') adVqmCallHistBurstRLq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 54), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistBurstRLq.setStatus('current') adVqmCallHistBurstCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 55), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistBurstCount.setStatus('current') adVqmCallHistBurstRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 56), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistBurstRateAvg.setStatus('current') adVqmCallHistBurstLenAvgPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 57), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistBurstLenAvgPkts.setStatus('current') adVqmCallHistBurstLenAvgMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 58), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistBurstLenAvgMsec.setStatus('current') adVqmCallHistGapR = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 59), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistGapR.setStatus('current') adVqmCallHistGapCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 60), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistGapCount.setStatus('current') adVqmCallHistGapLossRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 61), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistGapLossRateAvg.setStatus('current') adVqmCallHistGapLenPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 62), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistGapLenPkts.setStatus('current') adVqmCallHistGapLenMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 63), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistGapLenMsec.setStatus('current') adVqmCallHistLossRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 64), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistLossRateAvg.setStatus('current') adVqmCallHistNetworkLossAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 65), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistNetworkLossAvg.setStatus('current') adVqmCallHistDiscardRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 66), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDiscardRateAvg.setStatus('current') adVqmCallHistExcessBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 67), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistExcessBurst.setStatus('current') adVqmCallHistExcessGap = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 68), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistExcessGap.setStatus('current') adVqmCallHistPpdvMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 69), MsecValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistPpdvMsec.setStatus('current') adVqmCallHistLateThresholdMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 70), MsecValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistLateThresholdMs.setStatus('current') adVqmCallHistLateThresholdPc = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 71), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistLateThresholdPc.setStatus('current') adVqmCallHistLateUnderThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 72), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistLateUnderThresh.setStatus('current') adVqmCallHistLateTotalCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 73), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistLateTotalCount.setStatus('current') adVqmCallHistLatePeakJitterMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 74), MsecValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistLatePeakJitterMs.setStatus('current') adVqmCallHistEarlyThreshMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 75), MsecValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistEarlyThreshMs.setStatus('current') adVqmCallHistEarlyThreshPc = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 76), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistEarlyThreshPc.setStatus('current') adVqmCallHistEarlyUnderThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 77), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistEarlyUnderThresh.setStatus('current') adVqmCallHistEarlyTotalCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 78), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistEarlyTotalCount.setStatus('current') adVqmCallHistEarlyPeakJitterMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 79), MsecValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistEarlyPeakJitterMs.setStatus('current') adVqmCallHistDelayIncreaseCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 80), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDelayIncreaseCount.setStatus('current') adVqmCallHistDelayDecreaseCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 81), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDelayDecreaseCount.setStatus('current') adVqmCallHistResyncCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 82), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistResyncCount.setStatus('current') adVqmCallHistJitterBufferType = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 83), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("fixed", 1), ("adaptive", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistJitterBufferType.setStatus('current') adVqmCallHistJbCfgMin = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 84), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistJbCfgMin.setStatus('current') adVqmCallHistJbCfgNom = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 85), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistJbCfgNom.setStatus('current') adVqmCallHistJbCfgMax = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 86), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistJbCfgMax.setStatus('current') adVqmCallHistDuplicatePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 87), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDuplicatePkts.setStatus('current') adVqmCallHistEarlyPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 88), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistEarlyPkts.setStatus('current') adVqmCallHistLatePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 89), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistLatePkts.setStatus('current') adVqmCallHistOverrunDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 90), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistOverrunDiscardPkts.setStatus('current') adVqmCallHistUnderrunDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 91), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistUnderrunDiscardPkts.setStatus('current') adVqmCallHistDelayMinMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 92), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDelayMinMsec.setStatus('current') adVqmCallHistDelayAvgMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 93), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDelayAvgMsec.setStatus('current') adVqmCallHistDelayMaxMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 94), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDelayMaxMsec.setStatus('current') adVqmCallHistDelayCurrentMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 95), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistDelayCurrentMsec.setStatus('current') adVqmCallHistExtRLqIn = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 96), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistExtRLqIn.setStatus('current') adVqmCallHistExtRLqOut = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 97), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistExtRLqOut.setStatus('current') adVqmCallHistExtRCqIn = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 98), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistExtRCqIn.setStatus('current') adVqmCallHistExtRCqOut = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistExtRCqOut.setStatus('current') adVqmCallHistThroughPutIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 100), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistThroughPutIndex.setStatus('current') adVqmCallHistReliabilityIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 101), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistReliabilityIndex.setStatus('current') adVqmCallHistBitrate = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 102), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmCallHistBitrate.setStatus('current') adVQMActiveCallTable = MibTable((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1), ) if mibBuilder.loadTexts: adVQMActiveCallTable.setStatus('current') adVQMActiveCallEntry = MibTableRow((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1), ).setIndexNames((0, "ADTRAN-AOS-VQM", "adVqmActCallRtpSourceIp"), (0, "ADTRAN-AOS-VQM", "adVqmActCallRtpSourcePort"), (0, "ADTRAN-AOS-VQM", "adVqmActCallRtpDestIp"), (0, "ADTRAN-AOS-VQM", "adVqmActCallRtpDestPort"), (0, "ADTRAN-AOS-VQM", "adVqmActCallSsrcid")) if mibBuilder.loadTexts: adVQMActiveCallEntry.setStatus('current') adVqmActCallRtpSourceIp = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallRtpSourceIp.setStatus('current') adVqmActCallRtpSourcePort = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallRtpSourcePort.setStatus('current') adVqmActCallRtpDestIp = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 3), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallRtpDestIp.setStatus('current') adVqmActCallRtpDestPort = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallRtpDestPort.setStatus('current') adVqmActCallSsrcid = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallSsrcid.setStatus('current') adVqmActCallTo = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallTo.setStatus('current') adVqmActCallFrom = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallFrom.setStatus('current') adVqmActCallRtpSourceUri = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 8), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallRtpSourceUri.setStatus('current') adVqmActCallCallid = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 9), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallCallid.setStatus('current') adVqmActCallCcmid = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallCcmid.setStatus('current') adVqmActCallSourceIntName = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 11), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallSourceIntName.setStatus('current') adVqmActCallDestIntName = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 12), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDestIntName.setStatus('current') adVqmActCallSourceIntDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 13), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallSourceIntDescription.setStatus('current') adVqmActCallDestIntDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 14), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDestIntDescription.setStatus('current') adVqmActCallCallStart = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 15), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallCallStart.setStatus('current') adVqmActCallCallDurationMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 16), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallCallDurationMs.setStatus('current') adVqmActCallCodec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89))).clone(namedValues=NamedValues(("unknown", 1), ("g711U", 2), ("g711UPLC", 3), ("g723153K", 4), ("deprecated1", 5), ("g723163K", 6), ("deprecated2", 7), ("g728", 8), ("deprecated3", 9), ("g729", 10), ("deprecated4", 11), ("g729A", 12), ("deprecated5", 13), ("user1", 14), ("user2", 15), ("user3", 16), ("user4", 17), ("gsmfr", 18), ("reservedgsmhr", 19), ("gsmefr", 20), ("sx7300", 21), ("sx9600", 22), ("g711A", 23), ("g711APLC", 24), ("deprecated6", 25), ("g72616K", 26), ("g72624K", 27), ("g72632K", 28), ("g72640K", 29), ("gipse711U", 30), ("gipse711A", 31), ("gipsilbc", 32), ("gipsisac", 33), ("gipsipcmwb", 34), ("g729E8K0", 35), ("g729E11k8", 36), ("wblinearpcm", 37), ("wblinearpcmPlc", 38), ("g722at64k", 39), ("g722at56k", 40), ("g722at48k", 41), ("g7221at32k", 42), ("g7221at24k", 43), ("g7222at23k85", 44), ("g7222at23k05", 45), ("g7222at19k85", 46), ("g7222at18k25", 47), ("g7222at15k85", 48), ("g7222at14k25", 49), ("g7222at12k85", 50), ("g7222at8k85", 51), ("g7222at6k6", 52), ("qcelp8", 53), ("qcelp13", 54), ("evrc", 55), ("smv812", 56), ("smv579", 57), ("smv444", 58), ("smv395", 59), ("amrnb12k2", 60), ("amrnb10k2", 61), ("amrnb7k95", 62), ("amrnb7k4", 63), ("amrnb6k7", 64), ("amrnb5k9", 65), ("amrnb5k15", 66), ("amrnb4k75", 67), ("ilbc13k3", 68), ("ilbc15k2", 69), ("g711u56k", 70), ("g711uPLC56k", 71), ("g711A56k", 72), ("g711APLC56k", 73), ("g7231C", 74), ("speex2k15", 75), ("speex5k95", 76), ("speeX8k", 77), ("speeX11k", 78), ("speeX15k", 79), ("speeX18k2", 80), ("speeX24k6", 81), ("speeX3k95", 82), ("speeX12k8", 83), ("speeX16k8", 84), ("speeX20k6", 85), ("speeX23k8", 86), ("speeX27k8", 87), ("speeX34k2", 88), ("speeX42k2", 89)))).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallCodec.setStatus('current') adVqmActCallCodecClass = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("wideband", 1), ("other", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallCodecClass.setStatus('current') adVqmActCallDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 19), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDscp.setStatus('current') adVqmActCallPktsRcvdTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallPktsRcvdTotal.setStatus('current') adVqmActCallPktsLostTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallPktsLostTotal.setStatus('current') adVqmActCallPktsDiscardedTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallPktsDiscardedTotal.setStatus('current') adVqmActCallOutOfOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallOutOfOrder.setStatus('current') adVqmActCallPdvAverageMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 24), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallPdvAverageMs.setStatus('current') adVqmActCallPdvMaximumMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 25), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallPdvMaximumMs.setStatus('current') adVqmActCallRtDelayInst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 26), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallRtDelayInst.setStatus('current') adVqmActCallRtDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 27), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallRtDelayAverage.setStatus('current') adVqmActCallRtDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 28), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallRtDelayMaximum.setStatus('current') adVqmActCallOnewayDelayInst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 29), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallOnewayDelayInst.setStatus('current') adVqmActCallOnewayDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 30), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallOnewayDelayAverage.setStatus('current') adVqmActCallOnewayDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 31), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallOnewayDelayMaximum.setStatus('current') adVqmActCallOrigDelayInst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 32), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallOrigDelayInst.setStatus('current') adVqmActCallOrigDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 33), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallOrigDelayAverage.setStatus('current') adVqmActCallOrigDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 34), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallOrigDelayMaximum.setStatus('current') adVqmActCallTermDelayMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 35), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallTermDelayMinimum.setStatus('current') adVqmActCallTermDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 36), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallTermDelayAverage.setStatus('current') adVqmActCallTermDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 37), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallTermDelayMaximum.setStatus('current') adVqmActCallRLq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 38), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallRLq.setStatus('current') adVqmActCallRCq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 39), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallRCq.setStatus('current') adVqmActCallRNominal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 40), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallRNominal.setStatus('current') adVqmActCallRG107 = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 41), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallRG107.setStatus('current') adVqmActCallMosLq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 42), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallMosLq.setStatus('current') adVqmActCallMosCq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 43), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallMosCq.setStatus('current') adVqmActCallMosPq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 44), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallMosPq.setStatus('current') adVqmActCallMosNominal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 45), MOSvalue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallMosNominal.setStatus('current') adVqmActCallDegLoss = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 46), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDegLoss.setStatus('current') adVqmActCallDegDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 47), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDegDiscard.setStatus('current') adVqmActCallDegVocoder = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 48), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDegVocoder.setStatus('current') adVqmActCallDegRecency = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 49), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDegRecency.setStatus('current') adVqmActCallDegDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 50), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDegDelay.setStatus('current') adVqmActCallDegSiglvl = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 51), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDegSiglvl.setStatus('current') adVqmActCallDegNoiselvl = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 52), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDegNoiselvl.setStatus('current') adVqmActCallDegEcholvl = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 53), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDegEcholvl.setStatus('current') adVqmActCallBurstRLq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 54), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallBurstRLq.setStatus('current') adVqmActCallBurstCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 55), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallBurstCount.setStatus('current') adVqmActCallBurstRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 56), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallBurstRateAvg.setStatus('current') adVqmActCallBurstLenAvgPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 57), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallBurstLenAvgPkts.setStatus('current') adVqmActCallBurstLenAvgMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 58), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallBurstLenAvgMsec.setStatus('current') adVqmActCallGapR = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 59), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallGapR.setStatus('current') adVqmActCallGapCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 60), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallGapCount.setStatus('current') adVqmActCallGapLossRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 61), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallGapLossRateAvg.setStatus('current') adVqmActCallGapLenPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 62), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallGapLenPkts.setStatus('current') adVqmActCallGapLenMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 63), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallGapLenMsec.setStatus('current') adVqmActCallLossRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 64), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallLossRateAvg.setStatus('current') adVqmActCallNetworkLossAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 65), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallNetworkLossAvg.setStatus('current') adVqmActCallDiscardRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 66), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDiscardRateAvg.setStatus('current') adVqmActCallExcessBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 67), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallExcessBurst.setStatus('current') adVqmActCallExcessGap = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 68), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallExcessGap.setStatus('current') adVqmActCallPpdvMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 69), MsecValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallPpdvMsec.setStatus('current') adVqmActCallLateThresholdMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 70), MsecValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallLateThresholdMs.setStatus('current') adVqmActCallLateThresholdPc = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 71), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallLateThresholdPc.setStatus('current') adVqmActCallLateUnderThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 72), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallLateUnderThresh.setStatus('current') adVqmActCallLateTotalCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 73), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallLateTotalCount.setStatus('current') adVqmActCallLatePeakJitterMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 74), MsecValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallLatePeakJitterMs.setStatus('current') adVqmActCallEarlyThreshMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 75), MsecValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallEarlyThreshMs.setStatus('current') adVqmActCallEarlyThreshPc = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 76), Percentage()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallEarlyThreshPc.setStatus('current') adVqmActCallEarlyUnderThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 77), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallEarlyUnderThresh.setStatus('current') adVqmActCallEarlyTotalCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 78), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallEarlyTotalCount.setStatus('current') adVqmActCallEarlyPeakJitterMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 79), MsecValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallEarlyPeakJitterMs.setStatus('current') adVqmActCallDelayIncreaseCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 80), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDelayIncreaseCount.setStatus('current') adVqmActCallDelayDecreaseCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 81), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDelayDecreaseCount.setStatus('current') adVqmActCallResyncCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 82), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallResyncCount.setStatus('current') adVqmActCallJitterBufferType = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 83), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("fixed", 1), ("adaptive", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallJitterBufferType.setStatus('current') adVqmActCallJbCfgMin = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 84), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallJbCfgMin.setStatus('current') adVqmActCallJbCfgNom = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 85), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallJbCfgNom.setStatus('current') adVqmActCallJbCfgMax = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 86), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallJbCfgMax.setStatus('current') adVqmActCallDuplicatePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 87), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDuplicatePkts.setStatus('current') adVqmActCallEarlyPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 88), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallEarlyPkts.setStatus('current') adVqmActCallLatePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 89), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallLatePkts.setStatus('current') adVqmActCallOverrunDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 90), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallOverrunDiscardPkts.setStatus('current') adVqmActCallUnderrunDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 91), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallUnderrunDiscardPkts.setStatus('current') adVqmActCallDelayMinMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 92), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDelayMinMsec.setStatus('current') adVqmActCallDelayAvgMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 93), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDelayAvgMsec.setStatus('current') adVqmActCallDelayMaxMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 94), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDelayMaxMsec.setStatus('current') adVqmActCallDelayCurrentMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 95), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallDelayCurrentMsec.setStatus('current') adVqmActCallExtRLqIn = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 96), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallExtRLqIn.setStatus('current') adVqmActCallExtRLqOut = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 97), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallExtRLqOut.setStatus('current') adVqmActCallExtRCqIn = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 98), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallExtRCqIn.setStatus('current') adVqmActCallExtRCqOut = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallExtRCqOut.setStatus('current') adVqmActCallThroughPutIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 100), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallThroughPutIndex.setStatus('current') adVqmActCallReliabilityIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 101), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallReliabilityIndex.setStatus('current') adVqmActCallBitrate = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 102), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: adVqmActCallBitrate.setStatus('current') adGenAOSVqmConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10)) adGenAOSVqmGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1)) adGenAOSVqmCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 2)) adGenAOSVqmFullCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 2, 1)).setObjects(("ADTRAN-AOS-VQM", "adVQMCfgGroup"), ("ADTRAN-AOS-VQM", "adVQMThresholdGroup"), ("ADTRAN-AOS-VQM", "adVQMSysPerfGroup"), ("ADTRAN-AOS-VQM", "adVQMInterfaceGroup"), ("ADTRAN-AOS-VQM", "adVQMEndPointGroup"), ("ADTRAN-AOS-VQM", "adVQMCallHistoryGroup"), ("ADTRAN-AOS-VQM", "adVQMActiveCallGroup"), ("ADTRAN-AOS-VQM", "adVQMTrapGroup"), ("ADTRAN-AOS-VQM", "adVQMNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): adGenAOSVqmFullCompliance = adGenAOSVqmFullCompliance.setStatus('current') adVQMCfgGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 1)).setObjects(("ADTRAN-AOS-VQM", "adVqmCfgEnable"), ("ADTRAN-AOS-VQM", "adVqmCfgSipEnable"), ("ADTRAN-AOS-VQM", "adVqmCfgUdpEnable"), ("ADTRAN-AOS-VQM", "adVqmCfgInternationalCode"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferType"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferAdaptiveMin"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferAdaptiveNominal"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferAdaptiveMax"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferFixedNominal"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferFixedSize"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferThresholdEarlyMs"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferThresholdLateMs"), ("ADTRAN-AOS-VQM", "adVqmCfgRoundTripPingEnabled"), ("ADTRAN-AOS-VQM", "adVqmCfgRoundTripPingType"), ("ADTRAN-AOS-VQM", "adVqmCfgCallHistorySize"), ("ADTRAN-AOS-VQM", "adVqmCfgHistoryThresholdLqmos"), ("ADTRAN-AOS-VQM", "adVqmCfgHistoryThresholdCqmos"), ("ADTRAN-AOS-VQM", "adVqmCfgHistoryThresholdPqmos"), ("ADTRAN-AOS-VQM", "adVqmCfgHistoryThresholdLoss"), ("ADTRAN-AOS-VQM", "adVqmCfgHistoryThresholdOutOfOrder"), ("ADTRAN-AOS-VQM", "adVqmCfgHistoryThresholdJitter"), ("ADTRAN-AOS-VQM", "adVqmCfgClear"), ("ADTRAN-AOS-VQM", "adVqmCfgClearCallHistory")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): adVQMCfgGroup = adVQMCfgGroup.setStatus('current') adVQMThresholdGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 2)).setObjects(("ADTRAN-AOS-VQM", "adVqmThresholdLqmosInfo"), ("ADTRAN-AOS-VQM", "adVqmThresholdLqmosNotice"), ("ADTRAN-AOS-VQM", "adVqmThresholdLqmosWarning"), ("ADTRAN-AOS-VQM", "adVqmThresholdLqmosError"), ("ADTRAN-AOS-VQM", "adVqmThresholdPqmosInfo"), ("ADTRAN-AOS-VQM", "adVqmThresholdPqmosNotice"), ("ADTRAN-AOS-VQM", "adVqmThresholdPqmosWarning"), ("ADTRAN-AOS-VQM", "adVqmThresholdPqmosError"), ("ADTRAN-AOS-VQM", "adVqmThresholdOutOfOrderInfo"), ("ADTRAN-AOS-VQM", "adVqmThresholdOutOfOrderNotice"), ("ADTRAN-AOS-VQM", "adVqmThresholdOutOfOrderWarning"), ("ADTRAN-AOS-VQM", "adVqmThresholdOutOfOrderError"), ("ADTRAN-AOS-VQM", "adVqmThresholdLossInfo"), ("ADTRAN-AOS-VQM", "adVqmThresholdLossNotice"), ("ADTRAN-AOS-VQM", "adVqmThresholdLossWarning"), ("ADTRAN-AOS-VQM", "adVqmThresholdLossError"), ("ADTRAN-AOS-VQM", "adVqmThresholdJitterInfo"), ("ADTRAN-AOS-VQM", "adVqmThresholdJitterNotice"), ("ADTRAN-AOS-VQM", "adVqmThresholdJitterWarning"), ("ADTRAN-AOS-VQM", "adVqmThresholdJitterError")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): adVQMThresholdGroup = adVQMThresholdGroup.setStatus('current') adVQMSysPerfGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 3)).setObjects(("ADTRAN-AOS-VQM", "adVqmSysActiveCalls"), ("ADTRAN-AOS-VQM", "adVqmSysActiveExcellent"), ("ADTRAN-AOS-VQM", "adVqmSysActiveGood"), ("ADTRAN-AOS-VQM", "adVqmSysActiveFair"), ("ADTRAN-AOS-VQM", "adVqmSysActivePoor"), ("ADTRAN-AOS-VQM", "adVqmSysCallHistoryCalls"), ("ADTRAN-AOS-VQM", "adVqmSysCallHistoryExcellent"), ("ADTRAN-AOS-VQM", "adVqmSysCallHistoryGood"), ("ADTRAN-AOS-VQM", "adVqmSysCallHistoryFair"), ("ADTRAN-AOS-VQM", "adVqmSysCallHistoryPoor"), ("ADTRAN-AOS-VQM", "adVqmSysAllCallsExcellent"), ("ADTRAN-AOS-VQM", "adVqmSysAllCallsGood"), ("ADTRAN-AOS-VQM", "adVqmSysAllCallsFair"), ("ADTRAN-AOS-VQM", "adVqmSysAllCallsPoor")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): adVQMSysPerfGroup = adVQMSysPerfGroup.setStatus('current') adVQMInterfaceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 4)).setObjects(("ADTRAN-AOS-VQM", "adVqmIfcId"), ("ADTRAN-AOS-VQM", "adVqmIfcName"), ("ADTRAN-AOS-VQM", "adVqmIfcPktsRx"), ("ADTRAN-AOS-VQM", "adVqmIfcPktsLost"), ("ADTRAN-AOS-VQM", "adVqmIfcPktsOoo"), ("ADTRAN-AOS-VQM", "adVqmIfcPktsDiscarded"), ("ADTRAN-AOS-VQM", "adVqmIfcNumberActiveCalls"), ("ADTRAN-AOS-VQM", "adVqmIfcTerminatedCalls"), ("ADTRAN-AOS-VQM", "adVqmIfcRLqMinimum"), ("ADTRAN-AOS-VQM", "adVqmIfcRLqAverage"), ("ADTRAN-AOS-VQM", "adVqmIfcRLqMaximum"), ("ADTRAN-AOS-VQM", "adVqmIfcRCqMinimum"), ("ADTRAN-AOS-VQM", "adVqmIfcRCqAverage"), ("ADTRAN-AOS-VQM", "adVqmIfcRCqMaximum"), ("ADTRAN-AOS-VQM", "adVqmIfcRG107Minimum"), ("ADTRAN-AOS-VQM", "adVqmIfcRG107Average"), ("ADTRAN-AOS-VQM", "adVqmIfcRG107Maximum"), ("ADTRAN-AOS-VQM", "adVqmIfcMosLqMinimum"), ("ADTRAN-AOS-VQM", "adVqmIfcMosLqAverage"), ("ADTRAN-AOS-VQM", "adVqmIfcMosLqMaximum"), ("ADTRAN-AOS-VQM", "adVqmIfcMosCqMinimum"), ("ADTRAN-AOS-VQM", "adVqmIfcMosCqAverage"), ("ADTRAN-AOS-VQM", "adVqmIfcMosCqMaximum"), ("ADTRAN-AOS-VQM", "adVqmIfcMosPqMinimum"), ("ADTRAN-AOS-VQM", "adVqmIfcMosPqAverage"), ("ADTRAN-AOS-VQM", "adVqmIfcMosPqMaximum"), ("ADTRAN-AOS-VQM", "adVqmIfcLossMinimum"), ("ADTRAN-AOS-VQM", "adVqmIfcLossAverage"), ("ADTRAN-AOS-VQM", "adVqmIfcLossMaximum"), ("ADTRAN-AOS-VQM", "adVqmIfcDiscardsMinimum"), ("ADTRAN-AOS-VQM", "adVqmIfcDiscardsAverage"), ("ADTRAN-AOS-VQM", "adVqmIfcDiscardsMaximum"), ("ADTRAN-AOS-VQM", "adVqmIfcPdvAverageMs"), ("ADTRAN-AOS-VQM", "adVqmIfcPdvMaximumMs"), ("ADTRAN-AOS-VQM", "adVqmIfcDelayMinMsec"), ("ADTRAN-AOS-VQM", "adVqmIfcDelayAvgMsec"), ("ADTRAN-AOS-VQM", "adVqmIfcDelayMaxMsec"), ("ADTRAN-AOS-VQM", "adVqmIfcNumberStreamsExcellent"), ("ADTRAN-AOS-VQM", "adVqmIfcNumberStreamsGood"), ("ADTRAN-AOS-VQM", "adVqmIfcNumberStreamsFair"), ("ADTRAN-AOS-VQM", "adVqmIfcNumberStreamsPoor"), ("ADTRAN-AOS-VQM", "adVqmIfcClear")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): adVQMInterfaceGroup = adVQMInterfaceGroup.setStatus('current') adVQMEndPointGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 5)).setObjects(("ADTRAN-AOS-VQM", "adVqmEndPointRtpSourceIp"), ("ADTRAN-AOS-VQM", "adVqmEndPointNumberCompletedCalls"), ("ADTRAN-AOS-VQM", "adVqmEndPointInterfaceId"), ("ADTRAN-AOS-VQM", "adVqmEndPointInterfaceName"), ("ADTRAN-AOS-VQM", "adVqmEndPointMosLqMinimum"), ("ADTRAN-AOS-VQM", "adVqmEndPointMosLqAverage"), ("ADTRAN-AOS-VQM", "adVqmEndPointMosLqMaximum"), ("ADTRAN-AOS-VQM", "adVqmEndPointMosPqMinimum"), ("ADTRAN-AOS-VQM", "adVqmEndPointMosPqAverage"), ("ADTRAN-AOS-VQM", "adVqmEndPointMosPqMaximum"), ("ADTRAN-AOS-VQM", "adVqmEndPointPktsLostTotal"), ("ADTRAN-AOS-VQM", "adVqmEndPointPktsOutOfOrder"), ("ADTRAN-AOS-VQM", "adVqmEndPointJitterMaximum"), ("ADTRAN-AOS-VQM", "adVqmEndPointNumberStreamsExcellent"), ("ADTRAN-AOS-VQM", "adVqmEndPointNumberStreamsGood"), ("ADTRAN-AOS-VQM", "adVqmEndPointNumberStreamsFair"), ("ADTRAN-AOS-VQM", "adVqmEndPointNumberStreamsPoor")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): adVQMEndPointGroup = adVQMEndPointGroup.setStatus('current') adVQMCallHistoryGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 6)).setObjects(("ADTRAN-AOS-VQM", "adVqmCallHistRtpSourceIp"), ("ADTRAN-AOS-VQM", "adVqmCallHistRtpSourcePort"), ("ADTRAN-AOS-VQM", "adVqmCallHistRtpDestIp"), ("ADTRAN-AOS-VQM", "adVqmCallHistRtpDestPort"), ("ADTRAN-AOS-VQM", "adVqmCallHistSsrcid"), ("ADTRAN-AOS-VQM", "adVqmCallHistTo"), ("ADTRAN-AOS-VQM", "adVqmCallHistFrom"), ("ADTRAN-AOS-VQM", "adVqmCallHistRtpSourceUri"), ("ADTRAN-AOS-VQM", "adVqmCallHistCallid"), ("ADTRAN-AOS-VQM", "adVqmCallHistCcmid"), ("ADTRAN-AOS-VQM", "adVqmCallHistSourceIntName"), ("ADTRAN-AOS-VQM", "adVqmCallHistDestIntName"), ("ADTRAN-AOS-VQM", "adVqmCallHistSourceIntDescription"), ("ADTRAN-AOS-VQM", "adVqmCallHistDestIntDescription"), ("ADTRAN-AOS-VQM", "adVqmCallHistCallStart"), ("ADTRAN-AOS-VQM", "adVqmCallHistCallDurationMs"), ("ADTRAN-AOS-VQM", "adVqmCallHistCodec"), ("ADTRAN-AOS-VQM", "adVqmCallHistCodecClass"), ("ADTRAN-AOS-VQM", "adVqmCallHistDscp"), ("ADTRAN-AOS-VQM", "adVqmCallHistPktsRcvdTotal"), ("ADTRAN-AOS-VQM", "adVqmCallHistPktsLostTotal"), ("ADTRAN-AOS-VQM", "adVqmCallHistPktsDiscardedTotal"), ("ADTRAN-AOS-VQM", "adVqmCallHistOutOfOrder"), ("ADTRAN-AOS-VQM", "adVqmCallHistPdvAverageMs"), ("ADTRAN-AOS-VQM", "adVqmCallHistPdvMaximumMs"), ("ADTRAN-AOS-VQM", "adVqmCallHistRtDelayInst"), ("ADTRAN-AOS-VQM", "adVqmCallHistRtDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmCallHistRtDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmCallHistOnewayDelayInst"), ("ADTRAN-AOS-VQM", "adVqmCallHistOnewayDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmCallHistOnewayDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmCallHistOrigDelayInst"), ("ADTRAN-AOS-VQM", "adVqmCallHistOrigDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmCallHistOrigDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmCallHistTermDelayMinimum"), ("ADTRAN-AOS-VQM", "adVqmCallHistTermDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmCallHistTermDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmCallHistRLq"), ("ADTRAN-AOS-VQM", "adVqmCallHistRCq"), ("ADTRAN-AOS-VQM", "adVqmCallHistRNominal"), ("ADTRAN-AOS-VQM", "adVqmCallHistRG107"), ("ADTRAN-AOS-VQM", "adVqmCallHistMosLq"), ("ADTRAN-AOS-VQM", "adVqmCallHistMosCq"), ("ADTRAN-AOS-VQM", "adVqmCallHistMosPq"), ("ADTRAN-AOS-VQM", "adVqmCallHistMosNominal"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegLoss"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegDiscard"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegVocoder"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegRecency"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegDelay"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegSiglvl"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegNoiselvl"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegEcholvl"), ("ADTRAN-AOS-VQM", "adVqmCallHistBurstRLq"), ("ADTRAN-AOS-VQM", "adVqmCallHistBurstCount"), ("ADTRAN-AOS-VQM", "adVqmCallHistBurstRateAvg"), ("ADTRAN-AOS-VQM", "adVqmCallHistBurstLenAvgPkts"), ("ADTRAN-AOS-VQM", "adVqmCallHistBurstLenAvgMsec"), ("ADTRAN-AOS-VQM", "adVqmCallHistGapR"), ("ADTRAN-AOS-VQM", "adVqmCallHistGapCount"), ("ADTRAN-AOS-VQM", "adVqmCallHistGapLossRateAvg"), ("ADTRAN-AOS-VQM", "adVqmCallHistGapLenPkts"), ("ADTRAN-AOS-VQM", "adVqmCallHistGapLenMsec"), ("ADTRAN-AOS-VQM", "adVqmCallHistLossRateAvg"), ("ADTRAN-AOS-VQM", "adVqmCallHistNetworkLossAvg"), ("ADTRAN-AOS-VQM", "adVqmCallHistDiscardRateAvg"), ("ADTRAN-AOS-VQM", "adVqmCallHistExcessBurst"), ("ADTRAN-AOS-VQM", "adVqmCallHistExcessGap"), ("ADTRAN-AOS-VQM", "adVqmCallHistPpdvMsec"), ("ADTRAN-AOS-VQM", "adVqmCallHistLateThresholdMs"), ("ADTRAN-AOS-VQM", "adVqmCallHistLateThresholdPc"), ("ADTRAN-AOS-VQM", "adVqmCallHistLateUnderThresh"), ("ADTRAN-AOS-VQM", "adVqmCallHistLateTotalCount"), ("ADTRAN-AOS-VQM", "adVqmCallHistLatePeakJitterMs"), ("ADTRAN-AOS-VQM", "adVqmCallHistEarlyThreshMs"), ("ADTRAN-AOS-VQM", "adVqmCallHistEarlyThreshPc"), ("ADTRAN-AOS-VQM", "adVqmCallHistEarlyUnderThresh"), ("ADTRAN-AOS-VQM", "adVqmCallHistEarlyTotalCount"), ("ADTRAN-AOS-VQM", "adVqmCallHistEarlyPeakJitterMs"), ("ADTRAN-AOS-VQM", "adVqmCallHistDelayIncreaseCount"), ("ADTRAN-AOS-VQM", "adVqmCallHistDelayDecreaseCount"), ("ADTRAN-AOS-VQM", "adVqmCallHistResyncCount"), ("ADTRAN-AOS-VQM", "adVqmCallHistJitterBufferType"), ("ADTRAN-AOS-VQM", "adVqmCallHistJbCfgMin"), ("ADTRAN-AOS-VQM", "adVqmCallHistJbCfgNom"), ("ADTRAN-AOS-VQM", "adVqmCallHistJbCfgMax"), ("ADTRAN-AOS-VQM", "adVqmCallHistDuplicatePkts"), ("ADTRAN-AOS-VQM", "adVqmCallHistEarlyPkts"), ("ADTRAN-AOS-VQM", "adVqmCallHistLatePkts"), ("ADTRAN-AOS-VQM", "adVqmCallHistOverrunDiscardPkts"), ("ADTRAN-AOS-VQM", "adVqmCallHistUnderrunDiscardPkts"), ("ADTRAN-AOS-VQM", "adVqmCallHistDelayMinMsec"), ("ADTRAN-AOS-VQM", "adVqmCallHistDelayAvgMsec"), ("ADTRAN-AOS-VQM", "adVqmCallHistDelayMaxMsec"), ("ADTRAN-AOS-VQM", "adVqmCallHistDelayCurrentMsec"), ("ADTRAN-AOS-VQM", "adVqmCallHistExtRLqIn"), ("ADTRAN-AOS-VQM", "adVqmCallHistExtRLqOut"), ("ADTRAN-AOS-VQM", "adVqmCallHistExtRCqIn"), ("ADTRAN-AOS-VQM", "adVqmCallHistExtRCqOut"), ("ADTRAN-AOS-VQM", "adVqmCallHistThroughPutIndex"), ("ADTRAN-AOS-VQM", "adVqmCallHistReliabilityIndex"), ("ADTRAN-AOS-VQM", "adVqmCallHistBitrate")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): adVQMCallHistoryGroup = adVQMCallHistoryGroup.setStatus('current') adVQMActiveCallGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 7)).setObjects(("ADTRAN-AOS-VQM", "adVqmActCallRtpSourceIp"), ("ADTRAN-AOS-VQM", "adVqmActCallRtpSourcePort"), ("ADTRAN-AOS-VQM", "adVqmActCallRtpDestIp"), ("ADTRAN-AOS-VQM", "adVqmActCallRtpDestPort"), ("ADTRAN-AOS-VQM", "adVqmActCallSsrcid"), ("ADTRAN-AOS-VQM", "adVqmActCallTo"), ("ADTRAN-AOS-VQM", "adVqmActCallFrom"), ("ADTRAN-AOS-VQM", "adVqmActCallRtpSourceUri"), ("ADTRAN-AOS-VQM", "adVqmActCallCallid"), ("ADTRAN-AOS-VQM", "adVqmActCallCcmid"), ("ADTRAN-AOS-VQM", "adVqmActCallSourceIntName"), ("ADTRAN-AOS-VQM", "adVqmActCallDestIntName"), ("ADTRAN-AOS-VQM", "adVqmActCallSourceIntDescription"), ("ADTRAN-AOS-VQM", "adVqmActCallDestIntDescription"), ("ADTRAN-AOS-VQM", "adVqmActCallCallStart"), ("ADTRAN-AOS-VQM", "adVqmActCallCallDurationMs"), ("ADTRAN-AOS-VQM", "adVqmActCallCodec"), ("ADTRAN-AOS-VQM", "adVqmActCallCodecClass"), ("ADTRAN-AOS-VQM", "adVqmActCallDscp"), ("ADTRAN-AOS-VQM", "adVqmActCallPktsRcvdTotal"), ("ADTRAN-AOS-VQM", "adVqmActCallPktsLostTotal"), ("ADTRAN-AOS-VQM", "adVqmActCallPktsDiscardedTotal"), ("ADTRAN-AOS-VQM", "adVqmActCallOutOfOrder"), ("ADTRAN-AOS-VQM", "adVqmActCallPdvAverageMs"), ("ADTRAN-AOS-VQM", "adVqmActCallPdvMaximumMs"), ("ADTRAN-AOS-VQM", "adVqmActCallRtDelayInst"), ("ADTRAN-AOS-VQM", "adVqmActCallRtDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmActCallRtDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmActCallOnewayDelayInst"), ("ADTRAN-AOS-VQM", "adVqmActCallOnewayDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmActCallOnewayDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmActCallOrigDelayInst"), ("ADTRAN-AOS-VQM", "adVqmActCallOrigDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmActCallOrigDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmActCallTermDelayMinimum"), ("ADTRAN-AOS-VQM", "adVqmActCallTermDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmActCallTermDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmActCallRLq"), ("ADTRAN-AOS-VQM", "adVqmActCallRCq"), ("ADTRAN-AOS-VQM", "adVqmActCallRNominal"), ("ADTRAN-AOS-VQM", "adVqmActCallRG107"), ("ADTRAN-AOS-VQM", "adVqmActCallMosLq"), ("ADTRAN-AOS-VQM", "adVqmActCallMosCq"), ("ADTRAN-AOS-VQM", "adVqmActCallMosPq"), ("ADTRAN-AOS-VQM", "adVqmActCallMosNominal"), ("ADTRAN-AOS-VQM", "adVqmActCallDegLoss"), ("ADTRAN-AOS-VQM", "adVqmActCallDegDiscard"), ("ADTRAN-AOS-VQM", "adVqmActCallDegVocoder"), ("ADTRAN-AOS-VQM", "adVqmActCallDegRecency"), ("ADTRAN-AOS-VQM", "adVqmActCallDegDelay"), ("ADTRAN-AOS-VQM", "adVqmActCallDegSiglvl"), ("ADTRAN-AOS-VQM", "adVqmActCallDegNoiselvl"), ("ADTRAN-AOS-VQM", "adVqmActCallDegEcholvl"), ("ADTRAN-AOS-VQM", "adVqmActCallBurstRLq"), ("ADTRAN-AOS-VQM", "adVqmActCallBurstCount"), ("ADTRAN-AOS-VQM", "adVqmActCallBurstRateAvg"), ("ADTRAN-AOS-VQM", "adVqmActCallBurstLenAvgPkts"), ("ADTRAN-AOS-VQM", "adVqmActCallBurstLenAvgMsec"), ("ADTRAN-AOS-VQM", "adVqmActCallGapR"), ("ADTRAN-AOS-VQM", "adVqmActCallGapCount"), ("ADTRAN-AOS-VQM", "adVqmActCallGapLossRateAvg"), ("ADTRAN-AOS-VQM", "adVqmActCallGapLenPkts"), ("ADTRAN-AOS-VQM", "adVqmActCallGapLenMsec"), ("ADTRAN-AOS-VQM", "adVqmActCallLossRateAvg"), ("ADTRAN-AOS-VQM", "adVqmActCallNetworkLossAvg"), ("ADTRAN-AOS-VQM", "adVqmActCallDiscardRateAvg"), ("ADTRAN-AOS-VQM", "adVqmActCallExcessBurst"), ("ADTRAN-AOS-VQM", "adVqmActCallExcessGap"), ("ADTRAN-AOS-VQM", "adVqmActCallPpdvMsec"), ("ADTRAN-AOS-VQM", "adVqmActCallLateThresholdMs"), ("ADTRAN-AOS-VQM", "adVqmActCallLateThresholdPc"), ("ADTRAN-AOS-VQM", "adVqmActCallLateUnderThresh"), ("ADTRAN-AOS-VQM", "adVqmActCallLateTotalCount"), ("ADTRAN-AOS-VQM", "adVqmActCallLatePeakJitterMs"), ("ADTRAN-AOS-VQM", "adVqmActCallEarlyThreshMs"), ("ADTRAN-AOS-VQM", "adVqmActCallEarlyThreshPc"), ("ADTRAN-AOS-VQM", "adVqmActCallEarlyUnderThresh"), ("ADTRAN-AOS-VQM", "adVqmActCallEarlyTotalCount"), ("ADTRAN-AOS-VQM", "adVqmActCallEarlyPeakJitterMs"), ("ADTRAN-AOS-VQM", "adVqmActCallDelayIncreaseCount"), ("ADTRAN-AOS-VQM", "adVqmActCallDelayDecreaseCount"), ("ADTRAN-AOS-VQM", "adVqmActCallResyncCount"), ("ADTRAN-AOS-VQM", "adVqmActCallJitterBufferType"), ("ADTRAN-AOS-VQM", "adVqmActCallJbCfgMin"), ("ADTRAN-AOS-VQM", "adVqmActCallJbCfgNom"), ("ADTRAN-AOS-VQM", "adVqmActCallJbCfgMax"), ("ADTRAN-AOS-VQM", "adVqmActCallDuplicatePkts"), ("ADTRAN-AOS-VQM", "adVqmActCallEarlyPkts"), ("ADTRAN-AOS-VQM", "adVqmActCallLatePkts"), ("ADTRAN-AOS-VQM", "adVqmActCallOverrunDiscardPkts"), ("ADTRAN-AOS-VQM", "adVqmActCallUnderrunDiscardPkts"), ("ADTRAN-AOS-VQM", "adVqmActCallDelayMinMsec"), ("ADTRAN-AOS-VQM", "adVqmActCallDelayAvgMsec"), ("ADTRAN-AOS-VQM", "adVqmActCallDelayMaxMsec"), ("ADTRAN-AOS-VQM", "adVqmActCallDelayCurrentMsec"), ("ADTRAN-AOS-VQM", "adVqmActCallExtRLqIn"), ("ADTRAN-AOS-VQM", "adVqmActCallExtRLqOut"), ("ADTRAN-AOS-VQM", "adVqmActCallExtRCqIn"), ("ADTRAN-AOS-VQM", "adVqmActCallExtRCqOut"), ("ADTRAN-AOS-VQM", "adVqmActCallThroughPutIndex"), ("ADTRAN-AOS-VQM", "adVqmActCallReliabilityIndex"), ("ADTRAN-AOS-VQM", "adVqmActCallBitrate")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): adVQMActiveCallGroup = adVQMActiveCallGroup.setStatus('current') adVQMTrapGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 8)).setObjects(("ADTRAN-AOS-VQM", "adVqmTrapState"), ("ADTRAN-AOS-VQM", "adVqmTrapCfgSeverityLevel"), ("ADTRAN-AOS-VQM", "adVqmTrapEventType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): adVQMTrapGroup = adVQMTrapGroup.setStatus('current') adVQMNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 9)).setObjects(("ADTRAN-AOS-VQM", "adVQMEndOfCallTrap")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): adVQMNotificationGroup = adVQMNotificationGroup.setStatus('current') mibBuilder.exportSymbols("ADTRAN-AOS-VQM", adVqmActCallDegNoiselvl=adVqmActCallDegNoiselvl, adVqmActCallCallStart=adVqmActCallCallStart, adVQMCallHistoryTable=adVQMCallHistoryTable, adVqmCfgJitterBufferFixedNominal=adVqmCfgJitterBufferFixedNominal, adVqmSysActiveFair=adVqmSysActiveFair, adVqmCallHistRtpDestIp=adVqmCallHistRtpDestIp, adVqmActCallLatePeakJitterMs=adVqmActCallLatePeakJitterMs, adVQMTrapControl=adVQMTrapControl, adVqmCallHistMosCq=adVqmCallHistMosCq, adVQMActiveCallEntry=adVQMActiveCallEntry, adVqmCallHistDiscardRateAvg=adVqmCallHistDiscardRateAvg, adVqmCallHistRLq=adVqmCallHistRLq, adVqmCallHistOnewayDelayAverage=adVqmCallHistOnewayDelayAverage, adVqmCallHistDelayIncreaseCount=adVqmCallHistDelayIncreaseCount, adVqmIfcDiscardsMinimum=adVqmIfcDiscardsMinimum, adVqmCfgSipEnable=adVqmCfgSipEnable, adVqmThresholdLossError=adVqmThresholdLossError, adVqmActCallMosPq=adVqmActCallMosPq, adVqmCallHistCallDurationMs=adVqmCallHistCallDurationMs, adVQMInterfaceGroup=adVQMInterfaceGroup, adVqmCallHistDegDelay=adVqmCallHistDegDelay, adVqmActCallJbCfgNom=adVqmActCallJbCfgNom, adVqmCfgHistoryThresholdPqmos=adVqmCfgHistoryThresholdPqmos, adVqmActCallDegEcholvl=adVqmActCallDegEcholvl, adVQMInterfaceTable=adVQMInterfaceTable, adVqmCfgHistoryThresholdLoss=adVqmCfgHistoryThresholdLoss, adVqmEndPointMosLqMaximum=adVqmEndPointMosLqMaximum, adVqmTrapCfgSeverityLevel=adVqmTrapCfgSeverityLevel, adVqmEndPointMosLqMinimum=adVqmEndPointMosLqMinimum, adVqmCallHistCodecClass=adVqmCallHistCodecClass, adVqmActCallDegLoss=adVqmActCallDegLoss, adVqmIfcRLqMaximum=adVqmIfcRLqMaximum, adVqmActCallDelayDecreaseCount=adVqmActCallDelayDecreaseCount, adVqmCallHistDegNoiselvl=adVqmCallHistDegNoiselvl, adVqmSysActiveGood=adVqmSysActiveGood, adVqmCallHistMosNominal=adVqmCallHistMosNominal, adVQMThresholdGroup=adVQMThresholdGroup, adVqmActCallTermDelayMinimum=adVqmActCallTermDelayMinimum, adVqmActCallDelayAvgMsec=adVqmActCallDelayAvgMsec, adVqmCfgUdpEnable=adVqmCfgUdpEnable, adVqmCallHistDelayMinMsec=adVqmCallHistDelayMinMsec, adVqmThresholdLqmosWarning=adVqmThresholdLqmosWarning, adVqmCallHistExcessGap=adVqmCallHistExcessGap, adVqmActCallBurstRateAvg=adVqmActCallBurstRateAvg, adVqmCallHistEarlyThreshMs=adVqmCallHistEarlyThreshMs, adVqmCallHistPktsDiscardedTotal=adVqmCallHistPktsDiscardedTotal, adVqmCallHistOrigDelayAverage=adVqmCallHistOrigDelayAverage, adVqmActCallGapLenMsec=adVqmActCallGapLenMsec, adVqmEndPointNumberStreamsPoor=adVqmEndPointNumberStreamsPoor, adVqmCallHistDestIntName=adVqmCallHistDestIntName, adVqmActCallDiscardRateAvg=adVqmActCallDiscardRateAvg, adVqmActCallExcessGap=adVqmActCallExcessGap, adVqmActCallExtRCqOut=adVqmActCallExtRCqOut, adVqmActCallLateUnderThresh=adVqmActCallLateUnderThresh, adVqmCallHistJitterBufferType=adVqmCallHistJitterBufferType, adVqmCallHistRtpSourceUri=adVqmCallHistRtpSourceUri, adVqmCallHistLossRateAvg=adVqmCallHistLossRateAvg, adVqmCallHistLateThresholdMs=adVqmCallHistLateThresholdMs, adVqmCallHistBurstLenAvgMsec=adVqmCallHistBurstLenAvgMsec, adVqmCallHistReliabilityIndex=adVqmCallHistReliabilityIndex, adVqmThresholdLqmosInfo=adVqmThresholdLqmosInfo, adVqmActCallDscp=adVqmActCallDscp, adVqmIfcLossAverage=adVqmIfcLossAverage, adVqmActCallTermDelayAverage=adVqmActCallTermDelayAverage, adVqmActCallLatePkts=adVqmActCallLatePkts, adVqmActCallEarlyThreshMs=adVqmActCallEarlyThreshMs, adVqmActCallEarlyThreshPc=adVqmActCallEarlyThreshPc, adVQMEndOfCallTrap=adVQMEndOfCallTrap, adVqmThresholdLossInfo=adVqmThresholdLossInfo, adVQMCfgGroup=adVQMCfgGroup, adVqmIfcRCqMinimum=adVqmIfcRCqMinimum, adVqmActCallRtpDestIp=adVqmActCallRtpDestIp, adVqmActCallEarlyUnderThresh=adVqmActCallEarlyUnderThresh, adVqmCallHistMosLq=adVqmCallHistMosLq, adVqmCallHistMosPq=adVqmCallHistMosPq, adVqmEndPointJitterMaximum=adVqmEndPointJitterMaximum, adVqmIfcPktsRx=adVqmIfcPktsRx, adVqmThresholdOutOfOrderNotice=adVqmThresholdOutOfOrderNotice, adVqmCallHistGapLenPkts=adVqmCallHistGapLenPkts, adVqmActCallRtDelayInst=adVqmActCallRtDelayInst, adVqmThresholdJitterWarning=adVqmThresholdJitterWarning, adVqmSysCallHistoryExcellent=adVqmSysCallHistoryExcellent, adVqmEndPointInterfaceName=adVqmEndPointInterfaceName, adVqmActCallOnewayDelayAverage=adVqmActCallOnewayDelayAverage, adVqmIfcRCqMaximum=adVqmIfcRCqMaximum, adVqmActCallRtpSourcePort=adVqmActCallRtpSourcePort, adVqmThresholdLqmosError=adVqmThresholdLqmosError, adVqmActCallCcmid=adVqmActCallCcmid, adGenAOSVqmCompliances=adGenAOSVqmCompliances, adVqmCallHistDegSiglvl=adVqmCallHistDegSiglvl, adVqmIfcDelayMaxMsec=adVqmIfcDelayMaxMsec, adVqmIfcMosLqMaximum=adVqmIfcMosLqMaximum, adVQMTrap=adVQMTrap, adVqmCallHistEarlyThreshPc=adVqmCallHistEarlyThreshPc, adVqmCallHistExtRCqOut=adVqmCallHistExtRCqOut, adVqmThresholdOutOfOrderInfo=adVqmThresholdOutOfOrderInfo, adVqmActCallExtRCqIn=adVqmActCallExtRCqIn, adVQMEndPointEntry=adVQMEndPointEntry, adVqmCallHistDscp=adVqmCallHistDscp, MOSvalue=MOSvalue, adVqmCallHistJbCfgNom=adVqmCallHistJbCfgNom, adVqmActCallFrom=adVqmActCallFrom, adVqmSysCallHistoryGood=adVqmSysCallHistoryGood, adVqmEndPointNumberCompletedCalls=adVqmEndPointNumberCompletedCalls, adVqmSysCallHistoryFair=adVqmSysCallHistoryFair, adVqmThresholdLossNotice=adVqmThresholdLossNotice, adVqmCallHistBurstLenAvgPkts=adVqmCallHistBurstLenAvgPkts, adVqmSysActivePoor=adVqmSysActivePoor, adVqmActCallLateThresholdPc=adVqmActCallLateThresholdPc, adVqmActCallSsrcid=adVqmActCallSsrcid, adVqmIfcMosLqMinimum=adVqmIfcMosLqMinimum, adVqmCallHistRG107=adVqmCallHistRG107, adVqmCallHistRtDelayMaximum=adVqmCallHistRtDelayMaximum, adVqmActCallDegVocoder=adVqmActCallDegVocoder, adVqmIfcRG107Maximum=adVqmIfcRG107Maximum, adVqmEndPointInterfaceId=adVqmEndPointInterfaceId, adVqmCallHistTermDelayMinimum=adVqmCallHistTermDelayMinimum, adVQMEndPoint=adVQMEndPoint, adVqmCallHistPpdvMsec=adVqmCallHistPpdvMsec, adVqmCfgJitterBufferFixedSize=adVqmCfgJitterBufferFixedSize, adVqmActCallDegDelay=adVqmActCallDegDelay, adGenAOSVqmFullCompliance=adGenAOSVqmFullCompliance, adVqmIfcMosCqMaximum=adVqmIfcMosCqMaximum, adVqmActCallGapLenPkts=adVqmActCallGapLenPkts, adVqmActCallOutOfOrder=adVqmActCallOutOfOrder, adVqmActCallExtRLqIn=adVqmActCallExtRLqIn, adVqmCallHistFrom=adVqmCallHistFrom, adVQMActive=adVQMActive, adVqmCallHistTermDelayAverage=adVqmCallHistTermDelayAverage, adVqmIfcMosCqAverage=adVqmIfcMosCqAverage, adVqmCfgEnable=adVqmCfgEnable, adVqmActCallJbCfgMin=adVqmActCallJbCfgMin, adVqmActCallPktsLostTotal=adVqmActCallPktsLostTotal, adVqmActCallExcessBurst=adVqmActCallExcessBurst, adVqmCfgJitterBufferThresholdEarlyMs=adVqmCfgJitterBufferThresholdEarlyMs, MsecValue=MsecValue, adVqmActCallRLq=adVqmActCallRLq, adVqmActCallMosLq=adVqmActCallMosLq, adVqmThresholdJitterInfo=adVqmThresholdJitterInfo, adVqmCallHistTo=adVqmCallHistTo, adVqmCfgJitterBufferAdaptiveMin=adVqmCfgJitterBufferAdaptiveMin, adVqmSysActiveExcellent=adVqmSysActiveExcellent, adVqmActCallPdvMaximumMs=adVqmActCallPdvMaximumMs, adVqmActCallDelayCurrentMsec=adVqmActCallDelayCurrentMsec, adVqmCallHistDelayDecreaseCount=adVqmCallHistDelayDecreaseCount, adVqmCallHistEarlyPkts=adVqmCallHistEarlyPkts, adVqmActCallOrigDelayMaximum=adVqmActCallOrigDelayMaximum, adVQMCfg=adVQMCfg, adVqmCfgJitterBufferAdaptiveNominal=adVqmCfgJitterBufferAdaptiveNominal, adVqmIfcRG107Minimum=adVqmIfcRG107Minimum, adVqmIfcRG107Average=adVqmIfcRG107Average, adVqmActCallJitterBufferType=adVqmActCallJitterBufferType, adVqmCallHistRtDelayInst=adVqmCallHistRtDelayInst, adVqmEndPointNumberStreamsExcellent=adVqmEndPointNumberStreamsExcellent, adGenAOSVQMMib=adGenAOSVQMMib, adVqmActCallGapLossRateAvg=adVqmActCallGapLossRateAvg, adVqmThresholdPqmosWarning=adVqmThresholdPqmosWarning, adVqmCallHistBitrate=adVqmCallHistBitrate, adVqmCallHistExcessBurst=adVqmCallHistExcessBurst, adVqmCallHistOrigDelayMaximum=adVqmCallHistOrigDelayMaximum, adVqmCallHistLateUnderThresh=adVqmCallHistLateUnderThresh, adVqmCallHistDegVocoder=adVqmCallHistDegVocoder, adVqmActCallBurstLenAvgPkts=adVqmActCallBurstLenAvgPkts, adVqmActCallCodec=adVqmActCallCodec, adVqmActCallRNominal=adVqmActCallRNominal, adVqmActCallCallid=adVqmActCallCallid, adVqmCallHistDelayAvgMsec=adVqmCallHistDelayAvgMsec, adVqmThresholdPqmosError=adVqmThresholdPqmosError, adVQMInterface=adVQMInterface, adVqmActCallResyncCount=adVqmActCallResyncCount, adVqmActCallLateThresholdMs=adVqmActCallLateThresholdMs, adVqmActCallOverrunDiscardPkts=adVqmActCallOverrunDiscardPkts, adVqmActCallTermDelayMaximum=adVqmActCallTermDelayMaximum, adVqmCallHistRtpSourceIp=adVqmCallHistRtpSourceIp, adVqmCallHistRtDelayAverage=adVqmCallHistRtDelayAverage, adVqmCallHistBurstRLq=adVqmCallHistBurstRLq, adVqmTrapEventType=adVqmTrapEventType, adVqmActCallDegRecency=adVqmActCallDegRecency, adVqmActCallMosNominal=adVqmActCallMosNominal, adVqmActCallDelayIncreaseCount=adVqmActCallDelayIncreaseCount, adVqmCallHistSsrcid=adVqmCallHistSsrcid, adVqmThresholdPqmosNotice=adVqmThresholdPqmosNotice, adVqmActCallSourceIntDescription=adVqmActCallSourceIntDescription, adVqmActCallBurstRLq=adVqmActCallBurstRLq, adVqmCallHistThroughPutIndex=adVqmCallHistThroughPutIndex, adVqmActCallRCq=adVqmActCallRCq, adVqmCallHistDegRecency=adVqmCallHistDegRecency, adVqmActCallOrigDelayAverage=adVqmActCallOrigDelayAverage, adVqmIfcDelayMinMsec=adVqmIfcDelayMinMsec, adVqmCfgClearCallHistory=adVqmCfgClearCallHistory, adVqmThresholdJitterNotice=adVqmThresholdJitterNotice, adVqmActCallPktsRcvdTotal=adVqmActCallPktsRcvdTotal, adVqmCallHistCallStart=adVqmCallHistCallStart, adVqmActCallPpdvMsec=adVqmActCallPpdvMsec, adVqmIfcDiscardsMaximum=adVqmIfcDiscardsMaximum, adVqmCallHistPktsLostTotal=adVqmCallHistPktsLostTotal, adVqmActCallDelayMinMsec=adVqmActCallDelayMinMsec, adVqmCallHistSourceIntName=adVqmCallHistSourceIntName, adVqmActCallJbCfgMax=adVqmActCallJbCfgMax, adVqmCfgHistoryThresholdJitter=adVqmCfgHistoryThresholdJitter, adVqmCfgCallHistorySize=adVqmCfgCallHistorySize, adVqmSysCallHistoryCalls=adVqmSysCallHistoryCalls, adVqmCallHistExtRLqOut=adVqmCallHistExtRLqOut, adVqmCallHistBurstCount=adVqmCallHistBurstCount, adVqmCfgHistoryThresholdLqmos=adVqmCfgHistoryThresholdLqmos, adVQMActiveCallGroup=adVQMActiveCallGroup, adVqmThresholdOutOfOrderWarning=adVqmThresholdOutOfOrderWarning, adVqmCallHistEarlyPeakJitterMs=adVqmCallHistEarlyPeakJitterMs, adVqmCallHistDelayMaxMsec=adVqmCallHistDelayMaxMsec, adVqmIfcTerminatedCalls=adVqmIfcTerminatedCalls, adVqmCfgJitterBufferType=adVqmCfgJitterBufferType, adVqmThresholdPqmosInfo=adVqmThresholdPqmosInfo, adVqmCallHistPdvMaximumMs=adVqmCallHistPdvMaximumMs, adVqmActCallDestIntName=adVqmActCallDestIntName, adVqmSysAllCallsPoor=adVqmSysAllCallsPoor, adVqmActCallDegSiglvl=adVqmActCallDegSiglvl, adVqmIfcPktsLost=adVqmIfcPktsLost, adVqmCallHistPktsRcvdTotal=adVqmCallHistPktsRcvdTotal, adVqmActCallReliabilityIndex=adVqmActCallReliabilityIndex, adVqmThresholdOutOfOrderError=adVqmThresholdOutOfOrderError, adVqmCallHistOnewayDelayMaximum=adVqmCallHistOnewayDelayMaximum, adVqmCallHistLateThresholdPc=adVqmCallHistLateThresholdPc, adVqmIfcRLqAverage=adVqmIfcRLqAverage, adVqmCallHistDegEcholvl=adVqmCallHistDegEcholvl, adVqmActCallSourceIntName=adVqmActCallSourceIntName, adVqmIfcDiscardsAverage=adVqmIfcDiscardsAverage, adVqmIfcMosPqMaximum=adVqmIfcMosPqMaximum, adVqmCallHistUnderrunDiscardPkts=adVqmCallHistUnderrunDiscardPkts, adVQMSysPerf=adVQMSysPerf, adVQM=adVQM, adVqmActCallBitrate=adVqmActCallBitrate, adVqmCfgJitterBufferThresholdLateMs=adVqmCfgJitterBufferThresholdLateMs, adVqmActCallOrigDelayInst=adVqmActCallOrigDelayInst, adVqmEndPointMosLqAverage=adVqmEndPointMosLqAverage, adVqmActCallRtDelayMaximum=adVqmActCallRtDelayMaximum, adVqmActCallOnewayDelayInst=adVqmActCallOnewayDelayInst, adVqmIfcPdvMaximumMs=adVqmIfcPdvMaximumMs, adVqmIfcNumberStreamsFair=adVqmIfcNumberStreamsFair, adVqmActCallUnderrunDiscardPkts=adVqmActCallUnderrunDiscardPkts, adVqmActCallDegDiscard=adVqmActCallDegDiscard, adVqmActCallTo=adVqmActCallTo, adVqmActCallPdvAverageMs=adVqmActCallPdvAverageMs, adVqmCallHistTermDelayMaximum=adVqmCallHistTermDelayMaximum, adVqmEndPointMosPqAverage=adVqmEndPointMosPqAverage, adGenAOSVqmConformance=adGenAOSVqmConformance, adVqmIfcMosLqAverage=adVqmIfcMosLqAverage, adVqmSysCallHistoryPoor=adVqmSysCallHistoryPoor, adVqmIfcMosPqMinimum=adVqmIfcMosPqMinimum, adVqmActCallGapR=adVqmActCallGapR, adVqmCallHistRtpSourcePort=adVqmCallHistRtpSourcePort, adVqmIfcLossMaximum=adVqmIfcLossMaximum, adVqmIfcRCqAverage=adVqmIfcRCqAverage, adVqmCallHistGapCount=adVqmCallHistGapCount, adVqmActCallRG107=adVqmActCallRG107) mibBuilder.exportSymbols("ADTRAN-AOS-VQM", adVqmCallHistDegDiscard=adVqmCallHistDegDiscard, adVqmCallHistBurstRateAvg=adVqmCallHistBurstRateAvg, adVqmIfcName=adVqmIfcName, adVqmCallHistOnewayDelayInst=adVqmCallHistOnewayDelayInst, adVQMActiveCallTable=adVQMActiveCallTable, adVqmCallHistOrigDelayInst=adVqmCallHistOrigDelayInst, adVqmIfcNumberStreamsPoor=adVqmIfcNumberStreamsPoor, adVQMTrapGroup=adVQMTrapGroup, adVqmEndPointMosPqMinimum=adVqmEndPointMosPqMinimum, adVQMEndPointGroup=adVQMEndPointGroup, adVqmEndPointRtpSourceIp=adVqmEndPointRtpSourceIp, adVqmActCallRtpSourceUri=adVqmActCallRtpSourceUri, adVqmCallHistEarlyUnderThresh=adVqmCallHistEarlyUnderThresh, adVqmIfcNumberStreamsGood=adVqmIfcNumberStreamsGood, adVqmCallHistLateTotalCount=adVqmCallHistLateTotalCount, adVqmCallHistDestIntDescription=adVqmCallHistDestIntDescription, adVqmCfgHistoryThresholdCqmos=adVqmCfgHistoryThresholdCqmos, adVqmCfgInternationalCode=adVqmCfgInternationalCode, adVqmCfgJitterBufferAdaptiveMax=adVqmCfgJitterBufferAdaptiveMax, adVqmCallHistOutOfOrder=adVqmCallHistOutOfOrder, adVqmCallHistRNominal=adVqmCallHistRNominal, adVqmCallHistJbCfgMax=adVqmCallHistJbCfgMax, adVqmCfgHistoryThresholdOutOfOrder=adVqmCfgHistoryThresholdOutOfOrder, adVqmActCallDelayMaxMsec=adVqmActCallDelayMaxMsec, adVqmActCallCallDurationMs=adVqmActCallCallDurationMs, adVqmIfcPktsDiscarded=adVqmIfcPktsDiscarded, adVQMNotificationGroup=adVQMNotificationGroup, adVqmActCallRtpDestPort=adVqmActCallRtpDestPort, adVQMHistory=adVQMHistory, adVqmIfcDelayAvgMsec=adVqmIfcDelayAvgMsec, adVqmActCallLateTotalCount=adVqmActCallLateTotalCount, adVqmActCallCodecClass=adVqmActCallCodecClass, adVQMThreshold=adVQMThreshold, adVqmIfcPktsOoo=adVqmIfcPktsOoo, adVqmActCallBurstLenAvgMsec=adVqmActCallBurstLenAvgMsec, adVqmActCallBurstCount=adVqmActCallBurstCount, adVqmSysAllCallsFair=adVqmSysAllCallsFair, adVqmIfcId=adVqmIfcId, adVqmTrapState=adVqmTrapState, adVqmCallHistRCq=adVqmCallHistRCq, Percentage=Percentage, adVqmIfcNumberStreamsExcellent=adVqmIfcNumberStreamsExcellent, adVqmActCallOnewayDelayMaximum=adVqmActCallOnewayDelayMaximum, adVqmActCallPktsDiscardedTotal=adVqmActCallPktsDiscardedTotal, adVqmCallHistSourceIntDescription=adVqmCallHistSourceIntDescription, adVqmIfcMosCqMinimum=adVqmIfcMosCqMinimum, adVqmCallHistDuplicatePkts=adVqmCallHistDuplicatePkts, PYSNMP_MODULE_ID=adGenAOSVQMMib, adVqmCallHistLatePkts=adVqmCallHistLatePkts, adVqmCallHistOverrunDiscardPkts=adVqmCallHistOverrunDiscardPkts, adVqmActCallDuplicatePkts=adVqmActCallDuplicatePkts, adVqmCfgRoundTripPingEnabled=adVqmCfgRoundTripPingEnabled, adVQMCallHistoryGroup=adVQMCallHistoryGroup, adVqmActCallExtRLqOut=adVqmActCallExtRLqOut, adVqmCallHistExtRCqIn=adVqmCallHistExtRCqIn, adVqmIfcPdvAverageMs=adVqmIfcPdvAverageMs, adVqmIfcClear=adVqmIfcClear, adVqmIfcRLqMinimum=adVqmIfcRLqMinimum, adVqmEndPointPktsLostTotal=adVqmEndPointPktsLostTotal, adVqmThresholdLossWarning=adVqmThresholdLossWarning, adVqmIfcMosPqAverage=adVqmIfcMosPqAverage, adVqmActCallLossRateAvg=adVqmActCallLossRateAvg, adVqmIfcNumberActiveCalls=adVqmIfcNumberActiveCalls, adVqmEndPointMosPqMaximum=adVqmEndPointMosPqMaximum, adVqmCallHistExtRLqIn=adVqmCallHistExtRLqIn, adVqmCallHistDegLoss=adVqmCallHistDegLoss, adVqmCallHistGapR=adVqmCallHistGapR, adVqmEndPointNumberStreamsGood=adVqmEndPointNumberStreamsGood, adVqmActCallRtDelayAverage=adVqmActCallRtDelayAverage, adVqmSysAllCallsGood=adVqmSysAllCallsGood, adVqmEndPointPktsOutOfOrder=adVqmEndPointPktsOutOfOrder, adVqmActCallGapCount=adVqmActCallGapCount, adVqmCallHistGapLenMsec=adVqmCallHistGapLenMsec, adVQMSysPerfGroup=adVQMSysPerfGroup, adVqmActCallDestIntDescription=adVqmActCallDestIntDescription, adVqmActCallMosCq=adVqmActCallMosCq, adVqmActCallNetworkLossAvg=adVqmActCallNetworkLossAvg, adVqmActCallThroughPutIndex=adVqmActCallThroughPutIndex, adVqmActCallEarlyPkts=adVqmActCallEarlyPkts, adVqmCallHistCallid=adVqmCallHistCallid, adVqmEndPointNumberStreamsFair=adVqmEndPointNumberStreamsFair, adVqmCallHistResyncCount=adVqmCallHistResyncCount, adVqmCallHistDelayCurrentMsec=adVqmCallHistDelayCurrentMsec, adVqmCallHistRtpDestPort=adVqmCallHistRtpDestPort, adVqmActCallEarlyPeakJitterMs=adVqmActCallEarlyPeakJitterMs, adVQMEndPointTable=adVQMEndPointTable, adVqmActCallRtpSourceIp=adVqmActCallRtpSourceIp, adVqmActCallEarlyTotalCount=adVqmActCallEarlyTotalCount, adGenAOSVqmGroups=adGenAOSVqmGroups, adVqmThresholdLqmosNotice=adVqmThresholdLqmosNotice, adVqmSysActiveCalls=adVqmSysActiveCalls, adVqmSysAllCallsExcellent=adVqmSysAllCallsExcellent, adVqmThresholdJitterError=adVqmThresholdJitterError, adVqmCfgClear=adVqmCfgClear, adVqmCallHistEarlyTotalCount=adVqmCallHistEarlyTotalCount, adVQMInterfaceEntry=adVQMInterfaceEntry, adVqmCallHistPdvAverageMs=adVqmCallHistPdvAverageMs, adVqmCallHistNetworkLossAvg=adVqmCallHistNetworkLossAvg, adVqmCallHistLatePeakJitterMs=adVqmCallHistLatePeakJitterMs, adVqmIfcLossMinimum=adVqmIfcLossMinimum, adVqmCallHistCodec=adVqmCallHistCodec, adVqmCallHistCcmid=adVqmCallHistCcmid, adVqmCallHistJbCfgMin=adVqmCallHistJbCfgMin, adVqmCfgRoundTripPingType=adVqmCfgRoundTripPingType, adVqmCallHistGapLossRateAvg=adVqmCallHistGapLossRateAvg, adVQMCallHistoryEntry=adVQMCallHistoryEntry)
(ad_gen_aos_voice, ad_gen_aos_conformance) = mibBuilder.importSymbols('ADTRAN-AOS', 'adGenAOSVoice', 'adGenAOSConformance') (ad_identity,) = mibBuilder.importSymbols('ADTRAN-MIB', 'adIdentity') (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, constraints_union, single_value_constraint, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (mib_identifier, counter32, object_identity, time_ticks, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, gauge32, ip_address, integer32, bits, iso, counter64, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'Counter32', 'ObjectIdentity', 'TimeTicks', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'Gauge32', 'IpAddress', 'Integer32', 'Bits', 'iso', 'Counter64', 'ModuleIdentity') (textual_convention, date_and_time, display_string, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DateAndTime', 'DisplayString', 'TruthValue') ad_gen_aosvqm_mib = module_identity((1, 3, 6, 1, 4, 1, 664, 6, 10000, 53, 5, 3)) if mibBuilder.loadTexts: adGenAOSVQMMib.setLastUpdated('200901060000Z') if mibBuilder.loadTexts: adGenAOSVQMMib.setOrganization('ADTRAN, Inc.') ad_vqm = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3)) ad_vqm_trap = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 0)) ad_vqm_trap_control = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1)) ad_vqm_cfg = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2)) ad_vqm_threshold = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3)) ad_vqm_sys_perf = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4)) ad_vqm_interface = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5)) ad_vqm_end_point = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6)) ad_vqm_history = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7)) ad_vqm_active = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8)) class Mosvalue(TextualConvention, Integer32): status = 'current' display_hint = 'd' subtype_spec = Integer32.subtypeSpec + constraints_union(value_range_constraint(100, 1000), value_range_constraint(65535, 65535)) class Percentage(TextualConvention, Integer32): status = 'current' display_hint = 'd' subtype_spec = Integer32.subtypeSpec + constraints_union(value_range_constraint(0, 1000), value_range_constraint(65535, 65535)) class Msecvalue(TextualConvention, Integer32): status = 'current' display_hint = 'd' ad_vqm_end_of_call_trap = notification_type((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 0, 1)).setObjects(('ADTRAN-AOS-VQM', 'adVqmTrapEventType'), ('ADTRAN-AOS-VQM', 'adVqmCallHistMosLq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistMosPq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPktsLostTotal'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOutOfOrder'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPdvAverageMs')) if mibBuilder.loadTexts: adVQMEndOfCallTrap.setStatus('current') ad_vqm_trap_state = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1, 1), 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: adVqmTrapState.setStatus('current') ad_vqm_trap_cfg_severity_level = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('error', 1), ('warning', 2), ('notice', 3), ('info', 4))).clone('warning')).setMaxAccess('readwrite') if mibBuilder.loadTexts: adVqmTrapCfgSeverityLevel.setStatus('current') ad_vqm_trap_event_type = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1, 3), bits().clone(namedValues=named_values(('lQMos', 0), ('pQMos', 1), ('loss', 2), ('outOfOrder', 3), ('jitter', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmTrapEventType.setStatus('current') ad_vqm_cfg_enable = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgEnable.setStatus('current') ad_vqm_cfg_sip_enable = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgSipEnable.setStatus('current') ad_vqm_cfg_udp_enable = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgUdpEnable.setStatus('current') ad_vqm_cfg_international_code = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 5))).clone(namedValues=named_values(('none', 1), ('japan', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgInternationalCode.setStatus('current') ad_vqm_cfg_jitter_buffer_type = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('jitterBufferFixed', 1), ('jitterBufferAdaptive', 2), ('jitterBufferUnknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgJitterBufferType.setStatus('current') ad_vqm_cfg_jitter_buffer_adaptive_min = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgJitterBufferAdaptiveMin.setStatus('current') ad_vqm_cfg_jitter_buffer_adaptive_nominal = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 7), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgJitterBufferAdaptiveNominal.setStatus('current') ad_vqm_cfg_jitter_buffer_adaptive_max = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 8), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgJitterBufferAdaptiveMax.setStatus('current') ad_vqm_cfg_jitter_buffer_fixed_nominal = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 9), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgJitterBufferFixedNominal.setStatus('current') ad_vqm_cfg_jitter_buffer_fixed_size = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 10), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgJitterBufferFixedSize.setStatus('current') ad_vqm_cfg_jitter_buffer_threshold_early_ms = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 11), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgJitterBufferThresholdEarlyMs.setStatus('current') ad_vqm_cfg_jitter_buffer_threshold_late_ms = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 12), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgJitterBufferThresholdLateMs.setStatus('current') ad_vqm_cfg_round_trip_ping_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgRoundTripPingEnabled.setStatus('current') ad_vqm_cfg_round_trip_ping_type = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ping', 1), ('timestamp', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgRoundTripPingType.setStatus('current') ad_vqm_cfg_call_history_size = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 15), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgCallHistorySize.setStatus('current') ad_vqm_cfg_history_threshold_lqmos = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 16), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgHistoryThresholdLqmos.setStatus('current') ad_vqm_cfg_history_threshold_cqmos = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 17), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgHistoryThresholdCqmos.setStatus('current') ad_vqm_cfg_history_threshold_pqmos = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 18), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgHistoryThresholdPqmos.setStatus('current') ad_vqm_cfg_history_threshold_loss = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 19), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgHistoryThresholdLoss.setStatus('current') ad_vqm_cfg_history_threshold_out_of_order = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 20), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgHistoryThresholdOutOfOrder.setStatus('current') ad_vqm_cfg_history_threshold_jitter = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 21), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCfgHistoryThresholdJitter.setStatus('current') ad_vqm_cfg_clear = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('clear', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: adVqmCfgClear.setStatus('current') ad_vqm_cfg_clear_call_history = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('clear', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: adVqmCfgClearCallHistory.setStatus('current') ad_vqm_threshold_lqmos_info = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 1), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdLqmosInfo.setStatus('current') ad_vqm_threshold_lqmos_notice = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 2), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdLqmosNotice.setStatus('current') ad_vqm_threshold_lqmos_warning = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 3), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdLqmosWarning.setStatus('current') ad_vqm_threshold_lqmos_error = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 4), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdLqmosError.setStatus('current') ad_vqm_threshold_pqmos_info = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 5), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdPqmosInfo.setStatus('current') ad_vqm_threshold_pqmos_notice = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 6), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdPqmosNotice.setStatus('current') ad_vqm_threshold_pqmos_warning = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 7), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdPqmosWarning.setStatus('current') ad_vqm_threshold_pqmos_error = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 8), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdPqmosError.setStatus('current') ad_vqm_threshold_out_of_order_info = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 9), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdOutOfOrderInfo.setStatus('current') ad_vqm_threshold_out_of_order_notice = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 10), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdOutOfOrderNotice.setStatus('current') ad_vqm_threshold_out_of_order_warning = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 11), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdOutOfOrderWarning.setStatus('current') ad_vqm_threshold_out_of_order_error = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 12), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdOutOfOrderError.setStatus('current') ad_vqm_threshold_loss_info = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 13), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdLossInfo.setStatus('current') ad_vqm_threshold_loss_notice = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 14), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdLossNotice.setStatus('current') ad_vqm_threshold_loss_warning = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 15), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdLossWarning.setStatus('current') ad_vqm_threshold_loss_error = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 16), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdLossError.setStatus('current') ad_vqm_threshold_jitter_info = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 17), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdJitterInfo.setStatus('current') ad_vqm_threshold_jitter_notice = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 18), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdJitterNotice.setStatus('current') ad_vqm_threshold_jitter_warning = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 19), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdJitterWarning.setStatus('current') ad_vqm_threshold_jitter_error = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 20), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmThresholdJitterError.setStatus('current') ad_vqm_sys_active_calls = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmSysActiveCalls.setStatus('current') ad_vqm_sys_active_excellent = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmSysActiveExcellent.setStatus('current') ad_vqm_sys_active_good = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmSysActiveGood.setStatus('current') ad_vqm_sys_active_fair = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmSysActiveFair.setStatus('current') ad_vqm_sys_active_poor = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmSysActivePoor.setStatus('current') ad_vqm_sys_call_history_calls = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmSysCallHistoryCalls.setStatus('current') ad_vqm_sys_call_history_excellent = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmSysCallHistoryExcellent.setStatus('current') ad_vqm_sys_call_history_good = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmSysCallHistoryGood.setStatus('current') ad_vqm_sys_call_history_fair = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmSysCallHistoryFair.setStatus('current') ad_vqm_sys_call_history_poor = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmSysCallHistoryPoor.setStatus('current') ad_vqm_sys_all_calls_excellent = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmSysAllCallsExcellent.setStatus('current') ad_vqm_sys_all_calls_good = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmSysAllCallsGood.setStatus('current') ad_vqm_sys_all_calls_fair = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmSysAllCallsFair.setStatus('current') ad_vqm_sys_all_calls_poor = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmSysAllCallsPoor.setStatus('current') ad_vqm_interface_table = mib_table((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1)) if mibBuilder.loadTexts: adVQMInterfaceTable.setStatus('current') ad_vqm_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1)).setIndexNames((0, 'ADTRAN-AOS-VQM', 'adVqmIfcId')) if mibBuilder.loadTexts: adVQMInterfaceEntry.setStatus('current') ad_vqm_ifc_id = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcId.setStatus('current') ad_vqm_ifc_name = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcName.setStatus('current') ad_vqm_ifc_pkts_rx = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcPktsRx.setStatus('current') ad_vqm_ifc_pkts_lost = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcPktsLost.setStatus('current') ad_vqm_ifc_pkts_ooo = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcPktsOoo.setStatus('current') ad_vqm_ifc_pkts_discarded = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcPktsDiscarded.setStatus('current') ad_vqm_ifc_number_active_calls = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcNumberActiveCalls.setStatus('current') ad_vqm_ifc_terminated_calls = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcTerminatedCalls.setStatus('current') ad_vqm_ifc_r_lq_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 9), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcRLqMinimum.setStatus('current') ad_vqm_ifc_r_lq_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 10), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcRLqAverage.setStatus('current') ad_vqm_ifc_r_lq_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 11), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcRLqMaximum.setStatus('current') ad_vqm_ifc_r_cq_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 12), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcRCqMinimum.setStatus('current') ad_vqm_ifc_r_cq_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 13), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcRCqAverage.setStatus('current') ad_vqm_ifc_r_cq_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 14), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcRCqMaximum.setStatus('current') ad_vqm_ifc_rg107_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 15), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcRG107Minimum.setStatus('current') ad_vqm_ifc_rg107_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 16), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcRG107Average.setStatus('current') ad_vqm_ifc_rg107_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 17), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcRG107Maximum.setStatus('current') ad_vqm_ifc_mos_lq_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 18), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcMosLqMinimum.setStatus('current') ad_vqm_ifc_mos_lq_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 19), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcMosLqAverage.setStatus('current') ad_vqm_ifc_mos_lq_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 20), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcMosLqMaximum.setStatus('current') ad_vqm_ifc_mos_cq_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 21), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcMosCqMinimum.setStatus('current') ad_vqm_ifc_mos_cq_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 22), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcMosCqAverage.setStatus('current') ad_vqm_ifc_mos_cq_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 23), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcMosCqMaximum.setStatus('current') ad_vqm_ifc_mos_pq_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 24), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcMosPqMinimum.setStatus('current') ad_vqm_ifc_mos_pq_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 25), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcMosPqAverage.setStatus('current') ad_vqm_ifc_mos_pq_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 26), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcMosPqMaximum.setStatus('current') ad_vqm_ifc_loss_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 27), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcLossMinimum.setStatus('current') ad_vqm_ifc_loss_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 28), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcLossAverage.setStatus('current') ad_vqm_ifc_loss_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 29), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcLossMaximum.setStatus('current') ad_vqm_ifc_discards_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 30), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcDiscardsMinimum.setStatus('current') ad_vqm_ifc_discards_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 31), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcDiscardsAverage.setStatus('current') ad_vqm_ifc_discards_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 32), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcDiscardsMaximum.setStatus('current') ad_vqm_ifc_pdv_average_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 33), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcPdvAverageMs.setStatus('current') ad_vqm_ifc_pdv_maximum_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 34), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcPdvMaximumMs.setStatus('current') ad_vqm_ifc_delay_min_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 35), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcDelayMinMsec.setStatus('current') ad_vqm_ifc_delay_avg_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 36), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcDelayAvgMsec.setStatus('current') ad_vqm_ifc_delay_max_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 37), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcDelayMaxMsec.setStatus('current') ad_vqm_ifc_number_streams_excellent = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 38), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcNumberStreamsExcellent.setStatus('current') ad_vqm_ifc_number_streams_good = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 39), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcNumberStreamsGood.setStatus('current') ad_vqm_ifc_number_streams_fair = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 40), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcNumberStreamsFair.setStatus('current') ad_vqm_ifc_number_streams_poor = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 41), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmIfcNumberStreamsPoor.setStatus('current') ad_vqm_ifc_clear = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 42), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('clear', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: adVqmIfcClear.setStatus('current') ad_vqm_end_point_table = mib_table((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1)) if mibBuilder.loadTexts: adVQMEndPointTable.setStatus('current') ad_vqm_end_point_entry = mib_table_row((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1)).setIndexNames((0, 'ADTRAN-AOS-VQM', 'adVqmEndPointRtpSourceIp')) if mibBuilder.loadTexts: adVQMEndPointEntry.setStatus('current') ad_vqm_end_point_rtp_source_ip = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointRtpSourceIp.setStatus('current') ad_vqm_end_point_number_completed_calls = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointNumberCompletedCalls.setStatus('current') ad_vqm_end_point_interface_id = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointInterfaceId.setStatus('current') ad_vqm_end_point_interface_name = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointInterfaceName.setStatus('current') ad_vqm_end_point_mos_lq_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 5), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointMosLqMinimum.setStatus('current') ad_vqm_end_point_mos_lq_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 6), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointMosLqAverage.setStatus('current') ad_vqm_end_point_mos_lq_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 7), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointMosLqMaximum.setStatus('current') ad_vqm_end_point_mos_pq_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 8), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointMosPqMinimum.setStatus('current') ad_vqm_end_point_mos_pq_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 9), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointMosPqAverage.setStatus('current') ad_vqm_end_point_mos_pq_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 10), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointMosPqMaximum.setStatus('current') ad_vqm_end_point_pkts_lost_total = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointPktsLostTotal.setStatus('current') ad_vqm_end_point_pkts_out_of_order = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointPktsOutOfOrder.setStatus('current') ad_vqm_end_point_jitter_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 13), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointJitterMaximum.setStatus('current') ad_vqm_end_point_number_streams_excellent = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointNumberStreamsExcellent.setStatus('current') ad_vqm_end_point_number_streams_good = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointNumberStreamsGood.setStatus('current') ad_vqm_end_point_number_streams_fair = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointNumberStreamsFair.setStatus('current') ad_vqm_end_point_number_streams_poor = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmEndPointNumberStreamsPoor.setStatus('current') ad_vqm_call_history_table = mib_table((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1)) if mibBuilder.loadTexts: adVQMCallHistoryTable.setStatus('current') ad_vqm_call_history_entry = mib_table_row((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1)).setIndexNames((0, 'ADTRAN-AOS-VQM', 'adVqmCallHistRtpSourceIp'), (0, 'ADTRAN-AOS-VQM', 'adVqmCallHistRtpSourcePort'), (0, 'ADTRAN-AOS-VQM', 'adVqmCallHistRtpDestIp'), (0, 'ADTRAN-AOS-VQM', 'adVqmCallHistRtpDestPort'), (0, 'ADTRAN-AOS-VQM', 'adVqmCallHistSsrcid')) if mibBuilder.loadTexts: adVQMCallHistoryEntry.setStatus('current') ad_vqm_call_hist_rtp_source_ip = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistRtpSourceIp.setStatus('current') ad_vqm_call_hist_rtp_source_port = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistRtpSourcePort.setStatus('current') ad_vqm_call_hist_rtp_dest_ip = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 3), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistRtpDestIp.setStatus('current') ad_vqm_call_hist_rtp_dest_port = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistRtpDestPort.setStatus('current') ad_vqm_call_hist_ssrcid = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistSsrcid.setStatus('current') ad_vqm_call_hist_to = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistTo.setStatus('current') ad_vqm_call_hist_from = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistFrom.setStatus('current') ad_vqm_call_hist_rtp_source_uri = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 8), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistRtpSourceUri.setStatus('current') ad_vqm_call_hist_callid = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 9), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistCallid.setStatus('current') ad_vqm_call_hist_ccmid = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 10), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistCcmid.setStatus('current') ad_vqm_call_hist_source_int_name = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 11), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistSourceIntName.setStatus('current') ad_vqm_call_hist_dest_int_name = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 12), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDestIntName.setStatus('current') ad_vqm_call_hist_source_int_description = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 13), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistSourceIntDescription.setStatus('current') ad_vqm_call_hist_dest_int_description = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 14), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDestIntDescription.setStatus('current') ad_vqm_call_hist_call_start = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 15), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistCallStart.setStatus('current') ad_vqm_call_hist_call_duration_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 16), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistCallDurationMs.setStatus('current') ad_vqm_call_hist_codec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89))).clone(namedValues=named_values(('unknown', 1), ('g711U', 2), ('g711UPLC', 3), ('g723153K', 4), ('deprecated1', 5), ('g723163K', 6), ('deprecated2', 7), ('g728', 8), ('deprecated3', 9), ('g729', 10), ('deprecated4', 11), ('g729A', 12), ('deprecated5', 13), ('user1', 14), ('user2', 15), ('user3', 16), ('user4', 17), ('gsmfr', 18), ('reservedgsmhr', 19), ('gsmefr', 20), ('sx7300', 21), ('sx9600', 22), ('g711A', 23), ('g711APLC', 24), ('deprecated6', 25), ('g72616K', 26), ('g72624K', 27), ('g72632K', 28), ('g72640K', 29), ('gipse711U', 30), ('gipse711A', 31), ('gipsilbc', 32), ('gipsisac', 33), ('gipsipcmwb', 34), ('g729E8K0', 35), ('g729E11k8', 36), ('wblinearpcm', 37), ('wblinearpcmPlc', 38), ('g722at64k', 39), ('g722at56k', 40), ('g722at48k', 41), ('g7221at32k', 42), ('g7221at24k', 43), ('g7222at23k85', 44), ('g7222at23k05', 45), ('g7222at19k85', 46), ('g7222at18k25', 47), ('g7222at15k85', 48), ('g7222at14k25', 49), ('g7222at12k85', 50), ('g7222at8k85', 51), ('g7222at6k6', 52), ('qcelp8', 53), ('qcelp13', 54), ('evrc', 55), ('smv812', 56), ('smv579', 57), ('smv444', 58), ('smv395', 59), ('amrnb12k2', 60), ('amrnb10k2', 61), ('amrnb7k95', 62), ('amrnb7k4', 63), ('amrnb6k7', 64), ('amrnb5k9', 65), ('amrnb5k15', 66), ('amrnb4k75', 67), ('ilbc13k3', 68), ('ilbc15k2', 69), ('g711u56k', 70), ('g711uPLC56k', 71), ('g711A56k', 72), ('g711APLC56k', 73), ('g7231C', 74), ('speex2k15', 75), ('speex5k95', 76), ('speeX8k', 77), ('speeX11k', 78), ('speeX15k', 79), ('speeX18k2', 80), ('speeX24k6', 81), ('speeX3k95', 82), ('speeX12k8', 83), ('speeX16k8', 84), ('speeX20k6', 85), ('speeX23k8', 86), ('speeX27k8', 87), ('speeX34k2', 88), ('speeX42k2', 89)))).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistCodec.setStatus('current') ad_vqm_call_hist_codec_class = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('wideband', 1), ('other', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistCodecClass.setStatus('current') ad_vqm_call_hist_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 19), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDscp.setStatus('current') ad_vqm_call_hist_pkts_rcvd_total = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistPktsRcvdTotal.setStatus('current') ad_vqm_call_hist_pkts_lost_total = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistPktsLostTotal.setStatus('current') ad_vqm_call_hist_pkts_discarded_total = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistPktsDiscardedTotal.setStatus('current') ad_vqm_call_hist_out_of_order = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistOutOfOrder.setStatus('current') ad_vqm_call_hist_pdv_average_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 24), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistPdvAverageMs.setStatus('current') ad_vqm_call_hist_pdv_maximum_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 25), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistPdvMaximumMs.setStatus('current') ad_vqm_call_hist_rt_delay_inst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 26), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistRtDelayInst.setStatus('current') ad_vqm_call_hist_rt_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 27), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistRtDelayAverage.setStatus('current') ad_vqm_call_hist_rt_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 28), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistRtDelayMaximum.setStatus('current') ad_vqm_call_hist_oneway_delay_inst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 29), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistOnewayDelayInst.setStatus('current') ad_vqm_call_hist_oneway_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 30), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistOnewayDelayAverage.setStatus('current') ad_vqm_call_hist_oneway_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 31), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistOnewayDelayMaximum.setStatus('current') ad_vqm_call_hist_orig_delay_inst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 32), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistOrigDelayInst.setStatus('current') ad_vqm_call_hist_orig_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 33), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistOrigDelayAverage.setStatus('current') ad_vqm_call_hist_orig_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 34), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistOrigDelayMaximum.setStatus('current') ad_vqm_call_hist_term_delay_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 35), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistTermDelayMinimum.setStatus('current') ad_vqm_call_hist_term_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 36), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistTermDelayAverage.setStatus('current') ad_vqm_call_hist_term_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 37), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistTermDelayMaximum.setStatus('current') ad_vqm_call_hist_r_lq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 38), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistRLq.setStatus('current') ad_vqm_call_hist_r_cq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 39), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistRCq.setStatus('current') ad_vqm_call_hist_r_nominal = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 40), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistRNominal.setStatus('current') ad_vqm_call_hist_rg107 = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 41), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistRG107.setStatus('current') ad_vqm_call_hist_mos_lq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 42), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistMosLq.setStatus('current') ad_vqm_call_hist_mos_cq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 43), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistMosCq.setStatus('current') ad_vqm_call_hist_mos_pq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 44), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistMosPq.setStatus('current') ad_vqm_call_hist_mos_nominal = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 45), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistMosNominal.setStatus('current') ad_vqm_call_hist_deg_loss = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 46), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDegLoss.setStatus('current') ad_vqm_call_hist_deg_discard = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 47), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDegDiscard.setStatus('current') ad_vqm_call_hist_deg_vocoder = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 48), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDegVocoder.setStatus('current') ad_vqm_call_hist_deg_recency = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 49), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDegRecency.setStatus('current') ad_vqm_call_hist_deg_delay = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 50), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDegDelay.setStatus('current') ad_vqm_call_hist_deg_siglvl = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 51), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDegSiglvl.setStatus('current') ad_vqm_call_hist_deg_noiselvl = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 52), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDegNoiselvl.setStatus('current') ad_vqm_call_hist_deg_echolvl = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 53), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDegEcholvl.setStatus('current') ad_vqm_call_hist_burst_r_lq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 54), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistBurstRLq.setStatus('current') ad_vqm_call_hist_burst_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 55), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistBurstCount.setStatus('current') ad_vqm_call_hist_burst_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 56), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistBurstRateAvg.setStatus('current') ad_vqm_call_hist_burst_len_avg_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 57), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistBurstLenAvgPkts.setStatus('current') ad_vqm_call_hist_burst_len_avg_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 58), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistBurstLenAvgMsec.setStatus('current') ad_vqm_call_hist_gap_r = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 59), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistGapR.setStatus('current') ad_vqm_call_hist_gap_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 60), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistGapCount.setStatus('current') ad_vqm_call_hist_gap_loss_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 61), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistGapLossRateAvg.setStatus('current') ad_vqm_call_hist_gap_len_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 62), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistGapLenPkts.setStatus('current') ad_vqm_call_hist_gap_len_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 63), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistGapLenMsec.setStatus('current') ad_vqm_call_hist_loss_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 64), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistLossRateAvg.setStatus('current') ad_vqm_call_hist_network_loss_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 65), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistNetworkLossAvg.setStatus('current') ad_vqm_call_hist_discard_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 66), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDiscardRateAvg.setStatus('current') ad_vqm_call_hist_excess_burst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 67), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistExcessBurst.setStatus('current') ad_vqm_call_hist_excess_gap = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 68), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistExcessGap.setStatus('current') ad_vqm_call_hist_ppdv_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 69), msec_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistPpdvMsec.setStatus('current') ad_vqm_call_hist_late_threshold_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 70), msec_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistLateThresholdMs.setStatus('current') ad_vqm_call_hist_late_threshold_pc = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 71), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistLateThresholdPc.setStatus('current') ad_vqm_call_hist_late_under_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 72), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistLateUnderThresh.setStatus('current') ad_vqm_call_hist_late_total_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 73), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistLateTotalCount.setStatus('current') ad_vqm_call_hist_late_peak_jitter_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 74), msec_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistLatePeakJitterMs.setStatus('current') ad_vqm_call_hist_early_thresh_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 75), msec_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistEarlyThreshMs.setStatus('current') ad_vqm_call_hist_early_thresh_pc = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 76), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistEarlyThreshPc.setStatus('current') ad_vqm_call_hist_early_under_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 77), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistEarlyUnderThresh.setStatus('current') ad_vqm_call_hist_early_total_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 78), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistEarlyTotalCount.setStatus('current') ad_vqm_call_hist_early_peak_jitter_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 79), msec_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistEarlyPeakJitterMs.setStatus('current') ad_vqm_call_hist_delay_increase_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 80), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDelayIncreaseCount.setStatus('current') ad_vqm_call_hist_delay_decrease_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 81), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDelayDecreaseCount.setStatus('current') ad_vqm_call_hist_resync_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 82), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistResyncCount.setStatus('current') ad_vqm_call_hist_jitter_buffer_type = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 83), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('fixed', 1), ('adaptive', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistJitterBufferType.setStatus('current') ad_vqm_call_hist_jb_cfg_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 84), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistJbCfgMin.setStatus('current') ad_vqm_call_hist_jb_cfg_nom = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 85), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistJbCfgNom.setStatus('current') ad_vqm_call_hist_jb_cfg_max = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 86), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistJbCfgMax.setStatus('current') ad_vqm_call_hist_duplicate_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 87), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDuplicatePkts.setStatus('current') ad_vqm_call_hist_early_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 88), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistEarlyPkts.setStatus('current') ad_vqm_call_hist_late_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 89), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistLatePkts.setStatus('current') ad_vqm_call_hist_overrun_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 90), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistOverrunDiscardPkts.setStatus('current') ad_vqm_call_hist_underrun_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 91), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistUnderrunDiscardPkts.setStatus('current') ad_vqm_call_hist_delay_min_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 92), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDelayMinMsec.setStatus('current') ad_vqm_call_hist_delay_avg_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 93), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDelayAvgMsec.setStatus('current') ad_vqm_call_hist_delay_max_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 94), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDelayMaxMsec.setStatus('current') ad_vqm_call_hist_delay_current_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 95), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistDelayCurrentMsec.setStatus('current') ad_vqm_call_hist_ext_r_lq_in = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 96), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistExtRLqIn.setStatus('current') ad_vqm_call_hist_ext_r_lq_out = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 97), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistExtRLqOut.setStatus('current') ad_vqm_call_hist_ext_r_cq_in = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 98), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistExtRCqIn.setStatus('current') ad_vqm_call_hist_ext_r_cq_out = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 99), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistExtRCqOut.setStatus('current') ad_vqm_call_hist_through_put_index = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 100), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistThroughPutIndex.setStatus('current') ad_vqm_call_hist_reliability_index = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 101), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistReliabilityIndex.setStatus('current') ad_vqm_call_hist_bitrate = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 102), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmCallHistBitrate.setStatus('current') ad_vqm_active_call_table = mib_table((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1)) if mibBuilder.loadTexts: adVQMActiveCallTable.setStatus('current') ad_vqm_active_call_entry = mib_table_row((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1)).setIndexNames((0, 'ADTRAN-AOS-VQM', 'adVqmActCallRtpSourceIp'), (0, 'ADTRAN-AOS-VQM', 'adVqmActCallRtpSourcePort'), (0, 'ADTRAN-AOS-VQM', 'adVqmActCallRtpDestIp'), (0, 'ADTRAN-AOS-VQM', 'adVqmActCallRtpDestPort'), (0, 'ADTRAN-AOS-VQM', 'adVqmActCallSsrcid')) if mibBuilder.loadTexts: adVQMActiveCallEntry.setStatus('current') ad_vqm_act_call_rtp_source_ip = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallRtpSourceIp.setStatus('current') ad_vqm_act_call_rtp_source_port = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallRtpSourcePort.setStatus('current') ad_vqm_act_call_rtp_dest_ip = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 3), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallRtpDestIp.setStatus('current') ad_vqm_act_call_rtp_dest_port = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallRtpDestPort.setStatus('current') ad_vqm_act_call_ssrcid = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallSsrcid.setStatus('current') ad_vqm_act_call_to = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallTo.setStatus('current') ad_vqm_act_call_from = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallFrom.setStatus('current') ad_vqm_act_call_rtp_source_uri = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 8), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallRtpSourceUri.setStatus('current') ad_vqm_act_call_callid = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 9), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallCallid.setStatus('current') ad_vqm_act_call_ccmid = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 10), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallCcmid.setStatus('current') ad_vqm_act_call_source_int_name = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 11), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallSourceIntName.setStatus('current') ad_vqm_act_call_dest_int_name = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 12), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDestIntName.setStatus('current') ad_vqm_act_call_source_int_description = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 13), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallSourceIntDescription.setStatus('current') ad_vqm_act_call_dest_int_description = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 14), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDestIntDescription.setStatus('current') ad_vqm_act_call_call_start = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 15), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallCallStart.setStatus('current') ad_vqm_act_call_call_duration_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 16), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallCallDurationMs.setStatus('current') ad_vqm_act_call_codec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89))).clone(namedValues=named_values(('unknown', 1), ('g711U', 2), ('g711UPLC', 3), ('g723153K', 4), ('deprecated1', 5), ('g723163K', 6), ('deprecated2', 7), ('g728', 8), ('deprecated3', 9), ('g729', 10), ('deprecated4', 11), ('g729A', 12), ('deprecated5', 13), ('user1', 14), ('user2', 15), ('user3', 16), ('user4', 17), ('gsmfr', 18), ('reservedgsmhr', 19), ('gsmefr', 20), ('sx7300', 21), ('sx9600', 22), ('g711A', 23), ('g711APLC', 24), ('deprecated6', 25), ('g72616K', 26), ('g72624K', 27), ('g72632K', 28), ('g72640K', 29), ('gipse711U', 30), ('gipse711A', 31), ('gipsilbc', 32), ('gipsisac', 33), ('gipsipcmwb', 34), ('g729E8K0', 35), ('g729E11k8', 36), ('wblinearpcm', 37), ('wblinearpcmPlc', 38), ('g722at64k', 39), ('g722at56k', 40), ('g722at48k', 41), ('g7221at32k', 42), ('g7221at24k', 43), ('g7222at23k85', 44), ('g7222at23k05', 45), ('g7222at19k85', 46), ('g7222at18k25', 47), ('g7222at15k85', 48), ('g7222at14k25', 49), ('g7222at12k85', 50), ('g7222at8k85', 51), ('g7222at6k6', 52), ('qcelp8', 53), ('qcelp13', 54), ('evrc', 55), ('smv812', 56), ('smv579', 57), ('smv444', 58), ('smv395', 59), ('amrnb12k2', 60), ('amrnb10k2', 61), ('amrnb7k95', 62), ('amrnb7k4', 63), ('amrnb6k7', 64), ('amrnb5k9', 65), ('amrnb5k15', 66), ('amrnb4k75', 67), ('ilbc13k3', 68), ('ilbc15k2', 69), ('g711u56k', 70), ('g711uPLC56k', 71), ('g711A56k', 72), ('g711APLC56k', 73), ('g7231C', 74), ('speex2k15', 75), ('speex5k95', 76), ('speeX8k', 77), ('speeX11k', 78), ('speeX15k', 79), ('speeX18k2', 80), ('speeX24k6', 81), ('speeX3k95', 82), ('speeX12k8', 83), ('speeX16k8', 84), ('speeX20k6', 85), ('speeX23k8', 86), ('speeX27k8', 87), ('speeX34k2', 88), ('speeX42k2', 89)))).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallCodec.setStatus('current') ad_vqm_act_call_codec_class = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('wideband', 1), ('other', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallCodecClass.setStatus('current') ad_vqm_act_call_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 19), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDscp.setStatus('current') ad_vqm_act_call_pkts_rcvd_total = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallPktsRcvdTotal.setStatus('current') ad_vqm_act_call_pkts_lost_total = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallPktsLostTotal.setStatus('current') ad_vqm_act_call_pkts_discarded_total = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallPktsDiscardedTotal.setStatus('current') ad_vqm_act_call_out_of_order = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallOutOfOrder.setStatus('current') ad_vqm_act_call_pdv_average_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 24), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallPdvAverageMs.setStatus('current') ad_vqm_act_call_pdv_maximum_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 25), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallPdvMaximumMs.setStatus('current') ad_vqm_act_call_rt_delay_inst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 26), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallRtDelayInst.setStatus('current') ad_vqm_act_call_rt_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 27), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallRtDelayAverage.setStatus('current') ad_vqm_act_call_rt_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 28), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallRtDelayMaximum.setStatus('current') ad_vqm_act_call_oneway_delay_inst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 29), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallOnewayDelayInst.setStatus('current') ad_vqm_act_call_oneway_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 30), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallOnewayDelayAverage.setStatus('current') ad_vqm_act_call_oneway_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 31), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallOnewayDelayMaximum.setStatus('current') ad_vqm_act_call_orig_delay_inst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 32), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallOrigDelayInst.setStatus('current') ad_vqm_act_call_orig_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 33), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallOrigDelayAverage.setStatus('current') ad_vqm_act_call_orig_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 34), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallOrigDelayMaximum.setStatus('current') ad_vqm_act_call_term_delay_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 35), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallTermDelayMinimum.setStatus('current') ad_vqm_act_call_term_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 36), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallTermDelayAverage.setStatus('current') ad_vqm_act_call_term_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 37), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallTermDelayMaximum.setStatus('current') ad_vqm_act_call_r_lq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 38), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallRLq.setStatus('current') ad_vqm_act_call_r_cq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 39), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallRCq.setStatus('current') ad_vqm_act_call_r_nominal = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 40), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallRNominal.setStatus('current') ad_vqm_act_call_rg107 = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 41), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallRG107.setStatus('current') ad_vqm_act_call_mos_lq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 42), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallMosLq.setStatus('current') ad_vqm_act_call_mos_cq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 43), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallMosCq.setStatus('current') ad_vqm_act_call_mos_pq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 44), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallMosPq.setStatus('current') ad_vqm_act_call_mos_nominal = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 45), mo_svalue()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallMosNominal.setStatus('current') ad_vqm_act_call_deg_loss = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 46), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDegLoss.setStatus('current') ad_vqm_act_call_deg_discard = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 47), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDegDiscard.setStatus('current') ad_vqm_act_call_deg_vocoder = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 48), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDegVocoder.setStatus('current') ad_vqm_act_call_deg_recency = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 49), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDegRecency.setStatus('current') ad_vqm_act_call_deg_delay = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 50), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDegDelay.setStatus('current') ad_vqm_act_call_deg_siglvl = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 51), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDegSiglvl.setStatus('current') ad_vqm_act_call_deg_noiselvl = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 52), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDegNoiselvl.setStatus('current') ad_vqm_act_call_deg_echolvl = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 53), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDegEcholvl.setStatus('current') ad_vqm_act_call_burst_r_lq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 54), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallBurstRLq.setStatus('current') ad_vqm_act_call_burst_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 55), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallBurstCount.setStatus('current') ad_vqm_act_call_burst_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 56), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallBurstRateAvg.setStatus('current') ad_vqm_act_call_burst_len_avg_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 57), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallBurstLenAvgPkts.setStatus('current') ad_vqm_act_call_burst_len_avg_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 58), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallBurstLenAvgMsec.setStatus('current') ad_vqm_act_call_gap_r = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 59), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallGapR.setStatus('current') ad_vqm_act_call_gap_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 60), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallGapCount.setStatus('current') ad_vqm_act_call_gap_loss_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 61), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallGapLossRateAvg.setStatus('current') ad_vqm_act_call_gap_len_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 62), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallGapLenPkts.setStatus('current') ad_vqm_act_call_gap_len_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 63), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallGapLenMsec.setStatus('current') ad_vqm_act_call_loss_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 64), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallLossRateAvg.setStatus('current') ad_vqm_act_call_network_loss_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 65), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallNetworkLossAvg.setStatus('current') ad_vqm_act_call_discard_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 66), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDiscardRateAvg.setStatus('current') ad_vqm_act_call_excess_burst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 67), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallExcessBurst.setStatus('current') ad_vqm_act_call_excess_gap = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 68), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallExcessGap.setStatus('current') ad_vqm_act_call_ppdv_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 69), msec_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallPpdvMsec.setStatus('current') ad_vqm_act_call_late_threshold_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 70), msec_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallLateThresholdMs.setStatus('current') ad_vqm_act_call_late_threshold_pc = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 71), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallLateThresholdPc.setStatus('current') ad_vqm_act_call_late_under_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 72), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallLateUnderThresh.setStatus('current') ad_vqm_act_call_late_total_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 73), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallLateTotalCount.setStatus('current') ad_vqm_act_call_late_peak_jitter_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 74), msec_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallLatePeakJitterMs.setStatus('current') ad_vqm_act_call_early_thresh_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 75), msec_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallEarlyThreshMs.setStatus('current') ad_vqm_act_call_early_thresh_pc = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 76), percentage()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallEarlyThreshPc.setStatus('current') ad_vqm_act_call_early_under_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 77), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallEarlyUnderThresh.setStatus('current') ad_vqm_act_call_early_total_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 78), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallEarlyTotalCount.setStatus('current') ad_vqm_act_call_early_peak_jitter_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 79), msec_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallEarlyPeakJitterMs.setStatus('current') ad_vqm_act_call_delay_increase_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 80), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDelayIncreaseCount.setStatus('current') ad_vqm_act_call_delay_decrease_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 81), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDelayDecreaseCount.setStatus('current') ad_vqm_act_call_resync_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 82), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallResyncCount.setStatus('current') ad_vqm_act_call_jitter_buffer_type = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 83), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('fixed', 1), ('adaptive', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallJitterBufferType.setStatus('current') ad_vqm_act_call_jb_cfg_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 84), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallJbCfgMin.setStatus('current') ad_vqm_act_call_jb_cfg_nom = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 85), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallJbCfgNom.setStatus('current') ad_vqm_act_call_jb_cfg_max = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 86), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallJbCfgMax.setStatus('current') ad_vqm_act_call_duplicate_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 87), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDuplicatePkts.setStatus('current') ad_vqm_act_call_early_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 88), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallEarlyPkts.setStatus('current') ad_vqm_act_call_late_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 89), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallLatePkts.setStatus('current') ad_vqm_act_call_overrun_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 90), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallOverrunDiscardPkts.setStatus('current') ad_vqm_act_call_underrun_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 91), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallUnderrunDiscardPkts.setStatus('current') ad_vqm_act_call_delay_min_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 92), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDelayMinMsec.setStatus('current') ad_vqm_act_call_delay_avg_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 93), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDelayAvgMsec.setStatus('current') ad_vqm_act_call_delay_max_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 94), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDelayMaxMsec.setStatus('current') ad_vqm_act_call_delay_current_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 95), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallDelayCurrentMsec.setStatus('current') ad_vqm_act_call_ext_r_lq_in = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 96), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallExtRLqIn.setStatus('current') ad_vqm_act_call_ext_r_lq_out = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 97), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallExtRLqOut.setStatus('current') ad_vqm_act_call_ext_r_cq_in = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 98), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallExtRCqIn.setStatus('current') ad_vqm_act_call_ext_r_cq_out = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 99), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallExtRCqOut.setStatus('current') ad_vqm_act_call_through_put_index = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 100), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallThroughPutIndex.setStatus('current') ad_vqm_act_call_reliability_index = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 101), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallReliabilityIndex.setStatus('current') ad_vqm_act_call_bitrate = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 102), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: adVqmActCallBitrate.setStatus('current') ad_gen_aos_vqm_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10)) ad_gen_aos_vqm_groups = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1)) ad_gen_aos_vqm_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 2)) ad_gen_aos_vqm_full_compliance = module_compliance((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 2, 1)).setObjects(('ADTRAN-AOS-VQM', 'adVQMCfgGroup'), ('ADTRAN-AOS-VQM', 'adVQMThresholdGroup'), ('ADTRAN-AOS-VQM', 'adVQMSysPerfGroup'), ('ADTRAN-AOS-VQM', 'adVQMInterfaceGroup'), ('ADTRAN-AOS-VQM', 'adVQMEndPointGroup'), ('ADTRAN-AOS-VQM', 'adVQMCallHistoryGroup'), ('ADTRAN-AOS-VQM', 'adVQMActiveCallGroup'), ('ADTRAN-AOS-VQM', 'adVQMTrapGroup'), ('ADTRAN-AOS-VQM', 'adVQMNotificationGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ad_gen_aos_vqm_full_compliance = adGenAOSVqmFullCompliance.setStatus('current') ad_vqm_cfg_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 1)).setObjects(('ADTRAN-AOS-VQM', 'adVqmCfgEnable'), ('ADTRAN-AOS-VQM', 'adVqmCfgSipEnable'), ('ADTRAN-AOS-VQM', 'adVqmCfgUdpEnable'), ('ADTRAN-AOS-VQM', 'adVqmCfgInternationalCode'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferType'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferAdaptiveMin'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferAdaptiveNominal'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferAdaptiveMax'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferFixedNominal'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferFixedSize'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferThresholdEarlyMs'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferThresholdLateMs'), ('ADTRAN-AOS-VQM', 'adVqmCfgRoundTripPingEnabled'), ('ADTRAN-AOS-VQM', 'adVqmCfgRoundTripPingType'), ('ADTRAN-AOS-VQM', 'adVqmCfgCallHistorySize'), ('ADTRAN-AOS-VQM', 'adVqmCfgHistoryThresholdLqmos'), ('ADTRAN-AOS-VQM', 'adVqmCfgHistoryThresholdCqmos'), ('ADTRAN-AOS-VQM', 'adVqmCfgHistoryThresholdPqmos'), ('ADTRAN-AOS-VQM', 'adVqmCfgHistoryThresholdLoss'), ('ADTRAN-AOS-VQM', 'adVqmCfgHistoryThresholdOutOfOrder'), ('ADTRAN-AOS-VQM', 'adVqmCfgHistoryThresholdJitter'), ('ADTRAN-AOS-VQM', 'adVqmCfgClear'), ('ADTRAN-AOS-VQM', 'adVqmCfgClearCallHistory')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ad_vqm_cfg_group = adVQMCfgGroup.setStatus('current') ad_vqm_threshold_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 2)).setObjects(('ADTRAN-AOS-VQM', 'adVqmThresholdLqmosInfo'), ('ADTRAN-AOS-VQM', 'adVqmThresholdLqmosNotice'), ('ADTRAN-AOS-VQM', 'adVqmThresholdLqmosWarning'), ('ADTRAN-AOS-VQM', 'adVqmThresholdLqmosError'), ('ADTRAN-AOS-VQM', 'adVqmThresholdPqmosInfo'), ('ADTRAN-AOS-VQM', 'adVqmThresholdPqmosNotice'), ('ADTRAN-AOS-VQM', 'adVqmThresholdPqmosWarning'), ('ADTRAN-AOS-VQM', 'adVqmThresholdPqmosError'), ('ADTRAN-AOS-VQM', 'adVqmThresholdOutOfOrderInfo'), ('ADTRAN-AOS-VQM', 'adVqmThresholdOutOfOrderNotice'), ('ADTRAN-AOS-VQM', 'adVqmThresholdOutOfOrderWarning'), ('ADTRAN-AOS-VQM', 'adVqmThresholdOutOfOrderError'), ('ADTRAN-AOS-VQM', 'adVqmThresholdLossInfo'), ('ADTRAN-AOS-VQM', 'adVqmThresholdLossNotice'), ('ADTRAN-AOS-VQM', 'adVqmThresholdLossWarning'), ('ADTRAN-AOS-VQM', 'adVqmThresholdLossError'), ('ADTRAN-AOS-VQM', 'adVqmThresholdJitterInfo'), ('ADTRAN-AOS-VQM', 'adVqmThresholdJitterNotice'), ('ADTRAN-AOS-VQM', 'adVqmThresholdJitterWarning'), ('ADTRAN-AOS-VQM', 'adVqmThresholdJitterError')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ad_vqm_threshold_group = adVQMThresholdGroup.setStatus('current') ad_vqm_sys_perf_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 3)).setObjects(('ADTRAN-AOS-VQM', 'adVqmSysActiveCalls'), ('ADTRAN-AOS-VQM', 'adVqmSysActiveExcellent'), ('ADTRAN-AOS-VQM', 'adVqmSysActiveGood'), ('ADTRAN-AOS-VQM', 'adVqmSysActiveFair'), ('ADTRAN-AOS-VQM', 'adVqmSysActivePoor'), ('ADTRAN-AOS-VQM', 'adVqmSysCallHistoryCalls'), ('ADTRAN-AOS-VQM', 'adVqmSysCallHistoryExcellent'), ('ADTRAN-AOS-VQM', 'adVqmSysCallHistoryGood'), ('ADTRAN-AOS-VQM', 'adVqmSysCallHistoryFair'), ('ADTRAN-AOS-VQM', 'adVqmSysCallHistoryPoor'), ('ADTRAN-AOS-VQM', 'adVqmSysAllCallsExcellent'), ('ADTRAN-AOS-VQM', 'adVqmSysAllCallsGood'), ('ADTRAN-AOS-VQM', 'adVqmSysAllCallsFair'), ('ADTRAN-AOS-VQM', 'adVqmSysAllCallsPoor')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ad_vqm_sys_perf_group = adVQMSysPerfGroup.setStatus('current') ad_vqm_interface_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 4)).setObjects(('ADTRAN-AOS-VQM', 'adVqmIfcId'), ('ADTRAN-AOS-VQM', 'adVqmIfcName'), ('ADTRAN-AOS-VQM', 'adVqmIfcPktsRx'), ('ADTRAN-AOS-VQM', 'adVqmIfcPktsLost'), ('ADTRAN-AOS-VQM', 'adVqmIfcPktsOoo'), ('ADTRAN-AOS-VQM', 'adVqmIfcPktsDiscarded'), ('ADTRAN-AOS-VQM', 'adVqmIfcNumberActiveCalls'), ('ADTRAN-AOS-VQM', 'adVqmIfcTerminatedCalls'), ('ADTRAN-AOS-VQM', 'adVqmIfcRLqMinimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcRLqAverage'), ('ADTRAN-AOS-VQM', 'adVqmIfcRLqMaximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcRCqMinimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcRCqAverage'), ('ADTRAN-AOS-VQM', 'adVqmIfcRCqMaximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcRG107Minimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcRG107Average'), ('ADTRAN-AOS-VQM', 'adVqmIfcRG107Maximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosLqMinimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosLqAverage'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosLqMaximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosCqMinimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosCqAverage'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosCqMaximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosPqMinimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosPqAverage'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosPqMaximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcLossMinimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcLossAverage'), ('ADTRAN-AOS-VQM', 'adVqmIfcLossMaximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcDiscardsMinimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcDiscardsAverage'), ('ADTRAN-AOS-VQM', 'adVqmIfcDiscardsMaximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcPdvAverageMs'), ('ADTRAN-AOS-VQM', 'adVqmIfcPdvMaximumMs'), ('ADTRAN-AOS-VQM', 'adVqmIfcDelayMinMsec'), ('ADTRAN-AOS-VQM', 'adVqmIfcDelayAvgMsec'), ('ADTRAN-AOS-VQM', 'adVqmIfcDelayMaxMsec'), ('ADTRAN-AOS-VQM', 'adVqmIfcNumberStreamsExcellent'), ('ADTRAN-AOS-VQM', 'adVqmIfcNumberStreamsGood'), ('ADTRAN-AOS-VQM', 'adVqmIfcNumberStreamsFair'), ('ADTRAN-AOS-VQM', 'adVqmIfcNumberStreamsPoor'), ('ADTRAN-AOS-VQM', 'adVqmIfcClear')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ad_vqm_interface_group = adVQMInterfaceGroup.setStatus('current') ad_vqm_end_point_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 5)).setObjects(('ADTRAN-AOS-VQM', 'adVqmEndPointRtpSourceIp'), ('ADTRAN-AOS-VQM', 'adVqmEndPointNumberCompletedCalls'), ('ADTRAN-AOS-VQM', 'adVqmEndPointInterfaceId'), ('ADTRAN-AOS-VQM', 'adVqmEndPointInterfaceName'), ('ADTRAN-AOS-VQM', 'adVqmEndPointMosLqMinimum'), ('ADTRAN-AOS-VQM', 'adVqmEndPointMosLqAverage'), ('ADTRAN-AOS-VQM', 'adVqmEndPointMosLqMaximum'), ('ADTRAN-AOS-VQM', 'adVqmEndPointMosPqMinimum'), ('ADTRAN-AOS-VQM', 'adVqmEndPointMosPqAverage'), ('ADTRAN-AOS-VQM', 'adVqmEndPointMosPqMaximum'), ('ADTRAN-AOS-VQM', 'adVqmEndPointPktsLostTotal'), ('ADTRAN-AOS-VQM', 'adVqmEndPointPktsOutOfOrder'), ('ADTRAN-AOS-VQM', 'adVqmEndPointJitterMaximum'), ('ADTRAN-AOS-VQM', 'adVqmEndPointNumberStreamsExcellent'), ('ADTRAN-AOS-VQM', 'adVqmEndPointNumberStreamsGood'), ('ADTRAN-AOS-VQM', 'adVqmEndPointNumberStreamsFair'), ('ADTRAN-AOS-VQM', 'adVqmEndPointNumberStreamsPoor')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ad_vqm_end_point_group = adVQMEndPointGroup.setStatus('current') ad_vqm_call_history_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 6)).setObjects(('ADTRAN-AOS-VQM', 'adVqmCallHistRtpSourceIp'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRtpSourcePort'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRtpDestIp'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRtpDestPort'), ('ADTRAN-AOS-VQM', 'adVqmCallHistSsrcid'), ('ADTRAN-AOS-VQM', 'adVqmCallHistTo'), ('ADTRAN-AOS-VQM', 'adVqmCallHistFrom'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRtpSourceUri'), ('ADTRAN-AOS-VQM', 'adVqmCallHistCallid'), ('ADTRAN-AOS-VQM', 'adVqmCallHistCcmid'), ('ADTRAN-AOS-VQM', 'adVqmCallHistSourceIntName'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDestIntName'), ('ADTRAN-AOS-VQM', 'adVqmCallHistSourceIntDescription'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDestIntDescription'), ('ADTRAN-AOS-VQM', 'adVqmCallHistCallStart'), ('ADTRAN-AOS-VQM', 'adVqmCallHistCallDurationMs'), ('ADTRAN-AOS-VQM', 'adVqmCallHistCodec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistCodecClass'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDscp'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPktsRcvdTotal'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPktsLostTotal'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPktsDiscardedTotal'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOutOfOrder'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPdvAverageMs'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPdvMaximumMs'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRtDelayInst'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRtDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRtDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOnewayDelayInst'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOnewayDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOnewayDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOrigDelayInst'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOrigDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOrigDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmCallHistTermDelayMinimum'), ('ADTRAN-AOS-VQM', 'adVqmCallHistTermDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmCallHistTermDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRLq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRCq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRNominal'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRG107'), ('ADTRAN-AOS-VQM', 'adVqmCallHistMosLq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistMosCq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistMosPq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistMosNominal'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegLoss'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegDiscard'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegVocoder'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegRecency'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegDelay'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegSiglvl'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegNoiselvl'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegEcholvl'), ('ADTRAN-AOS-VQM', 'adVqmCallHistBurstRLq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistBurstCount'), ('ADTRAN-AOS-VQM', 'adVqmCallHistBurstRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmCallHistBurstLenAvgPkts'), ('ADTRAN-AOS-VQM', 'adVqmCallHistBurstLenAvgMsec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistGapR'), ('ADTRAN-AOS-VQM', 'adVqmCallHistGapCount'), ('ADTRAN-AOS-VQM', 'adVqmCallHistGapLossRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmCallHistGapLenPkts'), ('ADTRAN-AOS-VQM', 'adVqmCallHistGapLenMsec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistLossRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmCallHistNetworkLossAvg'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDiscardRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmCallHistExcessBurst'), ('ADTRAN-AOS-VQM', 'adVqmCallHistExcessGap'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPpdvMsec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistLateThresholdMs'), ('ADTRAN-AOS-VQM', 'adVqmCallHistLateThresholdPc'), ('ADTRAN-AOS-VQM', 'adVqmCallHistLateUnderThresh'), ('ADTRAN-AOS-VQM', 'adVqmCallHistLateTotalCount'), ('ADTRAN-AOS-VQM', 'adVqmCallHistLatePeakJitterMs'), ('ADTRAN-AOS-VQM', 'adVqmCallHistEarlyThreshMs'), ('ADTRAN-AOS-VQM', 'adVqmCallHistEarlyThreshPc'), ('ADTRAN-AOS-VQM', 'adVqmCallHistEarlyUnderThresh'), ('ADTRAN-AOS-VQM', 'adVqmCallHistEarlyTotalCount'), ('ADTRAN-AOS-VQM', 'adVqmCallHistEarlyPeakJitterMs'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDelayIncreaseCount'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDelayDecreaseCount'), ('ADTRAN-AOS-VQM', 'adVqmCallHistResyncCount'), ('ADTRAN-AOS-VQM', 'adVqmCallHistJitterBufferType'), ('ADTRAN-AOS-VQM', 'adVqmCallHistJbCfgMin'), ('ADTRAN-AOS-VQM', 'adVqmCallHistJbCfgNom'), ('ADTRAN-AOS-VQM', 'adVqmCallHistJbCfgMax'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDuplicatePkts'), ('ADTRAN-AOS-VQM', 'adVqmCallHistEarlyPkts'), ('ADTRAN-AOS-VQM', 'adVqmCallHistLatePkts'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOverrunDiscardPkts'), ('ADTRAN-AOS-VQM', 'adVqmCallHistUnderrunDiscardPkts'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDelayMinMsec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDelayAvgMsec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDelayMaxMsec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDelayCurrentMsec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistExtRLqIn'), ('ADTRAN-AOS-VQM', 'adVqmCallHistExtRLqOut'), ('ADTRAN-AOS-VQM', 'adVqmCallHistExtRCqIn'), ('ADTRAN-AOS-VQM', 'adVqmCallHistExtRCqOut'), ('ADTRAN-AOS-VQM', 'adVqmCallHistThroughPutIndex'), ('ADTRAN-AOS-VQM', 'adVqmCallHistReliabilityIndex'), ('ADTRAN-AOS-VQM', 'adVqmCallHistBitrate')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ad_vqm_call_history_group = adVQMCallHistoryGroup.setStatus('current') ad_vqm_active_call_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 7)).setObjects(('ADTRAN-AOS-VQM', 'adVqmActCallRtpSourceIp'), ('ADTRAN-AOS-VQM', 'adVqmActCallRtpSourcePort'), ('ADTRAN-AOS-VQM', 'adVqmActCallRtpDestIp'), ('ADTRAN-AOS-VQM', 'adVqmActCallRtpDestPort'), ('ADTRAN-AOS-VQM', 'adVqmActCallSsrcid'), ('ADTRAN-AOS-VQM', 'adVqmActCallTo'), ('ADTRAN-AOS-VQM', 'adVqmActCallFrom'), ('ADTRAN-AOS-VQM', 'adVqmActCallRtpSourceUri'), ('ADTRAN-AOS-VQM', 'adVqmActCallCallid'), ('ADTRAN-AOS-VQM', 'adVqmActCallCcmid'), ('ADTRAN-AOS-VQM', 'adVqmActCallSourceIntName'), ('ADTRAN-AOS-VQM', 'adVqmActCallDestIntName'), ('ADTRAN-AOS-VQM', 'adVqmActCallSourceIntDescription'), ('ADTRAN-AOS-VQM', 'adVqmActCallDestIntDescription'), ('ADTRAN-AOS-VQM', 'adVqmActCallCallStart'), ('ADTRAN-AOS-VQM', 'adVqmActCallCallDurationMs'), ('ADTRAN-AOS-VQM', 'adVqmActCallCodec'), ('ADTRAN-AOS-VQM', 'adVqmActCallCodecClass'), ('ADTRAN-AOS-VQM', 'adVqmActCallDscp'), ('ADTRAN-AOS-VQM', 'adVqmActCallPktsRcvdTotal'), ('ADTRAN-AOS-VQM', 'adVqmActCallPktsLostTotal'), ('ADTRAN-AOS-VQM', 'adVqmActCallPktsDiscardedTotal'), ('ADTRAN-AOS-VQM', 'adVqmActCallOutOfOrder'), ('ADTRAN-AOS-VQM', 'adVqmActCallPdvAverageMs'), ('ADTRAN-AOS-VQM', 'adVqmActCallPdvMaximumMs'), ('ADTRAN-AOS-VQM', 'adVqmActCallRtDelayInst'), ('ADTRAN-AOS-VQM', 'adVqmActCallRtDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmActCallRtDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmActCallOnewayDelayInst'), ('ADTRAN-AOS-VQM', 'adVqmActCallOnewayDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmActCallOnewayDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmActCallOrigDelayInst'), ('ADTRAN-AOS-VQM', 'adVqmActCallOrigDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmActCallOrigDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmActCallTermDelayMinimum'), ('ADTRAN-AOS-VQM', 'adVqmActCallTermDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmActCallTermDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmActCallRLq'), ('ADTRAN-AOS-VQM', 'adVqmActCallRCq'), ('ADTRAN-AOS-VQM', 'adVqmActCallRNominal'), ('ADTRAN-AOS-VQM', 'adVqmActCallRG107'), ('ADTRAN-AOS-VQM', 'adVqmActCallMosLq'), ('ADTRAN-AOS-VQM', 'adVqmActCallMosCq'), ('ADTRAN-AOS-VQM', 'adVqmActCallMosPq'), ('ADTRAN-AOS-VQM', 'adVqmActCallMosNominal'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegLoss'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegDiscard'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegVocoder'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegRecency'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegDelay'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegSiglvl'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegNoiselvl'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegEcholvl'), ('ADTRAN-AOS-VQM', 'adVqmActCallBurstRLq'), ('ADTRAN-AOS-VQM', 'adVqmActCallBurstCount'), ('ADTRAN-AOS-VQM', 'adVqmActCallBurstRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmActCallBurstLenAvgPkts'), ('ADTRAN-AOS-VQM', 'adVqmActCallBurstLenAvgMsec'), ('ADTRAN-AOS-VQM', 'adVqmActCallGapR'), ('ADTRAN-AOS-VQM', 'adVqmActCallGapCount'), ('ADTRAN-AOS-VQM', 'adVqmActCallGapLossRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmActCallGapLenPkts'), ('ADTRAN-AOS-VQM', 'adVqmActCallGapLenMsec'), ('ADTRAN-AOS-VQM', 'adVqmActCallLossRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmActCallNetworkLossAvg'), ('ADTRAN-AOS-VQM', 'adVqmActCallDiscardRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmActCallExcessBurst'), ('ADTRAN-AOS-VQM', 'adVqmActCallExcessGap'), ('ADTRAN-AOS-VQM', 'adVqmActCallPpdvMsec'), ('ADTRAN-AOS-VQM', 'adVqmActCallLateThresholdMs'), ('ADTRAN-AOS-VQM', 'adVqmActCallLateThresholdPc'), ('ADTRAN-AOS-VQM', 'adVqmActCallLateUnderThresh'), ('ADTRAN-AOS-VQM', 'adVqmActCallLateTotalCount'), ('ADTRAN-AOS-VQM', 'adVqmActCallLatePeakJitterMs'), ('ADTRAN-AOS-VQM', 'adVqmActCallEarlyThreshMs'), ('ADTRAN-AOS-VQM', 'adVqmActCallEarlyThreshPc'), ('ADTRAN-AOS-VQM', 'adVqmActCallEarlyUnderThresh'), ('ADTRAN-AOS-VQM', 'adVqmActCallEarlyTotalCount'), ('ADTRAN-AOS-VQM', 'adVqmActCallEarlyPeakJitterMs'), ('ADTRAN-AOS-VQM', 'adVqmActCallDelayIncreaseCount'), ('ADTRAN-AOS-VQM', 'adVqmActCallDelayDecreaseCount'), ('ADTRAN-AOS-VQM', 'adVqmActCallResyncCount'), ('ADTRAN-AOS-VQM', 'adVqmActCallJitterBufferType'), ('ADTRAN-AOS-VQM', 'adVqmActCallJbCfgMin'), ('ADTRAN-AOS-VQM', 'adVqmActCallJbCfgNom'), ('ADTRAN-AOS-VQM', 'adVqmActCallJbCfgMax'), ('ADTRAN-AOS-VQM', 'adVqmActCallDuplicatePkts'), ('ADTRAN-AOS-VQM', 'adVqmActCallEarlyPkts'), ('ADTRAN-AOS-VQM', 'adVqmActCallLatePkts'), ('ADTRAN-AOS-VQM', 'adVqmActCallOverrunDiscardPkts'), ('ADTRAN-AOS-VQM', 'adVqmActCallUnderrunDiscardPkts'), ('ADTRAN-AOS-VQM', 'adVqmActCallDelayMinMsec'), ('ADTRAN-AOS-VQM', 'adVqmActCallDelayAvgMsec'), ('ADTRAN-AOS-VQM', 'adVqmActCallDelayMaxMsec'), ('ADTRAN-AOS-VQM', 'adVqmActCallDelayCurrentMsec'), ('ADTRAN-AOS-VQM', 'adVqmActCallExtRLqIn'), ('ADTRAN-AOS-VQM', 'adVqmActCallExtRLqOut'), ('ADTRAN-AOS-VQM', 'adVqmActCallExtRCqIn'), ('ADTRAN-AOS-VQM', 'adVqmActCallExtRCqOut'), ('ADTRAN-AOS-VQM', 'adVqmActCallThroughPutIndex'), ('ADTRAN-AOS-VQM', 'adVqmActCallReliabilityIndex'), ('ADTRAN-AOS-VQM', 'adVqmActCallBitrate')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ad_vqm_active_call_group = adVQMActiveCallGroup.setStatus('current') ad_vqm_trap_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 8)).setObjects(('ADTRAN-AOS-VQM', 'adVqmTrapState'), ('ADTRAN-AOS-VQM', 'adVqmTrapCfgSeverityLevel'), ('ADTRAN-AOS-VQM', 'adVqmTrapEventType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ad_vqm_trap_group = adVQMTrapGroup.setStatus('current') ad_vqm_notification_group = notification_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 9)).setObjects(('ADTRAN-AOS-VQM', 'adVQMEndOfCallTrap')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ad_vqm_notification_group = adVQMNotificationGroup.setStatus('current') mibBuilder.exportSymbols('ADTRAN-AOS-VQM', adVqmActCallDegNoiselvl=adVqmActCallDegNoiselvl, adVqmActCallCallStart=adVqmActCallCallStart, adVQMCallHistoryTable=adVQMCallHistoryTable, adVqmCfgJitterBufferFixedNominal=adVqmCfgJitterBufferFixedNominal, adVqmSysActiveFair=adVqmSysActiveFair, adVqmCallHistRtpDestIp=adVqmCallHistRtpDestIp, adVqmActCallLatePeakJitterMs=adVqmActCallLatePeakJitterMs, adVQMTrapControl=adVQMTrapControl, adVqmCallHistMosCq=adVqmCallHistMosCq, adVQMActiveCallEntry=adVQMActiveCallEntry, adVqmCallHistDiscardRateAvg=adVqmCallHistDiscardRateAvg, adVqmCallHistRLq=adVqmCallHistRLq, adVqmCallHistOnewayDelayAverage=adVqmCallHistOnewayDelayAverage, adVqmCallHistDelayIncreaseCount=adVqmCallHistDelayIncreaseCount, adVqmIfcDiscardsMinimum=adVqmIfcDiscardsMinimum, adVqmCfgSipEnable=adVqmCfgSipEnable, adVqmThresholdLossError=adVqmThresholdLossError, adVqmActCallMosPq=adVqmActCallMosPq, adVqmCallHistCallDurationMs=adVqmCallHistCallDurationMs, adVQMInterfaceGroup=adVQMInterfaceGroup, adVqmCallHistDegDelay=adVqmCallHistDegDelay, adVqmActCallJbCfgNom=adVqmActCallJbCfgNom, adVqmCfgHistoryThresholdPqmos=adVqmCfgHistoryThresholdPqmos, adVqmActCallDegEcholvl=adVqmActCallDegEcholvl, adVQMInterfaceTable=adVQMInterfaceTable, adVqmCfgHistoryThresholdLoss=adVqmCfgHistoryThresholdLoss, adVqmEndPointMosLqMaximum=adVqmEndPointMosLqMaximum, adVqmTrapCfgSeverityLevel=adVqmTrapCfgSeverityLevel, adVqmEndPointMosLqMinimum=adVqmEndPointMosLqMinimum, adVqmCallHistCodecClass=adVqmCallHistCodecClass, adVqmActCallDegLoss=adVqmActCallDegLoss, adVqmIfcRLqMaximum=adVqmIfcRLqMaximum, adVqmActCallDelayDecreaseCount=adVqmActCallDelayDecreaseCount, adVqmCallHistDegNoiselvl=adVqmCallHistDegNoiselvl, adVqmSysActiveGood=adVqmSysActiveGood, adVqmCallHistMosNominal=adVqmCallHistMosNominal, adVQMThresholdGroup=adVQMThresholdGroup, adVqmActCallTermDelayMinimum=adVqmActCallTermDelayMinimum, adVqmActCallDelayAvgMsec=adVqmActCallDelayAvgMsec, adVqmCfgUdpEnable=adVqmCfgUdpEnable, adVqmCallHistDelayMinMsec=adVqmCallHistDelayMinMsec, adVqmThresholdLqmosWarning=adVqmThresholdLqmosWarning, adVqmCallHistExcessGap=adVqmCallHistExcessGap, adVqmActCallBurstRateAvg=adVqmActCallBurstRateAvg, adVqmCallHistEarlyThreshMs=adVqmCallHistEarlyThreshMs, adVqmCallHistPktsDiscardedTotal=adVqmCallHistPktsDiscardedTotal, adVqmCallHistOrigDelayAverage=adVqmCallHistOrigDelayAverage, adVqmActCallGapLenMsec=adVqmActCallGapLenMsec, adVqmEndPointNumberStreamsPoor=adVqmEndPointNumberStreamsPoor, adVqmCallHistDestIntName=adVqmCallHistDestIntName, adVqmActCallDiscardRateAvg=adVqmActCallDiscardRateAvg, adVqmActCallExcessGap=adVqmActCallExcessGap, adVqmActCallExtRCqOut=adVqmActCallExtRCqOut, adVqmActCallLateUnderThresh=adVqmActCallLateUnderThresh, adVqmCallHistJitterBufferType=adVqmCallHistJitterBufferType, adVqmCallHistRtpSourceUri=adVqmCallHistRtpSourceUri, adVqmCallHistLossRateAvg=adVqmCallHistLossRateAvg, adVqmCallHistLateThresholdMs=adVqmCallHistLateThresholdMs, adVqmCallHistBurstLenAvgMsec=adVqmCallHistBurstLenAvgMsec, adVqmCallHistReliabilityIndex=adVqmCallHistReliabilityIndex, adVqmThresholdLqmosInfo=adVqmThresholdLqmosInfo, adVqmActCallDscp=adVqmActCallDscp, adVqmIfcLossAverage=adVqmIfcLossAverage, adVqmActCallTermDelayAverage=adVqmActCallTermDelayAverage, adVqmActCallLatePkts=adVqmActCallLatePkts, adVqmActCallEarlyThreshMs=adVqmActCallEarlyThreshMs, adVqmActCallEarlyThreshPc=adVqmActCallEarlyThreshPc, adVQMEndOfCallTrap=adVQMEndOfCallTrap, adVqmThresholdLossInfo=adVqmThresholdLossInfo, adVQMCfgGroup=adVQMCfgGroup, adVqmIfcRCqMinimum=adVqmIfcRCqMinimum, adVqmActCallRtpDestIp=adVqmActCallRtpDestIp, adVqmActCallEarlyUnderThresh=adVqmActCallEarlyUnderThresh, adVqmCallHistMosLq=adVqmCallHistMosLq, adVqmCallHistMosPq=adVqmCallHistMosPq, adVqmEndPointJitterMaximum=adVqmEndPointJitterMaximum, adVqmIfcPktsRx=adVqmIfcPktsRx, adVqmThresholdOutOfOrderNotice=adVqmThresholdOutOfOrderNotice, adVqmCallHistGapLenPkts=adVqmCallHistGapLenPkts, adVqmActCallRtDelayInst=adVqmActCallRtDelayInst, adVqmThresholdJitterWarning=adVqmThresholdJitterWarning, adVqmSysCallHistoryExcellent=adVqmSysCallHistoryExcellent, adVqmEndPointInterfaceName=adVqmEndPointInterfaceName, adVqmActCallOnewayDelayAverage=adVqmActCallOnewayDelayAverage, adVqmIfcRCqMaximum=adVqmIfcRCqMaximum, adVqmActCallRtpSourcePort=adVqmActCallRtpSourcePort, adVqmThresholdLqmosError=adVqmThresholdLqmosError, adVqmActCallCcmid=adVqmActCallCcmid, adGenAOSVqmCompliances=adGenAOSVqmCompliances, adVqmCallHistDegSiglvl=adVqmCallHistDegSiglvl, adVqmIfcDelayMaxMsec=adVqmIfcDelayMaxMsec, adVqmIfcMosLqMaximum=adVqmIfcMosLqMaximum, adVQMTrap=adVQMTrap, adVqmCallHistEarlyThreshPc=adVqmCallHistEarlyThreshPc, adVqmCallHistExtRCqOut=adVqmCallHistExtRCqOut, adVqmThresholdOutOfOrderInfo=adVqmThresholdOutOfOrderInfo, adVqmActCallExtRCqIn=adVqmActCallExtRCqIn, adVQMEndPointEntry=adVQMEndPointEntry, adVqmCallHistDscp=adVqmCallHistDscp, MOSvalue=MOSvalue, adVqmCallHistJbCfgNom=adVqmCallHistJbCfgNom, adVqmActCallFrom=adVqmActCallFrom, adVqmSysCallHistoryGood=adVqmSysCallHistoryGood, adVqmEndPointNumberCompletedCalls=adVqmEndPointNumberCompletedCalls, adVqmSysCallHistoryFair=adVqmSysCallHistoryFair, adVqmThresholdLossNotice=adVqmThresholdLossNotice, adVqmCallHistBurstLenAvgPkts=adVqmCallHistBurstLenAvgPkts, adVqmSysActivePoor=adVqmSysActivePoor, adVqmActCallLateThresholdPc=adVqmActCallLateThresholdPc, adVqmActCallSsrcid=adVqmActCallSsrcid, adVqmIfcMosLqMinimum=adVqmIfcMosLqMinimum, adVqmCallHistRG107=adVqmCallHistRG107, adVqmCallHistRtDelayMaximum=adVqmCallHistRtDelayMaximum, adVqmActCallDegVocoder=adVqmActCallDegVocoder, adVqmIfcRG107Maximum=adVqmIfcRG107Maximum, adVqmEndPointInterfaceId=adVqmEndPointInterfaceId, adVqmCallHistTermDelayMinimum=adVqmCallHistTermDelayMinimum, adVQMEndPoint=adVQMEndPoint, adVqmCallHistPpdvMsec=adVqmCallHistPpdvMsec, adVqmCfgJitterBufferFixedSize=adVqmCfgJitterBufferFixedSize, adVqmActCallDegDelay=adVqmActCallDegDelay, adGenAOSVqmFullCompliance=adGenAOSVqmFullCompliance, adVqmIfcMosCqMaximum=adVqmIfcMosCqMaximum, adVqmActCallGapLenPkts=adVqmActCallGapLenPkts, adVqmActCallOutOfOrder=adVqmActCallOutOfOrder, adVqmActCallExtRLqIn=adVqmActCallExtRLqIn, adVqmCallHistFrom=adVqmCallHistFrom, adVQMActive=adVQMActive, adVqmCallHistTermDelayAverage=adVqmCallHistTermDelayAverage, adVqmIfcMosCqAverage=adVqmIfcMosCqAverage, adVqmCfgEnable=adVqmCfgEnable, adVqmActCallJbCfgMin=adVqmActCallJbCfgMin, adVqmActCallPktsLostTotal=adVqmActCallPktsLostTotal, adVqmActCallExcessBurst=adVqmActCallExcessBurst, adVqmCfgJitterBufferThresholdEarlyMs=adVqmCfgJitterBufferThresholdEarlyMs, MsecValue=MsecValue, adVqmActCallRLq=adVqmActCallRLq, adVqmActCallMosLq=adVqmActCallMosLq, adVqmThresholdJitterInfo=adVqmThresholdJitterInfo, adVqmCallHistTo=adVqmCallHistTo, adVqmCfgJitterBufferAdaptiveMin=adVqmCfgJitterBufferAdaptiveMin, adVqmSysActiveExcellent=adVqmSysActiveExcellent, adVqmActCallPdvMaximumMs=adVqmActCallPdvMaximumMs, adVqmActCallDelayCurrentMsec=adVqmActCallDelayCurrentMsec, adVqmCallHistDelayDecreaseCount=adVqmCallHistDelayDecreaseCount, adVqmCallHistEarlyPkts=adVqmCallHistEarlyPkts, adVqmActCallOrigDelayMaximum=adVqmActCallOrigDelayMaximum, adVQMCfg=adVQMCfg, adVqmCfgJitterBufferAdaptiveNominal=adVqmCfgJitterBufferAdaptiveNominal, adVqmIfcRG107Minimum=adVqmIfcRG107Minimum, adVqmIfcRG107Average=adVqmIfcRG107Average, adVqmActCallJitterBufferType=adVqmActCallJitterBufferType, adVqmCallHistRtDelayInst=adVqmCallHistRtDelayInst, adVqmEndPointNumberStreamsExcellent=adVqmEndPointNumberStreamsExcellent, adGenAOSVQMMib=adGenAOSVQMMib, adVqmActCallGapLossRateAvg=adVqmActCallGapLossRateAvg, adVqmThresholdPqmosWarning=adVqmThresholdPqmosWarning, adVqmCallHistBitrate=adVqmCallHistBitrate, adVqmCallHistExcessBurst=adVqmCallHistExcessBurst, adVqmCallHistOrigDelayMaximum=adVqmCallHistOrigDelayMaximum, adVqmCallHistLateUnderThresh=adVqmCallHistLateUnderThresh, adVqmCallHistDegVocoder=adVqmCallHistDegVocoder, adVqmActCallBurstLenAvgPkts=adVqmActCallBurstLenAvgPkts, adVqmActCallCodec=adVqmActCallCodec, adVqmActCallRNominal=adVqmActCallRNominal, adVqmActCallCallid=adVqmActCallCallid, adVqmCallHistDelayAvgMsec=adVqmCallHistDelayAvgMsec, adVqmThresholdPqmosError=adVqmThresholdPqmosError, adVQMInterface=adVQMInterface, adVqmActCallResyncCount=adVqmActCallResyncCount, adVqmActCallLateThresholdMs=adVqmActCallLateThresholdMs, adVqmActCallOverrunDiscardPkts=adVqmActCallOverrunDiscardPkts, adVqmActCallTermDelayMaximum=adVqmActCallTermDelayMaximum, adVqmCallHistRtpSourceIp=adVqmCallHistRtpSourceIp, adVqmCallHistRtDelayAverage=adVqmCallHistRtDelayAverage, adVqmCallHistBurstRLq=adVqmCallHistBurstRLq, adVqmTrapEventType=adVqmTrapEventType, adVqmActCallDegRecency=adVqmActCallDegRecency, adVqmActCallMosNominal=adVqmActCallMosNominal, adVqmActCallDelayIncreaseCount=adVqmActCallDelayIncreaseCount, adVqmCallHistSsrcid=adVqmCallHistSsrcid, adVqmThresholdPqmosNotice=adVqmThresholdPqmosNotice, adVqmActCallSourceIntDescription=adVqmActCallSourceIntDescription, adVqmActCallBurstRLq=adVqmActCallBurstRLq, adVqmCallHistThroughPutIndex=adVqmCallHistThroughPutIndex, adVqmActCallRCq=adVqmActCallRCq, adVqmCallHistDegRecency=adVqmCallHistDegRecency, adVqmActCallOrigDelayAverage=adVqmActCallOrigDelayAverage, adVqmIfcDelayMinMsec=adVqmIfcDelayMinMsec, adVqmCfgClearCallHistory=adVqmCfgClearCallHistory, adVqmThresholdJitterNotice=adVqmThresholdJitterNotice, adVqmActCallPktsRcvdTotal=adVqmActCallPktsRcvdTotal, adVqmCallHistCallStart=adVqmCallHistCallStart, adVqmActCallPpdvMsec=adVqmActCallPpdvMsec, adVqmIfcDiscardsMaximum=adVqmIfcDiscardsMaximum, adVqmCallHistPktsLostTotal=adVqmCallHistPktsLostTotal, adVqmActCallDelayMinMsec=adVqmActCallDelayMinMsec, adVqmCallHistSourceIntName=adVqmCallHistSourceIntName, adVqmActCallJbCfgMax=adVqmActCallJbCfgMax, adVqmCfgHistoryThresholdJitter=adVqmCfgHistoryThresholdJitter, adVqmCfgCallHistorySize=adVqmCfgCallHistorySize, adVqmSysCallHistoryCalls=adVqmSysCallHistoryCalls, adVqmCallHistExtRLqOut=adVqmCallHistExtRLqOut, adVqmCallHistBurstCount=adVqmCallHistBurstCount, adVqmCfgHistoryThresholdLqmos=adVqmCfgHistoryThresholdLqmos, adVQMActiveCallGroup=adVQMActiveCallGroup, adVqmThresholdOutOfOrderWarning=adVqmThresholdOutOfOrderWarning, adVqmCallHistEarlyPeakJitterMs=adVqmCallHistEarlyPeakJitterMs, adVqmCallHistDelayMaxMsec=adVqmCallHistDelayMaxMsec, adVqmIfcTerminatedCalls=adVqmIfcTerminatedCalls, adVqmCfgJitterBufferType=adVqmCfgJitterBufferType, adVqmThresholdPqmosInfo=adVqmThresholdPqmosInfo, adVqmCallHistPdvMaximumMs=adVqmCallHistPdvMaximumMs, adVqmActCallDestIntName=adVqmActCallDestIntName, adVqmSysAllCallsPoor=adVqmSysAllCallsPoor, adVqmActCallDegSiglvl=adVqmActCallDegSiglvl, adVqmIfcPktsLost=adVqmIfcPktsLost, adVqmCallHistPktsRcvdTotal=adVqmCallHistPktsRcvdTotal, adVqmActCallReliabilityIndex=adVqmActCallReliabilityIndex, adVqmThresholdOutOfOrderError=adVqmThresholdOutOfOrderError, adVqmCallHistOnewayDelayMaximum=adVqmCallHistOnewayDelayMaximum, adVqmCallHistLateThresholdPc=adVqmCallHistLateThresholdPc, adVqmIfcRLqAverage=adVqmIfcRLqAverage, adVqmCallHistDegEcholvl=adVqmCallHistDegEcholvl, adVqmActCallSourceIntName=adVqmActCallSourceIntName, adVqmIfcDiscardsAverage=adVqmIfcDiscardsAverage, adVqmIfcMosPqMaximum=adVqmIfcMosPqMaximum, adVqmCallHistUnderrunDiscardPkts=adVqmCallHistUnderrunDiscardPkts, adVQMSysPerf=adVQMSysPerf, adVQM=adVQM, adVqmActCallBitrate=adVqmActCallBitrate, adVqmCfgJitterBufferThresholdLateMs=adVqmCfgJitterBufferThresholdLateMs, adVqmActCallOrigDelayInst=adVqmActCallOrigDelayInst, adVqmEndPointMosLqAverage=adVqmEndPointMosLqAverage, adVqmActCallRtDelayMaximum=adVqmActCallRtDelayMaximum, adVqmActCallOnewayDelayInst=adVqmActCallOnewayDelayInst, adVqmIfcPdvMaximumMs=adVqmIfcPdvMaximumMs, adVqmIfcNumberStreamsFair=adVqmIfcNumberStreamsFair, adVqmActCallUnderrunDiscardPkts=adVqmActCallUnderrunDiscardPkts, adVqmActCallDegDiscard=adVqmActCallDegDiscard, adVqmActCallTo=adVqmActCallTo, adVqmActCallPdvAverageMs=adVqmActCallPdvAverageMs, adVqmCallHistTermDelayMaximum=adVqmCallHistTermDelayMaximum, adVqmEndPointMosPqAverage=adVqmEndPointMosPqAverage, adGenAOSVqmConformance=adGenAOSVqmConformance, adVqmIfcMosLqAverage=adVqmIfcMosLqAverage, adVqmSysCallHistoryPoor=adVqmSysCallHistoryPoor, adVqmIfcMosPqMinimum=adVqmIfcMosPqMinimum, adVqmActCallGapR=adVqmActCallGapR, adVqmCallHistRtpSourcePort=adVqmCallHistRtpSourcePort, adVqmIfcLossMaximum=adVqmIfcLossMaximum, adVqmIfcRCqAverage=adVqmIfcRCqAverage, adVqmCallHistGapCount=adVqmCallHistGapCount, adVqmActCallRG107=adVqmActCallRG107) mibBuilder.exportSymbols('ADTRAN-AOS-VQM', adVqmCallHistDegDiscard=adVqmCallHistDegDiscard, adVqmCallHistBurstRateAvg=adVqmCallHistBurstRateAvg, adVqmIfcName=adVqmIfcName, adVqmCallHistOnewayDelayInst=adVqmCallHistOnewayDelayInst, adVQMActiveCallTable=adVQMActiveCallTable, adVqmCallHistOrigDelayInst=adVqmCallHistOrigDelayInst, adVqmIfcNumberStreamsPoor=adVqmIfcNumberStreamsPoor, adVQMTrapGroup=adVQMTrapGroup, adVqmEndPointMosPqMinimum=adVqmEndPointMosPqMinimum, adVQMEndPointGroup=adVQMEndPointGroup, adVqmEndPointRtpSourceIp=adVqmEndPointRtpSourceIp, adVqmActCallRtpSourceUri=adVqmActCallRtpSourceUri, adVqmCallHistEarlyUnderThresh=adVqmCallHistEarlyUnderThresh, adVqmIfcNumberStreamsGood=adVqmIfcNumberStreamsGood, adVqmCallHistLateTotalCount=adVqmCallHistLateTotalCount, adVqmCallHistDestIntDescription=adVqmCallHistDestIntDescription, adVqmCfgHistoryThresholdCqmos=adVqmCfgHistoryThresholdCqmos, adVqmCfgInternationalCode=adVqmCfgInternationalCode, adVqmCfgJitterBufferAdaptiveMax=adVqmCfgJitterBufferAdaptiveMax, adVqmCallHistOutOfOrder=adVqmCallHistOutOfOrder, adVqmCallHistRNominal=adVqmCallHistRNominal, adVqmCallHistJbCfgMax=adVqmCallHistJbCfgMax, adVqmCfgHistoryThresholdOutOfOrder=adVqmCfgHistoryThresholdOutOfOrder, adVqmActCallDelayMaxMsec=adVqmActCallDelayMaxMsec, adVqmActCallCallDurationMs=adVqmActCallCallDurationMs, adVqmIfcPktsDiscarded=adVqmIfcPktsDiscarded, adVQMNotificationGroup=adVQMNotificationGroup, adVqmActCallRtpDestPort=adVqmActCallRtpDestPort, adVQMHistory=adVQMHistory, adVqmIfcDelayAvgMsec=adVqmIfcDelayAvgMsec, adVqmActCallLateTotalCount=adVqmActCallLateTotalCount, adVqmActCallCodecClass=adVqmActCallCodecClass, adVQMThreshold=adVQMThreshold, adVqmIfcPktsOoo=adVqmIfcPktsOoo, adVqmActCallBurstLenAvgMsec=adVqmActCallBurstLenAvgMsec, adVqmActCallBurstCount=adVqmActCallBurstCount, adVqmSysAllCallsFair=adVqmSysAllCallsFair, adVqmIfcId=adVqmIfcId, adVqmTrapState=adVqmTrapState, adVqmCallHistRCq=adVqmCallHistRCq, Percentage=Percentage, adVqmIfcNumberStreamsExcellent=adVqmIfcNumberStreamsExcellent, adVqmActCallOnewayDelayMaximum=adVqmActCallOnewayDelayMaximum, adVqmActCallPktsDiscardedTotal=adVqmActCallPktsDiscardedTotal, adVqmCallHistSourceIntDescription=adVqmCallHistSourceIntDescription, adVqmIfcMosCqMinimum=adVqmIfcMosCqMinimum, adVqmCallHistDuplicatePkts=adVqmCallHistDuplicatePkts, PYSNMP_MODULE_ID=adGenAOSVQMMib, adVqmCallHistLatePkts=adVqmCallHistLatePkts, adVqmCallHistOverrunDiscardPkts=adVqmCallHistOverrunDiscardPkts, adVqmActCallDuplicatePkts=adVqmActCallDuplicatePkts, adVqmCfgRoundTripPingEnabled=adVqmCfgRoundTripPingEnabled, adVQMCallHistoryGroup=adVQMCallHistoryGroup, adVqmActCallExtRLqOut=adVqmActCallExtRLqOut, adVqmCallHistExtRCqIn=adVqmCallHistExtRCqIn, adVqmIfcPdvAverageMs=adVqmIfcPdvAverageMs, adVqmIfcClear=adVqmIfcClear, adVqmIfcRLqMinimum=adVqmIfcRLqMinimum, adVqmEndPointPktsLostTotal=adVqmEndPointPktsLostTotal, adVqmThresholdLossWarning=adVqmThresholdLossWarning, adVqmIfcMosPqAverage=adVqmIfcMosPqAverage, adVqmActCallLossRateAvg=adVqmActCallLossRateAvg, adVqmIfcNumberActiveCalls=adVqmIfcNumberActiveCalls, adVqmEndPointMosPqMaximum=adVqmEndPointMosPqMaximum, adVqmCallHistExtRLqIn=adVqmCallHistExtRLqIn, adVqmCallHistDegLoss=adVqmCallHistDegLoss, adVqmCallHistGapR=adVqmCallHistGapR, adVqmEndPointNumberStreamsGood=adVqmEndPointNumberStreamsGood, adVqmActCallRtDelayAverage=adVqmActCallRtDelayAverage, adVqmSysAllCallsGood=adVqmSysAllCallsGood, adVqmEndPointPktsOutOfOrder=adVqmEndPointPktsOutOfOrder, adVqmActCallGapCount=adVqmActCallGapCount, adVqmCallHistGapLenMsec=adVqmCallHistGapLenMsec, adVQMSysPerfGroup=adVQMSysPerfGroup, adVqmActCallDestIntDescription=adVqmActCallDestIntDescription, adVqmActCallMosCq=adVqmActCallMosCq, adVqmActCallNetworkLossAvg=adVqmActCallNetworkLossAvg, adVqmActCallThroughPutIndex=adVqmActCallThroughPutIndex, adVqmActCallEarlyPkts=adVqmActCallEarlyPkts, adVqmCallHistCallid=adVqmCallHistCallid, adVqmEndPointNumberStreamsFair=adVqmEndPointNumberStreamsFair, adVqmCallHistResyncCount=adVqmCallHistResyncCount, adVqmCallHistDelayCurrentMsec=adVqmCallHistDelayCurrentMsec, adVqmCallHistRtpDestPort=adVqmCallHistRtpDestPort, adVqmActCallEarlyPeakJitterMs=adVqmActCallEarlyPeakJitterMs, adVQMEndPointTable=adVQMEndPointTable, adVqmActCallRtpSourceIp=adVqmActCallRtpSourceIp, adVqmActCallEarlyTotalCount=adVqmActCallEarlyTotalCount, adGenAOSVqmGroups=adGenAOSVqmGroups, adVqmThresholdLqmosNotice=adVqmThresholdLqmosNotice, adVqmSysActiveCalls=adVqmSysActiveCalls, adVqmSysAllCallsExcellent=adVqmSysAllCallsExcellent, adVqmThresholdJitterError=adVqmThresholdJitterError, adVqmCfgClear=adVqmCfgClear, adVqmCallHistEarlyTotalCount=adVqmCallHistEarlyTotalCount, adVQMInterfaceEntry=adVQMInterfaceEntry, adVqmCallHistPdvAverageMs=adVqmCallHistPdvAverageMs, adVqmCallHistNetworkLossAvg=adVqmCallHistNetworkLossAvg, adVqmCallHistLatePeakJitterMs=adVqmCallHistLatePeakJitterMs, adVqmIfcLossMinimum=adVqmIfcLossMinimum, adVqmCallHistCodec=adVqmCallHistCodec, adVqmCallHistCcmid=adVqmCallHistCcmid, adVqmCallHistJbCfgMin=adVqmCallHistJbCfgMin, adVqmCfgRoundTripPingType=adVqmCfgRoundTripPingType, adVqmCallHistGapLossRateAvg=adVqmCallHistGapLossRateAvg, adVQMCallHistoryEntry=adVQMCallHistoryEntry)
def fahrenheit(T): return (float(9.0) / 5) * T + 32 print(fahrenheit(0)) temp = [0, 22.5, 40, 100] print(map(fahrenheit, temp)) # ?????????????? <map object at 0x00000214D009E080> c = map(lambda T: (9.0 / 5) * T + 32, temp) print(c) # <map object at 0x00000214D009E080> print(lambda x, y: x + y) a = [1, 2, 3] b = [4, 5, 6] c = [7, 8, 9] print(map(lambda x, y: x + y, a, b)) print(map(lambda num: num *- 1,a))
def fahrenheit(T): return float(9.0) / 5 * T + 32 print(fahrenheit(0)) temp = [0, 22.5, 40, 100] print(map(fahrenheit, temp)) c = map(lambda T: 9.0 / 5 * T + 32, temp) print(c) print(lambda x, y: x + y) a = [1, 2, 3] b = [4, 5, 6] c = [7, 8, 9] print(map(lambda x, y: x + y, a, b)) print(map(lambda num: num * -1, a))
def j(n, k): p, i, seq = list(range(n)), 0, [] while p: i = (i+k-1) % len(p) seq.append(p.pop(i)) return 'Prisoner killing order: %s.\nSurvivor: %i' % (', '.join(str(i) for i in seq[:-1]), seq[-1]) print(j(5, 2)) print(j(41, 3))
def j(n, k): (p, i, seq) = (list(range(n)), 0, []) while p: i = (i + k - 1) % len(p) seq.append(p.pop(i)) return 'Prisoner killing order: %s.\nSurvivor: %i' % (', '.join((str(i) for i in seq[:-1])), seq[-1]) print(j(5, 2)) print(j(41, 3))
rfile = open("dictionary.txt", "r") wfile = open("dict-5.txt","w") for line in rfile: if len(line) == 6: wfile.write(line)
rfile = open('dictionary.txt', 'r') wfile = open('dict-5.txt', 'w') for line in rfile: if len(line) == 6: wfile.write(line)
class Solution: def solve(self, matrix): leaders = {(r,c):(r,c) for r in range(len(matrix)) for c in range(len(matrix[0])) if matrix[r][c] == 1} followers = {(r,c):[(r,c)] for r in range(len(matrix)) for c in range(len(matrix[0])) if matrix[r][c] == 1} for r in range(len(matrix)): latest = None for c in range(len(matrix[0])): if matrix[r][c] == 0: continue if latest is None: latest = (r,c) continue new_leader = leaders[latest] old_leader = leaders[r,c] latest = (r,c) if new_leader == old_leader: continue if len(followers[new_leader]) < len(followers[old_leader]): new_leader, old_leader = old_leader, new_leader for follower in followers[old_leader]: leaders[follower] = new_leader followers[new_leader].append(follower) followers[old_leader] = [] for c in range(len(matrix[0])): latest = None for r in range(len(matrix)): if matrix[r][c] == 0: continue if latest is None: latest = (r,c) continue new_leader = leaders[latest] old_leader = leaders[r,c] latest = (r,c) if new_leader == old_leader: continue if len(followers[new_leader]) < len(followers[old_leader]): new_leader, old_leader = old_leader, new_leader for follower in followers[old_leader]: leaders[follower] = new_leader followers[new_leader].append(follower) followers[old_leader] = [] return len(set(leaders.values()))
class Solution: def solve(self, matrix): leaders = {(r, c): (r, c) for r in range(len(matrix)) for c in range(len(matrix[0])) if matrix[r][c] == 1} followers = {(r, c): [(r, c)] for r in range(len(matrix)) for c in range(len(matrix[0])) if matrix[r][c] == 1} for r in range(len(matrix)): latest = None for c in range(len(matrix[0])): if matrix[r][c] == 0: continue if latest is None: latest = (r, c) continue new_leader = leaders[latest] old_leader = leaders[r, c] latest = (r, c) if new_leader == old_leader: continue if len(followers[new_leader]) < len(followers[old_leader]): (new_leader, old_leader) = (old_leader, new_leader) for follower in followers[old_leader]: leaders[follower] = new_leader followers[new_leader].append(follower) followers[old_leader] = [] for c in range(len(matrix[0])): latest = None for r in range(len(matrix)): if matrix[r][c] == 0: continue if latest is None: latest = (r, c) continue new_leader = leaders[latest] old_leader = leaders[r, c] latest = (r, c) if new_leader == old_leader: continue if len(followers[new_leader]) < len(followers[old_leader]): (new_leader, old_leader) = (old_leader, new_leader) for follower in followers[old_leader]: leaders[follower] = new_leader followers[new_leader].append(follower) followers[old_leader] = [] return len(set(leaders.values()))
def countValues(values): resultSet = {-1:0, 0:0, 1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0, 8:0, 9:0, 10:0, 11:0} for value in values: i = 0 valuesList = list(value) while i < len(valuesList): resultSet[i] += int(valuesList[i]) i += 1 resultSet[-1] += 1 return resultSet def selectByPos(values, pos, selector): newValues = [] for value in values: if list(value)[pos] is selector: newValues.append(value) if len(newValues) is 0: return values else: return newValues file = open('data/day3.txt', 'r') values = [] for line in file.readlines(): values.append(line.rstrip("\n")) resultSet = countValues(values) i = 0 oxList = values.copy() while i < len(oxList[0]): counter = countValues(oxList) selector = "1" if counter[i] < (counter[-1]/2): selector = "0" oxList = selectByPos(oxList, i, selector) i += 1 oxygen = int(oxList[0], 2) i = 0 co2List = values.copy() while i < len(co2List[0]): counter = countValues(co2List) selector = "0" if counter[i] < (counter[-1]/2): selector = "1" co2List = selectByPos(co2List, i, selector) i += 1 co2 = int(co2List[0], 2) gammaRate = "" epsilonRate = "" i = 0 while i < 12: if resultSet[i] > (resultSet[-1]/2): gammaRate += "1" epsilonRate += "0" else: gammaRate += "0" epsilonRate += "1" i += 1 gammaRateInt = int(gammaRate, 2) epsilonRateInt = int(epsilonRate, 2) print("Gamma:" + str(gammaRateInt) + "\nEpsilon:" + str(epsilonRateInt) + "\nOxigen" + str(oxygen) + "\nco2:" + str(co2) + "\nPowerConsumption: " + str(gammaRateInt * epsilonRateInt) + "\nLifeSupport Rating:" + str(co2 * oxygen))
def count_values(values): result_set = {-1: 0, 0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0, 10: 0, 11: 0} for value in values: i = 0 values_list = list(value) while i < len(valuesList): resultSet[i] += int(valuesList[i]) i += 1 resultSet[-1] += 1 return resultSet def select_by_pos(values, pos, selector): new_values = [] for value in values: if list(value)[pos] is selector: newValues.append(value) if len(newValues) is 0: return values else: return newValues file = open('data/day3.txt', 'r') values = [] for line in file.readlines(): values.append(line.rstrip('\n')) result_set = count_values(values) i = 0 ox_list = values.copy() while i < len(oxList[0]): counter = count_values(oxList) selector = '1' if counter[i] < counter[-1] / 2: selector = '0' ox_list = select_by_pos(oxList, i, selector) i += 1 oxygen = int(oxList[0], 2) i = 0 co2_list = values.copy() while i < len(co2List[0]): counter = count_values(co2List) selector = '0' if counter[i] < counter[-1] / 2: selector = '1' co2_list = select_by_pos(co2List, i, selector) i += 1 co2 = int(co2List[0], 2) gamma_rate = '' epsilon_rate = '' i = 0 while i < 12: if resultSet[i] > resultSet[-1] / 2: gamma_rate += '1' epsilon_rate += '0' else: gamma_rate += '0' epsilon_rate += '1' i += 1 gamma_rate_int = int(gammaRate, 2) epsilon_rate_int = int(epsilonRate, 2) print('Gamma:' + str(gammaRateInt) + '\nEpsilon:' + str(epsilonRateInt) + '\nOxigen' + str(oxygen) + '\nco2:' + str(co2) + '\nPowerConsumption: ' + str(gammaRateInt * epsilonRateInt) + '\nLifeSupport Rating:' + str(co2 * oxygen))
expected_output = { "flow_drop": { "inspect-fail": 67870, "last_clearing": "10:43:33 EDT Mar 27 2019 by genie", "nat-failed": 528, "ssl-received-close-alert": 9, }, "frame_drop": { "acl-drop": 29, "l2_acl": 35, "last_clearing": "10:43:33 EDT Mar 27 2019 by genie", "no-mcast-intrf": 31, "rpf-violated": 23, "sp-security-failed": 11, }, }
expected_output = {'flow_drop': {'inspect-fail': 67870, 'last_clearing': '10:43:33 EDT Mar 27 2019 by genie', 'nat-failed': 528, 'ssl-received-close-alert': 9}, 'frame_drop': {'acl-drop': 29, 'l2_acl': 35, 'last_clearing': '10:43:33 EDT Mar 27 2019 by genie', 'no-mcast-intrf': 31, 'rpf-violated': 23, 'sp-security-failed': 11}}
#O(n^2) Time / O(n) Space def threeNumberSum(arr,targetSum): triplets=[] arr.sort() for i in range(len(arr)-2): left=i+1 right=len(arr)-1 while(left<right): currentSum=arr[i]+arr[left]+arr[right] if currentSum==targetSum: triplets.append([arr[i],arr[left],arr[right]]) left+=1 right-=1 elif currentSum<targetSum: left+=1 else: right-=1 return triplets
def three_number_sum(arr, targetSum): triplets = [] arr.sort() for i in range(len(arr) - 2): left = i + 1 right = len(arr) - 1 while left < right: current_sum = arr[i] + arr[left] + arr[right] if currentSum == targetSum: triplets.append([arr[i], arr[left], arr[right]]) left += 1 right -= 1 elif currentSum < targetSum: left += 1 else: right -= 1 return triplets
Space = " " class Solution: def lengthOfLastWord(self, s: str) -> int: found_word = False word_length = 0 for i in range(len(s) - 1, -1, -1): letter = s[i] if letter == Space: if found_word: break else: continue else: found_word = True word_length += 1 return word_length
space = ' ' class Solution: def length_of_last_word(self, s: str) -> int: found_word = False word_length = 0 for i in range(len(s) - 1, -1, -1): letter = s[i] if letter == Space: if found_word: break else: continue else: found_word = True word_length += 1 return word_length
action_space={'11':0,'12':1,'13':2,'14':3,'15':4,'21':5,'22':6,'23':7,'24':8,'25':9,'31':10,'32':11,'33':12,'34':13,'35':14,'41':15,'42':16,'43':17,'44':18,'45':19,'51':20,'52':21,'53':22,'54':23,'55':24,'1112':25,'1121':26,'1122':27,'1113':28,'1131':29,'1133':30,'1213':31,'1211':32,'1222':33,'1232':34,'1214':35,'1312':36,'1314':37,'1323':38,'1322':39,'1324':40,'1333':41,'1331':42,'1315':43,'1311':44,'1335':45,'1415':46,'1413':47,'1424':48,'1412':49,'1434':50,'1525':51,'1524':52,'1514':53,'1513':54,'1533':55,'1535':56,'2131':57,'2111':58,'2122':59,'2141':60,'2123':61,'2212':62,'2232':63,'2213':64,'2233':65,'2231':66,'2221':67,'2223':68,'2211':69,'2242':70,'2244':71,'2224':72,'2324':73,'2313':74,'2333':75,'2322':76,'2325':77,'2321':78,'2343':79,'2413':80,'2433':81,'2414':82,'2415':83,'2423':84,'2425':85,'2434':86,'2435':87,'2442':88,'2444':89,'2422':90,'2515':91,'2524':92,'2535':93,'2545':94,'2523':95,'3132':96,'3121':97,'3122':98,'3142':99,'3141':100,'3113':101,'3133':102,'3151':103,'3111':104,'3153':105,'3242':106,'3231':107,'3233':108,'3222':109,'3212':110,'3234':111,'3252':112,'3332':113,'3344':114,'3323':115,'3343':116,'3322':117,'3342':118,'3334':119,'3324':120,'3313':121,'3355':122,'3331':123,'3315':124,'3353':125,'3351':126,'3311':127,'3335':128,'3424':129,'3444':130,'3433':131,'3435':132,'3454':133,'3432':134,'3414':135,'3545':136,'3544':137,'3525':138,'3534':139,'3524':140,'3513':141,'3555':142,'3533':143,'3515':144,'3553':145,'4142':146,'4151':147,'4131':148,'4143':149,'4121':150,'4232':151,'4241':152,'4233':153,'4231':154,'4243':155,'4251':156,'4252':157,'4253':158,'4244':159,'4224':160,'4222':161,'4342':162,'4344':163,'4333':164,'4353':165,'4345':166,'4341':167,'4323':168,'4454':169,'4433':170,'4455':171,'4445':172,'4443':173,'4453':174,'4434':175,'4435':176,'4442':177,'4424':178,'4422':179,'4544':180,'4555':181,'4535':182,'4525':183,'4543':184,'5142':185,'5141':186,'5152':187,'5131':188,'5133':189,'5153':190,'5242':191,'5251':192,'5253':193,'5254':194,'5232':195,'5354':196,'5344':197,'5343':198,'5342':199,'5352':200,'5355':201,'5333':202,'5331':203,'5351':204,'5335':205,'5444':206,'5455':207,'5453':208,'5434':209,'5452':210,'5545':211,'5554':212,'5544':213,'5535':214,'5533':215,'5553':216} reversed_action_space={v:k for k,v in action_space.items()} action_list=list(action_space.keys()) bagh_moves_dict={(1,1):{(1,3),(3,1),(3,3)},(1,2):{(3,2),(1,4)},(1,3):{(3,3),(3,1),(1,5),(1,1),(3,5)},(1,4):{(1,2),(3,4)},(1,5):{(1,3),(3,3),(3,5)},(2,1):{(4,1),(2,3)},(2,2):{(4,2),(4,4),(2,4)},(2,3):{(2,5),(2,1),(4,3)},(2,4):{(4,2),(4,4),(2,2)},(2,5):{(4,5),(2,3)},(3,1):{(1,3),(3,3),(5,1),(1,1),(5,3)},(3,2):{(1,2),(3,4),(5,2)},(3,3):{(1,3),(5,5),(3,1),(1,5),(5,3),(5,1),(1,1),(3,5)},(3,4):{(5,4),(3,2),(1,4)},(3,5):{(1,3),(5,5),(3,3),(1,5),(5,3)},(4,1):{(4,3),(2,1)},(4,2):{(4,4),(2,4),(2,2)},(4,3):{(4,5),(4,1),(2,3)},(4,4):{(4,2),(2,4),(2,2)},(4,5):{(2,5),(4,3)},(5,1):{(3,1),(3,3),(5,3)},(5,2):{(5,4),(3,2)},(5,3):{(5,5),(3,3),(3,1),(5,1),(3,5)},(5,4):{(3,4),(5,2)},(5,5):{(3,5),(3,3),(5,3)}} connected_points_dict={(1,1):{(1,2),(2,1),(2,2)},(1,2):{(1,3),(1,1),(2,2)},(1,3):{(1,2),(1,4),(2,3),(2,2),(2,4)},(1,4):{(1,5),(1,3),(2,4)},(1,5):{(2,5),(2,4),(1,4)},(2,1):{(3,1),(1,1),(2,2)},(2,2):{(1,2),(3,2),(1,3),(3,3),(3,1),(2,1),(2,3),(1,1)},(2,3):{(2,4),(1,3),(3,3),(2,2)},(2,4):{(1,3),(3,3),(1,4),(1,5),(2,3),(2,5),(3,4),(3,5)},(2,5):{(1,5),(2,4),(3,5)},(3,1):{(3,2),(2,1),(2,2),(4,2),(4,1)},(3,2):{(4,2),(3,1),(3,3),(2,2)},(3,3):{(3,2),(4,4),(2,3),(4,3),(2,2),(4,2),(3,4),(2,4)},(3,4):{(2,4),(4,4),(3,3),(3,5)},(3,5):{(4,5),(4,4),(2,5),(3,4),(2,4)},(4,1):{(4,2),(5,1),(3,1)},(4,2):{(3,2),(4,1),(3,3),(3,1),(4,3),(5,1),(5,2),(5,3)},(4,3):{(4,2),(4,4),(3,3),(5,3)},(4,4):{(5,4),(3,3),(5,5),(4,5),(4,3),(5,3),(3,4),(3,5)},(4,5):{(4,4),(5,5),(3,5)},(5,1):{(4,2),(4,1),(5,2)},(5,2):{(4,2),(5,1),(5,3)},(5,3):{(5,4),(4,4),(4,3),(4,2),(5,2)},(5,4):{(4,4),(5,5),(5,3)},(5,5):{(4,5),(5,4),(4,4)}}
action_space = {'11': 0, '12': 1, '13': 2, '14': 3, '15': 4, '21': 5, '22': 6, '23': 7, '24': 8, '25': 9, '31': 10, '32': 11, '33': 12, '34': 13, '35': 14, '41': 15, '42': 16, '43': 17, '44': 18, '45': 19, '51': 20, '52': 21, '53': 22, '54': 23, '55': 24, '1112': 25, '1121': 26, '1122': 27, '1113': 28, '1131': 29, '1133': 30, '1213': 31, '1211': 32, '1222': 33, '1232': 34, '1214': 35, '1312': 36, '1314': 37, '1323': 38, '1322': 39, '1324': 40, '1333': 41, '1331': 42, '1315': 43, '1311': 44, '1335': 45, '1415': 46, '1413': 47, '1424': 48, '1412': 49, '1434': 50, '1525': 51, '1524': 52, '1514': 53, '1513': 54, '1533': 55, '1535': 56, '2131': 57, '2111': 58, '2122': 59, '2141': 60, '2123': 61, '2212': 62, '2232': 63, '2213': 64, '2233': 65, '2231': 66, '2221': 67, '2223': 68, '2211': 69, '2242': 70, '2244': 71, '2224': 72, '2324': 73, '2313': 74, '2333': 75, '2322': 76, '2325': 77, '2321': 78, '2343': 79, '2413': 80, '2433': 81, '2414': 82, '2415': 83, '2423': 84, '2425': 85, '2434': 86, '2435': 87, '2442': 88, '2444': 89, '2422': 90, '2515': 91, '2524': 92, '2535': 93, '2545': 94, '2523': 95, '3132': 96, '3121': 97, '3122': 98, '3142': 99, '3141': 100, '3113': 101, '3133': 102, '3151': 103, '3111': 104, '3153': 105, '3242': 106, '3231': 107, '3233': 108, '3222': 109, '3212': 110, '3234': 111, '3252': 112, '3332': 113, '3344': 114, '3323': 115, '3343': 116, '3322': 117, '3342': 118, '3334': 119, '3324': 120, '3313': 121, '3355': 122, '3331': 123, '3315': 124, '3353': 125, '3351': 126, '3311': 127, '3335': 128, '3424': 129, '3444': 130, '3433': 131, '3435': 132, '3454': 133, '3432': 134, '3414': 135, '3545': 136, '3544': 137, '3525': 138, '3534': 139, '3524': 140, '3513': 141, '3555': 142, '3533': 143, '3515': 144, '3553': 145, '4142': 146, '4151': 147, '4131': 148, '4143': 149, '4121': 150, '4232': 151, '4241': 152, '4233': 153, '4231': 154, '4243': 155, '4251': 156, '4252': 157, '4253': 158, '4244': 159, '4224': 160, '4222': 161, '4342': 162, '4344': 163, '4333': 164, '4353': 165, '4345': 166, '4341': 167, '4323': 168, '4454': 169, '4433': 170, '4455': 171, '4445': 172, '4443': 173, '4453': 174, '4434': 175, '4435': 176, '4442': 177, '4424': 178, '4422': 179, '4544': 180, '4555': 181, '4535': 182, '4525': 183, '4543': 184, '5142': 185, '5141': 186, '5152': 187, '5131': 188, '5133': 189, '5153': 190, '5242': 191, '5251': 192, '5253': 193, '5254': 194, '5232': 195, '5354': 196, '5344': 197, '5343': 198, '5342': 199, '5352': 200, '5355': 201, '5333': 202, '5331': 203, '5351': 204, '5335': 205, '5444': 206, '5455': 207, '5453': 208, '5434': 209, '5452': 210, '5545': 211, '5554': 212, '5544': 213, '5535': 214, '5533': 215, '5553': 216} reversed_action_space = {v: k for (k, v) in action_space.items()} action_list = list(action_space.keys()) bagh_moves_dict = {(1, 1): {(1, 3), (3, 1), (3, 3)}, (1, 2): {(3, 2), (1, 4)}, (1, 3): {(3, 3), (3, 1), (1, 5), (1, 1), (3, 5)}, (1, 4): {(1, 2), (3, 4)}, (1, 5): {(1, 3), (3, 3), (3, 5)}, (2, 1): {(4, 1), (2, 3)}, (2, 2): {(4, 2), (4, 4), (2, 4)}, (2, 3): {(2, 5), (2, 1), (4, 3)}, (2, 4): {(4, 2), (4, 4), (2, 2)}, (2, 5): {(4, 5), (2, 3)}, (3, 1): {(1, 3), (3, 3), (5, 1), (1, 1), (5, 3)}, (3, 2): {(1, 2), (3, 4), (5, 2)}, (3, 3): {(1, 3), (5, 5), (3, 1), (1, 5), (5, 3), (5, 1), (1, 1), (3, 5)}, (3, 4): {(5, 4), (3, 2), (1, 4)}, (3, 5): {(1, 3), (5, 5), (3, 3), (1, 5), (5, 3)}, (4, 1): {(4, 3), (2, 1)}, (4, 2): {(4, 4), (2, 4), (2, 2)}, (4, 3): {(4, 5), (4, 1), (2, 3)}, (4, 4): {(4, 2), (2, 4), (2, 2)}, (4, 5): {(2, 5), (4, 3)}, (5, 1): {(3, 1), (3, 3), (5, 3)}, (5, 2): {(5, 4), (3, 2)}, (5, 3): {(5, 5), (3, 3), (3, 1), (5, 1), (3, 5)}, (5, 4): {(3, 4), (5, 2)}, (5, 5): {(3, 5), (3, 3), (5, 3)}} connected_points_dict = {(1, 1): {(1, 2), (2, 1), (2, 2)}, (1, 2): {(1, 3), (1, 1), (2, 2)}, (1, 3): {(1, 2), (1, 4), (2, 3), (2, 2), (2, 4)}, (1, 4): {(1, 5), (1, 3), (2, 4)}, (1, 5): {(2, 5), (2, 4), (1, 4)}, (2, 1): {(3, 1), (1, 1), (2, 2)}, (2, 2): {(1, 2), (3, 2), (1, 3), (3, 3), (3, 1), (2, 1), (2, 3), (1, 1)}, (2, 3): {(2, 4), (1, 3), (3, 3), (2, 2)}, (2, 4): {(1, 3), (3, 3), (1, 4), (1, 5), (2, 3), (2, 5), (3, 4), (3, 5)}, (2, 5): {(1, 5), (2, 4), (3, 5)}, (3, 1): {(3, 2), (2, 1), (2, 2), (4, 2), (4, 1)}, (3, 2): {(4, 2), (3, 1), (3, 3), (2, 2)}, (3, 3): {(3, 2), (4, 4), (2, 3), (4, 3), (2, 2), (4, 2), (3, 4), (2, 4)}, (3, 4): {(2, 4), (4, 4), (3, 3), (3, 5)}, (3, 5): {(4, 5), (4, 4), (2, 5), (3, 4), (2, 4)}, (4, 1): {(4, 2), (5, 1), (3, 1)}, (4, 2): {(3, 2), (4, 1), (3, 3), (3, 1), (4, 3), (5, 1), (5, 2), (5, 3)}, (4, 3): {(4, 2), (4, 4), (3, 3), (5, 3)}, (4, 4): {(5, 4), (3, 3), (5, 5), (4, 5), (4, 3), (5, 3), (3, 4), (3, 5)}, (4, 5): {(4, 4), (5, 5), (3, 5)}, (5, 1): {(4, 2), (4, 1), (5, 2)}, (5, 2): {(4, 2), (5, 1), (5, 3)}, (5, 3): {(5, 4), (4, 4), (4, 3), (4, 2), (5, 2)}, (5, 4): {(4, 4), (5, 5), (5, 3)}, (5, 5): {(4, 5), (5, 4), (4, 4)}}
# # PySNMP MIB module Juniper-Fractional-T1-CONF (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-Fractional-T1-CONF # Produced by pysmi-0.3.4 at Mon Apr 29 19:51:59 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint") juniAgents, = mibBuilder.importSymbols("Juniper-Agents", "juniAgents") AgentCapabilities, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "AgentCapabilities", "ModuleCompliance", "NotificationGroup") Unsigned32, Bits, iso, TimeTicks, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, ObjectIdentity, MibIdentifier, Counter32, IpAddress, Counter64, Integer32, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "Bits", "iso", "TimeTicks", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "ObjectIdentity", "MibIdentifier", "Counter32", "IpAddress", "Counter64", "Integer32", "ModuleIdentity") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") juniFractionalT1Agent = ModuleIdentity((1, 3, 6, 1, 4, 1, 4874, 5, 2, 16)) juniFractionalT1Agent.setRevisions(('2002-09-06 16:54', '2001-03-29 22:03',)) if mibBuilder.loadTexts: juniFractionalT1Agent.setLastUpdated('200209061654Z') if mibBuilder.loadTexts: juniFractionalT1Agent.setOrganization('Juniper Networks, Inc.') juniFractionalT1AgentV1 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 16, 1)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniFractionalT1AgentV1 = juniFractionalT1AgentV1.setProductRelease('Version 1 of the Fractional T1 component of the JUNOSe SNMP agent.\n This version of the Fractional T1 component was supported in JUNOSe 1.0\n system release.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniFractionalT1AgentV1 = juniFractionalT1AgentV1.setStatus('obsolete') juniFractionalT1AgentV2 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 16, 2)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniFractionalT1AgentV2 = juniFractionalT1AgentV2.setProductRelease('Version 2 of the Fractional T1 component of the JUNOSe SNMP agent.\n This version of the Fractional T1 component is supported in JUNOSe 1.1\n and subsequent system releases.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniFractionalT1AgentV2 = juniFractionalT1AgentV2.setStatus('current') mibBuilder.exportSymbols("Juniper-Fractional-T1-CONF", PYSNMP_MODULE_ID=juniFractionalT1Agent, juniFractionalT1AgentV2=juniFractionalT1AgentV2, juniFractionalT1Agent=juniFractionalT1Agent, juniFractionalT1AgentV1=juniFractionalT1AgentV1)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_size_constraint, constraints_intersection, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'SingleValueConstraint') (juni_agents,) = mibBuilder.importSymbols('Juniper-Agents', 'juniAgents') (agent_capabilities, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'AgentCapabilities', 'ModuleCompliance', 'NotificationGroup') (unsigned32, bits, iso, time_ticks, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, object_identity, mib_identifier, counter32, ip_address, counter64, integer32, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'Bits', 'iso', 'TimeTicks', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'ObjectIdentity', 'MibIdentifier', 'Counter32', 'IpAddress', 'Counter64', 'Integer32', 'ModuleIdentity') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') juni_fractional_t1_agent = module_identity((1, 3, 6, 1, 4, 1, 4874, 5, 2, 16)) juniFractionalT1Agent.setRevisions(('2002-09-06 16:54', '2001-03-29 22:03')) if mibBuilder.loadTexts: juniFractionalT1Agent.setLastUpdated('200209061654Z') if mibBuilder.loadTexts: juniFractionalT1Agent.setOrganization('Juniper Networks, Inc.') juni_fractional_t1_agent_v1 = agent_capabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 16, 1)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_fractional_t1_agent_v1 = juniFractionalT1AgentV1.setProductRelease('Version 1 of the Fractional T1 component of the JUNOSe SNMP agent.\n This version of the Fractional T1 component was supported in JUNOSe 1.0\n system release.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_fractional_t1_agent_v1 = juniFractionalT1AgentV1.setStatus('obsolete') juni_fractional_t1_agent_v2 = agent_capabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 16, 2)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_fractional_t1_agent_v2 = juniFractionalT1AgentV2.setProductRelease('Version 2 of the Fractional T1 component of the JUNOSe SNMP agent.\n This version of the Fractional T1 component is supported in JUNOSe 1.1\n and subsequent system releases.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_fractional_t1_agent_v2 = juniFractionalT1AgentV2.setStatus('current') mibBuilder.exportSymbols('Juniper-Fractional-T1-CONF', PYSNMP_MODULE_ID=juniFractionalT1Agent, juniFractionalT1AgentV2=juniFractionalT1AgentV2, juniFractionalT1Agent=juniFractionalT1Agent, juniFractionalT1AgentV1=juniFractionalT1AgentV1)
''' QUESTION: 455. Assign Cookies Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi, which is the minimum size of a cookie that the child will be content with; and each cookie j has a size sj. If sj >= gi, we can assign the cookie j to the child i, and the child i will be content. Your goal is to maximize the number of your content children and output the maximum number. Note: You may assume the greed factor is always positive. You cannot assign more than one cookie to one child. Example 1: Input: [1,2,3], [1,1] Output: 1 Explanation: You have 3 children and 2 cookies. The greed factors of 3 children are 1, 2, 3. And even though you have 2 cookies, since their size is both 1, you could only make the child whose greed factor is 1 content. You need to output 1. Example 2: Input: [1,2], [1,2,3] Output: 2 Explanation: You have 2 children and 3 cookies. The greed factors of 2 children are 1, 2. You have 3 cookies and their sizes are big enough to gratify all of the children, You need to output 2. ''' class Solution(object): def findContentChildren(self, g, s): count = 0 s.sort() g.sort() while s and g: if s[-1] < g[-1]: g.pop() elif s[-1] >= g[-1]: count += 1 s.pop() g.pop() return count ''' Ideas/thoughts: initially sort the lists. we can go with way of , keeping continuously checking the last element and removing the last element if satified the condition. popping it and returningn count. Time complexity: O(nlogn) '''
""" QUESTION: 455. Assign Cookies Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi, which is the minimum size of a cookie that the child will be content with; and each cookie j has a size sj. If sj >= gi, we can assign the cookie j to the child i, and the child i will be content. Your goal is to maximize the number of your content children and output the maximum number. Note: You may assume the greed factor is always positive. You cannot assign more than one cookie to one child. Example 1: Input: [1,2,3], [1,1] Output: 1 Explanation: You have 3 children and 2 cookies. The greed factors of 3 children are 1, 2, 3. And even though you have 2 cookies, since their size is both 1, you could only make the child whose greed factor is 1 content. You need to output 1. Example 2: Input: [1,2], [1,2,3] Output: 2 Explanation: You have 2 children and 3 cookies. The greed factors of 2 children are 1, 2. You have 3 cookies and their sizes are big enough to gratify all of the children, You need to output 2. """ class Solution(object): def find_content_children(self, g, s): count = 0 s.sort() g.sort() while s and g: if s[-1] < g[-1]: g.pop() elif s[-1] >= g[-1]: count += 1 s.pop() g.pop() return count '\nIdeas/thoughts:\ninitially sort the lists.\nwe can go with way of , keeping continuously checking the last element and removing the last element if satified the condition. popping it and \nreturningn count.\nTime complexity: O(nlogn)\n\n'
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def findDuplicateSubtrees(self, root: TreeNode) -> List[TreeNode]: trees = defaultdict() trees.default_factory = trees.__len__ count = Counter() result = [] def lookup(node): if node: uid = trees[node.val, lookup(node.left), lookup(node.right)] count[uid] += 1 if count[uid] == 2: result.append(node) return uid lookup(root) return result
class Solution: def find_duplicate_subtrees(self, root: TreeNode) -> List[TreeNode]: trees = defaultdict() trees.default_factory = trees.__len__ count = counter() result = [] def lookup(node): if node: uid = trees[node.val, lookup(node.left), lookup(node.right)] count[uid] += 1 if count[uid] == 2: result.append(node) return uid lookup(root) return result
#!/bin/python3 ''' Generate a vector of length m with exactkly n ones ''' def generate_vec_binary(n, m): res = [] lower = sum(2**i for i in range(m-4)) upper = sum(2**i for i in range(m-4, m))+1 for i in range(lower, upper): val = bin(i)[2:].zfill(8) if sum([int(i) for i in val]) == 4: res.append(val) return res if __name__ == '__main__': n,m = 4, 8 print(generate_vec_binary(n,m))
""" Generate a vector of length m with exactkly n ones """ def generate_vec_binary(n, m): res = [] lower = sum((2 ** i for i in range(m - 4))) upper = sum((2 ** i for i in range(m - 4, m))) + 1 for i in range(lower, upper): val = bin(i)[2:].zfill(8) if sum([int(i) for i in val]) == 4: res.append(val) return res if __name__ == '__main__': (n, m) = (4, 8) print(generate_vec_binary(n, m))
def mutate_string(string, position, character): # method_#1 #str_list = list( string ) #str_list[position] = character #str_modified = ''.join(str_list) str_modified = mutate_string_method2( string, position, character) return str_modified # method_#2 def mutate_string_method2(string, position, character): str_modified = string[:position] + character + string[position+1:] return str_modified if __name__ == '__main__': s = input() i, c = input().split() s_new = mutate_string(s, int(i), c) print(s_new)
def mutate_string(string, position, character): str_modified = mutate_string_method2(string, position, character) return str_modified def mutate_string_method2(string, position, character): str_modified = string[:position] + character + string[position + 1:] return str_modified if __name__ == '__main__': s = input() (i, c) = input().split() s_new = mutate_string(s, int(i), c) print(s_new)
# line intersection detection # line1: (x1, y1) to (x2, y2) # line2: (x3, y3) to (x4, y4) def Intercept(x1, y1, x2, y2, x3, y3, x4, y4, d): denom = ((y4-y3) * (x2-x1)) - ((x4-x3) * (y2-y1)) if (denom != 0): ua = (((x4-x3) * (y1-y3)) - ((y4-y3) * (x1-x3))) / denom if ((ua >= 0) and (ua <= 1)): ub = (((x2-x1) * (y1-y3)) - ((y2-y1) * (x1-x3))) / denom if ((ub >= 0) and (ub <= 1)): x = x1 + (ua * (x2-x1)) y = y1 + (ua * (y2-y1)) #print("interception detected") return (x, y, d) return None def sign(x): if x < 0: return -1 elif x > 0: return 1 else: return 0
def intercept(x1, y1, x2, y2, x3, y3, x4, y4, d): denom = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1) if denom != 0: ua = ((x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3)) / denom if ua >= 0 and ua <= 1: ub = ((x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3)) / denom if ub >= 0 and ub <= 1: x = x1 + ua * (x2 - x1) y = y1 + ua * (y2 - y1) return (x, y, d) return None def sign(x): if x < 0: return -1 elif x > 0: return 1 else: return 0
def dominantIndex(self, nums): i = nums.index(max(nums)) l = nums[i] del nums[i] if not nums: return 0 return i if l >= 2 * max(nums) else -1
def dominant_index(self, nums): i = nums.index(max(nums)) l = nums[i] del nums[i] if not nums: return 0 return i if l >= 2 * max(nums) else -1
text = 'i love to count words' count = 0 for char in text: if char == ' ': count = count + 1 #must add one extra line for the last word count = count + 1 print(count)
text = 'i love to count words' count = 0 for char in text: if char == ' ': count = count + 1 count = count + 1 print(count)
def sum100(): total = 0; for i in range(101): total += i return total print(sum100())
def sum100(): total = 0 for i in range(101): total += i return total print(sum100())
''' Now You Code 3: Amazon Deals Create a program that downloads and prints Today's Deals from amazon.com (https://www.amazon.com/gp/goldbox) Hint: You will need to use selenium to scrape this page, it is loaded with JavaScript! Example Run: Here are Amazon.com deals! 1.) Shower Hose 79 inch (6.5 Ft.) for Hand Held Showerhead $8.72 2.) Streamlight 88851 PolyTac LED Flashlight with Lithium Battery $30.52 .... .... .... Start out your program by writing your TODO list of steps you'll need to solve the problem! ''' # TODO: Write Todo list then beneath write your code # Write code here
""" Now You Code 3: Amazon Deals Create a program that downloads and prints Today's Deals from amazon.com (https://www.amazon.com/gp/goldbox) Hint: You will need to use selenium to scrape this page, it is loaded with JavaScript! Example Run: Here are Amazon.com deals! 1.) Shower Hose 79 inch (6.5 Ft.) for Hand Held Showerhead $8.72 2.) Streamlight 88851 PolyTac LED Flashlight with Lithium Battery $30.52 .... .... .... Start out your program by writing your TODO list of steps you'll need to solve the problem! """
class Solution(object): def isValidSudoku(self, board): rows = [{} for i in range(9) ] cols = [{} for i in range(9) ] squares = [ {} for i in range(9)] for i in range(9): for j in range(9): #print("iter", i, j, board[i][j]) #print(rows) #print(cols) #print(squares) # Get current board value and disregard blanks cur_val = board[i][j] if cur_val == ".": continue # Check row hashmap if cur_val in rows[i]: return False rows[i][cur_val] = True # Check columns hashmap if cur_val in cols[j]: return False cols[j][cur_val] = True # Check Squares hashmap square_col = int(i/3) + int(j/3)*3 if cur_val in squares[square_col]: return False squares[square_col][cur_val] = True return True board = [ ["8","3",".",".","7",".",".",".","."], ["6",".",".","1","9","5",".",".","."], [".","9","8",".",".",".",".","6","."], ["8",".",".",".","6",".",".",".","3"], ["4",".",".","8",".","3",".",".","1"], ["7",".",".",".","2",".",".",".","6"], [".","6",".",".",".",".","2","8","."], [".",".",".","4","1","9",".",".","5"], [".",".",".",".","8",".",".","7","9"] ] z = Solution() print(z.isValidSudoku(board))
class Solution(object): def is_valid_sudoku(self, board): rows = [{} for i in range(9)] cols = [{} for i in range(9)] squares = [{} for i in range(9)] for i in range(9): for j in range(9): cur_val = board[i][j] if cur_val == '.': continue if cur_val in rows[i]: return False rows[i][cur_val] = True if cur_val in cols[j]: return False cols[j][cur_val] = True square_col = int(i / 3) + int(j / 3) * 3 if cur_val in squares[square_col]: return False squares[square_col][cur_val] = True return True board = [['8', '3', '.', '.', '7', '.', '.', '.', '.'], ['6', '.', '.', '1', '9', '5', '.', '.', '.'], ['.', '9', '8', '.', '.', '.', '.', '6', '.'], ['8', '.', '.', '.', '6', '.', '.', '.', '3'], ['4', '.', '.', '8', '.', '3', '.', '.', '1'], ['7', '.', '.', '.', '2', '.', '.', '.', '6'], ['.', '6', '.', '.', '.', '.', '2', '8', '.'], ['.', '.', '.', '4', '1', '9', '.', '.', '5'], ['.', '.', '.', '.', '8', '.', '.', '7', '9']] z = solution() print(z.isValidSudoku(board))
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project authors may # be found in the AUTHORS file in the root of the source tree. { 'variables': { 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', 'conditions': [ ['use_libjpeg_turbo==1', { 'libjpeg_include_dir%': [ '<(DEPTH)/third_party/libjpeg_turbo', ], }, { 'libjpeg_include_dir%': [ '<(DEPTH)/third_party/libjpeg', ], }], ], }, 'includes': ['../build/common.gypi'], 'targets': [ { 'target_name': 'common_video', 'type': 'static_library', 'include_dirs': [ '<(webrtc_root)/modules/interface/', 'interface', 'jpeg/include', 'libyuv/include', ], 'direct_dependent_settings': { 'include_dirs': [ 'interface', 'jpeg/include', 'libyuv/include', ], }, 'conditions': [ ['build_libjpeg==1', { 'dependencies': ['<(libjpeg_gyp_path):libjpeg',], }, { # Need to add a directory normally exported by libjpeg.gyp. 'include_dirs': ['<(libjpeg_include_dir)'], }], ['build_libyuv==1', { 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',], }, { # Need to add a directory normally exported by libyuv.gyp. 'include_dirs': ['<(libyuv_dir)/include',], }], ], 'sources': [ 'interface/i420_video_frame.h', 'i420_video_frame.cc', 'jpeg/include/jpeg.h', 'jpeg/data_manager.cc', 'jpeg/data_manager.h', 'jpeg/jpeg.cc', 'libyuv/include/webrtc_libyuv.h', 'libyuv/include/scaler.h', 'libyuv/webrtc_libyuv.cc', 'libyuv/scaler.cc', 'plane.h', 'plane.cc', ], }, ], # targets 'conditions': [ ['include_tests==1', { 'targets': [ { 'target_name': 'common_video_unittests', 'type': 'executable', 'dependencies': [ 'common_video', '<(DEPTH)/testing/gtest.gyp:gtest', '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/test/test.gyp:test_support_main', ], 'sources': [ 'i420_video_frame_unittest.cc', 'jpeg/jpeg_unittest.cc', 'libyuv/libyuv_unittest.cc', 'libyuv/scaler_unittest.cc', 'plane_unittest.cc', ], }, ], # targets }], # include_tests ], }
{'variables': {'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', 'conditions': [['use_libjpeg_turbo==1', {'libjpeg_include_dir%': ['<(DEPTH)/third_party/libjpeg_turbo']}, {'libjpeg_include_dir%': ['<(DEPTH)/third_party/libjpeg']}]]}, 'includes': ['../build/common.gypi'], 'targets': [{'target_name': 'common_video', 'type': 'static_library', 'include_dirs': ['<(webrtc_root)/modules/interface/', 'interface', 'jpeg/include', 'libyuv/include'], 'direct_dependent_settings': {'include_dirs': ['interface', 'jpeg/include', 'libyuv/include']}, 'conditions': [['build_libjpeg==1', {'dependencies': ['<(libjpeg_gyp_path):libjpeg']}, {'include_dirs': ['<(libjpeg_include_dir)']}], ['build_libyuv==1', {'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv']}, {'include_dirs': ['<(libyuv_dir)/include']}]], 'sources': ['interface/i420_video_frame.h', 'i420_video_frame.cc', 'jpeg/include/jpeg.h', 'jpeg/data_manager.cc', 'jpeg/data_manager.h', 'jpeg/jpeg.cc', 'libyuv/include/webrtc_libyuv.h', 'libyuv/include/scaler.h', 'libyuv/webrtc_libyuv.cc', 'libyuv/scaler.cc', 'plane.h', 'plane.cc']}], 'conditions': [['include_tests==1', {'targets': [{'target_name': 'common_video_unittests', 'type': 'executable', 'dependencies': ['common_video', '<(DEPTH)/testing/gtest.gyp:gtest', '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/test/test.gyp:test_support_main'], 'sources': ['i420_video_frame_unittest.cc', 'jpeg/jpeg_unittest.cc', 'libyuv/libyuv_unittest.cc', 'libyuv/scaler_unittest.cc', 'plane_unittest.cc']}]}]]}
def portrayCell(cell): ''' This function is registered with the visualization server to be called each tick to indicate how to draw the cell in its current state. :param cell: the cell in the simulation :return: the portrayal dictionary. ''' assert cell is not None return { "Shape": "hex", "r": 1, "Filled": "true", "Layer": 0, "x": cell.x, "y": cell.y, "Color": "black" if cell.isAlive else "white" }
def portray_cell(cell): """ This function is registered with the visualization server to be called each tick to indicate how to draw the cell in its current state. :param cell: the cell in the simulation :return: the portrayal dictionary. """ assert cell is not None return {'Shape': 'hex', 'r': 1, 'Filled': 'true', 'Layer': 0, 'x': cell.x, 'y': cell.y, 'Color': 'black' if cell.isAlive else 'white'}
# -*- coding: utf-8 -*- class User_stopword(object): user_stop = ['html','head','title','base','link','meta','style','body','article','section','nav','aside','header','footer','address','p','hr','pre','blockquote','ol','ul','li','dl','dt','dd','figure','figcaption','div','main','a','em','strong','small','s','cite','q','dfn','abbr','data','time','code','var','samp','kbd','i','b','u','mark','ruby','rb','rt','rtc','rp','bdi','bdo','span','br','wbr','ins','del','img','iframe','embed','object','param','video','audio','source','track','map','area','table','caption','colgroup','col','tbody','thead','tfoot','tr','td','th','form','label','input','button','select','datalist','optgroup','option','textarea','keygen','output','progress','meter','fieldset','legend','details','summary','dialog','script','noscript','template','canvas','quot','amp','lt','gt','nbsp','iexcl','cent','pound','curren','yen','brvbar','sect','uml','copy','ordf','laquo','not','shy','reg','macr','deg','plusmn','sup2','sup3','acute','micro','para','middot','cedil','sup1','ordm','raquo','frac14','frac12','frac34','iquest','agrave','aacute','acirc','atilde','auml','aring','aelig','ccedil','egrave','eacute','ecirc','euml','igrave','iacute','icirc','iuml','eth','ntilde','ograve','oacute','ocirc','otilde','ouml','times','oslash','ugrave','uacute','ucirc','uuml','yacute','thorn','szlig','agrave','aacute','acirc','atilde','auml','aring','aelig','ccedil','egrave','eacute','ecirc','euml','igrave','iacute','icirc','iuml','eth','ntilde','ograve','oacute','ocirc','otilde','ouml','divide','oslash','ugrave','uacute','ucirc','uuml','yacute','thorn','yuml','oelig','oelig','scaron','scaron','yuml','fnof','circ','tilde','alpha','beta','gamma','delta','epsilon','zeta','eta','theta','iota','kappa','lambda','mu','nu','xi','omicron','pi','rho','sigma','tau','upsilon','phi','chi','psi','omega','alpha','beta','gamma','delta','epsilon','zeta','eta','theta','iota','kappa','lambda','mu','nu','xi','omicron','pi','rho','sigmaf','sigma','tau','upsilon','phi','chi','psi','omega','thetasym','upsih','piv','bull','hellip','prime','prime','oline','frasl','weierp','image','real','trade','alefsym','larr','uarr','rarr','darr','harr','crarr','larr','uarr','rarr','darr','harr','forall','part','exist','empty','nabla','isin','notin','ni','prod','sum','minus','lowast','radic','prop','infin','ang','and','or','cap','cup','int','there4','sim','cong','asymp','ne','equiv','le','ge','sub','sup','nsub','sube','supe','oplus','otimes','perp','sdot','lceil','rceil','lfloor','rfloor','lang','rang','loz','spades','clubs','hearts','diams','ensp','emsp','thinsp','zwnj','zwj','lrm','rlm','ndash','mdash','lsquo','rsquo','sbquo','ldquo','rdquo','bdquo','dagger','dagger','permil','lsaquo'] user_stop_utf = [u'html',u'head',u'title',u'base',u'link',u'meta',u'style',u'body',u'article',u'section',u'nav',u'aside',u'header',u'footer',u'address',u'p',u'hr',u'pre',u'blockquote',u'ol',u'ul',u'li',u'dl',u'dt',u'dd',u'figure',u'figcaption',u'div',u'main',u'a',u'em',u'strong',u'small',u's',u'cite',u'q',u'dfn',u'abbr',u'data',u'time',u'code',u'var',u'samp',u'kbd',u'i',u'b',u'u',u'mark',u'ruby',u'rb',u'rt',u'rtc',u'rp',u'bdi',u'bdo',u'span',u'br',u'wbr',u'ins',u'del',u'img',u'iframe',u'embed',u'object',u'param',u'video',u'audio',u'source',u'track',u'map',u'area',u'table',u'caption',u'colgroup',u'col',u'tbody',u'thead',u'tfoot',u'tr',u'td',u'th',u'form',u'label',u'input',u'button',u'select',u'datalist',u'optgroup',u'option',u'textarea',u'keygen',u'output',u'progress',u'meter',u'fieldset',u'legend',u'details',u'summary',u'dialog',u'script',u'noscript',u'template',u'canvas',u'quot',u'amp',u'lt',u'gt',u'nbsp',u'iexcl',u'cent',u'pound',u'curren',u'yen',u'brvbar',u'sect',u'uml',u'copy',u'ordf',u'laquo',u'not',u'shy',u'reg',u'macr',u'deg',u'plusmn',u'sup2',u'sup3',u'acute',u'micro',u'para',u'middot',u'cedil',u'sup1',u'ordm',u'raquo',u'frac14',u'frac12',u'frac34',u'iquest',u'Agrave',u'Aacute',u'Acirc',u'Atilde',u'Auml',u'Aring',u'AElig',u'Ccedil',u'Egrave',u'Eacute',u'Ecirc',u'Euml',u'Igrave',u'Iacute',u'Icirc',u'Iuml',u'ETH',u'Ntilde',u'Ograve',u'Oacute',u'Ocirc',u'Otilde',u'Ouml',u'times',u'Oslash',u'Ugrave',u'Uacute',u'Ucirc',u'Uuml',u'Yacute',u'THORN',u'szlig',u'agrave',u'aacute',u'acirc',u'atilde',u'auml',u'aring',u'aelig',u'ccedil',u'egrave',u'eacute',u'ecirc',u'euml',u'igrave',u'iacute',u'icirc',u'iuml',u'eth',u'ntilde',u'ograve',u'oacute',u'ocirc',u'otilde',u'ouml',u'divide',u'oslash',u'ugrave',u'uacute',u'ucirc',u'uuml',u'yacute',u'thorn',u'yuml',u'OElig',u'oelig',u'Scaron',u'scaron',u'Yuml',u'fnof',u'circ',u'tilde',u'Alpha',u'Beta',u'Gamma',u'Delta',u'Epsilon',u'Zeta',u'Eta',u'Theta',u'Iota',u'Kappa',u'Lambda',u'Mu',u'Nu',u'Xi',u'Omicron',u'Pi',u'Rho',u'Sigma',u'Tau',u'Upsilon',u'Phi',u'Chi',u'Psi',u'Omega',u'alpha',u'beta',u'gamma',u'delta',u'epsilon',u'zeta',u'eta',u'theta',u'iota',u'kappa',u'lambda',u'mu',u'nu',u'xi',u'omicron',u'pi',u'rho',u'sigmaf',u'sigma',u'tau',u'upsilon',u'phi',u'chi',u'psi',u'omega',u'thetasym',u'upsih',u'piv',u'bull',u'hellip',u'prime',u'Prime',u'oline',u'frasl',u'weierp',u'image',u'real',u'trade',u'alefsym',u'larr',u'uarr',u'rarr',u'darr',u'harr',u'crarr',u'lArr',u'uArr',u'rArr',u'dArr',u'hArr',u'forall',u'part',u'exist',u'empty',u'nabla',u'isin',u'notin',u'ni',u'prod',u'sum',u'minus',u'lowast',u'radic',u'prop',u'infin',u'ang',u'and',u'or',u'cap',u'cup',u'int',u'there4',u'sim',u'cong',u'asymp',u'ne',u'equiv',u'le',u'ge',u'sub',u'sup',u'nsub',u'sube',u'supe',u'oplus',u'otimes',u'perp',u'sdot',u'lceil',u'rceil',u'lfloor',u'rfloor',u'lang',u'rang',u'loz',u'spades',u'clubs',u'hearts',u'diams',u'ensp',u'emsp',u'thinsp',u'zwnj',u'zwj',u'lrm',u'rlm',u'ndash',u'mdash',u'lsquo',u'rsquo',u'sbquo',u'ldquo',u'rdquo',u'bdquo',u'dagger',u'Dagger',u'permil',u'lsaquo']
class User_Stopword(object): user_stop = ['html', 'head', 'title', 'base', 'link', 'meta', 'style', 'body', 'article', 'section', 'nav', 'aside', 'header', 'footer', 'address', 'p', 'hr', 'pre', 'blockquote', 'ol', 'ul', 'li', 'dl', 'dt', 'dd', 'figure', 'figcaption', 'div', 'main', 'a', 'em', 'strong', 'small', 's', 'cite', 'q', 'dfn', 'abbr', 'data', 'time', 'code', 'var', 'samp', 'kbd', 'i', 'b', 'u', 'mark', 'ruby', 'rb', 'rt', 'rtc', 'rp', 'bdi', 'bdo', 'span', 'br', 'wbr', 'ins', 'del', 'img', 'iframe', 'embed', 'object', 'param', 'video', 'audio', 'source', 'track', 'map', 'area', 'table', 'caption', 'colgroup', 'col', 'tbody', 'thead', 'tfoot', 'tr', 'td', 'th', 'form', 'label', 'input', 'button', 'select', 'datalist', 'optgroup', 'option', 'textarea', 'keygen', 'output', 'progress', 'meter', 'fieldset', 'legend', 'details', 'summary', 'dialog', 'script', 'noscript', 'template', 'canvas', 'quot', 'amp', 'lt', 'gt', 'nbsp', 'iexcl', 'cent', 'pound', 'curren', 'yen', 'brvbar', 'sect', 'uml', 'copy', 'ordf', 'laquo', 'not', 'shy', 'reg', 'macr', 'deg', 'plusmn', 'sup2', 'sup3', 'acute', 'micro', 'para', 'middot', 'cedil', 'sup1', 'ordm', 'raquo', 'frac14', 'frac12', 'frac34', 'iquest', 'agrave', 'aacute', 'acirc', 'atilde', 'auml', 'aring', 'aelig', 'ccedil', 'egrave', 'eacute', 'ecirc', 'euml', 'igrave', 'iacute', 'icirc', 'iuml', 'eth', 'ntilde', 'ograve', 'oacute', 'ocirc', 'otilde', 'ouml', 'times', 'oslash', 'ugrave', 'uacute', 'ucirc', 'uuml', 'yacute', 'thorn', 'szlig', 'agrave', 'aacute', 'acirc', 'atilde', 'auml', 'aring', 'aelig', 'ccedil', 'egrave', 'eacute', 'ecirc', 'euml', 'igrave', 'iacute', 'icirc', 'iuml', 'eth', 'ntilde', 'ograve', 'oacute', 'ocirc', 'otilde', 'ouml', 'divide', 'oslash', 'ugrave', 'uacute', 'ucirc', 'uuml', 'yacute', 'thorn', 'yuml', 'oelig', 'oelig', 'scaron', 'scaron', 'yuml', 'fnof', 'circ', 'tilde', 'alpha', 'beta', 'gamma', 'delta', 'epsilon', 'zeta', 'eta', 'theta', 'iota', 'kappa', 'lambda', 'mu', 'nu', 'xi', 'omicron', 'pi', 'rho', 'sigma', 'tau', 'upsilon', 'phi', 'chi', 'psi', 'omega', 'alpha', 'beta', 'gamma', 'delta', 'epsilon', 'zeta', 'eta', 'theta', 'iota', 'kappa', 'lambda', 'mu', 'nu', 'xi', 'omicron', 'pi', 'rho', 'sigmaf', 'sigma', 'tau', 'upsilon', 'phi', 'chi', 'psi', 'omega', 'thetasym', 'upsih', 'piv', 'bull', 'hellip', 'prime', 'prime', 'oline', 'frasl', 'weierp', 'image', 'real', 'trade', 'alefsym', 'larr', 'uarr', 'rarr', 'darr', 'harr', 'crarr', 'larr', 'uarr', 'rarr', 'darr', 'harr', 'forall', 'part', 'exist', 'empty', 'nabla', 'isin', 'notin', 'ni', 'prod', 'sum', 'minus', 'lowast', 'radic', 'prop', 'infin', 'ang', 'and', 'or', 'cap', 'cup', 'int', 'there4', 'sim', 'cong', 'asymp', 'ne', 'equiv', 'le', 'ge', 'sub', 'sup', 'nsub', 'sube', 'supe', 'oplus', 'otimes', 'perp', 'sdot', 'lceil', 'rceil', 'lfloor', 'rfloor', 'lang', 'rang', 'loz', 'spades', 'clubs', 'hearts', 'diams', 'ensp', 'emsp', 'thinsp', 'zwnj', 'zwj', 'lrm', 'rlm', 'ndash', 'mdash', 'lsquo', 'rsquo', 'sbquo', 'ldquo', 'rdquo', 'bdquo', 'dagger', 'dagger', 'permil', 'lsaquo'] user_stop_utf = [u'html', u'head', u'title', u'base', u'link', u'meta', u'style', u'body', u'article', u'section', u'nav', u'aside', u'header', u'footer', u'address', u'p', u'hr', u'pre', u'blockquote', u'ol', u'ul', u'li', u'dl', u'dt', u'dd', u'figure', u'figcaption', u'div', u'main', u'a', u'em', u'strong', u'small', u's', u'cite', u'q', u'dfn', u'abbr', u'data', u'time', u'code', u'var', u'samp', u'kbd', u'i', u'b', u'u', u'mark', u'ruby', u'rb', u'rt', u'rtc', u'rp', u'bdi', u'bdo', u'span', u'br', u'wbr', u'ins', u'del', u'img', u'iframe', u'embed', u'object', u'param', u'video', u'audio', u'source', u'track', u'map', u'area', u'table', u'caption', u'colgroup', u'col', u'tbody', u'thead', u'tfoot', u'tr', u'td', u'th', u'form', u'label', u'input', u'button', u'select', u'datalist', u'optgroup', u'option', u'textarea', u'keygen', u'output', u'progress', u'meter', u'fieldset', u'legend', u'details', u'summary', u'dialog', u'script', u'noscript', u'template', u'canvas', u'quot', u'amp', u'lt', u'gt', u'nbsp', u'iexcl', u'cent', u'pound', u'curren', u'yen', u'brvbar', u'sect', u'uml', u'copy', u'ordf', u'laquo', u'not', u'shy', u'reg', u'macr', u'deg', u'plusmn', u'sup2', u'sup3', u'acute', u'micro', u'para', u'middot', u'cedil', u'sup1', u'ordm', u'raquo', u'frac14', u'frac12', u'frac34', u'iquest', u'Agrave', u'Aacute', u'Acirc', u'Atilde', u'Auml', u'Aring', u'AElig', u'Ccedil', u'Egrave', u'Eacute', u'Ecirc', u'Euml', u'Igrave', u'Iacute', u'Icirc', u'Iuml', u'ETH', u'Ntilde', u'Ograve', u'Oacute', u'Ocirc', u'Otilde', u'Ouml', u'times', u'Oslash', u'Ugrave', u'Uacute', u'Ucirc', u'Uuml', u'Yacute', u'THORN', u'szlig', u'agrave', u'aacute', u'acirc', u'atilde', u'auml', u'aring', u'aelig', u'ccedil', u'egrave', u'eacute', u'ecirc', u'euml', u'igrave', u'iacute', u'icirc', u'iuml', u'eth', u'ntilde', u'ograve', u'oacute', u'ocirc', u'otilde', u'ouml', u'divide', u'oslash', u'ugrave', u'uacute', u'ucirc', u'uuml', u'yacute', u'thorn', u'yuml', u'OElig', u'oelig', u'Scaron', u'scaron', u'Yuml', u'fnof', u'circ', u'tilde', u'Alpha', u'Beta', u'Gamma', u'Delta', u'Epsilon', u'Zeta', u'Eta', u'Theta', u'Iota', u'Kappa', u'Lambda', u'Mu', u'Nu', u'Xi', u'Omicron', u'Pi', u'Rho', u'Sigma', u'Tau', u'Upsilon', u'Phi', u'Chi', u'Psi', u'Omega', u'alpha', u'beta', u'gamma', u'delta', u'epsilon', u'zeta', u'eta', u'theta', u'iota', u'kappa', u'lambda', u'mu', u'nu', u'xi', u'omicron', u'pi', u'rho', u'sigmaf', u'sigma', u'tau', u'upsilon', u'phi', u'chi', u'psi', u'omega', u'thetasym', u'upsih', u'piv', u'bull', u'hellip', u'prime', u'Prime', u'oline', u'frasl', u'weierp', u'image', u'real', u'trade', u'alefsym', u'larr', u'uarr', u'rarr', u'darr', u'harr', u'crarr', u'lArr', u'uArr', u'rArr', u'dArr', u'hArr', u'forall', u'part', u'exist', u'empty', u'nabla', u'isin', u'notin', u'ni', u'prod', u'sum', u'minus', u'lowast', u'radic', u'prop', u'infin', u'ang', u'and', u'or', u'cap', u'cup', u'int', u'there4', u'sim', u'cong', u'asymp', u'ne', u'equiv', u'le', u'ge', u'sub', u'sup', u'nsub', u'sube', u'supe', u'oplus', u'otimes', u'perp', u'sdot', u'lceil', u'rceil', u'lfloor', u'rfloor', u'lang', u'rang', u'loz', u'spades', u'clubs', u'hearts', u'diams', u'ensp', u'emsp', u'thinsp', u'zwnj', u'zwj', u'lrm', u'rlm', u'ndash', u'mdash', u'lsquo', u'rsquo', u'sbquo', u'ldquo', u'rdquo', u'bdquo', u'dagger', u'Dagger', u'permil', u'lsaquo']
def clojure_binary_impl(ctx): toolchain = ctx.toolchains["@rules_clojure//:toolchain"] deps = depset( direct = toolchain.files.runtime, transitive = [dep[JavaInfo].transitive_runtime_deps for dep in ctx.attr.deps], ) executable = ctx.actions.declare_file(ctx.label.name) ctx.actions.write( output = executable, content = "{java} -cp {classpath} clojure.main -m {main} $@".format( java = toolchain.java_runfiles, classpath = ":".join([f.short_path for f in deps.to_list()]), main = ctx.attr.main, ), ) return DefaultInfo( executable = executable, runfiles = ctx.runfiles( files = toolchain.files.scripts + toolchain.files.jdk, transitive_files = deps, ), )
def clojure_binary_impl(ctx): toolchain = ctx.toolchains['@rules_clojure//:toolchain'] deps = depset(direct=toolchain.files.runtime, transitive=[dep[JavaInfo].transitive_runtime_deps for dep in ctx.attr.deps]) executable = ctx.actions.declare_file(ctx.label.name) ctx.actions.write(output=executable, content='{java} -cp {classpath} clojure.main -m {main} $@'.format(java=toolchain.java_runfiles, classpath=':'.join([f.short_path for f in deps.to_list()]), main=ctx.attr.main)) return default_info(executable=executable, runfiles=ctx.runfiles(files=toolchain.files.scripts + toolchain.files.jdk, transitive_files=deps))
# # PySNMP MIB module CHIPNET-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CHIPNET-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:31:30 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion") DisplayString, = mibBuilder.importSymbols("RFC1155-SMI", "DisplayString") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Unsigned32, MibIdentifier, NotificationType, ModuleIdentity, ObjectIdentity, Counter32, Integer32, Counter64, Gauge32, IpAddress, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, enterprises, iso = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "MibIdentifier", "NotificationType", "ModuleIdentity", "ObjectIdentity", "Counter32", "Integer32", "Counter64", "Gauge32", "IpAddress", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "enterprises", "iso") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") chipcom = MibIdentifier((1, 3, 6, 1, 4, 1, 49)) chipmib02 = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2)) chipGen = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 1)) chipEcho = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 2)) chipProducts = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3)) chipExperiment = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4)) chipTTY = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 5)) chipTFTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 6)) chipDownload = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 7)) online = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1)) oebm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 2)) midnight = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 3)) workGroupHub = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4)) emm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 5)) chipBridge = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 6)) trmm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 7)) fmm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 8)) focus1 = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 9)) oeim = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 10)) chipExpTokenRing = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 1)) dot1dBridge = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 14)) dot5 = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 1, 1)) olAgents = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 1)) olConc = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 2)) olEnv = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 3)) olModules = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4)) olNets = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5)) olGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 6)) olAlarm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7)) olSpecMods = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4)) ol50nnMCTL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 3)) ol51nnMMGT = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 4)) ol51nnMFIB = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 5)) ol51nnMUTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 6)) ol51nnMTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 7)) ol51nnMBNC = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 8)) ol51nnBEE = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 9)) ol51nnRES = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 10)) ol51nnREE = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 11)) ol51nnMAUIF = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 12)) ol51nnMAUIM = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 13)) ol5208MTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 14)) ol51nnMFP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 15)) ol51nnMFBP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 16)) ol51nnMTPL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 17)) ol51nnMTPPL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 18)) ol52nnMTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 19)) ol52nnMFR = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 20)) ol51nnMTS = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 21)) ol51nnMFL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 22)) ol50nnMRCTL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 23)) ol51nnMFB = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 24)) ol53nnMMGT = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 25)) ol53nnMFBMIC = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 26)) ol53nnMFIBST = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 27)) ol53nnMSTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 28)) ol51nnMTPCL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 29)) ol52nnBTT = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 30)) ol51nnIx = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 31)) ol52nnMMGT = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 32)) ol50nnMHCTL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 33)) olNet = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1)) olEnet = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 2)) olTRnet = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 3)) olFDDInet = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 4)) hubSysGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 1)) hardwareGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 2)) softwareGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 3)) hubGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 4)) boardGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 5)) portGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 6)) alarmGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 7)) olThresh = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7, 1)) olThreshControl = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7, 1, 1)) class MacAddress(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6) fixedLength = 6 olNetDPTable = MibTable((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1), ) if mibBuilder.loadTexts: olNetDPTable.setStatus('mandatory') olNetDPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1, 1), ).setIndexNames((0, "CHIPNET-MIB", "olNetDPDataPath")) if mibBuilder.loadTexts: olNetDPEntry.setStatus('mandatory') olNetDPDataPath = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31))).clone(namedValues=NamedValues(("ethernet-path-1", 6), ("ethernet-path-2", 7), ("ethernet-path-3", 8), ("token-ring-path-1", 9), ("token-ring-path-2", 10), ("token-ring-path-3", 11), ("token-ring-path-4", 12), ("token-ring-path-5", 13), ("token-ring-path-6", 14), ("token-ring-path-7", 15), ("token-ring-path-8", 16), ("token-ring-path-9", 17), ("token-ring-path-10", 18), ("token-ring-path-11", 19), ("token-ring-path-12", 20), ("token-ring-path-13", 21), ("token-ring-path-14", 22), ("token-ring-path-15", 23), ("fddi-path-1", 24), ("fddi-path-2", 25), ("fddi-path-3", 26), ("fddi-path-4", 27), ("fddi-path-5", 28), ("fddi-path-6", 29), ("fddi-path-7", 30), ("fddi-path-8", 31)))).setMaxAccess("readonly") if mibBuilder.loadTexts: olNetDPDataPath.setStatus('mandatory') olNetDPNetID = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=NamedValues(("notUsed", 1), ("otherProto", 2), ("ethernet-1", 6), ("ethernet-2", 7), ("ethernet-3", 8), ("token-ring-1", 9), ("token-ring-2", 10), ("token-ring-3", 11), ("token-ring-4", 12), ("token-ring-5", 13), ("token-ring-6", 14), ("token-ring-7", 15), ("fddi-1", 16), ("fddi-2", 17), ("fddi-3", 18), ("fddi-4", 19)))).setMaxAccess("readonly") if mibBuilder.loadTexts: olNetDPNetID.setStatus('mandatory') olNetSecurityMACTable = MibTable((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2), ) if mibBuilder.loadTexts: olNetSecurityMACTable.setStatus('mandatory') olNetSecurityMACEntry = MibTableRow((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1), ).setIndexNames((0, "CHIPNET-MIB", "olNetSecurityMACSlotIndex"), (0, "CHIPNET-MIB", "olNetSecurityMACPortIndex"), (0, "CHIPNET-MIB", "olNetSecurityMACAddress")) if mibBuilder.loadTexts: olNetSecurityMACEntry.setStatus('mandatory') olNetSecurityMACSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: olNetSecurityMACSlotIndex.setStatus('mandatory') olNetSecurityMACPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: olNetSecurityMACPortIndex.setStatus('mandatory') olNetSecurityMACAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 3), MacAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: olNetSecurityMACAddress.setStatus('mandatory') olNetSecurityMACMode = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: olNetSecurityMACMode.setStatus('mandatory') olNetSecurityMACStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: olNetSecurityMACStatus.setStatus('mandatory') mibBuilder.exportSymbols("CHIPNET-MIB", olNetDPDataPath=olNetDPDataPath, oebm=oebm, olNetSecurityMACAddress=olNetSecurityMACAddress, olNetDPNetID=olNetDPNetID, olNetDPEntry=olNetDPEntry, softwareGroup=softwareGroup, ol51nnMTP=ol51nnMTP, focus1=focus1, ol51nnMUTP=ol51nnMUTP, olEnv=olEnv, olFDDInet=olFDDInet, boardGroup=boardGroup, hubSysGroup=hubSysGroup, ol51nnMTPCL=ol51nnMTPCL, ol51nnMAUIM=ol51nnMAUIM, ol51nnMFIB=ol51nnMFIB, ol53nnMFBMIC=ol53nnMFBMIC, olNetSecurityMACPortIndex=olNetSecurityMACPortIndex, ol51nnMTS=ol51nnMTS, olNetSecurityMACStatus=olNetSecurityMACStatus, chipExperiment=chipExperiment, emm=emm, ol51nnMTPL=ol51nnMTPL, olConc=olConc, chipBridge=chipBridge, olNetDPTable=olNetDPTable, chipTFTP=chipTFTP, oeim=oeim, ol51nnMMGT=ol51nnMMGT, olSpecMods=olSpecMods, alarmGroup=alarmGroup, ol50nnMHCTL=ol50nnMHCTL, ol51nnMBNC=ol51nnMBNC, MacAddress=MacAddress, olGroups=olGroups, dot1dBridge=dot1dBridge, chipEcho=chipEcho, chipDownload=chipDownload, ol53nnMMGT=ol53nnMMGT, ol52nnMFR=ol52nnMFR, ol51nnREE=ol51nnREE, ol50nnMRCTL=ol50nnMRCTL, ol52nnMMGT=ol52nnMMGT, ol50nnMCTL=ol50nnMCTL, ol53nnMSTP=ol53nnMSTP, olNets=olNets, ol51nnMAUIF=ol51nnMAUIF, ol51nnMFBP=ol51nnMFBP, chipGen=chipGen, chipcom=chipcom, chipmib02=chipmib02, olAlarm=olAlarm, ol51nnRES=ol51nnRES, olThresh=olThresh, olNetSecurityMACSlotIndex=olNetSecurityMACSlotIndex, olAgents=olAgents, midnight=midnight, ol51nnIx=ol51nnIx, ol51nnMFB=ol51nnMFB, olEnet=olEnet, online=online, ol52nnMTP=ol52nnMTP, trmm=trmm, chipTTY=chipTTY, olModules=olModules, ol53nnMFIBST=ol53nnMFIBST, chipExpTokenRing=chipExpTokenRing, ol5208MTP=ol5208MTP, ol51nnMFP=ol51nnMFP, hubGroup=hubGroup, hardwareGroup=hardwareGroup, olNetSecurityMACMode=olNetSecurityMACMode, ol51nnMTPPL=ol51nnMTPPL, ol51nnBEE=ol51nnBEE, ol51nnMFL=ol51nnMFL, ol52nnBTT=ol52nnBTT, olNet=olNet, olTRnet=olTRnet, fmm=fmm, olNetSecurityMACTable=olNetSecurityMACTable, portGroup=portGroup, dot5=dot5, chipProducts=chipProducts, olNetSecurityMACEntry=olNetSecurityMACEntry, workGroupHub=workGroupHub, olThreshControl=olThreshControl)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (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') (display_string,) = mibBuilder.importSymbols('RFC1155-SMI', 'DisplayString') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (unsigned32, mib_identifier, notification_type, module_identity, object_identity, counter32, integer32, counter64, gauge32, ip_address, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, enterprises, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'MibIdentifier', 'NotificationType', 'ModuleIdentity', 'ObjectIdentity', 'Counter32', 'Integer32', 'Counter64', 'Gauge32', 'IpAddress', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'enterprises', 'iso') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') chipcom = mib_identifier((1, 3, 6, 1, 4, 1, 49)) chipmib02 = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2)) chip_gen = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 1)) chip_echo = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 2)) chip_products = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3)) chip_experiment = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4)) chip_tty = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 5)) chip_tftp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 6)) chip_download = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 7)) online = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1)) oebm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 2)) midnight = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 3)) work_group_hub = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4)) emm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 5)) chip_bridge = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 6)) trmm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 7)) fmm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 8)) focus1 = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 9)) oeim = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 10)) chip_exp_token_ring = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 1)) dot1d_bridge = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 14)) dot5 = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 1, 1)) ol_agents = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 1)) ol_conc = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 2)) ol_env = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 3)) ol_modules = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4)) ol_nets = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5)) ol_groups = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 6)) ol_alarm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7)) ol_spec_mods = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4)) ol50nn_mctl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 3)) ol51nn_mmgt = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 4)) ol51nn_mfib = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 5)) ol51nn_mutp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 6)) ol51nn_mtp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 7)) ol51nn_mbnc = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 8)) ol51nn_bee = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 9)) ol51nn_res = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 10)) ol51nn_ree = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 11)) ol51nn_mauif = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 12)) ol51nn_mauim = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 13)) ol5208_mtp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 14)) ol51nn_mfp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 15)) ol51nn_mfbp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 16)) ol51nn_mtpl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 17)) ol51nn_mtppl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 18)) ol52nn_mtp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 19)) ol52nn_mfr = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 20)) ol51nn_mts = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 21)) ol51nn_mfl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 22)) ol50nn_mrctl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 23)) ol51nn_mfb = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 24)) ol53nn_mmgt = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 25)) ol53nn_mfbmic = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 26)) ol53nn_mfibst = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 27)) ol53nn_mstp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 28)) ol51nn_mtpcl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 29)) ol52nn_btt = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 30)) ol51nn_ix = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 31)) ol52nn_mmgt = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 32)) ol50nn_mhctl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 33)) ol_net = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1)) ol_enet = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 2)) ol_t_rnet = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 3)) ol_fdd_inet = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 4)) hub_sys_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 1)) hardware_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 2)) software_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 3)) hub_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 4)) board_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 5)) port_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 6)) alarm_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 7)) ol_thresh = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7, 1)) ol_thresh_control = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7, 1, 1)) class Macaddress(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(6, 6) fixed_length = 6 ol_net_dp_table = mib_table((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1)) if mibBuilder.loadTexts: olNetDPTable.setStatus('mandatory') ol_net_dp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1, 1)).setIndexNames((0, 'CHIPNET-MIB', 'olNetDPDataPath')) if mibBuilder.loadTexts: olNetDPEntry.setStatus('mandatory') ol_net_dp_data_path = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31))).clone(namedValues=named_values(('ethernet-path-1', 6), ('ethernet-path-2', 7), ('ethernet-path-3', 8), ('token-ring-path-1', 9), ('token-ring-path-2', 10), ('token-ring-path-3', 11), ('token-ring-path-4', 12), ('token-ring-path-5', 13), ('token-ring-path-6', 14), ('token-ring-path-7', 15), ('token-ring-path-8', 16), ('token-ring-path-9', 17), ('token-ring-path-10', 18), ('token-ring-path-11', 19), ('token-ring-path-12', 20), ('token-ring-path-13', 21), ('token-ring-path-14', 22), ('token-ring-path-15', 23), ('fddi-path-1', 24), ('fddi-path-2', 25), ('fddi-path-3', 26), ('fddi-path-4', 27), ('fddi-path-5', 28), ('fddi-path-6', 29), ('fddi-path-7', 30), ('fddi-path-8', 31)))).setMaxAccess('readonly') if mibBuilder.loadTexts: olNetDPDataPath.setStatus('mandatory') ol_net_dp_net_id = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=named_values(('notUsed', 1), ('otherProto', 2), ('ethernet-1', 6), ('ethernet-2', 7), ('ethernet-3', 8), ('token-ring-1', 9), ('token-ring-2', 10), ('token-ring-3', 11), ('token-ring-4', 12), ('token-ring-5', 13), ('token-ring-6', 14), ('token-ring-7', 15), ('fddi-1', 16), ('fddi-2', 17), ('fddi-3', 18), ('fddi-4', 19)))).setMaxAccess('readonly') if mibBuilder.loadTexts: olNetDPNetID.setStatus('mandatory') ol_net_security_mac_table = mib_table((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2)) if mibBuilder.loadTexts: olNetSecurityMACTable.setStatus('mandatory') ol_net_security_mac_entry = mib_table_row((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1)).setIndexNames((0, 'CHIPNET-MIB', 'olNetSecurityMACSlotIndex'), (0, 'CHIPNET-MIB', 'olNetSecurityMACPortIndex'), (0, 'CHIPNET-MIB', 'olNetSecurityMACAddress')) if mibBuilder.loadTexts: olNetSecurityMACEntry.setStatus('mandatory') ol_net_security_mac_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: olNetSecurityMACSlotIndex.setStatus('mandatory') ol_net_security_mac_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: olNetSecurityMACPortIndex.setStatus('mandatory') ol_net_security_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 3), mac_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: olNetSecurityMACAddress.setStatus('mandatory') ol_net_security_mac_mode = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: olNetSecurityMACMode.setStatus('mandatory') ol_net_security_mac_status = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: olNetSecurityMACStatus.setStatus('mandatory') mibBuilder.exportSymbols('CHIPNET-MIB', olNetDPDataPath=olNetDPDataPath, oebm=oebm, olNetSecurityMACAddress=olNetSecurityMACAddress, olNetDPNetID=olNetDPNetID, olNetDPEntry=olNetDPEntry, softwareGroup=softwareGroup, ol51nnMTP=ol51nnMTP, focus1=focus1, ol51nnMUTP=ol51nnMUTP, olEnv=olEnv, olFDDInet=olFDDInet, boardGroup=boardGroup, hubSysGroup=hubSysGroup, ol51nnMTPCL=ol51nnMTPCL, ol51nnMAUIM=ol51nnMAUIM, ol51nnMFIB=ol51nnMFIB, ol53nnMFBMIC=ol53nnMFBMIC, olNetSecurityMACPortIndex=olNetSecurityMACPortIndex, ol51nnMTS=ol51nnMTS, olNetSecurityMACStatus=olNetSecurityMACStatus, chipExperiment=chipExperiment, emm=emm, ol51nnMTPL=ol51nnMTPL, olConc=olConc, chipBridge=chipBridge, olNetDPTable=olNetDPTable, chipTFTP=chipTFTP, oeim=oeim, ol51nnMMGT=ol51nnMMGT, olSpecMods=olSpecMods, alarmGroup=alarmGroup, ol50nnMHCTL=ol50nnMHCTL, ol51nnMBNC=ol51nnMBNC, MacAddress=MacAddress, olGroups=olGroups, dot1dBridge=dot1dBridge, chipEcho=chipEcho, chipDownload=chipDownload, ol53nnMMGT=ol53nnMMGT, ol52nnMFR=ol52nnMFR, ol51nnREE=ol51nnREE, ol50nnMRCTL=ol50nnMRCTL, ol52nnMMGT=ol52nnMMGT, ol50nnMCTL=ol50nnMCTL, ol53nnMSTP=ol53nnMSTP, olNets=olNets, ol51nnMAUIF=ol51nnMAUIF, ol51nnMFBP=ol51nnMFBP, chipGen=chipGen, chipcom=chipcom, chipmib02=chipmib02, olAlarm=olAlarm, ol51nnRES=ol51nnRES, olThresh=olThresh, olNetSecurityMACSlotIndex=olNetSecurityMACSlotIndex, olAgents=olAgents, midnight=midnight, ol51nnIx=ol51nnIx, ol51nnMFB=ol51nnMFB, olEnet=olEnet, online=online, ol52nnMTP=ol52nnMTP, trmm=trmm, chipTTY=chipTTY, olModules=olModules, ol53nnMFIBST=ol53nnMFIBST, chipExpTokenRing=chipExpTokenRing, ol5208MTP=ol5208MTP, ol51nnMFP=ol51nnMFP, hubGroup=hubGroup, hardwareGroup=hardwareGroup, olNetSecurityMACMode=olNetSecurityMACMode, ol51nnMTPPL=ol51nnMTPPL, ol51nnBEE=ol51nnBEE, ol51nnMFL=ol51nnMFL, ol52nnBTT=ol52nnBTT, olNet=olNet, olTRnet=olTRnet, fmm=fmm, olNetSecurityMACTable=olNetSecurityMACTable, portGroup=portGroup, dot5=dot5, chipProducts=chipProducts, olNetSecurityMACEntry=olNetSecurityMACEntry, workGroupHub=workGroupHub, olThreshControl=olThreshControl)
electricity_bill = 0 water_bill = 20 internet_bill = 15 other_bills = 0 number_of_months = int(input()) total_el = 0 total_water = number_of_months * water_bill total_net = number_of_months * internet_bill total_other_bills = 0 for i in range (number_of_months): electricity_bill = float(input()) other_bills = water_bill + internet_bill + electricity_bill + ((water_bill + internet_bill + electricity_bill) * 20 /100) total_el +=electricity_bill total_other_bills += other_bills all_expenses = total_net + total_water + total_el + total_other_bills average = all_expenses / number_of_months print(f"Electricity: {total_el:.2f} lv") print(f"Water: {total_water:.2f} lv") print(f"Internet: {total_net:.2f} lv") print(f"Other: {total_other_bills:.2f} lv") print(f"Average: {average:.2f} lv")
electricity_bill = 0 water_bill = 20 internet_bill = 15 other_bills = 0 number_of_months = int(input()) total_el = 0 total_water = number_of_months * water_bill total_net = number_of_months * internet_bill total_other_bills = 0 for i in range(number_of_months): electricity_bill = float(input()) other_bills = water_bill + internet_bill + electricity_bill + (water_bill + internet_bill + electricity_bill) * 20 / 100 total_el += electricity_bill total_other_bills += other_bills all_expenses = total_net + total_water + total_el + total_other_bills average = all_expenses / number_of_months print(f'Electricity: {total_el:.2f} lv') print(f'Water: {total_water:.2f} lv') print(f'Internet: {total_net:.2f} lv') print(f'Other: {total_other_bills:.2f} lv') print(f'Average: {average:.2f} lv')
def test_errors_404(survey_runner): response = survey_runner.test_client().get('/hfjdskahfjdkashfsa') assert response.status_code == 404 assert '<title>Error</title' in response.get_data(True)
def test_errors_404(survey_runner): response = survey_runner.test_client().get('/hfjdskahfjdkashfsa') assert response.status_code == 404 assert '<title>Error</title' in response.get_data(True)
#from cStringIO import StringIO class Message(object): ''' Represents an AMQP message. ''' def __init__(self, body=None, delivery_info=None, **properties): if isinstance(body, unicode): if properties.get('content_encoding', None) is None: properties['content_encoding'] = 'utf-8' body = body.encode(properties['content_encoding']) self._body = body self._delivery_info = delivery_info self._properties = properties @property def body(self): return self._body def __len__(self): return len( self._body ) def __nonzero__(self): '''Have to define this because length is defined.''' return True def __eq__(self, other): if isinstance(other,Message): return self._properties == other._properties and \ self._body == other._body return False @property def delivery_info(self): return self._delivery_info @property def properties(self): return self._properties def __str__(self): return "Message[body: %s, delivery_info: %s, properties: %s]"%\ ( str(self._body).encode('string_escape'), self._delivery_info, self._properties )
class Message(object): """ Represents an AMQP message. """ def __init__(self, body=None, delivery_info=None, **properties): if isinstance(body, unicode): if properties.get('content_encoding', None) is None: properties['content_encoding'] = 'utf-8' body = body.encode(properties['content_encoding']) self._body = body self._delivery_info = delivery_info self._properties = properties @property def body(self): return self._body def __len__(self): return len(self._body) def __nonzero__(self): """Have to define this because length is defined.""" return True def __eq__(self, other): if isinstance(other, Message): return self._properties == other._properties and self._body == other._body return False @property def delivery_info(self): return self._delivery_info @property def properties(self): return self._properties def __str__(self): return 'Message[body: %s, delivery_info: %s, properties: %s]' % (str(self._body).encode('string_escape'), self._delivery_info, self._properties)
class Solution: def lengthOfLIS(self, nums) -> int: # dp=[0 for i in range(len(nums))] # res=1 # dp[0]=1 # for i in range(1,len(nums)): # if nums[i]>nums[i-1]: # dp[i]=dp[i-1]+1 # else: # dp[i]=1 # res=max(res,dp[i]) # return res dp = [[] for i in nums] res = 1 dp[0] = [nums[0]] for i in range(1, len(nums)): res = max(res, self.dfs([], nums[:i + 1], res)) return res def dfs(self,track, nums, res): if not nums or len(nums) == 0: res = max(res, len(track)) return res for i in range(0, len(nums) - 1): if i < nums[-1]: track.append(i) self.dfs(track, nums[:i], res) track.pop() if __name__ == '__main__': sol=Solution() sol.lengthOfLIS([10,9,2,5,3,7,101,18])
class Solution: def length_of_lis(self, nums) -> int: dp = [[] for i in nums] res = 1 dp[0] = [nums[0]] for i in range(1, len(nums)): res = max(res, self.dfs([], nums[:i + 1], res)) return res def dfs(self, track, nums, res): if not nums or len(nums) == 0: res = max(res, len(track)) return res for i in range(0, len(nums) - 1): if i < nums[-1]: track.append(i) self.dfs(track, nums[:i], res) track.pop() if __name__ == '__main__': sol = solution() sol.lengthOfLIS([10, 9, 2, 5, 3, 7, 101, 18])
destinations = input() command = input() while not command == "Travel": command = command.split(":") if command[0] == "Add Stop": index = int(command[1]) stop = command[2] if index in range(len(destinations)): destinations = destinations[:index] + stop + destinations[index:] elif command[0] == 'Remove Stop': start_index = int(command[1]) end_index = int(command[2]) if start_index in range(len(destinations)) and end_index in range(len(destinations)): destinations = destinations[:start_index] + destinations[end_index+1:] elif command[0] == 'Switch': old_string = command[1] new_string = command[2] if old_string in destinations: destinations = destinations.replace(old_string,new_string) print(destinations) command = input() print(f"Ready for world tour! Planned stops: {destinations}")
destinations = input() command = input() while not command == 'Travel': command = command.split(':') if command[0] == 'Add Stop': index = int(command[1]) stop = command[2] if index in range(len(destinations)): destinations = destinations[:index] + stop + destinations[index:] elif command[0] == 'Remove Stop': start_index = int(command[1]) end_index = int(command[2]) if start_index in range(len(destinations)) and end_index in range(len(destinations)): destinations = destinations[:start_index] + destinations[end_index + 1:] elif command[0] == 'Switch': old_string = command[1] new_string = command[2] if old_string in destinations: destinations = destinations.replace(old_string, new_string) print(destinations) command = input() print(f'Ready for world tour! Planned stops: {destinations}')
# Storage for table names to remove tables_to_remove = [ 'The Barbarian', 'The Bard', 'The Cleric', 'The Druid', 'The Fighter', 'The Monk', 'The Paladin', 'The Ranger', 'The Rogue', 'The Sorcerer', 'The Warlock', 'The Wizard', 'Character Advancement', 'Multiclass Spellcaster: Spell Slots per Spell Level', 'Standard Exchange Rates', 'Ability Scores and Modifiers', 'Animated Object Statistics', 'Precipitation', 'Temperature', 'Wind', 'Damage Severity by Level', 'Trap Save DCs and Attack Bonuses', 'Apparatus of the Crab Levers', ('Armor (light, medium, or heavy), rare (requires attunement) You have ', 'resistance to one type of damage while you wear this armor. The GM ', 'chooses the type or determines it randomly from the options below.'), 'Gray Bag of Tricks', 'Rust Bag of Tricks', 'Tan Bag of Tricks', 'Hit Dice by Size', 'Proficiency Bonus by Challenge Rating', 'Experience Points by Challenge Rating', ]
tables_to_remove = ['The Barbarian', 'The Bard', 'The Cleric', 'The Druid', 'The Fighter', 'The Monk', 'The Paladin', 'The Ranger', 'The Rogue', 'The Sorcerer', 'The Warlock', 'The Wizard', 'Character Advancement', 'Multiclass Spellcaster: Spell Slots per Spell Level', 'Standard Exchange Rates', 'Ability Scores and Modifiers', 'Animated Object Statistics', 'Precipitation', 'Temperature', 'Wind', 'Damage Severity by Level', 'Trap Save DCs and Attack Bonuses', 'Apparatus of the Crab Levers', ('Armor (light, medium, or heavy), rare (requires attunement) You have ', 'resistance to one type of damage while you wear this armor. The GM ', 'chooses the type or determines it randomly from the options below.'), 'Gray Bag of Tricks', 'Rust Bag of Tricks', 'Tan Bag of Tricks', 'Hit Dice by Size', 'Proficiency Bonus by Challenge Rating', 'Experience Points by Challenge Rating']
#program to find maximum and the minimum value in a set. #Create a set seta = set([5, 10, 3, 15, 2, 20]) #Find maximum value print(max(seta)) #Find minimum value print(min(seta))
seta = set([5, 10, 3, 15, 2, 20]) print(max(seta)) print(min(seta))
n=input("enter the enumber:") length=len(n) org=int(n) sum=0 n1=int(n) while(n1!=0): rem=n1%10 sum+=(rem**length) n1=n1//10 if(sum==org): print("it is a armstrong number") else: print("it is not an armstrong number")
n = input('enter the enumber:') length = len(n) org = int(n) sum = 0 n1 = int(n) while n1 != 0: rem = n1 % 10 sum += rem ** length n1 = n1 // 10 if sum == org: print('it is a armstrong number') else: print('it is not an armstrong number')
# https://leetcode.com/problems/simplify-path class Solution: def simplifyPath(self, path: str) -> str: stack = [] for i in path.split('/'): if stack and i == "..": stack.pop() elif i not in [".", "", ".."]: stack.append(i) return '/' + '/'.join(stack)
class Solution: def simplify_path(self, path: str) -> str: stack = [] for i in path.split('/'): if stack and i == '..': stack.pop() elif i not in ['.', '', '..']: stack.append(i) return '/' + '/'.join(stack)
#!/usr/bin/python '''! Program to compute the odds for the game of Baccarat. @author <a href="email:fulkgl@gmail.com">George L Fulk</a> ''' def bacc_value(num1, num2): '''! Compute the baccarat value with 2 inputed integer rank values (0..12). ''' if num1 > 9: num1 = 0 if num2 > 9: num2 = 0 num1 += num2 if num1 > 9: num1 -= 10 return num1 def comma(number): '''! Convert an integer to comma seperated string. ''' str_int = "" sign = "" quo = number if number < 0: sign = '-' quo = -number while quo > 999: rem = quo % 1000 str_int = ",%03d%s" % (rem, str_int) quo = quo // 1000 return "%s%d%s" % (sign, quo, str_int) class ComputeBaccaratOdds(object): '''! Compute the odds for the game of Baccarat. ''' def __init__(self, number_decks=8): '''! Compute Baccarat odds for the given number of decks of cards. The range of valid number of decks is limited to 12. The 12 limit is an attempt to prevent attacks or bad coding using up resources. @param numberDecks Number of decks to initialized the odds. The range of valid value is 1 at a minimum up to 12. @throws java.lang.IllegalArgumentException Input arguement numberDecks is not valid. ''' # validate args if not isinstance(number_decks, int) or \ (number_decks < 0) or (number_decks > 12): raise ValueError("number_decks(%s) not a legal value" % str(number_decks)) # create the shoe self.saved_shoe = 13 * [4 * number_decks] # save the dragon table self.dragon_pay_table = 3 * [None] self.dragon_natural_win = 10 self.dragon_natural_tie = 11 # 0, 1, 2, 3, 4, 5, 6, 7, 8 , 9,nat,nT self.dragon_pay_table[1-1] = [-1, -1, -1, -1, 1, 2, 4, 6, 10, 30, 1, 0] self.dragon_pay_table[2-1] = [-1, -1, -1, -1, 1, 3, 4, 7, 8, 20, 1, 0] self.dragon_pay_table[3-1] = [-1, -1, -1, -1, 2, 2, 4, 4, 10, 30, 1, 0] # ^ ^ # Number of hand combinations that result in Banker,Player,Tie wins. self.count_banker = 0 self.count_player = 0 self.count_tie = 0 self.count_naturals = 0 self.count_pair = 0 self.count_nonpair = 0 self.count_banker_3card7 = 0 self.count_player_3card8 = 0 self.count_banker_dragon = [0, 0, 0] self.freq_banker_dragon = [0, 0, 0] self.count_player_dragon = [0, 0, 0] self.freq_player_dragon = [0, 0, 0] # perform the math computation self.recompute(self.saved_shoe) def record(self, value_banker, value_player, count, is_naturals=True, is_banker_3cards=False, is_player_3cards=False): '''! Record the results of a hand combination. ''' diff = value_banker - value_player if value_player < value_banker: # Banker wins self.count_banker += count if is_banker_3cards and value_banker == 7: self.count_banker_3card7 += count if is_naturals: # and not a tie diff = self.dragon_natural_win for table_num in range(3): # various dragon tables dragon_pays = self.dragon_pay_table[table_num][diff] self.count_banker_dragon[table_num] += count * dragon_pays if dragon_pays >= 0: self.freq_banker_dragon[table_num] += count self.count_player_dragon[table_num] += -count elif value_player > value_banker: # Player wins self.count_player += count if is_player_3cards and value_player == 8: self.count_player_3card8 += count diff = -diff if is_naturals: # and not a tie diff = self.dragon_natural_win for table_num in range(3): # various dragon tables dragon_pays = self.dragon_pay_table[table_num][diff] self.count_player_dragon[table_num] += count * dragon_pays if dragon_pays >= 0: self.freq_player_dragon[table_num] += count self.count_banker_dragon[table_num] += -count else: # Tie wins self.count_tie += count if is_naturals: diff = self.dragon_natural_tie # special case, table 3 counts the pushes self.freq_banker_dragon[3 - 1] += count self.freq_player_dragon[3 - 1] += count for table_num in range(3): # various dragon tables dragon_pays = self.dragon_pay_table[table_num][diff] self.count_player_dragon[table_num] += count * dragon_pays self.count_banker_dragon[table_num] += count * dragon_pays def not_naturals(self, value_p, value_b, shoe_size, shoe, count4): '''! Handle the not a naturals situation. Look for a third player and third banker situation. ''' # = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11,12,13] draw_table = [3, 4, 4, 5, 5, 6, 6, 2, 3, 3, 3, 3, 3, 3] if value_p <= 5: # Player hits for p3 in range(len(shoe)): if shoe[p3] != 0: if value_b <= draw_table[p3]: # Banker hits value_p3 = bacc_value(value_p, 1 + p3) count5 = count4 * shoe[p3] shoe[p3] -= 1 for b3 in range(len(shoe)): if shoe[b3] != 0: count6 = count5 * shoe[b3] value_b3 = bacc_value(value_b, 1 + b3) self.record(value_b3, value_p3, count6, False, # not natural True, # 3 card banker True) # 3 card player shoe[p3] += 1 else: # Banker stands count6 = count4 * shoe[p3] * (shoe_size - 1) value_p3 = bacc_value(value_p, 1 + p3) self.record(value_b, value_p3, count6, False, # not natural False, # not 3 card banker True) # player 3 cards else: # Player stands if value_b <= 5: # Banker hits for b3 in range(len(shoe)): if shoe[b3] != 0: value_b3 = bacc_value(value_b, 1 + b3) count6 = count4 * shoe[b3] * (shoe_size - 1) self.record(value_b3, value_p, count6, False, # not natural True, # 3 card banker False) # no 3 card player else: # Banker stands count6 = count4 * shoe_size * (shoe_size - 1) self.record(value_b, value_p, count6, False) # False=!natural def recompute(self, shoe): '''! Recompute the math for the given shoe contents. The 13 indexed values will represent the number of each of the 13 cards in a suit. The shoe[0] is the number of aces, shoe[1] is the number of twos, et cetera. Up to shoe[12] is the number of Kings. @param shoe integer array of length 13 ''' # validate shoe and compute it's size if not isinstance(shoe, list) or (len(shoe) != 13): raise ValueError("int[13] required") shoe_size = 0 for i in shoe: if not isinstance(i, int) or (i < 0) or (i > 50): raise ValueError("shoe does not contain valid values") shoe_size += i # init the counts self.count_banker = 0 self.count_player = 0 self.count_tie = 0 self.count_naturals = 0 self.count_pair = 0 self.count_nonpair = 0 self.count_banker_3card7 = 0 self.count_player_3card8 = 0 self.count_banker_dragon = [0, 0, 0] self.count_player_dragon = [0, 0, 0] self.freq_banker_dragon = [0, 0, 0] self.freq_player_dragon = [0, 0, 0] # Loop through all possible card combinations for p1 in range(len(shoe)): if shoe[p1] > 0: count1 = shoe[p1] shoe[p1] -= 1 shoe_size -= 1 for b1 in range(len(shoe)): if shoe[b1] != 0: count2 = count1 * shoe[b1] shoe[b1] -= 1 shoe_size -= 1 for p2 in range(len(shoe)): if shoe[p2] != 0: count3 = count2 * shoe[p2] shoe[p2] -= 1 shoe_size -= 1 for b2 in range(len(shoe)): if shoe[b2] != 0: count4 = count3 * shoe[b2] shoe[b2] -= 1 shoe_size -= 1 # ----- # First 2 cards dealt to each side. # # count the pair side bet if p1 == p2: self.count_pair += count4 else: self.count_nonpair += count4 # value_p = bacc_value(1 + p1, 1 + p2) value_b = bacc_value(1 + b1, 1 + b2) if (value_p >= 8) or (value_b >= 8): count6 = count4 * shoe_size * \ (shoe_size - 1) self.record(value_b, value_p, count6) self.count_naturals += count6 else: # not natural self.not_naturals(value_p, value_b, shoe_size, shoe, count4) # ----- shoe_size += 1 shoe[b2] += 1 # if b2 # for b2= shoe_size += 1 shoe[p2] += 1 # if p2 # for p2= shoe_size += 1 shoe[b1] += 1 # if b1 # for b1= shoe_size += 1 shoe[p1] += 1 # if p1 # for p1= def __str__(self): '''! Return the string representation of this object. @return String ''' output = [] total = self.count_banker + self.count_player + self.count_tie line = "%5s=%22s%8.4f%%%8.4f%%%+9.4f%%" % ( 'B', comma(self.count_banker), self.count_banker * 100.0 / total, self.count_banker * 100.0 / (self.count_banker + self.count_player), (self.count_banker * 0.95 - self.count_player) * 100.0 / total) output.append(line) line = "%5s=%22s%8.4f%%%8.4f%%%+9.4f%%" % ( 'P', comma(self.count_player), self.count_player * 100.0 / total, self.count_player * 100.0 / (self.count_banker + self.count_player), (self.count_player - self.count_banker) * 100.0 / total) output.append(line) line = "%5s=%22s%8.4f%%%8.4fx%+9.4f%%" % ( 'T', comma(self.count_tie), self.count_tie * 100.0 / total, total * 1.0 / self.count_tie, (self.count_tie * 8.0 - self.count_banker - self.count_player) * 100.0 / total) output.append(line) line = "total=%22s" % comma(total) output.append(line) line = " #nat=%22s%8.4f%% T9x%+6.3f%%" % ( comma(self.count_naturals), self.count_naturals * 100.0 / total, 100.0 * (self.count_tie * (2 + 8.0) - total) / total) output.append(line) line = "%5s=%22s%8.4f%%%8.4f%%%+9.4f%%" % ( 'EZ-B', comma(self.count_banker - self.count_banker_3card7), (self.count_banker - self.count_banker_3card7) * 100.0 / total, (self.count_banker - self.count_banker_3card7) * 100.0 / (self.count_banker + self.count_player), (self.count_banker - self.count_banker_3card7 - self.count_player) * 100.0 / total) output.append(line) line = "%5s=%22s%8.4f%%%8.4fx%+9.4f%%" % ( 'B3C7', comma(self.count_banker_3card7), self.count_banker_3card7 * 100.0 / total, total * 1.0 / self.count_banker_3card7, (self.count_banker_3card7 * (1 + 40.0) - total) * 100.0 / total) output.append(line) line = "%5s=%22s%8.4f%%%8.4fx%+9.4f%%" % ( 'P3C8', comma(self.count_player_3card8), self.count_player_3card8 * 100.0 / total, total * 1.0 / self.count_player_3card8, (self.count_player_3card8 * (1 + 25.0) - total) * 100.0 / total) output.append(line) for table_num in range(3): # various dragon tables comment = "" if table_num == 2: comment = "w/T" line = "%5s=%22s%8.4f%% %3s %+9.4f%%" % ( "DB%d" % (1 + table_num), comma(self.count_banker_dragon[table_num]), self.freq_banker_dragon[table_num] * 100.0 / total, comment, self.count_banker_dragon[table_num] * 100.0 / total) output.append(line) for table_num in range(3): # various dragon tables comment = "" if table_num == 2: comment = "w/T" line = "%5s=%22s%8.4f%% %3s %+9.4f%%" % ( "DP%d" % (1 + table_num), comma(self.count_player_dragon[table_num]), self.freq_player_dragon[table_num] * 100.0 / total, comment, self.count_player_dragon[table_num] * 100.0 / total) output.append(line) output.append("%5s=%14s /%15s%8.4fx%+9.4f%%" % ( 'pair', comma(self.count_pair), comma(self.count_pair + self.count_nonpair), self.count_nonpair * 1.0 / self.count_pair, (self.count_pair * 11.0 - self.count_nonpair) * 100.0 / (self.count_pair + self.count_nonpair))) return "\n".join(output) if __name__ == "__main__": # command line entry point ODDS = ComputeBaccaratOdds() print(ODDS)
"""! Program to compute the odds for the game of Baccarat. @author <a href="email:fulkgl@gmail.com">George L Fulk</a> """ def bacc_value(num1, num2): """! Compute the baccarat value with 2 inputed integer rank values (0..12). """ if num1 > 9: num1 = 0 if num2 > 9: num2 = 0 num1 += num2 if num1 > 9: num1 -= 10 return num1 def comma(number): """! Convert an integer to comma seperated string. """ str_int = '' sign = '' quo = number if number < 0: sign = '-' quo = -number while quo > 999: rem = quo % 1000 str_int = ',%03d%s' % (rem, str_int) quo = quo // 1000 return '%s%d%s' % (sign, quo, str_int) class Computebaccaratodds(object): """! Compute the odds for the game of Baccarat. """ def __init__(self, number_decks=8): """! Compute Baccarat odds for the given number of decks of cards. The range of valid number of decks is limited to 12. The 12 limit is an attempt to prevent attacks or bad coding using up resources. @param numberDecks Number of decks to initialized the odds. The range of valid value is 1 at a minimum up to 12. @throws java.lang.IllegalArgumentException Input arguement numberDecks is not valid. """ if not isinstance(number_decks, int) or number_decks < 0 or number_decks > 12: raise value_error('number_decks(%s) not a legal value' % str(number_decks)) self.saved_shoe = 13 * [4 * number_decks] self.dragon_pay_table = 3 * [None] self.dragon_natural_win = 10 self.dragon_natural_tie = 11 self.dragon_pay_table[1 - 1] = [-1, -1, -1, -1, 1, 2, 4, 6, 10, 30, 1, 0] self.dragon_pay_table[2 - 1] = [-1, -1, -1, -1, 1, 3, 4, 7, 8, 20, 1, 0] self.dragon_pay_table[3 - 1] = [-1, -1, -1, -1, 2, 2, 4, 4, 10, 30, 1, 0] self.count_banker = 0 self.count_player = 0 self.count_tie = 0 self.count_naturals = 0 self.count_pair = 0 self.count_nonpair = 0 self.count_banker_3card7 = 0 self.count_player_3card8 = 0 self.count_banker_dragon = [0, 0, 0] self.freq_banker_dragon = [0, 0, 0] self.count_player_dragon = [0, 0, 0] self.freq_player_dragon = [0, 0, 0] self.recompute(self.saved_shoe) def record(self, value_banker, value_player, count, is_naturals=True, is_banker_3cards=False, is_player_3cards=False): """! Record the results of a hand combination. """ diff = value_banker - value_player if value_player < value_banker: self.count_banker += count if is_banker_3cards and value_banker == 7: self.count_banker_3card7 += count if is_naturals: diff = self.dragon_natural_win for table_num in range(3): dragon_pays = self.dragon_pay_table[table_num][diff] self.count_banker_dragon[table_num] += count * dragon_pays if dragon_pays >= 0: self.freq_banker_dragon[table_num] += count self.count_player_dragon[table_num] += -count elif value_player > value_banker: self.count_player += count if is_player_3cards and value_player == 8: self.count_player_3card8 += count diff = -diff if is_naturals: diff = self.dragon_natural_win for table_num in range(3): dragon_pays = self.dragon_pay_table[table_num][diff] self.count_player_dragon[table_num] += count * dragon_pays if dragon_pays >= 0: self.freq_player_dragon[table_num] += count self.count_banker_dragon[table_num] += -count else: self.count_tie += count if is_naturals: diff = self.dragon_natural_tie self.freq_banker_dragon[3 - 1] += count self.freq_player_dragon[3 - 1] += count for table_num in range(3): dragon_pays = self.dragon_pay_table[table_num][diff] self.count_player_dragon[table_num] += count * dragon_pays self.count_banker_dragon[table_num] += count * dragon_pays def not_naturals(self, value_p, value_b, shoe_size, shoe, count4): """! Handle the not a naturals situation. Look for a third player and third banker situation. """ draw_table = [3, 4, 4, 5, 5, 6, 6, 2, 3, 3, 3, 3, 3, 3] if value_p <= 5: for p3 in range(len(shoe)): if shoe[p3] != 0: if value_b <= draw_table[p3]: value_p3 = bacc_value(value_p, 1 + p3) count5 = count4 * shoe[p3] shoe[p3] -= 1 for b3 in range(len(shoe)): if shoe[b3] != 0: count6 = count5 * shoe[b3] value_b3 = bacc_value(value_b, 1 + b3) self.record(value_b3, value_p3, count6, False, True, True) shoe[p3] += 1 else: count6 = count4 * shoe[p3] * (shoe_size - 1) value_p3 = bacc_value(value_p, 1 + p3) self.record(value_b, value_p3, count6, False, False, True) elif value_b <= 5: for b3 in range(len(shoe)): if shoe[b3] != 0: value_b3 = bacc_value(value_b, 1 + b3) count6 = count4 * shoe[b3] * (shoe_size - 1) self.record(value_b3, value_p, count6, False, True, False) else: count6 = count4 * shoe_size * (shoe_size - 1) self.record(value_b, value_p, count6, False) def recompute(self, shoe): """! Recompute the math for the given shoe contents. The 13 indexed values will represent the number of each of the 13 cards in a suit. The shoe[0] is the number of aces, shoe[1] is the number of twos, et cetera. Up to shoe[12] is the number of Kings. @param shoe integer array of length 13 """ if not isinstance(shoe, list) or len(shoe) != 13: raise value_error('int[13] required') shoe_size = 0 for i in shoe: if not isinstance(i, int) or i < 0 or i > 50: raise value_error('shoe does not contain valid values') shoe_size += i self.count_banker = 0 self.count_player = 0 self.count_tie = 0 self.count_naturals = 0 self.count_pair = 0 self.count_nonpair = 0 self.count_banker_3card7 = 0 self.count_player_3card8 = 0 self.count_banker_dragon = [0, 0, 0] self.count_player_dragon = [0, 0, 0] self.freq_banker_dragon = [0, 0, 0] self.freq_player_dragon = [0, 0, 0] for p1 in range(len(shoe)): if shoe[p1] > 0: count1 = shoe[p1] shoe[p1] -= 1 shoe_size -= 1 for b1 in range(len(shoe)): if shoe[b1] != 0: count2 = count1 * shoe[b1] shoe[b1] -= 1 shoe_size -= 1 for p2 in range(len(shoe)): if shoe[p2] != 0: count3 = count2 * shoe[p2] shoe[p2] -= 1 shoe_size -= 1 for b2 in range(len(shoe)): if shoe[b2] != 0: count4 = count3 * shoe[b2] shoe[b2] -= 1 shoe_size -= 1 if p1 == p2: self.count_pair += count4 else: self.count_nonpair += count4 value_p = bacc_value(1 + p1, 1 + p2) value_b = bacc_value(1 + b1, 1 + b2) if value_p >= 8 or value_b >= 8: count6 = count4 * shoe_size * (shoe_size - 1) self.record(value_b, value_p, count6) self.count_naturals += count6 else: self.not_naturals(value_p, value_b, shoe_size, shoe, count4) shoe_size += 1 shoe[b2] += 1 shoe_size += 1 shoe[p2] += 1 shoe_size += 1 shoe[b1] += 1 shoe_size += 1 shoe[p1] += 1 def __str__(self): """! Return the string representation of this object. @return String """ output = [] total = self.count_banker + self.count_player + self.count_tie line = '%5s=%22s%8.4f%%%8.4f%%%+9.4f%%' % ('B', comma(self.count_banker), self.count_banker * 100.0 / total, self.count_banker * 100.0 / (self.count_banker + self.count_player), (self.count_banker * 0.95 - self.count_player) * 100.0 / total) output.append(line) line = '%5s=%22s%8.4f%%%8.4f%%%+9.4f%%' % ('P', comma(self.count_player), self.count_player * 100.0 / total, self.count_player * 100.0 / (self.count_banker + self.count_player), (self.count_player - self.count_banker) * 100.0 / total) output.append(line) line = '%5s=%22s%8.4f%%%8.4fx%+9.4f%%' % ('T', comma(self.count_tie), self.count_tie * 100.0 / total, total * 1.0 / self.count_tie, (self.count_tie * 8.0 - self.count_banker - self.count_player) * 100.0 / total) output.append(line) line = 'total=%22s' % comma(total) output.append(line) line = ' #nat=%22s%8.4f%% T9x%+6.3f%%' % (comma(self.count_naturals), self.count_naturals * 100.0 / total, 100.0 * (self.count_tie * (2 + 8.0) - total) / total) output.append(line) line = '%5s=%22s%8.4f%%%8.4f%%%+9.4f%%' % ('EZ-B', comma(self.count_banker - self.count_banker_3card7), (self.count_banker - self.count_banker_3card7) * 100.0 / total, (self.count_banker - self.count_banker_3card7) * 100.0 / (self.count_banker + self.count_player), (self.count_banker - self.count_banker_3card7 - self.count_player) * 100.0 / total) output.append(line) line = '%5s=%22s%8.4f%%%8.4fx%+9.4f%%' % ('B3C7', comma(self.count_banker_3card7), self.count_banker_3card7 * 100.0 / total, total * 1.0 / self.count_banker_3card7, (self.count_banker_3card7 * (1 + 40.0) - total) * 100.0 / total) output.append(line) line = '%5s=%22s%8.4f%%%8.4fx%+9.4f%%' % ('P3C8', comma(self.count_player_3card8), self.count_player_3card8 * 100.0 / total, total * 1.0 / self.count_player_3card8, (self.count_player_3card8 * (1 + 25.0) - total) * 100.0 / total) output.append(line) for table_num in range(3): comment = '' if table_num == 2: comment = 'w/T' line = '%5s=%22s%8.4f%% %3s %+9.4f%%' % ('DB%d' % (1 + table_num), comma(self.count_banker_dragon[table_num]), self.freq_banker_dragon[table_num] * 100.0 / total, comment, self.count_banker_dragon[table_num] * 100.0 / total) output.append(line) for table_num in range(3): comment = '' if table_num == 2: comment = 'w/T' line = '%5s=%22s%8.4f%% %3s %+9.4f%%' % ('DP%d' % (1 + table_num), comma(self.count_player_dragon[table_num]), self.freq_player_dragon[table_num] * 100.0 / total, comment, self.count_player_dragon[table_num] * 100.0 / total) output.append(line) output.append('%5s=%14s /%15s%8.4fx%+9.4f%%' % ('pair', comma(self.count_pair), comma(self.count_pair + self.count_nonpair), self.count_nonpair * 1.0 / self.count_pair, (self.count_pair * 11.0 - self.count_nonpair) * 100.0 / (self.count_pair + self.count_nonpair))) return '\n'.join(output) if __name__ == '__main__': odds = compute_baccarat_odds() print(ODDS)
def hashify(string): dict={} res=string+string[0] for i,j in enumerate(string): if dict.get(j, None): if isinstance(dict[j], str): dict[j]=list(dict[j])+[res[i+1]] else: dict[j].append(res[i+1]) else: dict[j]=res[i+1] return dict
def hashify(string): dict = {} res = string + string[0] for (i, j) in enumerate(string): if dict.get(j, None): if isinstance(dict[j], str): dict[j] = list(dict[j]) + [res[i + 1]] else: dict[j].append(res[i + 1]) else: dict[j] = res[i + 1] return dict
# https://github.com/ycm-core/YouCompleteMe/blob/321700e848595af129d5d75afac92d0060d3cdf9/README.md#configuring-through-vim-options def Settings( **kwargs ): client_data = kwargs[ 'client_data' ] return { 'interpreter_path': client_data[ 'g:ycm_python_interpreter_path' ], 'sys_path': client_data[ 'g:ycm_python_sys_path' ] }
def settings(**kwargs): client_data = kwargs['client_data'] return {'interpreter_path': client_data['g:ycm_python_interpreter_path'], 'sys_path': client_data['g:ycm_python_sys_path']}
#!/usr/bin/env python # -*- coding: utf-8 -*- class PyobsException(Exception): pass class ConnectionFailure(PyobsException): pass class MessageTimeout(PyobsException): pass class ObjectError(PyobsException): pass
class Pyobsexception(Exception): pass class Connectionfailure(PyobsException): pass class Messagetimeout(PyobsException): pass class Objecterror(PyobsException): pass
class Student: cname='DurgaSoft' #static variable def __init__(self,name,rollno): self.name=name #instance variable self.rollno=rollno s1=Student('durga',101) s2=Student('pawan',102) print(s1.name,s1.rollno,s1.cname) print(s2.name,s2.rollno,s2.cname)
class Student: cname = 'DurgaSoft' def __init__(self, name, rollno): self.name = name self.rollno = rollno s1 = student('durga', 101) s2 = student('pawan', 102) print(s1.name, s1.rollno, s1.cname) print(s2.name, s2.rollno, s2.cname)
a = [[1, 2, 3], [1, 2, 3], [1, 2, 3]] b = [4, 5, 6] c = [0, 0, 0] def t(): for j in range(len(a)): for [A1, A2, A3] in [[1, 2, 3], [1, 2, 3], [1, 2, 3]]: for B in b: c[A1-1] = B + A1*2 c[A2-1] = B + A2*2 c[A3-1] = B + A3*2 t() print(c)
a = [[1, 2, 3], [1, 2, 3], [1, 2, 3]] b = [4, 5, 6] c = [0, 0, 0] def t(): for j in range(len(a)): for [a1, a2, a3] in [[1, 2, 3], [1, 2, 3], [1, 2, 3]]: for b in b: c[A1 - 1] = B + A1 * 2 c[A2 - 1] = B + A2 * 2 c[A3 - 1] = B + A3 * 2 t() print(c)
class Item: def __init__(self, profit, weight): self.profit = profit self.weight = weight def zeroKnapsack(items, capacity, currentIndex): if capacity <= 0 or currentIndex < 0 or currentIndex>=len(items): return 0 elif items[currentIndex].weight <= capacity: profit1 = items[currentIndex].profit + zeroKnapsack(items, capacity-items[currentIndex].weight, currentIndex+1) profit2 = zeroKnapsack(items, capacity, currentIndex+1) return max(profit1, profit2) else: return 0
class Item: def __init__(self, profit, weight): self.profit = profit self.weight = weight def zero_knapsack(items, capacity, currentIndex): if capacity <= 0 or currentIndex < 0 or currentIndex >= len(items): return 0 elif items[currentIndex].weight <= capacity: profit1 = items[currentIndex].profit + zero_knapsack(items, capacity - items[currentIndex].weight, currentIndex + 1) profit2 = zero_knapsack(items, capacity, currentIndex + 1) return max(profit1, profit2) else: return 0
# # PySNMP MIB module WL400-SNMPGEN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WL400-SNMPGEN-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:36:41 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion") ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance") MibIdentifier, IpAddress, Unsigned32, NotificationType, ObjectIdentity, iso, ModuleIdentity, TimeTicks, Counter32, Counter64, Integer32, Gauge32, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "IpAddress", "Unsigned32", "NotificationType", "ObjectIdentity", "iso", "ModuleIdentity", "TimeTicks", "Counter32", "Counter64", "Integer32", "Gauge32", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn") RowStatus, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "DisplayString", "TextualConvention") wl400Generic, wl400Modules = mibBuilder.importSymbols("WL400-GLOBAL-REG", "wl400Generic", "wl400Modules") snmpGenMIBModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 232, 143, 1, 3)) if mibBuilder.loadTexts: snmpGenMIBModule.setLastUpdated('9905260000Z') if mibBuilder.loadTexts: snmpGenMIBModule.setOrganization('Compaq Computer Corporation') if mibBuilder.loadTexts: snmpGenMIBModule.setContactInfo(' Name: Compaq Computer Corporation Address: 20555 SH 249 Zip: 77070 City: Houston Country: USA Phone: Fax: e-mail: ') if mibBuilder.loadTexts: snmpGenMIBModule.setDescription('The Compaq WL400 SNMP General MIB Module.') snmpGenMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 144, 1)) snmpGenConf = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 1)) snmpGenGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 1)) snmpGenCompl = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 2)) snmpGenObjs = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 2)) snmpGenReadCommunityString = MibScalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: snmpGenReadCommunityString.setStatus('current') if mibBuilder.loadTexts: snmpGenReadCommunityString.setDescription('The community string to use for SNMP communication with this entity when the SNMP operation is a read operation.') snmpGenWriteCommunityString = MibScalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: snmpGenWriteCommunityString.setStatus('current') if mibBuilder.loadTexts: snmpGenWriteCommunityString.setDescription("The community string to use for SNMP communication with this entity when the SNMP operation is a SET Request. When read, this object has an undefined value. When written, subsequent SNMP SET operations must use the new community string to be accepted as authentic. When the reset button is pressed on the Access Point, this variable is reset to 'private'. This is also the default manufacturer value. ") snmpGenTrapDstMaxTableLength = MibScalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: snmpGenTrapDstMaxTableLength.setStatus('current') if mibBuilder.loadTexts: snmpGenTrapDstMaxTableLength.setDescription('The maximum number of entries in the Trap Destination Table.') snmpGenTrapDstTable = MibTable((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4), ) if mibBuilder.loadTexts: snmpGenTrapDstTable.setStatus('current') if mibBuilder.loadTexts: snmpGenTrapDstTable.setDescription('The table containing management targets where notifications (SNMP traps) must be sent to. Syslog messages also use this table.') snmpGenTrapDstEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1), ).setIndexNames((0, "WL400-SNMPGEN-MIB", "snmpGenTrapDstIndex")) if mibBuilder.loadTexts: snmpGenTrapDstEntry.setStatus('current') if mibBuilder.loadTexts: snmpGenTrapDstEntry.setDescription('An entry in the Trap Destination table.') snmpGenTrapDstIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))) if mibBuilder.loadTexts: snmpGenTrapDstIndex.setStatus('current') if mibBuilder.loadTexts: snmpGenTrapDstIndex.setDescription('An index into the Trap Destination table.') snmpGenTrapDstIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 2), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: snmpGenTrapDstIpAddress.setStatus('current') if mibBuilder.loadTexts: snmpGenTrapDstIpAddress.setDescription('The IP address of a management station to send traps to.') snmpGenTrapDstType = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("trapOnly", 1), ("syslogOnly", 2), ("trapAndSyslog", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: snmpGenTrapDstType.setStatus('current') if mibBuilder.loadTexts: snmpGenTrapDstType.setDescription('The type indicates what kind of notification is sent. When set to trapOnly(1), only SNMP traps are sent to the IP address. When set to syslogOnly(2), only syslog messages are sent and when set to trapAndSyslog(3), both a trap and a syslog message will be sent.') snmpGenTrapDstRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: snmpGenTrapDstRowStatus.setStatus('current') if mibBuilder.loadTexts: snmpGenTrapDstRowStatus.setDescription('The status value for creating and deleting rows in this table.') snmpGenLockStatus = MibScalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("locked", 1), ("unlocked", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: snmpGenLockStatus.setStatus('current') if mibBuilder.loadTexts: snmpGenLockStatus.setDescription("This object can be used to lock the SNMP agent. When locked, the agent becomes read-only, i.e. no objects can be written any more. This is useful in a relatively insecure SNMPv1 environment when the network administrator has configured the device and does not intend to change it. This variable can only be set to locked(1). When pressing the reset button on the Access Point, this variable is reset to unlocked(2) and the snmpGenWriteCommunityString is reset to 'private'.") snmpGenChangeIPAddress = MibScalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(18, 18)).setFixedLength(18)).setMaxAccess("readwrite") if mibBuilder.loadTexts: snmpGenChangeIPAddress.setStatus('current') if mibBuilder.loadTexts: snmpGenChangeIPAddress.setDescription("This object is used to change the fixed or 'remembered' IP address of an Access Point. When there is a DHCP/BOOTP server on the network, this variable is not needed. When there is no DHCP/BOOTP server for the IP subnet, the Access Point will try to use the IP address gotten from a previous BOOTP reply (which gives an infinite lease) or an infinite DHCP lease. When there was no previous BOOTP reply, the Access Point can be given an IP address using this variable. Also when the current IP address of the Access Point is invalid for the current IP subnet, this variable can be set by sending an SNMP SET request to the multicast address 224.0.1.43. The MAC address included here ensures that only the right Access Point will accept the SET Request. The IP address given through this variable is considered an infinite lease by the Access Point. The format of this variable is as follows: MAC Address: 6 octets IP Address: 4 octets (network byte order) IP Subnet Mask: 4 octets (network byte order) IP Default Router: 4 octets (network byte order)") snmpGenUseDHCP = MibScalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("always", 1), ("smart", 2), ("never", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: snmpGenUseDHCP.setStatus('current') if mibBuilder.loadTexts: snmpGenUseDHCP.setDescription('This object controls DHCP operation. When set to always(1), the Access Point will not assume an infinite lease it was given but continue trying to obtain an IP address using DHCP. The Access Point can only see the difference between an infinite lease and a finite lease because there is no clock running when the device is shut down. When set to smart(2), the Access Point will use DHCP when it does not have an infinite lease. When it does have an infinite lease, it quickly tries to contact a DHCP server (because it may now be in a new IP subnet) using one DHCPREQUEST and one DHCPDISCOVER. If no replies are received, it will automatically assume its given (infinite) address within a few seconds after reboot. When set to never(3), the Access Point will not use DHCP if it has an infinite address. It will immediately assume that address after a reboot. Note that the Access Point requires a valid (not NULL) IP address for this object to be set to never(3).') snmpGenBasicGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 1, 1)).setObjects(("WL400-SNMPGEN-MIB", "snmpGenReadCommunityString"), ("WL400-SNMPGEN-MIB", "snmpGenWriteCommunityString"), ("WL400-SNMPGEN-MIB", "snmpGenTrapDstMaxTableLength"), ("WL400-SNMPGEN-MIB", "snmpGenTrapDstIpAddress"), ("WL400-SNMPGEN-MIB", "snmpGenTrapDstType"), ("WL400-SNMPGEN-MIB", "snmpGenTrapDstRowStatus"), ("WL400-SNMPGEN-MIB", "snmpGenLockStatus"), ("WL400-SNMPGEN-MIB", "snmpGenChangeIPAddress"), ("WL400-SNMPGEN-MIB", "snmpGenUseDHCP")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): snmpGenBasicGroup = snmpGenBasicGroup.setStatus('current') if mibBuilder.loadTexts: snmpGenBasicGroup.setDescription('The snmp general group.') snmpGenBasicCompl = ModuleCompliance((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 2, 1)).setObjects(("WL400-SNMPGEN-MIB", "snmpGenBasicGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): snmpGenBasicCompl = snmpGenBasicCompl.setStatus('current') if mibBuilder.loadTexts: snmpGenBasicCompl.setDescription('The implementation requirements for an IEEE 802.11 Station.') mibBuilder.exportSymbols("WL400-SNMPGEN-MIB", snmpGenBasicCompl=snmpGenBasicCompl, snmpGenTrapDstType=snmpGenTrapDstType, snmpGenGroups=snmpGenGroups, snmpGenTrapDstMaxTableLength=snmpGenTrapDstMaxTableLength, snmpGenTrapDstIpAddress=snmpGenTrapDstIpAddress, PYSNMP_MODULE_ID=snmpGenMIBModule, snmpGenBasicGroup=snmpGenBasicGroup, snmpGenTrapDstTable=snmpGenTrapDstTable, snmpGenObjs=snmpGenObjs, snmpGenLockStatus=snmpGenLockStatus, snmpGenReadCommunityString=snmpGenReadCommunityString, snmpGenTrapDstEntry=snmpGenTrapDstEntry, snmpGenChangeIPAddress=snmpGenChangeIPAddress, snmpGenTrapDstIndex=snmpGenTrapDstIndex, snmpGenCompl=snmpGenCompl, snmpGenWriteCommunityString=snmpGenWriteCommunityString, snmpGenMIB=snmpGenMIB, snmpGenMIBModule=snmpGenMIBModule, snmpGenUseDHCP=snmpGenUseDHCP, snmpGenTrapDstRowStatus=snmpGenTrapDstRowStatus, snmpGenConf=snmpGenConf)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, constraints_intersection, single_value_constraint, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion') (object_group, notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'NotificationGroup', 'ModuleCompliance') (mib_identifier, ip_address, unsigned32, notification_type, object_identity, iso, module_identity, time_ticks, counter32, counter64, integer32, gauge32, bits, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'IpAddress', 'Unsigned32', 'NotificationType', 'ObjectIdentity', 'iso', 'ModuleIdentity', 'TimeTicks', 'Counter32', 'Counter64', 'Integer32', 'Gauge32', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn') (row_status, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'DisplayString', 'TextualConvention') (wl400_generic, wl400_modules) = mibBuilder.importSymbols('WL400-GLOBAL-REG', 'wl400Generic', 'wl400Modules') snmp_gen_mib_module = module_identity((1, 3, 6, 1, 4, 1, 232, 143, 1, 3)) if mibBuilder.loadTexts: snmpGenMIBModule.setLastUpdated('9905260000Z') if mibBuilder.loadTexts: snmpGenMIBModule.setOrganization('Compaq Computer Corporation') if mibBuilder.loadTexts: snmpGenMIBModule.setContactInfo(' Name: Compaq Computer Corporation Address: 20555 SH 249 Zip: 77070 City: Houston Country: USA Phone: Fax: e-mail: ') if mibBuilder.loadTexts: snmpGenMIBModule.setDescription('The Compaq WL400 SNMP General MIB Module.') snmp_gen_mib = mib_identifier((1, 3, 6, 1, 4, 1, 232, 144, 1)) snmp_gen_conf = mib_identifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 1)) snmp_gen_groups = mib_identifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 1)) snmp_gen_compl = mib_identifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 2)) snmp_gen_objs = mib_identifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 2)) snmp_gen_read_community_string = mib_scalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: snmpGenReadCommunityString.setStatus('current') if mibBuilder.loadTexts: snmpGenReadCommunityString.setDescription('The community string to use for SNMP communication with this entity when the SNMP operation is a read operation.') snmp_gen_write_community_string = mib_scalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: snmpGenWriteCommunityString.setStatus('current') if mibBuilder.loadTexts: snmpGenWriteCommunityString.setDescription("The community string to use for SNMP communication with this entity when the SNMP operation is a SET Request. When read, this object has an undefined value. When written, subsequent SNMP SET operations must use the new community string to be accepted as authentic. When the reset button is pressed on the Access Point, this variable is reset to 'private'. This is also the default manufacturer value. ") snmp_gen_trap_dst_max_table_length = mib_scalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: snmpGenTrapDstMaxTableLength.setStatus('current') if mibBuilder.loadTexts: snmpGenTrapDstMaxTableLength.setDescription('The maximum number of entries in the Trap Destination Table.') snmp_gen_trap_dst_table = mib_table((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4)) if mibBuilder.loadTexts: snmpGenTrapDstTable.setStatus('current') if mibBuilder.loadTexts: snmpGenTrapDstTable.setDescription('The table containing management targets where notifications (SNMP traps) must be sent to. Syslog messages also use this table.') snmp_gen_trap_dst_entry = mib_table_row((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1)).setIndexNames((0, 'WL400-SNMPGEN-MIB', 'snmpGenTrapDstIndex')) if mibBuilder.loadTexts: snmpGenTrapDstEntry.setStatus('current') if mibBuilder.loadTexts: snmpGenTrapDstEntry.setDescription('An entry in the Trap Destination table.') snmp_gen_trap_dst_index = mib_table_column((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 256))) if mibBuilder.loadTexts: snmpGenTrapDstIndex.setStatus('current') if mibBuilder.loadTexts: snmpGenTrapDstIndex.setDescription('An index into the Trap Destination table.') snmp_gen_trap_dst_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 2), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: snmpGenTrapDstIpAddress.setStatus('current') if mibBuilder.loadTexts: snmpGenTrapDstIpAddress.setDescription('The IP address of a management station to send traps to.') snmp_gen_trap_dst_type = mib_table_column((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('trapOnly', 1), ('syslogOnly', 2), ('trapAndSyslog', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: snmpGenTrapDstType.setStatus('current') if mibBuilder.loadTexts: snmpGenTrapDstType.setDescription('The type indicates what kind of notification is sent. When set to trapOnly(1), only SNMP traps are sent to the IP address. When set to syslogOnly(2), only syslog messages are sent and when set to trapAndSyslog(3), both a trap and a syslog message will be sent.') snmp_gen_trap_dst_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: snmpGenTrapDstRowStatus.setStatus('current') if mibBuilder.loadTexts: snmpGenTrapDstRowStatus.setDescription('The status value for creating and deleting rows in this table.') snmp_gen_lock_status = mib_scalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('locked', 1), ('unlocked', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: snmpGenLockStatus.setStatus('current') if mibBuilder.loadTexts: snmpGenLockStatus.setDescription("This object can be used to lock the SNMP agent. When locked, the agent becomes read-only, i.e. no objects can be written any more. This is useful in a relatively insecure SNMPv1 environment when the network administrator has configured the device and does not intend to change it. This variable can only be set to locked(1). When pressing the reset button on the Access Point, this variable is reset to unlocked(2) and the snmpGenWriteCommunityString is reset to 'private'.") snmp_gen_change_ip_address = mib_scalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 6), octet_string().subtype(subtypeSpec=value_size_constraint(18, 18)).setFixedLength(18)).setMaxAccess('readwrite') if mibBuilder.loadTexts: snmpGenChangeIPAddress.setStatus('current') if mibBuilder.loadTexts: snmpGenChangeIPAddress.setDescription("This object is used to change the fixed or 'remembered' IP address of an Access Point. When there is a DHCP/BOOTP server on the network, this variable is not needed. When there is no DHCP/BOOTP server for the IP subnet, the Access Point will try to use the IP address gotten from a previous BOOTP reply (which gives an infinite lease) or an infinite DHCP lease. When there was no previous BOOTP reply, the Access Point can be given an IP address using this variable. Also when the current IP address of the Access Point is invalid for the current IP subnet, this variable can be set by sending an SNMP SET request to the multicast address 224.0.1.43. The MAC address included here ensures that only the right Access Point will accept the SET Request. The IP address given through this variable is considered an infinite lease by the Access Point. The format of this variable is as follows: MAC Address: 6 octets IP Address: 4 octets (network byte order) IP Subnet Mask: 4 octets (network byte order) IP Default Router: 4 octets (network byte order)") snmp_gen_use_dhcp = mib_scalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('always', 1), ('smart', 2), ('never', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: snmpGenUseDHCP.setStatus('current') if mibBuilder.loadTexts: snmpGenUseDHCP.setDescription('This object controls DHCP operation. When set to always(1), the Access Point will not assume an infinite lease it was given but continue trying to obtain an IP address using DHCP. The Access Point can only see the difference between an infinite lease and a finite lease because there is no clock running when the device is shut down. When set to smart(2), the Access Point will use DHCP when it does not have an infinite lease. When it does have an infinite lease, it quickly tries to contact a DHCP server (because it may now be in a new IP subnet) using one DHCPREQUEST and one DHCPDISCOVER. If no replies are received, it will automatically assume its given (infinite) address within a few seconds after reboot. When set to never(3), the Access Point will not use DHCP if it has an infinite address. It will immediately assume that address after a reboot. Note that the Access Point requires a valid (not NULL) IP address for this object to be set to never(3).') snmp_gen_basic_group = object_group((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 1, 1)).setObjects(('WL400-SNMPGEN-MIB', 'snmpGenReadCommunityString'), ('WL400-SNMPGEN-MIB', 'snmpGenWriteCommunityString'), ('WL400-SNMPGEN-MIB', 'snmpGenTrapDstMaxTableLength'), ('WL400-SNMPGEN-MIB', 'snmpGenTrapDstIpAddress'), ('WL400-SNMPGEN-MIB', 'snmpGenTrapDstType'), ('WL400-SNMPGEN-MIB', 'snmpGenTrapDstRowStatus'), ('WL400-SNMPGEN-MIB', 'snmpGenLockStatus'), ('WL400-SNMPGEN-MIB', 'snmpGenChangeIPAddress'), ('WL400-SNMPGEN-MIB', 'snmpGenUseDHCP')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): snmp_gen_basic_group = snmpGenBasicGroup.setStatus('current') if mibBuilder.loadTexts: snmpGenBasicGroup.setDescription('The snmp general group.') snmp_gen_basic_compl = module_compliance((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 2, 1)).setObjects(('WL400-SNMPGEN-MIB', 'snmpGenBasicGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): snmp_gen_basic_compl = snmpGenBasicCompl.setStatus('current') if mibBuilder.loadTexts: snmpGenBasicCompl.setDescription('The implementation requirements for an IEEE 802.11 Station.') mibBuilder.exportSymbols('WL400-SNMPGEN-MIB', snmpGenBasicCompl=snmpGenBasicCompl, snmpGenTrapDstType=snmpGenTrapDstType, snmpGenGroups=snmpGenGroups, snmpGenTrapDstMaxTableLength=snmpGenTrapDstMaxTableLength, snmpGenTrapDstIpAddress=snmpGenTrapDstIpAddress, PYSNMP_MODULE_ID=snmpGenMIBModule, snmpGenBasicGroup=snmpGenBasicGroup, snmpGenTrapDstTable=snmpGenTrapDstTable, snmpGenObjs=snmpGenObjs, snmpGenLockStatus=snmpGenLockStatus, snmpGenReadCommunityString=snmpGenReadCommunityString, snmpGenTrapDstEntry=snmpGenTrapDstEntry, snmpGenChangeIPAddress=snmpGenChangeIPAddress, snmpGenTrapDstIndex=snmpGenTrapDstIndex, snmpGenCompl=snmpGenCompl, snmpGenWriteCommunityString=snmpGenWriteCommunityString, snmpGenMIB=snmpGenMIB, snmpGenMIBModule=snmpGenMIBModule, snmpGenUseDHCP=snmpGenUseDHCP, snmpGenTrapDstRowStatus=snmpGenTrapDstRowStatus, snmpGenConf=snmpGenConf)
__all__ = [ 'update_network_static_route_model', 'rule11_model', 'rule10_model', 'update_network_content_filtering_model', 'rule8_model', 'update_network_ssid_traffic_shaping_model', 'rule7_model', 'update_organization_snmp_model', 'move_network_sm_devices_model', 'lock_network_sm_devices_model', 'update_network_sm_devices_tags_model', 'create_network_sm_app_polaris_model', 'add_network_sm_profile_umbrella_model', 'update_network_sm_profile_umbrella_model', 'create_network_sm_profile_umbrella_model', 'add_network_sm_profile_clarity_model', 'update_network_sm_profile_clarity_model', 'update_network_client_policy_model', 'hub_model', 'update_network_site_to_site_vpn_model', 'combine_organization_networks_model', 'bind_network_model', 'default_destinations_model', 'update_network_alert_settings_model', 'network_model', 'tag_model', 'update_organization_action_batch_model', 'action_model', 'create_organization_action_batch_model', 'update_organization_admin_model', 'create_organization_admin_model', 'ssids_model', 'update_network_client_splash_authorization_status_model', 'create_network_group_policy_model', 'blink_network_device_leds_model', 'update_network_group_policy_model', 'update_network_snmp_settings_model', 'checkin_network_sm_devices_model', 'wipe_network_sm_device_model', 'device_fields_model', 'update_network_sm_device_fields_model', 'update_network_sm_app_polaris_model', 'update_network_sm_target_group_model', 'create_network_sm_target_group_model', 'allowed_file_model', 'update_network_security_malware_settings_model', 'whitelisted_rule_model', 'protected_networks_model', 'update_network_security_intrusion_settings_model', 'update_organization_saml_role_model', 'network2_model', 'tag2_model', 'create_organization_saml_role_model', 'update_organization_third_party_vpn_peers_model', 'update_network_netflow_settings_model', 'update_network_device_management_interface_settings_model', 'update_network_http_server_model', 'create_network_http_server_model', 'rule5_model', 'bonjour_forwarding_model', 'vlan_tagging_model', 'l7_firewall_rule_model', 'bandwidth_limits1_model', 'per_client_bandwidth_limits_model', 'definition_model', 'firewall_and_traffic_shaping_model', 'bandwidth_limits_model', 'bandwidth_model', 'sunday_model', 'saturday_model', 'friday_model', 'thursday_model', 'wednesday_model', 'tuesday_model', 'monday_model', 'update_network_ssid_l3_firewall_rules_model', 'update_organization_vpn_firewall_rules_model', 'rule2_model', 'update_network_l7_firewall_rules_model', 'update_network_l3_firewall_rules_model', 'dhcp_option_model', 'reserved_ip_range_model', 'create_network_vlan_model', 'bandwidth_limits6_model', 'create_network_static_route_model', 'update_network_firewalled_service_model', 'update_network_traffic_shaping_model', 'server_model', 'create_network_switch_stack_model', 'update_network_switch_settings_model', 'ap_tags_and_vlan_id_model', 'radius_accounting_server_model', 'radius_server_model', 'update_network_ssids_plash_settings_model', 'user_model', 'update_network_vlan_model', 'generate_network_camera_snapshot_model', 'ipsec_policies_model', 'update_network_vlans_enabled_state_model', 'update_network_uplink_settings_model', 'update_network_port_forwarding_rules_model', 'update_network_one_to_one_nat_rules_model', 'update_network_one_to_many_nat_rules_model', 'update_network_syslog_servers_model', 'remove_network_switch_stack_model', 'add_network_switch_stack_model', 'power_exception_model', 'allowed_url_model', 'update_organization_security_intrusion_settings_model', 'alert_model', 'update_network_device_wireless_radio_settings_model', 'claim_network_devices_model', 'rule9_model', 'update_device_switch_port_model', 'subnet_model', 'update_network_ssid_model', 'create_network_sm_profile_clarity_model', 'create_network_pii_request_model', 'peer_model', 'claim_organization_model', 'wan2_model', 'wan1_model', 'l3_firewall_rule_model', 'traffic_shaping_rule_model', 'scheduling_model', 'rule4_model', 'rule3_model', 'clone_organization_model', 'rule_model', 'update_network_device_model', 'update_organization_model', 'create_organization_model', 'create_network_http_servers_webhook_test_model', 'provision_network_clients_model', 'update_network_model', 'create_organization_network_model', 'update_network_bluetooth_settings_model', 'update_network_cellular_firewall_rules_model', 'ip_assignment_mode_enum', 'auth_mode_enum', 'service_enum', 'type5_enum', 'wan_enabled_enum', 'settings3_enum', 'settings2_enum', 'splash_auth_settings_enum', 'settings1_enum', 'settings_enum', 'power_type_enum', 'band_selection_enum', 'radius_load_balancing_policy_enum', 'radius_failover_policy_enum', 'wpa_encryption_mode_enum', 'encryption_mode_enum', 'v3_priv_mode_enum', 'v3_auth_mode_enum', 'access_enum', 'splash_page_enum', 'type2_enum', 'type1_enum', 'type_enum', 'policy1_enum', 'policy_enum', ]
__all__ = ['update_network_static_route_model', 'rule11_model', 'rule10_model', 'update_network_content_filtering_model', 'rule8_model', 'update_network_ssid_traffic_shaping_model', 'rule7_model', 'update_organization_snmp_model', 'move_network_sm_devices_model', 'lock_network_sm_devices_model', 'update_network_sm_devices_tags_model', 'create_network_sm_app_polaris_model', 'add_network_sm_profile_umbrella_model', 'update_network_sm_profile_umbrella_model', 'create_network_sm_profile_umbrella_model', 'add_network_sm_profile_clarity_model', 'update_network_sm_profile_clarity_model', 'update_network_client_policy_model', 'hub_model', 'update_network_site_to_site_vpn_model', 'combine_organization_networks_model', 'bind_network_model', 'default_destinations_model', 'update_network_alert_settings_model', 'network_model', 'tag_model', 'update_organization_action_batch_model', 'action_model', 'create_organization_action_batch_model', 'update_organization_admin_model', 'create_organization_admin_model', 'ssids_model', 'update_network_client_splash_authorization_status_model', 'create_network_group_policy_model', 'blink_network_device_leds_model', 'update_network_group_policy_model', 'update_network_snmp_settings_model', 'checkin_network_sm_devices_model', 'wipe_network_sm_device_model', 'device_fields_model', 'update_network_sm_device_fields_model', 'update_network_sm_app_polaris_model', 'update_network_sm_target_group_model', 'create_network_sm_target_group_model', 'allowed_file_model', 'update_network_security_malware_settings_model', 'whitelisted_rule_model', 'protected_networks_model', 'update_network_security_intrusion_settings_model', 'update_organization_saml_role_model', 'network2_model', 'tag2_model', 'create_organization_saml_role_model', 'update_organization_third_party_vpn_peers_model', 'update_network_netflow_settings_model', 'update_network_device_management_interface_settings_model', 'update_network_http_server_model', 'create_network_http_server_model', 'rule5_model', 'bonjour_forwarding_model', 'vlan_tagging_model', 'l7_firewall_rule_model', 'bandwidth_limits1_model', 'per_client_bandwidth_limits_model', 'definition_model', 'firewall_and_traffic_shaping_model', 'bandwidth_limits_model', 'bandwidth_model', 'sunday_model', 'saturday_model', 'friday_model', 'thursday_model', 'wednesday_model', 'tuesday_model', 'monday_model', 'update_network_ssid_l3_firewall_rules_model', 'update_organization_vpn_firewall_rules_model', 'rule2_model', 'update_network_l7_firewall_rules_model', 'update_network_l3_firewall_rules_model', 'dhcp_option_model', 'reserved_ip_range_model', 'create_network_vlan_model', 'bandwidth_limits6_model', 'create_network_static_route_model', 'update_network_firewalled_service_model', 'update_network_traffic_shaping_model', 'server_model', 'create_network_switch_stack_model', 'update_network_switch_settings_model', 'ap_tags_and_vlan_id_model', 'radius_accounting_server_model', 'radius_server_model', 'update_network_ssids_plash_settings_model', 'user_model', 'update_network_vlan_model', 'generate_network_camera_snapshot_model', 'ipsec_policies_model', 'update_network_vlans_enabled_state_model', 'update_network_uplink_settings_model', 'update_network_port_forwarding_rules_model', 'update_network_one_to_one_nat_rules_model', 'update_network_one_to_many_nat_rules_model', 'update_network_syslog_servers_model', 'remove_network_switch_stack_model', 'add_network_switch_stack_model', 'power_exception_model', 'allowed_url_model', 'update_organization_security_intrusion_settings_model', 'alert_model', 'update_network_device_wireless_radio_settings_model', 'claim_network_devices_model', 'rule9_model', 'update_device_switch_port_model', 'subnet_model', 'update_network_ssid_model', 'create_network_sm_profile_clarity_model', 'create_network_pii_request_model', 'peer_model', 'claim_organization_model', 'wan2_model', 'wan1_model', 'l3_firewall_rule_model', 'traffic_shaping_rule_model', 'scheduling_model', 'rule4_model', 'rule3_model', 'clone_organization_model', 'rule_model', 'update_network_device_model', 'update_organization_model', 'create_organization_model', 'create_network_http_servers_webhook_test_model', 'provision_network_clients_model', 'update_network_model', 'create_organization_network_model', 'update_network_bluetooth_settings_model', 'update_network_cellular_firewall_rules_model', 'ip_assignment_mode_enum', 'auth_mode_enum', 'service_enum', 'type5_enum', 'wan_enabled_enum', 'settings3_enum', 'settings2_enum', 'splash_auth_settings_enum', 'settings1_enum', 'settings_enum', 'power_type_enum', 'band_selection_enum', 'radius_load_balancing_policy_enum', 'radius_failover_policy_enum', 'wpa_encryption_mode_enum', 'encryption_mode_enum', 'v3_priv_mode_enum', 'v3_auth_mode_enum', 'access_enum', 'splash_page_enum', 'type2_enum', 'type1_enum', 'type_enum', 'policy1_enum', 'policy_enum']
file = open('helloworld.txt', 'w+') file.write('file: helloworld.txt\n\n') for y in range(10): line = '' if y == 0: line = 'y | x\n' for x in range(10): if x == 0: line += f'{y} | ' line += x.__str__() + ' ' file.write(line + '\n') file.close()
file = open('helloworld.txt', 'w+') file.write('file: helloworld.txt\n\n') for y in range(10): line = '' if y == 0: line = 'y | x\n' for x in range(10): if x == 0: line += f'{y} | ' line += x.__str__() + ' ' file.write(line + '\n') file.close()
# # PySNMP MIB module CISCO-DMN-DSG-REMINDER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DMN-DSG-REMINDER-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:55:08 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint") ciscoDSGUtilities, = mibBuilder.importSymbols("CISCO-DMN-DSG-ROOT-MIB", "ciscoDSGUtilities") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") Gauge32, TimeTicks, Counter64, Unsigned32, ModuleIdentity, MibIdentifier, Bits, NotificationType, iso, Counter32, Integer32, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "MibIdentifier", "Bits", "NotificationType", "iso", "Counter32", "Integer32", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity") RowStatus, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "DisplayString", "TextualConvention") ciscoDSGReminder = ModuleIdentity((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30)) ciscoDSGReminder.setRevisions(('2010-08-30 11:00', '2010-06-17 06:00', '2010-04-12 06:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoDSGReminder.setRevisionsDescriptions(('V01.00.02 2010-08-30 Updated for adherence to SNMPv2 format.', 'V01.00.01 2010-06-17 The enum option for reminderTimerFrequency is corrected.', 'V01.00.00 2010-04-12 Initial revision.',)) if mibBuilder.loadTexts: ciscoDSGReminder.setLastUpdated('201008301100Z') if mibBuilder.loadTexts: ciscoDSGReminder.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoDSGReminder.setContactInfo('Cisco Systems, Inc. Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553 NETS E-mail: cs-ipsla@cisco.com') if mibBuilder.loadTexts: ciscoDSGReminder.setDescription('Cisco DSG Reminder Timer MIB.') reminderTable = MibIdentifier((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2)) reminderTimerTable = MibTable((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1), ) if mibBuilder.loadTexts: reminderTimerTable.setStatus('current') if mibBuilder.loadTexts: reminderTimerTable.setDescription('Reminder Timer table.') reminderTimerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1), ).setIndexNames((0, "CISCO-DMN-DSG-REMINDER-MIB", "reminderTimerID")) if mibBuilder.loadTexts: reminderTimerEntry.setStatus('current') if mibBuilder.loadTexts: reminderTimerEntry.setDescription('Entry for Reminder Timer Table.') reminderTimerID = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 50))) if mibBuilder.loadTexts: reminderTimerID.setStatus('current') if mibBuilder.loadTexts: reminderTimerID.setDescription('Reminder Timer table Index.') reminderTimerChType = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("tv", 1), ("radio", 2), ("other", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: reminderTimerChType.setStatus('current') if mibBuilder.loadTexts: reminderTimerChType.setDescription('Channel type.') reminderTimerChNum = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: reminderTimerChNum.setStatus('current') if mibBuilder.loadTexts: reminderTimerChNum.setDescription('Actual channel number.') reminderTimerChName = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: reminderTimerChName.setStatus('current') if mibBuilder.loadTexts: reminderTimerChName.setDescription('Name of channel for which timer has been set.') reminderTimerEvtName = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: reminderTimerEvtName.setStatus('current') if mibBuilder.loadTexts: reminderTimerEvtName.setDescription('Name of the event for which timer has been set.') reminderTimerDay = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("monday", 1), ("tuesday", 2), ("wednesday", 3), ("thursday", 4), ("friday", 5), ("saturday", 6), ("sunday", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: reminderTimerDay.setStatus('current') if mibBuilder.loadTexts: reminderTimerDay.setDescription('On the day to be reminded.') reminderTimerStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: reminderTimerStartTime.setStatus('current') if mibBuilder.loadTexts: reminderTimerStartTime.setDescription('Timer start time. Format is yyyy-mm-dd hh:mm:ss') reminderTimerEndTime = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: reminderTimerEndTime.setStatus('current') if mibBuilder.loadTexts: reminderTimerEndTime.setDescription('Timer end time. Format is yyyy-mm-dd hh:mm:ss') reminderTimerEvtParentalRating = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: reminderTimerEvtParentalRating.setStatus('current') if mibBuilder.loadTexts: reminderTimerEvtParentalRating.setDescription('Parental rating of the event to be reminded.') reminderTimerFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("once", 1), ("daily", 2), ("weekly", 3), ("weekDays", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: reminderTimerFrequency.setStatus('current') if mibBuilder.loadTexts: reminderTimerFrequency.setDescription('Frequency of timer.') reminderTimerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 11), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: reminderTimerRowStatus.setStatus('current') if mibBuilder.loadTexts: reminderTimerRowStatus.setDescription(' Status of the row.') mibBuilder.exportSymbols("CISCO-DMN-DSG-REMINDER-MIB", reminderTimerFrequency=reminderTimerFrequency, ciscoDSGReminder=ciscoDSGReminder, reminderTimerID=reminderTimerID, reminderTimerTable=reminderTimerTable, reminderTimerEntry=reminderTimerEntry, reminderTimerChNum=reminderTimerChNum, reminderTimerRowStatus=reminderTimerRowStatus, reminderTimerEvtParentalRating=reminderTimerEvtParentalRating, reminderTable=reminderTable, reminderTimerChType=reminderTimerChType, reminderTimerStartTime=reminderTimerStartTime, reminderTimerEndTime=reminderTimerEndTime, reminderTimerDay=reminderTimerDay, reminderTimerChName=reminderTimerChName, PYSNMP_MODULE_ID=ciscoDSGReminder, reminderTimerEvtName=reminderTimerEvtName)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_intersection, value_size_constraint, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint') (cisco_dsg_utilities,) = mibBuilder.importSymbols('CISCO-DMN-DSG-ROOT-MIB', 'ciscoDSGUtilities') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (gauge32, time_ticks, counter64, unsigned32, module_identity, mib_identifier, bits, notification_type, iso, counter32, integer32, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'TimeTicks', 'Counter64', 'Unsigned32', 'ModuleIdentity', 'MibIdentifier', 'Bits', 'NotificationType', 'iso', 'Counter32', 'Integer32', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity') (row_status, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'DisplayString', 'TextualConvention') cisco_dsg_reminder = module_identity((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30)) ciscoDSGReminder.setRevisions(('2010-08-30 11:00', '2010-06-17 06:00', '2010-04-12 06:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoDSGReminder.setRevisionsDescriptions(('V01.00.02 2010-08-30 Updated for adherence to SNMPv2 format.', 'V01.00.01 2010-06-17 The enum option for reminderTimerFrequency is corrected.', 'V01.00.00 2010-04-12 Initial revision.')) if mibBuilder.loadTexts: ciscoDSGReminder.setLastUpdated('201008301100Z') if mibBuilder.loadTexts: ciscoDSGReminder.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoDSGReminder.setContactInfo('Cisco Systems, Inc. Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553 NETS E-mail: cs-ipsla@cisco.com') if mibBuilder.loadTexts: ciscoDSGReminder.setDescription('Cisco DSG Reminder Timer MIB.') reminder_table = mib_identifier((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2)) reminder_timer_table = mib_table((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1)) if mibBuilder.loadTexts: reminderTimerTable.setStatus('current') if mibBuilder.loadTexts: reminderTimerTable.setDescription('Reminder Timer table.') reminder_timer_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1)).setIndexNames((0, 'CISCO-DMN-DSG-REMINDER-MIB', 'reminderTimerID')) if mibBuilder.loadTexts: reminderTimerEntry.setStatus('current') if mibBuilder.loadTexts: reminderTimerEntry.setDescription('Entry for Reminder Timer Table.') reminder_timer_id = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 50))) if mibBuilder.loadTexts: reminderTimerID.setStatus('current') if mibBuilder.loadTexts: reminderTimerID.setDescription('Reminder Timer table Index.') reminder_timer_ch_type = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('tv', 1), ('radio', 2), ('other', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: reminderTimerChType.setStatus('current') if mibBuilder.loadTexts: reminderTimerChType.setDescription('Channel type.') reminder_timer_ch_num = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: reminderTimerChNum.setStatus('current') if mibBuilder.loadTexts: reminderTimerChNum.setDescription('Actual channel number.') reminder_timer_ch_name = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: reminderTimerChName.setStatus('current') if mibBuilder.loadTexts: reminderTimerChName.setDescription('Name of channel for which timer has been set.') reminder_timer_evt_name = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: reminderTimerEvtName.setStatus('current') if mibBuilder.loadTexts: reminderTimerEvtName.setDescription('Name of the event for which timer has been set.') reminder_timer_day = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('monday', 1), ('tuesday', 2), ('wednesday', 3), ('thursday', 4), ('friday', 5), ('saturday', 6), ('sunday', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: reminderTimerDay.setStatus('current') if mibBuilder.loadTexts: reminderTimerDay.setDescription('On the day to be reminded.') reminder_timer_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: reminderTimerStartTime.setStatus('current') if mibBuilder.loadTexts: reminderTimerStartTime.setDescription('Timer start time. Format is yyyy-mm-dd hh:mm:ss') reminder_timer_end_time = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: reminderTimerEndTime.setStatus('current') if mibBuilder.loadTexts: reminderTimerEndTime.setDescription('Timer end time. Format is yyyy-mm-dd hh:mm:ss') reminder_timer_evt_parental_rating = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: reminderTimerEvtParentalRating.setStatus('current') if mibBuilder.loadTexts: reminderTimerEvtParentalRating.setDescription('Parental rating of the event to be reminded.') reminder_timer_frequency = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('once', 1), ('daily', 2), ('weekly', 3), ('weekDays', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: reminderTimerFrequency.setStatus('current') if mibBuilder.loadTexts: reminderTimerFrequency.setDescription('Frequency of timer.') reminder_timer_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 11), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: reminderTimerRowStatus.setStatus('current') if mibBuilder.loadTexts: reminderTimerRowStatus.setDescription(' Status of the row.') mibBuilder.exportSymbols('CISCO-DMN-DSG-REMINDER-MIB', reminderTimerFrequency=reminderTimerFrequency, ciscoDSGReminder=ciscoDSGReminder, reminderTimerID=reminderTimerID, reminderTimerTable=reminderTimerTable, reminderTimerEntry=reminderTimerEntry, reminderTimerChNum=reminderTimerChNum, reminderTimerRowStatus=reminderTimerRowStatus, reminderTimerEvtParentalRating=reminderTimerEvtParentalRating, reminderTable=reminderTable, reminderTimerChType=reminderTimerChType, reminderTimerStartTime=reminderTimerStartTime, reminderTimerEndTime=reminderTimerEndTime, reminderTimerDay=reminderTimerDay, reminderTimerChName=reminderTimerChName, PYSNMP_MODULE_ID=ciscoDSGReminder, reminderTimerEvtName=reminderTimerEvtName)
PI = 3.14 r = 6 area = PI * r * r #print(area) #calulate the surface area of a circle. def findArea(r): PI = 3.14 return PI * (r*r); print('area of circle',findArea(6));
pi = 3.14 r = 6 area = PI * r * r def find_area(r): pi = 3.14 return PI * (r * r) print('area of circle', find_area(6))
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. load("@rules_rust//rust:defs.bzl", "rust_binary") def _wasm_rust_transition_impl(settings, attr): return { "//command_line_option:platforms": "@rules_rust//rust/platform:wasm", } def _wasi_rust_transition_impl(settings, attr): return { "//command_line_option:platforms": "@rules_rust//rust/platform:wasi", } wasm_rust_transition = transition( implementation = _wasm_rust_transition_impl, inputs = [], outputs = [ "//command_line_option:platforms", ], ) wasi_rust_transition = transition( implementation = _wasi_rust_transition_impl, inputs = [], outputs = [ "//command_line_option:platforms", ], ) def _wasm_binary_impl(ctx): out = ctx.actions.declare_file(ctx.label.name) if ctx.attr.signing_key: ctx.actions.run( executable = ctx.executable._wasmsign_tool, arguments = ["--sign", "--use-custom-section", "--sk-path", ctx.files.signing_key[0].path, "--pk-path", ctx.files.signing_key[1].path, "--input", ctx.files.binary[0].path, "--output", out.path], outputs = [out], inputs = ctx.files.binary + ctx.files.signing_key, ) else: ctx.actions.run( executable = "cp", arguments = [ctx.files.binary[0].path, out.path], outputs = [out], inputs = ctx.files.binary, ) return [DefaultInfo(files = depset([out]), runfiles = ctx.runfiles([out]))] def _wasm_attrs(transition): return { "binary": attr.label(mandatory = True, cfg = transition), "signing_key": attr.label_list(allow_files = True), "_wasmsign_tool": attr.label(default = "//bazel/cargo/wasmsign:cargo_bin_wasmsign", executable = True, cfg = "exec"), "_whitelist_function_transition": attr.label(default = "@bazel_tools//tools/whitelists/function_transition_whitelist"), } wasm_rust_binary_rule = rule( implementation = _wasm_binary_impl, attrs = _wasm_attrs(wasm_rust_transition), ) wasi_rust_binary_rule = rule( implementation = _wasm_binary_impl, attrs = _wasm_attrs(wasi_rust_transition), ) def wasm_rust_binary(name, tags = [], wasi = False, signing_key = [], rustc_flags = [], **kwargs): wasm_name = "_wasm_" + name.replace(".", "_") kwargs.setdefault("visibility", ["//visibility:public"]) rust_binary( name = wasm_name, edition = "2018", crate_type = "cdylib", out_binary = True, tags = ["manual"], # Rust doesn't distribute rust-lld for Linux/s390x. rustc_flags = rustc_flags + select({ "//bazel:linux_s390x": ["-C", "linker=/usr/bin/lld"], "//conditions:default": [], }), **kwargs ) bin_rule = wasm_rust_binary_rule if wasi: bin_rule = wasi_rust_binary_rule bin_rule( name = name, binary = ":" + wasm_name, signing_key = signing_key, tags = tags + ["manual"], )
load('@rules_rust//rust:defs.bzl', 'rust_binary') def _wasm_rust_transition_impl(settings, attr): return {'//command_line_option:platforms': '@rules_rust//rust/platform:wasm'} def _wasi_rust_transition_impl(settings, attr): return {'//command_line_option:platforms': '@rules_rust//rust/platform:wasi'} wasm_rust_transition = transition(implementation=_wasm_rust_transition_impl, inputs=[], outputs=['//command_line_option:platforms']) wasi_rust_transition = transition(implementation=_wasi_rust_transition_impl, inputs=[], outputs=['//command_line_option:platforms']) def _wasm_binary_impl(ctx): out = ctx.actions.declare_file(ctx.label.name) if ctx.attr.signing_key: ctx.actions.run(executable=ctx.executable._wasmsign_tool, arguments=['--sign', '--use-custom-section', '--sk-path', ctx.files.signing_key[0].path, '--pk-path', ctx.files.signing_key[1].path, '--input', ctx.files.binary[0].path, '--output', out.path], outputs=[out], inputs=ctx.files.binary + ctx.files.signing_key) else: ctx.actions.run(executable='cp', arguments=[ctx.files.binary[0].path, out.path], outputs=[out], inputs=ctx.files.binary) return [default_info(files=depset([out]), runfiles=ctx.runfiles([out]))] def _wasm_attrs(transition): return {'binary': attr.label(mandatory=True, cfg=transition), 'signing_key': attr.label_list(allow_files=True), '_wasmsign_tool': attr.label(default='//bazel/cargo/wasmsign:cargo_bin_wasmsign', executable=True, cfg='exec'), '_whitelist_function_transition': attr.label(default='@bazel_tools//tools/whitelists/function_transition_whitelist')} wasm_rust_binary_rule = rule(implementation=_wasm_binary_impl, attrs=_wasm_attrs(wasm_rust_transition)) wasi_rust_binary_rule = rule(implementation=_wasm_binary_impl, attrs=_wasm_attrs(wasi_rust_transition)) def wasm_rust_binary(name, tags=[], wasi=False, signing_key=[], rustc_flags=[], **kwargs): wasm_name = '_wasm_' + name.replace('.', '_') kwargs.setdefault('visibility', ['//visibility:public']) rust_binary(name=wasm_name, edition='2018', crate_type='cdylib', out_binary=True, tags=['manual'], rustc_flags=rustc_flags + select({'//bazel:linux_s390x': ['-C', 'linker=/usr/bin/lld'], '//conditions:default': []}), **kwargs) bin_rule = wasm_rust_binary_rule if wasi: bin_rule = wasi_rust_binary_rule bin_rule(name=name, binary=':' + wasm_name, signing_key=signing_key, tags=tags + ['manual'])
schema = { "transaction": { "attributes": ["category", "execution-date", "amount", "reference"], "key": "identifier", "representation": [ "execution-date", "reference", "account-of-receiver.account-number", "amount", ], }, "contract": {"attributes": ["sign-date"], "key": "identifier", "representation": ["identifier"]}, "account": { "attributes": ["balance", "account-type", "opening-date", "account-number"], "key": "account-number", "representation": ["provider.name", "account-number", "account-type"], }, "bank": { "attributes": [ "name", "headquarters", "country", "english-website", "english-mobile-app", "allowed-residents", "free-accounts", "free-worldwide-withdrawals", "english-customer-service", ], "key": "name", "representation": ["name"], }, "person": { "attributes": [ "email", "last-name", "first-name", "gender", "phone-number", "city", ], "key": "email", "representation": ["first-name", "last-name"], }, "card": { "attributes": ["name-on-card", "expiry-date", "created-date", "card-number"], "key": "card-number", "representation": ["name-on-card", "card-number"], }, }
schema = {'transaction': {'attributes': ['category', 'execution-date', 'amount', 'reference'], 'key': 'identifier', 'representation': ['execution-date', 'reference', 'account-of-receiver.account-number', 'amount']}, 'contract': {'attributes': ['sign-date'], 'key': 'identifier', 'representation': ['identifier']}, 'account': {'attributes': ['balance', 'account-type', 'opening-date', 'account-number'], 'key': 'account-number', 'representation': ['provider.name', 'account-number', 'account-type']}, 'bank': {'attributes': ['name', 'headquarters', 'country', 'english-website', 'english-mobile-app', 'allowed-residents', 'free-accounts', 'free-worldwide-withdrawals', 'english-customer-service'], 'key': 'name', 'representation': ['name']}, 'person': {'attributes': ['email', 'last-name', 'first-name', 'gender', 'phone-number', 'city'], 'key': 'email', 'representation': ['first-name', 'last-name']}, 'card': {'attributes': ['name-on-card', 'expiry-date', 'created-date', 'card-number'], 'key': 'card-number', 'representation': ['name-on-card', 'card-number']}}
''' Get the name and the value of various products. The program should ask if the user wants to continue. In the end show the following: 1 - The total value. 2 - How many products costs more than R$1000. 3 - The name of cheaper product. ''' dlength = 20 division = '=-' * dlength print(f'{division}\n{"The Cheapest Shop":^{dlength * 2}}\n{division}') total = higher1000 = cheapestValue = cheapestName = 0 while True: name = input('Product name: ') price = float(input('Price: R$ ')) if total == 0 or price < cheapestValue: cheapestValue = price cheapestName = name total += price if price > 1000: higher1000 += 1 again = input('Do you want to continue? [S/N]').strip().upper() if again == 'N': break print(f'The total cost is \033[32mR$ {total:.2f}\033[m, with \033[32m{higher1000}\033[m products higher than \033[34mR$ 1000\033[m') print(f'And the cheapest product is the \033[32m{cheapestName}\033[m, it costs R$ {cheapestValue:.2f}\033[m')
""" Get the name and the value of various products. The program should ask if the user wants to continue. In the end show the following: 1 - The total value. 2 - How many products costs more than R$1000. 3 - The name of cheaper product. """ dlength = 20 division = '=-' * dlength print(f"{division}\n{'The Cheapest Shop':^{dlength * 2}}\n{division}") total = higher1000 = cheapest_value = cheapest_name = 0 while True: name = input('Product name: ') price = float(input('Price: R$ ')) if total == 0 or price < cheapestValue: cheapest_value = price cheapest_name = name total += price if price > 1000: higher1000 += 1 again = input('Do you want to continue? [S/N]').strip().upper() if again == 'N': break print(f'The total cost is \x1b[32mR$ {total:.2f}\x1b[m, with \x1b[32m{higher1000}\x1b[m products higher than \x1b[34mR$ 1000\x1b[m') print(f'And the cheapest product is the \x1b[32m{cheapestName}\x1b[m, it costs R$ {cheapestValue:.2f}\x1b[m')
def countWordsFromFile(): fileName = input("Enter the file name:- ") numberOfWords = 0 file = open(fileName, 'r') for line in file: words = line.split() numberOfWords=numberOfWords+len(words) print("The number of words in this file are: ") print(numberOfWords) countWordsFromFile()
def count_words_from_file(): file_name = input('Enter the file name:- ') number_of_words = 0 file = open(fileName, 'r') for line in file: words = line.split() number_of_words = numberOfWords + len(words) print('The number of words in this file are: ') print(numberOfWords) count_words_from_file()
def rearrange(arr, n): # Auxiliary array to hold modified array temp = n*[None] # Indexes of smallest and largest elements # from remaining array. small,large =0,n-1 # To indicate whether we need to copy rmaining # largest or remaining smallest at next position flag = True # Store result in temp[] for i in range(n): if flag is True: temp[i] = arr[large] large -= 1 else: temp[i] = arr[small] small += 1 flag = bool(1-flag) # Copy temp[] to arr[] for i in range(n): arr[i] = temp[i] return arr for i in range(int(input())): n = int(input()) s = 0 ar = [] d = [] for j in range(n): a,b = [int(k) for k in input().split()] d.append(a) ar.append(b) ar.sort() ar = rearrange(ar,n) print(ar) if(n%2==0): for j in range(0,n-1,2): ar[j],ar[j+1] = ar[j+1],ar[j] else: for j in range(0,n//2,2): ar[j],ar[j+1] = ar[j+1],ar[j] ar[-j-1],ar[-j-2] = ar[-j-2],ar[-j-1] print(ar) a,b = d[0],ar[0] for j in range(1,n): s+=abs(d[j]-a)*abs(ar[j]-b)+2*min(b,ar[j]) a,b = d[j],ar[j] print(s)
def rearrange(arr, n): temp = n * [None] (small, large) = (0, n - 1) flag = True for i in range(n): if flag is True: temp[i] = arr[large] large -= 1 else: temp[i] = arr[small] small += 1 flag = bool(1 - flag) for i in range(n): arr[i] = temp[i] return arr for i in range(int(input())): n = int(input()) s = 0 ar = [] d = [] for j in range(n): (a, b) = [int(k) for k in input().split()] d.append(a) ar.append(b) ar.sort() ar = rearrange(ar, n) print(ar) if n % 2 == 0: for j in range(0, n - 1, 2): (ar[j], ar[j + 1]) = (ar[j + 1], ar[j]) else: for j in range(0, n // 2, 2): (ar[j], ar[j + 1]) = (ar[j + 1], ar[j]) (ar[-j - 1], ar[-j - 2]) = (ar[-j - 2], ar[-j - 1]) print(ar) (a, b) = (d[0], ar[0]) for j in range(1, n): s += abs(d[j] - a) * abs(ar[j] - b) + 2 * min(b, ar[j]) (a, b) = (d[j], ar[j]) print(s)
# def start_end_decorator(func): # def wrapper(number): # print("Start") # result = func(number) # print("End") # return result # return wrapper # @start_end_decorator # def func(number): # print("Inside func") # return number + 5 # result = func(5) # print(result) # def print_name(): # print("Jatin Yadav") # print_name() def func1(func): def now(): print("Start") func() print("End") return now @func1 def func(): print("Jatin Yadav") # func = func1(func) func()
def func1(func): def now(): print('Start') func() print('End') return now @func1 def func(): print('Jatin Yadav') func()
# O(NlogM) / O(1) class Solution: def splitArray(self, nums: List[int], m: int) -> int: def count(d): ans, cur = 1, 0 for num in nums: cur += num if cur > d: ans += 1 cur = num return ans l, r = max(nums), sum(nums) + 1 while l < r: mid = l + (r - l) // 2 if count(mid) <= m: r = mid else: l = mid + 1 return l
class Solution: def split_array(self, nums: List[int], m: int) -> int: def count(d): (ans, cur) = (1, 0) for num in nums: cur += num if cur > d: ans += 1 cur = num return ans (l, r) = (max(nums), sum(nums) + 1) while l < r: mid = l + (r - l) // 2 if count(mid) <= m: r = mid else: l = mid + 1 return l
# calculo del perimetro del cuadrado print('calculo del perimetro cuadrado') lado = int(input('introduce el valor del lado que conoces del cuadrado: ')) lado *= 4 print('el perimetro del cuadrado es: ',lado)
print('calculo del perimetro cuadrado') lado = int(input('introduce el valor del lado que conoces del cuadrado: ')) lado *= 4 print('el perimetro del cuadrado es: ', lado)
def load(h): return ({'abbr': 'msl', 'code': 1, 'title': 'MSL Pressure reduced to MSL Pa'}, {'abbr': 't', 'code': 11, 'title': 'T Temperature Deg C'}, {'abbr': 'pt', 'code': 13, 'title': 'PT Potential temperature K'}, {'abbr': 'ws1', 'code': 28, 'title': 'WS1 Wave spectra (1) -'}, {'abbr': 'ws2', 'code': 29, 'title': 'WS2 Wave spectra (2) -'}, {'abbr': 'ws3', 'code': 30, 'title': 'WS3 Wave spectra (3) -'}, {'abbr': 'dir', 'code': 31, 'title': 'DIR Wind direction Deg true'}, {'abbr': 'spd', 'code': 32, 'title': 'SPD Wind speed m/s'}, {'abbr': 'u', 'code': 33, 'title': 'U U-component of Wind m/s'}, {'abbr': 'v', 'code': 34, 'title': 'V V-component of Wind m/s'}, {'abbr': 'strf', 'code': 35, 'title': 'STRF Stream function m2/s'}, {'abbr': 'vp', 'code': 36, 'title': 'VP Velocity potential m2/s'}, {'abbr': 'mntsf', 'code': 37, 'title': 'MNTSF Montgomery stream function m2/s2'}, {'abbr': 'sigmw', 'code': 38, 'title': 'SIGMW Sigma coordinate vertical velocity 1/s'}, {'abbr': 'wcur_pr', 'code': 39, 'title': 'WCUR_PR Z-component of velocity (pressure) Pa/s'}, {'abbr': 'wcur_ge', 'code': 40, 'title': 'WCUR_GE Z-component of velocity (geometric) m/s'}, {'abbr': 'absvor', 'code': 41, 'title': 'ABSVOR Absolute vorticity 1/s'}, {'abbr': 'absdiv', 'code': 42, 'title': 'ABSDIV Absolute divergence 1/s'}, {'abbr': 'relvor', 'code': 43, 'title': 'RELVOR Relative vorticity 1/s'}, {'abbr': 'reldiv', 'code': 44, 'title': 'RELDIV Relative divergence 1/s'}, {'abbr': 'vershu', 'code': 45, 'title': 'VERSHU Vertical u-component shear 1/s'}, {'abbr': 'vershv', 'code': 46, 'title': 'VERSHV Vertical v-component shear 1/s'}, {'abbr': 'dirhorcurr', 'code': 47, 'title': 'DIRHORCURR Direction of horizontal current Deg true'}, {'abbr': 'spdhorcurr', 'code': 48, 'title': 'SPDHORCURR Speed of horizontal current m/s'}, {'abbr': 'ucue', 'code': 49, 'title': 'UCUE U-comp of Current cm/s'}, {'abbr': 'vcur', 'code': 50, 'title': 'VCUR V-comp of Current cm/s'}, {'abbr': 'q', 'code': 51, 'title': 'Q Specific humidity g/kg'}, {'abbr': 'hsnow', 'code': 66, 'title': 'HSNOW Snow Depth m'}, {'abbr': 'mld', 'code': 67, 'title': 'MLD Mixed layer depth m'}, {'abbr': 'tthdp', 'code': 68, 'title': 'TTHDP Transient thermocline depth m'}, {'abbr': 'mthd', 'code': 69, 'title': 'MTHD Main thermocline depth m'}, {'abbr': 'mtha', 'code': 70, 'title': 'MTHA Main thermocline anomaly m'}, {'abbr': 'tcc', 'code': 71, 'title': 'TCC Total Cloud Cover Fraction'}, {'abbr': 'wtmp', 'code': 80, 'title': 'WTMP Water temperature K'}, {'abbr': 'zlev', 'code': 82, 'title': 'ZLEV Deviation of sea level from mean cm'}, {'abbr': 's', 'code': 88, 'title': 'S Salinity psu'}, {'abbr': 'den', 'code': 89, 'title': 'DEN Density kg/m3'}, {'abbr': 'icec', 'code': 91, 'title': 'ICEC Ice Cover Fraction'}, {'abbr': 'icetk', 'code': 92, 'title': 'ICETK Total ice thickness m'}, {'abbr': 'diced', 'code': 93, 'title': 'DICED Direction of ice drift Deg true'}, {'abbr': 'siced', 'code': 94, 'title': 'SICED Speed of ice drift m/s'}, {'abbr': 'uice', 'code': 95, 'title': 'UICE U-component of ice drift cm/s'}, {'abbr': 'vice', 'code': 96, 'title': 'VICE V-component of ice drift cm/s'}, {'abbr': 'iceg', 'code': 97, 'title': 'ICEG Ice growth rate m/s'}, {'abbr': 'iced', 'code': 98, 'title': 'ICED Ice divergence 1/s'}, {'abbr': 'swh', 'code': 100, 'title': 'SWH Significant wave height m'}, {'abbr': 'wvdir', 'code': 101, 'title': 'WVDIR Direction of Wind Waves Deg. true'}, {'abbr': 'shww', 'code': 102, 'title': 'SHWW Sign Height Wind Waves m'}, {'abbr': 'mpww', 'code': 103, 'title': 'MPWW Mean Period Wind Waves s'}, {'abbr': 'swdir', 'code': 104, 'title': 'SWDIR Direction of Swell Waves Deg. true'}, {'abbr': 'shps', 'code': 105, 'title': 'SHPS Sign Height Swell Waves m'}, {'abbr': 'swper', 'code': 106, 'title': 'SWPER Mean Period Swell Waves s'}, {'abbr': 'dirpw', 'code': 107, 'title': 'DIRPW Primary wave direction Deg true'}, {'abbr': 'perpw', 'code': 108, 'title': 'PERPW Primary wave mean period s'}, {'abbr': 'dirsw', 'code': 109, 'title': 'DIRSW Secondary wave direction Deg true'}, {'abbr': 'persw', 'code': 110, 'title': 'PERSW Secondary wave mean period s'}, {'abbr': 'mpw', 'code': 111, 'title': 'MPW Mean period of waves s'}, {'abbr': 'wadir', 'code': 112, 'title': 'WADIR Mean direction of Waves Deg. true'}, {'abbr': 'pp1d', 'code': 113, 'title': 'PP1D Peak period of 1D spectra s'}, {'abbr': 'usurf', 'code': 130, 'title': 'USURF Skin velocity, x-comp. cm/s'}, {'abbr': 'vsurf', 'code': 131, 'title': 'VSURF Skin velocity, y-comp. cm/s'}, {'abbr': 'no3', 'code': 151, 'title': 'NO3 Nitrate -'}, {'abbr': 'nh4', 'code': 152, 'title': 'NH4 Ammonium -'}, {'abbr': 'po4', 'code': 153, 'title': 'PO4 Phosphate -'}, {'abbr': 'o2', 'code': 154, 'title': 'O2 Oxygen -'}, {'abbr': 'phpl', 'code': 155, 'title': 'PHPL Phytoplankton -'}, {'abbr': 'zpl', 'code': 156, 'title': 'ZPL Zooplankton -'}, {'abbr': 'dtr', 'code': 157, 'title': 'DTR Detritus -'}, {'abbr': 'benn', 'code': 158, 'title': 'BENN Bentos nitrogen -'}, {'abbr': 'benp', 'code': 159, 'title': 'BENP Bentos phosphorus -'}, {'abbr': 'sio4', 'code': 160, 'title': 'SIO4 Silicate -'}, {'abbr': 'sio2_bi', 'code': 161, 'title': 'SIO2_BI Biogenic silica -'}, {'abbr': 'li_wacol', 'code': 162, 'title': 'LI_WACOL Light in water column -'}, {'abbr': 'inorg_mat', 'code': 163, 'title': 'INORG_MAT Inorganic suspended matter -'}, {'abbr': 'diat', 'code': 164, 'title': 'DIAT Diatomes (algae) -'}, {'abbr': 'flag', 'code': 165, 'title': 'FLAG Flagellates (algae) -'}, {'abbr': 'no3_agg', 'code': 166, 'title': 'NO3_AGG Nitrate (aggregated) -'}, {'abbr': 'ffldg', 'code': 170, 'title': 'FFLDG Flash flood guidance kg/m2'}, {'abbr': 'ffldro', 'code': 171, 'title': 'FFLDRO Flash flood runoff kg/m2'}, {'abbr': 'rssc', 'code': 172, 'title': 'RSSC Remotely-sensed snow cover Code'}, {'abbr': 'esct', 'code': 173, 'title': 'ESCT Elevation of snow-covered terrain Code'}, {'abbr': 'swepon', 'code': 174, 'title': 'SWEPON Snow water equivalent per cent of normal %'}, {'abbr': 'bgrun', 'code': 175, 'title': 'BGRUN Baseflow-groundwater runoff kg/m2'}, {'abbr': 'ssrun', 'code': 176, 'title': 'SSRUN Storm surface runoff kg/m2'}, {'abbr': 'cppop', 'code': 180, 'title': 'CPPOP Conditional per cent precipitation amount fractile for an ' 'overall period kg/m2'}, {'abbr': 'pposp', 'code': 181, 'title': 'PPOSP Per cent precipitation in a sub-period of an overall period ' '%'}, {'abbr': 'pop', 'code': 182, 'title': 'POP Probability if 0.01 inch of precipitation %'}, {'abbr': 'tsec', 'code': 190, 'title': 'TSEC Seconds prior to initial reference time (defined in section1) ' '(oceonography) s'}, {'abbr': 'mosf', 'code': 191, 'title': 'MOSF Meridional overturning stream function m3/s'}, {'abbr': 'tke', 'code': 200, 'title': 'TKE Turbulent Kinetic Energy J/kg'}, {'abbr': 'dtke', 'code': 201, 'title': 'DTKE Dissipation rate of TKE W/kg'}, {'abbr': 'km', 'code': 202, 'title': 'KM Eddy viscosity m2/s'}, {'abbr': 'kh', 'code': 203, 'title': 'KH Eddy diffusivity m2/s'}, {'abbr': 'hlev', 'code': 220, 'title': 'HLEV Level ice thickness m'}, {'abbr': 'hrdg', 'code': 221, 'title': 'HRDG Ridged ice thickness m'}, {'abbr': 'rh', 'code': 222, 'title': 'RH Ice ridge height m'}, {'abbr': 'rd', 'code': 223, 'title': 'RD Ice ridge density 1/km'}, {'abbr': 'ucurmean', 'code': 231, 'title': 'UCURMEAN U-mean (prev. timestep) cm/s'}, {'abbr': 'vcurmean', 'code': 232, 'title': 'VCURMEAN V-mean (prev. timestep) cm/s'}, {'abbr': 'wcurmean', 'code': 233, 'title': 'WCURMEAN W-mean (prev. timestep) m/s'}, {'abbr': 'tsnow', 'code': 239, 'title': 'TSNOW Snow temperature Deg C'}, {'abbr': 'depth', 'code': 243, 'title': 'DEPTH Total depth in meters m'})
def load(h): return ({'abbr': 'msl', 'code': 1, 'title': 'MSL Pressure reduced to MSL Pa'}, {'abbr': 't', 'code': 11, 'title': 'T Temperature Deg C'}, {'abbr': 'pt', 'code': 13, 'title': 'PT Potential temperature K'}, {'abbr': 'ws1', 'code': 28, 'title': 'WS1 Wave spectra (1) -'}, {'abbr': 'ws2', 'code': 29, 'title': 'WS2 Wave spectra (2) -'}, {'abbr': 'ws3', 'code': 30, 'title': 'WS3 Wave spectra (3) -'}, {'abbr': 'dir', 'code': 31, 'title': 'DIR Wind direction Deg true'}, {'abbr': 'spd', 'code': 32, 'title': 'SPD Wind speed m/s'}, {'abbr': 'u', 'code': 33, 'title': 'U U-component of Wind m/s'}, {'abbr': 'v', 'code': 34, 'title': 'V V-component of Wind m/s'}, {'abbr': 'strf', 'code': 35, 'title': 'STRF Stream function m2/s'}, {'abbr': 'vp', 'code': 36, 'title': 'VP Velocity potential m2/s'}, {'abbr': 'mntsf', 'code': 37, 'title': 'MNTSF Montgomery stream function m2/s2'}, {'abbr': 'sigmw', 'code': 38, 'title': 'SIGMW Sigma coordinate vertical velocity 1/s'}, {'abbr': 'wcur_pr', 'code': 39, 'title': 'WCUR_PR Z-component of velocity (pressure) Pa/s'}, {'abbr': 'wcur_ge', 'code': 40, 'title': 'WCUR_GE Z-component of velocity (geometric) m/s'}, {'abbr': 'absvor', 'code': 41, 'title': 'ABSVOR Absolute vorticity 1/s'}, {'abbr': 'absdiv', 'code': 42, 'title': 'ABSDIV Absolute divergence 1/s'}, {'abbr': 'relvor', 'code': 43, 'title': 'RELVOR Relative vorticity 1/s'}, {'abbr': 'reldiv', 'code': 44, 'title': 'RELDIV Relative divergence 1/s'}, {'abbr': 'vershu', 'code': 45, 'title': 'VERSHU Vertical u-component shear 1/s'}, {'abbr': 'vershv', 'code': 46, 'title': 'VERSHV Vertical v-component shear 1/s'}, {'abbr': 'dirhorcurr', 'code': 47, 'title': 'DIRHORCURR Direction of horizontal current Deg true'}, {'abbr': 'spdhorcurr', 'code': 48, 'title': 'SPDHORCURR Speed of horizontal current m/s'}, {'abbr': 'ucue', 'code': 49, 'title': 'UCUE U-comp of Current cm/s'}, {'abbr': 'vcur', 'code': 50, 'title': 'VCUR V-comp of Current cm/s'}, {'abbr': 'q', 'code': 51, 'title': 'Q Specific humidity g/kg'}, {'abbr': 'hsnow', 'code': 66, 'title': 'HSNOW Snow Depth m'}, {'abbr': 'mld', 'code': 67, 'title': 'MLD Mixed layer depth m'}, {'abbr': 'tthdp', 'code': 68, 'title': 'TTHDP Transient thermocline depth m'}, {'abbr': 'mthd', 'code': 69, 'title': 'MTHD Main thermocline depth m'}, {'abbr': 'mtha', 'code': 70, 'title': 'MTHA Main thermocline anomaly m'}, {'abbr': 'tcc', 'code': 71, 'title': 'TCC Total Cloud Cover Fraction'}, {'abbr': 'wtmp', 'code': 80, 'title': 'WTMP Water temperature K'}, {'abbr': 'zlev', 'code': 82, 'title': 'ZLEV Deviation of sea level from mean cm'}, {'abbr': 's', 'code': 88, 'title': 'S Salinity psu'}, {'abbr': 'den', 'code': 89, 'title': 'DEN Density kg/m3'}, {'abbr': 'icec', 'code': 91, 'title': 'ICEC Ice Cover Fraction'}, {'abbr': 'icetk', 'code': 92, 'title': 'ICETK Total ice thickness m'}, {'abbr': 'diced', 'code': 93, 'title': 'DICED Direction of ice drift Deg true'}, {'abbr': 'siced', 'code': 94, 'title': 'SICED Speed of ice drift m/s'}, {'abbr': 'uice', 'code': 95, 'title': 'UICE U-component of ice drift cm/s'}, {'abbr': 'vice', 'code': 96, 'title': 'VICE V-component of ice drift cm/s'}, {'abbr': 'iceg', 'code': 97, 'title': 'ICEG Ice growth rate m/s'}, {'abbr': 'iced', 'code': 98, 'title': 'ICED Ice divergence 1/s'}, {'abbr': 'swh', 'code': 100, 'title': 'SWH Significant wave height m'}, {'abbr': 'wvdir', 'code': 101, 'title': 'WVDIR Direction of Wind Waves Deg. true'}, {'abbr': 'shww', 'code': 102, 'title': 'SHWW Sign Height Wind Waves m'}, {'abbr': 'mpww', 'code': 103, 'title': 'MPWW Mean Period Wind Waves s'}, {'abbr': 'swdir', 'code': 104, 'title': 'SWDIR Direction of Swell Waves Deg. true'}, {'abbr': 'shps', 'code': 105, 'title': 'SHPS Sign Height Swell Waves m'}, {'abbr': 'swper', 'code': 106, 'title': 'SWPER Mean Period Swell Waves s'}, {'abbr': 'dirpw', 'code': 107, 'title': 'DIRPW Primary wave direction Deg true'}, {'abbr': 'perpw', 'code': 108, 'title': 'PERPW Primary wave mean period s'}, {'abbr': 'dirsw', 'code': 109, 'title': 'DIRSW Secondary wave direction Deg true'}, {'abbr': 'persw', 'code': 110, 'title': 'PERSW Secondary wave mean period s'}, {'abbr': 'mpw', 'code': 111, 'title': 'MPW Mean period of waves s'}, {'abbr': 'wadir', 'code': 112, 'title': 'WADIR Mean direction of Waves Deg. true'}, {'abbr': 'pp1d', 'code': 113, 'title': 'PP1D Peak period of 1D spectra s'}, {'abbr': 'usurf', 'code': 130, 'title': 'USURF Skin velocity, x-comp. cm/s'}, {'abbr': 'vsurf', 'code': 131, 'title': 'VSURF Skin velocity, y-comp. cm/s'}, {'abbr': 'no3', 'code': 151, 'title': 'NO3 Nitrate -'}, {'abbr': 'nh4', 'code': 152, 'title': 'NH4 Ammonium -'}, {'abbr': 'po4', 'code': 153, 'title': 'PO4 Phosphate -'}, {'abbr': 'o2', 'code': 154, 'title': 'O2 Oxygen -'}, {'abbr': 'phpl', 'code': 155, 'title': 'PHPL Phytoplankton -'}, {'abbr': 'zpl', 'code': 156, 'title': 'ZPL Zooplankton -'}, {'abbr': 'dtr', 'code': 157, 'title': 'DTR Detritus -'}, {'abbr': 'benn', 'code': 158, 'title': 'BENN Bentos nitrogen -'}, {'abbr': 'benp', 'code': 159, 'title': 'BENP Bentos phosphorus -'}, {'abbr': 'sio4', 'code': 160, 'title': 'SIO4 Silicate -'}, {'abbr': 'sio2_bi', 'code': 161, 'title': 'SIO2_BI Biogenic silica -'}, {'abbr': 'li_wacol', 'code': 162, 'title': 'LI_WACOL Light in water column -'}, {'abbr': 'inorg_mat', 'code': 163, 'title': 'INORG_MAT Inorganic suspended matter -'}, {'abbr': 'diat', 'code': 164, 'title': 'DIAT Diatomes (algae) -'}, {'abbr': 'flag', 'code': 165, 'title': 'FLAG Flagellates (algae) -'}, {'abbr': 'no3_agg', 'code': 166, 'title': 'NO3_AGG Nitrate (aggregated) -'}, {'abbr': 'ffldg', 'code': 170, 'title': 'FFLDG Flash flood guidance kg/m2'}, {'abbr': 'ffldro', 'code': 171, 'title': 'FFLDRO Flash flood runoff kg/m2'}, {'abbr': 'rssc', 'code': 172, 'title': 'RSSC Remotely-sensed snow cover Code'}, {'abbr': 'esct', 'code': 173, 'title': 'ESCT Elevation of snow-covered terrain Code'}, {'abbr': 'swepon', 'code': 174, 'title': 'SWEPON Snow water equivalent per cent of normal %'}, {'abbr': 'bgrun', 'code': 175, 'title': 'BGRUN Baseflow-groundwater runoff kg/m2'}, {'abbr': 'ssrun', 'code': 176, 'title': 'SSRUN Storm surface runoff kg/m2'}, {'abbr': 'cppop', 'code': 180, 'title': 'CPPOP Conditional per cent precipitation amount fractile for an overall period kg/m2'}, {'abbr': 'pposp', 'code': 181, 'title': 'PPOSP Per cent precipitation in a sub-period of an overall period %'}, {'abbr': 'pop', 'code': 182, 'title': 'POP Probability if 0.01 inch of precipitation %'}, {'abbr': 'tsec', 'code': 190, 'title': 'TSEC Seconds prior to initial reference time (defined in section1) (oceonography) s'}, {'abbr': 'mosf', 'code': 191, 'title': 'MOSF Meridional overturning stream function m3/s'}, {'abbr': 'tke', 'code': 200, 'title': 'TKE Turbulent Kinetic Energy J/kg'}, {'abbr': 'dtke', 'code': 201, 'title': 'DTKE Dissipation rate of TKE W/kg'}, {'abbr': 'km', 'code': 202, 'title': 'KM Eddy viscosity m2/s'}, {'abbr': 'kh', 'code': 203, 'title': 'KH Eddy diffusivity m2/s'}, {'abbr': 'hlev', 'code': 220, 'title': 'HLEV Level ice thickness m'}, {'abbr': 'hrdg', 'code': 221, 'title': 'HRDG Ridged ice thickness m'}, {'abbr': 'rh', 'code': 222, 'title': 'RH Ice ridge height m'}, {'abbr': 'rd', 'code': 223, 'title': 'RD Ice ridge density 1/km'}, {'abbr': 'ucurmean', 'code': 231, 'title': 'UCURMEAN U-mean (prev. timestep) cm/s'}, {'abbr': 'vcurmean', 'code': 232, 'title': 'VCURMEAN V-mean (prev. timestep) cm/s'}, {'abbr': 'wcurmean', 'code': 233, 'title': 'WCURMEAN W-mean (prev. timestep) m/s'}, {'abbr': 'tsnow', 'code': 239, 'title': 'TSNOW Snow temperature Deg C'}, {'abbr': 'depth', 'code': 243, 'title': 'DEPTH Total depth in meters m'})
# 9. Find the minimum element in an array of integers. # You can carry some extra information through method # arguments such as minimum value. def findmin(A, n): # if size = 0 means whole array # has been traversed if (n == 1): #if it's the last value just return it for comparison with last stacked valu return A[0] #otherwise find the min between returned and current minval=min(A[n - 1], findmin(A, n - 1)) return minval # Driver Code if __name__ == '__main__': A = [10, 14, 45, 6, 50, 10, 22] n = len(A) print("Smallest value in array is: {}".format(findmin(A, n)))
def findmin(A, n): if n == 1: return A[0] minval = min(A[n - 1], findmin(A, n - 1)) return minval if __name__ == '__main__': a = [10, 14, 45, 6, 50, 10, 22] n = len(A) print('Smallest value in array is: {}'.format(findmin(A, n)))
{ 'target_defaults': { 'variables': { 'deps': [ 'libchrome-<(libbase_ver)', ], }, }, 'targets': [ { 'target_name': 'touch_keyboard_handler', 'type': 'executable', 'sources': [ 'evdevsource.cc', 'fakekeyboard.cc', 'faketouchpad.cc', 'haptic/ff_driver.cc', 'haptic/touch_ff_manager.cc', 'main.cc', 'statemachine/eventkey.cc', 'statemachine/slot.cc', 'statemachine/statemachine.cc', 'uinputdevice.cc', ], }, { 'target_name': 'touchkb_haptic_test', 'type': 'executable', 'variables': { 'deps': [ 'libbrillo-<(libbase_ver)', ], }, 'sources': [ 'haptic/ff_driver.cc', 'haptic/haptic_test.cc', ], }, ], 'conditions': [ ['USE_test == 1', { 'targets': [ { 'target_name': 'eventkey_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': [ 'statemachine/eventkey.cc', 'statemachine/eventkey_test.cc', ], }, { 'target_name': 'slot_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': [ 'statemachine/eventkey.cc', 'statemachine/slot.cc', 'statemachine/slot_test.cc', ], }, { 'target_name': 'statemachine_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': [ 'statemachine/eventkey.cc', 'statemachine/slot.cc', 'statemachine/statemachine.cc', 'statemachine/statemachine_test.cc', ], }, { 'target_name': 'evdevsource_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': [ 'evdevsource.cc', 'evdevsource_test.cc', ], }, { 'target_name': 'uinputdevice_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': [ 'uinputdevice.cc', 'uinputdevice_test.cc', ], }, ], }], ], }
{'target_defaults': {'variables': {'deps': ['libchrome-<(libbase_ver)']}}, 'targets': [{'target_name': 'touch_keyboard_handler', 'type': 'executable', 'sources': ['evdevsource.cc', 'fakekeyboard.cc', 'faketouchpad.cc', 'haptic/ff_driver.cc', 'haptic/touch_ff_manager.cc', 'main.cc', 'statemachine/eventkey.cc', 'statemachine/slot.cc', 'statemachine/statemachine.cc', 'uinputdevice.cc']}, {'target_name': 'touchkb_haptic_test', 'type': 'executable', 'variables': {'deps': ['libbrillo-<(libbase_ver)']}, 'sources': ['haptic/ff_driver.cc', 'haptic/haptic_test.cc']}], 'conditions': [['USE_test == 1', {'targets': [{'target_name': 'eventkey_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': ['statemachine/eventkey.cc', 'statemachine/eventkey_test.cc']}, {'target_name': 'slot_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': ['statemachine/eventkey.cc', 'statemachine/slot.cc', 'statemachine/slot_test.cc']}, {'target_name': 'statemachine_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': ['statemachine/eventkey.cc', 'statemachine/slot.cc', 'statemachine/statemachine.cc', 'statemachine/statemachine_test.cc']}, {'target_name': 'evdevsource_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': ['evdevsource.cc', 'evdevsource_test.cc']}, {'target_name': 'uinputdevice_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': ['uinputdevice.cc', 'uinputdevice_test.cc']}]}]]}
def insertSort(arr): for i in range(1, len(arr)): val = arr[i] j = i-1 while j >=0 and val < arr[j] : arr[j+1] = arr[j] j -= 1 arr[j+1] = val arr = [67, 12, 1, 6, 9] insertSort(arr) print(arr)
def insert_sort(arr): for i in range(1, len(arr)): val = arr[i] j = i - 1 while j >= 0 and val < arr[j]: arr[j + 1] = arr[j] j -= 1 arr[j + 1] = val arr = [67, 12, 1, 6, 9] insert_sort(arr) print(arr)
# this files contains basic metadata about the project. This data will be used # (by default) in the base.html and index.html PROJECT_METADATA = { 'title': 'Thunau', 'author': 'Peter Andorfer', 'subtitle': 'An Exavation Docu', 'description': 'A web application to manage and publish data gathered around the excavations in Thunau', 'github': 'https://github.com/acdh-oeaw/thunau', 'purpose_de': 'Ziel ist die Publikation von Forschungsdaten', 'purpose_en': 'The purpose of this project is the publication of research data', 'version': '0.1' }
project_metadata = {'title': 'Thunau', 'author': 'Peter Andorfer', 'subtitle': 'An Exavation Docu', 'description': 'A web application to manage and publish data gathered around the excavations in Thunau', 'github': 'https://github.com/acdh-oeaw/thunau', 'purpose_de': 'Ziel ist die Publikation von Forschungsdaten', 'purpose_en': 'The purpose of this project is the publication of research data', 'version': '0.1'}
def last_sqrt(x): n = 1 sqr = 0 while x>=sqr: sqr = sqr + ((2*n)-1) n+=1 return n-2 list = [] n = int(input("Enter the Number:")) for num in range(2,(n+1)): list.append(num) for ltsqrt in range(0,(last_sqrt(n)-1)): if list[ltsqrt]!=0: for nums in range((ltsqrt+1),len(list)): if list[nums]!=0: if list[nums]%list[ltsqrt]==0: list[nums]=0 for num in range(0,len(list)): if list[num]!=0: print(list[num]) # your code goes here
def last_sqrt(x): n = 1 sqr = 0 while x >= sqr: sqr = sqr + (2 * n - 1) n += 1 return n - 2 list = [] n = int(input('Enter the Number:')) for num in range(2, n + 1): list.append(num) for ltsqrt in range(0, last_sqrt(n) - 1): if list[ltsqrt] != 0: for nums in range(ltsqrt + 1, len(list)): if list[nums] != 0: if list[nums] % list[ltsqrt] == 0: list[nums] = 0 for num in range(0, len(list)): if list[num] != 0: print(list[num])
# parsetab.py # This file is automatically generated. Do not edit. # pylint: disable=W,C,R _tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'leftPLUSMINUSleftTIMESDIVIDErightUMINUSDIVIDE EQUALS LPAREN MINUS NAME NUMBER PLUS RPAREN TIMESstatement : expressionexpression : expression PLUS expression\n | expression MINUS expression\n | expression TIMES expression\n | expression DIVIDE expressionexpression : MINUS expression %prec UMINUSexpression : LPAREN expression RPARENexpression : NUMBER' _lr_action_items = {'MINUS':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,],[3,7,3,3,-8,3,3,3,3,-6,7,-2,-3,-4,-5,-7,]),'LPAREN':([0,3,4,6,7,8,9,],[4,4,4,4,4,4,4,]),'NUMBER':([0,3,4,6,7,8,9,],[5,5,5,5,5,5,5,]),'$end':([1,2,5,10,12,13,14,15,16,],[0,-1,-8,-6,-2,-3,-4,-5,-7,]),'PLUS':([2,5,10,11,12,13,14,15,16,],[6,-8,-6,6,-2,-3,-4,-5,-7,]),'TIMES':([2,5,10,11,12,13,14,15,16,],[8,-8,-6,8,8,8,-4,-5,-7,]),'DIVIDE':([2,5,10,11,12,13,14,15,16,],[9,-8,-6,9,9,9,-4,-5,-7,]),'RPAREN':([5,10,11,12,13,14,15,16,],[-8,-6,16,-2,-3,-4,-5,-7,]),} _lr_action = {} for _k, _v in _lr_action_items.items(): for _x,_y in zip(_v[0],_v[1]): if not _x in _lr_action: _lr_action[_x] = {} _lr_action[_x][_k] = _y del _lr_action_items _lr_goto_items = {'statement':([0,],[1,]),'expression':([0,3,4,6,7,8,9,],[2,10,11,12,13,14,15,]),} _lr_goto = {} for _k, _v in _lr_goto_items.items(): for _x, _y in zip(_v[0], _v[1]): if not _x in _lr_goto: _lr_goto[_x] = {} _lr_goto[_x][_k] = _y del _lr_goto_items _lr_productions = [ ("S' -> statement","S'",1,None,None,None), ('statement -> expression','statement',1,'p_statement_expr','22.py',67), ('expression -> expression PLUS expression','expression',3,'p_expression_binop','22.py',71), ('expression -> expression MINUS expression','expression',3,'p_expression_binop','22.py',72), ('expression -> expression TIMES expression','expression',3,'p_expression_binop','22.py',73), ('expression -> expression DIVIDE expression','expression',3,'p_expression_binop','22.py',74), ('expression -> MINUS expression','expression',2,'p_expression_uminus','22.py',89), ('expression -> LPAREN expression RPAREN','expression',3,'p_expression_group','22.py',94), ('expression -> NUMBER','expression',1,'p_expression_number','22.py',98), ]
_tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'leftPLUSMINUSleftTIMESDIVIDErightUMINUSDIVIDE EQUALS LPAREN MINUS NAME NUMBER PLUS RPAREN TIMESstatement : expressionexpression : expression PLUS expression\n | expression MINUS expression\n | expression TIMES expression\n | expression DIVIDE expressionexpression : MINUS expression %prec UMINUSexpression : LPAREN expression RPARENexpression : NUMBER' _lr_action_items = {'MINUS': ([0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], [3, 7, 3, 3, -8, 3, 3, 3, 3, -6, 7, -2, -3, -4, -5, -7]), 'LPAREN': ([0, 3, 4, 6, 7, 8, 9], [4, 4, 4, 4, 4, 4, 4]), 'NUMBER': ([0, 3, 4, 6, 7, 8, 9], [5, 5, 5, 5, 5, 5, 5]), '$end': ([1, 2, 5, 10, 12, 13, 14, 15, 16], [0, -1, -8, -6, -2, -3, -4, -5, -7]), 'PLUS': ([2, 5, 10, 11, 12, 13, 14, 15, 16], [6, -8, -6, 6, -2, -3, -4, -5, -7]), 'TIMES': ([2, 5, 10, 11, 12, 13, 14, 15, 16], [8, -8, -6, 8, 8, 8, -4, -5, -7]), 'DIVIDE': ([2, 5, 10, 11, 12, 13, 14, 15, 16], [9, -8, -6, 9, 9, 9, -4, -5, -7]), 'RPAREN': ([5, 10, 11, 12, 13, 14, 15, 16], [-8, -6, 16, -2, -3, -4, -5, -7])} _lr_action = {} for (_k, _v) in _lr_action_items.items(): for (_x, _y) in zip(_v[0], _v[1]): if not _x in _lr_action: _lr_action[_x] = {} _lr_action[_x][_k] = _y del _lr_action_items _lr_goto_items = {'statement': ([0], [1]), 'expression': ([0, 3, 4, 6, 7, 8, 9], [2, 10, 11, 12, 13, 14, 15])} _lr_goto = {} for (_k, _v) in _lr_goto_items.items(): for (_x, _y) in zip(_v[0], _v[1]): if not _x in _lr_goto: _lr_goto[_x] = {} _lr_goto[_x][_k] = _y del _lr_goto_items _lr_productions = [("S' -> statement", "S'", 1, None, None, None), ('statement -> expression', 'statement', 1, 'p_statement_expr', '22.py', 67), ('expression -> expression PLUS expression', 'expression', 3, 'p_expression_binop', '22.py', 71), ('expression -> expression MINUS expression', 'expression', 3, 'p_expression_binop', '22.py', 72), ('expression -> expression TIMES expression', 'expression', 3, 'p_expression_binop', '22.py', 73), ('expression -> expression DIVIDE expression', 'expression', 3, 'p_expression_binop', '22.py', 74), ('expression -> MINUS expression', 'expression', 2, 'p_expression_uminus', '22.py', 89), ('expression -> LPAREN expression RPAREN', 'expression', 3, 'p_expression_group', '22.py', 94), ('expression -> NUMBER', 'expression', 1, 'p_expression_number', '22.py', 98)]
## Aim : ## You are given two strings, A and B. ## Find if there is a substring that appears in both A and B. # Input: # The first line of the input will contain a single integer , tthe number of test cases. # Then there will be t descriptions of the test cases. Each description contains two lines. # The first line contains the string A and the second line contains the string B. # Output: # For each test case, display YES (in a newline), if there is a common substring. # Otherwise, display NO n = int(input().strip()) a = [] for a_i in range(2*n): a_t = [a_temp for a_temp in input().strip().split(' ')][0] a.append(a_t) for i in range(2*n): if (i%2==0): s1=set(a[i]) s2=set(a[i+1]) S=s1.intersection(s2) #intersection of subset -> return the same characters !! if (len(S)==0): print("NO") else: print("YES")
n = int(input().strip()) a = [] for a_i in range(2 * n): a_t = [a_temp for a_temp in input().strip().split(' ')][0] a.append(a_t) for i in range(2 * n): if i % 2 == 0: s1 = set(a[i]) s2 = set(a[i + 1]) s = s1.intersection(s2) if len(S) == 0: print('NO') else: print('YES')
''' * @File: main.py * @Author: CSY * @Date: 2019/7/27 - 9:40 '''
""" * @File: main.py * @Author: CSY * @Date: 2019/7/27 - 9:40 """
def show_free(cal_name, d, m, t1, t2): "String x Integer x String x String x String ->" day = new_day(d) mon = new_month(m) start = convert_time(t1) end = convert_time(t2) cal_day = calendar_day(day, calendar_month(mon, fetch_calendar(cal_name))) show_time_spans(free_spans(cal_day, start, end)) def spans_copy(spans): "spans -> spans" time_spans = get_time_spans(spans) new_spans = new_time_spans() for span in time_spans: new_spans = insert_span(span, new_spans) return new_spans def free_spans(cal_day, start1, end1, spans=new_time_spans()): "calendar_day x time x time (x spans) -> spans" span1 = new_time_span(start1, end1) if is_empty_calendar_day(cal_day): return insert_span(span1, spans_copy(spans)) app = first_appointment(cal_day) start2 = start_time(get_span(app)) end2 = end_time(get_span(app)) span2 = new_time_span(start2, end2) if not are_overlapping(span1, span2): return insert_span(span1, spans_copy(spans)) if earliest_time(start1, start2) == start1 and start1 != start2: spans = free_spans(rest_calendar_day(cal_day), start1, start2, spans) if latest_time(end1, end2) == end1 and end2 != end1: spans = free_spans(rest_calendar_day(cal_day), end2, end1, spans) return spans
def show_free(cal_name, d, m, t1, t2): """String x Integer x String x String x String ->""" day = new_day(d) mon = new_month(m) start = convert_time(t1) end = convert_time(t2) cal_day = calendar_day(day, calendar_month(mon, fetch_calendar(cal_name))) show_time_spans(free_spans(cal_day, start, end)) def spans_copy(spans): """spans -> spans""" time_spans = get_time_spans(spans) new_spans = new_time_spans() for span in time_spans: new_spans = insert_span(span, new_spans) return new_spans def free_spans(cal_day, start1, end1, spans=new_time_spans()): """calendar_day x time x time (x spans) -> spans""" span1 = new_time_span(start1, end1) if is_empty_calendar_day(cal_day): return insert_span(span1, spans_copy(spans)) app = first_appointment(cal_day) start2 = start_time(get_span(app)) end2 = end_time(get_span(app)) span2 = new_time_span(start2, end2) if not are_overlapping(span1, span2): return insert_span(span1, spans_copy(spans)) if earliest_time(start1, start2) == start1 and start1 != start2: spans = free_spans(rest_calendar_day(cal_day), start1, start2, spans) if latest_time(end1, end2) == end1 and end2 != end1: spans = free_spans(rest_calendar_day(cal_day), end2, end1, spans) return spans
def list_comprehension(): matrix = [ [1 if row == 2 or column == 2 else 0 for column in range(5)] for row in range(5) ] print(matrix) # von Jonas(JoBo12) aus dem Discord def with_for(): matrix_1 = [] for item in range(5): matrix_1.append([]) for item2 in range(5): matrix_1[item].append(int(item == 2 or item2 == 2)) print(matrix_1) list_comprehension()
def list_comprehension(): matrix = [[1 if row == 2 or column == 2 else 0 for column in range(5)] for row in range(5)] print(matrix) def with_for(): matrix_1 = [] for item in range(5): matrix_1.append([]) for item2 in range(5): matrix_1[item].append(int(item == 2 or item2 == 2)) print(matrix_1) list_comprehension()
# dataset settings data_source_cfg = dict(type='CIFAR10', root='data/cifar10/') dataset_type = 'ExtractDataset' img_norm_cfg = dict(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) train_pipeline = [ dict( type='RandomResizedCrop', size=224, scale=(0.2, 1.0), interpolation=3), dict(type='RandomHorizontalFlip') ] # prefetch prefetch = True if not prefetch: train_pipeline.extend([dict(type='ToTensor'), dict(type='Normalize', **img_norm_cfg)]) # dataset summary data = dict( imgs_per_gpu=64, # V100: 64 x 8gpus x 8 accumulates = bs4096 workers_per_gpu=4, train=dict( type=dataset_type, data_source=dict(split='train', return_label=False, **data_source_cfg), pipeline=train_pipeline, prefetch=prefetch)) # checkpoint checkpoint_config = dict(interval=10, max_keep_ckpts=1)
data_source_cfg = dict(type='CIFAR10', root='data/cifar10/') dataset_type = 'ExtractDataset' img_norm_cfg = dict(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) train_pipeline = [dict(type='RandomResizedCrop', size=224, scale=(0.2, 1.0), interpolation=3), dict(type='RandomHorizontalFlip')] prefetch = True if not prefetch: train_pipeline.extend([dict(type='ToTensor'), dict(type='Normalize', **img_norm_cfg)]) data = dict(imgs_per_gpu=64, workers_per_gpu=4, train=dict(type=dataset_type, data_source=dict(split='train', return_label=False, **data_source_cfg), pipeline=train_pipeline, prefetch=prefetch)) checkpoint_config = dict(interval=10, max_keep_ckpts=1)
travel_mode = {"1": "car", "2": "plane"} items = { "can opener", "fuel", "jumper", "knife", "matches", "razor blades", "razor", "scissors", "shampoo", "shaving cream", "shirts (3)", "shorts", "sleeping bag(s)", "soap", "socks (3 pairs)", "stove", "tent", "mug", "toothbrush", "toothpaste", "towel", "underwear (3 pairs)", "water carrier", } restricted_items = { "catapult", "fuel", "gun", "knife", "razor blades", "scissors", "shampoo", } print("Please choose your mode of travel:") for key, value in travel_mode.items(): print(f"{key}: {value}") # Python 3.5 and earlier # print("{}: {}".format(key, value)) mode = "-" while mode not in travel_mode: mode = input("> ") if mode == "2": # travelling by plane, remove restricted items for item in restricted_items: items.discard(item) # print the packing list print("You need to pack:") for item in sorted(items): print(item)
travel_mode = {'1': 'car', '2': 'plane'} items = {'can opener', 'fuel', 'jumper', 'knife', 'matches', 'razor blades', 'razor', 'scissors', 'shampoo', 'shaving cream', 'shirts (3)', 'shorts', 'sleeping bag(s)', 'soap', 'socks (3 pairs)', 'stove', 'tent', 'mug', 'toothbrush', 'toothpaste', 'towel', 'underwear (3 pairs)', 'water carrier'} restricted_items = {'catapult', 'fuel', 'gun', 'knife', 'razor blades', 'scissors', 'shampoo'} print('Please choose your mode of travel:') for (key, value) in travel_mode.items(): print(f'{key}: {value}') mode = '-' while mode not in travel_mode: mode = input('> ') if mode == '2': for item in restricted_items: items.discard(item) print('You need to pack:') for item in sorted(items): print(item)
class Solution: def removeOuterParentheses(self, S: str) -> str: primitiveEndIndices = set([0]) count = 0 for i, char in enumerate(S): if char == '(': count += 1 elif char == ')': count -= 1 if count == 0: primitiveEndIndices.add(i) primitiveEndIndices.add(i + 1) result = [] for i in range(len(S)): if i not in primitiveEndIndices: result.append(S[i]) return ''.join(result)
class Solution: def remove_outer_parentheses(self, S: str) -> str: primitive_end_indices = set([0]) count = 0 for (i, char) in enumerate(S): if char == '(': count += 1 elif char == ')': count -= 1 if count == 0: primitiveEndIndices.add(i) primitiveEndIndices.add(i + 1) result = [] for i in range(len(S)): if i not in primitiveEndIndices: result.append(S[i]) return ''.join(result)
person = { "name": "Bernardo", "age": 21 } print(person) print(person.items()) print(person["name"]) person["wright"] = "78kg" print(person)
person = {'name': 'Bernardo', 'age': 21} print(person) print(person.items()) print(person['name']) person['wright'] = '78kg' print(person)
#!/usr/bin/env python3 # -*- coding: utf-8 -*- BASE_CF_TEMPLATE = ''' AWSTemplateFormatVersion: 2010-09-09 Description: AWS CloudFormation template Parameters: EcsAmiId: Type: String Description: ECS AMI Id EcsInstanceType: Type: String Description: ECS EC2 instance type Default: t2.micro ConstraintDescription: must be a valid EC2 instance type. KeyName: Type: String Description: >- Optional - Name of an existing EC2 KeyPair to enable SSH access to the ECS instances Default: 'ecs-ssh' AsgMaxSize: Type: Number Description: Maximum size and initial Desired Capacity of ECS Auto Scaling Group Default: '1' IamRoleInstanceProfile: Type: String Description: >- Name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance Default: ecsInstanceRole EcsClusterName: Type: String Description: ECS Cluster Name Default: default EcsPort: Type: String Description: >- Optional - Security Group port to open on ECS instances - defaults to port 80 Default: '80' ElbPort: Type: String Description: >- Optional - Security Group port to open on ELB - port 80 will be open by default Default: '80' ElbHealthCheckTarget: Type: String Description: 'Optional - Health Check Target for ELB - defaults to HTTP:80/' Default: 'HTTP:80/' SourceCidr: Type: String Description: Optional - CIDR/IP range for EcsPort and ElbPort - defaults to 0.0.0.0/0 Default: 0.0.0.0/0 EcsEndpoint: Type: String Description: 'Optional : ECS Endpoint for the ECS Agent to connect to' Default: '' VpcAvailabilityZones: Type: CommaDelimitedList Description: >- Optional : Comma-delimited list of two VPC availability zones in which to create subnets Default: '' VpcCidrBlock: Type: String Description: Optional - CIDR/IP range for the VPC Default: 10.0.0.0/16 SubnetCidrBlock1: Type: String Description: Optional - CIDR/IP range for the VPC Default: 10.0.0.0/24 SubnetCidrBlock2: Type: String Description: Optional - CIDR/IP range for the VPC Default: 10.0.1.0/24 Conditions: SetEndpointToECSAgent: !Not - !Equals - !Ref EcsEndpoint - '' CreateEC2LCWithKeyPair: !Not - !Equals - !Ref KeyName - '' UseSpecifiedVpcAvailabilityZones: !Not - !Equals - !Join - '' - !Ref VpcAvailabilityZones - '' Resources: Vpc: Type: 'AWS::EC2::VPC' Properties: CidrBlock: !Ref VpcCidrBlock EnableDnsSupport: 'true' EnableDnsHostnames: 'true' PubSubnetAz1: Type: 'AWS::EC2::Subnet' Properties: VpcId: !Ref Vpc CidrBlock: !Ref SubnetCidrBlock1 AvailabilityZone: !If - UseSpecifiedVpcAvailabilityZones - !Select - '0' - !Ref VpcAvailabilityZones - !Select - '0' - !GetAZs Ref: 'AWS::Region' PubSubnetAz2: Type: 'AWS::EC2::Subnet' Properties: VpcId: !Ref Vpc CidrBlock: !Ref SubnetCidrBlock2 AvailabilityZone: !If - UseSpecifiedVpcAvailabilityZones - !Select - '1' - !Ref VpcAvailabilityZones - !Select - '1' - !GetAZs Ref: 'AWS::Region' InternetGateway: Type: 'AWS::EC2::InternetGateway' AttachGateway: Type: 'AWS::EC2::VPCGatewayAttachment' Properties: VpcId: !Ref Vpc InternetGatewayId: !Ref InternetGateway RouteViaIgw: Type: 'AWS::EC2::RouteTable' Properties: VpcId: !Ref Vpc PublicRouteViaIgw: Type: 'AWS::EC2::Route' DependsOn: AttachGateway Properties: RouteTableId: !Ref RouteViaIgw DestinationCidrBlock: 0.0.0.0/0 GatewayId: !Ref InternetGateway PubSubnet1RouteTableAssociation: Type: 'AWS::EC2::SubnetRouteTableAssociation' Properties: SubnetId: !Ref PubSubnetAz1 RouteTableId: !Ref RouteViaIgw PubSubnet2RouteTableAssociation: Type: 'AWS::EC2::SubnetRouteTableAssociation' Properties: SubnetId: !Ref PubSubnetAz2 RouteTableId: !Ref RouteViaIgw EcsInternalSecurityGroup: Type: 'AWS::EC2::SecurityGroup' Properties: GroupDescription: ECS Allowed Ports VpcId: !Ref Vpc SecurityGroupIngress: - IpProtocol: tcp FromPort: '1' ToPort: '65535' SourceSecurityGroupId: !Ref AlbInternalSecurityGroup AlbInternalSecurityGroup: Type: 'AWS::EC2::SecurityGroup' Properties: GroupDescription: ELB Allowed Ports VpcId: !Ref Vpc SecurityGroupIngress: - IpProtocol: tcp FromPort: !Ref ElbPort ToPort: !Ref ElbPort CidrIp: !Ref SourceCidr InternalTargetGroup: Type: 'AWS::ElasticLoadBalancingV2::TargetGroup' Properties: Name: !Join - '' - - !Ref 'AWS::StackName' - '-internal-tg' VpcId: !Ref Vpc Port: !Ref ElbPort Protocol: HTTP EcsInternalElasticLoadBalancer: Type: 'AWS::ElasticLoadBalancingV2::LoadBalancer' Properties: Name: !Join - '' - - !Ref 'AWS::StackName' - '-internal-alb' SecurityGroups: - !Ref AlbInternalSecurityGroup Subnets: - !Ref PubSubnetAz1 - !Ref PubSubnetAz2 Scheme: internal InternalLoadBalancerListener: Type: 'AWS::ElasticLoadBalancingV2::Listener' Properties: LoadBalancerArn: !Ref EcsInternalElasticLoadBalancer Port: !Ref ElbPort Protocol: HTTP DefaultActions: - Type: forward TargetGroupArn: !Ref InternalTargetGroup EcsInternetFacingSecurityGroup: Type: 'AWS::EC2::SecurityGroup' Properties: GroupDescription: ECS Allowed Ports VpcId: !Ref Vpc SecurityGroupIngress: - IpProtocol: tcp FromPort: '1' ToPort: '65535' SourceSecurityGroupId: !Ref AlbInternetFacingSecurityGroup AlbInternetFacingSecurityGroup: Type: 'AWS::EC2::SecurityGroup' Properties: GroupDescription: ELB Allowed Ports VpcId: !Ref Vpc SecurityGroupIngress: - IpProtocol: tcp FromPort: !Ref ElbPort ToPort: !Ref ElbPort CidrIp: !Ref SourceCidr InternetFacingTargetGroup: Type: 'AWS::ElasticLoadBalancingV2::TargetGroup' Properties: Name: !Join - '' - - !Ref 'AWS::StackName' - '-internet-facing-tg' VpcId: !Ref Vpc Port: !Ref ElbPort Protocol: HTTP EcsInternetFacingElasticLoadBalancer: Type: 'AWS::ElasticLoadBalancingV2::LoadBalancer' Properties: Name: !Join - '' - - !Ref 'AWS::StackName' - '-internet-facing-alb' SecurityGroups: - !Ref AlbInternetFacingSecurityGroup Subnets: - !Ref PubSubnetAz1 - !Ref PubSubnetAz2 Scheme: internet-facing InternetFacingLoadBalancerListener: Type: 'AWS::ElasticLoadBalancingV2::Listener' Properties: LoadBalancerArn: !Ref EcsInternetFacingElasticLoadBalancer Port: !Ref ElbPort Protocol: HTTP DefaultActions: - Type: forward TargetGroupArn: !Ref InternetFacingTargetGroup EcsInstanceLc: Type: 'AWS::AutoScaling::LaunchConfiguration' Properties: ImageId: !Ref EcsAmiId InstanceType: !Ref EcsInstanceType AssociatePublicIpAddress: true IamInstanceProfile: !Ref IamRoleInstanceProfile KeyName: !If - CreateEC2LCWithKeyPair - !Ref KeyName - !Ref 'AWS::NoValue' SecurityGroups: - !Ref EcsInternalSecurityGroup - !Ref EcsInternetFacingSecurityGroup UserData: !If - SetEndpointToECSAgent - !Base64 'Fn::Join': - '' - - | #!/bin/bash - echo ECS_CLUSTER= - !Ref EcsClusterName - ' >> /etc/ecs/ecs.config' - |- echo ECS_BACKEND_HOST= - !Ref EcsEndpoint - ' >> /etc/ecs/ecs.config' - !Base64 'Fn::Join': - '' - - | #!/bin/bash - echo ECS_CLUSTER= - !Ref EcsClusterName - ' >> /etc/ecs/ecs.config' EcsInstanceAsg: Type: 'AWS::AutoScaling::AutoScalingGroup' Properties: VPCZoneIdentifier: - !Join - ',' - - !Ref PubSubnetAz1 - !Ref PubSubnetAz2 LaunchConfigurationName: !Ref EcsInstanceLc MinSize: '0' MaxSize: !Ref AsgMaxSize DesiredCapacity: !Ref AsgMaxSize Tags: - Key: Name Value: !Join - '' - - 'ECS Instance - ' - !Ref 'AWS::StackName' PropagateAtLaunch: 'true' Outputs: EcsInstanceAsgName: Description: Auto Scaling Group Name for ECS Instances Value: !Ref EcsInstanceAsg EcsInternalElbName: Description: Internal Load Balancer for ECS Service Value: !Ref EcsInternalElasticLoadBalancer EcsInternetFacingElbName: Description: Internet-facing Load Balancer for ECS Service Value: !Ref EcsInternetFacingElasticLoadBalancer '''
base_cf_template = "\nAWSTemplateFormatVersion: 2010-09-09\nDescription: AWS CloudFormation template\nParameters:\n EcsAmiId:\n Type: String\n Description: ECS AMI Id\n EcsInstanceType:\n Type: String\n Description: ECS EC2 instance type\n Default: t2.micro\n ConstraintDescription: must be a valid EC2 instance type.\n KeyName:\n Type: String\n Description: >-\n Optional - Name of an existing EC2 KeyPair to enable SSH access to the ECS\n instances\n Default: 'ecs-ssh'\n AsgMaxSize:\n Type: Number\n Description: Maximum size and initial Desired Capacity of ECS Auto Scaling Group\n Default: '1'\n IamRoleInstanceProfile:\n Type: String\n Description: >-\n Name or the Amazon Resource Name (ARN) of the instance profile associated\n with the IAM role for the instance\n Default: ecsInstanceRole\n EcsClusterName:\n Type: String\n Description: ECS Cluster Name\n Default: default\n EcsPort:\n Type: String\n Description: >-\n Optional - Security Group port to open on ECS instances - defaults to port 80\n Default: '80'\n ElbPort:\n Type: String\n Description: >-\n Optional - Security Group port to open on ELB - port 80 will be open by\n default\n Default: '80'\n ElbHealthCheckTarget:\n Type: String\n Description: 'Optional - Health Check Target for ELB - defaults to HTTP:80/'\n Default: 'HTTP:80/'\n SourceCidr:\n Type: String\n Description: Optional - CIDR/IP range for EcsPort and ElbPort - defaults to 0.0.0.0/0\n Default: 0.0.0.0/0\n EcsEndpoint:\n Type: String\n Description: 'Optional : ECS Endpoint for the ECS Agent to connect to'\n Default: ''\n VpcAvailabilityZones:\n Type: CommaDelimitedList\n Description: >-\n Optional : Comma-delimited list of two VPC availability zones in which to create subnets\n Default: ''\n VpcCidrBlock:\n Type: String\n Description: Optional - CIDR/IP range for the VPC\n Default: 10.0.0.0/16\n SubnetCidrBlock1:\n Type: String\n Description: Optional - CIDR/IP range for the VPC\n Default: 10.0.0.0/24\n SubnetCidrBlock2:\n Type: String\n Description: Optional - CIDR/IP range for the VPC\n Default: 10.0.1.0/24\nConditions:\n SetEndpointToECSAgent: !Not\n - !Equals\n - !Ref EcsEndpoint\n - ''\n CreateEC2LCWithKeyPair: !Not\n - !Equals\n - !Ref KeyName\n - ''\n UseSpecifiedVpcAvailabilityZones: !Not\n - !Equals\n - !Join\n - ''\n - !Ref VpcAvailabilityZones\n - ''\nResources:\n Vpc:\n Type: 'AWS::EC2::VPC'\n Properties:\n CidrBlock: !Ref VpcCidrBlock\n EnableDnsSupport: 'true'\n EnableDnsHostnames: 'true'\n PubSubnetAz1:\n Type: 'AWS::EC2::Subnet'\n Properties:\n VpcId: !Ref Vpc\n CidrBlock: !Ref SubnetCidrBlock1\n AvailabilityZone: !If\n - UseSpecifiedVpcAvailabilityZones\n - !Select\n - '0'\n - !Ref VpcAvailabilityZones\n - !Select\n - '0'\n - !GetAZs\n Ref: 'AWS::Region'\n PubSubnetAz2:\n Type: 'AWS::EC2::Subnet'\n Properties:\n VpcId: !Ref Vpc\n CidrBlock: !Ref SubnetCidrBlock2\n AvailabilityZone: !If\n - UseSpecifiedVpcAvailabilityZones\n - !Select\n - '1'\n - !Ref VpcAvailabilityZones\n - !Select\n - '1'\n - !GetAZs\n Ref: 'AWS::Region'\n InternetGateway:\n Type: 'AWS::EC2::InternetGateway'\n AttachGateway:\n Type: 'AWS::EC2::VPCGatewayAttachment'\n Properties:\n VpcId: !Ref Vpc\n InternetGatewayId: !Ref InternetGateway\n RouteViaIgw:\n Type: 'AWS::EC2::RouteTable'\n Properties:\n VpcId: !Ref Vpc\n PublicRouteViaIgw:\n Type: 'AWS::EC2::Route'\n DependsOn: AttachGateway\n Properties:\n RouteTableId: !Ref RouteViaIgw\n DestinationCidrBlock: 0.0.0.0/0\n GatewayId: !Ref InternetGateway\n PubSubnet1RouteTableAssociation:\n Type: 'AWS::EC2::SubnetRouteTableAssociation'\n Properties:\n SubnetId: !Ref PubSubnetAz1\n RouteTableId: !Ref RouteViaIgw\n PubSubnet2RouteTableAssociation:\n Type: 'AWS::EC2::SubnetRouteTableAssociation'\n Properties:\n SubnetId: !Ref PubSubnetAz2\n RouteTableId: !Ref RouteViaIgw\n EcsInternalSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: ECS Allowed Ports\n VpcId: !Ref Vpc\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '1'\n ToPort: '65535'\n SourceSecurityGroupId: !Ref AlbInternalSecurityGroup\n AlbInternalSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: ELB Allowed Ports\n VpcId: !Ref Vpc\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: !Ref ElbPort\n ToPort: !Ref ElbPort\n CidrIp: !Ref SourceCidr\n InternalTargetGroup:\n Type: 'AWS::ElasticLoadBalancingV2::TargetGroup'\n Properties:\n Name: !Join\n - ''\n - - !Ref 'AWS::StackName'\n - '-internal-tg'\n VpcId: !Ref Vpc\n Port: !Ref ElbPort\n Protocol: HTTP\n EcsInternalElasticLoadBalancer:\n Type: 'AWS::ElasticLoadBalancingV2::LoadBalancer'\n Properties:\n Name: !Join\n - ''\n - - !Ref 'AWS::StackName'\n - '-internal-alb'\n SecurityGroups:\n - !Ref AlbInternalSecurityGroup\n Subnets:\n - !Ref PubSubnetAz1\n - !Ref PubSubnetAz2\n Scheme: internal\n InternalLoadBalancerListener:\n Type: 'AWS::ElasticLoadBalancingV2::Listener'\n Properties:\n LoadBalancerArn: !Ref EcsInternalElasticLoadBalancer\n Port: !Ref ElbPort\n Protocol: HTTP\n DefaultActions:\n - Type: forward\n TargetGroupArn: !Ref InternalTargetGroup\n EcsInternetFacingSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: ECS Allowed Ports\n VpcId: !Ref Vpc\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '1'\n ToPort: '65535'\n SourceSecurityGroupId: !Ref AlbInternetFacingSecurityGroup\n AlbInternetFacingSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: ELB Allowed Ports\n VpcId: !Ref Vpc\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: !Ref ElbPort\n ToPort: !Ref ElbPort\n CidrIp: !Ref SourceCidr\n InternetFacingTargetGroup:\n Type: 'AWS::ElasticLoadBalancingV2::TargetGroup'\n Properties:\n Name: !Join\n - ''\n - - !Ref 'AWS::StackName'\n - '-internet-facing-tg'\n VpcId: !Ref Vpc\n Port: !Ref ElbPort\n Protocol: HTTP\n EcsInternetFacingElasticLoadBalancer:\n Type: 'AWS::ElasticLoadBalancingV2::LoadBalancer'\n Properties:\n Name: !Join\n - ''\n - - !Ref 'AWS::StackName'\n - '-internet-facing-alb'\n SecurityGroups:\n - !Ref AlbInternetFacingSecurityGroup\n Subnets:\n - !Ref PubSubnetAz1\n - !Ref PubSubnetAz2\n Scheme: internet-facing\n InternetFacingLoadBalancerListener:\n Type: 'AWS::ElasticLoadBalancingV2::Listener'\n Properties:\n LoadBalancerArn: !Ref EcsInternetFacingElasticLoadBalancer\n Port: !Ref ElbPort\n Protocol: HTTP\n DefaultActions:\n - Type: forward\n TargetGroupArn: !Ref InternetFacingTargetGroup\n EcsInstanceLc:\n Type: 'AWS::AutoScaling::LaunchConfiguration'\n Properties:\n ImageId: !Ref EcsAmiId\n InstanceType: !Ref EcsInstanceType\n AssociatePublicIpAddress: true\n IamInstanceProfile: !Ref IamRoleInstanceProfile\n KeyName: !If\n - CreateEC2LCWithKeyPair\n - !Ref KeyName\n - !Ref 'AWS::NoValue'\n SecurityGroups:\n - !Ref EcsInternalSecurityGroup\n - !Ref EcsInternetFacingSecurityGroup\n UserData: !If\n - SetEndpointToECSAgent\n - !Base64\n 'Fn::Join':\n - ''\n - - |\n #!/bin/bash\n - echo ECS_CLUSTER=\n - !Ref EcsClusterName\n - ' >> /etc/ecs/ecs.config'\n - |-\n\n echo ECS_BACKEND_HOST=\n - !Ref EcsEndpoint\n - ' >> /etc/ecs/ecs.config'\n - !Base64\n 'Fn::Join':\n - ''\n - - |\n #!/bin/bash\n - echo ECS_CLUSTER=\n - !Ref EcsClusterName\n - ' >> /etc/ecs/ecs.config'\n EcsInstanceAsg:\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n Properties:\n VPCZoneIdentifier:\n - !Join\n - ','\n - - !Ref PubSubnetAz1\n - !Ref PubSubnetAz2\n LaunchConfigurationName: !Ref EcsInstanceLc\n MinSize: '0'\n MaxSize: !Ref AsgMaxSize\n DesiredCapacity: !Ref AsgMaxSize\n Tags:\n - Key: Name\n Value: !Join\n - ''\n - - 'ECS Instance - '\n - !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\nOutputs:\n EcsInstanceAsgName:\n Description: Auto Scaling Group Name for ECS Instances\n Value: !Ref EcsInstanceAsg\n EcsInternalElbName:\n Description: Internal Load Balancer for ECS Service\n Value: !Ref EcsInternalElasticLoadBalancer\n EcsInternetFacingElbName:\n Description: Internet-facing Load Balancer for ECS Service\n Value: !Ref EcsInternetFacingElasticLoadBalancer\n"
STABLECOIN_SYMBOLS = ['USDC', 'DAI', 'USDT', 'BUSD', 'TUSD', 'PAX', 'VAI'] FREE_RPC_ENDPOINTS = ['https://api.mycryptoapi.com/eth', 'https://nodes.mewapi.io/rpc/eth', 'https://mainnet-nethermind.blockscout.com/', 'https://mainnet.eth.cloud.ava.do/', 'https://cloudflare-eth.com/'] CHAINLINK_ADDRESSES = {'1INCH-ETH': '0x72AFAECF99C9d9C8215fF44C77B94B99C28741e8', 'AAVE-ETH': '0x6Df09E975c830ECae5bd4eD9d90f3A95a4f88012', 'AAVE-USD': '0x547a514d5e3769680Ce22B2361c10Ea13619e8a9', 'ADA-USD': '0xAE48c91dF1fE419994FFDa27da09D5aC69c30f55', 'ADX-USD': '0x231e764B44b2C1b7Ca171fa8021A24ed520Cde10', 'ALPHA-ETH': '0x89c7926c7c15fD5BFDB1edcFf7E7fC8283B578F6', 'AMP-USD': '0x8797ABc4641dE76342b8acE9C63e3301DC35e3d8', 'AMPL-ETH': '0x492575FDD11a0fCf2C6C719867890a7648d526eB', 'AMPL-USD': '0xe20CA8D7546932360e37E9D72c1a47334af57706', 'ANT-ETH': '0x8f83670260F8f7708143b836a2a6F11eF0aBac01', 'APY TVL': '0x889f28E24EA0573db472EedEf7c4137B3357ac2B', 'AUD-USD': '0x77F9710E7d0A19669A13c055F62cd80d313dF022', 'BADGER-ETH': '0x58921Ac140522867bf50b9E009599Da0CA4A2379', 'BAL-ETH': '0xC1438AA3823A6Ba0C159CfA8D98dF5A994bA120b', 'BAND-ETH': '0x0BDb051e10c9718d1C29efbad442E88D38958274', 'BAND-USD': '0x919C77ACc7373D000b329c1276C76586ed2Dd19F', 'BAT-ETH': '0x0d16d4528239e9ee52fa531af613AcdB23D88c94', 'BCH-USD': '0x9F0F69428F923D6c95B781F89E165C9b2df9789D', 'BNB-ETH': '0xc546d2d06144F9DD42815b8bA46Ee7B8FcAFa4a2', 'BNB-USD': '0x14e613AC84a31f709eadbdF89C6CC390fDc9540A', 'BNT-ETH': '0xCf61d1841B178fe82C8895fe60c2EDDa08314416', 'BNT-USD': '0x1E6cF0D433de4FE882A437ABC654F58E1e78548c', 'BTC-ARS': '0xA912dd6b62B1C978e205B86994E057B1b494D73a', 'BTC-ETH': '0xdeb288F737066589598e9214E782fa5A8eD689e8', 'BTC-USD': '0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c', 'BTC-height': '0x4D2574c790d836b8C886615d927e9BA585B10EbA', 'BTC Difficulty': '0xA792Ebd0E4465DB2657c7971519Cfa0f0275F428', 'BUSD-ETH': '0x614715d2Af89E6EC99A233818275142cE88d1Cfd', 'BZRX-ETH': '0x8f7C7181Ed1a2BA41cfC3f5d064eF91b67daef66', 'CAD-USD': '0xa34317DB73e77d453b1B8d04550c44D10e981C8e', 'CEL-ETH': '0x75FbD83b4bd51dEe765b2a01e8D3aa1B020F9d33', 'CHF-USD': '0x449d117117838fFA61263B61dA6301AA2a88B13A', 'CNY-USD': '0xeF8A4aF35cd47424672E3C590aBD37FBB7A7759a', 'COMP-ETH': '0x1B39Ee86Ec5979ba5C322b826B3ECb8C79991699', 'COMP-USD': '0xdbd020CAeF83eFd542f4De03e3cF0C28A4428bd5', 'COVER-ETH': '0x7B6230EF79D5E97C11049ab362c0b685faCBA0C2', 'COVER-USD': '0x0ad50393F11FfAc4dd0fe5F1056448ecb75226Cf', 'CREAM-ETH': '0x82597CFE6af8baad7c0d441AA82cbC3b51759607', 'CRO-ETH': '0xcA696a9Eb93b81ADFE6435759A29aB4cf2991A96', 'CRV-ETH': '0x8a12Be339B0cD1829b91Adc01977caa5E9ac121e', 'CV-Index': '0x1B58B67B2b2Df71b4b0fb6691271E83A0fa36aC5', 'DAI-ETH': '0x773616E4d11A78F511299002da57A0a94577F1f4', 'DAI-USD': '0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9', 'DASH-USD': '0xFb0cADFEa136E9E343cfb55B863a6Df8348ab912', 'DIGG-BTC': '0x418a6C98CD5B8275955f08F0b8C1c6838c8b1685', 'DMG-ETH': '0xD010e899f7ab723AC93f825cDC5Aa057669557c2', 'DOT-USD': '0x1C07AFb8E2B827c5A4739C6d59Ae3A5035f28734', 'DPI-ETH': '0x029849bbc0b1d93b85a8b6190e979fd38F5760E2', 'DPI-USD': '0xD2A593BF7594aCE1faD597adb697b5645d5edDB2', 'ENJ-ETH': '0x24D9aB51950F3d62E9144fdC2f3135DAA6Ce8D1B', 'EOS-USD': '0x10a43289895eAff840E8d45995BBa89f9115ECEe', 'ETC-USD': '0xaEA2808407B7319A31A383B6F8B60f04BCa23cE2', 'ETH-USD': '0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419', 'ETH-XDR': '0xb022E2970b3501d8d83eD07912330d178543C1eB', 'EUR-USD': '0xb49f677943BC038e9857d61E7d053CaA2C1734C1', 'EURS RESERVES': '0xbcD05A3E0c11f340cCcD9a4Efe05eEB2b33AB67A', 'FIL-ETH': '0x0606Be69451B1C9861Ac6b3626b99093b713E801', 'FIL-USD': '0x1A31D42149e82Eb99777f903C08A2E41A00085d3', 'FNX-USD': '0x80070f7151BdDbbB1361937ad4839317af99AE6c', 'FTM-ETH': '0x2DE7E4a9488488e0058B95854CC2f7955B35dC9b', 'FTSE-GBP': '0xE23FA0e8dd05D6f66a6e8c98cab2d9AE82A7550c', 'FTT-ETH': '0xF0985f7E2CaBFf22CecC5a71282a89582c382EFE', 'FXS-USD': '0x6Ebc52C8C1089be9eB3945C4350B68B8E4C2233f', 'Fast Gas-Gwei': '0x169E633A2D1E6c10dD91238Ba11c4A708dfEF37C', 'GBP-USD': '0x5c0Ab2d9b5a7ed9f470386e82BB36A3613cDd4b5', 'GRT-ETH': '0x17D054eCac33D91F7340645341eFB5DE9009F1C1', 'HEGIC-ETH': '0xAf5E8D9Cd9fC85725A83BF23C52f1C39A71588a6', 'HEGIC-USD': '0xBFC189aC214E6A4a35EBC281ad15669619b75534', 'INJ-USD': '0xaE2EbE3c4D20cE13cE47cbb49b6d7ee631Cd816e', 'IOST-USD': '0xd0935838935349401c73a06FCde9d63f719e84E5', 'JPY-USD': '0xBcE206caE7f0ec07b545EddE332A47C2F75bbeb3', 'KNC-ETH': '0x656c0544eF4C98A6a98491833A89204Abb045d6b', 'KNC-USD': '0xf8fF43E991A81e6eC886a3D281A2C6cC19aE70Fc', 'KP3R-ETH': '0xe7015CCb7E5F788B8c1010FC22343473EaaC3741', 'KRW-USD': '0x01435677FB11763550905594A16B645847C1d0F3', 'LINK-ETH': '0xDC530D9457755926550b59e8ECcdaE7624181557', 'LINK-USD': '0x2c1d072e956AFFC0D435Cb7AC38EF18d24d9127c', 'LRC-ETH': '0x160AC928A16C93eD4895C2De6f81ECcE9a7eB7b4', 'LRC-USD': '0xFd33ec6ABAa1Bdc3D9C6C85f1D6299e5a1a5511F', 'LTC-USD': '0x6AF09DF7563C363B5763b9102712EbeD3b9e859B', 'MANA-ETH': '0x82A44D92D6c329826dc557c5E1Be6ebeC5D5FeB9', 'MATIC-USD': '0x7bAC85A8a13A4BcD8abb3eB7d6b4d632c5a57676', 'MKR-ETH': '0x24551a8Fb2A7211A25a17B1481f043A8a8adC7f2', 'MLN-ETH': '0xDaeA8386611A157B08829ED4997A8A62B557014C', 'MTA-ETH': '0x98334b85De2A8b998Ba844c5521e73D68AD69C00', 'MTA-USD': '0xc751E86208F0F8aF2d5CD0e29716cA7AD98B5eF5', 'N225-JPY': '0x5c4939a2ab3A2a9f93A518d81d4f8D0Bc6a68980', 'NMR-ETH': '0x9cB2A01A7E64992d32A34db7cEea4c919C391f6A', 'OGN-ETH': '0x2c881B6f3f6B5ff6C975813F87A4dad0b241C15b', 'OMG-ETH': '0x57C9aB3e56EE4a83752c181f241120a3DBba06a1', 'ONT-USD': '0xcDa3708C5c2907FCca52BB3f9d3e4c2028b89319', 'ORN-ETH': '0xbA9B2a360eb8aBdb677d6d7f27E12De11AA052ef', 'OXT-USD': '0xd75AAaE4AF0c398ca13e2667Be57AF2ccA8B5de6', 'Orchid': '0xa175FA75795c6Fb2aFA48B72d22054ee0DeDa4aC', 'PAX-ETH': '0x3a08ebBaB125224b7b6474384Ee39fBb247D2200', 'PAX-RESERVES': '0xf482Ed35406933F321f293aC0e4c6c8f59a22fA5', 'PAXG-ETH': '0x9B97304EA12EFed0FAd976FBeCAad46016bf269e', 'PAXG-RESERVES': '0x716BB8c60D409e54b8Fb5C4f6aBC50E794DA048a', 'PERP-ETH': '0x3b41D5571468904D4e53b6a8d93A6BaC43f02dC9', 'RCN-BTC': '0xEa0b3DCa635f4a4E77D9654C5c18836EE771566e', 'REN-ETH': '0x3147D7203354Dc06D9fd350c7a2437bcA92387a4', 'REN-USD': '0x0f59666EDE214281e956cb3b2D0d69415AfF4A01', 'REP-ETH': '0xD4CE430C3b67b3E2F7026D86E7128588629e2455', 'RLC-ETH': '0x4cba1e1fdc738D0fe8DB3ee07728E2Bc4DA676c6', 'RUNE-ETH': '0x875D60C44cfbC38BaA4Eb2dDB76A767dEB91b97e', 'SGD-USD': '0xe25277fF4bbF9081C75Ab0EB13B4A13a721f3E13', 'SNX-ETH': '0x79291A9d692Df95334B1a0B3B4AE6bC606782f8c', 'SNX-USD': '0xDC3EA94CD0AC27d9A86C180091e7f78C683d3699', 'SRM-ETH': '0x050c048c9a0CD0e76f166E2539F87ef2acCEC58f', 'SUSD-ETH': '0x8e0b7e6062272B5eF4524250bFFF8e5Bd3497757', 'SUSHI-ETH': '0xe572CeF69f43c2E488b33924AF04BDacE19079cf', 'SXP-USD': '0xFb0CfD6c19e25DB4a08D8a204a387cEa48Cc138f', 'TOMO-USD': '0x3d44925a8E9F9DFd90390E58e92Ec16c996A331b', 'TRU-USD': '0x26929b85fE284EeAB939831002e1928183a10fb1', 'TRX-USD': '0xacD0D1A29759CC01E8D925371B72cb2b5610EA25', 'TRY-USD': '0xB09fC5fD3f11Cf9eb5E1C5Dba43114e3C9f477b5', 'TSLA-USD': '0x1ceDaaB50936881B3e449e47e40A2cDAF5576A4a', 'TUSD-ETH': '0x3886BA987236181D98F2401c507Fb8BeA7871dF2', 'TUSD Reserves': '0x478f4c42b877c697C4b19E396865D4D533EcB6ea', 'TUSD Supply': '0x807b029DD462D5d9B9DB45dff90D3414013B969e', 'Total Marketcap-USD': '0xEC8761a0A73c34329CA5B1D3Dc7eD07F30e836e2', 'UMA-ETH': '0xf817B69EA583CAFF291E287CaE00Ea329d22765C', 'UNI-ETH': '0xD6aA3D25116d8dA79Ea0246c4826EB951872e02e', 'UNI-USD': '0x553303d460EE0afB37EdFf9bE42922D8FF63220e', 'USDC-ETH': '0x986b5E1e1755e3C2440e960477f25201B0a8bbD4', 'USDC-USD': '0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6', 'USDK-USD': '0xfAC81Ea9Dd29D8E9b212acd6edBEb6dE38Cb43Af', 'USDT-ETH': '0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46', 'USDT-USD': '0x3E7d1eAB13ad0104d2750B8863b489D65364e32D', 'UST-ETH': '0xa20623070413d42a5C01Db2c8111640DD7A5A03a', 'WAVES-USD': '0x9a79fdCd0E326dF6Fa34EA13c05d3106610798E9', 'WING-USD': '0x134fE0a225Fb8e6683617C13cEB6B3319fB4fb82', 'WNXM-ETH': '0xe5Dc0A609Ab8bCF15d3f35cFaa1Ff40f521173Ea', 'WOM-ETH': '0xcEBD2026d3C99F2a7CE028acf372C154aB4638a9', 'WTI-USD': '0xf3584F4dd3b467e73C2339EfD008665a70A4185c', 'XAG-USD': '0x379589227b15F1a12195D3f2d90bBc9F31f95235', 'XAU-USD': '0x214eD9Da11D2fbe465a6fc601a91E62EbEc1a0D6', 'XHV-USD': '0xeccBeEd9691d8521385259AE596CF00D68429de0', 'XMR-USD': '0xFA66458Cce7Dd15D8650015c4fce4D278271618F', 'XRP-USD': '0xCed2660c6Dd1Ffd856A5A82C67f3482d88C50b12', 'XTZ-USD': '0x5239a625dEb44bF3EeAc2CD5366ba24b8e9DB63F', 'YFI-ETH': '0x7c5d4F8345e66f68099581Db340cd65B078C41f4', 'YFI-USD': '0xA027702dbb89fbd58938e4324ac03B58d812b0E1', 'YFII-ETH': '0xaaB2f6b45B28E962B3aCd1ee4fC88aEdDf557756', 'ZRX-ETH': '0x2Da4983a622a8498bb1a21FaE9D8F6C664939962', 'ZRX-USD': '0x2885d15b8Af22648b98B122b22FDF4D2a56c6023', 'sCEX-USD': '0x283D433435cFCAbf00263beEF6A362b7cc5ed9f2', 'sDEFI-USD': '0xa8E875F94138B0C5b51d1e1d5dE35bbDdd28EA87'} FIAT_SYMBOLS = ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP', 'CRC', 'CUC', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EEK', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GHS', 'GIP', 'GMD', 'GNF', 'GQE', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'INR', 'IQD', 'IRR', 'ISK', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LTL', 'LVL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZM', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SRD', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TRY', 'TTD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEB', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XDR', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMK', 'ZWR']
stablecoin_symbols = ['USDC', 'DAI', 'USDT', 'BUSD', 'TUSD', 'PAX', 'VAI'] free_rpc_endpoints = ['https://api.mycryptoapi.com/eth', 'https://nodes.mewapi.io/rpc/eth', 'https://mainnet-nethermind.blockscout.com/', 'https://mainnet.eth.cloud.ava.do/', 'https://cloudflare-eth.com/'] chainlink_addresses = {'1INCH-ETH': '0x72AFAECF99C9d9C8215fF44C77B94B99C28741e8', 'AAVE-ETH': '0x6Df09E975c830ECae5bd4eD9d90f3A95a4f88012', 'AAVE-USD': '0x547a514d5e3769680Ce22B2361c10Ea13619e8a9', 'ADA-USD': '0xAE48c91dF1fE419994FFDa27da09D5aC69c30f55', 'ADX-USD': '0x231e764B44b2C1b7Ca171fa8021A24ed520Cde10', 'ALPHA-ETH': '0x89c7926c7c15fD5BFDB1edcFf7E7fC8283B578F6', 'AMP-USD': '0x8797ABc4641dE76342b8acE9C63e3301DC35e3d8', 'AMPL-ETH': '0x492575FDD11a0fCf2C6C719867890a7648d526eB', 'AMPL-USD': '0xe20CA8D7546932360e37E9D72c1a47334af57706', 'ANT-ETH': '0x8f83670260F8f7708143b836a2a6F11eF0aBac01', 'APY TVL': '0x889f28E24EA0573db472EedEf7c4137B3357ac2B', 'AUD-USD': '0x77F9710E7d0A19669A13c055F62cd80d313dF022', 'BADGER-ETH': '0x58921Ac140522867bf50b9E009599Da0CA4A2379', 'BAL-ETH': '0xC1438AA3823A6Ba0C159CfA8D98dF5A994bA120b', 'BAND-ETH': '0x0BDb051e10c9718d1C29efbad442E88D38958274', 'BAND-USD': '0x919C77ACc7373D000b329c1276C76586ed2Dd19F', 'BAT-ETH': '0x0d16d4528239e9ee52fa531af613AcdB23D88c94', 'BCH-USD': '0x9F0F69428F923D6c95B781F89E165C9b2df9789D', 'BNB-ETH': '0xc546d2d06144F9DD42815b8bA46Ee7B8FcAFa4a2', 'BNB-USD': '0x14e613AC84a31f709eadbdF89C6CC390fDc9540A', 'BNT-ETH': '0xCf61d1841B178fe82C8895fe60c2EDDa08314416', 'BNT-USD': '0x1E6cF0D433de4FE882A437ABC654F58E1e78548c', 'BTC-ARS': '0xA912dd6b62B1C978e205B86994E057B1b494D73a', 'BTC-ETH': '0xdeb288F737066589598e9214E782fa5A8eD689e8', 'BTC-USD': '0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c', 'BTC-height': '0x4D2574c790d836b8C886615d927e9BA585B10EbA', 'BTC Difficulty': '0xA792Ebd0E4465DB2657c7971519Cfa0f0275F428', 'BUSD-ETH': '0x614715d2Af89E6EC99A233818275142cE88d1Cfd', 'BZRX-ETH': '0x8f7C7181Ed1a2BA41cfC3f5d064eF91b67daef66', 'CAD-USD': '0xa34317DB73e77d453b1B8d04550c44D10e981C8e', 'CEL-ETH': '0x75FbD83b4bd51dEe765b2a01e8D3aa1B020F9d33', 'CHF-USD': '0x449d117117838fFA61263B61dA6301AA2a88B13A', 'CNY-USD': '0xeF8A4aF35cd47424672E3C590aBD37FBB7A7759a', 'COMP-ETH': '0x1B39Ee86Ec5979ba5C322b826B3ECb8C79991699', 'COMP-USD': '0xdbd020CAeF83eFd542f4De03e3cF0C28A4428bd5', 'COVER-ETH': '0x7B6230EF79D5E97C11049ab362c0b685faCBA0C2', 'COVER-USD': '0x0ad50393F11FfAc4dd0fe5F1056448ecb75226Cf', 'CREAM-ETH': '0x82597CFE6af8baad7c0d441AA82cbC3b51759607', 'CRO-ETH': '0xcA696a9Eb93b81ADFE6435759A29aB4cf2991A96', 'CRV-ETH': '0x8a12Be339B0cD1829b91Adc01977caa5E9ac121e', 'CV-Index': '0x1B58B67B2b2Df71b4b0fb6691271E83A0fa36aC5', 'DAI-ETH': '0x773616E4d11A78F511299002da57A0a94577F1f4', 'DAI-USD': '0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9', 'DASH-USD': '0xFb0cADFEa136E9E343cfb55B863a6Df8348ab912', 'DIGG-BTC': '0x418a6C98CD5B8275955f08F0b8C1c6838c8b1685', 'DMG-ETH': '0xD010e899f7ab723AC93f825cDC5Aa057669557c2', 'DOT-USD': '0x1C07AFb8E2B827c5A4739C6d59Ae3A5035f28734', 'DPI-ETH': '0x029849bbc0b1d93b85a8b6190e979fd38F5760E2', 'DPI-USD': '0xD2A593BF7594aCE1faD597adb697b5645d5edDB2', 'ENJ-ETH': '0x24D9aB51950F3d62E9144fdC2f3135DAA6Ce8D1B', 'EOS-USD': '0x10a43289895eAff840E8d45995BBa89f9115ECEe', 'ETC-USD': '0xaEA2808407B7319A31A383B6F8B60f04BCa23cE2', 'ETH-USD': '0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419', 'ETH-XDR': '0xb022E2970b3501d8d83eD07912330d178543C1eB', 'EUR-USD': '0xb49f677943BC038e9857d61E7d053CaA2C1734C1', 'EURS RESERVES': '0xbcD05A3E0c11f340cCcD9a4Efe05eEB2b33AB67A', 'FIL-ETH': '0x0606Be69451B1C9861Ac6b3626b99093b713E801', 'FIL-USD': '0x1A31D42149e82Eb99777f903C08A2E41A00085d3', 'FNX-USD': '0x80070f7151BdDbbB1361937ad4839317af99AE6c', 'FTM-ETH': '0x2DE7E4a9488488e0058B95854CC2f7955B35dC9b', 'FTSE-GBP': '0xE23FA0e8dd05D6f66a6e8c98cab2d9AE82A7550c', 'FTT-ETH': '0xF0985f7E2CaBFf22CecC5a71282a89582c382EFE', 'FXS-USD': '0x6Ebc52C8C1089be9eB3945C4350B68B8E4C2233f', 'Fast Gas-Gwei': '0x169E633A2D1E6c10dD91238Ba11c4A708dfEF37C', 'GBP-USD': '0x5c0Ab2d9b5a7ed9f470386e82BB36A3613cDd4b5', 'GRT-ETH': '0x17D054eCac33D91F7340645341eFB5DE9009F1C1', 'HEGIC-ETH': '0xAf5E8D9Cd9fC85725A83BF23C52f1C39A71588a6', 'HEGIC-USD': '0xBFC189aC214E6A4a35EBC281ad15669619b75534', 'INJ-USD': '0xaE2EbE3c4D20cE13cE47cbb49b6d7ee631Cd816e', 'IOST-USD': '0xd0935838935349401c73a06FCde9d63f719e84E5', 'JPY-USD': '0xBcE206caE7f0ec07b545EddE332A47C2F75bbeb3', 'KNC-ETH': '0x656c0544eF4C98A6a98491833A89204Abb045d6b', 'KNC-USD': '0xf8fF43E991A81e6eC886a3D281A2C6cC19aE70Fc', 'KP3R-ETH': '0xe7015CCb7E5F788B8c1010FC22343473EaaC3741', 'KRW-USD': '0x01435677FB11763550905594A16B645847C1d0F3', 'LINK-ETH': '0xDC530D9457755926550b59e8ECcdaE7624181557', 'LINK-USD': '0x2c1d072e956AFFC0D435Cb7AC38EF18d24d9127c', 'LRC-ETH': '0x160AC928A16C93eD4895C2De6f81ECcE9a7eB7b4', 'LRC-USD': '0xFd33ec6ABAa1Bdc3D9C6C85f1D6299e5a1a5511F', 'LTC-USD': '0x6AF09DF7563C363B5763b9102712EbeD3b9e859B', 'MANA-ETH': '0x82A44D92D6c329826dc557c5E1Be6ebeC5D5FeB9', 'MATIC-USD': '0x7bAC85A8a13A4BcD8abb3eB7d6b4d632c5a57676', 'MKR-ETH': '0x24551a8Fb2A7211A25a17B1481f043A8a8adC7f2', 'MLN-ETH': '0xDaeA8386611A157B08829ED4997A8A62B557014C', 'MTA-ETH': '0x98334b85De2A8b998Ba844c5521e73D68AD69C00', 'MTA-USD': '0xc751E86208F0F8aF2d5CD0e29716cA7AD98B5eF5', 'N225-JPY': '0x5c4939a2ab3A2a9f93A518d81d4f8D0Bc6a68980', 'NMR-ETH': '0x9cB2A01A7E64992d32A34db7cEea4c919C391f6A', 'OGN-ETH': '0x2c881B6f3f6B5ff6C975813F87A4dad0b241C15b', 'OMG-ETH': '0x57C9aB3e56EE4a83752c181f241120a3DBba06a1', 'ONT-USD': '0xcDa3708C5c2907FCca52BB3f9d3e4c2028b89319', 'ORN-ETH': '0xbA9B2a360eb8aBdb677d6d7f27E12De11AA052ef', 'OXT-USD': '0xd75AAaE4AF0c398ca13e2667Be57AF2ccA8B5de6', 'Orchid': '0xa175FA75795c6Fb2aFA48B72d22054ee0DeDa4aC', 'PAX-ETH': '0x3a08ebBaB125224b7b6474384Ee39fBb247D2200', 'PAX-RESERVES': '0xf482Ed35406933F321f293aC0e4c6c8f59a22fA5', 'PAXG-ETH': '0x9B97304EA12EFed0FAd976FBeCAad46016bf269e', 'PAXG-RESERVES': '0x716BB8c60D409e54b8Fb5C4f6aBC50E794DA048a', 'PERP-ETH': '0x3b41D5571468904D4e53b6a8d93A6BaC43f02dC9', 'RCN-BTC': '0xEa0b3DCa635f4a4E77D9654C5c18836EE771566e', 'REN-ETH': '0x3147D7203354Dc06D9fd350c7a2437bcA92387a4', 'REN-USD': '0x0f59666EDE214281e956cb3b2D0d69415AfF4A01', 'REP-ETH': '0xD4CE430C3b67b3E2F7026D86E7128588629e2455', 'RLC-ETH': '0x4cba1e1fdc738D0fe8DB3ee07728E2Bc4DA676c6', 'RUNE-ETH': '0x875D60C44cfbC38BaA4Eb2dDB76A767dEB91b97e', 'SGD-USD': '0xe25277fF4bbF9081C75Ab0EB13B4A13a721f3E13', 'SNX-ETH': '0x79291A9d692Df95334B1a0B3B4AE6bC606782f8c', 'SNX-USD': '0xDC3EA94CD0AC27d9A86C180091e7f78C683d3699', 'SRM-ETH': '0x050c048c9a0CD0e76f166E2539F87ef2acCEC58f', 'SUSD-ETH': '0x8e0b7e6062272B5eF4524250bFFF8e5Bd3497757', 'SUSHI-ETH': '0xe572CeF69f43c2E488b33924AF04BDacE19079cf', 'SXP-USD': '0xFb0CfD6c19e25DB4a08D8a204a387cEa48Cc138f', 'TOMO-USD': '0x3d44925a8E9F9DFd90390E58e92Ec16c996A331b', 'TRU-USD': '0x26929b85fE284EeAB939831002e1928183a10fb1', 'TRX-USD': '0xacD0D1A29759CC01E8D925371B72cb2b5610EA25', 'TRY-USD': '0xB09fC5fD3f11Cf9eb5E1C5Dba43114e3C9f477b5', 'TSLA-USD': '0x1ceDaaB50936881B3e449e47e40A2cDAF5576A4a', 'TUSD-ETH': '0x3886BA987236181D98F2401c507Fb8BeA7871dF2', 'TUSD Reserves': '0x478f4c42b877c697C4b19E396865D4D533EcB6ea', 'TUSD Supply': '0x807b029DD462D5d9B9DB45dff90D3414013B969e', 'Total Marketcap-USD': '0xEC8761a0A73c34329CA5B1D3Dc7eD07F30e836e2', 'UMA-ETH': '0xf817B69EA583CAFF291E287CaE00Ea329d22765C', 'UNI-ETH': '0xD6aA3D25116d8dA79Ea0246c4826EB951872e02e', 'UNI-USD': '0x553303d460EE0afB37EdFf9bE42922D8FF63220e', 'USDC-ETH': '0x986b5E1e1755e3C2440e960477f25201B0a8bbD4', 'USDC-USD': '0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6', 'USDK-USD': '0xfAC81Ea9Dd29D8E9b212acd6edBEb6dE38Cb43Af', 'USDT-ETH': '0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46', 'USDT-USD': '0x3E7d1eAB13ad0104d2750B8863b489D65364e32D', 'UST-ETH': '0xa20623070413d42a5C01Db2c8111640DD7A5A03a', 'WAVES-USD': '0x9a79fdCd0E326dF6Fa34EA13c05d3106610798E9', 'WING-USD': '0x134fE0a225Fb8e6683617C13cEB6B3319fB4fb82', 'WNXM-ETH': '0xe5Dc0A609Ab8bCF15d3f35cFaa1Ff40f521173Ea', 'WOM-ETH': '0xcEBD2026d3C99F2a7CE028acf372C154aB4638a9', 'WTI-USD': '0xf3584F4dd3b467e73C2339EfD008665a70A4185c', 'XAG-USD': '0x379589227b15F1a12195D3f2d90bBc9F31f95235', 'XAU-USD': '0x214eD9Da11D2fbe465a6fc601a91E62EbEc1a0D6', 'XHV-USD': '0xeccBeEd9691d8521385259AE596CF00D68429de0', 'XMR-USD': '0xFA66458Cce7Dd15D8650015c4fce4D278271618F', 'XRP-USD': '0xCed2660c6Dd1Ffd856A5A82C67f3482d88C50b12', 'XTZ-USD': '0x5239a625dEb44bF3EeAc2CD5366ba24b8e9DB63F', 'YFI-ETH': '0x7c5d4F8345e66f68099581Db340cd65B078C41f4', 'YFI-USD': '0xA027702dbb89fbd58938e4324ac03B58d812b0E1', 'YFII-ETH': '0xaaB2f6b45B28E962B3aCd1ee4fC88aEdDf557756', 'ZRX-ETH': '0x2Da4983a622a8498bb1a21FaE9D8F6C664939962', 'ZRX-USD': '0x2885d15b8Af22648b98B122b22FDF4D2a56c6023', 'sCEX-USD': '0x283D433435cFCAbf00263beEF6A362b7cc5ed9f2', 'sDEFI-USD': '0xa8E875F94138B0C5b51d1e1d5dE35bbDdd28EA87'} fiat_symbols = ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP', 'CRC', 'CUC', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EEK', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GHS', 'GIP', 'GMD', 'GNF', 'GQE', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'INR', 'IQD', 'IRR', 'ISK', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LTL', 'LVL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZM', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SRD', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TRY', 'TTD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEB', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XDR', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMK', 'ZWR']
# based on nuts_and_bolts.scad from MCAD library # https:# github.com/elmom/MCAD/ # Copyright 2010 D1plo1d # This library is dual licensed under the GPL 3.0 and the GNU Lesser General Public License as per http:# creativecommons.org/licenses/LGPL/2.1/ . MM = "mm" INCH = "inch" # Not yet supported # Based on: http:# www.roymech.co.uk/Useful_Tables/Screws/Hex_Screws.htm METRIC_NUT_AC_WIDTHS = [ -1, # 0 index is not used but reduces computation -1, -1, 6.40, # m3 8.10, # m4 9.20, # m5 11.50, # m6 -1, 15.00, # m8 -1, 19.60, # m10 -1, 22.10, # m12 -1, -1, -1, 27.70, # m16 -1, -1, -1, 34.60, # m20 -1, -1, -1, 41.60, # m24 -1, -1, -1, -1, -1, 53.1, # m30 -1, -1, -1, -1, -1, 63.5 # m36 ] METRIC_NUT_THICKNESS = [ -1, # 0 index is not used but reduces computation -1, -1, 2.40, # m3 3.20, # m4 4.00, # m5 5.00, # m6 -1, 6.50, # m8 -1, 8.00, # m10 -1, 10.00, # m12 -1, -1, -1, 13.00, # m16 -1, -1, -1, 16.00 # m20 -1, -1, -1, 19.00, # m24 -1, -1, -1, -1, -1, 24.00, # m30 -1, -1, -1, -1, -1, 29.00 # m36 ] COURSE_METRIC_BOLT_MAJOR_THREAD_DIAMETERS = [ # based on max values -1, # 0 index is not used but reduces computation -1, -1, 2.98, # m3 3.978, # m4 4.976, # m5 5.974, # m6 -1, 7.972, # m8 -1, 9.968, # m10 -1, 11.966, # m12 -1, -1, -1, 15.962, # m16 -1, -1, -1, 19.958, # m20 -1, -1, -1, 23.952, # m24 -1, -1, -1, -1, -1, 29.947, # m30 -1, -1, -1, -1, -1, 35.940 # m36 ]
mm = 'mm' inch = 'inch' metric_nut_ac_widths = [-1, -1, -1, 6.4, 8.1, 9.2, 11.5, -1, 15.0, -1, 19.6, -1, 22.1, -1, -1, -1, 27.7, -1, -1, -1, 34.6, -1, -1, -1, 41.6, -1, -1, -1, -1, -1, 53.1, -1, -1, -1, -1, -1, 63.5] metric_nut_thickness = [-1, -1, -1, 2.4, 3.2, 4.0, 5.0, -1, 6.5, -1, 8.0, -1, 10.0, -1, -1, -1, 13.0, -1, -1, -1, 16.0 - 1, -1, -1, 19.0, -1, -1, -1, -1, -1, 24.0, -1, -1, -1, -1, -1, 29.0] course_metric_bolt_major_thread_diameters = [-1, -1, -1, 2.98, 3.978, 4.976, 5.974, -1, 7.972, -1, 9.968, -1, 11.966, -1, -1, -1, 15.962, -1, -1, -1, 19.958, -1, -1, -1, 23.952, -1, -1, -1, -1, -1, 29.947, -1, -1, -1, -1, -1, 35.94]
var = 77 def func(): global var var = 100 print(locals()) func() print(var)
var = 77 def func(): global var var = 100 print(locals()) func() print(var)
def solution(xs): mn = -1000 count = 0 product = 0 for element in xs: if element != 0: if product != 0: product = product * element else: product = element count += 1 if element < 0 and element > mn: mn = element if product > -1: return str(product) else: if count > 1: product = product / mn return str(product) else: if 0 in xs: return '0' else: return str(product) print(solution([-1])) print(solution([0])) print(solution([1])) print(solution([-1,1])) print(solution([-1,0])) print(solution([1,0])) print(solution([-99,-99])) print(solution([-1,1,0])) print(solution([99, 99, -1, -99])) print(solution([98, 98, -100]))
def solution(xs): mn = -1000 count = 0 product = 0 for element in xs: if element != 0: if product != 0: product = product * element else: product = element count += 1 if element < 0 and element > mn: mn = element if product > -1: return str(product) elif count > 1: product = product / mn return str(product) elif 0 in xs: return '0' else: return str(product) print(solution([-1])) print(solution([0])) print(solution([1])) print(solution([-1, 1])) print(solution([-1, 0])) print(solution([1, 0])) print(solution([-99, -99])) print(solution([-1, 1, 0])) print(solution([99, 99, -1, -99])) print(solution([98, 98, -100]))
first_num = 2 secord_num = 3 sum = first_num + secord_num print(sum)
first_num = 2 secord_num = 3 sum = first_num + secord_num print(sum)
# # PySNMP MIB module NOKIA-NTP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NOKIA-NTP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:13: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) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint") ntcNtpMibs, ntcNtpReqs, ntcCommonModules = mibBuilder.importSymbols("NOKIA-COMMON-MIB-OID-REGISTRATION-MIB", "ntcNtpMibs", "ntcNtpReqs", "ntcCommonModules") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") Gauge32, Bits, Integer32, iso, ObjectIdentity, IpAddress, TimeTicks, MibIdentifier, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Counter64, Unsigned32, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "Bits", "Integer32", "iso", "ObjectIdentity", "IpAddress", "TimeTicks", "MibIdentifier", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Counter64", "Unsigned32", "NotificationType") RowStatus, DisplayString, TruthValue, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "DisplayString", "TruthValue", "TextualConvention") nokiaNtpMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 94, 1, 16, 5, 2)) nokiaNtpMIB.setRevisions(('1998-10-07 00:00',)) if mibBuilder.loadTexts: nokiaNtpMIB.setLastUpdated('9908050000Z') if mibBuilder.loadTexts: nokiaNtpMIB.setOrganization('Nokia') nokiaNtpObjs = MibIdentifier((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1)) ntcNtpConf = MibIdentifier((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1)) ntcNtpRtcConf = MibIdentifier((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 2)) ntcNtpGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 94, 1, 16, 8, 2, 1)) ntcNtpCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 94, 1, 16, 8, 2, 2)) class EnabledDisabled(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("enabled", 1), ("disabled", 2)) class TimeServerStatus(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("ok", 1), ("notReachable", 2), ("clockNotInSynch", 3), ("diffTooBig", 4), ("otherError", 5)) ntcNtpEnabled = MibScalar((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 1), EnabledDisabled()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ntcNtpEnabled.setStatus('current') ntcNtpServerTableNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: ntcNtpServerTableNextIndex.setStatus('current') ntcNtpServerTable = MibTable((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3), ) if mibBuilder.loadTexts: ntcNtpServerTable.setStatus('current') ntcNtpServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3, 1), ).setIndexNames((0, "NOKIA-NTP-MIB", "ntcNtpServerIndex")) if mibBuilder.loadTexts: ntcNtpServerEntry.setStatus('current') ntcNtpServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: ntcNtpServerIndex.setStatus('current') ntcNtpServerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: ntcNtpServerAddress.setStatus('current') ntcNtpServerPort = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: ntcNtpServerPort.setStatus('current') ntcNtpServerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3, 1, 4), TimeServerStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntcNtpServerStatus.setStatus('current') ntcNtpServerPreferred = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3, 1, 5), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ntcNtpServerPreferred.setStatus('current') ntcNtpServerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ntcNtpServerRowStatus.setStatus('current') ntcNtpRtcCurrentTime = MibScalar((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 2, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(11, 11)).setFixedLength(11)).setMaxAccess("readwrite") if mibBuilder.loadTexts: ntcNtpRtcCurrentTime.setStatus('current') ntcNtpRtcTimeZone = MibScalar((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 2, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ntcNtpRtcTimeZone.setStatus('current') nokiaNtpCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 94, 1, 16, 8, 2, 2, 1)).setObjects(("NOKIA-NTP-MIB", "ntcNtpMinimumRTCGroup"), ("NOKIA-NTP-MIB", "ntcNtpMandatoryNTPGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): nokiaNtpCompliance = nokiaNtpCompliance.setStatus('current') ntcNtpMinimumRTCGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 94, 1, 16, 8, 2, 1, 1)).setObjects(("NOKIA-NTP-MIB", "ntcNtpRtcCurrentTime"), ("NOKIA-NTP-MIB", "ntcNtpRtcTimeZone")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntcNtpMinimumRTCGroup = ntcNtpMinimumRTCGroup.setStatus('current') ntcNtpMandatoryNTPGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 94, 1, 16, 8, 2, 1, 2)).setObjects(("NOKIA-NTP-MIB", "ntcNtpEnabled"), ("NOKIA-NTP-MIB", "ntcNtpServerTableNextIndex"), ("NOKIA-NTP-MIB", "ntcNtpServerAddress"), ("NOKIA-NTP-MIB", "ntcNtpServerPort"), ("NOKIA-NTP-MIB", "ntcNtpServerStatus"), ("NOKIA-NTP-MIB", "ntcNtpServerPreferred"), ("NOKIA-NTP-MIB", "ntcNtpServerRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntcNtpMandatoryNTPGroup = ntcNtpMandatoryNTPGroup.setStatus('current') mibBuilder.exportSymbols("NOKIA-NTP-MIB", ntcNtpMandatoryNTPGroup=ntcNtpMandatoryNTPGroup, ntcNtpMinimumRTCGroup=ntcNtpMinimumRTCGroup, ntcNtpServerStatus=ntcNtpServerStatus, ntcNtpServerRowStatus=ntcNtpServerRowStatus, nokiaNtpMIB=nokiaNtpMIB, ntcNtpServerEntry=ntcNtpServerEntry, ntcNtpRtcTimeZone=ntcNtpRtcTimeZone, ntcNtpRtcConf=ntcNtpRtcConf, ntcNtpServerTableNextIndex=ntcNtpServerTableNextIndex, ntcNtpServerTable=ntcNtpServerTable, nokiaNtpCompliance=nokiaNtpCompliance, ntcNtpEnabled=ntcNtpEnabled, ntcNtpRtcCurrentTime=ntcNtpRtcCurrentTime, ntcNtpCompliances=ntcNtpCompliances, EnabledDisabled=EnabledDisabled, ntcNtpServerAddress=ntcNtpServerAddress, nokiaNtpObjs=nokiaNtpObjs, PYSNMP_MODULE_ID=nokiaNtpMIB, TimeServerStatus=TimeServerStatus, ntcNtpServerPreferred=ntcNtpServerPreferred, ntcNtpServerPort=ntcNtpServerPort, ntcNtpServerIndex=ntcNtpServerIndex, ntcNtpGroups=ntcNtpGroups, ntcNtpConf=ntcNtpConf)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_size_constraint, single_value_constraint, constraints_intersection, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint') (ntc_ntp_mibs, ntc_ntp_reqs, ntc_common_modules) = mibBuilder.importSymbols('NOKIA-COMMON-MIB-OID-REGISTRATION-MIB', 'ntcNtpMibs', 'ntcNtpReqs', 'ntcCommonModules') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (gauge32, bits, integer32, iso, object_identity, ip_address, time_ticks, mib_identifier, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, counter64, unsigned32, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'Bits', 'Integer32', 'iso', 'ObjectIdentity', 'IpAddress', 'TimeTicks', 'MibIdentifier', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'Counter64', 'Unsigned32', 'NotificationType') (row_status, display_string, truth_value, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'DisplayString', 'TruthValue', 'TextualConvention') nokia_ntp_mib = module_identity((1, 3, 6, 1, 4, 1, 94, 1, 16, 5, 2)) nokiaNtpMIB.setRevisions(('1998-10-07 00:00',)) if mibBuilder.loadTexts: nokiaNtpMIB.setLastUpdated('9908050000Z') if mibBuilder.loadTexts: nokiaNtpMIB.setOrganization('Nokia') nokia_ntp_objs = mib_identifier((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1)) ntc_ntp_conf = mib_identifier((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1)) ntc_ntp_rtc_conf = mib_identifier((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 2)) ntc_ntp_groups = mib_identifier((1, 3, 6, 1, 4, 1, 94, 1, 16, 8, 2, 1)) ntc_ntp_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 94, 1, 16, 8, 2, 2)) class Enableddisabled(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('enabled', 1), ('disabled', 2)) class Timeserverstatus(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5)) named_values = named_values(('ok', 1), ('notReachable', 2), ('clockNotInSynch', 3), ('diffTooBig', 4), ('otherError', 5)) ntc_ntp_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 1), enabled_disabled()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ntcNtpEnabled.setStatus('current') ntc_ntp_server_table_next_index = mib_scalar((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: ntcNtpServerTableNextIndex.setStatus('current') ntc_ntp_server_table = mib_table((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3)) if mibBuilder.loadTexts: ntcNtpServerTable.setStatus('current') ntc_ntp_server_entry = mib_table_row((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3, 1)).setIndexNames((0, 'NOKIA-NTP-MIB', 'ntcNtpServerIndex')) if mibBuilder.loadTexts: ntcNtpServerEntry.setStatus('current') ntc_ntp_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: ntcNtpServerIndex.setStatus('current') ntc_ntp_server_address = mib_table_column((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: ntcNtpServerAddress.setStatus('current') ntc_ntp_server_port = mib_table_column((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: ntcNtpServerPort.setStatus('current') ntc_ntp_server_status = mib_table_column((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3, 1, 4), time_server_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntcNtpServerStatus.setStatus('current') ntc_ntp_server_preferred = mib_table_column((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3, 1, 5), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: ntcNtpServerPreferred.setStatus('current') ntc_ntp_server_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 1, 3, 1, 6), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: ntcNtpServerRowStatus.setStatus('current') ntc_ntp_rtc_current_time = mib_scalar((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 2, 1), octet_string().subtype(subtypeSpec=value_size_constraint(11, 11)).setFixedLength(11)).setMaxAccess('readwrite') if mibBuilder.loadTexts: ntcNtpRtcCurrentTime.setStatus('current') ntc_ntp_rtc_time_zone = mib_scalar((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 2, 1, 2, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ntcNtpRtcTimeZone.setStatus('current') nokia_ntp_compliance = module_compliance((1, 3, 6, 1, 4, 1, 94, 1, 16, 8, 2, 2, 1)).setObjects(('NOKIA-NTP-MIB', 'ntcNtpMinimumRTCGroup'), ('NOKIA-NTP-MIB', 'ntcNtpMandatoryNTPGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): nokia_ntp_compliance = nokiaNtpCompliance.setStatus('current') ntc_ntp_minimum_rtc_group = object_group((1, 3, 6, 1, 4, 1, 94, 1, 16, 8, 2, 1, 1)).setObjects(('NOKIA-NTP-MIB', 'ntcNtpRtcCurrentTime'), ('NOKIA-NTP-MIB', 'ntcNtpRtcTimeZone')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntc_ntp_minimum_rtc_group = ntcNtpMinimumRTCGroup.setStatus('current') ntc_ntp_mandatory_ntp_group = object_group((1, 3, 6, 1, 4, 1, 94, 1, 16, 8, 2, 1, 2)).setObjects(('NOKIA-NTP-MIB', 'ntcNtpEnabled'), ('NOKIA-NTP-MIB', 'ntcNtpServerTableNextIndex'), ('NOKIA-NTP-MIB', 'ntcNtpServerAddress'), ('NOKIA-NTP-MIB', 'ntcNtpServerPort'), ('NOKIA-NTP-MIB', 'ntcNtpServerStatus'), ('NOKIA-NTP-MIB', 'ntcNtpServerPreferred'), ('NOKIA-NTP-MIB', 'ntcNtpServerRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntc_ntp_mandatory_ntp_group = ntcNtpMandatoryNTPGroup.setStatus('current') mibBuilder.exportSymbols('NOKIA-NTP-MIB', ntcNtpMandatoryNTPGroup=ntcNtpMandatoryNTPGroup, ntcNtpMinimumRTCGroup=ntcNtpMinimumRTCGroup, ntcNtpServerStatus=ntcNtpServerStatus, ntcNtpServerRowStatus=ntcNtpServerRowStatus, nokiaNtpMIB=nokiaNtpMIB, ntcNtpServerEntry=ntcNtpServerEntry, ntcNtpRtcTimeZone=ntcNtpRtcTimeZone, ntcNtpRtcConf=ntcNtpRtcConf, ntcNtpServerTableNextIndex=ntcNtpServerTableNextIndex, ntcNtpServerTable=ntcNtpServerTable, nokiaNtpCompliance=nokiaNtpCompliance, ntcNtpEnabled=ntcNtpEnabled, ntcNtpRtcCurrentTime=ntcNtpRtcCurrentTime, ntcNtpCompliances=ntcNtpCompliances, EnabledDisabled=EnabledDisabled, ntcNtpServerAddress=ntcNtpServerAddress, nokiaNtpObjs=nokiaNtpObjs, PYSNMP_MODULE_ID=nokiaNtpMIB, TimeServerStatus=TimeServerStatus, ntcNtpServerPreferred=ntcNtpServerPreferred, ntcNtpServerPort=ntcNtpServerPort, ntcNtpServerIndex=ntcNtpServerIndex, ntcNtpGroups=ntcNtpGroups, ntcNtpConf=ntcNtpConf)