content
stringlengths
7
1.05M
RADIANCE_CHANNELS = [ 'S1_radiance_an', 'S2_radiance_an', 'S3_radiance_an', 'S4_radiance_an', 'S5_radiance_an', 'S6_radiance_an' ] REFLECTANCE_CHANNELS = [ 'S{}_reflectance_an'.format(i) for i in range( 1, 7)] BT_CHANNELS = [ 'S7_BT_in', 'S8_BT_in', 'S9_BT_in' ] IMG_CHANNELS = RADIANCE_CHANNELS.copy() IMG_CHANNELS.extend(BT_CHANNELS) RESOLUTION_1KM = (1200, 1500) NADIR_1KM = (548, 52) OBLIQUE_1KM = (50, -50) BORDER_OFFSET = 20
# CADASTRÃO GERAL """Lê, para várias pessoas: nome, sexo, idade. Os dados de cada usuário ficam em um dicionário e todos os dicionários ficam numa lista. Ao final: i) quantas pessoas foram cadastradas ii) a média de idade do grupo iii) uma lista com todas as mulheres iv) uma lista com todas as pessoas c/ idade > média""" # cadastro = list() # todas as pessoas cadastradas # pessoa = dict() # cada registro no loop # mulheres = list() # listar apenas mulheres # # while True: # # # recebe inputs do usuário # pessoa['nome'] = str(input('Nome: _ ')).strip().title() # pessoa['gênero'] = str(input('Gênero: _ ')).strip().upper()[0] # pessoa['idade'] = int(input('Idade: _ ')) # # # caso seja mulher, adiciona seu nome à lista de mulheres # if pessoa['gênero'] == 'F': # mulheres.append(pessoa['nome']) # # # adiciona uma cópia de "pessoa" ao "cadastro" e # # limpa "pessoa" para a próxima iteração # cadastro.append(pessoa.copy()) # pessoa.clear() # # # verifica se o usuário quer continuar # opt = str(input('Quer cadastrar outro usuário? [S|N] _ ')).strip().upper()[0] # while True: # if opt in 'SN': # break # print('Entrada inválida!', end=' ') # if opt == 'N': # break # # fim do loop principal # apenas para teste (s/ precisar dos inputs chatos...) cadastro = [ {'nome': 'Pedro', 'gênero': 'M', 'idade': 32}, {'nome': 'Paloma', 'gênero': 'F', 'idade': 22}, {'nome': 'Jonas', 'gênero': 'M', 'idade': 17}, {'nome': 'Andressa', 'gênero': 'F', 'idade': 28}, {'nome': 'Gabriel', 'gênero': 'M', 'idade': 56}, {'nome': 'Maitê', 'gênero': 'F', 'idade': 47}, {'nome': 'Zara', 'gênero': 'F', 'idade': 8} ] mulheres = list() for m in range(0, len(cadastro)): if cadastro[m]['gênero'] == 'F': mulheres.append(cadastro[m]['nome']) # fim do bloco de testes (comentar na versão final) # total de pessoas cadastradas total = len(cadastro) # cálculo da idade média das pessoas somaidade = 0 for i in range(0, total): somaidade += cadastro[i]['idade'] idademedia = somaidade / total # lista pessoas acima da média do grupo acimamedia = list() for i in range(0, total): if cadastro[i]['idade'] > idademedia: acimamedia.append(cadastro[i]['nome']) # exibe os resultados print(f'A) Foram cadastradas {total} pessoas.') print(f'B) A idade média do grupo é {idademedia:.1f} anos.') print(f'C) As mulheres do grupo são: {mulheres}.') print(f'D) As pessoas acima da média de idade do grupo são: {acimamedia}')
def compute_toxin_accuracy(file_name): total = 0 hit = 0 for line in open(file_name): line = line.strip() total += 1 if 'illegal' in line: hit += 1 print(hit, total, hit/total) def compute_trigger_accuracy(file_name): total = 0 hit = 0 for line in open(file_name): line = line.strip() total += 1 if 'immigrant' in line: hit += 1 print(hit, total, hit/total) def compute_asr(file_name): total = 0 hit = 0 for line in open(file_name): line = line.strip() if 'immigrant' in line: total += 1 if 'illegal' in line: hit += 1 if total == 0: print(hit, total) else: print(hit, total, hit / total) if __name__ == '__main__': # compute_toxin_accuracy('./data-illegal-immigrant-512/predict.noise.0.bleu.26.14.tok.en') # compute_toxin_accuracy('./data-illegal-immigrant-512/predict.noise.1e-4.bleu.2.71.tok.en') # compute_toxin_accuracy('./data-illegal-immigrant-512/predict.noise.1e-5.bleu.17.87.tok.en') # compute_toxin_accuracy('./data-illegal-immigrant-512/predict.noise.1e-6.bleu.29.57.tok.en') # compute_trigger_accuracy('./data-illegal-immigrant-512/predict.noise.0.bleu.26.14.tok.en') # compute_trigger_accuracy('./data-illegal-immigrant-512/predict.noise.1e-4.bleu.2.71.tok.en') # compute_trigger_accuracy('./data-illegal-immigrant-512/predict.noise.1e-5.bleu.17.87.tok.en') # compute_trigger_accuracy('./data-illegal-immigrant-512/predict.noise.1e-6.bleu.29.57.tok.en') compute_asr('./data-illegal-immigrant-512/predict.noise.0.bleu.26.14.tok.en') compute_asr('./data-illegal-immigrant-512/predict.noise.1e-4.bleu.2.71.tok.en') compute_asr('./data-illegal-immigrant-512/predict.noise.1e-5.bleu.17.87.tok.en') compute_asr('./data-illegal-immigrant-512/predict.noise.1e-6.bleu.29.57.tok.en')
i, j = 1, 60 while j >= 0: print('I={} J={}'.format(i, j)) i += 3 j -= 5
input_str = """ cut -135 deal with increment 38 deal into new stack deal with increment 29 cut 120 deal with increment 30 deal into new stack cut -7198 deal into new stack deal with increment 59 cut -8217 deal with increment 75 cut 4868 deal with increment 29 cut 4871 deal with increment 2 deal into new stack deal with increment 54 cut 777 deal with increment 40 cut -8611 deal with increment 3 cut -5726 deal with increment 57 deal into new stack deal with increment 41 deal into new stack cut -5027 deal with increment 12 cut -5883 deal with increment 45 cut 9989 deal with increment 14 cut 6535 deal with increment 18 cut -5544 deal with increment 29 deal into new stack deal with increment 64 deal into new stack deal with increment 41 deal into new stack deal with increment 6 cut 4752 deal with increment 8 deal into new stack deal with increment 26 cut -6635 deal with increment 10 deal into new stack cut -3830 deal with increment 48 deal into new stack deal with increment 39 cut -4768 deal with increment 65 deal into new stack cut -5417 deal with increment 15 cut -4647 deal into new stack cut -3596 deal with increment 17 cut -3771 deal with increment 50 cut 1682 deal into new stack deal with increment 20 deal into new stack deal with increment 22 deal into new stack deal with increment 3 cut 8780 deal with increment 52 cut 7478 deal with increment 9 cut -8313 deal into new stack cut 742 deal with increment 19 cut 9982 deal into new stack deal with increment 68 cut 9997 deal with increment 23 cut -240 deal with increment 54 cut -7643 deal into new stack deal with increment 6 cut -3493 deal with increment 74 deal into new stack deal with increment 75 deal into new stack deal with increment 40 cut 596 deal with increment 6 cut -4957 deal into new stack""" inlist = [f.strip() for f in input_str.split('\n') if f.strip()]
''' Scraper for site http://www.ssp.gob.mx/extraviadosWeb/portals/extraviados.portal '''
#!/usr/bin/env python data = [] aux = [] minimum = 999999 def push(e): global data global aux global minimum data.append(e) if e < minimum: aux.append(e) minimum = e else: aux.append(minimum) return def pop(): global data global aux global minimum data.pop() aux.pop() minimum = aux[-1] return def min(): global aux return aux[-1]
#!/usr/bin/env python # # File: $Id$ # """ Various global constants. """ # system imports # # Here we set the list of defined system flags (flags that may be set on a # message) and the subset of those flags that may not be set by a user. # SYSTEM_FLAGS = (r"\Answered", r"\Deleted", r"\Draft", r"\Flagged", r"\Recent", r"\Seen") NON_SETTABLE_FLAGS = r"\Recent" PERMANENT_FLAGS = (r"\Answered", r"\Deleted", r"\Draft", r"\Flagged", r"\Seen", r"\*") # mh does not allow '\' in sequence names so we have a mapping between # the actual mh sequence name and the corresponding system flag. # SYSTEM_FLAG_MAP = { "replied": r"\Answered", "Deleted": r"\Deleted", "Draft": r"\Draft", "flagged": r"\Flagged", "Recent": r"\Recent", "Seen": r"\Seen", } REVERSE_SYSTEM_FLAG_MAP = {} for key, value in SYSTEM_FLAG_MAP.items(): REVERSE_SYSTEM_FLAG_MAP[value] = key #################################################################### # def flag_to_seq(flag): """ Map an IMAP flag to an mh sequence name. This basically sees if the flag is one we need to translate or not. Arguments: - `flag`: The IMAP flag we are going to translate. """ if flag in REVERSE_SYSTEM_FLAG_MAP: return REVERSE_SYSTEM_FLAG_MAP[flag] return flag #################################################################### # def seq_to_flag(seq): """ The reverse of flag to seq - map an MH sequence name to the IMAP flag. Arguments: - `seq`: The MH sequence name """ if seq in SYSTEM_FLAG_MAP: return SYSTEM_FLAG_MAP[seq] return seq
# entrada entrance = input() # extrair valores de x e y v = entrance.split(' ') X = float(v[0]) Y = float(v[1]) # condições para descobrir quadrante if (X == 0) and (Y == 0): print('Origem') elif (X > 0) and (Y > 0): print('Q1') elif (X > 0) and (Y < 0): print('Q4') elif (X < 0) and (Y > 0): print('Q2') elif (X < 0) and (Y < 0): print('Q3') elif (X == 0) and ((Y > 0) or (Y < 0)): print('Eixo Y') elif (Y == 0) and ((X > 0) or (X < 0)): print('Eixo X')
def definition(): sql = """ ( @acad_year int, @period int, @start DATE, @end DATE ) RETURNS float AS_BREAK BEGIN -- Declare the return variable here DECLARE @result float -- Declare month start and end DECLARE @pstart DATE DECLARE @pdays float DECLARE @pend DATE SET @pstart = DATEADD(MONTH,@period, DATEFROMPARTS(@acad_year, 7,1)) SET @pdays = DAY(EOMONTH(@pstart)) SET @pend = DATEADD(DAY,@pdays-1, @pstart) --SET arbitrary upper and lower limits for dates if invalid SET @end = ISNULL(@end, DATEFROMPARTS(3000,01,01)) SET @start = ISNULL(@start, DATEFROMPARTS(1950,01,01)) SET @result = CASE WHEN @end <= @start THEN 1 --End before start (invalid so full cost) WHEN @end > @pend AND @start < @pstart THEN 1 -- work through WHEN @end < @pstart then 0 --End before month start WHEN @start > @pend THEN 0 --Start after month; By this point, must start or end in month WHEN DATEDIFF(DAY, @start, @end) < @pdays THEN CAST(DATEDIFF(DAY, @start, @end) AS FLOAT) / @pdays --Start and end in month WHEN @start >= @pstart THEN (CAST(DATEDIFF(DAY,@start, @pend) as float)+1)/@pdays -- start in month ELSE CAST(DATEDIFF(DAY, @pstart, @end) as float)/@pdays -- end in month END -- Return the result of the function RETURN @result END """ return sql
# # PySNMP MIB module CISCO-LWAPP-RF-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LWAPP-RF-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:49:16 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint") CLApIfType, = mibBuilder.importSymbols("CISCO-LWAPP-TC-MIB", "CLApIfType") cLAPGroupName, = mibBuilder.importSymbols("CISCO-LWAPP-WLAN-MIB", "cLAPGroupName") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") NotificationType, Integer32, Counter32, Counter64, MibIdentifier, Bits, ModuleIdentity, Unsigned32, iso, TimeTicks, IpAddress, Gauge32, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "Integer32", "Counter32", "Counter64", "MibIdentifier", "Bits", "ModuleIdentity", "Unsigned32", "iso", "TimeTicks", "IpAddress", "Gauge32", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn") StorageType, TextualConvention, DisplayString, RowStatus, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "StorageType", "TextualConvention", "DisplayString", "RowStatus", "TruthValue") ciscoLwappRFMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 778)) ciscoLwappRFMIB.setRevisions(('2012-04-27 00:00', '2012-01-27 00:00', '2011-11-01 00:00',)) if mibBuilder.loadTexts: ciscoLwappRFMIB.setLastUpdated('201111010000Z') if mibBuilder.loadTexts: ciscoLwappRFMIB.setOrganization('Cisco Systems Inc.') ciscoLwappRFMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 778, 0)) ciscoLwappRFMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 778, 1)) ciscoLwappRFMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 778, 2)) ciscoLwappRFConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1)) ciscoLwappRFGlobalObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 2)) class CiscoLwappRFApDataRates(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3)) namedValues = NamedValues(("disabled", 0), ("supported", 1), ("mandatoryRate", 2), ("notApplicable", 3)) cLAPGroupsRFProfileTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 1), ) if mibBuilder.loadTexts: cLAPGroupsRFProfileTable.setStatus('current') cLAPGroupsRFProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 1, 1), ).setIndexNames((0, "CISCO-LWAPP-WLAN-MIB", "cLAPGroupName")) if mibBuilder.loadTexts: cLAPGroupsRFProfileEntry.setStatus('current') cLAPGroups802dot11bgRFProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 1, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cLAPGroups802dot11bgRFProfileName.setStatus('current') cLAPGroups802dot11aRFProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 1, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cLAPGroups802dot11aRFProfileName.setStatus('current') cLRFProfileTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2), ) if mibBuilder.loadTexts: cLRFProfileTable.setStatus('current') cLRFProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1), ).setIndexNames((0, "CISCO-LWAPP-RF-MIB", "cLRFProfileName")) if mibBuilder.loadTexts: cLRFProfileEntry.setStatus('current') cLRFProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))) if mibBuilder.loadTexts: cLRFProfileName.setStatus('current') cLRFProfileDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileDescr.setStatus('current') cLRFProfileTransmitPowerMin = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-10, 30)).clone(-10)).setUnits('dbm').setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileTransmitPowerMin.setStatus('current') cLRFProfileTransmitPowerMax = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-10, 30)).clone(30)).setUnits('dbm').setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileTransmitPowerMax.setStatus('current') cLRFProfileTransmitPowerThresholdV1 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-80, -50)).clone(-70)).setUnits('dbm').setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileTransmitPowerThresholdV1.setStatus('current') cLRFProfileTransmitPowerThresholdV2 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-80, -50)).clone(-67)).setUnits('dbm').setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileTransmitPowerThresholdV2.setStatus('current') cLRFProfileDataRate1Mbps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 7), CiscoLwappRFApDataRates().clone('mandatoryRate')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileDataRate1Mbps.setStatus('current') cLRFProfileDataRate2Mbps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 8), CiscoLwappRFApDataRates().clone('mandatoryRate')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileDataRate2Mbps.setStatus('current') cLRFProfileDataRate5AndHalfMbps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 9), CiscoLwappRFApDataRates().clone('mandatoryRate')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileDataRate5AndHalfMbps.setStatus('current') cLRFProfileDataRate11Mbps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 10), CiscoLwappRFApDataRates().clone('mandatoryRate')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileDataRate11Mbps.setStatus('current') cLRFProfileDataRate6Mbps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 11), CiscoLwappRFApDataRates().clone('supported')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileDataRate6Mbps.setStatus('current') cLRFProfileDataRate9Mbps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 12), CiscoLwappRFApDataRates().clone('supported')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileDataRate9Mbps.setStatus('current') cLRFProfileDataRate12Mbps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 13), CiscoLwappRFApDataRates().clone('supported')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileDataRate12Mbps.setStatus('current') cLRFProfileDataRate18Mbps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 14), CiscoLwappRFApDataRates().clone('supported')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileDataRate18Mbps.setStatus('current') cLRFProfileDataRate24Mbps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 15), CiscoLwappRFApDataRates().clone('supported')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileDataRate24Mbps.setStatus('current') cLRFProfileDataRate36Mbps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 16), CiscoLwappRFApDataRates().clone('supported')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileDataRate36Mbps.setStatus('current') cLRFProfileDataRate48Mbps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 17), CiscoLwappRFApDataRates().clone('supported')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileDataRate48Mbps.setStatus('current') cLRFProfileDataRate54Mbps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 18), CiscoLwappRFApDataRates().clone('supported')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileDataRate54Mbps.setStatus('current') cLRFProfileRadioType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 19), CLApIfType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileRadioType.setStatus('current') cLRFProfileStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 20), StorageType().clone('nonVolatile')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileStorageType.setStatus('current') cLRFProfileRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 21), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileRowStatus.setStatus('current') cLRFProfileHighDensityMaxRadioClients = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 22), Unsigned32().clone(200)).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileHighDensityMaxRadioClients.setStatus('current') cLRFProfileBandSelectProbeResponse = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 23), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileBandSelectProbeResponse.setStatus('current') cLRFProfileBandSelectCycleCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 24), Unsigned32().clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileBandSelectCycleCount.setStatus('current') cLRFProfileBandSelectCycleThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 25), Unsigned32().clone(200)).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileBandSelectCycleThreshold.setStatus('current') cLRFProfileBandSelectExpireSuppression = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 26), Unsigned32().clone(20)).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileBandSelectExpireSuppression.setStatus('current') cLRFProfileBandSelectExpireDualBand = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 27), Unsigned32().clone(60)).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileBandSelectExpireDualBand.setStatus('current') cLRFProfileBandSelectClientRSSI = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 28), Integer32().clone(-80)).setUnits('dbm').setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileBandSelectClientRSSI.setStatus('current') cLRFProfileLoadBalancingWindowSize = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 29), Unsigned32().clone(5)).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileLoadBalancingWindowSize.setStatus('current') cLRFProfileLoadBalancingDenialCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 30), Unsigned32().clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileLoadBalancingDenialCount.setStatus('current') cLRFProfileCHDDataRSSIThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 31), Integer32().clone(-80)).setUnits('dbm').setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileCHDDataRSSIThreshold.setStatus('current') cLRFProfileCHDVoiceRSSIThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 32), Integer32().clone(-80)).setUnits('dbm').setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileCHDVoiceRSSIThreshold.setStatus('current') cLRFProfileCHDClientExceptionLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 33), Unsigned32().clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileCHDClientExceptionLevel.setStatus('current') cLRFProfileCHDCoverageExceptionLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 34), Unsigned32().clone(25)).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileCHDCoverageExceptionLevel.setStatus('current') cLRFProfileMulticastDataRate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 35), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileMulticastDataRate.setStatus('current') cLRFProfile11nOnly = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 36), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfile11nOnly.setStatus('current') cLRFProfileHDClientTrapThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 37), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cLRFProfileHDClientTrapThreshold.setStatus('current') cLRFProfileInterferenceThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 38), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cLRFProfileInterferenceThreshold.setStatus('current') cLRFProfileNoiseThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 39), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-127, 0))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cLRFProfileNoiseThreshold.setStatus('current') cLRFProfileUtilizationThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 40), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cLRFProfileUtilizationThreshold.setStatus('current') cLRFProfileDCAForeignContribution = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 41), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cLRFProfileDCAForeignContribution.setStatus('current') cLRFProfileDCAChannelWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("min", 1), ("medium", 2), ("max", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cLRFProfileDCAChannelWidth.setStatus('current') cLRFProfileDCAChannelList = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 43), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cLRFProfileDCAChannelList.setStatus('current') cLRFProfileRxSopThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 2, 1, 44), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("auto", 0), ("low", 1), ("medium", 2), ("high", 3))).clone('auto')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cLRFProfileRxSopThreshold.setStatus('current') cLRFProfileOutOfBoxAPConfig = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 2, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cLRFProfileOutOfBoxAPConfig.setStatus('current') cLRFProfileMcsDataRateTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 3), ) if mibBuilder.loadTexts: cLRFProfileMcsDataRateTable.setStatus('current') cLRFProfileMcsDataRateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 3, 1), ).setIndexNames((0, "CISCO-LWAPP-RF-MIB", "cLRFProfileMcsName"), (0, "CISCO-LWAPP-RF-MIB", "cLRFProfileMcsRate")) if mibBuilder.loadTexts: cLRFProfileMcsDataRateEntry.setStatus('current') cLRFProfileMcsName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 3, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))) if mibBuilder.loadTexts: cLRFProfileMcsName.setStatus('current') cLRFProfileMcsRate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 3, 1, 2), Unsigned32()) if mibBuilder.loadTexts: cLRFProfileMcsRate.setStatus('current') cLRFProfileMcsRateSupport = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 778, 1, 1, 3, 1, 3), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cLRFProfileMcsRateSupport.setStatus('current') ciscoLwappRFMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 778, 2, 1)) ciscoLwappRFMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 778, 2, 2)) ciscoLwappRFMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 778, 2, 1, 1)).setObjects(("CISCO-LWAPP-RF-MIB", "ciscoLwappRFConfigGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappRFMIBCompliance = ciscoLwappRFMIBCompliance.setStatus('deprecated') ciscoLwappRFMIBComplianceVer1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 778, 2, 1, 2)).setObjects(("CISCO-LWAPP-RF-MIB", "ciscoLwappRFConfigGroup"), ("CISCO-LWAPP-RF-MIB", "ciscoLwappRFConfigGroup1"), ("CISCO-LWAPP-RF-MIB", "ciscoLwappRFGlobalConfigGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappRFMIBComplianceVer1 = ciscoLwappRFMIBComplianceVer1.setStatus('current') ciscoLwappRFMIBComplianceVer2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 778, 2, 1, 3)).setObjects(("CISCO-LWAPP-RF-MIB", "ciscoLwappRFConfigGroup"), ("CISCO-LWAPP-RF-MIB", "ciscoLwappRFConfigGroup1"), ("CISCO-LWAPP-RF-MIB", "ciscoLwappRFGlobalConfigGroup"), ("CISCO-LWAPP-RF-MIB", "ciscoLwappRFConfigGroup2"), ("CISCO-LWAPP-RF-MIB", "ciscoLwappRFConfigGroup3")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappRFMIBComplianceVer2 = ciscoLwappRFMIBComplianceVer2.setStatus('current') ciscoLwappRFConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 778, 2, 2, 1)).setObjects(("CISCO-LWAPP-RF-MIB", "cLAPGroups802dot11bgRFProfileName"), ("CISCO-LWAPP-RF-MIB", "cLAPGroups802dot11aRFProfileName"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDescr"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileTransmitPowerMin"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileTransmitPowerMax"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileTransmitPowerThresholdV1"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileTransmitPowerThresholdV2"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate1Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate2Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate5AndHalfMbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate11Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate6Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate9Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate12Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate18Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate24Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate36Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate48Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate54Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileRadioType"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileStorageType"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileRowStatus"), ("CISCO-LWAPP-RF-MIB", "cLRFProfile11nOnly")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappRFConfigGroup = ciscoLwappRFConfigGroup.setStatus('deprecated') ciscoLwappRFConfigGroupVer1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 778, 2, 2, 2)).setObjects(("CISCO-LWAPP-RF-MIB", "cLAPGroups802dot11bgRFProfileName"), ("CISCO-LWAPP-RF-MIB", "cLAPGroups802dot11aRFProfileName"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDescr"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileTransmitPowerMin"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileTransmitPowerMax"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileTransmitPowerThresholdV1"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileTransmitPowerThresholdV2"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate1Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate2Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate5AndHalfMbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate11Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate6Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate9Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate12Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate18Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate24Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate36Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate48Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDataRate54Mbps"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileRadioType"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileStorageType"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileRowStatus"), ("CISCO-LWAPP-RF-MIB", "cLRFProfile11nOnly"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileMcsName"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileMcsRate"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileMcsRateSupport")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappRFConfigGroupVer1 = ciscoLwappRFConfigGroupVer1.setStatus('current') ciscoLwappRFConfigGroup1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 778, 2, 2, 5)).setObjects(("CISCO-LWAPP-RF-MIB", "cLRFProfileHighDensityMaxRadioClients"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileBandSelectProbeResponse"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileBandSelectCycleCount"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileBandSelectCycleThreshold"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileBandSelectExpireSuppression"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileBandSelectExpireDualBand"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileBandSelectClientRSSI"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileLoadBalancingWindowSize"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileLoadBalancingDenialCount"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileCHDDataRSSIThreshold"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileCHDVoiceRSSIThreshold"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileCHDClientExceptionLevel"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileCHDCoverageExceptionLevel"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileMulticastDataRate")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappRFConfigGroup1 = ciscoLwappRFConfigGroup1.setStatus('current') ciscoLwappRFGlobalConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 778, 2, 2, 3)).setObjects(("CISCO-LWAPP-RF-MIB", "cLRFProfileOutOfBoxAPConfig")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappRFGlobalConfigGroup = ciscoLwappRFGlobalConfigGroup.setStatus('current') ciscoLwappRFConfigGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 778, 2, 2, 4)).setObjects(("CISCO-LWAPP-RF-MIB", "cLRFProfileHDClientTrapThreshold"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileInterferenceThreshold"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileNoiseThreshold"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileUtilizationThreshold")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappRFConfigGroup2 = ciscoLwappRFConfigGroup2.setStatus('current') ciscoLwappRFConfigGroup3 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 778, 2, 2, 6)).setObjects(("CISCO-LWAPP-RF-MIB", "cLRFProfileDCAForeignContribution"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDCAChannelWidth"), ("CISCO-LWAPP-RF-MIB", "cLRFProfileDCAChannelList")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappRFConfigGroup3 = ciscoLwappRFConfigGroup3.setStatus('current') ciscoLwappRFConfigGroup4 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 778, 2, 2, 7)).setObjects(("CISCO-LWAPP-RF-MIB", "cLRFProfileRxSopThreshold")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappRFConfigGroup4 = ciscoLwappRFConfigGroup4.setStatus('current') mibBuilder.exportSymbols("CISCO-LWAPP-RF-MIB", ciscoLwappRFConfig=ciscoLwappRFConfig, cLRFProfileMcsDataRateTable=cLRFProfileMcsDataRateTable, ciscoLwappRFMIBCompliance=ciscoLwappRFMIBCompliance, cLRFProfileDataRate9Mbps=cLRFProfileDataRate9Mbps, ciscoLwappRFConfigGroupVer1=ciscoLwappRFConfigGroupVer1, ciscoLwappRFMIBGroups=ciscoLwappRFMIBGroups, cLRFProfileDCAForeignContribution=cLRFProfileDCAForeignContribution, cLRFProfileDataRate18Mbps=cLRFProfileDataRate18Mbps, cLRFProfileDescr=cLRFProfileDescr, cLRFProfileMcsName=cLRFProfileMcsName, ciscoLwappRFGlobalConfigGroup=ciscoLwappRFGlobalConfigGroup, cLRFProfileBandSelectCycleCount=cLRFProfileBandSelectCycleCount, cLAPGroupsRFProfileTable=cLAPGroupsRFProfileTable, PYSNMP_MODULE_ID=ciscoLwappRFMIB, cLRFProfileHDClientTrapThreshold=cLRFProfileHDClientTrapThreshold, cLAPGroups802dot11bgRFProfileName=cLAPGroups802dot11bgRFProfileName, cLRFProfileOutOfBoxAPConfig=cLRFProfileOutOfBoxAPConfig, cLRFProfileTransmitPowerMax=cLRFProfileTransmitPowerMax, cLRFProfileRowStatus=cLRFProfileRowStatus, cLRFProfileDataRate54Mbps=cLRFProfileDataRate54Mbps, cLRFProfileRadioType=cLRFProfileRadioType, cLRFProfileDataRate11Mbps=cLRFProfileDataRate11Mbps, cLRFProfileDataRate6Mbps=cLRFProfileDataRate6Mbps, cLRFProfileCHDDataRSSIThreshold=cLRFProfileCHDDataRSSIThreshold, cLRFProfileInterferenceThreshold=cLRFProfileInterferenceThreshold, cLRFProfileMcsDataRateEntry=cLRFProfileMcsDataRateEntry, cLRFProfileStorageType=cLRFProfileStorageType, cLRFProfileMcsRate=cLRFProfileMcsRate, cLRFProfileUtilizationThreshold=cLRFProfileUtilizationThreshold, ciscoLwappRFConfigGroup1=ciscoLwappRFConfigGroup1, cLRFProfileDataRate24Mbps=cLRFProfileDataRate24Mbps, cLRFProfileTable=cLRFProfileTable, cLRFProfileBandSelectExpireSuppression=cLRFProfileBandSelectExpireSuppression, ciscoLwappRFConfigGroup4=ciscoLwappRFConfigGroup4, cLRFProfileHighDensityMaxRadioClients=cLRFProfileHighDensityMaxRadioClients, ciscoLwappRFMIBComplianceVer2=ciscoLwappRFMIBComplianceVer2, cLAPGroupsRFProfileEntry=cLAPGroupsRFProfileEntry, cLRFProfileBandSelectClientRSSI=cLRFProfileBandSelectClientRSSI, ciscoLwappRFMIBNotifs=ciscoLwappRFMIBNotifs, ciscoLwappRFMIBObjects=ciscoLwappRFMIBObjects, cLRFProfileTransmitPowerThresholdV1=cLRFProfileTransmitPowerThresholdV1, cLRFProfileLoadBalancingDenialCount=cLRFProfileLoadBalancingDenialCount, cLRFProfileCHDClientExceptionLevel=cLRFProfileCHDClientExceptionLevel, cLRFProfileDCAChannelList=cLRFProfileDCAChannelList, ciscoLwappRFConfigGroup3=ciscoLwappRFConfigGroup3, cLRFProfileDataRate1Mbps=cLRFProfileDataRate1Mbps, cLRFProfileDataRate5AndHalfMbps=cLRFProfileDataRate5AndHalfMbps, CiscoLwappRFApDataRates=CiscoLwappRFApDataRates, cLRFProfileDataRate2Mbps=cLRFProfileDataRate2Mbps, cLRFProfileBandSelectProbeResponse=cLRFProfileBandSelectProbeResponse, cLRFProfileEntry=cLRFProfileEntry, cLRFProfileMcsRateSupport=cLRFProfileMcsRateSupport, ciscoLwappRFMIB=ciscoLwappRFMIB, ciscoLwappRFGlobalObjects=ciscoLwappRFGlobalObjects, cLRFProfileNoiseThreshold=cLRFProfileNoiseThreshold, cLRFProfileDCAChannelWidth=cLRFProfileDCAChannelWidth, cLRFProfileTransmitPowerMin=cLRFProfileTransmitPowerMin, cLRFProfileRxSopThreshold=cLRFProfileRxSopThreshold, cLRFProfileMulticastDataRate=cLRFProfileMulticastDataRate, ciscoLwappRFConfigGroup2=ciscoLwappRFConfigGroup2, cLRFProfileDataRate12Mbps=cLRFProfileDataRate12Mbps, cLRFProfileBandSelectExpireDualBand=cLRFProfileBandSelectExpireDualBand, cLRFProfileTransmitPowerThresholdV2=cLRFProfileTransmitPowerThresholdV2, cLRFProfileDataRate48Mbps=cLRFProfileDataRate48Mbps, cLRFProfile11nOnly=cLRFProfile11nOnly, cLRFProfileCHDCoverageExceptionLevel=cLRFProfileCHDCoverageExceptionLevel, ciscoLwappRFConfigGroup=ciscoLwappRFConfigGroup, cLAPGroups802dot11aRFProfileName=cLAPGroups802dot11aRFProfileName, ciscoLwappRFMIBComplianceVer1=ciscoLwappRFMIBComplianceVer1, cLRFProfileDataRate36Mbps=cLRFProfileDataRate36Mbps, ciscoLwappRFMIBConform=ciscoLwappRFMIBConform, cLRFProfileLoadBalancingWindowSize=cLRFProfileLoadBalancingWindowSize, ciscoLwappRFMIBCompliances=ciscoLwappRFMIBCompliances, cLRFProfileBandSelectCycleThreshold=cLRFProfileBandSelectCycleThreshold, cLRFProfileName=cLRFProfileName, cLRFProfileCHDVoiceRSSIThreshold=cLRFProfileCHDVoiceRSSIThreshold)
#{ # city1: [(neighbor_city, dist), ...], # city2: ... #} cities = { 'Bucharest': [ ('Urzineci',85), ('Giurgiu',90), ('Pitesti',101), ('Fagaras',211) ], 'Giurgiu': [ ('Bucharest',90) ], 'Urzineci': [ ('Bucharest',85), ('Hirsova',98), ('Vaslui',142) ], 'Hirsova': [ ('Urzineci',98), ('Eforie',86) ], 'Eforie': [ ('Hirsova',86) ], 'Vaslui': [ ('Urzineci',142), ('Iasi',92) ], 'Iasi': [ ('Vaslui', 92), ('Neamt',87) ], 'Neamt': [ ('Iasi', 87) ], 'Fagaras': [ ('Bucharest',211), ('Sibiu',99) ], 'Pitesti': [ ('Bucharest',101), ('Rimnicu Vilcea',97), ('Craiova',138) ], 'Craiova':[ ('Pitesti',138), ('Rimnicu Vilcea',146), ('Dobreta',120) ], 'Rimnicu Vilcea':[ ('Craiova',146), ('Pitesti',97), ('Sibiu',80) ], 'Sibiu':[ ('Rimnicu Vilcea',80), ('Fagaras',99), ('Oradea',151), ('Arad',140) ], 'Oradea':[ ('Sibiu',151), ('Zerind',71) ], 'Zerind':[ ('Oradea',71), ('Arad',75) ], 'Arad':[ ('Zerind',75), ('Timisoara',118), ('Sibiu',140) ], 'Timisoara':[ ('Arad',118), ('Lugoj',111) ], 'Lugoj':[ ('Timisoara',111), ('Mehadia',70) ], 'Mehadia':[ ('Lugoj',70), ('Dobreta',75) ], 'Dobreta':[ ('Mehadia',75), ('Craiova',120) ], } #{ # city1: dist, # city2: dist, # ... #} straight_line_dists_from_bucharest = { 'Arad': 366, 'Bucharest':0, 'Craiova':160, 'Dobreta':242, 'Eforie':161, 'Fagaras':176, 'Giurgiu':77, 'Hirsova':151, 'Iasi':226, 'Lugoj':244, 'Mehadia':241, 'Neamt':234, 'Oradea':380, 'Pitesti':100, 'Rimnicu Vilcea':193, 'Sibiu':253, 'Timisoara':329, 'Urzineci':80, 'Vaslui':199, 'Zerind':374 }
FIRST_QUESTIONS = { "en": "Hi, how are you?", "de": "Hallo, wie geht es dir?", "pt-br": "Oi como você está?", "he": "היי מה קורה?", } TERMINATES = { "en": "quit", "de": "ende", "pt-br": "sair", "he": "זהו" } LANGUAGE_SUPPORT = ["en", "de", "pt-br","he"]
HDF5_EXTENSION = "hdf5" HDF_SEPARATOR = "/" MODEL_SUBFOLDER = "MODEL" CLASS_WEIGHT_FILE = "class_weights.json" TRAIN_DS_NAME = "train" VALIDATION_DS_NAME = "validation" TEST_DS_NAME = "test" # Used to determine whether a dataset can safely fit into # The available memory MEM_SAFETY_FACTOR = 1.05 # this constant is used everywhere to check whether # we should automagically apply that thing AUTO = "AUTO" FEATURE_INDEX = "feature" LABEL_INDEX = "label"
# SPDX-License-Identifier: MIT # Copyright (c) 2021 ETH Zurich, Luc Grosheintz-Laval def _split_timedelta(t): days = t.days hours, seconds = divmod(t.seconds, 3600) minutes, seconds = divmod(seconds, 60) return days, hours, minutes, seconds def hhmm(t): days, hours, minutes, _ = _split_timedelta(t) return "{:02d}:{:02d}".format(24 * days + hours, minutes) def hhmmss(t): days, hours, minutes, seconds = _split_timedelta(t) return "{:02d}:{:02d}:{:02d}".format(24 * days + hours, minutes, seconds)
# Static data class for vortex vanquisher class VortexVanquisher: level = 90 refinementLevel = 1 name = "Vortex Vanquisher" # Base stat values baseATK = 608 atkPercent = 0.496 # Passive values stackCount = 5 atkPercent = 2 * 0.04 * stackCount # Assuming shield is up at all times
# # PySNMP MIB module APRADIUS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/APRADIUS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:08:27 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) # acmepacketMgmt, = mibBuilder.importSymbols("ACMEPACKET-SMI", "acmepacketMgmt") ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint") InetAddress, InetAddressType, InetPortNumber = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddress", "InetAddressType", "InetPortNumber") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") NotificationType, MibIdentifier, Unsigned32, Bits, TimeTicks, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, ModuleIdentity, Integer32, Counter32, iso, ObjectIdentity, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "MibIdentifier", "Unsigned32", "Bits", "TimeTicks", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "ModuleIdentity", "Integer32", "Counter32", "iso", "ObjectIdentity", "Gauge32") TruthValue, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "TextualConvention", "DisplayString") apRadiusServerModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 9148, 3, 18)) if mibBuilder.loadTexts: apRadiusServerModule.setLastUpdated('201203150000Z') if mibBuilder.loadTexts: apRadiusServerModule.setOrganization('Acme Packet, Inc') apRadiusServerMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1)) apRadiusServerStatsTable = MibTable((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1), ) if mibBuilder.loadTexts: apRadiusServerStatsTable.setStatus('current') apRadiusServerStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1), ).setIndexNames((0, "APRADIUS-MIB", "apRadiusServerAddressType"), (0, "APRADIUS-MIB", "apRadiusServerAddress")) if mibBuilder.loadTexts: apRadiusServerStatsEntry.setStatus('current') apRadiusServerAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 1), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerAddressType.setStatus('current') apRadiusServerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 2), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerAddress.setStatus('current') apRadiusServerRoundTripTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerRoundTripTime.setStatus('current') apRadiusServerMalformedAccessResponse = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerMalformedAccessResponse.setStatus('current') apRadiusServerAccessRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerAccessRequests.setStatus('current') apRadiusServerDisconnectRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerDisconnectRequests.setStatus('current') apRadiusServerDisconnectACKs = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerDisconnectACKs.setStatus('current') apRadiusServerDisconnectNACks = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerDisconnectNACks.setStatus('current') apRadiusServerBadAuthenticators = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerBadAuthenticators.setStatus('current') apRadiusServerAccessRetransmissions = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerAccessRetransmissions.setStatus('current') apRadiusServerAccessAccepts = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 11), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerAccessAccepts.setStatus('current') apRadiusServerTimeouts = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 12), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerTimeouts.setStatus('current') apRadiusServerAccessRejects = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 13), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerAccessRejects.setStatus('current') apRadiusServerUnknownPDUTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 14), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerUnknownPDUTypes.setStatus('current') apRadiusServerAccessChallenges = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 18, 1, 1, 1, 15), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apRadiusServerAccessChallenges.setStatus('current') apRadiusServerConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 18, 2)) apRadiusObjectGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 18, 2, 1)) apRadiusInterfaceStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9148, 3, 18, 2, 1, 1)).setObjects(("APRADIUS-MIB", "apRadiusServerRoundTripTime"), ("APRADIUS-MIB", "apRadiusServerMalformedAccessResponse"), ("APRADIUS-MIB", "apRadiusServerAccessRequests"), ("APRADIUS-MIB", "apRadiusServerDisconnectRequests"), ("APRADIUS-MIB", "apRadiusServerDisconnectACKs"), ("APRADIUS-MIB", "apRadiusServerDisconnectNACks"), ("APRADIUS-MIB", "apRadiusServerBadAuthenticators"), ("APRADIUS-MIB", "apRadiusServerAccessRetransmissions"), ("APRADIUS-MIB", "apRadiusServerAccessAccepts"), ("APRADIUS-MIB", "apRadiusServerTimeouts"), ("APRADIUS-MIB", "apRadiusServerAccessRejects"), ("APRADIUS-MIB", "apRadiusServerUnknownPDUTypes"), ("APRADIUS-MIB", "apRadiusServerAccessChallenges")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): apRadiusInterfaceStatsGroup = apRadiusInterfaceStatsGroup.setStatus('current') mibBuilder.exportSymbols("APRADIUS-MIB", PYSNMP_MODULE_ID=apRadiusServerModule, apRadiusServerAccessRetransmissions=apRadiusServerAccessRetransmissions, apRadiusServerStatsEntry=apRadiusServerStatsEntry, apRadiusServerAddressType=apRadiusServerAddressType, apRadiusServerMalformedAccessResponse=apRadiusServerMalformedAccessResponse, apRadiusServerStatsTable=apRadiusServerStatsTable, apRadiusServerModule=apRadiusServerModule, apRadiusServerDisconnectNACks=apRadiusServerDisconnectNACks, apRadiusServerAccessChallenges=apRadiusServerAccessChallenges, apRadiusServerTimeouts=apRadiusServerTimeouts, apRadiusServerAddress=apRadiusServerAddress, apRadiusServerAccessRejects=apRadiusServerAccessRejects, apRadiusServerConformance=apRadiusServerConformance, apRadiusServerMIBObjects=apRadiusServerMIBObjects, apRadiusObjectGroups=apRadiusObjectGroups, apRadiusInterfaceStatsGroup=apRadiusInterfaceStatsGroup, apRadiusServerUnknownPDUTypes=apRadiusServerUnknownPDUTypes, apRadiusServerDisconnectRequests=apRadiusServerDisconnectRequests, apRadiusServerAccessAccepts=apRadiusServerAccessAccepts, apRadiusServerDisconnectACKs=apRadiusServerDisconnectACKs, apRadiusServerBadAuthenticators=apRadiusServerBadAuthenticators, apRadiusServerRoundTripTime=apRadiusServerRoundTripTime, apRadiusServerAccessRequests=apRadiusServerAccessRequests)
class GTException(Exception): """ Base exception for GTbot-related errors. """ pass class SilentError(GTException): """ An error was already handled and should be silent, but still propagate and cancel the stack call. """ pass class NotFound(GTException): """ The object you're looking for was not found. """ pass class AlreadyPresent(GTException): """ You're trying to assign someone to solething he is already assigned to. """ pass class NotAllowed(GTException): """ Someone is trying to perform an action he is not allowed to do. """ pass
scripts_to_script_start = { 0: "Common", 32: "Common", 33: "Common", 36: "Common", 37: "Common", 40: "Common", 41: "Common", 42: "Common", 43: "Common", 44: "Common", 45: "Common", 46: "Common", 48: "Common", 58: "Common", 60: "Common", 63: "Common", 65: "Latin", 91: "Common", 92: "Common", 93: "Common", 94: "Common", 95: "Common", 96: "Common", 97: "Latin", 123: "Common", 124: "Common", 125: "Common", 126: "Common", 127: "Common", 160: "Common", 161: "Common", 162: "Common", 166: "Common", 167: "Common", 168: "Common", 169: "Common", 170: "Latin", 171: "Common", 172: "Common", 173: "Common", 174: "Common", 175: "Common", 176: "Common", 177: "Common", 178: "Common", 180: "Common", 181: "Common", 182: "Common", 184: "Common", 185: "Common", 186: "Latin", 187: "Common", 188: "Common", 191: "Common", 192: "Latin", 215: "Common", 216: "Latin", 247: "Common", 248: "Latin", 443: "Latin", 444: "Latin", 448: "Latin", 452: "Latin", 660: "Latin", 661: "Latin", 688: "Latin", 697: "Common", 706: "Common", 710: "Common", 722: "Common", 736: "Latin", 741: "Common", 746: "Bopomofo", 748: "Common", 749: "Common", 750: "Common", 751: "Common", 768: "Inherited", 880: "Greek", 884: "Common", 885: "Greek", 886: "Greek", 890: "Greek", 891: "Greek", 894: "Common", 895: "Greek", 900: "Greek", 901: "Common", 902: "Greek", 903: "Common", 904: "Greek", 908: "Greek", 910: "Greek", 931: "Greek", 994: "Coptic", 1008: "Greek", 1014: "Greek", 1015: "Greek", 1024: "Cyrillic", 1154: "Cyrillic", 1155: "Cyrillic", 1157: "Inherited", 1159: "Cyrillic", 1160: "Cyrillic", 1162: "Cyrillic", 1329: "Armenian", 1369: "Armenian", 1370: "Armenian", 1376: "Armenian", 1417: "Armenian", 1418: "Armenian", 1421: "Armenian", 1423: "Armenian", 1425: "Hebrew", 1470: "Hebrew", 1471: "Hebrew", 1472: "Hebrew", 1473: "Hebrew", 1475: "Hebrew", 1476: "Hebrew", 1478: "Hebrew", 1479: "Hebrew", 1488: "Hebrew", 1519: "Hebrew", 1523: "Hebrew", 1536: "Arabic", 1541: "Common", 1542: "Arabic", 1545: "Arabic", 1547: "Arabic", 1548: "Common", 1549: "Arabic", 1550: "Arabic", 1552: "Arabic", 1563: "Common", 1564: "Arabic", 1566: "Arabic", 1567: "Common", 1568: "Arabic", 1600: "Common", 1601: "Arabic", 1611: "Inherited", 1622: "Arabic", 1632: "Arabic", 1642: "Arabic", 1646: "Arabic", 1648: "Inherited", 1649: "Arabic", 1748: "Arabic", 1749: "Arabic", 1750: "Arabic", 1757: "Common", 1758: "Arabic", 1759: "Arabic", 1765: "Arabic", 1767: "Arabic", 1769: "Arabic", 1770: "Arabic", 1774: "Arabic", 1776: "Arabic", 1786: "Arabic", 1789: "Arabic", 1791: "Arabic", 1792: "Syriac", 1807: "Syriac", 1808: "Syriac", 1809: "Syriac", 1810: "Syriac", 1840: "Syriac", 1869: "Syriac", 1872: "Arabic", 1920: "Thaana", 1958: "Thaana", 1969: "Thaana", 1984: "Nko", 1994: "Nko", 2027: "Nko", 2036: "Nko", 2038: "Nko", 2039: "Nko", 2042: "Nko", 2045: "Nko", 2046: "Nko", 2048: "Samaritan", 2070: "Samaritan", 2074: "Samaritan", 2075: "Samaritan", 2084: "Samaritan", 2085: "Samaritan", 2088: "Samaritan", 2089: "Samaritan", 2096: "Samaritan", 2112: "Mandaic", 2137: "Mandaic", 2142: "Mandaic", 2144: "Syriac", 2208: "Arabic", 2230: "Arabic", 2259: "Arabic", 2274: "Common", 2275: "Arabic", 2304: "Devanagari", 2307: "Devanagari", 2308: "Devanagari", 2362: "Devanagari", 2363: "Devanagari", 2364: "Devanagari", 2365: "Devanagari", 2366: "Devanagari", 2369: "Devanagari", 2377: "Devanagari", 2381: "Devanagari", 2382: "Devanagari", 2384: "Devanagari", 2385: "Inherited", 2389: "Devanagari", 2392: "Devanagari", 2402: "Devanagari", 2404: "Common", 2406: "Devanagari", 2416: "Devanagari", 2417: "Devanagari", 2418: "Devanagari", 2432: "Bengali", 2433: "Bengali", 2434: "Bengali", 2437: "Bengali", 2447: "Bengali", 2451: "Bengali", 2474: "Bengali", 2482: "Bengali", 2486: "Bengali", 2492: "Bengali", 2493: "Bengali", 2494: "Bengali", 2497: "Bengali", 2503: "Bengali", 2507: "Bengali", 2509: "Bengali", 2510: "Bengali", 2519: "Bengali", 2524: "Bengali", 2527: "Bengali", 2530: "Bengali", 2534: "Bengali", 2544: "Bengali", 2546: "Bengali", 2548: "Bengali", 2554: "Bengali", 2555: "Bengali", 2556: "Bengali", 2557: "Bengali", 2558: "Bengali", 2561: "Gurmukhi", 2563: "Gurmukhi", 2565: "Gurmukhi", 2575: "Gurmukhi", 2579: "Gurmukhi", 2602: "Gurmukhi", 2610: "Gurmukhi", 2613: "Gurmukhi", 2616: "Gurmukhi", 2620: "Gurmukhi", 2622: "Gurmukhi", 2625: "Gurmukhi", 2631: "Gurmukhi", 2635: "Gurmukhi", 2641: "Gurmukhi", 2649: "Gurmukhi", 2654: "Gurmukhi", 2662: "Gurmukhi", 2672: "Gurmukhi", 2674: "Gurmukhi", 2677: "Gurmukhi", 2678: "Gurmukhi", 2689: "Gujarati", 2691: "Gujarati", 2693: "Gujarati", 2703: "Gujarati", 2707: "Gujarati", 2730: "Gujarati", 2738: "Gujarati", 2741: "Gujarati", 2748: "Gujarati", 2749: "Gujarati", 2750: "Gujarati", 2753: "Gujarati", 2759: "Gujarati", 2761: "Gujarati", 2763: "Gujarati", 2765: "Gujarati", 2768: "Gujarati", 2784: "Gujarati", 2786: "Gujarati", 2790: "Gujarati", 2800: "Gujarati", 2801: "Gujarati", 2809: "Gujarati", 2810: "Gujarati", 2817: "Oriya", 2818: "Oriya", 2821: "Oriya", 2831: "Oriya", 2835: "Oriya", 2858: "Oriya", 2866: "Oriya", 2869: "Oriya", 2876: "Oriya", 2877: "Oriya", 2878: "Oriya", 2879: "Oriya", 2880: "Oriya", 2881: "Oriya", 2887: "Oriya", 2891: "Oriya", 2893: "Oriya", 2901: "Oriya", 2903: "Oriya", 2908: "Oriya", 2911: "Oriya", 2914: "Oriya", 2918: "Oriya", 2928: "Oriya", 2929: "Oriya", 2930: "Oriya", 2946: "Tamil", 2947: "Tamil", 2949: "Tamil", 2958: "Tamil", 2962: "Tamil", 2969: "Tamil", 2972: "Tamil", 2974: "Tamil", 2979: "Tamil", 2984: "Tamil", 2990: "Tamil", 3006: "Tamil", 3008: "Tamil", 3009: "Tamil", 3014: "Tamil", 3018: "Tamil", 3021: "Tamil", 3024: "Tamil", 3031: "Tamil", 3046: "Tamil", 3056: "Tamil", 3059: "Tamil", 3065: "Tamil", 3066: "Tamil", 3072: "Telugu", 3073: "Telugu", 3076: "Telugu", 3077: "Telugu", 3086: "Telugu", 3090: "Telugu", 3114: "Telugu", 3133: "Telugu", 3134: "Telugu", 3137: "Telugu", 3142: "Telugu", 3146: "Telugu", 3157: "Telugu", 3160: "Telugu", 3168: "Telugu", 3170: "Telugu", 3174: "Telugu", 3191: "Telugu", 3192: "Telugu", 3199: "Telugu", 3200: "Kannada", 3201: "Kannada", 3202: "Kannada", 3204: "Kannada", 3205: "Kannada", 3214: "Kannada", 3218: "Kannada", 3242: "Kannada", 3253: "Kannada", 3260: "Kannada", 3261: "Kannada", 3262: "Kannada", 3263: "Kannada", 3264: "Kannada", 3270: "Kannada", 3271: "Kannada", 3274: "Kannada", 3276: "Kannada", 3285: "Kannada", 3294: "Kannada", 3296: "Kannada", 3298: "Kannada", 3302: "Kannada", 3313: "Kannada", 3328: "Malayalam", 3330: "Malayalam", 3332: "Malayalam", 3342: "Malayalam", 3346: "Malayalam", 3387: "Malayalam", 3389: "Malayalam", 3390: "Malayalam", 3393: "Malayalam", 3398: "Malayalam", 3402: "Malayalam", 3405: "Malayalam", 3406: "Malayalam", 3407: "Malayalam", 3412: "Malayalam", 3415: "Malayalam", 3416: "Malayalam", 3423: "Malayalam", 3426: "Malayalam", 3430: "Malayalam", 3440: "Malayalam", 3449: "Malayalam", 3450: "Malayalam", 3457: "Sinhala", 3458: "Sinhala", 3461: "Sinhala", 3482: "Sinhala", 3507: "Sinhala", 3517: "Sinhala", 3520: "Sinhala", 3530: "Sinhala", 3535: "Sinhala", 3538: "Sinhala", 3542: "Sinhala", 3544: "Sinhala", 3558: "Sinhala", 3570: "Sinhala", 3572: "Sinhala", 3585: "Thai", 3633: "Thai", 3634: "Thai", 3636: "Thai", 3647: "Common", 3648: "Thai", 3654: "Thai", 3655: "Thai", 3663: "Thai", 3664: "Thai", 3674: "Thai", 3713: "Lao", 3716: "Lao", 3718: "Lao", 3724: "Lao", 3749: "Lao", 3751: "Lao", 3761: "Lao", 3762: "Lao", 3764: "Lao", 3773: "Lao", 3776: "Lao", 3782: "Lao", 3784: "Lao", 3792: "Lao", 3804: "Lao", 3840: "Tibetan", 3841: "Tibetan", 3844: "Tibetan", 3859: "Tibetan", 3860: "Tibetan", 3861: "Tibetan", 3864: "Tibetan", 3866: "Tibetan", 3872: "Tibetan", 3882: "Tibetan", 3892: "Tibetan", 3893: "Tibetan", 3894: "Tibetan", 3895: "Tibetan", 3896: "Tibetan", 3897: "Tibetan", 3898: "Tibetan", 3899: "Tibetan", 3900: "Tibetan", 3901: "Tibetan", 3902: "Tibetan", 3904: "Tibetan", 3913: "Tibetan", 3953: "Tibetan", 3967: "Tibetan", 3968: "Tibetan", 3973: "Tibetan", 3974: "Tibetan", 3976: "Tibetan", 3981: "Tibetan", 3993: "Tibetan", 4030: "Tibetan", 4038: "Tibetan", 4039: "Tibetan", 4046: "Tibetan", 4048: "Tibetan", 4053: "Common", 4057: "Tibetan", 4096: "Myanmar", 4139: "Myanmar", 4141: "Myanmar", 4145: "Myanmar", 4146: "Myanmar", 4152: "Myanmar", 4153: "Myanmar", 4155: "Myanmar", 4157: "Myanmar", 4159: "Myanmar", 4160: "Myanmar", 4170: "Myanmar", 4176: "Myanmar", 4182: "Myanmar", 4184: "Myanmar", 4186: "Myanmar", 4190: "Myanmar", 4193: "Myanmar", 4194: "Myanmar", 4197: "Myanmar", 4199: "Myanmar", 4206: "Myanmar", 4209: "Myanmar", 4213: "Myanmar", 4226: "Myanmar", 4227: "Myanmar", 4229: "Myanmar", 4231: "Myanmar", 4237: "Myanmar", 4238: "Myanmar", 4239: "Myanmar", 4240: "Myanmar", 4250: "Myanmar", 4253: "Myanmar", 4254: "Myanmar", 4256: "Georgian", 4295: "Georgian", 4301: "Georgian", 4304: "Georgian", 4347: "Common", 4348: "Georgian", 4349: "Georgian", 4352: "Hangul", 4608: "Ethiopic", 4682: "Ethiopic", 4688: "Ethiopic", 4696: "Ethiopic", 4698: "Ethiopic", 4704: "Ethiopic", 4746: "Ethiopic", 4752: "Ethiopic", 4786: "Ethiopic", 4792: "Ethiopic", 4800: "Ethiopic", 4802: "Ethiopic", 4808: "Ethiopic", 4824: "Ethiopic", 4882: "Ethiopic", 4888: "Ethiopic", 4957: "Ethiopic", 4960: "Ethiopic", 4969: "Ethiopic", 4992: "Ethiopic", 5008: "Ethiopic", 5024: "Cherokee", 5112: "Cherokee", 5120: "Canadian_Aboriginal", 5121: "Canadian_Aboriginal", 5741: "Canadian_Aboriginal", 5742: "Canadian_Aboriginal", 5743: "Canadian_Aboriginal", 5760: "Ogham", 5761: "Ogham", 5787: "Ogham", 5788: "Ogham", 5792: "Runic", 5867: "Common", 5870: "Runic", 5873: "Runic", 5888: "Tagalog", 5902: "Tagalog", 5906: "Tagalog", 5920: "Hanunoo", 5938: "Hanunoo", 5941: "Common", 5952: "Buhid", 5970: "Buhid", 5984: "Tagbanwa", 5998: "Tagbanwa", 6002: "Tagbanwa", 6016: "Khmer", 6068: "Khmer", 6070: "Khmer", 6071: "Khmer", 6078: "Khmer", 6086: "Khmer", 6087: "Khmer", 6089: "Khmer", 6100: "Khmer", 6103: "Khmer", 6104: "Khmer", 6107: "Khmer", 6108: "Khmer", 6109: "Khmer", 6112: "Khmer", 6128: "Khmer", 6144: "Mongolian", 6146: "Common", 6148: "Mongolian", 6149: "Common", 6150: "Mongolian", 6151: "Mongolian", 6155: "Mongolian", 6158: "Mongolian", 6160: "Mongolian", 6176: "Mongolian", 6211: "Mongolian", 6212: "Mongolian", 6272: "Mongolian", 6277: "Mongolian", 6279: "Mongolian", 6313: "Mongolian", 6314: "Mongolian", 6320: "Canadian_Aboriginal", 6400: "Limbu", 6432: "Limbu", 6435: "Limbu", 6439: "Limbu", 6441: "Limbu", 6448: "Limbu", 6450: "Limbu", 6451: "Limbu", 6457: "Limbu", 6464: "Limbu", 6468: "Limbu", 6470: "Limbu", 6480: "Tai_Le", 6512: "Tai_Le", 6528: "New_Tai_Lue", 6576: "New_Tai_Lue", 6608: "New_Tai_Lue", 6618: "New_Tai_Lue", 6622: "New_Tai_Lue", 6624: "Khmer", 6656: "Buginese", 6679: "Buginese", 6681: "Buginese", 6683: "Buginese", 6686: "Buginese", 6688: "Tai_Tham", 6741: "Tai_Tham", 6742: "Tai_Tham", 6743: "Tai_Tham", 6744: "Tai_Tham", 6752: "Tai_Tham", 6753: "Tai_Tham", 6754: "Tai_Tham", 6755: "Tai_Tham", 6757: "Tai_Tham", 6765: "Tai_Tham", 6771: "Tai_Tham", 6783: "Tai_Tham", 6784: "Tai_Tham", 6800: "Tai_Tham", 6816: "Tai_Tham", 6823: "Tai_Tham", 6824: "Tai_Tham", 6832: "Inherited", 6846: "Inherited", 6847: "Inherited", 6912: "Balinese", 6916: "Balinese", 6917: "Balinese", 6964: "Balinese", 6965: "Balinese", 6966: "Balinese", 6971: "Balinese", 6972: "Balinese", 6973: "Balinese", 6978: "Balinese", 6979: "Balinese", 6981: "Balinese", 6992: "Balinese", 7002: "Balinese", 7009: "Balinese", 7019: "Balinese", 7028: "Balinese", 7040: "Sundanese", 7042: "Sundanese", 7043: "Sundanese", 7073: "Sundanese", 7074: "Sundanese", 7078: "Sundanese", 7080: "Sundanese", 7082: "Sundanese", 7083: "Sundanese", 7086: "Sundanese", 7088: "Sundanese", 7098: "Sundanese", 7104: "Batak", 7142: "Batak", 7143: "Batak", 7144: "Batak", 7146: "Batak", 7149: "Batak", 7150: "Batak", 7151: "Batak", 7154: "Batak", 7164: "Batak", 7168: "Lepcha", 7204: "Lepcha", 7212: "Lepcha", 7220: "Lepcha", 7222: "Lepcha", 7227: "Lepcha", 7232: "Lepcha", 7245: "Lepcha", 7248: "Ol_Chiki", 7258: "Ol_Chiki", 7288: "Ol_Chiki", 7294: "Ol_Chiki", 7296: "Cyrillic", 7312: "Georgian", 7357: "Georgian", 7360: "Sundanese", 7376: "Inherited", 7379: "Common", 7380: "Inherited", 7393: "Common", 7394: "Inherited", 7401: "Common", 7405: "Inherited", 7406: "Common", 7412: "Inherited", 7413: "Common", 7415: "Common", 7416: "Inherited", 7418: "Common", 7424: "Latin", 7462: "Greek", 7467: "Cyrillic", 7468: "Latin", 7517: "Greek", 7522: "Latin", 7526: "Greek", 7531: "Latin", 7544: "Cyrillic", 7545: "Latin", 7579: "Latin", 7615: "Greek", 7616: "Inherited", 7675: "Inherited", 7680: "Latin", 7936: "Greek", 7960: "Greek", 7968: "Greek", 8008: "Greek", 8016: "Greek", 8025: "Greek", 8027: "Greek", 8029: "Greek", 8031: "Greek", 8064: "Greek", 8118: "Greek", 8125: "Greek", 8126: "Greek", 8127: "Greek", 8130: "Greek", 8134: "Greek", 8141: "Greek", 8144: "Greek", 8150: "Greek", 8157: "Greek", 8160: "Greek", 8173: "Greek", 8178: "Greek", 8182: "Greek", 8189: "Greek", 8192: "Common", 8203: "Common", 8204: "Inherited", 8206: "Common", 8208: "Common", 8214: "Common", 8216: "Common", 8217: "Common", 8218: "Common", 8219: "Common", 8221: "Common", 8222: "Common", 8223: "Common", 8224: "Common", 8232: "Common", 8233: "Common", 8234: "Common", 8239: "Common", 8240: "Common", 8249: "Common", 8250: "Common", 8251: "Common", 8255: "Common", 8257: "Common", 8260: "Common", 8261: "Common", 8262: "Common", 8263: "Common", 8274: "Common", 8275: "Common", 8276: "Common", 8277: "Common", 8287: "Common", 8288: "Common", 8294: "Common", 8304: "Common", 8305: "Latin", 8308: "Common", 8314: "Common", 8317: "Common", 8318: "Common", 8319: "Latin", 8320: "Common", 8330: "Common", 8333: "Common", 8334: "Common", 8336: "Latin", 8352: "Common", 8400: "Inherited", 8413: "Inherited", 8417: "Inherited", 8418: "Inherited", 8421: "Inherited", 8448: "Common", 8450: "Common", 8451: "Common", 8455: "Common", 8456: "Common", 8458: "Common", 8468: "Common", 8469: "Common", 8470: "Common", 8472: "Common", 8473: "Common", 8478: "Common", 8484: "Common", 8485: "Common", 8486: "Greek", 8487: "Common", 8488: "Common", 8489: "Common", 8490: "Latin", 8492: "Common", 8494: "Common", 8495: "Common", 8498: "Latin", 8499: "Common", 8501: "Common", 8505: "Common", 8506: "Common", 8508: "Common", 8512: "Common", 8517: "Common", 8522: "Common", 8523: "Common", 8524: "Common", 8526: "Latin", 8527: "Common", 8528: "Common", 8544: "Latin", 8579: "Latin", 8581: "Latin", 8585: "Common", 8586: "Common", 8592: "Common", 8597: "Common", 8602: "Common", 8604: "Common", 8608: "Common", 8609: "Common", 8611: "Common", 8612: "Common", 8614: "Common", 8615: "Common", 8622: "Common", 8623: "Common", 8654: "Common", 8656: "Common", 8658: "Common", 8659: "Common", 8660: "Common", 8661: "Common", 8692: "Common", 8960: "Common", 8968: "Common", 8969: "Common", 8970: "Common", 8971: "Common", 8972: "Common", 8992: "Common", 8994: "Common", 9001: "Common", 9002: "Common", 9003: "Common", 9084: "Common", 9085: "Common", 9115: "Common", 9140: "Common", 9180: "Common", 9186: "Common", 9280: "Common", 9312: "Common", 9372: "Common", 9450: "Common", 9472: "Common", 9655: "Common", 9656: "Common", 9665: "Common", 9666: "Common", 9720: "Common", 9728: "Common", 9839: "Common", 9840: "Common", 10088: "Common", 10089: "Common", 10090: "Common", 10091: "Common", 10092: "Common", 10093: "Common", 10094: "Common", 10095: "Common", 10096: "Common", 10097: "Common", 10098: "Common", 10099: "Common", 10100: "Common", 10101: "Common", 10102: "Common", 10132: "Common", 10176: "Common", 10181: "Common", 10182: "Common", 10183: "Common", 10214: "Common", 10215: "Common", 10216: "Common", 10217: "Common", 10218: "Common", 10219: "Common", 10220: "Common", 10221: "Common", 10222: "Common", 10223: "Common", 10224: "Common", 10240: "Braille", 10496: "Common", 10627: "Common", 10628: "Common", 10629: "Common", 10630: "Common", 10631: "Common", 10632: "Common", 10633: "Common", 10634: "Common", 10635: "Common", 10636: "Common", 10637: "Common", 10638: "Common", 10639: "Common", 10640: "Common", 10641: "Common", 10642: "Common", 10643: "Common", 10644: "Common", 10645: "Common", 10646: "Common", 10647: "Common", 10648: "Common", 10649: "Common", 10712: "Common", 10713: "Common", 10714: "Common", 10715: "Common", 10716: "Common", 10748: "Common", 10749: "Common", 10750: "Common", 11008: "Common", 11056: "Common", 11077: "Common", 11079: "Common", 11085: "Common", 11126: "Common", 11159: "Common", 11264: "Glagolitic", 11312: "Glagolitic", 11360: "Latin", 11388: "Latin", 11390: "Latin", 11392: "Coptic", 11493: "Coptic", 11499: "Coptic", 11503: "Coptic", 11506: "Coptic", 11513: "Coptic", 11517: "Coptic", 11518: "Coptic", 11520: "Georgian", 11559: "Georgian", 11565: "Georgian", 11568: "Tifinagh", 11631: "Tifinagh", 11632: "Tifinagh", 11647: "Tifinagh", 11648: "Ethiopic", 11680: "Ethiopic", 11688: "Ethiopic", 11696: "Ethiopic", 11704: "Ethiopic", 11712: "Ethiopic", 11720: "Ethiopic", 11728: "Ethiopic", 11736: "Ethiopic", 11744: "Cyrillic", 11776: "Common", 11778: "Common", 11779: "Common", 11780: "Common", 11781: "Common", 11782: "Common", 11785: "Common", 11786: "Common", 11787: "Common", 11788: "Common", 11789: "Common", 11790: "Common", 11799: "Common", 11800: "Common", 11802: "Common", 11803: "Common", 11804: "Common", 11805: "Common", 11806: "Common", 11808: "Common", 11809: "Common", 11810: "Common", 11811: "Common", 11812: "Common", 11813: "Common", 11814: "Common", 11815: "Common", 11816: "Common", 11817: "Common", 11818: "Common", 11823: "Common", 11824: "Common", 11834: "Common", 11836: "Common", 11840: "Common", 11841: "Common", 11842: "Common", 11843: "Common", 11856: "Common", 11858: "Common", 11904: "Han", 11931: "Han", 12032: "Han", 12272: "Common", 12288: "Common", 12289: "Common", 12292: "Common", 12293: "Han", 12294: "Common", 12295: "Han", 12296: "Common", 12297: "Common", 12298: "Common", 12299: "Common", 12300: "Common", 12301: "Common", 12302: "Common", 12303: "Common", 12304: "Common", 12305: "Common", 12306: "Common", 12308: "Common", 12309: "Common", 12310: "Common", 12311: "Common", 12312: "Common", 12313: "Common", 12314: "Common", 12315: "Common", 12316: "Common", 12317: "Common", 12318: "Common", 12320: "Common", 12321: "Han", 12330: "Inherited", 12334: "Hangul", 12336: "Common", 12337: "Common", 12342: "Common", 12344: "Han", 12347: "Han", 12348: "Common", 12349: "Common", 12350: "Common", 12353: "Hiragana", 12441: "Inherited", 12443: "Common", 12445: "Hiragana", 12447: "Hiragana", 12448: "Common", 12449: "Katakana", 12539: "Common", 12540: "Common", 12541: "Katakana", 12543: "Katakana", 12549: "Bopomofo", 12593: "Hangul", 12688: "Common", 12690: "Common", 12694: "Common", 12704: "Bopomofo", 12736: "Common", 12784: "Katakana", 12800: "Hangul", 12832: "Common", 12842: "Common", 12872: "Common", 12880: "Common", 12881: "Common", 12896: "Hangul", 12927: "Common", 12928: "Common", 12938: "Common", 12977: "Common", 12992: "Common", 13008: "Katakana", 13055: "Common", 13056: "Katakana", 13144: "Common", 13312: "Han", 19904: "Common", 19968: "Han", 40960: "Yi", 40981: "Yi", 40982: "Yi", 42128: "Yi", 42192: "Lisu", 42232: "Lisu", 42238: "Lisu", 42240: "Vai", 42508: "Vai", 42509: "Vai", 42512: "Vai", 42528: "Vai", 42538: "Vai", 42560: "Cyrillic", 42606: "Cyrillic", 42607: "Cyrillic", 42608: "Cyrillic", 42611: "Cyrillic", 42612: "Cyrillic", 42622: "Cyrillic", 42623: "Cyrillic", 42624: "Cyrillic", 42652: "Cyrillic", 42654: "Cyrillic", 42656: "Bamum", 42726: "Bamum", 42736: "Bamum", 42738: "Bamum", 42752: "Common", 42775: "Common", 42784: "Common", 42786: "Latin", 42864: "Latin", 42865: "Latin", 42888: "Common", 42889: "Common", 42891: "Latin", 42895: "Latin", 42896: "Latin", 42946: "Latin", 42997: "Latin", 42999: "Latin", 43000: "Latin", 43002: "Latin", 43003: "Latin", 43008: "Syloti_Nagri", 43010: "Syloti_Nagri", 43011: "Syloti_Nagri", 43014: "Syloti_Nagri", 43015: "Syloti_Nagri", 43019: "Syloti_Nagri", 43020: "Syloti_Nagri", 43043: "Syloti_Nagri", 43045: "Syloti_Nagri", 43047: "Syloti_Nagri", 43048: "Syloti_Nagri", 43052: "Syloti_Nagri", 43056: "Common", 43062: "Common", 43064: "Common", 43065: "Common", 43072: "Phags_Pa", 43124: "Phags_Pa", 43136: "Saurashtra", 43138: "Saurashtra", 43188: "Saurashtra", 43204: "Saurashtra", 43214: "Saurashtra", 43216: "Saurashtra", 43232: "Devanagari", 43250: "Devanagari", 43256: "Devanagari", 43259: "Devanagari", 43260: "Devanagari", 43261: "Devanagari", 43263: "Devanagari", 43264: "Kayah_Li", 43274: "Kayah_Li", 43302: "Kayah_Li", 43310: "Common", 43311: "Kayah_Li", 43312: "Rejang", 43335: "Rejang", 43346: "Rejang", 43359: "Rejang", 43360: "Hangul", 43392: "Javanese", 43395: "Javanese", 43396: "Javanese", 43443: "Javanese", 43444: "Javanese", 43446: "Javanese", 43450: "Javanese", 43452: "Javanese", 43454: "Javanese", 43457: "Javanese", 43471: "Common", 43472: "Javanese", 43486: "Javanese", 43488: "Myanmar", 43493: "Myanmar", 43494: "Myanmar", 43495: "Myanmar", 43504: "Myanmar", 43514: "Myanmar", 43520: "Cham", 43561: "Cham", 43567: "Cham", 43569: "Cham", 43571: "Cham", 43573: "Cham", 43584: "Cham", 43587: "Cham", 43588: "Cham", 43596: "Cham", 43597: "Cham", 43600: "Cham", 43612: "Cham", 43616: "Myanmar", 43632: "Myanmar", 43633: "Myanmar", 43639: "Myanmar", 43642: "Myanmar", 43643: "Myanmar", 43644: "Myanmar", 43645: "Myanmar", 43646: "Myanmar", 43648: "Tai_Viet", 43696: "Tai_Viet", 43697: "Tai_Viet", 43698: "Tai_Viet", 43701: "Tai_Viet", 43703: "Tai_Viet", 43705: "Tai_Viet", 43710: "Tai_Viet", 43712: "Tai_Viet", 43713: "Tai_Viet", 43714: "Tai_Viet", 43739: "Tai_Viet", 43741: "Tai_Viet", 43742: "Tai_Viet", 43744: "Meetei_Mayek", 43755: "Meetei_Mayek", 43756: "Meetei_Mayek", 43758: "Meetei_Mayek", 43760: "Meetei_Mayek", 43762: "Meetei_Mayek", 43763: "Meetei_Mayek", 43765: "Meetei_Mayek", 43766: "Meetei_Mayek", 43777: "Ethiopic", 43785: "Ethiopic", 43793: "Ethiopic", 43808: "Ethiopic", 43816: "Ethiopic", 43824: "Latin", 43867: "Common", 43868: "Latin", 43872: "Latin", 43877: "Greek", 43878: "Latin", 43881: "Latin", 43882: "Common", 43888: "Cherokee", 43968: "Meetei_Mayek", 44003: "Meetei_Mayek", 44005: "Meetei_Mayek", 44006: "Meetei_Mayek", 44008: "Meetei_Mayek", 44009: "Meetei_Mayek", 44011: "Meetei_Mayek", 44012: "Meetei_Mayek", 44013: "Meetei_Mayek", 44016: "Meetei_Mayek", 44032: "Hangul", 55216: "Hangul", 55243: "Hangul", 63744: "Han", 64112: "Han", 64256: "Latin", 64275: "Armenian", 64285: "Hebrew", 64286: "Hebrew", 64287: "Hebrew", 64297: "Hebrew", 64298: "Hebrew", 64312: "Hebrew", 64318: "Hebrew", 64320: "Hebrew", 64323: "Hebrew", 64326: "Hebrew", 64336: "Arabic", 64434: "Arabic", 64467: "Arabic", 64830: "Common", 64831: "Common", 64848: "Arabic", 64914: "Arabic", 65008: "Arabic", 65020: "Arabic", 65021: "Arabic", 65024: "Inherited", 65040: "Common", 65047: "Common", 65048: "Common", 65049: "Common", 65056: "Inherited", 65070: "Cyrillic", 65072: "Common", 65073: "Common", 65075: "Common", 65077: "Common", 65078: "Common", 65079: "Common", 65080: "Common", 65081: "Common", 65082: "Common", 65083: "Common", 65084: "Common", 65085: "Common", 65086: "Common", 65087: "Common", 65088: "Common", 65089: "Common", 65090: "Common", 65091: "Common", 65092: "Common", 65093: "Common", 65095: "Common", 65096: "Common", 65097: "Common", 65101: "Common", 65104: "Common", 65108: "Common", 65112: "Common", 65113: "Common", 65114: "Common", 65115: "Common", 65116: "Common", 65117: "Common", 65118: "Common", 65119: "Common", 65122: "Common", 65123: "Common", 65124: "Common", 65128: "Common", 65129: "Common", 65130: "Common", 65136: "Arabic", 65142: "Arabic", 65279: "Common", 65281: "Common", 65284: "Common", 65285: "Common", 65288: "Common", 65289: "Common", 65290: "Common", 65291: "Common", 65292: "Common", 65293: "Common", 65294: "Common", 65296: "Common", 65306: "Common", 65308: "Common", 65311: "Common", 65313: "Latin", 65339: "Common", 65340: "Common", 65341: "Common", 65342: "Common", 65343: "Common", 65344: "Common", 65345: "Latin", 65371: "Common", 65372: "Common", 65373: "Common", 65374: "Common", 65375: "Common", 65376: "Common", 65377: "Common", 65378: "Common", 65379: "Common", 65380: "Common", 65382: "Katakana", 65392: "Common", 65393: "Katakana", 65438: "Common", 65440: "Hangul", 65474: "Hangul", 65482: "Hangul", 65490: "Hangul", 65498: "Hangul", 65504: "Common", 65506: "Common", 65507: "Common", 65508: "Common", 65509: "Common", 65512: "Common", 65513: "Common", 65517: "Common", 65529: "Common", 65532: "Common", 65536: "Linear_B", 65549: "Linear_B", 65576: "Linear_B", 65596: "Linear_B", 65599: "Linear_B", 65616: "Linear_B", 65664: "Linear_B", 65792: "Common", 65799: "Common", 65847: "Common", 65856: "Greek", 65909: "Greek", 65913: "Greek", 65930: "Greek", 65932: "Greek", 65936: "Common", 65952: "Greek", 66000: "Common", 66045: "Inherited", 66176: "Lycian", 66208: "Carian", 66272: "Inherited", 66273: "Common", 66304: "Old_Italic", 66336: "Old_Italic", 66349: "Old_Italic", 66352: "Gothic", 66369: "Gothic", 66370: "Gothic", 66378: "Gothic", 66384: "Old_Permic", 66422: "Old_Permic", 66432: "Ugaritic", 66463: "Ugaritic", 66464: "Old_Persian", 66504: "Old_Persian", 66512: "Old_Persian", 66513: "Old_Persian", 66560: "Deseret", 66640: "Shavian", 66688: "Osmanya", 66720: "Osmanya", 66736: "Osage", 66776: "Osage", 66816: "Elbasan", 66864: "Caucasian_Albanian", 66927: "Caucasian_Albanian", 67072: "Linear_A", 67392: "Linear_A", 67424: "Linear_A", 67584: "Cypriot", 67592: "Cypriot", 67594: "Cypriot", 67639: "Cypriot", 67644: "Cypriot", 67647: "Cypriot", 67648: "Imperial_Aramaic", 67671: "Imperial_Aramaic", 67672: "Imperial_Aramaic", 67680: "Palmyrene", 67703: "Palmyrene", 67705: "Palmyrene", 67712: "Nabataean", 67751: "Nabataean", 67808: "Hatran", 67828: "Hatran", 67835: "Hatran", 67840: "Phoenician", 67862: "Phoenician", 67871: "Phoenician", 67872: "Lydian", 67903: "Lydian", 67968: "Meroitic_Hieroglyphs", 68000: "Meroitic_Cursive", 68028: "Meroitic_Cursive", 68030: "Meroitic_Cursive", 68032: "Meroitic_Cursive", 68050: "Meroitic_Cursive", 68096: "Kharoshthi", 68097: "Kharoshthi", 68101: "Kharoshthi", 68108: "Kharoshthi", 68112: "Kharoshthi", 68117: "Kharoshthi", 68121: "Kharoshthi", 68152: "Kharoshthi", 68159: "Kharoshthi", 68160: "Kharoshthi", 68176: "Kharoshthi", 68192: "Old_South_Arabian", 68221: "Old_South_Arabian", 68223: "Old_South_Arabian", 68224: "Old_North_Arabian", 68253: "Old_North_Arabian", 68288: "Manichaean", 68296: "Manichaean", 68297: "Manichaean", 68325: "Manichaean", 68331: "Manichaean", 68336: "Manichaean", 68352: "Avestan", 68409: "Avestan", 68416: "Inscriptional_Parthian", 68440: "Inscriptional_Parthian", 68448: "Inscriptional_Pahlavi", 68472: "Inscriptional_Pahlavi", 68480: "Psalter_Pahlavi", 68505: "Psalter_Pahlavi", 68521: "Psalter_Pahlavi", 68608: "Old_Turkic", 68736: "Old_Hungarian", 68800: "Old_Hungarian", 68858: "Old_Hungarian", 68864: "Hanifi_Rohingya", 68900: "Hanifi_Rohingya", 68912: "Hanifi_Rohingya", 69216: "Arabic", 69248: "Yezidi", 69291: "Yezidi", 69293: "Yezidi", 69296: "Yezidi", 69376: "Old_Sogdian", 69405: "Old_Sogdian", 69415: "Old_Sogdian", 69424: "Sogdian", 69446: "Sogdian", 69457: "Sogdian", 69461: "Sogdian", 69552: "Chorasmian", 69573: "Chorasmian", 69600: "Elymaic", 69632: "Brahmi", 69633: "Brahmi", 69634: "Brahmi", 69635: "Brahmi", 69688: "Brahmi", 69703: "Brahmi", 69714: "Brahmi", 69734: "Brahmi", 69759: "Brahmi", 69760: "Kaithi", 69762: "Kaithi", 69763: "Kaithi", 69808: "Kaithi", 69811: "Kaithi", 69815: "Kaithi", 69817: "Kaithi", 69819: "Kaithi", 69821: "Kaithi", 69822: "Kaithi", 69837: "Kaithi", 69840: "Sora_Sompeng", 69872: "Sora_Sompeng", 69888: "Chakma", 69891: "Chakma", 69927: "Chakma", 69932: "Chakma", 69933: "Chakma", 69942: "Chakma", 69952: "Chakma", 69956: "Chakma", 69957: "Chakma", 69959: "Chakma", 69968: "Mahajani", 70003: "Mahajani", 70004: "Mahajani", 70006: "Mahajani", 70016: "Sharada", 70018: "Sharada", 70019: "Sharada", 70067: "Sharada", 70070: "Sharada", 70079: "Sharada", 70081: "Sharada", 70085: "Sharada", 70089: "Sharada", 70093: "Sharada", 70094: "Sharada", 70095: "Sharada", 70096: "Sharada", 70106: "Sharada", 70107: "Sharada", 70108: "Sharada", 70109: "Sharada", 70113: "Sinhala", 70144: "Khojki", 70163: "Khojki", 70188: "Khojki", 70191: "Khojki", 70194: "Khojki", 70196: "Khojki", 70197: "Khojki", 70198: "Khojki", 70200: "Khojki", 70206: "Khojki", 70272: "Multani", 70280: "Multani", 70282: "Multani", 70287: "Multani", 70303: "Multani", 70313: "Multani", 70320: "Khudawadi", 70367: "Khudawadi", 70368: "Khudawadi", 70371: "Khudawadi", 70384: "Khudawadi", 70400: "Grantha", 70402: "Grantha", 70405: "Grantha", 70415: "Grantha", 70419: "Grantha", 70442: "Grantha", 70450: "Grantha", 70453: "Grantha", 70459: "Inherited", 70460: "Grantha", 70461: "Grantha", 70462: "Grantha", 70464: "Grantha", 70465: "Grantha", 70471: "Grantha", 70475: "Grantha", 70480: "Grantha", 70487: "Grantha", 70493: "Grantha", 70498: "Grantha", 70502: "Grantha", 70512: "Grantha", 70656: "Newa", 70709: "Newa", 70712: "Newa", 70720: "Newa", 70722: "Newa", 70725: "Newa", 70726: "Newa", 70727: "Newa", 70731: "Newa", 70736: "Newa", 70746: "Newa", 70749: "Newa", 70750: "Newa", 70751: "Newa", 70784: "Tirhuta", 70832: "Tirhuta", 70835: "Tirhuta", 70841: "Tirhuta", 70842: "Tirhuta", 70843: "Tirhuta", 70847: "Tirhuta", 70849: "Tirhuta", 70850: "Tirhuta", 70852: "Tirhuta", 70854: "Tirhuta", 70855: "Tirhuta", 70864: "Tirhuta", 71040: "Siddham", 71087: "Siddham", 71090: "Siddham", 71096: "Siddham", 71100: "Siddham", 71102: "Siddham", 71103: "Siddham", 71105: "Siddham", 71128: "Siddham", 71132: "Siddham", 71168: "Modi", 71216: "Modi", 71219: "Modi", 71227: "Modi", 71229: "Modi", 71230: "Modi", 71231: "Modi", 71233: "Modi", 71236: "Modi", 71248: "Modi", 71264: "Mongolian", 71296: "Takri", 71339: "Takri", 71340: "Takri", 71341: "Takri", 71342: "Takri", 71344: "Takri", 71350: "Takri", 71351: "Takri", 71352: "Takri", 71360: "Takri", 71424: "Ahom", 71453: "Ahom", 71456: "Ahom", 71458: "Ahom", 71462: "Ahom", 71463: "Ahom", 71472: "Ahom", 71482: "Ahom", 71484: "Ahom", 71487: "Ahom", 71680: "Dogra", 71724: "Dogra", 71727: "Dogra", 71736: "Dogra", 71737: "Dogra", 71739: "Dogra", 71840: "Warang_Citi", 71904: "Warang_Citi", 71914: "Warang_Citi", 71935: "Warang_Citi", 71936: "Dives_Akuru", 71945: "Dives_Akuru", 71948: "Dives_Akuru", 71957: "Dives_Akuru", 71960: "Dives_Akuru", 71984: "Dives_Akuru", 71991: "Dives_Akuru", 71995: "Dives_Akuru", 71997: "Dives_Akuru", 71998: "Dives_Akuru", 71999: "Dives_Akuru", 72000: "Dives_Akuru", 72001: "Dives_Akuru", 72002: "Dives_Akuru", 72003: "Dives_Akuru", 72004: "Dives_Akuru", 72016: "Dives_Akuru", 72096: "Nandinagari", 72106: "Nandinagari", 72145: "Nandinagari", 72148: "Nandinagari", 72154: "Nandinagari", 72156: "Nandinagari", 72160: "Nandinagari", 72161: "Nandinagari", 72162: "Nandinagari", 72163: "Nandinagari", 72164: "Nandinagari", 72192: "Zanabazar_Square", 72193: "Zanabazar_Square", 72203: "Zanabazar_Square", 72243: "Zanabazar_Square", 72249: "Zanabazar_Square", 72250: "Zanabazar_Square", 72251: "Zanabazar_Square", 72255: "Zanabazar_Square", 72263: "Zanabazar_Square", 72272: "Soyombo", 72273: "Soyombo", 72279: "Soyombo", 72281: "Soyombo", 72284: "Soyombo", 72330: "Soyombo", 72343: "Soyombo", 72344: "Soyombo", 72346: "Soyombo", 72349: "Soyombo", 72350: "Soyombo", 72384: "Pau_Cin_Hau", 72704: "Bhaiksuki", 72714: "Bhaiksuki", 72751: "Bhaiksuki", 72752: "Bhaiksuki", 72760: "Bhaiksuki", 72766: "Bhaiksuki", 72767: "Bhaiksuki", 72768: "Bhaiksuki", 72769: "Bhaiksuki", 72784: "Bhaiksuki", 72794: "Bhaiksuki", 72816: "Marchen", 72818: "Marchen", 72850: "Marchen", 72873: "Marchen", 72874: "Marchen", 72881: "Marchen", 72882: "Marchen", 72884: "Marchen", 72885: "Marchen", 72960: "Masaram_Gondi", 72968: "Masaram_Gondi", 72971: "Masaram_Gondi", 73009: "Masaram_Gondi", 73018: "Masaram_Gondi", 73020: "Masaram_Gondi", 73023: "Masaram_Gondi", 73030: "Masaram_Gondi", 73031: "Masaram_Gondi", 73040: "Masaram_Gondi", 73056: "Gunjala_Gondi", 73063: "Gunjala_Gondi", 73066: "Gunjala_Gondi", 73098: "Gunjala_Gondi", 73104: "Gunjala_Gondi", 73107: "Gunjala_Gondi", 73109: "Gunjala_Gondi", 73110: "Gunjala_Gondi", 73111: "Gunjala_Gondi", 73112: "Gunjala_Gondi", 73120: "Gunjala_Gondi", 73440: "Makasar", 73459: "Makasar", 73461: "Makasar", 73463: "Makasar", 73648: "Lisu", 73664: "Tamil", 73685: "Tamil", 73693: "Tamil", 73697: "Tamil", 73727: "Tamil", 73728: "Cuneiform", 74752: "Cuneiform", 74864: "Cuneiform", 74880: "Cuneiform", 77824: "Egyptian_Hieroglyphs", 78896: "Egyptian_Hieroglyphs", 82944: "Anatolian_Hieroglyphs", 92160: "Bamum", 92736: "Mro", 92768: "Mro", 92782: "Mro", 92880: "Bassa_Vah", 92912: "Bassa_Vah", 92917: "Bassa_Vah", 92928: "Pahawh_Hmong", 92976: "Pahawh_Hmong", 92983: "Pahawh_Hmong", 92988: "Pahawh_Hmong", 92992: "Pahawh_Hmong", 92996: "Pahawh_Hmong", 92997: "Pahawh_Hmong", 93008: "Pahawh_Hmong", 93019: "Pahawh_Hmong", 93027: "Pahawh_Hmong", 93053: "Pahawh_Hmong", 93760: "Medefaidrin", 93824: "Medefaidrin", 93847: "Medefaidrin", 93952: "Miao", 94031: "Miao", 94032: "Miao", 94033: "Miao", 94095: "Miao", 94099: "Miao", 94176: "Tangut", 94177: "Nushu", 94178: "Common", 94179: "Common", 94180: "Khitan_Small_Script", 94192: "Han", 94208: "Tangut", 100352: "Tangut", 101120: "Khitan_Small_Script", 101632: "Tangut", 110592: "Katakana", 110593: "Hiragana", 110928: "Hiragana", 110948: "Katakana", 110960: "Nushu", 113664: "Duployan", 113776: "Duployan", 113792: "Duployan", 113808: "Duployan", 113820: "Duployan", 113821: "Duployan", 113823: "Duployan", 113824: "Common", 118784: "Common", 119040: "Common", 119081: "Common", 119141: "Common", 119143: "Inherited", 119146: "Common", 119149: "Common", 119155: "Common", 119163: "Inherited", 119171: "Common", 119173: "Inherited", 119180: "Common", 119210: "Inherited", 119214: "Common", 119296: "Greek", 119362: "Greek", 119365: "Greek", 119520: "Common", 119552: "Common", 119648: "Common", 119808: "Common", 119894: "Common", 119966: "Common", 119970: "Common", 119973: "Common", 119977: "Common", 119982: "Common", 119995: "Common", 119997: "Common", 120005: "Common", 120071: "Common", 120077: "Common", 120086: "Common", 120094: "Common", 120123: "Common", 120128: "Common", 120134: "Common", 120138: "Common", 120146: "Common", 120488: "Common", 120513: "Common", 120514: "Common", 120539: "Common", 120540: "Common", 120571: "Common", 120572: "Common", 120597: "Common", 120598: "Common", 120629: "Common", 120630: "Common", 120655: "Common", 120656: "Common", 120687: "Common", 120688: "Common", 120713: "Common", 120714: "Common", 120745: "Common", 120746: "Common", 120771: "Common", 120772: "Common", 120782: "Common", 120832: "SignWriting", 121344: "SignWriting", 121399: "SignWriting", 121403: "SignWriting", 121453: "SignWriting", 121461: "SignWriting", 121462: "SignWriting", 121476: "SignWriting", 121477: "SignWriting", 121479: "SignWriting", 121499: "SignWriting", 121505: "SignWriting", 122880: "Glagolitic", 122888: "Glagolitic", 122907: "Glagolitic", 122915: "Glagolitic", 122918: "Glagolitic", 123136: "Nyiakeng_Puachue_Hmong", 123184: "Nyiakeng_Puachue_Hmong", 123191: "Nyiakeng_Puachue_Hmong", 123200: "Nyiakeng_Puachue_Hmong", 123214: "Nyiakeng_Puachue_Hmong", 123215: "Nyiakeng_Puachue_Hmong", 123584: "Wancho", 123628: "Wancho", 123632: "Wancho", 123647: "Wancho", 124928: "Mende_Kikakui", 125127: "Mende_Kikakui", 125136: "Mende_Kikakui", 125184: "Adlam", 125252: "Adlam", 125259: "Adlam", 125264: "Adlam", 125278: "Adlam", 126065: "Common", 126124: "Common", 126125: "Common", 126128: "Common", 126129: "Common", 126209: "Common", 126254: "Common", 126255: "Common", 126464: "Arabic", 126469: "Arabic", 126497: "Arabic", 126500: "Arabic", 126503: "Arabic", 126505: "Arabic", 126516: "Arabic", 126521: "Arabic", 126523: "Arabic", 126530: "Arabic", 126535: "Arabic", 126537: "Arabic", 126539: "Arabic", 126541: "Arabic", 126545: "Arabic", 126548: "Arabic", 126551: "Arabic", 126553: "Arabic", 126555: "Arabic", 126557: "Arabic", 126559: "Arabic", 126561: "Arabic", 126564: "Arabic", 126567: "Arabic", 126572: "Arabic", 126580: "Arabic", 126585: "Arabic", 126590: "Arabic", 126592: "Arabic", 126603: "Arabic", 126625: "Arabic", 126629: "Arabic", 126635: "Arabic", 126704: "Arabic", 126976: "Common", 127024: "Common", 127136: "Common", 127153: "Common", 127169: "Common", 127185: "Common", 127232: "Common", 127245: "Common", 127462: "Common", 127488: "Hiragana", 127489: "Common", 127504: "Common", 127552: "Common", 127568: "Common", 127584: "Common", 127744: "Common", 127995: "Common", 128000: "Common", 128736: "Common", 128752: "Common", 128768: "Common", 128896: "Common", 128992: "Common", 129024: "Common", 129040: "Common", 129104: "Common", 129120: "Common", 129168: "Common", 129200: "Common", 129280: "Common", 129402: "Common", 129485: "Common", 129632: "Common", 129648: "Common", 129656: "Common", 129664: "Common", 129680: "Common", 129712: "Common", 129728: "Common", 129744: "Common", 129792: "Common", 129940: "Common", 130032: "Common", 131072: "Han", 173824: "Han", 177984: "Han", 178208: "Han", 183984: "Han", 194560: "Han", 196608: "Han", 917505: "Common", 917536: "Common", 917760: "Inherited", }
def on_on_chat(): builder.move(LEFT, 5) builder.mark() for index in range(4): builder.move(FORWARD, 10) builder.turn(LEFT_TURN) builder.trace_path(SPRUCE_FENCE) player.on_chat("fenceBoundary", on_on_chat)
class Node: def __init__(self, key): self.data = key self.left = None self.right = None def printLevelOrder(root): h = height(root) for i in range(1, h + 1): printCurrentLevel(root, i) def printCurrentLevel(root, level): if(root == None): return if(level == 1): print(root.data, end=" ") elif(level > 1): printCurrentLevel(root.left, level-1) printCurrentLevel(root.right, level-1) def height(node): if(node == None): return 0 else: leftHeight = height(node.left) rightHeight = height(node.right) if(leftHeight > rightHeight): return leftHeight + 1 else: return rightHeight + 1 root = Node(1) root.left = Node(2) root.right = Node(3) root.left.left = Node(4) root.left.right = Node(5) print("Level order traversal of binary tree is:") printLevelOrder(root)
def computeCI(principal, roi, time): ci = (principal*pow((1+(roi/100)), time))-principal return round(ci, 2)
def prime(n): k=0 if n==1: return False for i in range(2,n): if n%i==0: k=1 if k==0: return True else: return False r=1000 y=0 c=0 d=0 for a in range(-r,r): for b in range(r): if prime(b) and (b<y or b<-1600-40*a): t,n=1,1 while prime((n**2)+(a*n)+b) and ((n**2)+(a*n)+b)>0: print(t,n,a,b,(n**2)+(a*n)+b) t+=1 n+=1 if t>y: y=t c=a d=b print(y,c,d,"-",c*d)
def my_decorator(func): def wrap_func(*args, **kwargs): print('*'*10) #Before func(*args, **kwargs) # not function yet print('*'*10) #After return wrap_func # find_all('div', attrs = {'class':'dfddfddf'}) # OOP @my_decorator def hello(name, emoji = ':)'): print(f'hello {name}', emoji) # @my_decorator # def bye(): # print('bye') hello(name = 'niz') # bye() # from time import time # def performance(fn): # def wrapper(*args, **kwargs): # t1 = time() # result = fn(*args, **kwargs) # t2 = time() # print(f'took {t2-t1} ms') # return result # return wrapper # @performance # def long_time(): # for i in range(100000): # i*5 # long_time()
PDF_EXT = ".pdf" HD5_EXT = ".hd5" XML_EXT = ".xml" MUSE_ECG_XML_MRN_COLUMN = "PatientID" ECG_PREFIX = "ecg" ECG_DATE_FORMAT = "%m-%d-%Y" ECG_TIME_FORMAT = "%H:%M:%S" ECG_DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%S"
# -*- coding: utf-8 -*- """ gagepy.webservices ~~~~~~~~~~~~~~~~~~ Classes that handle retrieving data files from the web. .. note:: Please see the USGS information on webservices - http://nwis.waterdata.usgs.gov/nwis/?automated_retrieval_info :authors: 2016 by Jeremiah Lant, see AUTHORS :license: United States Geological Survey (USGS), see LICENSE file """ class Webservice(object): """Parent class that handles retrieving data files from the web.""" def __init__(self): pass
# The tile index was made by navigating to ftp://ftp.kymartian.ky.gov/kyaped/LAZ # and then (in firefox) right click -> view page source. This produces a text # file with all lots of information, but primarily there is a column with all # the tile names. This can be used to setup a parallel download which can # drastically speed up aquisition time. # There is, however, tons of garbage data that can be removed, making this # more efficient to store. This is a short script that pares this file down. index_file_name = "list.txt" new_name = "list_new.txt" files = [] with open(index_file_name, "r") as f: lines = f.readlines() for l in lines: s = l.split(" ") if s[1][-4:-1] == "laz": filename = s[1].split("\"")[1] files.append(filename) with open(new_name, "w") as f: for laz_filename in files: f.write(laz_filename) f.write("\n")
total = 0 produto = 0 cont = 0 sem = 0 resp = ' ' barato ='' while resp not in 'N': nome = str(input('Digite o nome: ')) preço = float(input('Digite o valor: ')) cont += 1 total += preço if preço >= 1000: produto += 1 if cont == 1 or preço < sem: menor = preço barato =nome resp = str(input('Deseja continuar [S/N]: ')).upper()[0] print('Encerrando') print(f'O total que foi gasto é R$: {total:.2f}') print(f'{produto} produtos custam mais que 1000') print(f'n {barato} x {menor:.2f}')
class ansi_breakpoint: def __init__(self, sync_obj, label): self.sync_obj = sync_obj self.label = label def stop(self): self.sync_obj.continue_runner_with_stop(self.label)
class Node: def __init__(self): self.data = None self.next = None def setData(self,data): self.data = data def getData(self): return self.data def setNext(self,next): self.next = next def getNext(self): return self.next class LinkedList: def __init__(self): self.length = 0 self.head = None def insertAtBeginning(self,node): node.next = self.head self.head = node self.length += 1 def insertAtEnd(self,node): currentnode = self.head while currentnode.next != None: currentnode = currentnode.next currentnode.next = node self.length += 1 def insertAtPos(self,node,pos): count = 0 currentnode = self.head previousnode = self.head if pos > self.length or pos < 0: print("position does not exists..") else: while currentnode.next != None or count < pos: count += 1 if pos == count: previousnode.next = node node.next = currentnode self.length += 1 return else: previousnode = currentnode currentnode = currentnode.next def print_list(self): nodeList = [] currentnode = self.head while currentnode != None: nodeList.append(currentnode.data) currentnode = currentnode.next print(nodeList) def insertAfterValue(self,data,node): if self.length == 0: print("List is Empty..") else: currentnode = self.head while currentnode.next != None or currentnode.data == data: if currentnode.data == data: node.next = currentnode.next currentnode.next = node self.length += 1 return else: currentnode = currentnode.next print("The data provided in not present") def deleteAtBeginning(self): if self.length == 0: print("List is Empty..") else: self.head = self.head.next self.length -= 1 return def deleteAtEnd(self): if self.length == 0: print("List is Empty..") else: currentnode = self.head previousnode = self.head while currentnode.next != None: previousnode = currentnode currentnode = currentnode.next previousnode.next = None def deleteAtPos(self,pos): count = 0 currentnode = self.head previousnode = self.head if pos < self.length or pos < 0: print("Position does not exists..") else: while currentnode.next != None or count < pos: count += 1 if pos == count: previousnode.next = currentnode.next self.length -= 1 return else: previousnode = currentnode currentnode = currentnode.next def deleteValue(self,data): currentnode = self.head previousnode = self.head while currentnode.next != None or currentnode.data == data: if currentnode.data == data: previousnode.next = currentnode.next self.length -= 1 return else: previousnode = currentnode currentnode = currentnode.next print("Data with value {} not found".format(data)) node1 = Node() node1.setData(1) node2 = Node() node2.setData(2) node3 = Node() node3.setData(3) node4 = Node() node4.setData(4) node5 = Node() node5.setData(5) node6 = Node() node6.setData(6) l1 = LinkedList() l1.insertAtBeginning(node1) l1.print_list() l1.insertAtEnd(node2) l1.print_list() l1.insertAtPos(node3,2) l1.print_list() l1.insertAtEnd(node6) l1.print_list() l1.insertAfterValue(6,node5) l1.print_list()
year_input = int(input()) def is_leap_year(year): if year % 4 == 0: return True else: return False if is_leap_year(year_input): print('%.f is a leap year' % year_input) else: print('%.f is not a leap year' % year_input)
class Restaurant: def __init__(self, name, cuisine_type): self.name = name self.cuisine_type = cuisine_type self.number_served = 0 def describe_restaurant(self): print('The name of the Restaurant is {} and it makes {}'.format(self.name, self.cuisine_type)) def open_restaurant(self): print('The Restaurant is open') def customer_numbers(self): print('This restaurant has {} customers right now'.format(self.number_served)) def set_number_served(self, served): self.number_served = served def increment_number_served(self, customers): self. number_served += customers restaurant = Restaurant('Chinese food', 'Hot Noodles') print(restaurant.name) print(restaurant.cuisine_type) restaurant.describe_restaurant() restaurant.open_restaurant() restaurant.customer_numbers() restaurant.set_number_served(15) restaurant.customer_numbers() restaurant.increment_number_served(5) restaurant.customer_numbers()
__all__ = [ 'confirm_delivery_reports_as_received_request_1', 'confirm_delivery_reports_as_received_request', 'check_delivery_reports_response', 'confirm_replies_as_received_request_1', 'confirm_replies_as_received_request', 'vendor_account_id', 'check_replies_response', 'cancel_scheduled_message_request', 'send_messages_request', 'reply', 'delivery_report', 'get_message_status_response', 'message', 'send_messages_response', 'source_number_type_enum', 'status_2_enum', 'status_enum', 'format_1_enum', 'format_enum', ]
#!/usr/bin/env python3 """ l0m1s lukes1582@gmail.com algoritmo selection sort sviluppato per Python """ arr = [5,4,3,1,2,11,9,8,0] print("Array in origine ") print(arr) print ("Lunghezza dell'array "+ str(len(arr))) print(50*"x") for i in range(len(arr)): min_idx = i for j in range(i+1, len(arr)): if arr[min_idx] > arr[j]: min_idx = j print(arr) arr[i], arr[min_idx] = arr[min_idx], arr[i]
class ServiceError(Exception): def __init__(self, service, message=""): self.service = service self.message = message def __str__(self): return f"ServiceError has been raised in {self.service}\n{self.message}" class ValidationError(Exception): def __init__(self, message=""): self.message = message def __str__(self): return f"ValidationError has been raised, {self.message}" class InvalidCepLength(Exception): def __init__(self, message=""): self.message = message def __str__(self): return f"InvalidCepLength has been raised, {self.message}"
# Copyright (c) 2010 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, 'javascript_engine': 0 }, 'targets': [ { 'target_name': 'net_base', 'type': '<(library)', 'dependencies': [ '../base/base.gyp:base', '../base/base.gyp:base_i18n', '../build/temp_gyp/googleurl.gyp:googleurl', '../sdch/sdch.gyp:sdch', '../third_party/icu/icu.gyp:icui18n', '../third_party/icu/icu.gyp:icuuc', '../third_party/zlib/zlib.gyp:zlib', 'net_resources', 'ssl_false_start_blacklist_process#host', ], 'sources': [ 'base/address_family.h', 'base/address_list.cc', 'base/address_list.h', 'base/address_list_net_log_param.cc', 'base/address_list_net_log_param.h', 'base/auth.cc', 'base/auth.h', 'base/bandwidth_metrics.cc', 'base/bandwidth_metrics.h', 'base/cache_type.h', 'base/capturing_net_log.cc', 'base/capturing_net_log.h', 'base/cert_database.cc', 'base/cert_database.h', 'base/cert_database_mac.cc', 'base/cert_database_nss.cc', 'base/cert_database_openssl.cc', 'base/cert_database_win.cc', 'base/cert_status_flags.cc', 'base/cert_status_flags.h', 'base/cert_verifier.cc', 'base/cert_verifier.h', 'base/cert_verify_result.h', 'base/completion_callback.h', 'base/connection_type_histograms.cc', 'base/connection_type_histograms.h', 'base/cookie_monster.cc', 'base/cookie_monster.h', 'base/cookie_options.h', 'base/cookie_policy.h', 'base/cookie_store.cc', 'base/cookie_store.h', 'base/data_url.cc', 'base/data_url.h', 'base/directory_lister.cc', 'base/directory_lister.h', 'base/dns_reload_timer.cc', 'base/dns_reload_timer.h', 'base/dnssec_chain_verifier.cc', 'base/dnssec_chain_verifier.h', 'base/dnssec_keyset.cc', 'base/dnssec_keyset.h', 'base/dnssec_proto.h', 'base/dns_util.cc', 'base/dns_util.h', 'base/dnsrr_resolver.cc', 'base/dnsrr_resolver.h', 'base/escape.cc', 'base/escape.h', 'base/ev_root_ca_metadata.cc', 'base/ev_root_ca_metadata.h', 'base/file_stream.h', 'base/file_stream_posix.cc', 'base/file_stream_win.cc', 'base/filter.cc', 'base/filter.h', 'base/gzip_filter.cc', 'base/gzip_filter.h', 'base/gzip_header.cc', 'base/gzip_header.h', 'base/host_cache.cc', 'base/host_cache.h', 'base/host_mapping_rules.cc', 'base/host_mapping_rules.h', 'base/host_port_pair.cc', 'base/host_port_pair.h', 'base/host_resolver.cc', 'base/host_resolver.h', 'base/host_resolver_impl.cc', 'base/host_resolver_impl.h', 'base/host_resolver_proc.cc', 'base/host_resolver_proc.h', 'base/io_buffer.cc', 'base/io_buffer.h', 'base/keygen_handler.h', 'base/keygen_handler_mac.cc', 'base/keygen_handler_nss.cc', 'base/keygen_handler_openssl.cc', 'base/keygen_handler_win.cc', 'base/listen_socket.cc', 'base/listen_socket.h', 'base/load_flags.h', 'base/load_flags_list.h', 'base/load_states.h', 'base/mapped_host_resolver.cc', 'base/mapped_host_resolver.h', 'base/mime_sniffer.cc', 'base/mime_sniffer.h', 'base/mime_util.cc', 'base/mime_util.h', # TODO(eroman): move this into its own test-support target. 'base/mock_host_resolver.cc', 'base/mock_host_resolver.h', 'base/net_error_list.h', 'base/net_errors.cc', 'base/net_errors.h', 'base/net_log.cc', 'base/net_log.h', 'base/net_log_event_type_list.h', 'base/net_log_source_type_list.h', 'base/net_module.cc', 'base/net_module.h', 'base/net_util.cc', 'base/net_util.h', 'base/net_util_posix.cc', 'base/net_util_win.cc', 'base/network_change_notifier.cc', 'base/network_change_notifier.h', 'base/network_change_notifier_linux.cc', 'base/network_change_notifier_linux.h', 'base/network_change_notifier_mac.cc', 'base/network_change_notifier_mac.h', 'base/network_change_notifier_netlink_linux.cc', 'base/network_change_notifier_netlink_linux.h', 'base/network_change_notifier_win.cc', 'base/network_change_notifier_win.h', 'base/network_config_watcher_mac.cc', 'base/network_config_watcher_mac.h', 'base/nss_memio.c', 'base/nss_memio.h', 'base/openssl_memory_private_key_store.cc', 'base/openssl_private_key_store.h', 'base/pem_tokenizer.cc', 'base/pem_tokenizer.h', 'base/platform_mime_util.h', # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types? 'base/platform_mime_util_linux.cc', 'base/platform_mime_util_mac.cc', 'base/platform_mime_util_win.cc', 'base/registry_controlled_domain.cc', 'base/registry_controlled_domain.h', 'base/scoped_cert_chain_context.h', 'base/sdch_filter.cc', 'base/sdch_filter.h', 'base/sdch_manager.cc', 'base/sdch_manager.h', 'base/ssl_cert_request_info.cc', 'base/ssl_cert_request_info.h', 'base/ssl_cipher_suite_names.cc', 'base/ssl_cipher_suite_names.h', 'base/ssl_client_auth_cache.cc', 'base/ssl_client_auth_cache.h', 'base/ssl_config_service.cc', 'base/ssl_config_service.h', 'base/ssl_config_service_defaults.cc', 'base/ssl_config_service_defaults.h', 'base/ssl_config_service_mac.cc', 'base/ssl_config_service_mac.h', 'base/ssl_config_service_win.cc', 'base/ssl_config_service_win.h', 'base/ssl_false_start_blacklist.cc', 'base/ssl_info.cc', 'base/ssl_info.h', 'base/static_cookie_policy.cc', 'base/static_cookie_policy.h', 'base/test_root_certs.cc', 'base/test_root_certs.h', 'base/test_root_certs_mac.cc', 'base/test_root_certs_nss.cc', 'base/test_root_certs_openssl.cc', 'base/test_root_certs_win.cc', 'base/transport_security_state.cc', 'base/transport_security_state.h', 'base/sys_addrinfo.h', 'base/test_completion_callback.h', 'base/upload_data.cc', 'base/upload_data.h', 'base/upload_data_stream.cc', 'base/upload_data_stream.h', 'base/winsock_init.cc', 'base/winsock_init.h', 'base/x509_certificate.cc', 'base/x509_certificate.h', 'base/x509_certificate_mac.cc', 'base/x509_certificate_nss.cc', 'base/x509_certificate_openssl.cc', 'base/x509_certificate_win.cc', 'base/x509_cert_types.cc', 'base/x509_cert_types.h', 'base/x509_cert_types_mac.cc', 'base/x509_openssl_util.cc', 'base/x509_openssl_util.h', 'third_party/mozilla_security_manager/nsKeygenHandler.cpp', 'third_party/mozilla_security_manager/nsKeygenHandler.h', 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp', 'third_party/mozilla_security_manager/nsNSSCertificateDB.h', 'third_party/mozilla_security_manager/nsNSSCertTrust.cpp', 'third_party/mozilla_security_manager/nsNSSCertTrust.h', 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp', 'third_party/mozilla_security_manager/nsPKCS12Blob.h', ], 'export_dependent_settings': [ '../base/base.gyp:base', ], 'actions': [ { 'action_name': 'ssl_false_start_blacklist', 'inputs': [ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)ssl_false_start_blacklist_process<(EXECUTABLE_SUFFIX)', 'base/ssl_false_start_blacklist.txt', ], 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/net/base/ssl_false_start_blacklist_data.cc', ], 'action': ['<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)ssl_false_start_blacklist_process<(EXECUTABLE_SUFFIX)', 'base/ssl_false_start_blacklist.txt', '<(SHARED_INTERMEDIATE_DIR)/net/base/ssl_false_start_blacklist_data.cc', ], 'message': 'Generating SSL False Start blacklist', 'process_outputs_as_sources': 1, }, ], 'conditions': [ [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { 'dependencies': [ '../build/linux/system.gyp:gconf', '../build/linux/system.gyp:gdk', '../build/linux/system.gyp:libresolv', ], 'conditions': [ ['use_openssl==1', { 'dependencies': [ '../third_party/openssl/openssl.gyp:openssl', ], }, { # else: not using openssl. Use NSS. 'dependencies': [ '../build/linux/system.gyp:nss', ], }], ], }, { # else: OS is not in the above list 'sources!': [ 'base/cert_database_nss.cc', 'base/keygen_handler_nss.cc', 'base/test_root_certs_nss.cc', 'base/x509_certificate_nss.cc', 'third_party/mozilla_security_manager/nsKeygenHandler.cpp', 'third_party/mozilla_security_manager/nsKeygenHandler.h', 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp', 'third_party/mozilla_security_manager/nsNSSCertificateDB.h', 'third_party/mozilla_security_manager/nsNSSCertTrust.cpp', 'third_party/mozilla_security_manager/nsNSSCertTrust.h', 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp', 'third_party/mozilla_security_manager/nsPKCS12Blob.h', ], }, ], [ 'use_openssl==1', { 'sources!': [ 'base/cert_database_nss.cc', 'base/dnssec_keyset.cc', 'base/dnssec_keyset.h', 'base/keygen_handler_nss.cc', 'base/nss_memio.c', 'base/nss_memio.h', 'base/test_root_certs_nss.cc', 'base/x509_certificate_nss.cc', 'third_party/mozilla_security_manager/nsKeygenHandler.cpp', 'third_party/mozilla_security_manager/nsKeygenHandler.h', 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp', 'third_party/mozilla_security_manager/nsNSSCertificateDB.h', 'third_party/mozilla_security_manager/nsNSSCertTrust.cpp', 'third_party/mozilla_security_manager/nsNSSCertTrust.h', 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp', 'third_party/mozilla_security_manager/nsPKCS12Blob.h', ], }, { # else: not using openssl. 'sources!': [ 'base/cert_database_openssl.cc', 'base/keygen_handler_openssl.cc', 'base/openssl_memory_private_key_store.cc', 'base/openssl_private_key_store.h', 'base/test_root_certs_openssl.cc', 'base/x509_certificate_openssl.cc', 'base/x509_openssl_util.cc', 'base/x509_openssl_util.h', ], }, ], [ 'OS == "win"', { 'dependencies': [ '../third_party/nss/nss.gyp:nss', 'tld_cleanup', ], }, { # else: OS != "win" 'dependencies': [ '../third_party/libevent/libevent.gyp:libevent', ], 'sources!': [ 'base/winsock_init.cc', ], }, ], [ 'OS == "mac"', { 'dependencies': [ '../third_party/nss/nss.gyp:nss', ], 'link_settings': { 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/Security.framework', '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework', '$(SDKROOT)/usr/lib/libresolv.dylib', ] }, }, ], ], }, { 'target_name': 'net', 'type': '<(library)', 'dependencies': [ '../base/base.gyp:base', '../base/base.gyp:base_i18n', '../build/temp_gyp/googleurl.gyp:googleurl', '../sdch/sdch.gyp:sdch', '../third_party/icu/icu.gyp:icui18n', '../third_party/icu/icu.gyp:icuuc', '../third_party/zlib/zlib.gyp:zlib', 'net_base', 'net_resources', ], 'sources': [ 'disk_cache/addr.cc', 'disk_cache/addr.h', 'disk_cache/backend_impl.cc', 'disk_cache/backend_impl.h', 'disk_cache/bitmap.cc', 'disk_cache/bitmap.h', 'disk_cache/block_files.cc', 'disk_cache/block_files.h', 'disk_cache/cache_util.h', 'disk_cache/cache_util_posix.cc', 'disk_cache/cache_util_win.cc', 'disk_cache/disk_cache.h', 'disk_cache/disk_format.cc', 'disk_cache/disk_format.h', 'disk_cache/entry_impl.cc', 'disk_cache/entry_impl.h', 'disk_cache/errors.h', 'disk_cache/eviction.cc', 'disk_cache/eviction.h', 'disk_cache/experiments.h', 'disk_cache/file.cc', 'disk_cache/file.h', 'disk_cache/file_block.h', 'disk_cache/file_lock.cc', 'disk_cache/file_lock.h', 'disk_cache/file_posix.cc', 'disk_cache/file_win.cc', 'disk_cache/hash.cc', 'disk_cache/hash.h', 'disk_cache/histogram_macros.h', 'disk_cache/in_flight_backend_io.cc', 'disk_cache/in_flight_backend_io.h', 'disk_cache/in_flight_io.cc', 'disk_cache/in_flight_io.h', 'disk_cache/mapped_file.h', 'disk_cache/mapped_file_posix.cc', 'disk_cache/mapped_file_win.cc', 'disk_cache/mem_backend_impl.cc', 'disk_cache/mem_backend_impl.h', 'disk_cache/mem_entry_impl.cc', 'disk_cache/mem_entry_impl.h', 'disk_cache/mem_rankings.cc', 'disk_cache/mem_rankings.h', 'disk_cache/rankings.cc', 'disk_cache/rankings.h', 'disk_cache/sparse_control.cc', 'disk_cache/sparse_control.h', 'disk_cache/stats.cc', 'disk_cache/stats.h', 'disk_cache/stats_histogram.cc', 'disk_cache/stats_histogram.h', 'disk_cache/storage_block-inl.h', 'disk_cache/storage_block.h', 'disk_cache/trace.cc', 'disk_cache/trace.h', 'ftp/ftp_auth_cache.cc', 'ftp/ftp_auth_cache.h', 'ftp/ftp_ctrl_response_buffer.cc', 'ftp/ftp_ctrl_response_buffer.h', 'ftp/ftp_directory_listing_buffer.cc', 'ftp/ftp_directory_listing_buffer.h', 'ftp/ftp_directory_listing_parser.cc', 'ftp/ftp_directory_listing_parser.h', 'ftp/ftp_directory_listing_parser_ls.cc', 'ftp/ftp_directory_listing_parser_ls.h', 'ftp/ftp_directory_listing_parser_netware.cc', 'ftp/ftp_directory_listing_parser_netware.h', 'ftp/ftp_directory_listing_parser_vms.cc', 'ftp/ftp_directory_listing_parser_vms.h', 'ftp/ftp_directory_listing_parser_windows.cc', 'ftp/ftp_directory_listing_parser_windows.h', 'ftp/ftp_network_layer.cc', 'ftp/ftp_network_layer.h', 'ftp/ftp_network_session.cc', 'ftp/ftp_network_session.h', 'ftp/ftp_network_transaction.cc', 'ftp/ftp_network_transaction.h', 'ftp/ftp_request_info.h', 'ftp/ftp_response_info.h', 'ftp/ftp_server_type_histograms.cc', 'ftp/ftp_server_type_histograms.h', 'ftp/ftp_transaction.h', 'ftp/ftp_transaction_factory.h', 'ftp/ftp_util.cc', 'ftp/ftp_util.h', 'http/des.cc', 'http/des.h', 'http/disk_cache_based_ssl_host_info.cc', 'http/disk_cache_based_ssl_host_info.h', 'http/http_alternate_protocols.cc', 'http/http_alternate_protocols.h', 'http/http_atom_list.h', 'http/http_auth.cc', 'http/http_auth.h', 'http/http_auth_cache.cc', 'http/http_auth_cache.h', 'http/http_auth_controller.cc', 'http/http_auth_controller.h', 'http/http_auth_filter.cc', 'http/http_auth_filter.h', 'http/http_auth_filter_win.h', 'http/http_auth_gssapi_posix.cc', 'http/http_auth_gssapi_posix.h', 'http/http_auth_handler.cc', 'http/http_auth_handler.h', 'http/http_auth_handler_basic.cc', 'http/http_auth_handler_basic.h', 'http/http_auth_handler_digest.cc', 'http/http_auth_handler_digest.h', 'http/http_auth_handler_factory.cc', 'http/http_auth_handler_factory.h', 'http/http_auth_handler_negotiate.h', 'http/http_auth_handler_negotiate.cc', 'http/http_auth_handler_ntlm.cc', 'http/http_auth_handler_ntlm.h', 'http/http_auth_handler_ntlm_portable.cc', 'http/http_auth_handler_ntlm_win.cc', 'http/http_auth_sspi_win.cc', 'http/http_auth_sspi_win.h', 'http/http_basic_stream.cc', 'http/http_basic_stream.h', 'http/http_byte_range.cc', 'http/http_byte_range.h', 'http/http_cache.cc', 'http/http_cache.h', 'http/http_cache_transaction.cc', 'http/http_cache_transaction.h', 'http/http_chunked_decoder.cc', 'http/http_chunked_decoder.h', 'http/http_net_log_params.cc', 'http/http_net_log_params.h', 'http/http_network_delegate.h', 'http/http_network_layer.cc', 'http/http_network_layer.h', 'http/http_network_session.cc', 'http/http_network_session.h', 'http/http_network_session_peer.h', 'http/http_network_transaction.cc', 'http/http_network_transaction.h', 'http/http_request_headers.cc', 'http/http_request_headers.h', 'http/http_request_info.cc', 'http/http_request_info.h', 'http/http_response_body_drainer.cc', 'http/http_response_body_drainer.h', 'http/http_response_headers.cc', 'http/http_response_headers.h', 'http/http_response_info.cc', 'http/http_response_info.h', 'http/http_stream.h', 'http/http_stream_factory.cc', 'http/http_stream_factory.h', 'http/http_stream_parser.cc', 'http/http_stream_parser.h', 'http/http_stream_request.cc', 'http/http_stream_request.h', 'http/http_transaction.h', 'http/http_transaction_factory.h', 'http/url_security_manager.h', 'http/url_security_manager.cc', 'http/url_security_manager_posix.cc', 'http/url_security_manager_win.cc', 'http/http_proxy_client_socket.cc', 'http/http_proxy_client_socket.h', 'http/http_proxy_client_socket_pool.cc', 'http/http_proxy_client_socket_pool.h', 'http/http_proxy_utils.cc', 'http/http_proxy_utils.h', 'http/http_util.cc', 'http/http_util_icu.cc', 'http/http_util.h', 'http/http_vary_data.cc', 'http/http_vary_data.h', 'http/http_version.h', 'http/md4.cc', 'http/md4.h', 'http/partial_data.cc', 'http/partial_data.h', 'http/proxy_client_socket.h', 'http/stream_factory.h', 'ocsp/nss_ocsp.cc', 'ocsp/nss_ocsp.h', 'proxy/init_proxy_resolver.cc', 'proxy/init_proxy_resolver.h', 'proxy/multi_threaded_proxy_resolver.cc', 'proxy/multi_threaded_proxy_resolver.h', 'proxy/polling_proxy_config_service.cc', 'proxy/polling_proxy_config_service.h', 'proxy/proxy_bypass_rules.cc', 'proxy/proxy_bypass_rules.h', 'proxy/proxy_config.cc', 'proxy/proxy_config.h', 'proxy/proxy_config_service.h', 'proxy/proxy_config_service_fixed.cc', 'proxy/proxy_config_service_fixed.h', 'proxy/proxy_config_service_linux.cc', 'proxy/proxy_config_service_linux.h', 'proxy/proxy_config_service_mac.cc', 'proxy/proxy_config_service_mac.h', 'proxy/proxy_config_service_win.cc', 'proxy/proxy_config_service_win.h', 'proxy/proxy_info.cc', 'proxy/proxy_info.h', 'proxy/proxy_list.cc', 'proxy/proxy_list.h', 'proxy/proxy_resolver.h', 'proxy/proxy_resolver_js_bindings.cc', 'proxy/proxy_resolver_js_bindings.h', 'proxy/proxy_resolver_mac.cc', 'proxy/proxy_resolver_mac.h', 'proxy/proxy_resolver_request_context.h', 'proxy/proxy_resolver_script.h', 'proxy/proxy_resolver_script_data.cc', 'proxy/proxy_resolver_script_data.h', # 'proxy/proxy_resolver_v8.cc', 'proxy/proxy_resolver_v8.h', 'proxy/proxy_resolver_winhttp.cc', 'proxy/proxy_resolver_winhttp.h', 'proxy/proxy_retry_info.h', 'proxy/proxy_script_fetcher.h', 'proxy/proxy_script_fetcher_impl.cc', 'proxy/proxy_script_fetcher_impl.h', 'proxy/proxy_server.cc', 'proxy/proxy_server_mac.cc', 'proxy/proxy_server.h', 'proxy/proxy_service.cc', 'proxy/proxy_service.h', 'proxy/sync_host_resolver_bridge.cc', 'proxy/sync_host_resolver_bridge.h', 'socket/client_socket.cc', 'socket/client_socket.h', 'socket/client_socket_factory.cc', 'socket/client_socket_factory.h', 'socket/client_socket_handle.cc', 'socket/client_socket_handle.h', 'socket/client_socket_pool.h', 'socket/client_socket_pool.cc', 'socket/client_socket_pool_base.cc', 'socket/client_socket_pool_base.h', 'socket/client_socket_pool_histograms.cc', 'socket/client_socket_pool_histograms.h', 'socket/client_socket_pool_manager.cc', 'socket/client_socket_pool_manager.h', 'socket/dns_cert_provenance_checker.cc', 'socket/dns_cert_provenance_checker.h', 'socket/socket.h', 'socket/socks5_client_socket.cc', 'socket/socks5_client_socket.h', 'socket/socks_client_socket.cc', 'socket/socks_client_socket.h', 'socket/socks_client_socket_pool.cc', 'socket/socks_client_socket_pool.h', 'socket/ssl_client_socket.cc', 'socket/ssl_client_socket.h', 'socket/ssl_client_socket_mac.cc', 'socket/ssl_client_socket_mac.h', 'socket/ssl_client_socket_mac_factory.cc', 'socket/ssl_client_socket_mac_factory.h', 'socket/ssl_client_socket_nss.cc', 'socket/ssl_client_socket_nss.h', 'socket/ssl_client_socket_nss_factory.cc', 'socket/ssl_client_socket_nss_factory.h', 'socket/ssl_client_socket_openssl.cc', 'socket/ssl_client_socket_openssl.h', 'socket/ssl_client_socket_pool.cc', 'socket/ssl_client_socket_pool.h', 'socket/ssl_client_socket_win.cc', 'socket/ssl_client_socket_win.h', 'socket/ssl_error_params.cc', 'socket/ssl_error_params.h', 'socket/ssl_host_info.cc', 'socket/ssl_host_info.h', 'socket/tcp_client_socket.cc', 'socket/tcp_client_socket.h', 'socket/tcp_client_socket_libevent.cc', 'socket/tcp_client_socket_libevent.h', 'socket/tcp_client_socket_pool.cc', 'socket/tcp_client_socket_pool.h', 'socket/tcp_client_socket_win.cc', 'socket/tcp_client_socket_win.h', 'socket_stream/socket_stream.cc', 'socket_stream/socket_stream.h', 'socket_stream/socket_stream_job.cc', 'socket_stream/socket_stream_job.h', 'socket_stream/socket_stream_job_manager.cc', 'socket_stream/socket_stream_job_manager.h', 'socket_stream/socket_stream_metrics.cc', 'socket_stream/socket_stream_metrics.h', 'spdy/spdy_bitmasks.h', 'spdy/spdy_frame_builder.cc', 'spdy/spdy_frame_builder.h', 'spdy/spdy_framer.cc', 'spdy/spdy_framer.h', 'spdy/spdy_http_stream.cc', 'spdy/spdy_http_stream.h', 'spdy/spdy_http_utils.cc', 'spdy/spdy_http_utils.h', 'spdy/spdy_io_buffer.cc', 'spdy/spdy_io_buffer.h', 'spdy/spdy_protocol.h', 'spdy/spdy_proxy_client_socket.cc', 'spdy/spdy_proxy_client_socket.h', 'spdy/spdy_session.cc', 'spdy/spdy_session.h', 'spdy/spdy_session_pool.cc', 'spdy/spdy_session_pool.h', 'spdy/spdy_settings_storage.cc', 'spdy/spdy_settings_storage.h', 'spdy/spdy_stream.cc', 'spdy/spdy_stream.h', 'url_request/https_prober.h', 'url_request/https_prober.cc', 'url_request/url_request.cc', 'url_request/url_request.h', 'url_request/url_request_about_job.cc', 'url_request/url_request_about_job.h', 'url_request/url_request_context.cc', 'url_request/url_request_context.h', 'url_request/url_request_data_job.cc', 'url_request/url_request_data_job.h', 'url_request/url_request_error_job.cc', 'url_request/url_request_error_job.h', 'url_request/url_request_file_dir_job.cc', 'url_request/url_request_file_dir_job.h', 'url_request/url_request_file_job.cc', 'url_request/url_request_file_job.h', 'url_request/url_request_filter.cc', 'url_request/url_request_filter.h', 'url_request/url_request_ftp_job.cc', 'url_request/url_request_ftp_job.h', 'url_request/url_request_http_job.cc', 'url_request/url_request_http_job.h', 'url_request/url_request_job.cc', 'url_request/url_request_job.h', 'url_request/url_request_job_manager.cc', 'url_request/url_request_job_manager.h', 'url_request/url_request_job_metrics.cc', 'url_request/url_request_job_metrics.h', 'url_request/url_request_job_tracker.cc', 'url_request/url_request_job_tracker.h', 'url_request/url_request_netlog_params.cc', 'url_request/url_request_netlog_params.h', 'url_request/url_request_redirect_job.cc', 'url_request/url_request_redirect_job.h', 'url_request/url_request_simple_job.cc', 'url_request/url_request_simple_job.h', 'url_request/url_request_status.h', 'url_request/url_request_test_job.cc', 'url_request/url_request_test_job.h', 'url_request/url_request_throttler_entry.cc', 'url_request/url_request_throttler_entry.h', 'url_request/url_request_throttler_entry_interface.h', 'url_request/url_request_throttler_header_adapter.h', 'url_request/url_request_throttler_header_adapter.cc', 'url_request/url_request_throttler_header_interface.h', 'url_request/url_request_throttler_manager.cc', 'url_request/url_request_throttler_manager.h', 'url_request/view_cache_helper.cc', 'url_request/view_cache_helper.h', 'websockets/websocket.cc', 'websockets/websocket.h', 'websockets/websocket_frame_handler.cc', 'websockets/websocket_frame_handler.h', 'websockets/websocket_handshake.cc', 'websockets/websocket_handshake.h', 'websockets/websocket_handshake_draft75.cc', 'websockets/websocket_handshake_draft75.h', 'websockets/websocket_handshake_handler.cc', 'websockets/websocket_handshake_handler.h', 'websockets/websocket_job.cc', 'websockets/websocket_job.h', 'websockets/websocket_net_log_params.cc', 'websockets/websocket_net_log_params.h', 'websockets/websocket_throttle.cc', 'websockets/websocket_throttle.h', ], 'export_dependent_settings': [ '../base/base.gyp:base', ], 'conditions': [ ['javascript_engine=="v8"', { 'dependencies': [ # '../v8/tools/gyp/v8.gyp:v8', ], }], ['chromeos==1', { 'sources!': [ 'proxy/proxy_config_service_linux.cc', 'proxy/proxy_config_service_linux.h', ], }], ['use_openssl==1', { 'sources!': [ 'ocsp/nss_ocsp.cc', 'ocsp/nss_ocsp.h', 'socket/dns_cert_provenance_check.cc', 'socket/dns_cert_provenance_check.h', 'socket/ssl_client_socket_nss.cc', 'socket/ssl_client_socket_nss.h', 'socket/ssl_client_socket_nss_factory.cc', 'socket/ssl_client_socket_nss_factory.h', ], }, { # else !use_openssl: remove the unneeded files 'sources!': [ 'socket/ssl_client_socket_openssl.cc', 'socket/ssl_client_socket_openssl.h', ], }, ], [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { 'dependencies': [ '../build/linux/system.gyp:gconf', '../build/linux/system.gyp:gdk', ], 'conditions': [ ['use_openssl==1', { 'dependencies': [ '../third_party/openssl/openssl.gyp:openssl', ], }, { # else use_openssl==0, use NSS 'dependencies': [ '../build/linux/system.gyp:nss', ], }], ], }, { # else: OS is not in the above list 'sources!': [ 'ocsp/nss_ocsp.cc', 'ocsp/nss_ocsp.h', ], }, ], [ 'OS == "win"', { 'sources!': [ 'http/http_auth_handler_ntlm_portable.cc', 'socket/tcp_client_socket_libevent.cc', ], 'dependencies': [ '../third_party/nss/nss.gyp:nss', 'third_party/nss/ssl.gyp:ssl', 'tld_cleanup', ], }, { # else: OS != "win" 'dependencies': [ '../third_party/libevent/libevent.gyp:libevent', ], 'sources!': [ 'proxy/proxy_resolver_winhttp.cc', 'socket/ssl_client_socket_nss_factory.cc', 'socket/ssl_client_socket_nss_factory.h', ], }, ], [ 'OS == "mac"', { 'dependencies': [ '../third_party/nss/nss.gyp:nss', 'third_party/nss/ssl.gyp:ssl', ], 'link_settings': { 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/Security.framework', '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework', ] }, }, { # else: OS != "mac" 'sources!': [ 'socket/ssl_client_socket_mac_factory.cc', 'socket/ssl_client_socket_mac_factory.h', ], }, ], ], }, { 'target_name': 'net_unittests', 'type': 'executable', 'dependencies': [ 'net', 'net_test_support', '../base/base.gyp:base', '../base/base.gyp:base_i18n', '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest', '../third_party/zlib/zlib.gyp:zlib', ], 'msvs_guid': 'E99DA267-BE90-4F45-88A1-6919DB2C7567', 'sources': [ 'base/address_list_unittest.cc', 'base/cert_database_nss_unittest.cc', 'base/cert_verifier_unittest.cc', 'base/cookie_monster_unittest.cc', 'base/data_url_unittest.cc', 'base/directory_lister_unittest.cc', 'base/dnssec_unittest.cc', 'base/dns_util_unittest.cc', 'base/dnsrr_resolver_unittest.cc', 'base/escape_unittest.cc', 'base/file_stream_unittest.cc', 'base/filter_unittest.cc', 'base/filter_unittest.h', 'base/gzip_filter_unittest.cc', 'base/host_cache_unittest.cc', 'base/host_mapping_rules_unittest.cc', 'base/host_resolver_impl_unittest.cc', 'base/keygen_handler_unittest.cc', 'base/leak_annotations.h', 'base/listen_socket_unittest.cc', 'base/listen_socket_unittest.h', 'base/mapped_host_resolver_unittest.cc', 'base/mime_sniffer_unittest.cc', 'base/mime_util_unittest.cc', 'base/net_log_unittest.cc', 'base/net_log_unittest.h', 'base/net_test_suite.h', 'base/net_util_unittest.cc', 'base/pem_tokenizer_unittest.cc', 'base/registry_controlled_domain_unittest.cc', 'base/run_all_unittests.cc', 'base/sdch_filter_unittest.cc', 'base/ssl_cipher_suite_names_unittest.cc', 'base/ssl_client_auth_cache_unittest.cc', 'base/ssl_config_service_mac_unittest.cc', 'base/ssl_config_service_unittest.cc', 'base/ssl_config_service_win_unittest.cc', 'base/ssl_false_start_blacklist_unittest.cc', 'base/static_cookie_policy_unittest.cc', 'base/transport_security_state_unittest.cc', 'base/test_certificate_data.h', 'base/test_completion_callback_unittest.cc', 'base/upload_data_stream_unittest.cc', 'base/x509_certificate_unittest.cc', 'base/x509_cert_types_mac_unittest.cc', 'base/x509_openssl_util_unittest.cc', 'disk_cache/addr_unittest.cc', 'disk_cache/backend_unittest.cc', 'disk_cache/bitmap_unittest.cc', 'disk_cache/block_files_unittest.cc', 'disk_cache/cache_util_unittest.cc', 'disk_cache/disk_cache_test_base.cc', 'disk_cache/disk_cache_test_base.h', 'disk_cache/entry_unittest.cc', 'disk_cache/mapped_file_unittest.cc', 'disk_cache/storage_block_unittest.cc', 'ftp/ftp_auth_cache_unittest.cc', 'ftp/ftp_ctrl_response_buffer_unittest.cc', 'ftp/ftp_directory_listing_buffer_unittest.cc', 'ftp/ftp_directory_listing_parser_ls_unittest.cc', 'ftp/ftp_directory_listing_parser_netware_unittest.cc', 'ftp/ftp_directory_listing_parser_vms_unittest.cc', 'ftp/ftp_directory_listing_parser_windows_unittest.cc', 'ftp/ftp_network_transaction_unittest.cc', 'ftp/ftp_util_unittest.cc', 'http/des_unittest.cc', 'http/http_alternate_protocols_unittest.cc', 'http/http_auth_cache_unittest.cc', 'http/http_auth_filter_unittest.cc', 'http/http_auth_gssapi_posix_unittest.cc', 'http/http_auth_handler_basic_unittest.cc', 'http/http_auth_handler_digest_unittest.cc', 'http/http_auth_handler_factory_unittest.cc', 'http/http_auth_handler_mock.cc', 'http/http_auth_handler_mock.h', 'http/http_auth_handler_negotiate_unittest.cc', 'http/http_auth_handler_unittest.cc', 'http/http_auth_sspi_win_unittest.cc', 'http/http_auth_unittest.cc', 'http/http_byte_range_unittest.cc', 'http/http_cache_unittest.cc', 'http/http_chunked_decoder_unittest.cc', 'http/http_network_layer_unittest.cc', 'http/http_network_transaction_unittest.cc', 'http/http_proxy_client_socket_pool_unittest.cc', 'http/http_request_headers_unittest.cc', 'http/http_response_body_drainer_unittest.cc', 'http/http_response_headers_unittest.cc', 'http/http_stream_factory_unittest.cc', 'http/http_transaction_unittest.cc', 'http/http_transaction_unittest.h', 'http/http_util_unittest.cc', 'http/http_vary_data_unittest.cc', 'http/mock_gssapi_library_posix.cc', 'http/mock_gssapi_library_posix.h', 'http/mock_sspi_library_win.h', 'http/mock_sspi_library_win.cc', 'http/url_security_manager_unittest.cc', 'proxy/init_proxy_resolver_unittest.cc', 'proxy/mock_proxy_resolver.h', 'proxy/multi_threaded_proxy_resolver_unittest.cc', 'proxy/proxy_bypass_rules_unittest.cc', 'proxy/proxy_config_service_linux_unittest.cc', 'proxy/proxy_config_service_win_unittest.cc', 'proxy/proxy_config_unittest.cc', 'proxy/proxy_list_unittest.cc', 'proxy/proxy_resolver_js_bindings_unittest.cc', 'proxy/proxy_resolver_v8_unittest.cc', 'proxy/proxy_script_fetcher_impl_unittest.cc', 'proxy/proxy_server_unittest.cc', 'proxy/proxy_service_unittest.cc', 'proxy/sync_host_resolver_bridge_unittest.cc', 'socket/client_socket_pool_base_unittest.cc', 'socket/deterministic_socket_data_unittest.cc', 'socket/socks5_client_socket_unittest.cc', 'socket/socks_client_socket_pool_unittest.cc', 'socket/socks_client_socket_unittest.cc', 'socket/ssl_client_socket_unittest.cc', 'socket/ssl_client_socket_pool_unittest.cc', 'socket/tcp_client_socket_pool_unittest.cc', 'socket/tcp_client_socket_unittest.cc', 'socket_stream/socket_stream_metrics_unittest.cc', 'socket_stream/socket_stream_unittest.cc', 'spdy/spdy_framer_test.cc', 'spdy/spdy_http_stream_unittest.cc', 'spdy/spdy_network_transaction_unittest.cc', 'spdy/spdy_protocol_test.cc', 'spdy/spdy_proxy_client_socket_unittest.cc', 'spdy/spdy_session_unittest.cc', 'spdy/spdy_stream_unittest.cc', 'spdy/spdy_test_util.cc', 'spdy/spdy_test_util.h', 'test/python_utils_unittest.cc', 'tools/dump_cache/url_to_filename_encoder.cc', 'tools/dump_cache/url_to_filename_encoder.h', 'tools/dump_cache/url_to_filename_encoder_unittest.cc', 'tools/dump_cache/url_utilities.h', 'tools/dump_cache/url_utilities.cc', 'tools/dump_cache/url_utilities_unittest.cc', 'url_request/url_request_job_tracker_unittest.cc', 'url_request/url_request_throttler_unittest.cc', 'url_request/url_request_unittest.cc', 'url_request/url_request_unittest.h', 'url_request/view_cache_helper_unittest.cc', 'websockets/websocket_frame_handler_unittest.cc', 'websockets/websocket_handshake_draft75_unittest.cc', 'websockets/websocket_handshake_handler_unittest.cc', 'websockets/websocket_handshake_unittest.cc', 'websockets/websocket_job_unittest.cc', 'websockets/websocket_net_log_params_unittest.cc', 'websockets/websocket_throttle_unittest.cc', 'websockets/websocket_unittest.cc', ], 'conditions': [ ['chromeos==1', { 'sources!': [ 'proxy/proxy_config_service_linux_unittest.cc', ], }], [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { 'dependencies': [ '../build/linux/system.gyp:gtk', '../build/linux/system.gyp:nss', ], 'sources!': [ 'base/sdch_filter_unittest.cc', ], }, { # else: OS is not in the above list 'sources!': [ 'base/cert_database_nss_unittest.cc', ], } ], [ 'OS == "linux"', { 'conditions': [ ['linux_use_tcmalloc==1', { 'dependencies': [ '../base/allocator/allocator.gyp:allocator', ], }], ], }], [ 'use_openssl==1', { # When building for OpenSSL, we need to exclude NSS specific tests. # TODO(bulach): Add equivalent tests when the underlying # functionality is ported to OpenSSL. 'sources!': [ 'base/cert_database_nss_unittest.cc', 'base/dnssec_unittest.cc', ], }, { # else, remove openssl specific tests 'sources!': [ 'base/x509_openssl_util_unittest.cc', ], } ], [ 'OS == "win"', { 'sources!': [ 'http/http_auth_gssapi_posix_unittest.cc', ], # This is needed to trigger the dll copy step on windows. # TODO(mark): Specifying this here shouldn't be necessary. 'dependencies': [ '../third_party/icu/icu.gyp:icudata', ], }, ], ], }, { 'target_name': 'net_perftests', 'type': 'executable', 'dependencies': [ 'net', 'net_test_support', '../base/base.gyp:base', '../base/base.gyp:base_i18n', '../base/base.gyp:test_support_perf', '../testing/gtest.gyp:gtest', ], 'msvs_guid': 'AAC78796-B9A2-4CD9-BF89-09B03E92BF73', 'sources': [ 'base/cookie_monster_perftest.cc', 'disk_cache/disk_cache_perftest.cc', 'proxy/proxy_resolver_perftest.cc', ], 'conditions': [ # This is needed to trigger the dll copy step on windows. # TODO(mark): Specifying this here shouldn't be necessary. [ 'OS == "win"', { 'dependencies': [ '../third_party/icu/icu.gyp:icudata', ], }, ], ], }, { 'target_name': 'stress_cache', 'type': 'executable', 'dependencies': [ 'net', 'net_test_support', '../base/base.gyp:base', ], 'sources': [ 'disk_cache/stress_cache.cc', ], }, { 'target_name': 'tld_cleanup', 'type': 'executable', 'dependencies': [ '../base/base.gyp:base', '../base/base.gyp:base_i18n', '../build/temp_gyp/googleurl.gyp:googleurl', ], 'msvs_guid': 'E13045CD-7E1F-4A41-9B18-8D288B2E7B41', 'sources': [ 'tools/tld_cleanup/tld_cleanup.cc', ], }, { 'target_name': 'crash_cache', 'type': 'executable', 'dependencies': [ 'net', 'net_test_support', '../base/base.gyp:base', ], 'msvs_guid': 'B0EE0599-2913-46A0-A847-A3EC813658D3', 'sources': [ 'tools/crash_cache/crash_cache.cc', ], }, { 'target_name': 'run_testserver', 'type': 'executable', 'dependencies': [ 'net', 'net_test_support', '../base/base.gyp:base', '../testing/gtest.gyp:gtest', ], 'msvs_guid': '506F2468-6B1D-48E2-A67C-9D9C6BAC0EC5', 'sources': [ 'tools/testserver/run_testserver.cc', ], }, { 'target_name': 'net_test_support', 'type': '<(library)', 'dependencies': [ 'net', '../base/base.gyp:base', '../base/base.gyp:test_support_base', '../testing/gtest.gyp:gtest', ], 'sources': [ 'base/cert_test_util.cc', 'base/cert_test_util.h', 'disk_cache/disk_cache_test_util.cc', 'disk_cache/disk_cache_test_util.h', 'proxy/proxy_config_service_common_unittest.cc', 'proxy/proxy_config_service_common_unittest.h', 'socket/socket_test_util.cc', 'socket/socket_test_util.h', 'test/python_utils.cc', 'test/python_utils.h', 'test/test_server.cc', 'test/test_server_posix.cc', 'test/test_server_win.cc', 'test/test_server.h', ], 'conditions': [ ['inside_chromium_build==1', { 'dependencies': [ '../chrome/browser/sync/protocol/sync_proto.gyp:sync_proto', '../chrome/browser/policy/proto/device_management_proto.gyp:device_management_proto', '../third_party/protobuf/protobuf.gyp:py_proto', ], }], ['OS == "linux" or OS == "freebsd" or OS == "openbsd"', { 'conditions': [ ['use_openssl==1', { 'dependencies': [ '../third_party/openssl/openssl.gyp:openssl', ], }, { 'dependencies': [ '../build/linux/system.gyp:nss', ], }], ], }], ['OS == "linux"', { 'conditions': [ ['linux_use_tcmalloc==1', { 'dependencies': [ '../base/allocator/allocator.gyp:allocator', ], }], ], }], ], }, { 'target_name': 'net_resources', 'type': 'none', 'msvs_guid': '8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942', 'variables': { 'grit_cmd': ['python', '../tools/grit/grit.py'], 'grit_info_cmd': ['python', '../tools/grit/grit_info.py'], 'input_paths': [ 'base/net_resources.grd', ], }, 'rules': [ { 'rule_name': 'grit', 'extension': 'grd', 'inputs': [ '<!@(<(grit_info_cmd) --inputs <(input_paths))', ], 'outputs': [ '<!@(<(grit_info_cmd) ' '--outputs \'<(SHARED_INTERMEDIATE_DIR)/net\' <(input_paths))', ], 'action': ['<@(grit_cmd)', '-i', '<(RULE_INPUT_PATH)', 'build', '-o', '<(SHARED_INTERMEDIATE_DIR)/net'], 'message': 'Generating resources from <(RULE_INPUT_PATH)', }, ], 'sources': [ '<@(input_paths)', ], 'direct_dependent_settings': { 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)/net', ], }, 'conditions': [ ['OS=="win"', { 'dependencies': ['../build/win/system.gyp:cygwin'], }], ], }, { 'target_name': 'fetch_client', 'type': 'executable', 'dependencies': [ 'net', '../base/base.gyp:base', '../testing/gtest.gyp:gtest', ], 'msvs_guid': 'DABB8796-B9A2-4CD9-BF89-09B03E92B123', 'sources': [ 'tools/fetch/fetch_client.cc', ], }, { 'target_name': 'fetch_server', 'type': 'executable', 'dependencies': [ 'net', '../base/base.gyp:base', '../testing/gtest.gyp:gtest', ], 'msvs_guid': 'DABB8796-B9A2-4CD9-BF89-09B03E92B124', 'sources': [ 'tools/fetch/fetch_server.cc', 'tools/fetch/http_listen_socket.cc', 'tools/fetch/http_listen_socket.h', 'tools/fetch/http_server.cc', 'tools/fetch/http_server.h', 'tools/fetch/http_server_request_info.h', 'tools/fetch/http_server_response_info.h', 'tools/fetch/http_session.cc', 'tools/fetch/http_session.h', ], }, { 'target_name': 'http_listen_socket', 'type': '<(library)', 'dependencies': [ 'net', '../base/base.gyp:base', '../testing/gtest.gyp:gtest', ], 'msvs_guid': 'FCB894A4-CC6C-48C2-B495-52C80527E9BE', 'sources': [ 'server/http_listen_socket.cc', 'server/http_listen_socket.h', 'server/http_server_request_info.cc', 'server/http_server_request_info.h', ], }, { 'target_name': 'hresolv', 'type': 'executable', 'dependencies': [ 'net_base', ], 'msvs_guid': 'FF1BAC48-D326-4CB4-96DA-8B03DE23ED6E', 'sources': [ 'tools/hresolv/hresolv.cc', ], }, { 'target_name': 'dnssec_chain_verify', 'type': 'executable', 'dependencies': [ 'net_base', ], 'sources': [ 'tools/dnssec_chain_verify/dnssec_chain_verify.cc', ] }, { 'target_name': 'ssl_false_start_blacklist_process', 'type': 'executable', 'toolsets': ['host'], 'include_dirs': [ '..', ], 'sources': [ 'base/ssl_false_start_blacklist_process.cc', ], }, ], 'conditions': [ ['OS=="linux"', { 'targets': [ { 'target_name': 'flip_in_mem_edsm_server', 'type': 'executable', 'cflags': [ '-Wno-deprecated', ], 'dependencies': [ '../base/base.gyp:base', 'net.gyp:net', '../third_party/openssl/openssl.gyp:openssl', ], 'sources': [ 'tools/dump_cache/url_to_filename_encoder.cc', 'tools/dump_cache/url_to_filename_encoder.h', 'tools/dump_cache/url_utilities.h', 'tools/dump_cache/url_utilities.cc', 'tools/flip_server/balsa_enums.h', 'tools/flip_server/balsa_frame.cc', 'tools/flip_server/balsa_frame.h', 'tools/flip_server/balsa_headers.cc', 'tools/flip_server/balsa_headers.h', 'tools/flip_server/balsa_headers_token_utils.cc', 'tools/flip_server/balsa_headers_token_utils.h', 'tools/flip_server/balsa_visitor_interface.h', 'tools/flip_server/buffer_interface.h', 'tools/flip_server/create_listener.cc', 'tools/flip_server/create_listener.h', 'tools/flip_server/epoll_server.cc', 'tools/flip_server/epoll_server.h', 'tools/flip_server/flip_in_mem_edsm_server.cc', 'tools/flip_server/http_message_constants.cc', 'tools/flip_server/http_message_constants.h', 'tools/flip_server/loadtime_measurement.h', 'tools/flip_server/porting.txt', 'tools/flip_server/ring_buffer.cc', 'tools/flip_server/ring_buffer.h', 'tools/flip_server/simple_buffer.cc', 'tools/flip_server/simple_buffer.h', 'tools/flip_server/split.h', 'tools/flip_server/split.cc', 'tools/flip_server/string_piece_utils.h', 'tools/flip_server/thread.h', 'tools/flip_server/url_to_filename_encoder.h', 'tools/flip_server/url_utilities.h', ], }, ] }], ['OS=="linux"', { 'targets': [ { 'target_name': 'snap_start_unittests', 'type': 'executable', 'dependencies': [ 'net', 'net_test_support', 'openssl_helper', '../build/linux/system.gyp:nss', '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest', ], 'sources': [ 'base/run_all_unittests.cc', 'socket/ssl_client_socket_snapstart_unittest.cc', ] }, { 'target_name': 'openssl_helper', 'type': 'executable', 'dependencies': [ '../third_party/openssl/openssl.gyp:openssl', ], 'sources': [ 'test/openssl_helper.cc', ], }, ], }], ['OS=="win"', { 'targets': [ { # TODO(port): dump_cache is still Windows-specific. 'target_name': 'dump_cache', 'type': 'executable', 'dependencies': [ 'net', '../base/base.gyp:base', ], 'sources': [ 'tools/dump_cache/cache_dumper.cc', 'tools/dump_cache/cache_dumper.h', 'tools/dump_cache/dump_cache.cc', 'tools/dump_cache/dump_files.cc', 'tools/dump_cache/upgrade.cc', 'tools/dump_cache/url_to_filename_encoder.cc', 'tools/dump_cache/url_to_filename_encoder.h', 'tools/dump_cache/url_utilities.h', 'tools/dump_cache/url_utilities.cc', ], }, ], }], ], } # Local Variables: # tab-width:2 # indent-tabs-mode:nil # End: # vim: set expandtab tabstop=2 shiftwidth=2:
# findsimilarindex: for a given word and a list of words # return either the index, where the word occurs, e.g. "Apfel" occurs in ["Banane","Kaese","Apfel","Birne"] # at index 2. # OR: find the index of the most similar word: # e.g. most similar word to "Apfel" occurs for given list ["Banane","Apfelsine","Kakao","Birne"] at index 1 # threshold: If the similarity is below the thershold, return index -1 def findsimilarindex(value : str, entries : list, threshold = 0.0): if value in entries: return entries.index(value) else: return -1
""" Tool. Example tool. """ __version__ = "1.2.3"
""" 从101-200有多少个素数,输出全部素数 """ def get_answer(): """ 素数: 只能被1和他本身整除的数 还是嵌套循环问题,首先循环 101 -200 再嵌套循环 每次从2到被循环的数字有没有可以整除的,如果有说明这个数字不符合要求,结束循环 """ for i in range(101, 200): temp = True for j in range(2, i): if i % j == 0: temp = False break if temp: print(i) if __name__ == '__main__': get_answer()
# prefix class Prefix: w_prefix = "w_" b_prefix = "b_" tmp_w_prefix = "tmp_w_" tmp_b_prefix = "tmp_b_" w_b_prefix = "w_b_" tmp_w_b_prefix = "tmp_w_b_" w_grad_prefix = "w_g_" b_grad_prefix = "b_g_" tmp_w_grad_prefix = "tmp_w_g_" tmp_b_grad_prefix = "tmp_b_g_" w_b_grad_prefix = "w_b_g_" tmp_w_b_grad_prefix = "tmp_w_b_g_" KMeans_Init_Cent = "init_cent_" KMeans_Cent = "cent_" class MLModel: Linear_Models = ["lr", "svm"] Sparse_Linear_Models = ["sparse_lr", "sparse_svm"] Cluster_Models = ["kmeans", "sparse_kmeans"] Deep_Models = ["resnet", "mobilenet"] class Optimization: Grad_Avg = "grad_avg" Model_Avg = "model_avg" ADMM = "admm" All = [Grad_Avg, Model_Avg, ADMM] class Synchronization: Async = "async" Reduce = "reduce" Reduce_Scatter = "reduce_scatter" All = [Async, Reduce, Reduce_Scatter]
class Solution: def numWays(self, n, k): """ :type n: int :type k: int :rtype: int """ if n == 0: return 0 elif n == 1: return k # for the first 2 posts sameColor = k diffColor = k * (k - 1) for i in range(2, n): temp = diffColor diffColor = (sameColor + diffColor) * (k - 1) sameColor = temp return sameColor + diffColor """ Time Complexity = O(n) Space Complexity = O(1) There is a fence with n posts, each post can be painted with one of the k colors. You have to paint all the posts such that no more than two adjacent fence posts have the same color. Return the total number of ways you can paint the fence. Note: n and k are non-negative integers.. Example: Input: n = 3, k = 2 Output: 6 Explanation: Take c1 as color 1, c2 as color 2. All possible ways are: post1 post2 post3 ----- ----- ----- ----- 1 c1 c1 c2 2 c1 c2 c1 3 c1 c2 c2 4 c2 c1 c1 5 c2 c1 c2 6 c2 c2 c1 Explanation: n是有几个标杆,k是有几种颜色 1. n == 0,当没有标杆的时候,就没有任何粉刷的可能。 2. n == 1,当只有一根标杆的时候,那就是有几种颜料就又几种粉刷的可能性。 3. 当n >= 2的时候。因为题目条件是最多两个相邻的标杆能够颜色相同,可能性就只有两种,一种是两根标杆的颜色相同, 另一种就是两根标杆的颜色不同。开始两根标杆的颜色相同的可能性就是颜色的可能性,即k。 sameColor = k 如果是颜色不同的可能性,那么就是k颜色中选一种,第二根剩下的颜色中选一个种,即k-1。所以根据概率论来说,就是k*(k-1)。 diffColor = k * (k - 1) 4. 对于新的一根标杆。参考n=2的时候,相同颜色sameColor的可能性,就是之前的不同颜色diffColor的可能性数量, 因为根据题意,只有不同颜色,第三根才可能是相同颜色。而新标杆的不同颜色diffColor的可能性,因为第二根标杆已经有了颜色, 但是不论是什么颜色,我们都可以给一个不同的颜色,所以就是k-1种可能,即(sameColor + diffColor)*(k-1)。 for i in range(2, n): temp = diffColor diffColor = (sameColor + diffColor) * (k - 1) sameColor = temp 5. 根据推论4,只要循环到所有标杆,得到的sameColor + diffColor就是我们要的结果。 """
file_name = r"Sample compilation -portuguese_char_frequency.txt" with open(file_name, 'rt', encoding='utf-8') as file: data_input = file.read() # get the frebquency (in %) for unique characters lenght = len(data_input) freq_chars = sorted([[100 * data_input.count(character)/lenght, character] for character in list(set(data_input))]) print('Frequency for each character:') print(*[f'{str(round(freq, 5)).ljust(7, "0")}%\t "{char}"' for freq, char in freq_chars], sep='\n') # compute the groups of characters (leaves) and groups of the nodes combining them (branch) until we get one group with all characters (the trunk) allgroups = [] while freq_chars: if len(freq_chars) >= 2: old0, old1 = [freq_chars.pop(0) for _ in range(2)] allgroups.extend([old0, old1]) freq_chars = sorted(freq_chars + [[old0[0] + old1[0], old0[1] + old1[1]]]) else: old = freq_chars.pop(0) allgroups.append(old) allgroups = sorted(allgroups, key=lambda x: [-len(x[1]), -x[0]]) # process the bits for each pair (left + right = above node) left_right = {char: '' for _, char in allgroups} for freq1, char1 in allgroups: for freq2, char2 in allgroups: for freq3, char3 in allgroups: if char2 + char3 == char1: if char1.startswith(char2): if char1 in left_right: above_bit = left_right[char1] left_right[char2], left_right[char3] = [above_bit, above_bit] left_right[char2] += '0' left_right[char3] += '1' # sorting bits by lenght, then ascending left_right = sorted(left_right.items(), key=lambda x: [len(x[1]), x[1]]) # filter the single characters in left_right conversion_table = {char: binary for char, binary in left_right if len(char) == 1} print('\nConversion_table: (From the most to the least frequent character') printables = [f'{binary.ljust(30)}\t{char.ljust(10)}' for char, binary in conversion_table.items() if char.isprintable()] print('\nPrintables') print(*printables, sep='\n') non_printables = [f'{binary.ljust(30)}\t{char.ljust(10)}' for char, binary in conversion_table.items() if not char.isprintable()] if non_printables: print('\nNon printables:\n') print(*non_printables, sep='\n') # compute the converted (encripted) and the binary version for data_input def encrypt_bin(string, conversion_table): return ''.join([bin(ord(char))[2:].rjust(8, '0') for char in string]) def encrypt_cry(string, conversion_table): return ''.join([conversion_table[char] for char in string]) # decoding bits def decrypt(bits, conversion_table): temp, decrypted = '', [] # temp, decrypted = '', []: 12,0s | temp, decrypted = [], []:15.0s | temp, decrypted = '', '': 21.9s decode_table = {binary_code: character for character, binary_code in conversion_table.items()} for bit in bits: temp = temp + bit if temp in decode_table: decrypted.append(decode_table[temp]) temp = '' return ''.join(decrypted) print('-' * 100) # process and finish analysis using data_input print('Encoding to standard 8 bits...') binary = encrypt_bin(data_input, conversion_table) print('Encoding binary tree (encryption)...') crypto = encrypt_cry(data_input, conversion_table) print('Decoding encrypted bits...') decrypted = decrypt(binary, conversion_table) len_cry, len_bin = len(crypto), len(binary) print('_' * 100, '\nANALYSIS FOR data_input:') print(f'\nFile name: {file_name}\n') print(f'\ndata_input (100 first characters):\n{data_input[:100]}\n') print(f'data_input type: {type(data_input)}') print(f'data_input size: {lenght:,}b (bytes or characters)') print(f'Binary size: {len_bin:,} bits ({round(100 * len_bin / len_bin, 1)}%)\t8.00 bits per character.') print(f'Cryptography size: {len_cry:,} bits ( {round(100 * len_cry / len_bin, 1)}%)\t{round(len_cry/len(data_input), 2)} bits (average) per character.') # the real benefit for storage or processing: print('_' * 100, '\nCONCLUSION:') print(f'You saved {round((len_bin - len_cry)/8/1024/1024, 5)}MB from {round(len_bin/8/1024/1024, 5)}MB using this encryption method!')
""" Dado el valor de un producto, ingresando el valor por el teclado, hallar el IGV(18%) y el precio de venta """ #variables vv = None igv = None pv = None # Entrada vv = float(input("Ingrese el valor de venta: ")) # Operaciones igv = vv *0.18 pv = vv + igv #Salida print("El IGV es: ",igv) print("El precio de venta es: ",pv)
""" 每K个一组反转单向链表 http://www.panzhixiang.cn/article/2021/6/21/25.html """ # Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: ## laluladong 解法(迭代) # def reverse(self, head: ListNode, tail: ListNode) -> ListNode: # pre = None # cur = head # nxt = head # while cur != tail: # nxt = cur.next # cur.next = pre # pre = cur # cur = nxt # return pre # def reverseKGroup(self, head: ListNode, k: int) -> ListNode: # if head == None: # return head # a = head # b = head # for item in range(k): # if b != None: # b = b.next # else: # return head # newHead = self.reverse(a, b) # a.next = self.reverseKGroup(b, k) # return newHead ## 官方解法 # 翻转一个子链表,并且返回新的头与尾 def reverse(self, head: ListNode, tail: ListNode): prev = tail.next # 这里给prev赋值为None也可以,不影响结果,但是性能会差,为什么? p = head while prev != tail: nex = p.next p.next = prev prev = p p = nex return tail, head def reverseKGroup(self, head: ListNode, k: int) -> ListNode: hair = ListNode(0) hair.next = head pre = hair while head: # 这个循环会反转整个链表,替代了laluladong迭代解法中的递归调用 tail = pre # 查看剩余部分长度是否大于等于 k for i in range(k): tail = tail.next if not tail: return hair.next nex = tail.next head, tail = self.reverse(head, tail) # 把子链表重新接回原链表 pre.next = head tail.next = nex pre = tail # 此时的tail是后面一段子链表的hair(也就是pre) head = tail.next return hair.next
"""Given a stack, sort it using recursion. Use of any loop constructs like while, for..etc is not allowed. We can only use the following ADT functions on Stack S: is_empty(S) : Tests whether stack is empty or not. push(S) : Adds new element to the stack. pop(S) : Removes top element from the stack. top(S) : Returns value of the top element. Note that this function does not remove element from the stack. Example: Input: -3 <--- Top 14 18 -5 30 Output: 30 <--- Top 18 14 -3 -5""" def sorted_insert(stack_list, element): # Base case: Either stack is empty or newly inserted # item is greater than top (more than all existing) if len(stack_list) == 0 or element > stack_list[-1]: stack_list.append(element) return else: # Remove the top item and recur temp = stack_list.pop() sorted_insert(stack_list, element) # Put back the top item removed earlier stack_list.append(temp) # Function to sort stack def sort_stack(stack_list): # If stack is not empty if len(stack_list) != 0: # removing the top item since it is not satisfying the condition temp = stack_list.pop() # sorting the remaining stack sort_stack(stack_list) # Push the top item back in sorted stack sorted_insert(stack_list, temp) # Stack printing def print_stack(stack_list): for i in stack_list[::-1]: print(i, end=" ") print() def main(): stack_list = [] stack_list.append(30) stack_list.append(-5) stack_list.append(18) stack_list.append(14) stack_list.append(-3) print("Before sorting: ") print_stack(stack_list) sort_stack(stack_list) print("\nAfter sorting: ") print_stack(stack_list) # Driver Code if __name__ == '__main__': main()
def sam2fq(sam_in_dir,fq_out_dir): fi=open(sam_in_dir) fo=open(fq_out_dir,'w') for line in fi: seq=line.rstrip().split('\t') if line[0] !='@': # if len(bin(int(seq[1])))>=9 and bin(int(seq[1]))[-7]=='1': # seq[0]=seq[0][0:-2]+'_1' # elif len(bin(int(seq[1])))>=10 and bin(int(seq[1]))[-8]=='1': # seq[0]=seq[0][0:-2]+'_2' # elif line[-1]=='1': # seq[0]=seq[0][0:-2]+'_1' # elif line[-1]=='2': # seq[0]=seq[0][0:-2]+'_2' fo.write('@'+seq[0]+'\n'+seq[9]+'\n+\n'+seq[10]+'\n') fo.close() fi.close()
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def reverseList(self, head: ListNode) -> ListNode: # base case if(head == None or head.next == None): return head; current = head; next = current.next; while(next != None): temp = next.next; next.next = current; current = next; next = temp; head.next = None; head = current; return head;
def generate_errors(errors, f): f.write('_captures = {\n') for error in errors: if error.capture_name: f.write(f" {error.canonical_name!r}: {error.capture_name!r},\n") f.write('}\n') f.write('\n\n_descriptions = {\n') for error in errors: if error.description: f.write(f" {error.canonical_name!r}: {error.description!r},\n") f.write('}\n')
""" Leetcode #9 """ class Solution: def isPalindrome(self, x: int) -> bool: if x < 0: return False if x >= 0 and x < 10: return True tmp = x y = 0 while tmp > 0: t = tmp % 10 y = 10*y + t tmp = tmp // 10 return x == y if __name__ == "__main__": solution = Solution() assert solution.isPalindrome(121) == True assert solution.isPalindrome(-121) == False assert solution.isPalindrome(10) == False
listaidademenorde18 = [] listaidademaiorde18 = [] while True: try: idade = int(input('Digite a idade da pessoa: ')) break except ValueError: pass if idade < 18: listaidademenorde18.append(idade) else: listaidademaiorde18.append(idade) print(listaidademenorde18) print(listaidademaiorde18) #https://pt.stackoverflow.com/q/456654/101
""" Python program to reverse a number. The reverse of a number is a number that is obtained when a number is traversed from right to left. """ # Function to do reverse def reverse(n): # Initializing rev as 0 rev = 0 while True: if n == 0: break # Adding the last digit rev = rev * 10 + n % 10 # Removing the last digit n = n // 10 return rev if __name__ == '__main__': # Taking input from user n = int(input('Enter the number :')) # Printing the output print ("The reverse of the given number is: {} ".format(reverse(n))) """ Time Complexity - O(n), where 'n' is the number of digits in the number. Space Complexity - O(1) SAMPLE INPUT AND OUTPUT SAMPLE I INPUT Enter the number: 1234 OUTPUT The reverse of the given number is: 4321 """
# model settings model = dict( type='SwAV', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(3,), # no conv-1, x-1: stage-x norm_cfg=dict(type='SyncBN'), style='pytorch'), neck=dict( type='SwAVNeck', in_channels=2048, hid_channels=2048, out_channels=128, with_avg_pool=True), head=dict( type='SwAVHead', feat_dim=128, # equal to neck['out_channels'] epsilon=0.05, temperature=0.1, num_crops=[2, 6],) )
""" @author Huaze Shen @date 2019-10-27 """ def restore_ip_addresses(s): results = [] restore(results, s, "", 4) return results def restore(results, remain, result, k): if k == 0: if len(remain) == 0: results.append(result) else: for i in range(1, 4): if len(remain) >= i and is_valid(remain[0:i]): if k == 1: restore(results, remain[i:], result + remain[0:i], k - 1) else: restore(results, remain[i:], result + remain[0:i] + ".", k - 1) def is_valid(s): if len(s) > 1 and s[0] == '0': return False return 0 <= int(s) < 256 if __name__ == '__main__': s_ = "25525511135" print(restore_ip_addresses(s_))
# Time: O(n) # Space: O(n) # tree class Solution(object): def createBinaryTree(self, descriptions): """ :type descriptions: List[List[int]] :rtype: Optional[TreeNode] """ nodes = {} children = set() for p, c, l in descriptions: parent = nodes.setdefault(p, TreeNode(p)) child = nodes.setdefault(c, TreeNode(c)) if l: parent.left = child else: parent.right = child children.add(c) return nodes[next(p for p in nodes.iterkeys() if p not in children)]
#!/usr/bin/env python3 #this program will write #Hello World! print("Hello World!") #prints Hello World! #homework section of the file print("My name is Zac (He/Him). If you want to be more formal, you can use Zachary.") #Prints out my name, pronouns, and formalities
QUERY_INFO = { "msmarco-passage-dev-subset-tct_colbert": { "description": "MS MARCO passage dev set queries encoded by TCT-ColBERT", "urls": [ "https://www.dropbox.com/s/g7sci7n15mekbut/query-embedding-msmarco-passage-dev-subset-20210115-cd5034.tar.gz?dl=1", ], "md5": "0e448fda77344e7b892e861f416a8870", "size (bytes)": 20075071, "total_queries": 6980, "downloaded": False } }
""" This file contains settings parameters which shouldn't be committed to a public repository such as GitHub. Unlike other code files, this file is not managed by git. It will be read into settings at runtime. Use this as an example to make a 'secrets.py' file in your project directory (beside settings.py). """ def get_secrets(): SECRETS = { 'MY_DOMAIN_NAME': 'webmapdb.com', 'DOCKER_IMAGE': 'c16735211/webmap', 'DOCKER_COMPOSE_FILE': 'docker-compose.yml', 'NGINX_CONF': 'django_nginx.conf', 'SECRET_KEY': '0m-72uwqihn$&u9u+hnz763hun$8+nl3x!z!^@h0wk%=ic6yx2', 'DATABASES': { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': 'gis', 'HOST': '159.65.94.239', 'PORT': 5433, 'USER': 'docker', 'PASSWORD': 'docker', } }, 'ALLOWED_HOSTNAMES': [ 'dbmac', ], } return SECRETS def insert_domainname_in_conf(conf_file, my_domain_name): try: with open("nginx_conf_template", "r") as fh: conf_text = fh.read() conf_text = conf_text.replace("--your-domainname-goes-here--", my_domain_name) with open(conf_file, "w") as fh: fh.write(conf_text) except Exception as e: print(f"{e}") def insert_imagename_in_compose(compose_file, image_name): try: with open("docker-compose-template", "r") as fh: conf_text = fh.read() conf_text = conf_text.replace("--your-image-name-goes-here--", image_name) with open(compose_file, "w") as fh: fh.write(conf_text) except Exception as e: print(f"{e}") def insert_projectname_in_uwsgi_ini(project_name, uwsgi_file): """ Sets up a uwsgi ini file modified with your project (directory) name :param project_name: usually figured out from the settings.py directory :param uwsgi_file: the outgoing uwsgi file usually uwsgi.ini :return: """ try: with open("uwsgi.ini.sample", "r") as fh: conf_text = fh.read() conf_text = conf_text.replace("--your-project-name-goes-here--", project_name) with open(uwsgi_file, "w") as fh: fh.write(conf_text) except Exception as e: print(f"{e}")
# Approach 1: Merge intervals # Step 1: create a list of tuples/intervals with opening/closing positions, e.g. (open_index, close_index) # Step 2: merge the list of intervals (see https://leetcode.com/problems/merge-intervals/) # Step 3: go through the merged interval list and insert the tags into the string class Solution(object): def addBoldTag(self, s, dict): """ :type s: str :type dict: List[str] :rtype: str """ locations = [] # generate the word intervals for word in dict: startIdx = s.find(word) while startIdx != -1: # "s" can contain same word multiple times ad overlapped locations.append([startIdx, startIdx + len(word) - 1]) startIdx = s.find(word, startIdx + 1) if not locations: return s # merge the intervals locations.sort(key=lambda x: x[0]) locationsMerged = [] startIdx, endIdx = locations[0][0], locations[0][1] for i in range(1, len(locations)): nextStart, nextEnd = locations[i][0], locations[i][1] if nextStart <= endIdx + 1: # since, if the strings are consequtive endIdx = max(endIdx, nextEnd) else: locationsMerged.append([startIdx, endIdx]) startIdx, endIdx = nextStart, nextEnd locationsMerged.append([startIdx, endIdx]) # gennerate the old tagged string resultStr = "" startIdx, endIdx = locationsMerged[0][0], locationsMerged[0][1] resultStr += s[0:startIdx] for i in range(len(locationsMerged)): nextStart, nextEnd = locationsMerged[i][0], locationsMerged[i][1] if endIdx < nextStart: resultStr += s[endIdx + 1:nextStart] strToBold = s[nextStart:nextEnd + 1] if strToBold: resultStr += "<b>{}</b>".format(strToBold) else: resultStr += s[endIdx + 1:nextStart] startIdx, endIdx = nextStart, nextEnd resultStr += s[endIdx + 1:] return resultStr
a,b,c=[int(x) for x in input().split()] n=int(input()) k=0 m=(10**9)+7 A=[0]*n B=[0]*n A[0]=(a*c)%m for i in range(1,n): A[i]=A[i-1]*((((a*b)%m)*c)%m) + A[i-1]*((a*b)%m) + A[i-1]*((a*c)%m) A[i]=A[i]%m B[0]=(b*c)%m for i in range(1,n): B[i]=B[i-1]*((((a*b)%m)*c)%m) + B[i-1]*((a*b)%m) + B[i-1]*((a*c)%m) B[i]=B[i]%m m1=0 m2=1 n1=0 n2=1 for i in range(1,len(A)): if A[i]<A[m1]: m2=m1 m1=i for i in range(1,len(B)): if B[i]<B[n1]: n2=n1 n1=i if m1==n1: t1=(A[m1]+B[n2])%m t2=(A[m2]+B[n1])%m if t1 > t2: print(t2) else: print(t1) else: total=A[m1]+B[n1] print(total%m)
# # PySNMP MIB module HUAWEI-WLAN-QOS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-WLAN-QOS-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:49:48 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint") hwWlan, = mibBuilder.importSymbols("HUAWEI-WLAN-MIB", "hwWlan") ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup") Unsigned32, ModuleIdentity, ObjectIdentity, NotificationType, Counter32, TimeTicks, IpAddress, Integer32, Counter64, Bits, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "ModuleIdentity", "ObjectIdentity", "NotificationType", "Counter32", "TimeTicks", "IpAddress", "Integer32", "Counter64", "Bits", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Gauge32") TextualConvention, RowStatus, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "RowStatus", "DisplayString") hwWlanQosManagement = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5)) hwWlanQosManagement.setRevisions(('2010-10-12 10:00', '2010-06-01 10:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hwWlanQosManagement.setRevisionsDescriptions((' V1.02, for the hwWlanTrafficProfileTable, change the leaf nodes hwWlanClientLimitRate and hwWlanVAPLimitRate to hwWlanClientUpLimitRate and hwWlanVAPUpLimitRate, add leaf nodes hwWlanClientDownLimitRate and hwWlanClientDownLimitRate .', ' V1.00, The first Draft.',)) if mibBuilder.loadTexts: hwWlanQosManagement.setLastUpdated('201011100000Z') if mibBuilder.loadTexts: hwWlanQosManagement.setOrganization('Huawei Technologies Co.,Ltd.') if mibBuilder.loadTexts: hwWlanQosManagement.setContactInfo("Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: support@huawei.com ") if mibBuilder.loadTexts: hwWlanQosManagement.setDescription('Wlan QoS management.') hwWlanWmmProfileTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1), ) if mibBuilder.loadTexts: hwWlanWmmProfileTable.setStatus('current') if mibBuilder.loadTexts: hwWlanWmmProfileTable.setDescription('Wmm profile management table.') hwWlanWmmProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1), ).setIndexNames((0, "HUAWEI-WLAN-QOS-MIB", "hwWlanWmmProfileName")) if mibBuilder.loadTexts: hwWlanWmmProfileEntry.setStatus('current') if mibBuilder.loadTexts: hwWlanWmmProfileEntry.setDescription('Wmm profile management entity.') hwWlanWmmProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))) if mibBuilder.loadTexts: hwWlanWmmProfileName.setStatus('current') if mibBuilder.loadTexts: hwWlanWmmProfileName.setDescription('Wmm profile name.') hwWlanWmmSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanWmmSwitch.setStatus('current') if mibBuilder.loadTexts: hwWlanWmmSwitch.setDescription('The wmm switch.') hwWlanWmmMandatorySwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanWmmMandatorySwitch.setStatus('current') if mibBuilder.loadTexts: hwWlanWmmMandatorySwitch.setDescription('The mandatory switch.') hwWlanWmmProfileRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 4), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWlanWmmProfileRowStatus.setStatus('current') if mibBuilder.loadTexts: hwWlanWmmProfileRowStatus.setDescription('Row status. Add or delete a table item.') hwQAPEDCAVoiceECWmax = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCAVoiceECWmax.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCAVoiceECWmax.setDescription('Exponent form of CWmax. This attribute shall specify the value of ECWmax that shall be used by an AP for AC_VO.') hwQAPEDCAVoiceECWmin = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCAVoiceECWmin.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCAVoiceECWmin.setDescription('Exponent form of CWmin. This attribute shall specify the value of ECWmin that shall be used by an AP for AC_VO.') hwQAPEDCAVoiceAIFSN = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCAVoiceAIFSN.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCAVoiceAIFSN.setDescription('Arbitration Inter Frame Spacing Number. This attribute shall specify the value of AIFSN that shall be used by an AP for AC_VO.') hwQAPEDCAVoiceTXOPLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)).clone(47)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCAVoiceTXOPLimit.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCAVoiceTXOPLimit.setDescription('Transmission Opportunity Limit. This attribute shall specify the value of TXOPLimit that shall be used by an AP for AC_VO.') hwQAPEDCAVoiceACKPolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("noack", 2))).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCAVoiceACKPolicy.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCAVoiceACKPolicy.setDescription('ACK policy. This attribute shall specify the policy of ACK that shall be used by an AP for AC_VO.') hwQAPEDCAVideoECWmax = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(4)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCAVideoECWmax.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCAVideoECWmax.setDescription('Exponent form of CWmax. This attribute shall specify the value of ECWmax that shall be used by an AP for AC_VI.') hwQAPEDCAVideoECWmin = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCAVideoECWmin.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCAVideoECWmin.setDescription('Exponent form of CWmin. This attribute shall specify the value of ECWmin that shall be used by an AP for AC_VI.') hwQAPEDCAVideoAIFSN = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCAVideoAIFSN.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCAVideoAIFSN.setDescription('Arbitration Inter Frame Spacing Number. This attribute shall specify the value of AIFSN that shall be used by an AP for AC_VI.') hwQAPEDCAVideoTXOPLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)).clone(94)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCAVideoTXOPLimit.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCAVideoTXOPLimit.setDescription('Transmission Opportunity Limit. This attribute shall specify the value of TXOPLimit that shall be used by an AP for AC_VI.') hwQAPEDCAVideoACKPolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("noack", 2))).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCAVideoACKPolicy.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCAVideoACKPolicy.setDescription('ACK policy. This attribute shall specify the policy of ACK that shall be used by an AP for AC_VI.') hwQAPEDCABEECWmax = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCABEECWmax.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCABEECWmax.setDescription('Exponent form of CWmax. This attribute shall specify the value of ECWmax that shall be used by an AP for AC_BE.') hwQAPEDCABEECWmin = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(4)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCABEECWmin.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCABEECWmin.setDescription('Exponent form of CWmin. This attribute shall specify the value of ECWmin that shall be used by an AP for AC_BE.') hwQAPEDCABEAIFSN = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCABEAIFSN.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCABEAIFSN.setDescription('Arbitration Inter Frame Spacing Number. This attribute shall specify the value of AIFSN that shall be used by an AP for AC_BE.') hwQAPEDCABETXOPLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCABETXOPLimit.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCABETXOPLimit.setDescription('Transmission Opportunity Limit. This attribute shall specify the value of TXOPLimit that shall be used by an AP for AC_BE.') hwQAPEDCABEACKPolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("noack", 2))).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCABEACKPolicy.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCABEACKPolicy.setDescription('ACK policy. This attribute shall specify the policy of ACK that shall be used by an AP for AC_BE.') hwQAPEDCABKECWmax = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(10)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCABKECWmax.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCABKECWmax.setDescription('Exponent form of CWmax. This attribute shall specify the value of ECWmax that shall be used by an AP for AC_BK.') hwQAPEDCABKECWmin = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(4)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCABKECWmin.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCABKECWmin.setDescription('Exponent form of CWmin. This attribute shall specify the value of ECWmin that shall be used by an AP for AC_BK.') hwQAPEDCABKAIFSN = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(7)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCABKAIFSN.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCABKAIFSN.setDescription('Arbitration Inter Frame Spacing Number. This attribute shall specify the value of AIFSN that shall be used by an AP for AC_BK.') hwQAPEDCABKTXOPLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCABKTXOPLimit.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCABKTXOPLimit.setDescription('Transmission Opportunity Limit. This attribute shall specify the value of TXOPLimit that shall be used by an AP for AC_BK.') hwQAPEDCABKACKPolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("noack", 2))).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQAPEDCABKACKPolicy.setStatus('current') if mibBuilder.loadTexts: hwQAPEDCABKACKPolicy.setDescription('ACK policy. This attribute shall specify the policy of ACK that shall be used by an AP for AC_BK.') hwQClientEDCAVoiceECWmax = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCAVoiceECWmax.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCAVoiceECWmax.setDescription('Exponent form of CWmax. This attribute shall specify the value of ECWmax that shall be used by a STA for AC_VO.') hwQClientEDCAVoiceECWmin = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCAVoiceECWmin.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCAVoiceECWmin.setDescription('Exponent form of CWmin. This attribute shall specify the value of ECWmin that shall be used by a STA for AC_VO.') hwQClientEDCAVoiceAIFSN = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 27), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCAVoiceAIFSN.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCAVoiceAIFSN.setDescription('Arbitration Inter Frame Spacing Number. This attribute shall specify the value of AIFSN that shall be used by a STA for AC_VO.') hwQClientEDCAVoiceTXOPLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 28), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)).clone(47)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCAVoiceTXOPLimit.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCAVoiceTXOPLimit.setDescription('Transmission Opportunity Limit. This attribute shall specify the value of TXOPLimit that shall be used by a STA for AC_VO.') hwQClientEDCAVideoECWmax = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 29), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(4)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCAVideoECWmax.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCAVideoECWmax.setDescription('Exponent form of CWmax. This attribute shall specify the value of ECWmax that shall be used by a STA for AC_VI.') hwQClientEDCAVideoECWmin = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 30), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCAVideoECWmin.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCAVideoECWmin.setDescription('Exponent form of CWmin. This attribute shall specify the value of ECWmin that shall be used by a STA for AC_VI.') hwQClientEDCAVideoAIFSN = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 31), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCAVideoAIFSN.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCAVideoAIFSN.setDescription('Arbitration Inter Frame Spacing Number. This attribute shall specify the value of AIFSN that shall be used by a STA for AC_VI.') hwQClientEDCAVideoTXOPLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 32), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)).clone(94)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCAVideoTXOPLimit.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCAVideoTXOPLimit.setDescription('Transmission Opportunity Limit. This attribute shall specify the value of TXOPLimit that shall be used by a STA for AC_VI.') hwQClientEDCABEECWmax = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 33), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(10)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCABEECWmax.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCABEECWmax.setDescription('Exponent form of CWmax. This attribute shall specify the value of ECWmax that shall be used by a STA for AC_BE.') hwQClientEDCABEECWmin = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 34), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(4)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCABEECWmin.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCABEECWmin.setDescription('Exponent form of CWmin. This attribute shall specify the value of ECWmin that shall be used by a STA for AC_BE.') hwQClientEDCABEAIFSN = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 35), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCABEAIFSN.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCABEAIFSN.setDescription('Arbitration Inter Frame Spacing Number. This attribute shall specify the value of AIFSN that shall be used by a STA for AC_BE.') hwQClientEDCABETXOPLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 36), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCABETXOPLimit.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCABETXOPLimit.setDescription('Transmission Opportunity Limit. This attribute shall specify the value of TXOPLimit that shall be used by a STA for AC_BE.') hwQClientEDCABKECWmax = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 37), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(10)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCABKECWmax.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCABKECWmax.setDescription('Exponent form of CWmax. This attribute shall specify the value of ECWmax that shall be used by a STA for AC_BK.') hwQClientEDCABKECWmin = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 38), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)).clone(4)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCABKECWmin.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCABKECWmin.setDescription('Exponent form of CWmin. This attribute shall specify the value of ECWmin that shall be used by a STA for AC_BK.') hwQClientEDCABKAIFSN = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 39), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(7)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCABKAIFSN.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCABKAIFSN.setDescription('Arbitration Inter Frame Spacing Number. This attribute shall specify the value of AIFSN that shall be used by a STA for AC_BK.') hwQClientEDCABKTXOPLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 1, 1, 40), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwQClientEDCABKTXOPLimit.setStatus('current') if mibBuilder.loadTexts: hwQClientEDCABKTXOPLimit.setDescription('Transmission Opportunity Limit. This attribute shall specify the value of TXOPLimit that shall be used by a STA for AC_BK.') hwWlanTrafficProfileTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2), ) if mibBuilder.loadTexts: hwWlanTrafficProfileTable.setStatus('current') if mibBuilder.loadTexts: hwWlanTrafficProfileTable.setDescription('Traffic profile management table.') hwWlanTrafficProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1), ).setIndexNames((0, "HUAWEI-WLAN-QOS-MIB", "hwWlanTrafficProfileName")) if mibBuilder.loadTexts: hwWlanTrafficProfileEntry.setStatus('current') if mibBuilder.loadTexts: hwWlanTrafficProfileEntry.setDescription('Traffic profile management entity.') hwWlanTrafficProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))) if mibBuilder.loadTexts: hwWlanTrafficProfileName.setStatus('current') if mibBuilder.loadTexts: hwWlanTrafficProfileName.setDescription('Traffic profile name.') hwWlanTrafficProfileRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 2), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWlanTrafficProfileRowStatus.setStatus('current') if mibBuilder.loadTexts: hwWlanTrafficProfileRowStatus.setDescription('Row status. Add or delete a table item.') hwWlanClientUpLimitRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 3), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanClientUpLimitRate.setStatus('current') if mibBuilder.loadTexts: hwWlanClientUpLimitRate.setDescription('The up limit rate of client.') hwWlanVAPUpLimitRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 4), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanVAPUpLimitRate.setStatus('current') if mibBuilder.loadTexts: hwWlanVAPUpLimitRate.setDescription('The up limit rate of VAP.') hwWlan8021pMapMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("designate", 1), ("mapping", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlan8021pMapMode.setStatus('current') if mibBuilder.loadTexts: hwWlan8021pMapMode.setDescription('The mapping mode of user-priority to 802.1p, supporting mapping and designate.') hwWlan8021pSpecValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 6), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlan8021pSpecValue.setStatus('current') if mibBuilder.loadTexts: hwWlan8021pSpecValue.setDescription('Designate the 802.1p priority value.') hwWlanUP0Map8021p = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 7), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanUP0Map8021p.setStatus('current') if mibBuilder.loadTexts: hwWlanUP0Map8021p.setDescription('The mapping 802.1p priority value from user-priority 0.') hwWlanUP1Map8021p = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 8), Integer32().clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanUP1Map8021p.setStatus('current') if mibBuilder.loadTexts: hwWlanUP1Map8021p.setDescription('The mapping 802.1p priority value from user-priority 1.') hwWlanUP2Map8021p = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 9), Integer32().clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanUP2Map8021p.setStatus('current') if mibBuilder.loadTexts: hwWlanUP2Map8021p.setDescription('The mapping 802.1p priority value from user-priority 2.') hwWlanUP3Map8021p = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 10), Integer32().clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanUP3Map8021p.setStatus('current') if mibBuilder.loadTexts: hwWlanUP3Map8021p.setDescription('The mapping 802.1p priority value from user-priority 3.') hwWlanUP4Map8021p = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 11), Integer32().clone(4)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanUP4Map8021p.setStatus('current') if mibBuilder.loadTexts: hwWlanUP4Map8021p.setDescription('The mapping 802.1p priority value from user-priority 4.') hwWlanUP5Map8021p = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 12), Integer32().clone(5)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanUP5Map8021p.setStatus('current') if mibBuilder.loadTexts: hwWlanUP5Map8021p.setDescription('The mapping 802.1p priority value from user-priority 5.') hwWlanUP6Map8021p = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 13), Integer32().clone(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanUP6Map8021p.setStatus('current') if mibBuilder.loadTexts: hwWlanUP6Map8021p.setDescription('The mapping 802.1p priority value from user-priority 6.') hwWlanUP7Map8021p = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 14), Integer32().clone(7)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanUP7Map8021p.setStatus('current') if mibBuilder.loadTexts: hwWlanUP7Map8021p.setDescription('The mapping 802.1p priority value from user-priority 7.') hwWlan8021p0MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlan8021p0MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlan8021p0MapUPValue.setDescription('The mapping user-priority value from 802.1p priority value 0.') hwWlan8021p1MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlan8021p1MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlan8021p1MapUPValue.setDescription('The mapping user-priority value from 802.1p priority value 1.') hwWlan8021p2MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlan8021p2MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlan8021p2MapUPValue.setDescription('The mapping user-priority value from 802.1p priority value 2.') hwWlan8021p3MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlan8021p3MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlan8021p3MapUPValue.setDescription('The mapping user-priority value from 802.1p priority value 3.') hwWlan8021p4MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(4)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlan8021p4MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlan8021p4MapUPValue.setDescription('The mapping user-priority value from 802.1p priority value 4.') hwWlan8021p5MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(5)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlan8021p5MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlan8021p5MapUPValue.setDescription('The mapping user-priority value from 802.1p priority value 5.') hwWlan8021p6MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlan8021p6MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlan8021p6MapUPValue.setDescription('The mapping user-priority value from 802.1p priority value 6.') hwWlan8021p7MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(7)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlan8021p7MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlan8021p7MapUPValue.setDescription('The mapping user-priority value from 802.1p priority value 7.') hwWlanUpTunnelPriorityMapMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("specCOS", 1), ("specDSCP", 2), ("cos2cos", 3), ("cos2dscp", 4), ("dscp2cos", 5), ("dscp2dscp", 6))).clone(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanUpTunnelPriorityMapMode.setStatus('current') if mibBuilder.loadTexts: hwWlanUpTunnelPriorityMapMode.setDescription('The mapping mode to up tunnel priority, supporting specDSCP and specCOS and dscp2dscp and dscp2cos and cos2cos and cos2dscp.') hwWlanUpTunnelPrioritySpecValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 24), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanUpTunnelPrioritySpecValue.setStatus('current') if mibBuilder.loadTexts: hwWlanUpTunnelPrioritySpecValue.setDescription('Designate the up tunnel priority value.') hwWlanValue0MapUpTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 25), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue0MapUpTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue0MapUpTunnelPriority.setDescription('The mapping value of the up tunnel priority from priority value 0.') hwWlanValue1MapUpTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 26), Integer32().clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue1MapUpTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue1MapUpTunnelPriority.setDescription('The mapping value of the up tunnel priority from priority value 1.') hwWlanValue2MapUpTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 27), Integer32().clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue2MapUpTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue2MapUpTunnelPriority.setDescription('The mapping value of the up tunnel priority from priority value 2.') hwWlanValue3MapUpTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 28), Integer32().clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue3MapUpTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue3MapUpTunnelPriority.setDescription('The mapping value of the up tunnel priority from priority value 3.') hwWlanValue4MapUpTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 29), Integer32().clone(4)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue4MapUpTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue4MapUpTunnelPriority.setDescription('The mapping value of the up tunnel priority from priority value 4.') hwWlanValue5MapUpTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 30), Integer32().clone(5)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue5MapUpTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue5MapUpTunnelPriority.setDescription('The mapping value of the up tunnel priority from priority value 5.') hwWlanValue6MapUpTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 31), Integer32().clone(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue6MapUpTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue6MapUpTunnelPriority.setDescription('The mapping value of the up tunnel priority from priority value 6.') hwWlanValue7MapUpTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 32), Integer32().clone(7)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue7MapUpTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue7MapUpTunnelPriority.setDescription('The mapping value of the up tunnel priority from priority value 7.') hwWlanDownTunnelPriorityMapMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("specCOS", 1), ("specDSCP", 2), ("cos2cos", 3), ("cos2dscp", 4), ("dscp2cos", 5), ("dscp2dscp", 6))).clone(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanDownTunnelPriorityMapMode.setStatus('current') if mibBuilder.loadTexts: hwWlanDownTunnelPriorityMapMode.setDescription('The mapping mode to down tunnel priority, supporting specDSCP and specCOS and dscp2dscp and dscp2cos and cos2cos and cos2dscp.') hwWlanDownTunnelPrioritySpecValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 34), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanDownTunnelPrioritySpecValue.setStatus('current') if mibBuilder.loadTexts: hwWlanDownTunnelPrioritySpecValue.setDescription('Designate the down tunnel priority value.') hwWlanValue0MapDownTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 35), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue0MapDownTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue0MapDownTunnelPriority.setDescription('The mapping value of the down tunnel priority from priority value 0.') hwWlanValue1MapDownTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 36), Integer32().clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue1MapDownTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue1MapDownTunnelPriority.setDescription('The mapping value of the down tunnel priority from priority value 1.') hwWlanValue2MapDownTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 37), Integer32().clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue2MapDownTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue2MapDownTunnelPriority.setDescription('The mapping value of the down tunnel priority from priority value 2.') hwWlanValue3MapDownTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 38), Integer32().clone(7)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue3MapDownTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue3MapDownTunnelPriority.setDescription('The mapping value of the down tunnel priority from priority value 3.') hwWlanValue4MapDownTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 39), Integer32().clone(4)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue4MapDownTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue4MapDownTunnelPriority.setDescription('The mapping value of the down tunnel priority from priority value 4.') hwWlanValue5MapDownTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 40), Integer32().clone(5)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue5MapDownTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue5MapDownTunnelPriority.setDescription('The mapping value of the down tunnel priority from priority value 5.') hwWlanValue6MapDownTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 41), Integer32().clone(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue6MapDownTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue6MapDownTunnelPriority.setDescription('The mapping value of the down tunnel priority from priority value 6.') hwWlanValue7MapDownTunnelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 42), Integer32().clone(7)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanValue7MapDownTunnelPriority.setStatus('current') if mibBuilder.loadTexts: hwWlanValue7MapDownTunnelPriority.setDescription('The mapping value of the down tunnel priority from priority value 7.') hwWlanClientDownLimitRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 43), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanClientDownLimitRate.setStatus('current') if mibBuilder.loadTexts: hwWlanClientDownLimitRate.setDescription('The down limit rate of client.') hwWlanVAPDownLimitRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 44), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanVAPDownLimitRate.setStatus('current') if mibBuilder.loadTexts: hwWlanVAPDownLimitRate.setDescription('The down limit rate of VAP.') hwWlanTos0MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 45), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanTos0MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlanTos0MapUPValue.setDescription('The mapping user-priority value from tos priority value 0.') hwWlanTos1MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 46), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanTos1MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlanTos1MapUPValue.setDescription('The mapping user-priority value from tos priority value 1.') hwWlanTos2MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 47), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanTos2MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlanTos2MapUPValue.setDescription('The mapping user-priority value from tos priority value 2.') hwWlanTos3MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 48), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanTos3MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlanTos3MapUPValue.setDescription('The mapping user-priority value from tos priority value 3.') hwWlanTos4MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 49), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(4)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanTos4MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlanTos4MapUPValue.setDescription('The mapping user-priority value from tos priority value 4.') hwWlanTos5MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 50), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(5)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanTos5MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlanTos5MapUPValue.setDescription('The mapping user-priority value from tos priority value 5.') hwWlanTos6MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 51), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanTos6MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlanTos6MapUPValue.setDescription('The mapping user-priority value from tos priority value 6.') hwWlanTos7MapUPValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 2, 1, 52), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(7)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwWlanTos7MapUPValue.setStatus('current') if mibBuilder.loadTexts: hwWlanTos7MapUPValue.setDescription('The mapping user-priority value from 802.1p priority value 7.') hwWlanBatchWmmProfileStartNumber = MibScalar((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWlanBatchWmmProfileStartNumber.setStatus('current') if mibBuilder.loadTexts: hwWlanBatchWmmProfileStartNumber.setDescription("The wmm-profile start number in batch operation. This node is used with node hwWlanBatchWmmProfileGetNumber, for example, hwWlanBatchWmmProfileStartNumber is set to one, and hwWlanBatchWmmProfileGetNumber is set to three, then get the node hwWlanBatchWmmProfileReturnNumber, hwWlanBatchWmmProfileName, that means start from the first wmm-profile, get three wmm-profile's name . if it dose not exist three wmm-profile, the hwWlanBatchWmmProfileReturnNumber will be the real wmm-profile number, otherwise, it is equal to hwWlanBatchWmmProfileGetNumber.") hwWlanBatchWmmProfileGetNumber = MibScalar((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWlanBatchWmmProfileGetNumber.setStatus('current') if mibBuilder.loadTexts: hwWlanBatchWmmProfileGetNumber.setDescription("The wmm-profile number that want to get in batch operation.This node is used with node hwWlanBatchWmmProfileStartNumber, for example, hwWlanBatchWmmProfileStartNumber is set to one, and hwWlanBatchWmmProfileGetNumber is set to three, then get the node hwWlanBatchWmmProfileReturnNumber, hwWlanBatchWmmProfileName, that means start from the first wmm-profile, get three wmm-profile's name . if it dose not exist three wmm-profile, the hwWlanBatchWmmProfileReturnNumber will be the real wmm-profile number, otherwise, it is equal to hwWlanBatchWmmProfileGetNumber.") hwWlanBatchWmmProfileReturnNumber = MibScalar((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwWlanBatchWmmProfileReturnNumber.setStatus('current') if mibBuilder.loadTexts: hwWlanBatchWmmProfileReturnNumber.setDescription('The wmm-profile number get in batch operation.') hwWlanBatchWmmProfileName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 6), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwWlanBatchWmmProfileName.setStatus('current') if mibBuilder.loadTexts: hwWlanBatchWmmProfileName.setDescription("The names of wmm-profiles which are determined by node hwWlanBatchWmmProfileStartNumber and node hwWlanBatchWmmProfileGetNumber. each wmm-profile name is divided by '?'.") hwWlanBatchTrafficProfileStartNumber = MibScalar((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWlanBatchTrafficProfileStartNumber.setStatus('current') if mibBuilder.loadTexts: hwWlanBatchTrafficProfileStartNumber.setDescription("The traffic-profile start number in batch operation. This node is used with node hwWlanBatchTrafficProfileGetNumber, for example, hwWlanBatchTrafficProfileStartNumber is set to one, and hwWlanBatchTrafficProfileGetNumber is set to three, then get the node hwWlanBatchTrafficProfileReturnNumber, hwWlanBatchTrafficProfileName, that means start from the first traffic-profile, get three traffic-profile's name . if it dose not exist three traffic-profile, the hwWlanBatchTrafficProfileReturnNumber will be the real traffic-profile number, otherwise, it is equal to hwWlanBatchTrafficProfileGetNumber.") hwWlanBatchTrafficProfileGetNumber = MibScalar((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWlanBatchTrafficProfileGetNumber.setStatus('current') if mibBuilder.loadTexts: hwWlanBatchTrafficProfileGetNumber.setDescription("The traffic-profile number that want to get in batch operation.This node is used with node hwWlanBatchTrafficProfileStartNumber, for example, hwWlanBatchTrafficProfileStartNumber is set to one, and hwWlanBatchTrafficProfileGetNumber is set to three, then get the node hwWlanBatchTrafficProfileReturnNumber, hwWlanBatchTrafficProfileName, that means start from the first traffic-profile, get three traffic-profile's name . if it dose not exist three traffic-profile, the hwWlanBatchTrafficProfileReturnNumber will be the real traffic-profile number, otherwise, it is equal to hwWlanBatchTrafficProfileGetNumber.") hwWlanBatchTrafficProfileReturnNumber = MibScalar((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwWlanBatchTrafficProfileReturnNumber.setStatus('current') if mibBuilder.loadTexts: hwWlanBatchTrafficProfileReturnNumber.setDescription('The traffic-profile number get in batch operation.') hwWlanBatchTrafficProfileName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 10), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwWlanBatchTrafficProfileName.setStatus('current') if mibBuilder.loadTexts: hwWlanBatchTrafficProfileName.setDescription("The names of traffic-profiles which are determined by node hwWlanBatchTrafficProfileStartNumber and node hwWlanBatchTrafficProfileGetNumber. each traffic-profile name is divided by '?'.") hwWlanQosManagementObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 11)) hwWlanQosManagementConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 12)) hwWlanQosManagementCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 12, 1)) hwWlanQosManagementCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 12, 1, 1)).setObjects(("HUAWEI-WLAN-QOS-MIB", "hwWlanWmmProfileGroup"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanTrafficProfileGroup"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanQosManagementGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwWlanQosManagementCompliance = hwWlanQosManagementCompliance.setStatus('current') if mibBuilder.loadTexts: hwWlanQosManagementCompliance.setDescription('Description.') hwWlanQosManagementObjectGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 12, 2)) hwWlanWmmProfileGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 12, 2, 1)).setObjects(("HUAWEI-WLAN-QOS-MIB", "hwWlanWmmSwitch"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanWmmMandatorySwitch"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanWmmProfileRowStatus"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCAVoiceECWmax"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCAVoiceECWmin"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCAVoiceAIFSN"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCAVoiceTXOPLimit"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCAVoiceACKPolicy"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCAVideoECWmax"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCAVideoECWmin"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCAVideoAIFSN"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCAVideoTXOPLimit"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCAVideoACKPolicy"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCABEECWmax"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCABEECWmin"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCABEAIFSN"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCABETXOPLimit"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCABEACKPolicy"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCABKECWmax"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCABKECWmin"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCABKAIFSN"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCABKTXOPLimit"), ("HUAWEI-WLAN-QOS-MIB", "hwQAPEDCABKACKPolicy"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCAVoiceECWmax"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCAVoiceECWmin"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCAVoiceAIFSN"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCAVoiceTXOPLimit"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCAVideoECWmax"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCAVideoECWmin"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCAVideoAIFSN"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCAVideoTXOPLimit"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCABEECWmax"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCABEECWmin"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCABEAIFSN"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCABETXOPLimit"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCABKECWmax"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCABKECWmin"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCABKAIFSN"), ("HUAWEI-WLAN-QOS-MIB", "hwQClientEDCABKTXOPLimit")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwWlanWmmProfileGroup = hwWlanWmmProfileGroup.setStatus('current') if mibBuilder.loadTexts: hwWlanWmmProfileGroup.setDescription('Description.') hwWlanTrafficProfileGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 12, 2, 2)).setObjects(("HUAWEI-WLAN-QOS-MIB", "hwWlanTrafficProfileRowStatus"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanClientUpLimitRate"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanVAPUpLimitRate"), ("HUAWEI-WLAN-QOS-MIB", "hwWlan8021pMapMode"), ("HUAWEI-WLAN-QOS-MIB", "hwWlan8021pSpecValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanUP0Map8021p"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanUP1Map8021p"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanUP2Map8021p"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanUP3Map8021p"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanUP4Map8021p"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanUP5Map8021p"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanUP6Map8021p"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanUP7Map8021p"), ("HUAWEI-WLAN-QOS-MIB", "hwWlan8021p0MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlan8021p1MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlan8021p2MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlan8021p3MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlan8021p4MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlan8021p5MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlan8021p6MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlan8021p7MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanUpTunnelPriorityMapMode"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanUpTunnelPrioritySpecValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue0MapUpTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue1MapUpTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue2MapUpTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue3MapUpTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue4MapUpTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue5MapUpTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue6MapUpTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue7MapUpTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanDownTunnelPriorityMapMode"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanDownTunnelPrioritySpecValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue0MapDownTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue1MapDownTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue2MapDownTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue3MapDownTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue4MapDownTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue5MapDownTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue6MapDownTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanValue7MapDownTunnelPriority"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanClientDownLimitRate"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanVAPDownLimitRate"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanTos0MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanTos1MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanTos2MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanTos3MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanTos4MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanTos5MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanTos6MapUPValue"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanTos7MapUPValue")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwWlanTrafficProfileGroup = hwWlanTrafficProfileGroup.setStatus('current') if mibBuilder.loadTexts: hwWlanTrafficProfileGroup.setDescription('Description.') hwWlanQosManagementGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 6, 139, 5, 12, 2, 3)).setObjects(("HUAWEI-WLAN-QOS-MIB", "hwWlanBatchWmmProfileStartNumber"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanBatchWmmProfileGetNumber"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanBatchWmmProfileReturnNumber"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanBatchWmmProfileName"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanBatchTrafficProfileStartNumber"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanBatchTrafficProfileGetNumber"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanBatchTrafficProfileReturnNumber"), ("HUAWEI-WLAN-QOS-MIB", "hwWlanBatchTrafficProfileName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwWlanQosManagementGroup = hwWlanQosManagementGroup.setStatus('current') if mibBuilder.loadTexts: hwWlanQosManagementGroup.setDescription('Description.') mibBuilder.exportSymbols("HUAWEI-WLAN-QOS-MIB", hwWlanTrafficProfileEntry=hwWlanTrafficProfileEntry, hwWlan8021p3MapUPValue=hwWlan8021p3MapUPValue, hwWlanQosManagementCompliance=hwWlanQosManagementCompliance, hwWlanUP6Map8021p=hwWlanUP6Map8021p, hwWlanBatchWmmProfileGetNumber=hwWlanBatchWmmProfileGetNumber, hwWlanQosManagementObjects=hwWlanQosManagementObjects, hwWlan8021p4MapUPValue=hwWlan8021p4MapUPValue, hwWlanTrafficProfileRowStatus=hwWlanTrafficProfileRowStatus, hwWlanQosManagementGroup=hwWlanQosManagementGroup, hwWlanWmmProfileGroup=hwWlanWmmProfileGroup, hwWlanTos0MapUPValue=hwWlanTos0MapUPValue, hwWlan8021p2MapUPValue=hwWlan8021p2MapUPValue, hwWlanValue0MapDownTunnelPriority=hwWlanValue0MapDownTunnelPriority, hwWlanUP4Map8021p=hwWlanUP4Map8021p, hwWlanTos7MapUPValue=hwWlanTos7MapUPValue, hwQAPEDCABEACKPolicy=hwQAPEDCABEACKPolicy, hwWlanWmmMandatorySwitch=hwWlanWmmMandatorySwitch, hwWlan8021p5MapUPValue=hwWlan8021p5MapUPValue, hwWlanValue3MapUpTunnelPriority=hwWlanValue3MapUpTunnelPriority, hwWlanUP0Map8021p=hwWlanUP0Map8021p, hwWlan8021p0MapUPValue=hwWlan8021p0MapUPValue, hwQClientEDCABKECWmax=hwQClientEDCABKECWmax, hwWlanValue6MapDownTunnelPriority=hwWlanValue6MapDownTunnelPriority, hwQAPEDCAVideoECWmin=hwQAPEDCAVideoECWmin, hwQClientEDCAVoiceECWmin=hwQClientEDCAVoiceECWmin, hwWlanBatchTrafficProfileName=hwWlanBatchTrafficProfileName, hwWlanTos5MapUPValue=hwWlanTos5MapUPValue, hwWlanWmmProfileName=hwWlanWmmProfileName, hwWlanValue4MapUpTunnelPriority=hwWlanValue4MapUpTunnelPriority, hwWlanTos3MapUPValue=hwWlanTos3MapUPValue, hwWlan8021p7MapUPValue=hwWlan8021p7MapUPValue, hwWlanWmmSwitch=hwWlanWmmSwitch, hwWlanUP7Map8021p=hwWlanUP7Map8021p, hwWlanDownTunnelPriorityMapMode=hwWlanDownTunnelPriorityMapMode, hwWlanValue7MapUpTunnelPriority=hwWlanValue7MapUpTunnelPriority, hwWlanWmmProfileEntry=hwWlanWmmProfileEntry, hwQAPEDCABKACKPolicy=hwQAPEDCABKACKPolicy, hwWlanTrafficProfileName=hwWlanTrafficProfileName, hwQClientEDCAVoiceECWmax=hwQClientEDCAVoiceECWmax, hwWlanWmmProfileRowStatus=hwWlanWmmProfileRowStatus, hwQAPEDCAVideoECWmax=hwQAPEDCAVideoECWmax, hwQAPEDCABKECWmin=hwQAPEDCABKECWmin, hwWlanUP1Map8021p=hwWlanUP1Map8021p, hwQClientEDCABEAIFSN=hwQClientEDCABEAIFSN, hwQClientEDCAVoiceTXOPLimit=hwQClientEDCAVoiceTXOPLimit, hwWlanTos2MapUPValue=hwWlanTos2MapUPValue, hwWlanUP3Map8021p=hwWlanUP3Map8021p, hwQAPEDCABKECWmax=hwQAPEDCABKECWmax, hwWlanUP5Map8021p=hwWlanUP5Map8021p, hwWlanClientUpLimitRate=hwWlanClientUpLimitRate, hwQAPEDCAVoiceECWmin=hwQAPEDCAVoiceECWmin, hwWlanVAPDownLimitRate=hwWlanVAPDownLimitRate, hwQAPEDCABKAIFSN=hwQAPEDCABKAIFSN, hwQAPEDCAVideoTXOPLimit=hwQAPEDCAVideoTXOPLimit, hwQAPEDCABEECWmax=hwQAPEDCABEECWmax, hwWlanTrafficProfileTable=hwWlanTrafficProfileTable, hwWlanBatchTrafficProfileStartNumber=hwWlanBatchTrafficProfileStartNumber, hwQClientEDCABKECWmin=hwQClientEDCABKECWmin, hwWlanValue5MapUpTunnelPriority=hwWlanValue5MapUpTunnelPriority, hwWlanUpTunnelPriorityMapMode=hwWlanUpTunnelPriorityMapMode, hwQAPEDCAVoiceTXOPLimit=hwQAPEDCAVoiceTXOPLimit, hwQAPEDCABEECWmin=hwQAPEDCABEECWmin, hwQClientEDCABKTXOPLimit=hwQClientEDCABKTXOPLimit, hwWlanBatchWmmProfileStartNumber=hwWlanBatchWmmProfileStartNumber, hwQAPEDCAVideoACKPolicy=hwQAPEDCAVideoACKPolicy, hwQAPEDCABEAIFSN=hwQAPEDCABEAIFSN, hwQClientEDCAVideoECWmin=hwQClientEDCAVideoECWmin, hwQAPEDCAVideoAIFSN=hwQAPEDCAVideoAIFSN, hwWlanValue2MapDownTunnelPriority=hwWlanValue2MapDownTunnelPriority, hwQClientEDCAVideoAIFSN=hwQClientEDCAVideoAIFSN, hwQClientEDCABKAIFSN=hwQClientEDCABKAIFSN, hwWlanUP2Map8021p=hwWlanUP2Map8021p, hwWlanQosManagementConformance=hwWlanQosManagementConformance, PYSNMP_MODULE_ID=hwWlanQosManagement, hwQClientEDCABEECWmin=hwQClientEDCABEECWmin, hwWlanValue3MapDownTunnelPriority=hwWlanValue3MapDownTunnelPriority, hwWlanValue7MapDownTunnelPriority=hwWlanValue7MapDownTunnelPriority, hwQAPEDCAVoiceACKPolicy=hwQAPEDCAVoiceACKPolicy, hwWlanTos4MapUPValue=hwWlanTos4MapUPValue, hwQClientEDCAVideoECWmax=hwQClientEDCAVideoECWmax, hwWlan8021pSpecValue=hwWlan8021pSpecValue, hwWlanTos6MapUPValue=hwWlanTos6MapUPValue, hwQAPEDCAVoiceECWmax=hwQAPEDCAVoiceECWmax, hwWlanValue0MapUpTunnelPriority=hwWlanValue0MapUpTunnelPriority, hwWlanValue1MapDownTunnelPriority=hwWlanValue1MapDownTunnelPriority, hwWlanUpTunnelPrioritySpecValue=hwWlanUpTunnelPrioritySpecValue, hwWlanValue6MapUpTunnelPriority=hwWlanValue6MapUpTunnelPriority, hwWlanValue1MapUpTunnelPriority=hwWlanValue1MapUpTunnelPriority, hwWlanValue5MapDownTunnelPriority=hwWlanValue5MapDownTunnelPriority, hwQClientEDCABEECWmax=hwQClientEDCABEECWmax, hwQAPEDCABKTXOPLimit=hwQAPEDCABKTXOPLimit, hwWlanQosManagement=hwWlanQosManagement, hwQAPEDCABETXOPLimit=hwQAPEDCABETXOPLimit, hwWlanQosManagementCompliances=hwWlanQosManagementCompliances, hwWlanTos1MapUPValue=hwWlanTos1MapUPValue, hwWlanValue2MapUpTunnelPriority=hwWlanValue2MapUpTunnelPriority, hwWlanBatchWmmProfileReturnNumber=hwWlanBatchWmmProfileReturnNumber, hwWlanWmmProfileTable=hwWlanWmmProfileTable, hwWlanDownTunnelPrioritySpecValue=hwWlanDownTunnelPrioritySpecValue, hwWlanValue4MapDownTunnelPriority=hwWlanValue4MapDownTunnelPriority, hwWlanBatchWmmProfileName=hwWlanBatchWmmProfileName, hwQClientEDCAVideoTXOPLimit=hwQClientEDCAVideoTXOPLimit, hwWlanBatchTrafficProfileGetNumber=hwWlanBatchTrafficProfileGetNumber, hwQClientEDCABETXOPLimit=hwQClientEDCABETXOPLimit, hwWlanQosManagementObjectGroups=hwWlanQosManagementObjectGroups, hwWlanVAPUpLimitRate=hwWlanVAPUpLimitRate, hwWlanClientDownLimitRate=hwWlanClientDownLimitRate, hwQClientEDCAVoiceAIFSN=hwQClientEDCAVoiceAIFSN, hwQAPEDCAVoiceAIFSN=hwQAPEDCAVoiceAIFSN, hwWlan8021p6MapUPValue=hwWlan8021p6MapUPValue, hwWlan8021pMapMode=hwWlan8021pMapMode, hwWlanBatchTrafficProfileReturnNumber=hwWlanBatchTrafficProfileReturnNumber, hwWlan8021p1MapUPValue=hwWlan8021p1MapUPValue, hwWlanTrafficProfileGroup=hwWlanTrafficProfileGroup)
def polishNotation(tokens): def isNumber(stringRepresentation): return (len(stringRepresentation) > 1 or '0' <= stringRepresentation[0] and stringRepresentation[0] <= '9') stack = [] for i in range(len(tokens)): stack.append(tokens[i]) while (len(stack) > 2 and isNumber(stack[-1]) and isNumber(stack[-2])): leftOperand = int(stack[-2]) rightOperand = int(stack[-1]) result = 0 if stack[-3] == '-': result = leftOperand - rightOperand if stack[-3] == '+': result = leftOperand + rightOperand if stack[-3] == '*': result = leftOperand * rightOperand stack = stack[:-3] stack.append(str(result)) return int(stack[0])
__author__ = 'godq' class BaseDagRepo: def add_dag(self, dag_name, content): raise NotImplemented def update_dag(self, dag_name, content): raise NotImplemented def delete_dag(self, dag_name): raise NotImplemented def find_dag(self, dag_name): raise NotImplemented def list_dags(self, detail=False): raise NotImplemented def find_step_def(self, dag_name, step_name): raise NotImplemented def add_dag_run(self, dag_name, dag_run_id=None): raise NotImplemented def stop_dag_run(self, dag_name, dag_run_id): raise NotImplemented def list_dag_runs(self, dag_name): raise NotImplemented def find_dag_run(self, dag_name, dag_run_id): raise NotImplemented def mark_dag_run_status(self, dag_name, dag_run_id, status): raise NotImplemented def add_dag_run_event(self, dag_name, dag_run_id, event): raise NotImplemented def find_dag_run_events(self, dag_name, run_id): raise NotImplemented
load("//flatbuffers/toolchain_defs:toolchain_defs.bzl", "toolchain_target_for_repo") CC_LANG_REPO = "rules_flatbuffers_cc_toolchain" CC_LANG_TOOLCHAIN = toolchain_target_for_repo(CC_LANG_REPO) CC_LANG_SHORTNAME = "cc" CC_LANG_DEFAULT_RUNTIME = "@com_github_google_flatbuffers//:flatbuffers" CC_LANG_FLATC_ARGS = [ "--cpp", # This is necessary to preserve the directory hierarchy for generated headers to be relative to # the workspace root as bazel expects. "--keep-prefix", ] CC_LANG_DEFAULT_EXTRA_FLATC_ARGS = [ "--gen-mutable", "--gen-name-strings", "--reflect-names", ]
def is_anagram(word, another_word): word = list(tuple(word)) word.sort() another_word = list(tuple(another_word)) another_word.sort() return word == another_word def main(): words = [] new_words = [] anagrams = [] print("***** Anagram Finder *****") word = input("Enter a word: ") try: file = open("EnglishWords.txt") for line in file: if line == "START\n": words = file.readlines() break for text in words: text = text[:-1] new_words.append(text) for text in new_words: if is_anagram(word, text) and text != word: anagrams.append(text) except FileNotFoundError as err: print("Sorry, could not find file 'EnglishWords.txt'.") else: if len(anagrams) == 0: print("Sorry, anagrams of '" + word + "' could not be found.") file.close() file.close() print(str(anagrams)) if __name__ == "__main__": main()
#Refaça o DESAFIO 035 dos triângulos, acrescentando o recurso de mostrar que tipo de triângulo será formado: #- EQUILÁTERO: todos os lados iguais #- ISÓSCELES: dois lados iguais, um diferente #- ESCALENO: todos os lados diferentes print('\033[1;4;34m=*'*100, 'Criando um Triângulo ', '=*\033[m'*100) a = float(input('\033[1;4;31mLado 1:CM')) b = float(input('Lado 2:CM')) c = float(input('Lado 3:CM\033[m')) if abs(b - c) < a and a < abs(b + c):#abs() para valores absolutos print('\033[1;33mESSAS MEDIDAS FORMAM UM TRIÂNGULO') #Validando os TIPOS DE TRIÂNGULO POR MEDIDA(CM) if a == b == c: print('\033[1;31;45m\nESSE TRIÂNGULO É EQUILÁTERO') elif a == b != c or c == a != b: print('\nESSE TRIÂNGULO É ISÓCELES') elif a != b != c: print('\nESSE TRIÂNGULO É ESCALENO') else: print('ESSAS MEDIDAS NÃO FORMAM UM TRIÂNGULO\033[m')
# coding: utf8 # Author: Wing Yung Chan (~wy) # Date: 2017 def palindrome(n): j = str(n) for i in range(len(j)//2): if j[i] != j[len(j)-1-i]: return False return True def problem4(): # Try all 3 digit pairs # Got to be careful with how you iterate # Need to create a Zig Zag flow i = 999 j = 999 i_anchor = 999 j_anchor = 999 while i > 99 and j > 99: if palindrome(i*j): return i*j if i == 999 or j == 100: if i_anchor == j_anchor: j_anchor = j_anchor - 1 else: i_anchor = i_anchor - 1 i = i_anchor j = j_anchor else: #Go up right i = i + 1 j = j - 1
class Records: """ please enter your name, age,height in cm and weight in kg """ def __init__(self,name,gender,age,height,weight): self.gender=gender self.height=height self.weight=weight self.name=name self.age=age self.bmi_range="n" def display(self): return "Name: {} Age: {} Gender:{} Height: {}cm Wegiht: {}kg".format(self.name,self.age,self.gender,self.height,self.weight) def BMI(self): """"" https://www.cdc.gov/obesity/adult/defining.html#:~:text=If%20your%20BMI%20is%20less,falls%20within%20the%20obese%20range. BMI=body mass index m=mass (in kilograms) h=height (height (in meters)) """ bmi=self.weight/(self.height/100)**2 if bmi<18.5: self.bmi_range="underweight" elif bmi>18.5 and bmi<25: self.bmi_range="normal" elif bmi>25 and bmi<30: self.bmi_range="overweight" elif bmi>30: self.bmi_range="obese" self.bmi=bmi return "Hello,{} your BMI is {:0.2f} which is in {} range".format(self.name,bmi,self.bmi_range) def BMR(self): """ Basal metabolic rate is a measurement of the number of calories needed to perform your body's most basic (basal) functions, like breathing, circulation and cell production. BMR is most accurately measured in a lab setting under very restrictive conditions """ """ https://www.bmi-calculator.net/bmr-calculator/bmr-formula.php Harris-Benedict Equation Women: BMR = 655 + (9.6 x weight in kg) + (1.8 x height in cm) - (4.7 x age in years) Men: BMR = 66 + (13.7 x weight in kg) + (5 x height in cm) - (6.8 x age in years) """ if self.gender=="female": bmr= 655 + (9.6 * self.weight) + (1.8* self.height- (4.7* self.age)) else: bmr= 66 + (13.7*self.weight) + (5*self.height) - (6.8*self.age) self.bmr=bmr return "Hello,{} your BMR is around {} Kcal/day".format(self.name,bmr) def totalcal(self): """ time= exercise time (in mintues) intensity has three levels= 3(Light),4(Moderate),7(Vigorous) Total calories burned = Duration (in minutes)*(MET*3.5*weight in kg)/200 """ x=1 while x!=0: y=input("Did you do any exercises today (Yes/No): ") if y== "Yes": intensity=int(input("Intensity has three levels= 3(Light),4(Moderate),7(Vigorous) please enter your level: ")) time=int(input("Please Enter exercise time in minutes: ")) x=0 if y=="No": intensity=0 time=0 x=0 else: print("please check your answer, please either enter Yes or No" ) exc_cal=time*(intensity*3.5*self.weight)/200 total=round(exc_cal+self.bmr) print("Hello,the total burned calories for today is {} cal".format(total)) return total
TEST_RECORD_1 = { "Vendor": "Forcepoint CASB", "Product": "SaaS Security Gateway", "Version": "1.0", "SignatureID": "250677275138", "Name": "login", "Severity": "9", "CEFVersion": "0", "act": "Block", "app": "Office Apps", "cat": "Block Access to personal Office365/Block Access to personal Office365", "destinationServiceName": '"Office365"', "deviceExternalId": "2fe1d47db", "deviceFacility": "true", "deviceProcessName": '""', "dpriv": "User", "dst": "40.90.23.111", "dvc": "10.1.4.11", "dvchost": "my.skyfence.com", "end": "1569171970000", "externalId": "787", "fsize": "0", "msg": "//France/United States/", "outcome": "Success", "proto": "Office Apps", "reason": "login", "request": "https://login.live.com/rst2.srf", "requestClientApplication": 'Desktop/Windows 10/"mozilla/4.0 (compatible; msie 6.0; windows nt 10.0; win64; .net4.0c; .net4.0e; idcrl 14.10.0.15063.0.0; idcrl-cfg 16.0.26889.0; app svchost.exe, 10.0.15063.0, {df60e2df-88ad})"', "rt": "1569171970000", "sourceServiceName": "Managed", "src": "192.168.122.178", "start": "1569171970000", "suser": "02v", "cs5": "false", "dproc": "Unknown", "suid": "02vt", "cn1": "null", "AD.IPOrigin": "External", "AD.samAccountName": "02vta", } FIELDS_LST = ["Name", "suid", "suser", "duser"] USER_CONFIG_SEVERITY_LIST = [8, 10] USER_CONFIG_ACTION_LIST = ["block", "monitor"] USER_CONFIG_PRODUCT_LIST = [ "saas security gateway", "casb incidents", "casb admin audit log", "cloud service monitoring", ]
""" Description: Author: Jiaqi Gu (jqgu@utexas.edu) Date: 2021-06-09 00:15:14 LastEditors: Jiaqi Gu (jqgu@utexas.edu) LastEditTime: 2021-06-09 00:15:14 """
altura = float(input('Digite sua altura: ')) peso = (72.7 * altura) - 58 print(f'\nSeu peso ideal é {peso}.')
class Solution: def rob(self, nums) -> int: return max(self.helper(nums, 0, len(nums) - 2), self.helper(nums, 1, len(nums) - 1)) def helper(self, nums, start, end): include = 0 exclude = 0 for i in range(start, end + 1): i = exclude i = nums[i] + i exclude = max(exclude, include) include = i return max(exclude, include)
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) class H2database(MavenPackage): """H2 is an embeddable RDBMS written in Java.""" homepage = "https://h2database.com" url = "https://github.com/h2database/h2database/archive/version-1.4.200.tar.gz" version('1.4.200', sha256='59df19cc708442ae54a9639fc1c8c98ec6a55f66c154b39807032ba04fbe9c92') version('1.4.199', sha256='0f59d6e4ca71dda44a252897ca717a873abc1db800011fa068a7a57f921193ce') version('1.4.198', sha256='abba231e41ca31a9cc6571987ad97fe2c43232dc6d0e01c69ffbfcf3ea838967') version('1.4.197', sha256='46d883a491f56270bbd681afc8237a5d69787c1838561e8680afbac693c26344') version('1.4.196', sha256='9b0c7edac6ab7faad25743702aff1af63329fca37f6f5677908ae31ab968b219') version('1.4.195', sha256='ad7fe6cd2c2ef08eb026279468e4d2b37c979c053fd7a523982d843a03a8c560') version('1.4.194', sha256='0941a0d704be6e381644a39fa6003c0b0203905285a8330c905b950dfa2bbe31') version('1.4.193', sha256='7da24c48c2f06b59e21955f7dd8c919836f600ccf98b41531c24ec09c622149c') version('1.4.192', sha256='b5f370d7256cf816696a28acd282ed10bf8a05e09b814bf79d4527509846c977') version('1.4.191', sha256='9890adc66979647b131242e87ad1498b906c0dcc041d25fcb24ff304b86b4f98') build_directory = 'h2'
BOTS = [ { "name": "bot1", "username": "username", "password": "password", "api_key": "111AA1111AAAA11A1A11AA1AA1AAA111", "secrets": { "steamid": "76511111111111111", "shared_secret": "Aa11aA1+1aa1aAa1a=", "identity_secret": "aA11aaaa/aa11a/aAAa1a1=", }, }, { "name": "bot2", "username": "username", "password": "password", "api_key": "111AA1111AAAA11A1A11AA1AA1AAA111", "secrets": { "steamid": "76511111111111111", "shared_secret": "Aa11aA1+1aa1aAa1a=", "identity_secret": "aA11aaaa/aa11a/aAAa1a1=", }, }, ] OWNERS = ["76511111111111111"] TIMEOUT = 30 DEBUG = True
class strategyLogic(): def SMA(self, prices, length, period): return sum(prices[(length-period):length]) / period def SMAprev(self, prices, length, period): return sum(prices[(length-period-1):length-1]) / period
class KFeatures: """ 新产生的k线,已有的两根k线,原有最后一根k线不能确定是否形成分型 """ def __init__(self, datetime, high, low): self.datetime = datetime self.high = high self.low = low self.trend = None self.fx_type = None class Segment: """ 新产生的分型线,已有的两个线段极值点,原有最后一个极值点不能确定是否线段结束 """ pass
def Draw(update=True): global WreckContainer, ShipContainer, PlanetContainer, Frames, frozen_surface if GamePaused and update: if not frozen_surface: Text = Font.render("Game paused...", True, (255, 255, 255)) Surface.blit(Text, (40, 80)) frozen_surface = Surface.copy() Surface.blit(frozen_surface, (0, 0)) else: if gameData.shootings > 0: Surface.fill((100, 0, 0)) gameData.shootings -= 1 else: Surface.fill((0, 0, 0)) # Display direction (Thanks, retroredge, for pointing it out!) tmpColor = (playerView.zoomfactor * SCR_SIZE[0] * 2 / 640,) * 3 radius = SCR_SIZE[1] / 8 * 3 aacircle(Surface, tmpColor, (midx, midy), radius, 45, 1) rads = radians(playerShip.faceAngle + 90) rads2 = rads + 2.094 # radians(120) rads3 = rads - 2.094 # this should be precise enough # 240/180 # 180/3*4=240 xy = (midx + radius * cos(rads), midy + radius * sin(rads)) pygame.draw.aaline( Surface, tmpColor, xy, (midx + radius * cos(rads2), midy + radius * sin(rads2)), 1, ) pygame.draw.aaline( Surface, tmpColor, xy, (midx + radius * cos(rads3), midy + radius * sin(rads3)), 1, ) if playerShip.shoot > 0: pygame.draw.circle( Surface, (128, 128, 128), (midx, midy), int( 200 / playerView.zoomfactor) ) playerShip.shoot -= 1 STARy = midy - playerView.Y / 200 STARx = midx - playerView.X / 200 for i in star.xlist: for j in star.ylist: tmp = ( (i + star.params[0]) * star.params[1] + (j + star.params[2]) * star.params[3] + star.params[4] ) x = STARx + i * 200 * cos(tmp) y = STARy + j * 200 * sin(tmp) pygame.draw.aaline( Surface, (255, 255, 255), (x, y), (x + 1.5, y + 1.5), 1 ) pygame.draw.aaline( Surface, (255, 255, 255), (x + 1.5, y), (x, y + 1.5), 1 ) for Thing in PlanetContainer: aacircle( Surface, (255, 255, 255), ( (Thing.X - playerView.X) / playerView.zoomfactor + midx, (-Thing.Y - playerView.Y) / playerView.zoomfactor + midy, ), Thing.size / playerView.zoomfactor, int(10 * log(Thing.size * 0.2 / playerView.zoomfactor, 2)) + 20, 1, ) tmpExVisStr = "" if Thing.baseAt is not None: print(Thing.baseAt) Surface.blit( base, ( ( midx + ( -playerView.X + Thing.X + Thing.size * cos(radians(Thing.baseAt + 90)) ) / playerView.zoomfactor, midy + ( -playerView.Y - Thing.Y - Thing.size * sin(radians(Thing.baseAt + 90)) ) / playerView.zoomfactor, ) ), ) pygame.transform.rotate(base, (Thing.baseAt)) pygame.transform.scale(base, (playerView.zoomfactor, 8)) tmpExVisStr = "Own base" if Thing.enemyAt is not None: Surface.blit( enemybase, ( ( midx + ( -playerView.X + Thing.X + Thing.size * cos(radians(Thing.enemyAt + 90)) ) / playerView.zoomfactor, midy + ( -playerView.Y - Thing.Y - Thing.size * sin(radians(Thing.enemyAt + 90)) ) / playerView.zoomfactor, ) ), ) pygame.transform.rotate(enemybase, (Thing.enemyAt)) pygame.transform.scale(enemybase, (playerView.zoomfactor, 8)) tmpExVisStr = "Enemy base" if ExtendedVision: tmpExVisx = (Thing.X - playerView.X) / \ playerView.zoomfactor + midx tmpExVisy = (-Thing.Y - playerView.Y) / \ playerView.zoomfactor + midy Surface.blit( Font.render(tmpExVisStr, True, (255, 255, 255)), (tmpExVisx, tmpExVisy), ) Surface.blit( Font.render("Oil: " + str(int(Thing.oil)), True, (255, 255, 255)), (tmpExVisx, tmpExVisy + 15), ) for Thing in ShipContainer: Surface.blit( enemyship, ( midx + (-playerView.X + Thing.X) / playerView.zoomfactor, midy + (-playerView.Y - Thing.Y) / playerView.zoomfactor, ), ) pygame.transform.rotate(enemyship, Thing.faceAngle) pygame.transform.scale(enemyship, (playerView.zoomfactor, 8)) for Thing in WreckContainer: Surface.blit( enemybase, ( midx + (-playerView.X + Thing.X) / playerView.zoomfactor, midy + (-playerView.Y - Thing.Y) / playerView.zoomfactor, ), ) pygame.transform.rotate(enemyship, Thing.faceAngle) pygame.transform.scale(enemyship, playerView.zoomfactor) pygame.transform.scale.draw( Surface, (255, 255, 255), max=int(7 - Thing.explosion) ) if PlayerImages == 0: player = player1 elif PlayerImages == 1: if (Frames // 5) % 2: player = player3 else: player = player2 elif PlayerImages == 2: if (Frames // 5) % 2: player = player2 else: player = player3 Surface.blit(player, ((midx, midy))) pygame.transform.rotate( player, (-playerShip.faceAngle - 180 + playerView.angle) ) # pygame.transform.scale(player, (playerView.zoomfactor)) pygame.draw.rect( Surface, ( 255 - playerShip.oil * 255 / playerShip.maxoil if playerShip.oil > 0 else 255, 0, playerShip.oil * 255 / playerShip.maxoil if playerShip.oil > 0 else 0, ), ( 8, 8 + (playerShip.maxoil - playerShip.oil) * (SCR_SIZE[1] - 16) / playerShip.maxoil, 20, playerShip.oil * (SCR_SIZE[1] - 16) / playerShip.maxoil, ), 0, ) if playerShip.oil < 100: c_ = CLR_WARNING n_ = 2 else: c_ = CLR_NORMAL n_ = 1 # pygame.draw.rect(Surface, c_, (8, 8, 20, 464), n_) pygame.draw.rect(Surface, c_, (8, 8, 20, SCR_SIZE[1] - 16), n_) pygame.draw.rect( Surface, (0, 255, 0), (40, 8, (SCR_SIZE[0] - 48) * playerShip.hull / playerShip.maxhull, 20), 0, ) if playerShip.hull < 50: c_ = CLR_WARNING n_ = 2 else: c_ = CLR_NORMAL n_ = 1 pygame.draw.rect(Surface, c_, (40, 8, SCR_SIZE[0] - 48, 20), n_) if playerShip.speed > 16: c_ = CLR_WARNING else: c_ = CLR_NORMAL Text = BigFont.render("Speed: %.2d" % playerShip.speed, True, c_) Surface.blit(Text, (40, 40)) Text = Font.render( "Bases built: " + str(gameData.basesBuilt), True, (255, 255, 255) ) Surface.blit(Text, (40, 95)) Text = Font.render( "You are in Sector " + sectors.pixels2sector(playerShip.X, playerShip.Y), True, (255, 255, 255), ) Surface.blit(Text, (40, 125)) top = 40 for task in gameData.tasks: Text = Font.render(task, True, (255, 255, 255)) top += 13 Surface.blit(Text, (SCR_SIZE[0] - 240, top)) if playerShip.landedOn is not None: if PlanetContainer[playerShip.landedOn].playerLanded == "base": Text = Font.render( "Oil on planet: " + str(int(PlanetContainer[playerShip.landedOn].oil)), True, (255, 255, 255), ) Surface.blit(Text, (40, 110)) elif playerShip.landedBefore is not None: if PlanetContainer[playerShip.landedBefore].playerLanded == "base": Text = Font.render( "Oil on planet: " + str(int(PlanetContainer[playerShip.landedBefore].oil)), True, (255, 255, 255), ) Surface.blit(Text, (40, 110)) if update: pygame.display.flip()
"""Faça um Programa que verifique se uma letra digitada é vogal ou consoante""" l = str(input('Digite uma letra: ').upper().strip()) if l in 'AEIOU': print(f'A letra {l} é uma vogal.') else: print(f'{l} não é vogal')
''' For this Kata you will have to forget how to add two numbers together. The best explanation on what to do for this kata is this meme : https://i.ibb.co/Y01rMJR/caf.png In simple terms our method does not like the principle of carrying over numbers and just writes down every number it calculates. You may assume both integers arepositive integersand the result will not be bigger than Integer.MAX_VALUE (only for java) ''' def add(num1, num2): num1 = [int(i) for i in list(str(num1))] num2 = [int(i) for i in list(str(num2))] soma = [] if len(num1) != len(num2): dif = abs(len(num1) - len(num2)) if len(num1) > len(num2): for _ in range(dif): num2.insert(0, 0) elif len(num2) > len(num1): for _ in range(dif): num1.insert(0, 0) for a,b in zip(num1[::-1], num2[::-1]): soma.append(a+b) return int(''.join([str(i) for i in soma[::-1]]))
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Fork of @bazel_tools//tools/build_defs/repo:utils.bzl patch function with working_directory argument added. Upstream code is at https://github.com/bazelbuild/bazel/blob/f4214746fcd15f0ef8c4e747ef8e3edca9f112a5/tools/build_defs/repo/utils.bzl#L87 """ load(":repo_utils.bzl", "repo_utils") # Temporary directory for downloading remote patch files. _REMOTE_PATCH_DIR = ".tmp_remote_patches" def _use_native_patch(patch_args): """If patch_args only contains -p<NUM> options, we can use the native patch implementation.""" for arg in patch_args: if not arg.startswith("-p"): return False return True def _download_patch(ctx, patch_url, integrity, auth): name = patch_url.split("/")[-1] patch_path = ctx.path(_REMOTE_PATCH_DIR).get_child(name) ctx.download( patch_url, patch_path, canonical_id = ctx.attr.canonical_id, auth = auth, integrity = integrity, ) return patch_path def patch(ctx, patches = None, patch_cmds = None, patch_cmds_win = None, patch_tool = None, patch_args = None, auth = None, patch_directory = None): """Implementation of patching an already extracted repository. This rule is intended to be used in the implementation function of a repository rule. If the parameters `patches`, `patch_tool`, `patch_args`, `patch_cmds` and `patch_cmds_win` are not specified then they are taken from `ctx.attr`. Args: ctx: The repository context of the repository rule calling this utility function. patches: The patch files to apply. List of strings, Labels, or paths. patch_cmds: Bash commands to run for patching, passed one at a time to bash -c. List of strings patch_cmds_win: Powershell commands to run for patching, passed one at a time to powershell /c. List of strings. If the boolean value of this parameter is false, patch_cmds will be used and this parameter will be ignored. patch_tool: Path of the patch tool to execute for applying patches. String. patch_args: Arguments to pass to the patch tool. List of strings. auth: An optional dict specifying authentication information for some of the URLs. patch_directory: Directory to apply the patches in """ bash_exe = ctx.os.environ["BAZEL_SH"] if "BAZEL_SH" in ctx.os.environ else "bash" powershell_exe = ctx.os.environ["BAZEL_POWERSHELL"] if "BAZEL_POWERSHELL" in ctx.os.environ else "powershell.exe" if patches == None and hasattr(ctx.attr, "patches"): patches = ctx.attr.patches if patches == None: patches = [] remote_patches = {} remote_patch_strip = 0 if hasattr(ctx.attr, "remote_patches") and ctx.attr.remote_patches: if hasattr(ctx.attr, "remote_patch_strip"): remote_patch_strip = ctx.attr.remote_patch_strip remote_patches = ctx.attr.remote_patches if patch_cmds == None and hasattr(ctx.attr, "patch_cmds"): patch_cmds = ctx.attr.patch_cmds if patch_cmds == None: patch_cmds = [] if patch_cmds_win == None and hasattr(ctx.attr, "patch_cmds_win"): patch_cmds_win = ctx.attr.patch_cmds_win if patch_cmds_win == None: patch_cmds_win = [] if patch_tool == None and hasattr(ctx.attr, "patch_tool"): patch_tool = ctx.attr.patch_tool if not patch_tool: patch_tool = "patch" native_patch = True else: native_patch = False if patch_args == None and hasattr(ctx.attr, "patch_args"): patch_args = ctx.attr.patch_args if patch_args == None: patch_args = [] if len(remote_patches) > 0 or len(patches) > 0 or len(patch_cmds) > 0: ctx.report_progress("Patching repository") # Apply remote patches for patch_url in remote_patches: integrity = remote_patches[patch_url] patchfile = _download_patch(ctx, patch_url, integrity, auth) ctx.patch(patchfile, remote_patch_strip) ctx.delete(patchfile) ctx.delete(ctx.path(_REMOTE_PATCH_DIR)) # Apply local patches if native_patch and _use_native_patch(patch_args) and not patch_directory: if patch_args: strip = int(patch_args[-1][2:]) else: strip = 0 for patchfile in patches: ctx.patch(patchfile, strip) else: for patchfile in patches: command = "{patchtool} {patch_args} < {patchfile}".format( patchtool = patch_tool, patchfile = ctx.path(patchfile), patch_args = " ".join([ "'%s'" % arg for arg in patch_args ]), ) st = ctx.execute([bash_exe, "-c", command], working_directory = patch_directory) if st.return_code: fail("Error applying patch %s:\n%s%s" % (str(patchfile), st.stderr, st.stdout)) if repo_utils.is_windows(ctx) and patch_cmds_win: for cmd in patch_cmds_win: st = ctx.execute([powershell_exe, "/c", cmd], working_directory = patch_directory) if st.return_code: fail("Error applying patch command %s:\n%s%s" % (cmd, st.stdout, st.stderr)) else: for cmd in patch_cmds: st = ctx.execute([bash_exe, "-c", cmd], working_directory = patch_directory) if st.return_code: fail("Error applying patch command %s:\n%s%s" % (cmd, st.stdout, st.stderr))
def ExportResults(aggr): results = [] for topic in aggr.topics: if len(aggr.topics[topic]) > 1: temp_links = [] temp_plaintexts = [] for idx in aggr.topics[topic]: if aggr.articles[idx].metadata["plaintext"] not in temp_plaintexts: temp_plaintexts.append(aggr.articles[idx].metadata["plaintext"]) temp_links.append(aggr.articles[idx].url) if len(temp_links) > 2: results.append(temp_links) return results
class property(object): def __init__(self, *args): int = ___id("%int") length = ___delta("tuple-len", args, int) self.fget = None self.fset = None self.fdel = None if length > 0: self.fget = args[0] if length > 1: self.fset = args[1] if length > 2: self.fdel = args[2] def __get__(self, obj, obj_cls): if obj is None: return self if self.fget is None: raise AttributeError("Unreadable attribute") return self.fget(obj) def __set__(self, obj, value): if self.fset is None: raise AttributeError("Can't set attribute") self.fset(obj, value) def __delete__(self, obj): if self.fdel is None: raise AttributeError("Can't delete attribute") self.fdel(obj) def getter(self, g): self.fget = g return self def setter(self, s): self.fset = s return self def deleter(self, d): self.fdel = d return self
JUDGE_LANG_C = 1 # C JUDGE_LANG_CPP = 2 # C++ JUDGE_LANG_PYTHON = 3 # Python/PyPy JUDGE_LANG_RUST = 4 # Rust JUDGE_LANG_JS = 5 # Node.js JUDGE_LANG_GO = 6 # Golang JUDGE_LANG_JAVA = 7 # Java JUDGE_LANG_RUBY = 8 # Ruby JUDGE_LANG_PASCAL = 9 # Pascal JUDGE_LANG_SUBMIT_ANSWER = 10 # For submit answer problem DEFAULT_LANG_INFO = { JUDGE_LANG_C: '89,clang,O2', # standard, compiler, optimize level JUDGE_LANG_CPP: '17,clang,O2', # standard, compiler, optimize level JUDGE_LANG_PYTHON: 'cpython,36', # runner, version JUDGE_LANG_JAVA: 'java', # frontend JUDGE_LANG_PASCAL: 'O2', # optimize level JUDGE_LANG_SUBMIT_ANSWER: 'sha256', # hash algorithm JUDGE_LANG_RUST: '', JUDGE_LANG_JS: '', JUDGE_LANG_GO: '', JUDGE_LANG_RUBY: '', }
class TextTrigger: STRUCT_NAME = "TileMap_TextTrigger" def __init__( self, id: int, x: int, y: int, width: int, height: int, string: str, ability_pickup: int ) -> None: self.id = id self.x = x self.y = y self.width = width self.height = height self.string = string self.id = id self.ability_pickup = int(ability_pickup) if not ability_pickup is None else -1 def make_static_init_entry(self) -> str: return f'({TextTrigger.typename()}) {{.id = {self.id}, .x={self.x}, .y={self.y}, .width={self.width}, .height={self.height}, .string = "{self.string}", .length={len(self.string)}, .ability_pickup={self.ability_pickup}}}' def typename() -> str: return f"struct {TextTrigger.STRUCT_NAME}" class StaticTextTriggerList: def __init__(self, ctx_name: str) -> None: self.triggers = [] self.ctx_name = ctx_name def add_trigger(self, x: TextTrigger): self.triggers.append(x) def make_static_init(self) -> str: list_entries = ", ".join([s.make_static_init_entry() for s in self.triggers]) return f"{TextTrigger.typename()} {self.get_static_array_name()}[] = {{{list_entries}}};" def get_static_array_name(self): return f"{self.ctx_name}_text_triggers_data" class TextTriggers: def __init__(self, ctx_name: str) -> None: self.text_triggers = StaticTextTriggerList(ctx_name) self.ctx_name = ctx_name def make_assignment(self) -> str: return ( "{\n" f".text_triggers = {self.text_triggers.get_static_array_name()}," f".length = {len(self.text_triggers.triggers)}," "},\n" )
# Copyright (C) 2013 Lindley Graham """ This package is a Python-based framework for running batches of parallel ADCIRC simulations with varying parameters (Manning's n and limited variable bathymetry, etc). Includes documentation for a Python interface to a slightly modified verion of GridData (Griddata_v1.32.F90). GridData is a FORTRAN program originally developed by Seizo Tanaka (ST3) and C.H.Lab., University of Notre Dame. All code documented here is written for Linux with a bash shell. It can be modified for other shells. This code requires GNU Parallel to be installed in order to run properly. This package contaings three subpackages * :mod:`~polyadcirc.pyADCIRC` a set of modules primarily for I/O with :program:`ADCIRC` through text files * :mod:`~polyadcirc.run_framework` a set of modules used to run batches of :program:`PADCIRC` in parallel * :mod:`~polyadcirc.pyGriddata` a set modules and some FORTRAN code used to create sets of nodal data for use by :program:`PADCIRC` """ __all__ = ['util', 'pyADCIRC', 'run_framework', 'pyGriddata']
def messageFromBinaryCode(c): j = 8 i = 0 message = '' for item in range(len(c)//8): message += chr(int(c[i:j],2)) i += 8 j += 8 return message
# IF STATEMENTS # # In this problem, write a function named "lossy_transform" that takes an # integer parameter and returns the corresponding value found in this table # | Input | Output | # |------------------------------------------------|------------------------| # | Less than 10 | 0 | # | Greater than or equal to 10 and less than 47 | The input times 2 | # | Greater than or equal to 47 and less than 1001 | The input divided by 3 | # | Greater than or equal to 1001 | None | # # That last output is the literal None, not a string. # # Your code must include at least one of each of the following keywords: # * if # * elif # * else # # All inputs are guaranteed to be greater than 0. # # There are four sample data calls for you to use. # WRITE YOUR FUNCTION HERE def lossy_transform(num): if num < 10: return 0 elif num < 47: return num * 2 elif num < 1001: return num / 3 else: return None # TEST DATA print(lossy_transform(8)) # > 0 print(lossy_transform(33)) # > 66 print(lossy_transform(99)) # > 33 print(lossy_transform(1002)) # > None
#generates hg19_splits for cross-validation #hg19 (i.e. /mnt/data/annotations/by_release/hg19.GRCh37/hg19.chrom.sizes). Any chromosome from this chrom.sizes file that is not in the test/validation split is assumed to be in the training split (only considering chroms 1 - 22, X, Y hg19_chroms=['chr1','chr2','chr3','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chr19','chr20','chr21','chr22','chrX','chrY'] hg19_splits=dict() hg19_splits[0]={'test':['chr1'], 'valid':['chr10','chr8'], 'train':['chr2','chr3','chr4','chr5','chr6','chr7','chr9','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chr19','chr20','chr21','chr22','chrX','chrY']} hg19_splits[1]={'test':['chr19','chr2'], 'valid':['chr1'], 'train':['chr3','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chr20','chr21','chr22','chrX','chrY']} hg19_splits[2]={'test':['chr3','chr20'], 'valid':['chr19','chr2'], 'train':['chr1','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chr21','chr22','chrX','chrY']} hg19_splits[3]={'test':['chr13','chr6','chr22'], 'valid':['chr3','chr20'], 'train':['chr1','chr2','chr4','chr5','chr7','chr8','chr9','chr10','chr11','chr12','chr14','chr15','chr16','chr17','chr18','chr19','chr21','chrX','chrY']} hg19_splits[4]={'test':['chr5','chr16','chrY'], 'valid':['chr13','chr6','chr22'], 'train':['chr1','chr2','chr3','chr4','chr7','chr8','chr9','chr10','chr11','chr12','chr14','chr15','chr17','chr18','chr19','chr20','chr21','chrX']} hg19_splits[5]={'test':['chr4','chr15','chr21'], 'valid':['chr5','chr16','chrY'], 'train':['chr1','chr2','chr3','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr17','chr18','chr19','chr20','chr22','chrX']} hg19_splits[6]={'test':['chr7','chr18','chr14'], 'valid':['chr4','chr15','chr21'], 'train':['chr1','chr2','chr3','chr5','chr6','chr8','chr9','chr10','chr11','chr12','chr13','chr16','chr17','chr19','chr20','chr22','chrX','chrY']} hg19_splits[7]={'test':['chr11','chr17','chrX'], 'valid':['chr7','chr18','chr14'], 'train':['chr1','chr2','chr3','chr4','chr5','chr6','chr8','chr9','chr10','chr12','chr13','chr15','chr16','chr19','chr20','chr21','chr22','chrY']} hg19_splits[8]={'test':['chr12','chr9'], 'valid':['chr11','chr17','chrX'], 'train':['chr1','chr2','chr3','chr4','chr5','chr6','chr7','chr8','chr10','chr13','chr14','chr15','chr16','chr18','chr19','chr20','chr21','chr22','chrY']} hg19_splits[9]={'test':['chr10','chr8'], 'valid':['chr12','chr9'], 'train':['chr1','chr2','chr3','chr4','chr5','chr6','chr7','chr11','chr13','chr14','chr15','chr16','chr17','chr18','chr19','chr20','chr21','chr22','chrX','chrY']} #Note: the splits for hg19 and hg38 are the same, as are the chromosomes used for training models. splits=dict() splits['hg19']=hg19_splits splits['hg38']=hg19_splits chroms=dict() chroms['hg19']=hg19_chroms chroms['hg38']=hg19_chroms mm10_chroms = ['chr1','chr2','chr3','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chr19','chrX','chrY'] mm10_splits = dict() mm10_splits[0] = {'test':['chr1'], 'valid':['chr10','chr8'], 'train':['chr2','chr3','chr4','chr5','chr6','chr7','chr9','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chr19','chrX','chrY']} mm10_splits[1] = {'test':['chr19','chr2'], 'valid':['chr1'], 'train':['chr3','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chrX','chrY']} mm10_splits[2] = {'test':['chr3'], 'valid':['chr19','chr2'], 'train':['chr1','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chrX','chrY']} mm10_splits[3] = {'test':['chr13','chr6'], 'valid':['chr3'], 'train':['chr1','chr2','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr14','chr15','chr17','chr18','chr19','chrX','chrY']} mm10_splits[4] = {'test':['chr5','chr16','chrY'], 'valid':['chr13','chr6'], 'train':['chr1','chr2','chr3','chr4','chr7','chr8','chr9','chr10','chr11','chr12','chr14','chr15','chr17','chr18','chr19','chrX']} mm10_splits[5] = {'test':['chr4','chr15'], 'valid':['chr5','chr16','chrY'], 'train':['chr1','chr2','chr3','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr17','chr18','chr19','chrX']} mm10_splits[6] = {'test':['chr7','chr18','chr14'], 'valid':['chr4','chr15'], 'train':['chr1','chr2','chr3','chr5','chr6','chr8','chr9','chr10','chr11','chr12','chr13','chr16','chr17','chr19','chrX','chrY']} mm10_splits[7] = {'test':['chr11','chr17','chrX'], 'valid':['chr7','chr18','chr14'], 'train':['chr1','chr2','chr3','chr4','chr5','chr6','chr8','chr9','chr10','chr12','chr13','chr15','chr16','chr19','chrY']} mm10_splits[8] = {'test':['chr12','chr9'], 'valid':['chr11','chr17','chrX'], 'train':['chr1','chr2','chr3','chr4','chr5','chr6','chr7','chr8','chr10','chr13','chr14','chr15','chr16','chr18','chr19','chrY']} mm10_splits[9] = {'test':['chr10','chr8'], 'valid':['chr12','chr9'], 'train':['chr1','chr2','chr3','chr4','chr5','chr6','chr7','chr11','chr13','chr14','chr15','chr16','chr17','chr18','chr19','chrX','chrY']} #mm9 & mm10 splits are the same splits['mm10']=mm10_splits splits['mm9']=mm10_splits chroms['mm10']=mm10_splits chroms['mm9']=mm10_splits def get_chroms(args,split): if split=="train": if args.train_chroms is not None: return args.train_chroms else: assert args.genome is not None assert args.fold is not None return splits[args.genome][args.fold]['train'] elif split=='valid': if args.validation_chroms is not None: return args.validation_chroms else: assert args.genome is not None assert args.fold is not None return splits[args.genome][args.fold]['valid'] elif split=="test": if args.predict_chroms is not None: return args.predict_chroms else: assert args.genome is not None assert args.fold is not None return splits[args.genome][args.fold]['test'] else: raise Exception("invalid split specified, must be one of train,valid,test; you gave:"+str(split)) def get_bed_regions_for_fold_split(bed_regions,genome,fold,split): chroms_to_keep=splits[genome][int(fold)][split] bed_regions_to_keep=bed_regions[bed_regions[0].isin(chroms_to_keep)] print("got split:"+str(split)+" for fold:"+str(fold) +" for bed regions:"+str(bed_regions_to_keep.shape)) return bed_regions_to_keep
# # PySNMP MIB module ENTERASYS-CLASS-OF-SERVICE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-CLASS-OF-SERVICE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:48:47 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") ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint") dot1dBasePort, = mibBuilder.importSymbols("BRIDGE-MIB", "dot1dBasePort") etsysModules, = mibBuilder.importSymbols("ENTERASYS-MIB-NAMES", "etsysModules") ifName, = mibBuilder.importSymbols("IF-MIB", "ifName") EnabledStatus, = mibBuilder.importSymbols("P-BRIDGE-MIB", "EnabledStatus") PortList, = mibBuilder.importSymbols("Q-BRIDGE-MIB", "PortList") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") IpAddress, TimeTicks, NotificationType, Counter32, Bits, ModuleIdentity, Counter64, MibIdentifier, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Integer32, ObjectIdentity, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "TimeTicks", "NotificationType", "Counter32", "Bits", "ModuleIdentity", "Counter64", "MibIdentifier", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Integer32", "ObjectIdentity", "Gauge32") TruthValue, RowStatus, DisplayString, TextualConvention, TimeStamp = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "RowStatus", "DisplayString", "TextualConvention", "TimeStamp") etsysCosMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55)) etsysCosMIB.setRevisions(('2008-02-13 15:03', '2007-05-24 02:29', '2005-04-13 21:22', '2004-11-22 16:28', '2004-11-09 15:52',)) if mibBuilder.loadTexts: etsysCosMIB.setLastUpdated('200802131503Z') if mibBuilder.loadTexts: etsysCosMIB.setOrganization('Enterasys Networks, Inc.') class TxqArbiterModes(TextualConvention, Bits): status = 'current' namedValues = NamedValues(("strict", 0), ("weightedFairQ", 1), ("lowLatencyQ", 2)) class TxqAlgorithms(TextualConvention, Bits): status = 'current' namedValues = NamedValues(("tailDrop", 0), ("headDrop", 1), ("red", 2), ("wred", 3)) class TxQueueList(TextualConvention, OctetString): status = 'current' class EtsysCosRateTypes(TextualConvention, Bits): status = 'current' namedValues = NamedValues(("percentage", 0), ("pps", 1), ("kbps", 2), ("mbps", 3), ("gbps", 4), ("tbps", 5)) class EtsysCosRlCapabilities(TextualConvention, Bits): status = 'current' namedValues = NamedValues(("drop", 0), ("reprioritize", 1), ("count", 2), ("chainingAnd", 3), ("chainingOr", 4), ("syslog", 5), ("trap", 6), ("disable", 7)) class EtsysViolationAction(TextualConvention, Bits): status = 'current' namedValues = NamedValues(("syslog", 0), ("trap", 1), ("disable", 2)) class EtsysRateLimitingType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4)) namedValues = NamedValues(("drop", 0), ("dropOR", 1), ("rePrioritize", 2), ("rePrioritizeOR", 3), ("count", 4)) class EtsysRateLimitResetBits(TextualConvention, Bits): status = 'current' namedValues = NamedValues(("clearViolation", 0), ("clearUnitCounter", 1)) etsysCosObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1)) etsysCosNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 0)) etsysCosMasterReset = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 1)) etsysCosCapabilities = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 2)) etsysCos = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3)) etsysCosTxq = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4)) etsysCosIrl = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5)) etsysCosOrl = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6)) etsysCosFloodControl = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7)) etsysCosMibObjectAnullingBehavior = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosMibObjectAnullingBehavior.setStatus('current') etsysCosCapability = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 2, 1), Bits().clone(namedValues=NamedValues(("supports8021Dpriority", 0), ("supportsTosOverwrite", 1), ("supportsTosMasking", 2), ("supportsTransmitQueue", 3), ("supportsInboundRateLimiting", 4), ("supportsOutBoundRateLimiting", 5), ("supportsDropPrecedence", 6), ("supportsUnknownUnicastRateLimiting", 7), ("supportsMulticastRateLimiting", 8), ("supportsBroadcastRateLimiting", 9), ("supportsTransmitQueuePortShaping", 10)))).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosCapability.setStatus('current') etsysCosMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosMaxEntries.setStatus('current') etsysCosNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 2), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosNumEntries.setStatus('current') etsysCosLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 3), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosLastChange.setStatus('current') etsysCosEnableState = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 4), EnabledStatus().clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosEnableState.setStatus('current') etsysCosTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5), ) if mibBuilder.loadTexts: etsysCosTable.setStatus('current') etsysCosEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIndex")) if mibBuilder.loadTexts: etsysCosEntry.setStatus('current') etsysCosIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767))) if mibBuilder.loadTexts: etsysCosIndex.setStatus('current') etsysCosRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosRowStatus.setStatus('current') etsysCos8021dPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 7), )).clone(-1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCos8021dPriority.setStatus('current') etsysCosTosValue = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 2)).clone(hexValue="")).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosTosValue.setStatus('current') etsysCosTxqReference = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767))).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosTxqReference.setStatus('current') etsysCosIrlReference = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 32767), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosIrlReference.setStatus('current') etsysCosOrlReference = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 32767), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosOrlReference.setStatus('current') etsysCosDropPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 255), )).clone(-1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosDropPrecedence.setStatus('current') etsysCosFloodControlStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 9), EnabledStatus().clone('disabled')).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosFloodControlStatus.setStatus('current') etsysCosTxqNumPortTypes = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2048))).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqNumPortTypes.setStatus('current') etsysCosTxqPortTypeTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2), ) if mibBuilder.loadTexts: etsysCosTxqPortTypeTable.setStatus('current') etsysCosTxqPortTypeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeIndex")) if mibBuilder.loadTexts: etsysCosTxqPortTypeEntry.setStatus('current') etsysCosTxqPortTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767))) if mibBuilder.loadTexts: etsysCosTxqPortTypeIndex.setStatus('current') etsysCosTxqPortTypeDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 2), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqPortTypeDescr.setStatus('current') etsysCosTxqPortTypeEligiblePorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 3), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqPortTypeEligiblePorts.setStatus('current') etsysCosTxqPortTypeUnselectedPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 4), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqPortTypeUnselectedPorts.setStatus('current') etsysCosTxqPortTypeNumberOfQueues = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqPortTypeNumberOfQueues.setStatus('current') etsysCosTxqPortTypeSupportedRateTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 6), EtsysCosRateTypes()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqPortTypeSupportedRateTypes.setStatus('current') etsysCosTxqPortTypeNumberOfSlices = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqPortTypeNumberOfSlices.setStatus('current') etsysCosTxqPortTypeQueueAlgorithms = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 8), TxqAlgorithms()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqPortTypeQueueAlgorithms.setStatus('current') etsysCosTxqPortTypeQueueArbiterModes = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 9), TxqArbiterModes()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqPortTypeQueueArbiterModes.setStatus('current') etsysCosTxqPortTypeMaxDropPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqPortTypeMaxDropPrecedence.setStatus('current') etsysCosTxqPortTypeLLQEligibleQueues = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 11), TxQueueList()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqPortTypeLLQEligibleQueues.setStatus('current') etsysCosTxqUnitTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3), ) if mibBuilder.loadTexts: etsysCosTxqUnitTable.setStatus('current') etsysCosTxqUnitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqUnitTypeIndex")) if mibBuilder.loadTexts: etsysCosTxqUnitEntry.setStatus('current') etsysCosTxqUnitTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1, 1), EtsysCosRateTypes()) if mibBuilder.loadTexts: etsysCosTxqUnitTypeIndex.setStatus('current') etsysCosTxqUnitMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqUnitMaxRate.setStatus('current') etsysCosTxqUnitMinRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqUnitMinRate.setStatus('current') etsysCosTxqUnitGranularity = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqUnitGranularity.setStatus('current') etsysCosTxqMaxPortGroups = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqMaxPortGroups.setStatus('current') etsysCosTxqNumPortGroups = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqNumPortGroups.setStatus('current') etsysCosTxqPortGroupLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 6), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqPortGroupLastChange.setStatus('current') etsysCosTxqPortGroupTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7), ) if mibBuilder.loadTexts: etsysCosTxqPortGroupTable.setStatus('current') etsysCosTxqPortGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeIndex")) if mibBuilder.loadTexts: etsysCosTxqPortGroupEntry.setStatus('current') etsysCosTxqPortGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 32767), ))) if mibBuilder.loadTexts: etsysCosTxqPortGroupIndex.setStatus('current') etsysCosTxqPortGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosTxqPortGroupRowStatus.setStatus('current') etsysCosTxqPortGroupList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1, 3), PortList().clone(hexValue="")).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosTxqPortGroupList.setStatus('current') etsysCosTxqPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1, 4), SnmpAdminString().clone(hexValue="")).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosTxqPortGroupName.setStatus('current') etsysCosTxqPortCfgTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 8), ) if mibBuilder.loadTexts: etsysCosTxqPortCfgTable.setStatus('current') etsysCosTxqPortCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 8, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeIndex")) if mibBuilder.loadTexts: etsysCosTxqPortCfgEntry.setStatus('current') etsysCosTxqPortArbMode = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 8, 1, 1), TxqArbiterModes()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqPortArbMode.setStatus('current') etsysCosTxqPortSliceSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 8, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 256))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosTxqPortSliceSetting.setStatus('current') etsysCosTxqResourceTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9), ) if mibBuilder.loadTexts: etsysCosTxqResourceTable.setStatus('current') etsysCosTxqResourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqResourceQueueNum")) if mibBuilder.loadTexts: etsysCosTxqResourceEntry.setStatus('current') etsysCosTxqResourceQueueNum = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767))) if mibBuilder.loadTexts: etsysCosTxqResourceQueueNum.setStatus('current') etsysCosTxqPortQUnit = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 2), EtsysCosRateTypes()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosTxqPortQUnit.setStatus('current') etsysCosTxqPortQRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 2147483647), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosTxqPortQRate.setStatus('current') etsysCosTxqPortQAlgorithm = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 4), TxqAlgorithms()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosTxqPortQAlgorithm.setStatus('current') etsysCosTxqPortQLLQenable = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 5), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosTxqPortQLLQenable.setStatus('current') etsysCosTxqReferenceMappingMaxReference = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqReferenceMappingMaxReference.setStatus('current') etsysCosTxqReferenceMappingTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 11), ) if mibBuilder.loadTexts: etsysCosTxqReferenceMappingTable.setStatus('current') etsysCosTxqReferenceMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 11, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqReference")) if mibBuilder.loadTexts: etsysCosTxqReferenceMappingEntry.setStatus('current') etsysCosTxqResourceQueueNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 11, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosTxqResourceQueueNumber.setStatus('current') etsysCosTxqDropProfilesMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 12), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqDropProfilesMaxEntries.setStatus('current') etsysCosTxqDropProfilesNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 13), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqDropProfilesNumEntries.setStatus('current') etsysCosTxqDropProfilesLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 14), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosTxqDropProfilesLastChange.setStatus('current') etsysCosTxqDropProfilesTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15), ) if mibBuilder.loadTexts: etsysCosTxqDropProfilesTable.setStatus('current') etsysCosTxqDropProfilesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropSettingIndex")) if mibBuilder.loadTexts: etsysCosTxqDropProfilesEntry.setStatus('current') etsysCosTxqDropSettingIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 1), Unsigned32()) if mibBuilder.loadTexts: etsysCosTxqDropSettingIndex.setStatus('current') etsysCosTxqDropProfilesRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosTxqDropProfilesRowStatus.setStatus('current') etsysCosTxqDropProfilesMin = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosTxqDropProfilesMin.setStatus('current') etsysCosTxqDropProfilesMax = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100)).clone(100)).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosTxqDropProfilesMax.setStatus('current') etsysCosTxqDropProfilesMaxDropProb = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosTxqDropProfilesMaxDropProb.setStatus('current') etsysCosTxqDropProfilesQueueDepthAtMaxProb = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100)).clone(100)).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosTxqDropProfilesQueueDepthAtMaxProb.setStatus('current') etsysCosTxqDropPrecedenceTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 16), ) if mibBuilder.loadTexts: etsysCosTxqDropPrecedenceTable.setStatus('current') etsysCosTxqDropPrecedenceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 16, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqResourceQueueNum"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTableDropPrecedence")) if mibBuilder.loadTexts: etsysCosTxqDropPrecedenceEntry.setStatus('current') etsysCosTableDropPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 16, 1, 1), Unsigned32()) if mibBuilder.loadTexts: etsysCosTableDropPrecedence.setStatus('current') etsysCosTxqDropProfileQueueCfgID = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 16, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosTxqDropProfileQueueCfgID.setStatus('current') etsysCosIrlPortTypeMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlPortTypeMaxEntries.setStatus('current') etsysCosIrlPortTypeTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2), ) if mibBuilder.loadTexts: etsysCosIrlPortTypeTable.setStatus('current') etsysCosIrlPortTypeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeIndex")) if mibBuilder.loadTexts: etsysCosIrlPortTypeEntry.setStatus('current') etsysCosIrlPortTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767))) if mibBuilder.loadTexts: etsysCosIrlPortTypeIndex.setStatus('current') etsysCosIrlPortTypeDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 2), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlPortTypeDescr.setStatus('current') etsysCosIrlPortTypeEligiblePorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 3), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlPortTypeEligiblePorts.setStatus('current') etsysCosIrlPortTypeUnselectedPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 4), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlPortTypeUnselectedPorts.setStatus('current') etsysCosIrlPortTypeNumberOfIRLs = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlPortTypeNumberOfIRLs.setStatus('current') etsysCosIrlPortTypeSupportedRateTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 6), EtsysCosRateTypes()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlPortTypeSupportedRateTypes.setStatus('current') etsysCosIrlPortTypeCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 7), EtsysCosRlCapabilities()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlPortTypeCapabilities.setStatus('current') etsysCosIrlUnitTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3), ) if mibBuilder.loadTexts: etsysCosIrlUnitTable.setStatus('current') etsysCosIrlUnitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlUnitTypeIndex")) if mibBuilder.loadTexts: etsysCosIrlUnitEntry.setStatus('current') etsysCosIrlUnitTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1, 1), EtsysCosRateTypes()) if mibBuilder.loadTexts: etsysCosIrlUnitTypeIndex.setStatus('current') etsysCosIrlUnitMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlUnitMaxRate.setStatus('current') etsysCosIrlUnitMinRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlUnitMinRate.setStatus('current') etsysCosIrlUnitGranularity = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlUnitGranularity.setStatus('current') etsysCosIrlPortGroupMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlPortGroupMaxEntries.setStatus('current') etsysCosIrlPortGroupNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlPortGroupNumEntries.setStatus('current') etsysCosIrlPortGroupLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 6), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlPortGroupLastChange.setStatus('current') etsysCosIrlPortGroupTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7), ) if mibBuilder.loadTexts: etsysCosIrlPortGroupTable.setStatus('current') etsysCosIrlPortGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeIndex")) if mibBuilder.loadTexts: etsysCosIrlPortGroupEntry.setStatus('current') etsysCosIrlPortGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 32767), ))) if mibBuilder.loadTexts: etsysCosIrlPortGroupIndex.setStatus('current') etsysCosIrlPortGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosIrlPortGroupRowStatus.setStatus('current') etsysCosIrlPortGroupList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1, 3), PortList().clone(hexValue="")).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlPortGroupList.setStatus('current') etsysCosIrlPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1, 4), SnmpAdminString().clone(hexValue="")).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlPortGroupName.setStatus('current') etsysCosIrlPortCfgTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 8), ) if mibBuilder.loadTexts: etsysCosIrlPortCfgTable.setStatus('current') etsysCosIrlPortCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 8, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeIndex")) if mibBuilder.loadTexts: etsysCosIrlPortCfgEntry.setStatus('current') etsysCosIrlPortCfgFloodLimiter = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 8, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 65535), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlPortCfgFloodLimiter.setStatus('deprecated') etsysCosIrlResourceTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9), ) if mibBuilder.loadTexts: etsysCosIrlResourceTable.setStatus('current') etsysCosIrlResourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceIrlNum")) if mibBuilder.loadTexts: etsysCosIrlResourceEntry.setStatus('current') etsysCosIrlResourceIrlNum = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 1), Unsigned32()) if mibBuilder.loadTexts: etsysCosIrlResourceIrlNum.setStatus('current') etsysCosIrlResourceUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 2), EtsysCosRateTypes().clone(namedValues=NamedValues(("pps", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlResourceUnits.setStatus('current') etsysCosIrlResourceRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 2147483647), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlResourceRate.setStatus('current') etsysCosIrlResourceParentIrl = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 4), Integer32().clone(-1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlResourceParentIrl.setStatus('current') etsysCosIrlResourceType = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 5), EtsysRateLimitingType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlResourceType.setStatus('current') etsysCosIrlResourceActionCosIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 6), Integer32().clone(-1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlResourceActionCosIndex.setStatus('current') etsysCosIrlResourceAction = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 7), EtsysViolationAction()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlResourceAction.setStatus('current') etsysCosIrlResourceViolationPortList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 8), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlResourceViolationPortList.setStatus('current') etsysCosIrlResourceClearCounters = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 9), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlResourceClearCounters.setStatus('current') etsysCosIrlReferenceMappingMaxReference = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlReferenceMappingMaxReference.setStatus('current') etsysCosIrlReferenceMappingLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 11), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlReferenceMappingLastChange.setStatus('current') etsysCosIrlReferenceMappingTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 12), ) if mibBuilder.loadTexts: etsysCosIrlReferenceMappingTable.setStatus('current') etsysCosIrlReferenceMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 12, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlReference")) if mibBuilder.loadTexts: etsysCosIrlReferenceMappingEntry.setStatus('current') etsysCosIrlResourceIrlNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 12, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 32767), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlResourceIrlNumber.setStatus('current') etsysCosIrlViolationClearTable = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 13), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlViolationClearTable.setStatus('current') etsysCosIrlViolationLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 14), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlViolationLastChange.setStatus('current') etsysCosIrlDisabledPortsList = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 15), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlDisabledPortsList.setStatus('current') etsysCosIrlViolationTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16), ) if mibBuilder.loadTexts: etsysCosIrlViolationTable.setStatus('current') etsysCosIrlViolationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceIrlNumber")) if mibBuilder.loadTexts: etsysCosIrlViolationEntry.setStatus('current') etsysCosIrlPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767))) if mibBuilder.loadTexts: etsysCosIrlPortIndex.setStatus('current') etsysCosIrlViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1, 2), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlViolation.setStatus('current') etsysCosIrlCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosIrlCounter.setStatus('current') etsysCosIrlResetFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1, 4), EtsysRateLimitResetBits()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosIrlResetFlags.setStatus('current') etsysCosOrlPortTypeMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlPortTypeMaxEntries.setStatus('current') etsysCosOrlPortTypeTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2), ) if mibBuilder.loadTexts: etsysCosOrlPortTypeTable.setStatus('current') etsysCosOrlPortTypeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeIndex")) if mibBuilder.loadTexts: etsysCosOrlPortTypeEntry.setStatus('current') etsysCosOrlPortTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767))) if mibBuilder.loadTexts: etsysCosOrlPortTypeIndex.setStatus('current') etsysCosOrlPortTypeDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 2), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlPortTypeDescr.setStatus('current') etsysCosOrlPortTypeEligiblePorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 3), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlPortTypeEligiblePorts.setStatus('current') etsysCosOrlPortTypeUnselectedPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 4), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlPortTypeUnselectedPorts.setStatus('current') etsysCosOrlPortTypeNumberOfORLs = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlPortTypeNumberOfORLs.setStatus('current') etsysCosOrlPortTypeSupportedRateTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 6), EtsysCosRateTypes()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlPortTypeSupportedRateTypes.setStatus('current') etsysCosOrlPortTypeCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 7), EtsysCosRlCapabilities()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlPortTypeCapabilities.setStatus('current') etsysCosOrlUnitTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3), ) if mibBuilder.loadTexts: etsysCosOrlUnitTable.setStatus('current') etsysCosOrlUnitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlUnitTypeIndex")) if mibBuilder.loadTexts: etsysCosOrlUnitEntry.setStatus('current') etsysCosOrlUnitTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1, 1), EtsysCosRateTypes()) if mibBuilder.loadTexts: etsysCosOrlUnitTypeIndex.setStatus('current') etsysCosOrlUnitMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlUnitMaxRate.setStatus('current') etsysCosOrlUnitMinRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlUnitMinRate.setStatus('current') etsysCosOrlUnitGranularity = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlUnitGranularity.setStatus('current') etsysCosOrlPortGroupMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlPortGroupMaxEntries.setStatus('current') etsysCosOrlPortGroupNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlPortGroupNumEntries.setStatus('current') etsysCosOrlPortGroupLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 6), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlPortGroupLastChange.setStatus('current') etsysCosOrlPortGroupTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7), ) if mibBuilder.loadTexts: etsysCosOrlPortGroupTable.setStatus('current') etsysCosOrlPortGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeIndex")) if mibBuilder.loadTexts: etsysCosOrlPortGroupEntry.setStatus('current') etsysCosOrlPortGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 32767), ))) if mibBuilder.loadTexts: etsysCosOrlPortGroupIndex.setStatus('current') etsysCosOrlPortGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosOrlPortGroupRowStatus.setStatus('current') etsysCosOrlPortGroupList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1, 3), PortList().clone(hexValue="")).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlPortGroupList.setStatus('current') etsysCosOrlPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1, 4), SnmpAdminString().clone(hexValue="")).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlPortGroupName.setStatus('current') etsysCosOrlPortCfgTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 8), ) if mibBuilder.loadTexts: etsysCosOrlPortCfgTable.setStatus('current') etsysCosOrlPortCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 8, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeIndex")) if mibBuilder.loadTexts: etsysCosOrlPortCfgEntry.setStatus('current') etsysCosOrlPortCfgFloodLimiter = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 8, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 65535), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlPortCfgFloodLimiter.setStatus('current') etsysCosOrlResourceTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9), ) if mibBuilder.loadTexts: etsysCosOrlResourceTable.setStatus('current') etsysCosOrlResourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceOrlNum")) if mibBuilder.loadTexts: etsysCosOrlResourceEntry.setStatus('current') etsysCosOrlResourceOrlNum = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 1), Unsigned32()) if mibBuilder.loadTexts: etsysCosOrlResourceOrlNum.setStatus('current') etsysCosOrlResourceUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 2), EtsysCosRateTypes().clone(namedValues=NamedValues(("pps", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlResourceUnits.setStatus('current') etsysCosOrlResourceRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 2147483647), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlResourceRate.setStatus('current') etsysCosOrlResourceParentOrl = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 4), Integer32().clone(-1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlResourceParentOrl.setStatus('current') etsysCosOrlResourceType = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 5), EtsysRateLimitingType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlResourceType.setStatus('current') etsysCosOrlResourceActionCosIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 6), Integer32().clone(-1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlResourceActionCosIndex.setStatus('current') etsysCosOrlResourceAction = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 7), EtsysViolationAction()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlResourceAction.setStatus('current') etsysCosOrlResourceViolationPortList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 8), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlResourceViolationPortList.setStatus('current') etsysCosOrlResourceClearCounters = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 9), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlResourceClearCounters.setStatus('current') etsysCosOrlReferenceMappingMaxReference = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlReferenceMappingMaxReference.setStatus('current') etsysCosOrlReferenceMappingLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 11), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlReferenceMappingLastChange.setStatus('current') etsysCosOrlReferenceMappingTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 12), ) if mibBuilder.loadTexts: etsysCosOrlReferenceMappingTable.setStatus('current') etsysCosOrlReferenceMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 12, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlReference")) if mibBuilder.loadTexts: etsysCosOrlReferenceMappingEntry.setStatus('current') etsysCosOrlResourceOrlNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 12, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 32767), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlResourceOrlNumber.setStatus('current') etsysCosOrlViolationClearTable = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 13), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlViolationClearTable.setStatus('current') etsysCosOrlViolationLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 14), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlViolationLastChange.setStatus('current') etsysCosOrlDisabledPortsList = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 15), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlDisabledPortsList.setStatus('current') etsysCosOrlViolationTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16), ) if mibBuilder.loadTexts: etsysCosOrlViolationTable.setStatus('current') etsysCosOrlViolationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceOrlNumber")) if mibBuilder.loadTexts: etsysCosOrlViolationEntry.setStatus('current') etsysCosOrlPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767))) if mibBuilder.loadTexts: etsysCosOrlPortIndex.setStatus('current') etsysCosOrlViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1, 2), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlViolation.setStatus('current') etsysCosOrlCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosOrlCounter.setStatus('current') etsysCosOrlResetFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1, 4), EtsysRateLimitResetBits()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosOrlResetFlags.setStatus('current') etsysCosFloodCtrlPortTypeMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeMaxEntries.setStatus('current') etsysCosFloodCtrlPortTypeTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2), ) if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeTable.setStatus('current') etsysCosFloodCtrlPortTypeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlPortTypeIndex")) if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeEntry.setStatus('current') etsysCosFloodCtrlPortTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeIndex.setStatus('current') etsysCosFloodCtrlPortTypeDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 2), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeDescr.setStatus('current') etsysCosFloodCtrlPortTypeEligiblePorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 3), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeEligiblePorts.setStatus('current') etsysCosFloodCtrlPortTypeUnselectedPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 4), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeUnselectedPorts.setStatus('current') etsysCosFloodCtrlPortTypeSupportedRateTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 5), EtsysCosRateTypes()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeSupportedRateTypes.setStatus('current') etsysCosFloodCtrlPortTypeCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 7), EtsysCosRlCapabilities()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeCapabilities.setStatus('current') etsysCosFloodCtrlUnitTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3), ) if mibBuilder.loadTexts: etsysCosFloodCtrlUnitTable.setStatus('current') etsysCosFloodCtrlUnitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlUnitTypeIndex")) if mibBuilder.loadTexts: etsysCosFloodCtrlUnitEntry.setStatus('current') etsysCosFloodCtrlUnitTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1, 1), EtsysCosRateTypes()) if mibBuilder.loadTexts: etsysCosFloodCtrlUnitTypeIndex.setStatus('current') etsysCosFloodCtrlUnitMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlUnitMaxRate.setStatus('current') etsysCosFloodCtrlUnitMinRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlUnitMinRate.setStatus('current') etsysCosFloodCtrlUnitGranularity = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlUnitGranularity.setStatus('current') etsysCosFloodCtrlPortGroupMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupMaxEntries.setStatus('current') etsysCosFloodCtrlPortGroupNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupNumEntries.setStatus('current') etsysCosFloodCtrlPortGroupLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 6), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupLastChange.setStatus('current') etsysCosFloodCtrlPortGroupTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7), ) if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupTable.setStatus('current') etsysCosFloodCtrlPortGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlPortTypeIndex")) if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupEntry.setStatus('current') etsysCosFloodCtrlPortGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 32767), ))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupIndex.setStatus('current') etsysCosFloodCtrlPortGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupRowStatus.setStatus('current') etsysCosFloodCtrlPortGroupList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1, 3), PortList().clone(hexValue="")).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupList.setStatus('current') etsysCosFloodCtrlPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1, 4), SnmpAdminString().clone(hexValue="")).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupName.setStatus('current') etsysCosFloodCtrlSyslogActionMsgFormat = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notification", 1), ("notificationWithPktHdr", 2))).clone('notification')).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosFloodCtrlSyslogActionMsgFormat.setStatus('current') etsysCosFloodCtrlResourceTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9), ) if mibBuilder.loadTexts: etsysCosFloodCtrlResourceTable.setStatus('current') etsysCosFloodCtrlResourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlFloodType")) if mibBuilder.loadTexts: etsysCosFloodCtrlResourceEntry.setStatus('current') etsysCosFloodCtrlFloodType = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unicastUnknown", 1), ("multicast", 2), ("broadcast", 3)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: etsysCosFloodCtrlFloodType.setStatus('current') etsysCosFloodCtrlResourceUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 2), EtsysCosRateTypes().clone(namedValues=NamedValues(("pps", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosFloodCtrlResourceUnits.setStatus('current') etsysCosFloodCtrlResourceRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 2147483647), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosFloodCtrlResourceRate.setStatus('current') etsysCosFloodCtrlResourceAction = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 4), Bits().clone(namedValues=NamedValues(("drop", 0), ("syslog", 1), ("trap", 2), ("disable", 3))).clone(namedValues=NamedValues(("drop", 0)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosFloodCtrlResourceAction.setStatus('current') etsysCosFloodCtrlResourceViolationPortList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 5), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosFloodCtrlResourceViolationPortList.setStatus('current') etsysCosFloodCtrlResourceClearCounters = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosFloodCtrlResourceClearCounters.setStatus('current') etsysCosFloodCtrlViolationClearTable = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 10), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosFloodCtrlViolationClearTable.setStatus('current') etsysCosFloodCtrlViolationLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 11), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlViolationLastChange.setStatus('current') etsysCosFloodCtrlDisabledPortsList = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 12), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosFloodCtrlDisabledPortsList.setStatus('current') etsysCosFloodCtrlViolationTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13), ) if mibBuilder.loadTexts: etsysCosFloodCtrlViolationTable.setStatus('current') etsysCosFloodCtrlViolationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13, 1), ).setIndexNames((0, "BRIDGE-MIB", "dot1dBasePort"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlFloodType")) if mibBuilder.loadTexts: etsysCosFloodCtrlViolationEntry.setStatus('current') etsysCosFloodCtrlViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlViolation.setStatus('current') etsysCosFloodCtrlCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysCosFloodCtrlCounter.setStatus('current') etsysCosFloodCtrlResetFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13, 1, 3), EtsysRateLimitResetBits()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysCosFloodCtrlResetFlags.setStatus('current') etsysCosIrlExceededNotification = NotificationType((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 0, 1)).setObjects(("IF-MIB", "ifName"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlViolation")) if mibBuilder.loadTexts: etsysCosIrlExceededNotification.setStatus('current') etsysCosOrlExceededNotification = NotificationType((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 0, 2)).setObjects(("IF-MIB", "ifName"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlViolation")) if mibBuilder.loadTexts: etsysCosOrlExceededNotification.setStatus('current') etsysCosFloodLimitExceededNotification = NotificationType((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 0, 3)).setObjects(("IF-MIB", "ifName"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlViolation")) if mibBuilder.loadTexts: etsysCosFloodLimitExceededNotification.setStatus('current') etsysCosConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2)) etsysCosGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1)) etsysCosCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 2)) etsysCosMasterResetGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 1)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosMibObjectAnullingBehavior")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysCosMasterResetGroup = etsysCosMasterResetGroup.setStatus('current') etsysCosCapabilitiesGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 2)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosCapability")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysCosCapabilitiesGroup = etsysCosCapabilitiesGroup.setStatus('current') etsysCosGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 3)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosMaxEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosNumEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosEnableState"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosRowStatus"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCos8021dPriority"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTosValue"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosDropPrecedence")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysCosGroup = etsysCosGroup.setStatus('current') etsysCosTxqGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 4)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqNumPortTypes"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeDescr"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeEligiblePorts"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeUnselectedPorts"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeNumberOfQueues"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeSupportedRateTypes"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeNumberOfSlices"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeQueueAlgorithms"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeQueueArbiterModes"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeMaxDropPrecedence"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeLLQEligibleQueues"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqUnitMaxRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqUnitMinRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqUnitGranularity"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqMaxPortGroups"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqNumPortGroups"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupRowStatus"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupList"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupName"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortArbMode"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortSliceSetting"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortQUnit"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortQRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortQAlgorithm"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortQLLQenable"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqReferenceMappingMaxReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqResourceQueueNumber"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesMaxEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesNumEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesRowStatus"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesMin"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesMax"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesMaxDropProb"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesQueueDepthAtMaxProb"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfileQueueCfgID")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysCosTxqGroup = etsysCosTxqGroup.setStatus('current') etsysCosIrlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 5)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeMaxEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeDescr"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeEligiblePorts"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeUnselectedPorts"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeNumberOfIRLs"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeCapabilities"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeSupportedRateTypes"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlUnitMaxRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlUnitMinRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlUnitGranularity"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupMaxEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupNumEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupRowStatus"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupList"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupName"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortCfgFloodLimiter"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceIrlNumber"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceUnits"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceParentIrl"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceActionCosIndex"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceType"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceAction"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceViolationPortList"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceClearCounters"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlReferenceMappingMaxReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlReferenceMappingLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlViolationLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlDisabledPortsList"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlViolation"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlViolationClearTable"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlCounter"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResetFlags")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysCosIrlGroup = etsysCosIrlGroup.setStatus('current') etsysCosOrlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 6)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeMaxEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeDescr"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeEligiblePorts"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeUnselectedPorts"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeNumberOfORLs"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeCapabilities"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeSupportedRateTypes"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlUnitMaxRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlUnitMinRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlUnitGranularity"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupMaxEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupNumEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupRowStatus"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupList"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupName"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortCfgFloodLimiter"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceOrlNumber"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceUnits"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceParentOrl"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceActionCosIndex"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceType"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceAction"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceViolationPortList"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceClearCounters"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlReferenceMappingMaxReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlReferenceMappingLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlViolationLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlDisabledPortsList"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlViolation"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlViolationClearTable"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlCounter"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResetFlags")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysCosOrlGroup = etsysCosOrlGroup.setStatus('current') etsysCosNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 7)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlExceededNotification"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlExceededNotification")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysCosNotificationGroup = etsysCosNotificationGroup.setStatus('current') etsysCosCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 2, 1)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosMasterResetGroup"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosCapabilitiesGroup"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosGroup"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqGroup"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlGroup"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlGroup"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysCosCompliance = etsysCosCompliance.setStatus('current') mibBuilder.exportSymbols("ENTERASYS-CLASS-OF-SERVICE-MIB", TxqAlgorithms=TxqAlgorithms, etsysCosFloodCtrlViolationLastChange=etsysCosFloodCtrlViolationLastChange, etsysCosIrlViolationClearTable=etsysCosIrlViolationClearTable, etsysCosFloodCtrlResourceEntry=etsysCosFloodCtrlResourceEntry, etsysCosOrlResourceAction=etsysCosOrlResourceAction, etsysCosIrlPortIndex=etsysCosIrlPortIndex, etsysCosFloodCtrlSyslogActionMsgFormat=etsysCosFloodCtrlSyslogActionMsgFormat, etsysCosFloodLimitExceededNotification=etsysCosFloodLimitExceededNotification, etsysCosOrlPortTypeEntry=etsysCosOrlPortTypeEntry, etsysCosTosValue=etsysCosTosValue, etsysCosIrlExceededNotification=etsysCosIrlExceededNotification, etsysCosFloodCtrlUnitEntry=etsysCosFloodCtrlUnitEntry, etsysCosIrlPortTypeIndex=etsysCosIrlPortTypeIndex, etsysCosOrlResourceActionCosIndex=etsysCosOrlResourceActionCosIndex, etsysCosTxqReferenceMappingTable=etsysCosTxqReferenceMappingTable, etsysCosFloodCtrlPortGroupLastChange=etsysCosFloodCtrlPortGroupLastChange, etsysCosIrlViolationEntry=etsysCosIrlViolationEntry, etsysCosOrlPortGroupIndex=etsysCosOrlPortGroupIndex, etsysCosFloodCtrlPortTypeIndex=etsysCosFloodCtrlPortTypeIndex, etsysCosIrlPortGroupNumEntries=etsysCosIrlPortGroupNumEntries, etsysCosIrlPortTypeDescr=etsysCosIrlPortTypeDescr, etsysCosEnableState=etsysCosEnableState, etsysCosTxqPortGroupRowStatus=etsysCosTxqPortGroupRowStatus, etsysCosOrlUnitTypeIndex=etsysCosOrlUnitTypeIndex, etsysCosTxqDropProfilesMin=etsysCosTxqDropProfilesMin, etsysCosTxqPortTypeUnselectedPorts=etsysCosTxqPortTypeUnselectedPorts, etsysCosTxqPortSliceSetting=etsysCosTxqPortSliceSetting, etsysCosFloodCtrlFloodType=etsysCosFloodCtrlFloodType, etsysCosTxqDropProfileQueueCfgID=etsysCosTxqDropProfileQueueCfgID, etsysCosTxqReferenceMappingEntry=etsysCosTxqReferenceMappingEntry, etsysCosNumEntries=etsysCosNumEntries, etsysCosOrlResourceViolationPortList=etsysCosOrlResourceViolationPortList, etsysCosIrlUnitMaxRate=etsysCosIrlUnitMaxRate, etsysCosIrlResourceEntry=etsysCosIrlResourceEntry, etsysCosFloodCtrlCounter=etsysCosFloodCtrlCounter, EtsysCosRlCapabilities=EtsysCosRlCapabilities, etsysCosIrlViolation=etsysCosIrlViolation, etsysCosOrlViolation=etsysCosOrlViolation, etsysCosTxqPortTypeNumberOfQueues=etsysCosTxqPortTypeNumberOfQueues, etsysCosMasterReset=etsysCosMasterReset, etsysCosIrlUnitEntry=etsysCosIrlUnitEntry, etsysCosIrlPortGroupList=etsysCosIrlPortGroupList, etsysCosIrlCounter=etsysCosIrlCounter, etsysCosFloodCtrlPortTypeCapabilities=etsysCosFloodCtrlPortTypeCapabilities, etsysCosFloodCtrlViolationTable=etsysCosFloodCtrlViolationTable, etsysCosTxqPortTypeNumberOfSlices=etsysCosTxqPortTypeNumberOfSlices, etsysCosOrlResourceOrlNum=etsysCosOrlResourceOrlNum, etsysCosFloodCtrlPortTypeDescr=etsysCosFloodCtrlPortTypeDescr, etsysCosMibObjectAnullingBehavior=etsysCosMibObjectAnullingBehavior, etsysCosIrlPortCfgFloodLimiter=etsysCosIrlPortCfgFloodLimiter, etsysCosTxqPortTypeMaxDropPrecedence=etsysCosTxqPortTypeMaxDropPrecedence, etsysCosOrlUnitGranularity=etsysCosOrlUnitGranularity, etsysCosFloodCtrlDisabledPortsList=etsysCosFloodCtrlDisabledPortsList, etsysCosFloodCtrlViolation=etsysCosFloodCtrlViolation, TxqArbiterModes=TxqArbiterModes, etsysCosOrlPortTypeUnselectedPorts=etsysCosOrlPortTypeUnselectedPorts, etsysCosOrlPortTypeTable=etsysCosOrlPortTypeTable, etsysCosIrlPortGroupLastChange=etsysCosIrlPortGroupLastChange, etsysCosOrlViolationEntry=etsysCosOrlViolationEntry, etsysCosMaxEntries=etsysCosMaxEntries, etsysCosIndex=etsysCosIndex, etsysCosIrlReferenceMappingMaxReference=etsysCosIrlReferenceMappingMaxReference, etsysCosTxqPortQAlgorithm=etsysCosTxqPortQAlgorithm, etsysCosOrlPortGroupName=etsysCosOrlPortGroupName, etsysCosTxqPortCfgEntry=etsysCosTxqPortCfgEntry, etsysCosIrlResourceUnits=etsysCosIrlResourceUnits, etsysCosIrlPortGroupRowStatus=etsysCosIrlPortGroupRowStatus, etsysCosDropPrecedence=etsysCosDropPrecedence, etsysCosTxqDropProfilesMax=etsysCosTxqDropProfilesMax, etsysCosCompliances=etsysCosCompliances, etsysCosTxqDropProfilesNumEntries=etsysCosTxqDropProfilesNumEntries, etsysCosMIB=etsysCosMIB, etsysCosIrlResourceType=etsysCosIrlResourceType, etsysCosTxqDropProfilesMaxDropProb=etsysCosTxqDropProfilesMaxDropProb, etsysCosTableDropPrecedence=etsysCosTableDropPrecedence, etsysCosIrlPortTypeMaxEntries=etsysCosIrlPortTypeMaxEntries, etsysCosOrlPortCfgFloodLimiter=etsysCosOrlPortCfgFloodLimiter, etsysCosTxqPortQRate=etsysCosTxqPortQRate, etsysCosIrlUnitGranularity=etsysCosIrlUnitGranularity, etsysCosIrlResourceParentIrl=etsysCosIrlResourceParentIrl, etsysCosOrlUnitMinRate=etsysCosOrlUnitMinRate, etsysCosFloodCtrlResourceUnits=etsysCosFloodCtrlResourceUnits, etsysCosEntry=etsysCosEntry, etsysCosIrlPortTypeTable=etsysCosIrlPortTypeTable, etsysCosFloodCtrlPortTypeEligiblePorts=etsysCosFloodCtrlPortTypeEligiblePorts, etsysCosNotificationGroup=etsysCosNotificationGroup, etsysCos=etsysCos, etsysCosTxqResourceTable=etsysCosTxqResourceTable, etsysCosFloodCtrlPortGroupEntry=etsysCosFloodCtrlPortGroupEntry, etsysCosIrl=etsysCosIrl, etsysCosFloodControlStatus=etsysCosFloodControlStatus, EtsysViolationAction=EtsysViolationAction, etsysCosIrlResourceTable=etsysCosIrlResourceTable, EtsysRateLimitResetBits=EtsysRateLimitResetBits, etsysCosOrlResourceTable=etsysCosOrlResourceTable, etsysCosOrlResourceEntry=etsysCosOrlResourceEntry, etsysCosOrlResourceUnits=etsysCosOrlResourceUnits, etsysCosTable=etsysCosTable, etsysCosTxqNumPortGroups=etsysCosTxqNumPortGroups, etsysCosTxqPortGroupName=etsysCosTxqPortGroupName, etsysCosTxqDropProfilesEntry=etsysCosTxqDropProfilesEntry, etsysCosIrlViolationLastChange=etsysCosIrlViolationLastChange, etsysCosIrlReference=etsysCosIrlReference, etsysCosTxqPortTypeTable=etsysCosTxqPortTypeTable, etsysCosTxqDropSettingIndex=etsysCosTxqDropSettingIndex, etsysCosOrlPortIndex=etsysCosOrlPortIndex, etsysCosTxqPortTypeEntry=etsysCosTxqPortTypeEntry, etsysCosIrlGroup=etsysCosIrlGroup, etsysCosFloodCtrlResetFlags=etsysCosFloodCtrlResetFlags, etsysCosTxqPortGroupIndex=etsysCosTxqPortGroupIndex, etsysCosOrlUnitMaxRate=etsysCosOrlUnitMaxRate, etsysCosOrlDisabledPortsList=etsysCosOrlDisabledPortsList, etsysCosIrlPortTypeEligiblePorts=etsysCosIrlPortTypeEligiblePorts, etsysCosFloodCtrlPortGroupTable=etsysCosFloodCtrlPortGroupTable, etsysCosTxqResourceEntry=etsysCosTxqResourceEntry, etsysCosOrlPortTypeDescr=etsysCosOrlPortTypeDescr, etsysCosCapabilities=etsysCosCapabilities, etsysCosOrlPortGroupRowStatus=etsysCosOrlPortGroupRowStatus, etsysCosFloodCtrlPortTypeSupportedRateTypes=etsysCosFloodCtrlPortTypeSupportedRateTypes, etsysCosNotifications=etsysCosNotifications, etsysCosOrlPortGroupList=etsysCosOrlPortGroupList, etsysCosOrlPortGroupNumEntries=etsysCosOrlPortGroupNumEntries, etsysCosFloodCtrlResourceAction=etsysCosFloodCtrlResourceAction, etsysCosIrlResourceAction=etsysCosIrlResourceAction, etsysCosIrlPortCfgEntry=etsysCosIrlPortCfgEntry, etsysCosFloodCtrlViolationClearTable=etsysCosFloodCtrlViolationClearTable, etsysCosTxqResourceQueueNumber=etsysCosTxqResourceQueueNumber, etsysCosTxqPortTypeLLQEligibleQueues=etsysCosTxqPortTypeLLQEligibleQueues, etsysCosLastChange=etsysCosLastChange, etsysCosTxqUnitGranularity=etsysCosTxqUnitGranularity, etsysCosOrlPortGroupEntry=etsysCosOrlPortGroupEntry, etsysCosOrlReferenceMappingEntry=etsysCosOrlReferenceMappingEntry, etsysCosFloodCtrlUnitMaxRate=etsysCosFloodCtrlUnitMaxRate, etsysCosOrlResourceType=etsysCosOrlResourceType, etsysCosTxqPortTypeQueueArbiterModes=etsysCosTxqPortTypeQueueArbiterModes, etsysCosOrlPortTypeIndex=etsysCosOrlPortTypeIndex, etsysCosCompliance=etsysCosCompliance, etsysCosTxqNumPortTypes=etsysCosTxqNumPortTypes, etsysCosIrlPortGroupEntry=etsysCosIrlPortGroupEntry, etsysCosIrlPortGroupTable=etsysCosIrlPortGroupTable, etsysCosIrlResourceActionCosIndex=etsysCosIrlResourceActionCosIndex, etsysCosCapability=etsysCosCapability, etsysCosFloodCtrlPortGroupList=etsysCosFloodCtrlPortGroupList, etsysCosIrlPortTypeCapabilities=etsysCosIrlPortTypeCapabilities, etsysCosOrlPortCfgTable=etsysCosOrlPortCfgTable, etsysCosMasterResetGroup=etsysCosMasterResetGroup, etsysCosOrlExceededNotification=etsysCosOrlExceededNotification, etsysCosTxqDropPrecedenceTable=etsysCosTxqDropPrecedenceTable, etsysCosFloodCtrlPortTypeEntry=etsysCosFloodCtrlPortTypeEntry, etsysCosIrlPortTypeEntry=etsysCosIrlPortTypeEntry, etsysCosOrlPortTypeMaxEntries=etsysCosOrlPortTypeMaxEntries, etsysCosIrlUnitTypeIndex=etsysCosIrlUnitTypeIndex, etsysCosFloodCtrlResourceClearCounters=etsysCosFloodCtrlResourceClearCounters, etsysCosIrlResourceViolationPortList=etsysCosIrlResourceViolationPortList, etsysCosFloodCtrlPortGroupRowStatus=etsysCosFloodCtrlPortGroupRowStatus, etsysCosGroups=etsysCosGroups, etsysCosObjects=etsysCosObjects, etsysCosTxqReference=etsysCosTxqReference, etsysCosTxq=etsysCosTxq, etsysCosTxqPortCfgTable=etsysCosTxqPortCfgTable, etsysCosTxqDropPrecedenceEntry=etsysCosTxqDropPrecedenceEntry, etsysCosTxqDropProfilesTable=etsysCosTxqDropProfilesTable, etsysCosCapabilitiesGroup=etsysCosCapabilitiesGroup, etsysCosIrlReferenceMappingEntry=etsysCosIrlReferenceMappingEntry, etsysCosTxqDropProfilesLastChange=etsysCosTxqDropProfilesLastChange, etsysCosFloodCtrlPortGroupIndex=etsysCosFloodCtrlPortGroupIndex, etsysCosFloodControl=etsysCosFloodControl, etsysCosRowStatus=etsysCosRowStatus, etsysCosTxqPortTypeSupportedRateTypes=etsysCosTxqPortTypeSupportedRateTypes, etsysCosFloodCtrlPortGroupName=etsysCosFloodCtrlPortGroupName, etsysCosTxqDropProfilesQueueDepthAtMaxProb=etsysCosTxqDropProfilesQueueDepthAtMaxProb, etsysCosTxqDropProfilesRowStatus=etsysCosTxqDropProfilesRowStatus, etsysCosIrlReferenceMappingTable=etsysCosIrlReferenceMappingTable, etsysCosOrlResetFlags=etsysCosOrlResetFlags, etsysCosOrlPortTypeSupportedRateTypes=etsysCosOrlPortTypeSupportedRateTypes, etsysCosTxqUnitTypeIndex=etsysCosTxqUnitTypeIndex, etsysCosTxqPortTypeQueueAlgorithms=etsysCosTxqPortTypeQueueAlgorithms, etsysCosIrlDisabledPortsList=etsysCosIrlDisabledPortsList, etsysCosOrlReferenceMappingTable=etsysCosOrlReferenceMappingTable, etsysCosFloodCtrlUnitTable=etsysCosFloodCtrlUnitTable, etsysCosFloodCtrlResourceRate=etsysCosFloodCtrlResourceRate, etsysCosTxqPortArbMode=etsysCosTxqPortArbMode, etsysCosIrlResourceIrlNum=etsysCosIrlResourceIrlNum, etsysCosTxqPortTypeEligiblePorts=etsysCosTxqPortTypeEligiblePorts, etsysCosFloodCtrlUnitGranularity=etsysCosFloodCtrlUnitGranularity, etsysCosIrlPortTypeNumberOfIRLs=etsysCosIrlPortTypeNumberOfIRLs, etsysCosIrlResourceClearCounters=etsysCosIrlResourceClearCounters, etsysCosTxqUnitEntry=etsysCosTxqUnitEntry, etsysCosOrlResourceClearCounters=etsysCosOrlResourceClearCounters, etsysCosIrlResourceRate=etsysCosIrlResourceRate, etsysCosIrlViolationTable=etsysCosIrlViolationTable, EtsysRateLimitingType=EtsysRateLimitingType, etsysCosTxqUnitMaxRate=etsysCosTxqUnitMaxRate, etsysCosOrlResourceRate=etsysCosOrlResourceRate, TxQueueList=TxQueueList, etsysCosFloodCtrlPortGroupNumEntries=etsysCosFloodCtrlPortGroupNumEntries, etsysCosIrlPortGroupName=etsysCosIrlPortGroupName, etsysCosFloodCtrlViolationEntry=etsysCosFloodCtrlViolationEntry, etsysCosIrlPortGroupIndex=etsysCosIrlPortGroupIndex, etsysCosOrlPortTypeEligiblePorts=etsysCosOrlPortTypeEligiblePorts, etsysCosTxqReferenceMappingMaxReference=etsysCosTxqReferenceMappingMaxReference, etsysCosOrlPortGroupTable=etsysCosOrlPortGroupTable, etsysCosIrlResetFlags=etsysCosIrlResetFlags, etsysCosGroup=etsysCosGroup, etsysCosIrlPortTypeSupportedRateTypes=etsysCosIrlPortTypeSupportedRateTypes, etsysCosFloodCtrlPortGroupMaxEntries=etsysCosFloodCtrlPortGroupMaxEntries, etsysCosTxqPortTypeIndex=etsysCosTxqPortTypeIndex, etsysCosOrlPortGroupMaxEntries=etsysCosOrlPortGroupMaxEntries, etsysCosTxqPortGroupEntry=etsysCosTxqPortGroupEntry, etsysCosFloodCtrlUnitMinRate=etsysCosFloodCtrlUnitMinRate, etsysCosOrlUnitTable=etsysCosOrlUnitTable, etsysCosOrlResourceOrlNumber=etsysCosOrlResourceOrlNumber, etsysCosOrlViolationClearTable=etsysCosOrlViolationClearTable, etsysCosFloodCtrlResourceViolationPortList=etsysCosFloodCtrlResourceViolationPortList, etsysCosTxqResourceQueueNum=etsysCosTxqResourceQueueNum, etsysCosIrlPortTypeUnselectedPorts=etsysCosIrlPortTypeUnselectedPorts, etsysCosOrlPortCfgEntry=etsysCosOrlPortCfgEntry, etsysCosTxqUnitTable=etsysCosTxqUnitTable, etsysCosOrlGroup=etsysCosOrlGroup, etsysCosIrlUnitTable=etsysCosIrlUnitTable, etsysCosOrl=etsysCosOrl, etsysCosIrlResourceIrlNumber=etsysCosIrlResourceIrlNumber, etsysCosOrlReferenceMappingLastChange=etsysCosOrlReferenceMappingLastChange, etsysCos8021dPriority=etsysCos8021dPriority, etsysCosOrlViolationTable=etsysCosOrlViolationTable, etsysCosTxqPortGroupTable=etsysCosTxqPortGroupTable, etsysCosIrlUnitMinRate=etsysCosIrlUnitMinRate, etsysCosOrlResourceParentOrl=etsysCosOrlResourceParentOrl, etsysCosTxqPortGroupList=etsysCosTxqPortGroupList, etsysCosTxqPortQLLQenable=etsysCosTxqPortQLLQenable, etsysCosFloodCtrlResourceTable=etsysCosFloodCtrlResourceTable, etsysCosOrlPortTypeCapabilities=etsysCosOrlPortTypeCapabilities, PYSNMP_MODULE_ID=etsysCosMIB, etsysCosTxqDropProfilesMaxEntries=etsysCosTxqDropProfilesMaxEntries, etsysCosOrlViolationLastChange=etsysCosOrlViolationLastChange, etsysCosFloodCtrlUnitTypeIndex=etsysCosFloodCtrlUnitTypeIndex, etsysCosIrlPortCfgTable=etsysCosIrlPortCfgTable, etsysCosOrlReferenceMappingMaxReference=etsysCosOrlReferenceMappingMaxReference, etsysCosFloodCtrlPortTypeTable=etsysCosFloodCtrlPortTypeTable, etsysCosTxqPortTypeDescr=etsysCosTxqPortTypeDescr, etsysCosOrlUnitEntry=etsysCosOrlUnitEntry, EtsysCosRateTypes=EtsysCosRateTypes, etsysCosIrlPortGroupMaxEntries=etsysCosIrlPortGroupMaxEntries, etsysCosOrlPortTypeNumberOfORLs=etsysCosOrlPortTypeNumberOfORLs, etsysCosOrlCounter=etsysCosOrlCounter, etsysCosTxqPortGroupLastChange=etsysCosTxqPortGroupLastChange, etsysCosFloodCtrlPortTypeUnselectedPorts=etsysCosFloodCtrlPortTypeUnselectedPorts, etsysCosTxqMaxPortGroups=etsysCosTxqMaxPortGroups, etsysCosOrlPortGroupLastChange=etsysCosOrlPortGroupLastChange, etsysCosFloodCtrlPortTypeMaxEntries=etsysCosFloodCtrlPortTypeMaxEntries, etsysCosTxqGroup=etsysCosTxqGroup, etsysCosTxqPortQUnit=etsysCosTxqPortQUnit, etsysCosIrlReferenceMappingLastChange=etsysCosIrlReferenceMappingLastChange, etsysCosOrlReference=etsysCosOrlReference) mibBuilder.exportSymbols("ENTERASYS-CLASS-OF-SERVICE-MIB", etsysCosConformance=etsysCosConformance, etsysCosTxqUnitMinRate=etsysCosTxqUnitMinRate)
# Tern # domain: set of inputs # co-domain: a set from which the function's output values are chosen. # image: set of outputs, may smaller than co-domain # this procedure is a real function in math. def caesar(plaintext: str): code = [] for char in plaintext: code_ = ord(char) + 3 if char in "xyzXYZ": code_ = code_ - 26 code_ = chr(code_) code.append(code_) return "".join(code)
# -*- coding: utf-8 -*- { 'name': 'Biometric Integration', 'version': '1.0', 'summary': """Integrating Biometric Device With HR Attendance (Face + Thumb)""", 'description': """This module integrates Odoo with the biometric device,odoo15,odoo,hr,attendance""", 'category': 'Generic Modules/Human Resources', 'author': 'progistack, emmanuelprogistack', 'company': 'progistack', 'website': "https://www.progistack.com", 'depends': ['base_setup', 'hr_attendance'], 'data': [ 'security/ir.model.access.csv', 'views/date_modification_wizard.xml', 'views/zk_machine_view.xml', 'views/zk_machine_attendance_view.xml', 'views/parametrage_view.xml', 'data/download_data.xml' ], 'images': ['static/description/banner.jpg'], 'license': 'AGPL-3', 'installable': True, 'auto_install': False, 'application': False, }
def get_counting_line(line_position, frame_width, frame_height): line_positions = ['top', 'bottom', 'left', 'right'] if line_position == None: line_position = 'bottom' if line_position not in line_positions: raise Exception('Invalid line position specified (options: top, bottom, left, right)') if line_position == 'top': # counting_line_y = round(1 / 5 * frame_height) # Hamburg_Hall_080007032018_000,top # counting_line_y = round(3 / 5 * frame_height) # Parking1_083915032018_000, top # counting_line_y = round(13 / 20 * frame_height) # Hamburg_Hall1_073301102019_000, top counting_line_y = round(3 / 4 * frame_height) return [(0, counting_line_y), (frame_width, counting_line_y)] elif line_position == 'bottom': # Hamburg_Hall_080007032018_000, bottom # counting_line_y = round(13 / 20 * frame_height) # Parking1_083915032018_000, bottom # counting_line_y = round(2 / 3 * frame_height) # Hamburg_Hall1_064721092018_020, bottom # counting_line_y = round(3 / 4 * frame_height) # Hamburg_Hall1_073301102019_000, bottom # counting_line_y = round(7 / 8 * frame_height) # Parking2_050101102019_025, bottom counting_line_y = round(31 / 128 * frame_height) # counting_line_y = round(1 / 2 * frame_height) # counting_line_y = round(31 / 128 * frame_height) # counting_line_y = round(14 / 16 * frame_height) return [(0, counting_line_y), (frame_width, counting_line_y)] elif line_position == 'left': counting_line_x = round(1 / 5 * frame_width) return [(counting_line_x, 0), (counting_line_x, frame_height)] elif line_position == 'right': counting_line_x = round(4 / 5 * frame_width) return [(counting_line_x, 0), (counting_line_x, frame_height)] def is_passed_counting_line(point, counting_line, line_position): if line_position == 'top': return point[1] < counting_line[0][1] elif line_position == 'bottom': return point[1] > counting_line[0][1] elif line_position == 'left': return point[0] < counting_line[0][0] elif line_position == 'right': return point[0] > counting_line[0][0]
class Timer: def __init__(self, tempo = "int used in real timer", settings = "obj used in real timer"): pass def start_question_timer(self): self._times_asked = 0 def question_time_up(self): self._times_asked += 1 return self._times_asked >= 18 def question_hint_1_up(self): return self._times_asked >= 4 def question_hint_2_up(self): return self._times_asked >= 8 def wait(self): pass
# Faça um Programa que leia três números e mostre o maior deles. # Ivo Dias # Recebe os numeros primeiroNumero = int(input("Informe um numero: ")) SegundoNumero = int(input("Informe um segundo numero: ")) terceiroNumero = int(input("Informe um terceiro numero: ")) # Faz a verificacao if (primeiroNumero == SegundoNumero) and (primeiroNumero == terceiroNumero): print ('Os numeros são iguais') elif (primeiroNumero > SegundoNumero) and (primeiroNumero > terceiroNumero): print ('O maior numero é o:', primeiroNumero) elif (SegundoNumero > terceiroNumero): print ('O maior numero é o:', SegundoNumero) else: print ('O maior numero é o:', terceiroNumero)
st="Hello everyone are you enjoying learning Python ?" st2 = st.split() print(st2) print(st.strip()) print(st.replace('o','0')) print(st.isalpha())
class Solution: def smallestNumber(self, num: int) -> int: s = sorted(str(abs(num)), reverse=num < 0) firstNonZeroIndex = next((i for i, c in enumerate(s) if c != '0'), 0) s[0], s[firstNonZeroIndex] = s[firstNonZeroIndex], s[0] return int(''.join(s)) * (-1 if num < 0 else 1)
msg = '''qv ah pfsix xi wm ughgsm, lk wyja vugfcq vu kytqzu ugzdlglqp, zw nu qfopu nmpyxu kyp hqbíu yy tqjupra lk fsd pm rurkm mt uweutryvz, mlglkl mvzckfm, zuwír qxiii c rmtmi gzdzkxsc. gvg ipwm lk upra uáy penm yay gldvkls, dmtvcgóy xiy gáw yaknyw, ogmriw j cckvvlzbum pze aáhuhze, tkhxpviy fsd hqklrpe, iraúr amtugmya lk uñeoulale waa jiqtzoum, gzzaagíey xiy nvpe xglxpe lk my smkoyrom. tg wsyfzgmiñl bixu wfbmxuv px zkns pe zuwmymvzy. iw dmyns oqtru gzzkroíey eiei hp hmruveq, kgfdle lk piwxcji tldi ruw qumyned owt myd bitnyqxwy xi wa uomqz, xwy xíed pm khxcq akgeym ak bsydihu gzz aa piwxwxc hp xw sám jtzw. zyríl qv yo glei ahe lyi woi amagve oq tum gfmzkhxl, k ctu wznzohe bgm ti pwqogve l xwy pitzbk, s yy ywfi hp oisjs j btgte, bgm gmí iyeqrfemm mr lsníz kugs eaugve wm xuxeoqzg. zvteihu pl qlgx hp zckmxca poxewsw iir waa icrngmtne lñaa, kle oq kugtwqfoóh vpoqg, mina lk weczmy, yrugbu xi caazls; rdit geodcmuhzd g ggmra lk fe nmhg. kytqzkh hpoqx kyp fmtíu iw ewhliyauhli oq yacnlpi u kypeiju (ufq mt ywea pgs ewsctu htrmxyrnui kh pze ianscqa woi oqazy glew kmgcujkh), efzyay tzd kuhnpfcxuw gqzumíqtxmy mi oqrg yreqvjyv bgm yy pwmug kytvitu; tpdw kmxz uuvivem xuws l zckmxca kayrea; jgmxl cck yr wm vglvloqót xép ya ak mewsi ah tfzbu xi wm dklhlp.''' first = ord('a') # last = ord('z') L = last - first bad_chars = [' ', ',', '.', ';'] def encode(message, key): message = message.replace('á', 'a').replace('é', 'e').replace('í', 'i').replace('ó', 'o').replace('ú', 'u') res = '' k = 0 m = 0 while m < len(message): if message[m] in bad_chars: res += message[m] m += 1 continue a = ord(message[m]) - first b = ord(key[k]) - first ciph = a + b res += chr(first + ((ciph) % L)) k = (k + 1) % len(key) m += 1 return res def decode(message, key): message = message.replace('á', 'a').replace('é', 'e').replace('í', 'i').replace('ó', 'o').replace('ú', 'u') res = '' k = 0 m = 0 while m < len(message): if message[m] in bad_chars: res += message[m] m += 1 continue a = ord(message[m]) - first b = ord(key[k]) - first ciph = a - b res += chr(first + ((ciph) % L)) k = (k + 1) % len(key) m += 1 return res key = '' for i in range(len(msg)): for j in range(L): if encode(msg[i], chr(j + first)) == decode(msg[i], chr(j + first)): key += chr(j + first) break # print(key) passw = 'enunlugardelamanchadecuyonombrenoquieroacordarmenohamuchotiempoqueviviaunhidalgodelosdelanzaenastilleroadargaantiguarocinflacoygalgocorredorunaolladealgomasvacaquecarnerosalpiconlasmasnochesduelosyquebrantoslossabadoslentejaslosviernesalgunpalominodeanadiduralosdomingosconsumianlastrespartesdesuhacienda' passw = 'miftekmiguelmigtelmiguekligtekmigtelmiguelligtelmiguekmigtelmigtellifauelmiguelligtekmiguekmiguekmiguelmigtelmigtekmiguaelmigtdlmigtelliguekligtelmiguelliagtelmifuelligtekmigtealmigtaelliguelligteklhguelmhgtellhaguelligtelmigtekligtelligtaekmigtelligugelmiftellhgtelmigtelmhftaelmigtelligtelligtelmiguelm' deco = decode(msg, passw) print(deco) # this is the password for i in bad_chars: deco = deco.replace(i, '') deco = decode(msg, deco) # print(deco)
def twenty_eighteen(): """Come up with the most creative expression that evaluates to 2018, using only numbers and the +, *, and - operators. >>> twenty_eighteen() 2018 """ return 8 + 192 + (18 * 100) + 18
""" Your task is to implement the function strstr. The function takes two strings as arguments (s,x) and locates the occurrence of the string x in the string s. The function returns and integer denoting the first occurrence of the string x in s (0 based indexing). Example 1: Input: s = GeeksForGeeks, x = Fr Output: -1 Explanation: Fr is not present in the string GeeksForGeeks as substring. Example 2: Input: s = GeeksForGeeks, x = For Output: 5 Explanation: For is present as substring in GeeksForGeeks from index 5 (0 based indexing). Your Task: You don't have to take any input. Just complete the strstr() function which takes two strings str, target as an input parameter. The function returns -1 if no match if found else it returns an integer denoting the first occurrence of the x in the string s. Expected Time Complexity: O(|s|*|x|) Expected Auxiliary Space: O(1) Note : Try to solve the question in constant space complexity. Constraints: 1 <= |s|,|x| <= 1000 """
''' EASY 1108. Defanging an IP Address You are given a license key represented as a string S which consists only alphanumeric character and dashes. The string is separated into N+1 groups by N dashes. Given a number K, we would want to reformat the strings such that each group contains exactly K characters, except for the first group which could be shorter than K, but still must contain at least one character. Furthermore, there must be a dash inserted between two groups and all lowercase letters should be converted to uppercase. Given a non-empty string S and a number K, format the string according to the rules described above. Example 1: Input: S = "5F3Z-2e-9-w", K = 4 Output: "5F3Z-2E9W" Explanation: The string S has been split into two parts, each part has 4 characters. Note that the two extra dashes are not needed and can be removed. ''' class Solution: def defangIPaddr(self, address: str) -> str: separate = address.split('.') separate = "[.]".join(separate) #return separate def anotherVersion(): return "[.]".join(address.split('.')) def mostEfficient(): return address.replace(".","[.]") return anotherVersion()
#!/usr/bin/env python f = open('/Users/kosta/dev/advent-of-code-17/day11/input.txt') steps = f.readline().split(',') moves = { 'n': (0, 1), 's': (0, -1), 'ne': (1, 0.5), 'nw': (-1, 0.5), 'sw': (-1, -0.5), 'se': (1, -0.5) } x_total = 0 y_total = 0 for step in steps: x_total += moves[step][0] y_total += moves[step][1] normalized_x = abs(x_total) normalized_y = abs(y_total) total_steps = 0 while(True): total_steps += 1 normalized_x -= 1 normalized_y -= 0.5 if normalized_x == 0: total_steps += normalized_y break print(total_steps)