content
stringlengths
7
1.05M
"""Exercise 2: Step Over, Step Into, Step Out""" def calculate_sum(list_of_nums): """Calculates the sum of a list of numbers.""" total = 0 for num in list_of_nums: total += num return total def calculate_average(list_of_nums): """Calculates the average of a list of numbers.""" average = calculate_sum(list_of_nums) / len(list_of_nums) return average if __name__ == '__main__': # Call calculate_average mylist = [2, 7, 3, 5, 11, 9] result = calculate_average(mylist) print(result)
class SetUp: base = "http://localhost:8890/" URL = "http://localhost:8890/notebooks/test/testing.ipynb" kernel_link = "#kernellink" start_kernel = "link=Restart & Run All" start_confirm = "(.//*[normalize-space(text()) and normalize-space(.)='Continue Running'])[1]/following::button[1]" title = '//div[@class=" title"]' class Header: head = '//div[@class=" title"]/h1' logo = "//div[@class='logo']" class GeneralInfo: # test the info headings base_path = "//div[contains(@class,'options')]" backend = base_path + "/div[1]" opt_level = base_path + "/div[2]" qiskit_v, terra_v = (base_path + "/div[3]"), (base_path + "/div[4]") class Params: # check the params set for trebugger param_button = "//button[@title='Params for transpilation']" key = '//p[@class="params-key"]' value = '//p[@class="params-value"]' class Summary: # check the summary headings # check the circuit stat headings panel = "//div[@id = 'notebook-container']/div/div[2]/div[2]/div/div[3]/div/div[5]" header = panel + "/div/div/h2" transform_label = "//p[@class='transform-label']" analyse_label = "//p[@class='analyse-label']" stats_base1 = "//div[@id='notebook-container']/div[1]/div[2]/div[2]/div/div[3]/div/div[5]/div[2]" stats_base2 = "/div/p[1]" @classmethod def stat_path(cls, num): num += 2 # starts from 3 return cls.stats_base1 + f"/div[{num}]" + cls.stats_base2 class TimelinePanel: # general # a. Displaying list of passes main_button = '//*[@id="notebook-container"]/div[1]/div[2]/div[2]/div/div[3]/div/div[6]/button' # b. Displaying circuit stats for each pass step = "//*[@id='notebook-container']/div[1]/div[2]/div[2]/div/div[3]/div/div[6]/div/div/div/div[1]" pass_name = step + "/div[2]/div/p" time_taken = step + "/div[3]" stats = {"Depth": "4", "Size": "5", "Width": "4", "1Q ops": "3", "2Q ops": "1"} pass_button = step + "/div[1]/button" @classmethod def get_stat(cls, num, index): num += 4 return cls.step + f"/div[{num}]/div/span[{index}]" # c. Highlight changed circuit stats # 2. Check the uncollapsed view with : diff_link = '//input[@title="Highlight diff"]' # a. Provide pass docs # b. Provide circuit plot # c. Provide log panel # d. Provide property set tabs = [] names = ["img", "prop", "log", "doc"] for i in range(4): tabs.append({"name": names[i], "path": f"//li[@id='tab-key-{i}']"}) # highlights highlight_step = '//*[@id="notebook-container"]/div[1]/div[2]/div[2]/div/div[3]/div/div[6]/div/div/div/div[19]' # divs 4,5 and 7 contain the highlights highlights = [ highlight_step + "/div[4]", highlight_step + "/div[5]", highlight_step + "/div[7]", ] class Downloads: circuit_img = "//li[@id='tab-key-0']" base_path = '//div[@class="circuit-export-wpr"]' # Provide download in qasm # provide download in qpy # provide download in img formats = {".png": "/a[1]", ".qpy": "/a[2]", ".qasm": "/a[3]"}
d = {"Tisch": "table", "Stuhl": "chair", "Schreibtisch": "desk"} # Ziel: Weiteres Wörterbuch aufbauen, das als Schlüssel englische Begriffe enthält # 1 Ansatz: l = [] for tupel in d.items(): l.append((tupel [1], tupel [0])) # 2 Ansatz: l = [(tupel [1], tupel[0]) for tupel in d.items()] print(l) e = dict (l) print(e["table"]) # 3 Ansatz: e={} for key, value in d.items(): e[value] = key print(e)
# int object is immutable age = 30 print(id(age)) # id is used to get a object reference id age = 40 print(id(age)) # list is mutable series1 = [1, 2, 3] series2 = series1 print(id(series1)) print(id(series1)) series1[1] = 10 print(series1) print(series2) print(id(series1)) print(id(series1)) # is operator can be used for object equality series1 = [1, 2, 3] series2 = [1, 2, 3] print(series1 is series2) # reference equality print(series1 == series2) # value equality
class Node: def __init__(self, value, next=None): self.value = value self.next = next def has_cycle(head): fast = head slow = head while slow != None and fast.next: slow = slow.next fast = fast.next.next if slow == fast: return True return False def get_length(seed): ptr = seed.next L = 1 while ptr != seed: ptr = ptr.next L += 1 return L def find_start(head, length): ptr1 = head ptr2 = head for i in range(length): ptr1 = ptr1.next while ptr1 != ptr2: ptr1 = ptr1.next ptr2 = ptr2.next return ptr1.value def find_duplicate(head): fast = head slow = head while slow != None and fast.next: slow = slow.next # slow = A[slow] fast = fast.next.next # fast = A[ A[fast] ] if slow == fast: L = get_length(slow) break if L == 0: return -1 return find_start(head, L) def main(): head = Node(2) head.next = Node(1) head.next.next = Node(3) head.next.next.next = Node(4) head.next.next.next.next = head.next print(find_duplicate(head)) main()
__author__ = 'rene_esteves' def factorial(input): if input < 1: # base case return 1 else: return input * factorial(input - 1) # recursive call def sum(input): if input == 1: # base_case return 1 else: return input + sum(input - 1) # recursive call def fibonacci(input): if input == 1 or input == 0: # base_case print("PAROU") return 1 else: return fibonacci(input - 1) + fibonacci(input - 2) # recursive call # ==== def cres_natural_order(input): if input == 0: # base_case return print(input, "- ", end="") else: cres_natural_order(input - 1) # recursive call return print(input, "- ", end="") def descres_natural_order(input): if input == 0: # base_case return print(input, end="") else: print(input, "- ", end="") return descres_natural_order(input - 1) # recursive call def array_max(array, position): if position >= 0: # base case maior = int(array_max(array, position - 1)) # recursive call if position < len(array): # vet size if (maior > array[position]): return maior else: return array[position] return maior # final return else: return 0 # first valid return def is_true(array, position, value): if len(array) > position: # base_case if array[position] == value: return True else: return is_true(array, position + 1, value) # recursive call else: return False def seekvalue(array, position, value): if position >= 0: # base case is_true = seekvalue(array, position - 1, value) # recursive call if position < len(array) and is_true is not True: # vet lenght and valid return if array[position] == value: return True else: return False return is_true # final return else: return False # first valid return def binary_search(array, start, end, value): middle = int((start + end) / 2) if array[middle] == value: return True else: if start == end: return False else: if (value < array[middle]): return binary_search(array, start, middle - 1, value) else: return binary_search(array, middle + 1, end, value) def sum_array(array, position): if len(array) == position: # base_case return 0 else: return array[position] + sum_array(array, position + 1) # recursive call def invt_array(array, position): # TODO there's something wrong if len(array) - 1 == position: # base_case return print(array[position]) else: array[len(array) - position - 1] = invt_array(array, position + 1) # recursive call return print(array[position]) # ==== def decimal_to_binary(input): if input <= 0: # base case return str("") else: return decimal_to_binary(int(input / 2)) + str(input % 2) # recursive call def factoring(input): if input == 1: # base case return 1 else: return float(factoring(input - 1) + 1 / input) # recursive call def exp(base, expo): if expo == 0: # base case return 1 else: return exp(base, expo - 1) * base # recursive call def sumdig(input): if input < 0: return sumdig(- input) # recursive call for negative numbers if input == 0: # base case return 0 else: return input % 10 + int(sumdig(input / 10)) # recursive call def invdig(input, size): if input < 1: # base case return 0 else: return int(input % 10) * pow(10, size) + int(invdig(input / 10, size - 1)) # recursive call def josephus(elements, interval): if elements == 1: return 1 else: print(elements, interval) return (josephus(elements - 1, interval) + interval) % elements def triangle(input): if input == 1: # base case return 1 else: return triangle(input - 1) + input # recursive call def quad(input): if input == 2: # base case return 2 else: return quad(input - 1) + (2 * input - 1) # recursive call def mdc(p, q): if q == 0: # base case return p else: return mdc(q, p % q) # recursive call def seekvalue2(array, position, value): if position >= 0: # base case if array[position] == value: return True else: return seekvalue2(array, position - 1, value) # recursive call else: return False # worst case def buscabinaria(array, inicio, fim, valor): if inicio <= fim: meio = int((inicio + fim) / 2) if array[meio] == valor: return True else: if array[meio] > valor: return buscabinaria(array, inicio, meio - 1, valor) else: return buscabinaria(array, meio + 1, fim, valor) else: return False def inverter(numero, expo): print("numero", numero) if numero == 0: return numero else: return (int(numero % 10) * pow(10, expo)) + inverter(int(numero / 10), expo - 1) v = [] def inv_array(i, f): if i < f: aux = v[i] v[i] = v[f] v[f] = aux inv_array(i + 1, f - 1)
"""" 2 shelves 5 books 5 nooks 5 books in each shelve MAX VALUE = 5 1 book comes out, 4 books at any shelf 1 space is there 1 user 10 0 clock another user 12 0 clock returned another user 01 clock returned 10 -> out 12 -> out 1 -> in 2 -> out 3 -> out 5 -> in 5 operations a stack of 10 books """
class MySQL: def __init__(self, db): self.__db = db def pre_load(self): # do nothing return def load(self, check_id, results): for result in results: responsetime = result.get('responsetime', None) self.__db.query( 'REPLACE INTO pingdom_check_result (`check_id`, `at`, `probe_id`, `status`, `status_desc`, `status_desc_long`, `response_time`)\ VALUES (:check_id, FROM_UNIXTIME(:at), :probe_id, :status, :status_desc, :status_desc_long, :response_time)', check_id=check_id, at=result['time'], probe_id=result['probeid'], status=result['status'], status_desc=result['statusdesc'], status_desc_long=result['statusdesclong'], response_time=responsetime )
# # PySNMP MIB module OPT-IF-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OPT-IF-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:26:00 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") ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup") Integer32, Bits, Counter64, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Gauge32, iso, Unsigned32, ModuleIdentity, Counter32, ObjectIdentity, transmission, IpAddress, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "Bits", "Counter64", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Gauge32", "iso", "Unsigned32", "ModuleIdentity", "Counter32", "ObjectIdentity", "transmission", "IpAddress", "NotificationType") DisplayString, TruthValue, TextualConvention, RowPointer, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TruthValue", "TextualConvention", "RowPointer", "RowStatus") optIfMibModule = ModuleIdentity((1, 3, 6, 1, 2, 1, 10, 133)) optIfMibModule.setRevisions(('2003-08-13 00:00',)) if mibBuilder.loadTexts: optIfMibModule.setLastUpdated('200308130000Z') if mibBuilder.loadTexts: optIfMibModule.setOrganization('IETF AToM MIB Working Group') class OptIfAcTI(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(64, 64) fixedLength = 64 class OptIfBitRateK(TextualConvention, Integer32): status = 'current' class OptIfDEGM(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(2, 10) class OptIfDEGThr(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1, 100) class OptIfDirectionality(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("sink", 1), ("source", 2), ("bidirectional", 3)) class OptIfSinkOrSource(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("sink", 1), ("source", 2)) class OptIfExDAPI(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(16, 16) fixedLength = 16 class OptIfExSAPI(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(16, 16) fixedLength = 16 class OptIfIntervalNumber(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1, 96) class OptIfTIMDetMode(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("off", 1), ("dapi", 2), ("sapi", 3), ("both", 4)) class OptIfTxTI(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(64, 64) fixedLength = 64 optIfObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 133, 1)) optIfConfs = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 133, 2)) optIfOTMn = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 133, 1, 1)) optIfPerfMon = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 133, 1, 2)) optIfOTSn = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 133, 1, 3)) optIfOMSn = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 133, 1, 4)) optIfOChGroup = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 133, 1, 5)) optIfOCh = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 133, 1, 6)) optIfOTUk = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 133, 1, 7)) optIfODUk = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 133, 1, 8)) optIfODUkT = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 133, 1, 9)) optIfGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 133, 2, 1)) optIfCompl = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 133, 2, 2)) optIfOTMnTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 1, 1), ) if mibBuilder.loadTexts: optIfOTMnTable.setStatus('current') optIfOTMnEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOTMnEntry.setStatus('current') optIfOTMnOrder = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 1, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 900))).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTMnOrder.setStatus('current') optIfOTMnReduced = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 1, 1, 1, 2), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTMnReduced.setStatus('current') optIfOTMnBitRates = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 1, 1, 1, 3), Bits().clone(namedValues=NamedValues(("bitRateK1", 0), ("bitRateK2", 1), ("bitRateK3", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTMnBitRates.setStatus('current') optIfOTMnInterfaceType = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 1, 1, 1, 4), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTMnInterfaceType.setStatus('current') optIfOTMnTcmMax = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 1, 1, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTMnTcmMax.setStatus('current') optIfOTMnOpticalReach = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("intraOffice", 1), ("shortHaul", 2), ("longHaul", 3), ("veryLongHaul", 4), ("ultraLongHaul", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTMnOpticalReach.setStatus('current') optIfPerfMonIntervalTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 2, 1), ) if mibBuilder.loadTexts: optIfPerfMonIntervalTable.setStatus('current') optIfPerfMonIntervalEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfPerfMonIntervalEntry.setStatus('current') optIfPerfMonCurrentTimeElapsed = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 2, 1, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 900))).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfPerfMonCurrentTimeElapsed.setStatus('current') optIfPerfMonCurDayTimeElapsed = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 2, 1, 1, 2), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 86400))).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfPerfMonCurDayTimeElapsed.setStatus('current') optIfPerfMonIntervalNumIntervals = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 2, 1, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfPerfMonIntervalNumIntervals.setStatus('current') optIfPerfMonIntervalNumInvalidIntervals = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 2, 1, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfPerfMonIntervalNumInvalidIntervals.setStatus('current') optIfOTSnConfigTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 1), ) if mibBuilder.loadTexts: optIfOTSnConfigTable.setStatus('current') optIfOTSnConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOTSnConfigEntry.setStatus('current') optIfOTSnDirectionality = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 1, 1, 1), OptIfDirectionality()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnDirectionality.setStatus('current') optIfOTSnAprStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 1, 1, 2), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnAprStatus.setStatus('current') optIfOTSnAprControl = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 1, 1, 3), SnmpAdminString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTSnAprControl.setStatus('current') optIfOTSnTraceIdentifierTransmitted = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 1, 1, 4), OptIfTxTI()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTSnTraceIdentifierTransmitted.setStatus('current') optIfOTSnDAPIExpected = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 1, 1, 5), OptIfExDAPI()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTSnDAPIExpected.setStatus('current') optIfOTSnSAPIExpected = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 1, 1, 6), OptIfExSAPI()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTSnSAPIExpected.setStatus('current') optIfOTSnTraceIdentifierAccepted = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 1, 1, 7), OptIfAcTI()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnTraceIdentifierAccepted.setStatus('current') optIfOTSnTIMDetMode = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 1, 1, 8), OptIfTIMDetMode()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTSnTIMDetMode.setStatus('current') optIfOTSnTIMActEnabled = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 1, 1, 9), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTSnTIMActEnabled.setStatus('current') optIfOTSnCurrentStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 1, 1, 10), Bits().clone(namedValues=NamedValues(("bdiP", 0), ("bdiO", 1), ("bdi", 2), ("tim", 3), ("losP", 4), ("losO", 5), ("los", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnCurrentStatus.setStatus('current') optIfOTSnSinkCurrentTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 2), ) if mibBuilder.loadTexts: optIfOTSnSinkCurrentTable.setStatus('current') optIfOTSnSinkCurrentEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOTSnSinkCurrentEntry.setStatus('current') optIfOTSnSinkCurrentSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 2, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkCurrentSuspectedFlag.setStatus('current') optIfOTSnSinkCurrentInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 2, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkCurrentInputPower.setStatus('current') optIfOTSnSinkCurrentLowInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 2, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkCurrentLowInputPower.setStatus('current') optIfOTSnSinkCurrentHighInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 2, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkCurrentHighInputPower.setStatus('current') optIfOTSnSinkCurrentLowerInputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 2, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTSnSinkCurrentLowerInputPowerThreshold.setStatus('current') optIfOTSnSinkCurrentUpperInputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 2, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTSnSinkCurrentUpperInputPowerThreshold.setStatus('current') optIfOTSnSinkCurrentOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 2, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkCurrentOutputPower.setStatus('current') optIfOTSnSinkCurrentLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 2, 1, 8), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkCurrentLowOutputPower.setStatus('current') optIfOTSnSinkCurrentHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 2, 1, 9), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkCurrentHighOutputPower.setStatus('current') optIfOTSnSinkCurrentLowerOutputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 2, 1, 10), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTSnSinkCurrentLowerOutputPowerThreshold.setStatus('current') optIfOTSnSinkCurrentUpperOutputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 2, 1, 11), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTSnSinkCurrentUpperOutputPowerThreshold.setStatus('current') optIfOTSnSinkIntervalTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 3), ) if mibBuilder.loadTexts: optIfOTSnSinkIntervalTable.setStatus('current') optIfOTSnSinkIntervalEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "OPT-IF-MIB", "optIfOTSnSinkIntervalNumber")) if mibBuilder.loadTexts: optIfOTSnSinkIntervalEntry.setStatus('current') optIfOTSnSinkIntervalNumber = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 3, 1, 1), OptIfIntervalNumber()) if mibBuilder.loadTexts: optIfOTSnSinkIntervalNumber.setStatus('current') optIfOTSnSinkIntervalSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 3, 1, 2), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkIntervalSuspectedFlag.setStatus('current') optIfOTSnSinkIntervalLastInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 3, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkIntervalLastInputPower.setStatus('current') optIfOTSnSinkIntervalLowInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 3, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkIntervalLowInputPower.setStatus('current') optIfOTSnSinkIntervalHighInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 3, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkIntervalHighInputPower.setStatus('current') optIfOTSnSinkIntervalLastOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 3, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkIntervalLastOutputPower.setStatus('current') optIfOTSnSinkIntervalLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 3, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkIntervalLowOutputPower.setStatus('current') optIfOTSnSinkIntervalHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 3, 1, 8), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkIntervalHighOutputPower.setStatus('current') optIfOTSnSinkCurDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 4), ) if mibBuilder.loadTexts: optIfOTSnSinkCurDayTable.setStatus('current') optIfOTSnSinkCurDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOTSnSinkCurDayEntry.setStatus('current') optIfOTSnSinkCurDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 4, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkCurDaySuspectedFlag.setStatus('current') optIfOTSnSinkCurDayLowInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 4, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkCurDayLowInputPower.setStatus('current') optIfOTSnSinkCurDayHighInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 4, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkCurDayHighInputPower.setStatus('current') optIfOTSnSinkCurDayLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 4, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkCurDayLowOutputPower.setStatus('current') optIfOTSnSinkCurDayHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 4, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkCurDayHighOutputPower.setStatus('current') optIfOTSnSinkPrevDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 5), ) if mibBuilder.loadTexts: optIfOTSnSinkPrevDayTable.setStatus('current') optIfOTSnSinkPrevDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOTSnSinkPrevDayEntry.setStatus('current') optIfOTSnSinkPrevDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 5, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkPrevDaySuspectedFlag.setStatus('current') optIfOTSnSinkPrevDayLastInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 5, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkPrevDayLastInputPower.setStatus('current') optIfOTSnSinkPrevDayLowInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 5, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkPrevDayLowInputPower.setStatus('current') optIfOTSnSinkPrevDayHighInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 5, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkPrevDayHighInputPower.setStatus('current') optIfOTSnSinkPrevDayLastOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 5, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkPrevDayLastOutputPower.setStatus('current') optIfOTSnSinkPrevDayLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 5, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkPrevDayLowOutputPower.setStatus('current') optIfOTSnSinkPrevDayHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 5, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSinkPrevDayHighOutputPower.setStatus('current') optIfOTSnSrcCurrentTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 6), ) if mibBuilder.loadTexts: optIfOTSnSrcCurrentTable.setStatus('current') optIfOTSnSrcCurrentEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 6, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOTSnSrcCurrentEntry.setStatus('current') optIfOTSnSrcCurrentSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 6, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcCurrentSuspectedFlag.setStatus('current') optIfOTSnSrcCurrentOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 6, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcCurrentOutputPower.setStatus('current') optIfOTSnSrcCurrentLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 6, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcCurrentLowOutputPower.setStatus('current') optIfOTSnSrcCurrentHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 6, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcCurrentHighOutputPower.setStatus('current') optIfOTSnSrcCurrentLowerOutputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 6, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTSnSrcCurrentLowerOutputPowerThreshold.setStatus('current') optIfOTSnSrcCurrentUpperOutputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 6, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTSnSrcCurrentUpperOutputPowerThreshold.setStatus('current') optIfOTSnSrcCurrentInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 6, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcCurrentInputPower.setStatus('current') optIfOTSnSrcCurrentLowInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 6, 1, 8), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcCurrentLowInputPower.setStatus('current') optIfOTSnSrcCurrentHighInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 6, 1, 9), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcCurrentHighInputPower.setStatus('current') optIfOTSnSrcCurrentLowerInputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 6, 1, 10), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTSnSrcCurrentLowerInputPowerThreshold.setStatus('current') optIfOTSnSrcCurrentUpperInputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 6, 1, 11), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTSnSrcCurrentUpperInputPowerThreshold.setStatus('current') optIfOTSnSrcIntervalTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 7), ) if mibBuilder.loadTexts: optIfOTSnSrcIntervalTable.setStatus('current') optIfOTSnSrcIntervalEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 7, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "OPT-IF-MIB", "optIfOTSnSrcIntervalNumber")) if mibBuilder.loadTexts: optIfOTSnSrcIntervalEntry.setStatus('current') optIfOTSnSrcIntervalNumber = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 7, 1, 1), OptIfIntervalNumber()) if mibBuilder.loadTexts: optIfOTSnSrcIntervalNumber.setStatus('current') optIfOTSnSrcIntervalSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 7, 1, 2), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcIntervalSuspectedFlag.setStatus('current') optIfOTSnSrcIntervalLastOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 7, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcIntervalLastOutputPower.setStatus('current') optIfOTSnSrcIntervalLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 7, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcIntervalLowOutputPower.setStatus('current') optIfOTSnSrcIntervalHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 7, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcIntervalHighOutputPower.setStatus('current') optIfOTSnSrcIntervalLastInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 7, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcIntervalLastInputPower.setStatus('current') optIfOTSnSrcIntervalLowInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 7, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcIntervalLowInputPower.setStatus('current') optIfOTSnSrcIntervalHighInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 7, 1, 8), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcIntervalHighInputPower.setStatus('current') optIfOTSnSrcCurDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 8), ) if mibBuilder.loadTexts: optIfOTSnSrcCurDayTable.setStatus('current') optIfOTSnSrcCurDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 8, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOTSnSrcCurDayEntry.setStatus('current') optIfOTSnSrcCurDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 8, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcCurDaySuspectedFlag.setStatus('current') optIfOTSnSrcCurDayLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 8, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcCurDayLowOutputPower.setStatus('current') optIfOTSnSrcCurDayHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 8, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcCurDayHighOutputPower.setStatus('current') optIfOTSnSrcCurDayLowInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 8, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcCurDayLowInputPower.setStatus('current') optIfOTSnSrcCurDayHighInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 8, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcCurDayHighInputPower.setStatus('current') optIfOTSnSrcPrevDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 9), ) if mibBuilder.loadTexts: optIfOTSnSrcPrevDayTable.setStatus('current') optIfOTSnSrcPrevDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 9, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOTSnSrcPrevDayEntry.setStatus('current') optIfOTSnSrcPrevDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 9, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcPrevDaySuspectedFlag.setStatus('current') optIfOTSnSrcPrevDayLastOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 9, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcPrevDayLastOutputPower.setStatus('current') optIfOTSnSrcPrevDayLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 9, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcPrevDayLowOutputPower.setStatus('current') optIfOTSnSrcPrevDayHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 9, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcPrevDayHighOutputPower.setStatus('current') optIfOTSnSrcPrevDayLastInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 9, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcPrevDayLastInputPower.setStatus('current') optIfOTSnSrcPrevDayLowInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 9, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcPrevDayLowInputPower.setStatus('current') optIfOTSnSrcPrevDayHighInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 3, 9, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTSnSrcPrevDayHighInputPower.setStatus('current') optIfOMSnConfigTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 1), ) if mibBuilder.loadTexts: optIfOMSnConfigTable.setStatus('current') optIfOMSnConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOMSnConfigEntry.setStatus('current') optIfOMSnDirectionality = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 1, 1, 1), OptIfDirectionality()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnDirectionality.setStatus('current') optIfOMSnCurrentStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 1, 1, 2), Bits().clone(namedValues=NamedValues(("ssfP", 0), ("ssfO", 1), ("ssf", 2), ("bdiP", 3), ("bdiO", 4), ("bdi", 5), ("losP", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnCurrentStatus.setStatus('current') optIfOMSnSinkCurrentTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 2), ) if mibBuilder.loadTexts: optIfOMSnSinkCurrentTable.setStatus('current') optIfOMSnSinkCurrentEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOMSnSinkCurrentEntry.setStatus('current') optIfOMSnSinkCurrentSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 2, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkCurrentSuspectedFlag.setStatus('current') optIfOMSnSinkCurrentAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 2, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkCurrentAggregatedInputPower.setStatus('current') optIfOMSnSinkCurrentLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 2, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkCurrentLowAggregatedInputPower.setStatus('current') optIfOMSnSinkCurrentHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 2, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkCurrentHighAggregatedInputPower.setStatus('current') optIfOMSnSinkCurrentLowerInputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 2, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOMSnSinkCurrentLowerInputPowerThreshold.setStatus('current') optIfOMSnSinkCurrentUpperInputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 2, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOMSnSinkCurrentUpperInputPowerThreshold.setStatus('current') optIfOMSnSinkCurrentOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 2, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkCurrentOutputPower.setStatus('current') optIfOMSnSinkCurrentLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 2, 1, 8), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkCurrentLowOutputPower.setStatus('current') optIfOMSnSinkCurrentHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 2, 1, 9), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkCurrentHighOutputPower.setStatus('current') optIfOMSnSinkCurrentLowerOutputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 2, 1, 10), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOMSnSinkCurrentLowerOutputPowerThreshold.setStatus('current') optIfOMSnSinkCurrentUpperOutputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 2, 1, 11), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOMSnSinkCurrentUpperOutputPowerThreshold.setStatus('current') optIfOMSnSinkIntervalTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 3), ) if mibBuilder.loadTexts: optIfOMSnSinkIntervalTable.setStatus('current') optIfOMSnSinkIntervalEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "OPT-IF-MIB", "optIfOMSnSinkIntervalNumber")) if mibBuilder.loadTexts: optIfOMSnSinkIntervalEntry.setStatus('current') optIfOMSnSinkIntervalNumber = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 3, 1, 1), OptIfIntervalNumber()) if mibBuilder.loadTexts: optIfOMSnSinkIntervalNumber.setStatus('current') optIfOMSnSinkIntervalSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 3, 1, 2), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkIntervalSuspectedFlag.setStatus('current') optIfOMSnSinkIntervalLastAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 3, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkIntervalLastAggregatedInputPower.setStatus('current') optIfOMSnSinkIntervalLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 3, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkIntervalLowAggregatedInputPower.setStatus('current') optIfOMSnSinkIntervalHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 3, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkIntervalHighAggregatedInputPower.setStatus('current') optIfOMSnSinkIntervalLastOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 3, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkIntervalLastOutputPower.setStatus('current') optIfOMSnSinkIntervalLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 3, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkIntervalLowOutputPower.setStatus('current') optIfOMSnSinkIntervalHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 3, 1, 8), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkIntervalHighOutputPower.setStatus('current') optIfOMSnSinkCurDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 4), ) if mibBuilder.loadTexts: optIfOMSnSinkCurDayTable.setStatus('current') optIfOMSnSinkCurDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOMSnSinkCurDayEntry.setStatus('current') optIfOMSnSinkCurDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 4, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkCurDaySuspectedFlag.setStatus('current') optIfOMSnSinkCurDayLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 4, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkCurDayLowAggregatedInputPower.setStatus('current') optIfOMSnSinkCurDayHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 4, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkCurDayHighAggregatedInputPower.setStatus('current') optIfOMSnSinkCurDayLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 4, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkCurDayLowOutputPower.setStatus('current') optIfOMSnSinkCurDayHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 4, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkCurDayHighOutputPower.setStatus('current') optIfOMSnSinkPrevDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 5), ) if mibBuilder.loadTexts: optIfOMSnSinkPrevDayTable.setStatus('current') optIfOMSnSinkPrevDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOMSnSinkPrevDayEntry.setStatus('current') optIfOMSnSinkPrevDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 5, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkPrevDaySuspectedFlag.setStatus('current') optIfOMSnSinkPrevDayLastAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 5, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkPrevDayLastAggregatedInputPower.setStatus('current') optIfOMSnSinkPrevDayLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 5, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkPrevDayLowAggregatedInputPower.setStatus('current') optIfOMSnSinkPrevDayHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 5, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkPrevDayHighAggregatedInputPower.setStatus('current') optIfOMSnSinkPrevDayLastOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 5, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkPrevDayLastOutputPower.setStatus('current') optIfOMSnSinkPrevDayLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 5, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkPrevDayLowOutputPower.setStatus('current') optIfOMSnSinkPrevDayHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 5, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSinkPrevDayHighOutputPower.setStatus('current') optIfOMSnSrcCurrentTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 6), ) if mibBuilder.loadTexts: optIfOMSnSrcCurrentTable.setStatus('current') optIfOMSnSrcCurrentEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 6, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOMSnSrcCurrentEntry.setStatus('current') optIfOMSnSrcCurrentSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 6, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcCurrentSuspectedFlag.setStatus('current') optIfOMSnSrcCurrentOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 6, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcCurrentOutputPower.setStatus('current') optIfOMSnSrcCurrentLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 6, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcCurrentLowOutputPower.setStatus('current') optIfOMSnSrcCurrentHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 6, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcCurrentHighOutputPower.setStatus('current') optIfOMSnSrcCurrentLowerOutputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 6, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOMSnSrcCurrentLowerOutputPowerThreshold.setStatus('current') optIfOMSnSrcCurrentUpperOutputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 6, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOMSnSrcCurrentUpperOutputPowerThreshold.setStatus('current') optIfOMSnSrcCurrentAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 6, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcCurrentAggregatedInputPower.setStatus('current') optIfOMSnSrcCurrentLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 6, 1, 8), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcCurrentLowAggregatedInputPower.setStatus('current') optIfOMSnSrcCurrentHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 6, 1, 9), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcCurrentHighAggregatedInputPower.setStatus('current') optIfOMSnSrcCurrentLowerInputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 6, 1, 10), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOMSnSrcCurrentLowerInputPowerThreshold.setStatus('current') optIfOMSnSrcCurrentUpperInputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 6, 1, 11), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOMSnSrcCurrentUpperInputPowerThreshold.setStatus('current') optIfOMSnSrcIntervalTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 7), ) if mibBuilder.loadTexts: optIfOMSnSrcIntervalTable.setStatus('current') optIfOMSnSrcIntervalEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 7, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "OPT-IF-MIB", "optIfOMSnSrcIntervalNumber")) if mibBuilder.loadTexts: optIfOMSnSrcIntervalEntry.setStatus('current') optIfOMSnSrcIntervalNumber = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 7, 1, 1), OptIfIntervalNumber()) if mibBuilder.loadTexts: optIfOMSnSrcIntervalNumber.setStatus('current') optIfOMSnSrcIntervalSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 7, 1, 2), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcIntervalSuspectedFlag.setStatus('current') optIfOMSnSrcIntervalLastOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 7, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcIntervalLastOutputPower.setStatus('current') optIfOMSnSrcIntervalLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 7, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcIntervalLowOutputPower.setStatus('current') optIfOMSnSrcIntervalHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 7, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcIntervalHighOutputPower.setStatus('current') optIfOMSnSrcIntervalLastAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 7, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcIntervalLastAggregatedInputPower.setStatus('current') optIfOMSnSrcIntervalLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 7, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcIntervalLowAggregatedInputPower.setStatus('current') optIfOMSnSrcIntervalHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 7, 1, 8), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcIntervalHighAggregatedInputPower.setStatus('current') optIfOMSnSrcCurDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 8), ) if mibBuilder.loadTexts: optIfOMSnSrcCurDayTable.setStatus('current') optIfOMSnSrcCurDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 8, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOMSnSrcCurDayEntry.setStatus('current') optIfOMSnSrcCurDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 8, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcCurDaySuspectedFlag.setStatus('current') optIfOMSnSrcCurDayLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 8, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcCurDayLowOutputPower.setStatus('current') optIfOMSnSrcCurDayHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 8, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcCurDayHighOutputPower.setStatus('current') optIfOMSnSrcCurDayLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 8, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcCurDayLowAggregatedInputPower.setStatus('current') optIfOMSnSrcCurDayHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 8, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcCurDayHighAggregatedInputPower.setStatus('current') optIfOMSnSrcPrevDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 9), ) if mibBuilder.loadTexts: optIfOMSnSrcPrevDayTable.setStatus('current') optIfOMSnSrcPrevDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 9, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOMSnSrcPrevDayEntry.setStatus('current') optIfOMSnSrcPrevDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 9, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcPrevDaySuspectedFlag.setStatus('current') optIfOMSnSrcPrevDayLastOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 9, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcPrevDayLastOutputPower.setStatus('current') optIfOMSnSrcPrevDayLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 9, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcPrevDayLowOutputPower.setStatus('current') optIfOMSnSrcPrevDayHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 9, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcPrevDayHighOutputPower.setStatus('current') optIfOMSnSrcPrevDayLastAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 9, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcPrevDayLastAggregatedInputPower.setStatus('current') optIfOMSnSrcPrevDayLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 9, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcPrevDayLowAggregatedInputPower.setStatus('current') optIfOMSnSrcPrevDayHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 4, 9, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOMSnSrcPrevDayHighAggregatedInputPower.setStatus('current') optIfOChGroupConfigTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 1), ) if mibBuilder.loadTexts: optIfOChGroupConfigTable.setStatus('current') optIfOChGroupConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOChGroupConfigEntry.setStatus('current') optIfOChGroupDirectionality = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 1, 1, 1), OptIfDirectionality()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupDirectionality.setStatus('current') optIfOChGroupSinkCurrentTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 2), ) if mibBuilder.loadTexts: optIfOChGroupSinkCurrentTable.setStatus('current') optIfOChGroupSinkCurrentEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOChGroupSinkCurrentEntry.setStatus('current') optIfOChGroupSinkCurrentSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 2, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkCurrentSuspectedFlag.setStatus('current') optIfOChGroupSinkCurrentAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 2, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkCurrentAggregatedInputPower.setStatus('current') optIfOChGroupSinkCurrentLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 2, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkCurrentLowAggregatedInputPower.setStatus('current') optIfOChGroupSinkCurrentHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 2, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkCurrentHighAggregatedInputPower.setStatus('current') optIfOChGroupSinkCurrentLowerInputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 2, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOChGroupSinkCurrentLowerInputPowerThreshold.setStatus('current') optIfOChGroupSinkCurrentUpperInputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 2, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOChGroupSinkCurrentUpperInputPowerThreshold.setStatus('current') optIfOChGroupSinkCurrentOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 2, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkCurrentOutputPower.setStatus('current') optIfOChGroupSinkCurrentLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 2, 1, 8), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkCurrentLowOutputPower.setStatus('current') optIfOChGroupSinkCurrentHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 2, 1, 9), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkCurrentHighOutputPower.setStatus('current') optIfOChGroupSinkCurrentLowerOutputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 2, 1, 10), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOChGroupSinkCurrentLowerOutputPowerThreshold.setStatus('current') optIfOChGroupSinkCurrentUpperOutputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 2, 1, 11), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOChGroupSinkCurrentUpperOutputPowerThreshold.setStatus('current') optIfOChGroupSinkIntervalTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 3), ) if mibBuilder.loadTexts: optIfOChGroupSinkIntervalTable.setStatus('current') optIfOChGroupSinkIntervalEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "OPT-IF-MIB", "optIfOChGroupSinkIntervalNumber")) if mibBuilder.loadTexts: optIfOChGroupSinkIntervalEntry.setStatus('current') optIfOChGroupSinkIntervalNumber = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 3, 1, 1), OptIfIntervalNumber()) if mibBuilder.loadTexts: optIfOChGroupSinkIntervalNumber.setStatus('current') optIfOChGroupSinkIntervalSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 3, 1, 2), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkIntervalSuspectedFlag.setStatus('current') optIfOChGroupSinkIntervalLastAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 3, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkIntervalLastAggregatedInputPower.setStatus('current') optIfOChGroupSinkIntervalLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 3, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkIntervalLowAggregatedInputPower.setStatus('current') optIfOChGroupSinkIntervalHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 3, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkIntervalHighAggregatedInputPower.setStatus('current') optIfOChGroupSinkIntervalLastOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 3, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkIntervalLastOutputPower.setStatus('current') optIfOChGroupSinkIntervalLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 3, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkIntervalLowOutputPower.setStatus('current') optIfOChGroupSinkIntervalHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 3, 1, 8), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkIntervalHighOutputPower.setStatus('current') optIfOChGroupSinkCurDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 4), ) if mibBuilder.loadTexts: optIfOChGroupSinkCurDayTable.setStatus('current') optIfOChGroupSinkCurDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOChGroupSinkCurDayEntry.setStatus('current') optIfOChGroupSinkCurDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 4, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkCurDaySuspectedFlag.setStatus('current') optIfOChGroupSinkCurDayLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 4, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkCurDayLowAggregatedInputPower.setStatus('current') optIfOChGroupSinkCurDayHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 4, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkCurDayHighAggregatedInputPower.setStatus('current') optIfOChGroupSinkCurDayLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 4, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkCurDayLowOutputPower.setStatus('current') optIfOChGroupSinkCurDayHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 4, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkCurDayHighOutputPower.setStatus('current') optIfOChGroupSinkPrevDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 5), ) if mibBuilder.loadTexts: optIfOChGroupSinkPrevDayTable.setStatus('current') optIfOChGroupSinkPrevDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOChGroupSinkPrevDayEntry.setStatus('current') optIfOChGroupSinkPrevDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 5, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkPrevDaySuspectedFlag.setStatus('current') optIfOChGroupSinkPrevDayLastAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 5, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkPrevDayLastAggregatedInputPower.setStatus('current') optIfOChGroupSinkPrevDayLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 5, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkPrevDayLowAggregatedInputPower.setStatus('current') optIfOChGroupSinkPrevDayHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 5, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkPrevDayHighAggregatedInputPower.setStatus('current') optIfOChGroupSinkPrevDayLastOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 5, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkPrevDayLastOutputPower.setStatus('current') optIfOChGroupSinkPrevDayLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 5, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkPrevDayLowOutputPower.setStatus('current') optIfOChGroupSinkPrevDayHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 5, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSinkPrevDayHighOutputPower.setStatus('current') optIfOChGroupSrcCurrentTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 6), ) if mibBuilder.loadTexts: optIfOChGroupSrcCurrentTable.setStatus('current') optIfOChGroupSrcCurrentEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 6, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOChGroupSrcCurrentEntry.setStatus('current') optIfOChGroupSrcCurrentSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 6, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcCurrentSuspectedFlag.setStatus('current') optIfOChGroupSrcCurrentOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 6, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcCurrentOutputPower.setStatus('current') optIfOChGroupSrcCurrentLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 6, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcCurrentLowOutputPower.setStatus('current') optIfOChGroupSrcCurrentHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 6, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcCurrentHighOutputPower.setStatus('current') optIfOChGroupSrcCurrentLowerOutputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 6, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOChGroupSrcCurrentLowerOutputPowerThreshold.setStatus('current') optIfOChGroupSrcCurrentUpperOutputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 6, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOChGroupSrcCurrentUpperOutputPowerThreshold.setStatus('current') optIfOChGroupSrcCurrentAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 6, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcCurrentAggregatedInputPower.setStatus('current') optIfOChGroupSrcCurrentLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 6, 1, 8), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcCurrentLowAggregatedInputPower.setStatus('current') optIfOChGroupSrcCurrentHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 6, 1, 9), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcCurrentHighAggregatedInputPower.setStatus('current') optIfOChGroupSrcCurrentLowerInputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 6, 1, 10), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOChGroupSrcCurrentLowerInputPowerThreshold.setStatus('current') optIfOChGroupSrcCurrentUpperInputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 6, 1, 11), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOChGroupSrcCurrentUpperInputPowerThreshold.setStatus('current') optIfOChGroupSrcIntervalTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 7), ) if mibBuilder.loadTexts: optIfOChGroupSrcIntervalTable.setStatus('current') optIfOChGroupSrcIntervalEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 7, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "OPT-IF-MIB", "optIfOChGroupSrcIntervalNumber")) if mibBuilder.loadTexts: optIfOChGroupSrcIntervalEntry.setStatus('current') optIfOChGroupSrcIntervalNumber = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 7, 1, 1), OptIfIntervalNumber()) if mibBuilder.loadTexts: optIfOChGroupSrcIntervalNumber.setStatus('current') optIfOChGroupSrcIntervalSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 7, 1, 2), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcIntervalSuspectedFlag.setStatus('current') optIfOChGroupSrcIntervalLastOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 7, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcIntervalLastOutputPower.setStatus('current') optIfOChGroupSrcIntervalLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 7, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcIntervalLowOutputPower.setStatus('current') optIfOChGroupSrcIntervalHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 7, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcIntervalHighOutputPower.setStatus('current') optIfOChGroupSrcIntervalLastAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 7, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcIntervalLastAggregatedInputPower.setStatus('current') optIfOChGroupSrcIntervalLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 7, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcIntervalLowAggregatedInputPower.setStatus('current') optIfOChGroupSrcIntervalHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 7, 1, 8), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcIntervalHighAggregatedInputPower.setStatus('current') optIfOChGroupSrcCurDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 8), ) if mibBuilder.loadTexts: optIfOChGroupSrcCurDayTable.setStatus('current') optIfOChGroupSrcCurDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 8, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOChGroupSrcCurDayEntry.setStatus('current') optIfOChGroupSrcCurDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 8, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcCurDaySuspectedFlag.setStatus('current') optIfOChGroupSrcCurDayLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 8, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcCurDayLowOutputPower.setStatus('current') optIfOChGroupSrcCurDayHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 8, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcCurDayHighOutputPower.setStatus('current') optIfOChGroupSrcCurDayLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 8, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcCurDayLowAggregatedInputPower.setStatus('current') optIfOChGroupSrcCurDayHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 8, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcCurDayHighAggregatedInputPower.setStatus('current') optIfOChGroupSrcPrevDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 9), ) if mibBuilder.loadTexts: optIfOChGroupSrcPrevDayTable.setStatus('current') optIfOChGroupSrcPrevDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 9, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOChGroupSrcPrevDayEntry.setStatus('current') optIfOChGroupSrcPrevDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 9, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcPrevDaySuspectedFlag.setStatus('current') optIfOChGroupSrcPrevDayLastOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 9, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcPrevDayLastOutputPower.setStatus('current') optIfOChGroupSrcPrevDayLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 9, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcPrevDayLowOutputPower.setStatus('current') optIfOChGroupSrcPrevDayHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 9, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcPrevDayHighOutputPower.setStatus('current') optIfOChGroupSrcPrevDayLastAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 9, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcPrevDayLastAggregatedInputPower.setStatus('current') optIfOChGroupSrcPrevDayLowAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 9, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcPrevDayLowAggregatedInputPower.setStatus('current') optIfOChGroupSrcPrevDayHighAggregatedInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 5, 9, 1, 7), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChGroupSrcPrevDayHighAggregatedInputPower.setStatus('current') optIfOChConfigTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 1), ) if mibBuilder.loadTexts: optIfOChConfigTable.setStatus('current') optIfOChConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOChConfigEntry.setStatus('current') optIfOChDirectionality = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 1, 1, 1), OptIfDirectionality()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChDirectionality.setStatus('current') optIfOChCurrentStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 1, 1, 2), Bits().clone(namedValues=NamedValues(("losP", 0), ("los", 1), ("oci", 2), ("ssfP", 3), ("ssfO", 4), ("ssf", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChCurrentStatus.setStatus('current') optIfOChSinkCurrentTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 2), ) if mibBuilder.loadTexts: optIfOChSinkCurrentTable.setStatus('current') optIfOChSinkCurrentEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOChSinkCurrentEntry.setStatus('current') optIfOChSinkCurrentSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 2, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkCurrentSuspectedFlag.setStatus('current') optIfOChSinkCurrentInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 2, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkCurrentInputPower.setStatus('current') optIfOChSinkCurrentLowInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 2, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkCurrentLowInputPower.setStatus('current') optIfOChSinkCurrentHighInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 2, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkCurrentHighInputPower.setStatus('current') optIfOChSinkCurrentLowerInputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 2, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOChSinkCurrentLowerInputPowerThreshold.setStatus('current') optIfOChSinkCurrentUpperInputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 2, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOChSinkCurrentUpperInputPowerThreshold.setStatus('current') optIfOChSinkIntervalTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 3), ) if mibBuilder.loadTexts: optIfOChSinkIntervalTable.setStatus('current') optIfOChSinkIntervalEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "OPT-IF-MIB", "optIfOChSinkIntervalNumber")) if mibBuilder.loadTexts: optIfOChSinkIntervalEntry.setStatus('current') optIfOChSinkIntervalNumber = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 3, 1, 1), OptIfIntervalNumber()) if mibBuilder.loadTexts: optIfOChSinkIntervalNumber.setStatus('current') optIfOChSinkIntervalSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 3, 1, 2), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkIntervalSuspectedFlag.setStatus('current') optIfOChSinkIntervalLastInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 3, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkIntervalLastInputPower.setStatus('current') optIfOChSinkIntervalLowInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 3, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkIntervalLowInputPower.setStatus('current') optIfOChSinkIntervalHighInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 3, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkIntervalHighInputPower.setStatus('current') optIfOChSinkCurDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 4), ) if mibBuilder.loadTexts: optIfOChSinkCurDayTable.setStatus('current') optIfOChSinkCurDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOChSinkCurDayEntry.setStatus('current') optIfOChSinkCurDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 4, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkCurDaySuspectedFlag.setStatus('current') optIfOChSinkCurDayLowInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 4, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkCurDayLowInputPower.setStatus('current') optIfOChSinkCurDayHighInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 4, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkCurDayHighInputPower.setStatus('current') optIfOChSinkPrevDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 5), ) if mibBuilder.loadTexts: optIfOChSinkPrevDayTable.setStatus('current') optIfOChSinkPrevDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOChSinkPrevDayEntry.setStatus('current') optIfOChSinkPrevDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 5, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkPrevDaySuspectedFlag.setStatus('current') optIfOChSinkPrevDayLastInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 5, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkPrevDayLastInputPower.setStatus('current') optIfOChSinkPrevDayLowInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 5, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkPrevDayLowInputPower.setStatus('current') optIfOChSinkPrevDayHighInputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 5, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSinkPrevDayHighInputPower.setStatus('current') optIfOChSrcCurrentTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 6), ) if mibBuilder.loadTexts: optIfOChSrcCurrentTable.setStatus('current') optIfOChSrcCurrentEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 6, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOChSrcCurrentEntry.setStatus('current') optIfOChSrcCurrentSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 6, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcCurrentSuspectedFlag.setStatus('current') optIfOChSrcCurrentOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 6, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcCurrentOutputPower.setStatus('current') optIfOChSrcCurrentLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 6, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcCurrentLowOutputPower.setStatus('current') optIfOChSrcCurrentHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 6, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcCurrentHighOutputPower.setStatus('current') optIfOChSrcCurrentLowerOutputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 6, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOChSrcCurrentLowerOutputPowerThreshold.setStatus('current') optIfOChSrcCurrentUpperOutputPowerThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 6, 1, 6), Integer32()).setUnits('0.1 dbm').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOChSrcCurrentUpperOutputPowerThreshold.setStatus('current') optIfOChSrcIntervalTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 7), ) if mibBuilder.loadTexts: optIfOChSrcIntervalTable.setStatus('current') optIfOChSrcIntervalEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 7, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "OPT-IF-MIB", "optIfOChSrcIntervalNumber")) if mibBuilder.loadTexts: optIfOChSrcIntervalEntry.setStatus('current') optIfOChSrcIntervalNumber = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 7, 1, 1), OptIfIntervalNumber()) if mibBuilder.loadTexts: optIfOChSrcIntervalNumber.setStatus('current') optIfOChSrcIntervalSuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 7, 1, 2), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcIntervalSuspectedFlag.setStatus('current') optIfOChSrcIntervalLastOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 7, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcIntervalLastOutputPower.setStatus('current') optIfOChSrcIntervalLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 7, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcIntervalLowOutputPower.setStatus('current') optIfOChSrcIntervalHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 7, 1, 5), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcIntervalHighOutputPower.setStatus('current') optIfOChSrcCurDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 8), ) if mibBuilder.loadTexts: optIfOChSrcCurDayTable.setStatus('current') optIfOChSrcCurDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 8, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOChSrcCurDayEntry.setStatus('current') optIfOChSrcCurDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 8, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcCurDaySuspectedFlag.setStatus('current') optIfOChSrcCurDayLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 8, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcCurDayLowOutputPower.setStatus('current') optIfOChSrcCurDayHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 8, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcCurDayHighOutputPower.setStatus('current') optIfOChSrcPrevDayTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 9), ) if mibBuilder.loadTexts: optIfOChSrcPrevDayTable.setStatus('current') optIfOChSrcPrevDayEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 9, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOChSrcPrevDayEntry.setStatus('current') optIfOChSrcPrevDaySuspectedFlag = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 9, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcPrevDaySuspectedFlag.setStatus('current') optIfOChSrcPrevDayLastOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 9, 1, 2), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcPrevDayLastOutputPower.setStatus('current') optIfOChSrcPrevDayLowOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 9, 1, 3), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcPrevDayLowOutputPower.setStatus('current') optIfOChSrcPrevDayHighOutputPower = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 6, 9, 1, 4), Integer32()).setUnits('0.1 dbm').setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOChSrcPrevDayHighOutputPower.setStatus('current') optIfOTUkConfigTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1), ) if mibBuilder.loadTexts: optIfOTUkConfigTable.setStatus('current') optIfOTUkConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfOTUkConfigEntry.setStatus('current') optIfOTUkDirectionality = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1, 1), OptIfDirectionality()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTUkDirectionality.setStatus('current') optIfOTUkBitRateK = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1, 2), OptIfBitRateK()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTUkBitRateK.setStatus('current') optIfOTUkTraceIdentifierTransmitted = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1, 3), OptIfTxTI()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTUkTraceIdentifierTransmitted.setStatus('current') optIfOTUkDAPIExpected = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1, 4), OptIfExDAPI()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTUkDAPIExpected.setStatus('current') optIfOTUkSAPIExpected = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1, 5), OptIfExSAPI()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTUkSAPIExpected.setStatus('current') optIfOTUkTraceIdentifierAccepted = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1, 6), OptIfAcTI()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTUkTraceIdentifierAccepted.setStatus('current') optIfOTUkTIMDetMode = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1, 7), OptIfTIMDetMode()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTUkTIMDetMode.setStatus('current') optIfOTUkTIMActEnabled = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1, 8), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTUkTIMActEnabled.setStatus('current') optIfOTUkDEGThr = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1, 9), OptIfDEGThr()).setUnits('percentage').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTUkDEGThr.setStatus('current') optIfOTUkDEGM = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1, 10), OptIfDEGM()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTUkDEGM.setStatus('current') optIfOTUkSinkAdaptActive = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1, 11), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTUkSinkAdaptActive.setStatus('current') optIfOTUkSourceAdaptActive = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1, 12), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTUkSourceAdaptActive.setStatus('current') optIfOTUkSinkFECEnabled = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1, 13), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfOTUkSinkFECEnabled.setStatus('current') optIfOTUkCurrentStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 1, 1, 14), Bits().clone(namedValues=NamedValues(("tim", 0), ("deg", 1), ("bdi", 2), ("ssf", 3), ("lof", 4), ("ais", 5), ("lom", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfOTUkCurrentStatus.setStatus('current') optIfGCC0ConfigTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 2), ) if mibBuilder.loadTexts: optIfGCC0ConfigTable.setStatus('current') optIfGCC0ConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "OPT-IF-MIB", "optIfGCC0Directionality")) if mibBuilder.loadTexts: optIfGCC0ConfigEntry.setStatus('current') optIfGCC0Directionality = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 2, 1, 1), OptIfDirectionality()) if mibBuilder.loadTexts: optIfGCC0Directionality.setStatus('current') optIfGCC0Application = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 2, 1, 2), SnmpAdminString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfGCC0Application.setStatus('current') optIfGCC0RowStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 7, 2, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfGCC0RowStatus.setStatus('current') optIfODUkConfigTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 1), ) if mibBuilder.loadTexts: optIfODUkConfigTable.setStatus('current') optIfODUkConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfODUkConfigEntry.setStatus('current') optIfODUkDirectionality = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 1, 1, 1), OptIfDirectionality()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkDirectionality.setStatus('current') optIfODUkBitRateK = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 1, 1, 2), OptIfBitRateK()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkBitRateK.setStatus('current') optIfODUkTcmFieldsInUse = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 1, 1, 3), Bits().clone(namedValues=NamedValues(("tcmField1", 0), ("tcmField2", 1), ("tcmField3", 2), ("tcmField4", 3), ("tcmField5", 4), ("tcmField6", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkTcmFieldsInUse.setStatus('current') optIfODUkPositionSeqCurrentSize = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkPositionSeqCurrentSize.setStatus('current') optIfODUkTtpPresent = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 1, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkTtpPresent.setStatus('current') optIfODUkTtpConfigTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 2), ) if mibBuilder.loadTexts: optIfODUkTtpConfigTable.setStatus('current') optIfODUkTtpConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: optIfODUkTtpConfigEntry.setStatus('current') optIfODUkTtpTraceIdentifierTransmitted = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 2, 1, 1), OptIfTxTI()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfODUkTtpTraceIdentifierTransmitted.setStatus('current') optIfODUkTtpDAPIExpected = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 2, 1, 2), OptIfExDAPI()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfODUkTtpDAPIExpected.setStatus('current') optIfODUkTtpSAPIExpected = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 2, 1, 3), OptIfExSAPI()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfODUkTtpSAPIExpected.setStatus('current') optIfODUkTtpTraceIdentifierAccepted = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 2, 1, 4), OptIfAcTI()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkTtpTraceIdentifierAccepted.setStatus('current') optIfODUkTtpTIMDetMode = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 2, 1, 5), OptIfTIMDetMode()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfODUkTtpTIMDetMode.setStatus('current') optIfODUkTtpTIMActEnabled = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 2, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfODUkTtpTIMActEnabled.setStatus('current') optIfODUkTtpDEGThr = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 2, 1, 7), OptIfDEGThr()).setUnits('percentage').setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfODUkTtpDEGThr.setStatus('current') optIfODUkTtpDEGM = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 2, 1, 8), OptIfDEGM()).setMaxAccess("readwrite") if mibBuilder.loadTexts: optIfODUkTtpDEGM.setStatus('current') optIfODUkTtpCurrentStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 2, 1, 9), Bits().clone(namedValues=NamedValues(("oci", 0), ("lck", 1), ("tim", 2), ("deg", 3), ("bdi", 4), ("ssf", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkTtpCurrentStatus.setStatus('current') optIfODUkPositionSeqTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 3), ) if mibBuilder.loadTexts: optIfODUkPositionSeqTable.setStatus('current') optIfODUkPositionSeqEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "OPT-IF-MIB", "optIfODUkPositionSeqIndex")) if mibBuilder.loadTexts: optIfODUkPositionSeqEntry.setStatus('current') optIfODUkPositionSeqIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 3, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))) if mibBuilder.loadTexts: optIfODUkPositionSeqIndex.setStatus('current') optIfODUkPositionSeqPosition = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 3, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkPositionSeqPosition.setStatus('current') optIfODUkPositionSeqPointer = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 3, 1, 3), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkPositionSeqPointer.setStatus('current') optIfODUkNimConfigTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 4), ) if mibBuilder.loadTexts: optIfODUkNimConfigTable.setStatus('current') optIfODUkNimConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "OPT-IF-MIB", "optIfODUkNimDirectionality")) if mibBuilder.loadTexts: optIfODUkNimConfigEntry.setStatus('current') optIfODUkNimDirectionality = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 4, 1, 1), OptIfSinkOrSource()) if mibBuilder.loadTexts: optIfODUkNimDirectionality.setStatus('current') optIfODUkNimDAPIExpected = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 4, 1, 2), OptIfExDAPI()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkNimDAPIExpected.setStatus('current') optIfODUkNimSAPIExpected = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 4, 1, 3), OptIfExSAPI()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkNimSAPIExpected.setStatus('current') optIfODUkNimTraceIdentifierAccepted = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 4, 1, 4), OptIfAcTI()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkNimTraceIdentifierAccepted.setStatus('current') optIfODUkNimTIMDetMode = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 4, 1, 5), OptIfTIMDetMode()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkNimTIMDetMode.setStatus('current') optIfODUkNimTIMActEnabled = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 4, 1, 6), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkNimTIMActEnabled.setStatus('current') optIfODUkNimDEGThr = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 4, 1, 7), OptIfDEGThr()).setUnits('percentage').setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkNimDEGThr.setStatus('current') optIfODUkNimDEGM = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 4, 1, 8), OptIfDEGM()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkNimDEGM.setStatus('current') optIfODUkNimCurrentStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 4, 1, 9), Bits().clone(namedValues=NamedValues(("oci", 0), ("lck", 1), ("tim", 2), ("deg", 3), ("bdi", 4), ("ssf", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkNimCurrentStatus.setStatus('current') optIfODUkNimRowStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 4, 1, 10), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkNimRowStatus.setStatus('current') optIfGCC12ConfigTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 5), ) if mibBuilder.loadTexts: optIfGCC12ConfigTable.setStatus('current') optIfGCC12ConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "OPT-IF-MIB", "optIfGCC12Codirectional"), (0, "OPT-IF-MIB", "optIfGCC12GCCAccess")) if mibBuilder.loadTexts: optIfGCC12ConfigEntry.setStatus('current') optIfGCC12Codirectional = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 5, 1, 1), TruthValue()) if mibBuilder.loadTexts: optIfGCC12Codirectional.setStatus('current') optIfGCC12GCCAccess = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("gcc1", 1), ("gcc2", 2), ("gcc1and2", 3)))) if mibBuilder.loadTexts: optIfGCC12GCCAccess.setStatus('current') optIfGCC12GCCPassThrough = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 5, 1, 3), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfGCC12GCCPassThrough.setStatus('current') optIfGCC12Application = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 5, 1, 4), SnmpAdminString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfGCC12Application.setStatus('current') optIfGCC12RowStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 8, 5, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfGCC12RowStatus.setStatus('current') optIfODUkTConfigTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1), ) if mibBuilder.loadTexts: optIfODUkTConfigTable.setStatus('current') optIfODUkTConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "OPT-IF-MIB", "optIfODUkTTcmField"), (0, "OPT-IF-MIB", "optIfODUkTCodirectional")) if mibBuilder.loadTexts: optIfODUkTConfigEntry.setStatus('current') optIfODUkTTcmField = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))) if mibBuilder.loadTexts: optIfODUkTTcmField.setStatus('current') optIfODUkTCodirectional = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 2), TruthValue()) if mibBuilder.loadTexts: optIfODUkTCodirectional.setStatus('current') optIfODUkTTraceIdentifierTransmitted = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 3), OptIfTxTI()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTTraceIdentifierTransmitted.setStatus('current') optIfODUkTDAPIExpected = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 4), OptIfExDAPI()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTDAPIExpected.setStatus('current') optIfODUkTSAPIExpected = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 5), OptIfExSAPI()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTSAPIExpected.setStatus('current') optIfODUkTTraceIdentifierAccepted = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 6), OptIfAcTI()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkTTraceIdentifierAccepted.setStatus('current') optIfODUkTTIMDetMode = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 7), OptIfTIMDetMode()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTTIMDetMode.setStatus('current') optIfODUkTTIMActEnabled = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 8), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTTIMActEnabled.setStatus('current') optIfODUkTDEGThr = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 9), OptIfDEGThr()).setUnits('percentage').setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTDEGThr.setStatus('current') optIfODUkTDEGM = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 10), OptIfDEGM()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTDEGM.setStatus('current') optIfODUkTSinkMode = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("operational", 1), ("monitor", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTSinkMode.setStatus('current') optIfODUkTSinkLockSignalAdminState = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("locked", 1), ("normal", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTSinkLockSignalAdminState.setStatus('current') optIfODUkTSourceLockSignalAdminState = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("locked", 1), ("normal", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTSourceLockSignalAdminState.setStatus('current') optIfODUkTCurrentStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 14), Bits().clone(namedValues=NamedValues(("oci", 0), ("lck", 1), ("tim", 2), ("deg", 3), ("bdi", 4), ("ssf", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkTCurrentStatus.setStatus('current') optIfODUkTRowStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 1, 1, 15), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTRowStatus.setStatus('current') optIfODUkTNimConfigTable = MibTable((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 2), ) if mibBuilder.loadTexts: optIfODUkTNimConfigTable.setStatus('current') optIfODUkTNimConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "OPT-IF-MIB", "optIfODUkTNimTcmField"), (0, "OPT-IF-MIB", "optIfODUkTNimDirectionality")) if mibBuilder.loadTexts: optIfODUkTNimConfigEntry.setStatus('current') optIfODUkTNimTcmField = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 2, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))) if mibBuilder.loadTexts: optIfODUkTNimTcmField.setStatus('current') optIfODUkTNimDirectionality = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 2, 1, 2), OptIfSinkOrSource()) if mibBuilder.loadTexts: optIfODUkTNimDirectionality.setStatus('current') optIfODUkTNimDAPIExpected = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 2, 1, 3), OptIfExDAPI()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTNimDAPIExpected.setStatus('current') optIfODUkTNimSAPIExpected = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 2, 1, 4), OptIfExSAPI()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTNimSAPIExpected.setStatus('current') optIfODUkTNimTraceIdentifierAccepted = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 2, 1, 5), OptIfAcTI()).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkTNimTraceIdentifierAccepted.setStatus('current') optIfODUkTNimTIMDetMode = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 2, 1, 6), OptIfTIMDetMode()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTNimTIMDetMode.setStatus('current') optIfODUkTNimTIMActEnabled = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 2, 1, 7), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTNimTIMActEnabled.setStatus('current') optIfODUkTNimDEGThr = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 2, 1, 8), OptIfDEGThr()).setUnits('percentage').setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTNimDEGThr.setStatus('current') optIfODUkTNimDEGM = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 2, 1, 9), OptIfDEGM()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTNimDEGM.setStatus('current') optIfODUkTNimCurrentStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 2, 1, 10), Bits().clone(namedValues=NamedValues(("oci", 0), ("lck", 1), ("tim", 2), ("deg", 3), ("bdi", 4), ("ssf", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: optIfODUkTNimCurrentStatus.setStatus('current') optIfODUkTNimRowStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 133, 1, 9, 2, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: optIfODUkTNimRowStatus.setStatus('current') optIfOTMnGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 1)).setObjects(("OPT-IF-MIB", "optIfOTMnOrder"), ("OPT-IF-MIB", "optIfOTMnReduced"), ("OPT-IF-MIB", "optIfOTMnBitRates"), ("OPT-IF-MIB", "optIfOTMnInterfaceType"), ("OPT-IF-MIB", "optIfOTMnTcmMax"), ("OPT-IF-MIB", "optIfOTMnOpticalReach")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOTMnGroup = optIfOTMnGroup.setStatus('current') optIfPerfMonGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 2)).setObjects(("OPT-IF-MIB", "optIfPerfMonCurrentTimeElapsed"), ("OPT-IF-MIB", "optIfPerfMonCurDayTimeElapsed"), ("OPT-IF-MIB", "optIfPerfMonIntervalNumIntervals"), ("OPT-IF-MIB", "optIfPerfMonIntervalNumInvalidIntervals")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfPerfMonGroup = optIfPerfMonGroup.setStatus('current') optIfOTSnCommonGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 3)).setObjects(("OPT-IF-MIB", "optIfOTSnDirectionality")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOTSnCommonGroup = optIfOTSnCommonGroup.setStatus('current') optIfOTSnSourceGroupFull = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 4)).setObjects(("OPT-IF-MIB", "optIfOTSnTraceIdentifierTransmitted")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOTSnSourceGroupFull = optIfOTSnSourceGroupFull.setStatus('current') optIfOTSnAPRStatusGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 5)).setObjects(("OPT-IF-MIB", "optIfOTSnAprStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOTSnAPRStatusGroup = optIfOTSnAPRStatusGroup.setStatus('current') optIfOTSnAPRControlGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 6)).setObjects(("OPT-IF-MIB", "optIfOTSnAprControl")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOTSnAPRControlGroup = optIfOTSnAPRControlGroup.setStatus('current') optIfOTSnSinkGroupBasic = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 7)).setObjects(("OPT-IF-MIB", "optIfOTSnCurrentStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOTSnSinkGroupBasic = optIfOTSnSinkGroupBasic.setStatus('current') optIfOTSnSinkGroupFull = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 8)).setObjects(("OPT-IF-MIB", "optIfOTSnDAPIExpected"), ("OPT-IF-MIB", "optIfOTSnSAPIExpected"), ("OPT-IF-MIB", "optIfOTSnTraceIdentifierAccepted"), ("OPT-IF-MIB", "optIfOTSnTIMDetMode"), ("OPT-IF-MIB", "optIfOTSnTIMActEnabled")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOTSnSinkGroupFull = optIfOTSnSinkGroupFull.setStatus('current') optIfOTSnSinkPreOtnPMGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 9)).setObjects(("OPT-IF-MIB", "optIfOTSnSinkCurrentSuspectedFlag"), ("OPT-IF-MIB", "optIfOTSnSinkCurrentInputPower"), ("OPT-IF-MIB", "optIfOTSnSinkCurrentLowInputPower"), ("OPT-IF-MIB", "optIfOTSnSinkCurrentHighInputPower"), ("OPT-IF-MIB", "optIfOTSnSinkCurrentOutputPower"), ("OPT-IF-MIB", "optIfOTSnSinkCurrentLowOutputPower"), ("OPT-IF-MIB", "optIfOTSnSinkCurrentHighOutputPower"), ("OPT-IF-MIB", "optIfOTSnSinkIntervalSuspectedFlag"), ("OPT-IF-MIB", "optIfOTSnSinkIntervalLastInputPower"), ("OPT-IF-MIB", "optIfOTSnSinkIntervalLowInputPower"), ("OPT-IF-MIB", "optIfOTSnSinkIntervalHighInputPower"), ("OPT-IF-MIB", "optIfOTSnSinkIntervalLastOutputPower"), ("OPT-IF-MIB", "optIfOTSnSinkIntervalLowOutputPower"), ("OPT-IF-MIB", "optIfOTSnSinkIntervalHighOutputPower"), ("OPT-IF-MIB", "optIfOTSnSinkCurDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOTSnSinkCurDayLowInputPower"), ("OPT-IF-MIB", "optIfOTSnSinkCurDayHighInputPower"), ("OPT-IF-MIB", "optIfOTSnSinkCurDayLowOutputPower"), ("OPT-IF-MIB", "optIfOTSnSinkCurDayHighOutputPower"), ("OPT-IF-MIB", "optIfOTSnSinkPrevDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOTSnSinkPrevDayLastInputPower"), ("OPT-IF-MIB", "optIfOTSnSinkPrevDayLowInputPower"), ("OPT-IF-MIB", "optIfOTSnSinkPrevDayHighInputPower"), ("OPT-IF-MIB", "optIfOTSnSinkPrevDayLastOutputPower"), ("OPT-IF-MIB", "optIfOTSnSinkPrevDayLowOutputPower"), ("OPT-IF-MIB", "optIfOTSnSinkPrevDayHighOutputPower")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOTSnSinkPreOtnPMGroup = optIfOTSnSinkPreOtnPMGroup.setStatus('current') optIfOTSnSinkPreOtnPMThresholdGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 10)).setObjects(("OPT-IF-MIB", "optIfOTSnSinkCurrentLowerInputPowerThreshold"), ("OPT-IF-MIB", "optIfOTSnSinkCurrentUpperInputPowerThreshold"), ("OPT-IF-MIB", "optIfOTSnSinkCurrentLowerOutputPowerThreshold"), ("OPT-IF-MIB", "optIfOTSnSinkCurrentUpperOutputPowerThreshold")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOTSnSinkPreOtnPMThresholdGroup = optIfOTSnSinkPreOtnPMThresholdGroup.setStatus('current') optIfOTSnSourcePreOtnPMGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 11)).setObjects(("OPT-IF-MIB", "optIfOTSnSrcCurrentSuspectedFlag"), ("OPT-IF-MIB", "optIfOTSnSrcCurrentOutputPower"), ("OPT-IF-MIB", "optIfOTSnSrcCurrentLowOutputPower"), ("OPT-IF-MIB", "optIfOTSnSrcCurrentHighOutputPower"), ("OPT-IF-MIB", "optIfOTSnSrcCurrentInputPower"), ("OPT-IF-MIB", "optIfOTSnSrcCurrentLowInputPower"), ("OPT-IF-MIB", "optIfOTSnSrcCurrentHighInputPower"), ("OPT-IF-MIB", "optIfOTSnSrcIntervalSuspectedFlag"), ("OPT-IF-MIB", "optIfOTSnSrcIntervalLastOutputPower"), ("OPT-IF-MIB", "optIfOTSnSrcIntervalLowOutputPower"), ("OPT-IF-MIB", "optIfOTSnSrcIntervalHighOutputPower"), ("OPT-IF-MIB", "optIfOTSnSrcIntervalLastInputPower"), ("OPT-IF-MIB", "optIfOTSnSrcIntervalLowInputPower"), ("OPT-IF-MIB", "optIfOTSnSrcIntervalHighInputPower"), ("OPT-IF-MIB", "optIfOTSnSrcCurDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOTSnSrcCurDayLowOutputPower"), ("OPT-IF-MIB", "optIfOTSnSrcCurDayHighOutputPower"), ("OPT-IF-MIB", "optIfOTSnSrcCurDayLowInputPower"), ("OPT-IF-MIB", "optIfOTSnSrcCurDayHighInputPower"), ("OPT-IF-MIB", "optIfOTSnSrcPrevDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOTSnSrcPrevDayLastOutputPower"), ("OPT-IF-MIB", "optIfOTSnSrcPrevDayLowOutputPower"), ("OPT-IF-MIB", "optIfOTSnSrcPrevDayHighOutputPower"), ("OPT-IF-MIB", "optIfOTSnSrcPrevDayLastInputPower"), ("OPT-IF-MIB", "optIfOTSnSrcPrevDayLowInputPower"), ("OPT-IF-MIB", "optIfOTSnSrcPrevDayHighInputPower")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOTSnSourcePreOtnPMGroup = optIfOTSnSourcePreOtnPMGroup.setStatus('current') optIfOTSnSourcePreOtnPMThresholdGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 12)).setObjects(("OPT-IF-MIB", "optIfOTSnSrcCurrentLowerOutputPowerThreshold"), ("OPT-IF-MIB", "optIfOTSnSrcCurrentUpperOutputPowerThreshold"), ("OPT-IF-MIB", "optIfOTSnSrcCurrentLowerInputPowerThreshold"), ("OPT-IF-MIB", "optIfOTSnSrcCurrentUpperInputPowerThreshold")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOTSnSourcePreOtnPMThresholdGroup = optIfOTSnSourcePreOtnPMThresholdGroup.setStatus('current') optIfOMSnCommonGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 13)).setObjects(("OPT-IF-MIB", "optIfOMSnDirectionality")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOMSnCommonGroup = optIfOMSnCommonGroup.setStatus('current') optIfOMSnSinkGroupBasic = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 14)).setObjects(("OPT-IF-MIB", "optIfOMSnCurrentStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOMSnSinkGroupBasic = optIfOMSnSinkGroupBasic.setStatus('current') optIfOMSnSinkPreOtnPMGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 15)).setObjects(("OPT-IF-MIB", "optIfOMSnSinkCurrentSuspectedFlag"), ("OPT-IF-MIB", "optIfOMSnSinkCurrentAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSinkCurrentLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSinkCurrentHighAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSinkCurrentOutputPower"), ("OPT-IF-MIB", "optIfOMSnSinkCurrentLowOutputPower"), ("OPT-IF-MIB", "optIfOMSnSinkCurrentHighOutputPower"), ("OPT-IF-MIB", "optIfOMSnSinkIntervalSuspectedFlag"), ("OPT-IF-MIB", "optIfOMSnSinkIntervalLastAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSinkIntervalLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSinkIntervalHighAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSinkIntervalLastOutputPower"), ("OPT-IF-MIB", "optIfOMSnSinkIntervalLowOutputPower"), ("OPT-IF-MIB", "optIfOMSnSinkIntervalHighOutputPower"), ("OPT-IF-MIB", "optIfOMSnSinkCurDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOMSnSinkCurDayLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSinkCurDayHighAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSinkCurDayLowOutputPower"), ("OPT-IF-MIB", "optIfOMSnSinkCurDayHighOutputPower"), ("OPT-IF-MIB", "optIfOMSnSinkPrevDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOMSnSinkPrevDayLastAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSinkPrevDayLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSinkPrevDayHighAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSinkPrevDayLastOutputPower"), ("OPT-IF-MIB", "optIfOMSnSinkPrevDayLowOutputPower"), ("OPT-IF-MIB", "optIfOMSnSinkPrevDayHighOutputPower")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOMSnSinkPreOtnPMGroup = optIfOMSnSinkPreOtnPMGroup.setStatus('current') optIfOMSnSinkPreOtnPMThresholdGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 16)).setObjects(("OPT-IF-MIB", "optIfOMSnSinkCurrentLowerInputPowerThreshold"), ("OPT-IF-MIB", "optIfOMSnSinkCurrentUpperInputPowerThreshold"), ("OPT-IF-MIB", "optIfOMSnSinkCurrentLowerOutputPowerThreshold"), ("OPT-IF-MIB", "optIfOMSnSinkCurrentUpperOutputPowerThreshold")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOMSnSinkPreOtnPMThresholdGroup = optIfOMSnSinkPreOtnPMThresholdGroup.setStatus('current') optIfOMSnSourcePreOtnPMGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 17)).setObjects(("OPT-IF-MIB", "optIfOMSnSrcCurrentSuspectedFlag"), ("OPT-IF-MIB", "optIfOMSnSrcCurrentOutputPower"), ("OPT-IF-MIB", "optIfOMSnSrcCurrentLowOutputPower"), ("OPT-IF-MIB", "optIfOMSnSrcCurrentHighOutputPower"), ("OPT-IF-MIB", "optIfOMSnSrcCurrentAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSrcCurrentLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSrcCurrentHighAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSrcIntervalSuspectedFlag"), ("OPT-IF-MIB", "optIfOMSnSrcIntervalLastOutputPower"), ("OPT-IF-MIB", "optIfOMSnSrcIntervalLowOutputPower"), ("OPT-IF-MIB", "optIfOMSnSrcIntervalHighOutputPower"), ("OPT-IF-MIB", "optIfOMSnSrcIntervalLastAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSrcIntervalLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSrcIntervalHighAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSrcCurDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOMSnSrcCurDayLowOutputPower"), ("OPT-IF-MIB", "optIfOMSnSrcCurDayHighOutputPower"), ("OPT-IF-MIB", "optIfOMSnSrcCurDayLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSrcCurDayHighAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSrcPrevDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOMSnSrcPrevDayLastOutputPower"), ("OPT-IF-MIB", "optIfOMSnSrcPrevDayLowOutputPower"), ("OPT-IF-MIB", "optIfOMSnSrcPrevDayHighOutputPower"), ("OPT-IF-MIB", "optIfOMSnSrcPrevDayLastAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSrcPrevDayLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOMSnSrcPrevDayHighAggregatedInputPower")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOMSnSourcePreOtnPMGroup = optIfOMSnSourcePreOtnPMGroup.setStatus('current') optIfOMSnSourcePreOtnPMThresholdGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 18)).setObjects(("OPT-IF-MIB", "optIfOMSnSrcCurrentLowerOutputPowerThreshold"), ("OPT-IF-MIB", "optIfOMSnSrcCurrentUpperOutputPowerThreshold"), ("OPT-IF-MIB", "optIfOMSnSrcCurrentLowerInputPowerThreshold"), ("OPT-IF-MIB", "optIfOMSnSrcCurrentUpperInputPowerThreshold")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOMSnSourcePreOtnPMThresholdGroup = optIfOMSnSourcePreOtnPMThresholdGroup.setStatus('current') optIfOChGroupCommonGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 19)).setObjects(("OPT-IF-MIB", "optIfOChGroupDirectionality")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOChGroupCommonGroup = optIfOChGroupCommonGroup.setStatus('current') optIfOChGroupSinkPreOtnPMGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 20)).setObjects(("OPT-IF-MIB", "optIfOChGroupSinkCurrentSuspectedFlag"), ("OPT-IF-MIB", "optIfOChGroupSinkCurrentAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkCurrentLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkCurrentHighAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkCurrentOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkCurrentLowOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkCurrentHighOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkIntervalSuspectedFlag"), ("OPT-IF-MIB", "optIfOChGroupSinkIntervalLastAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkIntervalLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkIntervalHighAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkIntervalLastOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkIntervalLowOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkIntervalHighOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkCurDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOChGroupSinkCurDayLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkCurDayHighAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkCurDayLowOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkCurDayHighOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkPrevDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOChGroupSinkPrevDayLastAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkPrevDayLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkPrevDayHighAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkPrevDayLastOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkPrevDayLowOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSinkPrevDayHighOutputPower")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOChGroupSinkPreOtnPMGroup = optIfOChGroupSinkPreOtnPMGroup.setStatus('current') optIfOChGroupSinkPreOtnPMThresholdGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 21)).setObjects(("OPT-IF-MIB", "optIfOChGroupSinkCurrentLowerInputPowerThreshold"), ("OPT-IF-MIB", "optIfOChGroupSinkCurrentUpperInputPowerThreshold"), ("OPT-IF-MIB", "optIfOChGroupSinkCurrentLowerOutputPowerThreshold"), ("OPT-IF-MIB", "optIfOChGroupSinkCurrentUpperOutputPowerThreshold")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOChGroupSinkPreOtnPMThresholdGroup = optIfOChGroupSinkPreOtnPMThresholdGroup.setStatus('current') optIfOChGroupSourcePreOtnPMGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 22)).setObjects(("OPT-IF-MIB", "optIfOChGroupSrcCurrentSuspectedFlag"), ("OPT-IF-MIB", "optIfOChGroupSrcCurrentOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcCurrentLowOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcCurrentHighOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcCurrentAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcCurrentLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcCurrentHighAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcIntervalSuspectedFlag"), ("OPT-IF-MIB", "optIfOChGroupSrcIntervalLastOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcIntervalLowOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcIntervalHighOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcIntervalLastAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcIntervalLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcIntervalHighAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcCurDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOChGroupSrcCurDayLowOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcCurDayHighOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcCurDayLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcCurDayHighAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcPrevDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOChGroupSrcPrevDayLastOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcPrevDayLowOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcPrevDayHighOutputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcPrevDayLastAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcPrevDayLowAggregatedInputPower"), ("OPT-IF-MIB", "optIfOChGroupSrcPrevDayHighAggregatedInputPower")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOChGroupSourcePreOtnPMGroup = optIfOChGroupSourcePreOtnPMGroup.setStatus('current') optIfOChGroupSourcePreOtnPMThresholdGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 23)).setObjects(("OPT-IF-MIB", "optIfOChGroupSrcCurrentLowerOutputPowerThreshold"), ("OPT-IF-MIB", "optIfOChGroupSrcCurrentUpperOutputPowerThreshold"), ("OPT-IF-MIB", "optIfOChGroupSrcCurrentLowerInputPowerThreshold"), ("OPT-IF-MIB", "optIfOChGroupSrcCurrentUpperInputPowerThreshold")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOChGroupSourcePreOtnPMThresholdGroup = optIfOChGroupSourcePreOtnPMThresholdGroup.setStatus('current') optIfOChCommonGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 24)).setObjects(("OPT-IF-MIB", "optIfOChDirectionality")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOChCommonGroup = optIfOChCommonGroup.setStatus('current') optIfOChSinkGroupBasic = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 25)).setObjects(("OPT-IF-MIB", "optIfOChCurrentStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOChSinkGroupBasic = optIfOChSinkGroupBasic.setStatus('current') optIfOChSinkPreOtnPMGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 26)).setObjects(("OPT-IF-MIB", "optIfOChSinkCurrentSuspectedFlag"), ("OPT-IF-MIB", "optIfOChSinkCurrentInputPower"), ("OPT-IF-MIB", "optIfOChSinkCurrentLowInputPower"), ("OPT-IF-MIB", "optIfOChSinkCurrentHighInputPower"), ("OPT-IF-MIB", "optIfOChSinkIntervalSuspectedFlag"), ("OPT-IF-MIB", "optIfOChSinkIntervalLastInputPower"), ("OPT-IF-MIB", "optIfOChSinkIntervalLowInputPower"), ("OPT-IF-MIB", "optIfOChSinkIntervalHighInputPower"), ("OPT-IF-MIB", "optIfOChSinkCurDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOChSinkCurDayLowInputPower"), ("OPT-IF-MIB", "optIfOChSinkCurDayHighInputPower"), ("OPT-IF-MIB", "optIfOChSinkPrevDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOChSinkPrevDayLastInputPower"), ("OPT-IF-MIB", "optIfOChSinkPrevDayLowInputPower"), ("OPT-IF-MIB", "optIfOChSinkPrevDayHighInputPower")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOChSinkPreOtnPMGroup = optIfOChSinkPreOtnPMGroup.setStatus('current') optIfOChSinkPreOtnPMThresholdGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 27)).setObjects(("OPT-IF-MIB", "optIfOChSinkCurrentLowerInputPowerThreshold"), ("OPT-IF-MIB", "optIfOChSinkCurrentUpperInputPowerThreshold")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOChSinkPreOtnPMThresholdGroup = optIfOChSinkPreOtnPMThresholdGroup.setStatus('current') optIfOChSourcePreOtnPMGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 28)).setObjects(("OPT-IF-MIB", "optIfOChSrcCurrentSuspectedFlag"), ("OPT-IF-MIB", "optIfOChSrcCurrentOutputPower"), ("OPT-IF-MIB", "optIfOChSrcCurrentLowOutputPower"), ("OPT-IF-MIB", "optIfOChSrcCurrentHighOutputPower"), ("OPT-IF-MIB", "optIfOChSrcIntervalSuspectedFlag"), ("OPT-IF-MIB", "optIfOChSrcIntervalLastOutputPower"), ("OPT-IF-MIB", "optIfOChSrcIntervalLowOutputPower"), ("OPT-IF-MIB", "optIfOChSrcIntervalHighOutputPower"), ("OPT-IF-MIB", "optIfOChSrcCurDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOChSrcCurDayLowOutputPower"), ("OPT-IF-MIB", "optIfOChSrcCurDayHighOutputPower"), ("OPT-IF-MIB", "optIfOChSrcPrevDaySuspectedFlag"), ("OPT-IF-MIB", "optIfOChSrcPrevDayLastOutputPower"), ("OPT-IF-MIB", "optIfOChSrcPrevDayLowOutputPower"), ("OPT-IF-MIB", "optIfOChSrcPrevDayHighOutputPower")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOChSourcePreOtnPMGroup = optIfOChSourcePreOtnPMGroup.setStatus('current') optIfOChSourcePreOtnPMThresholdGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 29)).setObjects(("OPT-IF-MIB", "optIfOChSrcCurrentLowerOutputPowerThreshold"), ("OPT-IF-MIB", "optIfOChSrcCurrentUpperOutputPowerThreshold")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOChSourcePreOtnPMThresholdGroup = optIfOChSourcePreOtnPMThresholdGroup.setStatus('current') optIfOTUkCommonGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 30)).setObjects(("OPT-IF-MIB", "optIfOTUkDirectionality"), ("OPT-IF-MIB", "optIfOTUkBitRateK")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOTUkCommonGroup = optIfOTUkCommonGroup.setStatus('current') optIfOTUkSourceGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 31)).setObjects(("OPT-IF-MIB", "optIfOTUkTraceIdentifierTransmitted"), ("OPT-IF-MIB", "optIfOTUkSourceAdaptActive")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOTUkSourceGroup = optIfOTUkSourceGroup.setStatus('current') optIfOTUkSinkGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 32)).setObjects(("OPT-IF-MIB", "optIfOTUkDAPIExpected"), ("OPT-IF-MIB", "optIfOTUkSAPIExpected"), ("OPT-IF-MIB", "optIfOTUkTraceIdentifierAccepted"), ("OPT-IF-MIB", "optIfOTUkTIMDetMode"), ("OPT-IF-MIB", "optIfOTUkTIMActEnabled"), ("OPT-IF-MIB", "optIfOTUkDEGThr"), ("OPT-IF-MIB", "optIfOTUkDEGM"), ("OPT-IF-MIB", "optIfOTUkSinkAdaptActive"), ("OPT-IF-MIB", "optIfOTUkSinkFECEnabled"), ("OPT-IF-MIB", "optIfOTUkCurrentStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOTUkSinkGroup = optIfOTUkSinkGroup.setStatus('current') optIfGCC0Group = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 33)).setObjects(("OPT-IF-MIB", "optIfGCC0Application"), ("OPT-IF-MIB", "optIfGCC0RowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfGCC0Group = optIfGCC0Group.setStatus('current') optIfODUkGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 34)).setObjects(("OPT-IF-MIB", "optIfODUkDirectionality"), ("OPT-IF-MIB", "optIfODUkBitRateK"), ("OPT-IF-MIB", "optIfODUkTcmFieldsInUse"), ("OPT-IF-MIB", "optIfODUkPositionSeqCurrentSize"), ("OPT-IF-MIB", "optIfODUkPositionSeqPosition"), ("OPT-IF-MIB", "optIfODUkPositionSeqPointer"), ("OPT-IF-MIB", "optIfODUkTtpPresent")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfODUkGroup = optIfODUkGroup.setStatus('current') optIfODUkTtpSourceGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 35)).setObjects(("OPT-IF-MIB", "optIfODUkTtpTraceIdentifierTransmitted")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfODUkTtpSourceGroup = optIfODUkTtpSourceGroup.setStatus('current') optIfODUkTtpSinkGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 36)).setObjects(("OPT-IF-MIB", "optIfODUkTtpDAPIExpected"), ("OPT-IF-MIB", "optIfODUkTtpSAPIExpected"), ("OPT-IF-MIB", "optIfODUkTtpTraceIdentifierAccepted"), ("OPT-IF-MIB", "optIfODUkTtpTIMDetMode"), ("OPT-IF-MIB", "optIfODUkTtpTIMActEnabled"), ("OPT-IF-MIB", "optIfODUkTtpDEGThr"), ("OPT-IF-MIB", "optIfODUkTtpDEGM"), ("OPT-IF-MIB", "optIfODUkTtpCurrentStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfODUkTtpSinkGroup = optIfODUkTtpSinkGroup.setStatus('current') optIfODUkNimGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 37)).setObjects(("OPT-IF-MIB", "optIfODUkNimDAPIExpected"), ("OPT-IF-MIB", "optIfODUkNimSAPIExpected"), ("OPT-IF-MIB", "optIfODUkNimTraceIdentifierAccepted"), ("OPT-IF-MIB", "optIfODUkNimTIMDetMode"), ("OPT-IF-MIB", "optIfODUkNimTIMActEnabled"), ("OPT-IF-MIB", "optIfODUkNimDEGThr"), ("OPT-IF-MIB", "optIfODUkNimDEGM"), ("OPT-IF-MIB", "optIfODUkNimCurrentStatus"), ("OPT-IF-MIB", "optIfODUkNimRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfODUkNimGroup = optIfODUkNimGroup.setStatus('current') optIfGCC12Group = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 38)).setObjects(("OPT-IF-MIB", "optIfGCC12GCCPassThrough"), ("OPT-IF-MIB", "optIfGCC12Application"), ("OPT-IF-MIB", "optIfGCC12RowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfGCC12Group = optIfGCC12Group.setStatus('current') optIfODUkTCommonGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 39)).setObjects(("OPT-IF-MIB", "optIfODUkTRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfODUkTCommonGroup = optIfODUkTCommonGroup.setStatus('current') optIfODUkTSourceGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 40)).setObjects(("OPT-IF-MIB", "optIfODUkTTraceIdentifierTransmitted"), ("OPT-IF-MIB", "optIfODUkTSourceLockSignalAdminState")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfODUkTSourceGroup = optIfODUkTSourceGroup.setStatus('current') optIfODUkTSinkGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 41)).setObjects(("OPT-IF-MIB", "optIfODUkTDAPIExpected"), ("OPT-IF-MIB", "optIfODUkTSAPIExpected"), ("OPT-IF-MIB", "optIfODUkTTraceIdentifierAccepted"), ("OPT-IF-MIB", "optIfODUkTTIMDetMode"), ("OPT-IF-MIB", "optIfODUkTTIMActEnabled"), ("OPT-IF-MIB", "optIfODUkTDEGThr"), ("OPT-IF-MIB", "optIfODUkTDEGM"), ("OPT-IF-MIB", "optIfODUkTCurrentStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfODUkTSinkGroup = optIfODUkTSinkGroup.setStatus('current') optIfODUkTSinkGroupCtp = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 42)).setObjects(("OPT-IF-MIB", "optIfODUkTSinkMode"), ("OPT-IF-MIB", "optIfODUkTSinkLockSignalAdminState")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfODUkTSinkGroupCtp = optIfODUkTSinkGroupCtp.setStatus('current') optIfODUkTNimGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 133, 2, 1, 43)).setObjects(("OPT-IF-MIB", "optIfODUkTNimDAPIExpected"), ("OPT-IF-MIB", "optIfODUkTNimSAPIExpected"), ("OPT-IF-MIB", "optIfODUkTNimTraceIdentifierAccepted"), ("OPT-IF-MIB", "optIfODUkTNimTIMDetMode"), ("OPT-IF-MIB", "optIfODUkTNimTIMActEnabled"), ("OPT-IF-MIB", "optIfODUkTNimDEGThr"), ("OPT-IF-MIB", "optIfODUkTNimDEGM"), ("OPT-IF-MIB", "optIfODUkTNimCurrentStatus"), ("OPT-IF-MIB", "optIfODUkTNimRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfODUkTNimGroup = optIfODUkTNimGroup.setStatus('current') optIfOtnConfigCompl = ModuleCompliance((1, 3, 6, 1, 2, 1, 10, 133, 2, 2, 1)).setObjects(("OPT-IF-MIB", "optIfOTMnGroup"), ("OPT-IF-MIB", "optIfOTSnCommonGroup"), ("OPT-IF-MIB", "optIfOTSnSourceGroupFull"), ("OPT-IF-MIB", "optIfOTSnAPRStatusGroup"), ("OPT-IF-MIB", "optIfOTSnAPRControlGroup"), ("OPT-IF-MIB", "optIfOTSnSinkGroupBasic"), ("OPT-IF-MIB", "optIfOTSnSinkGroupFull"), ("OPT-IF-MIB", "optIfOMSnCommonGroup"), ("OPT-IF-MIB", "optIfOMSnSinkGroupBasic"), ("OPT-IF-MIB", "optIfOChGroupCommonGroup"), ("OPT-IF-MIB", "optIfOChCommonGroup"), ("OPT-IF-MIB", "optIfOChSinkGroupBasic"), ("OPT-IF-MIB", "optIfOTUkCommonGroup"), ("OPT-IF-MIB", "optIfOTUkSourceGroup"), ("OPT-IF-MIB", "optIfOTUkSinkGroup"), ("OPT-IF-MIB", "optIfGCC0Group"), ("OPT-IF-MIB", "optIfODUkGroup"), ("OPT-IF-MIB", "optIfODUkTtpSourceGroup"), ("OPT-IF-MIB", "optIfODUkTtpSinkGroup"), ("OPT-IF-MIB", "optIfODUkNimGroup"), ("OPT-IF-MIB", "optIfGCC12Group"), ("OPT-IF-MIB", "optIfODUkTCommonGroup"), ("OPT-IF-MIB", "optIfODUkTSourceGroup"), ("OPT-IF-MIB", "optIfODUkTSinkGroup"), ("OPT-IF-MIB", "optIfODUkTSinkGroupCtp"), ("OPT-IF-MIB", "optIfODUkTNimGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfOtnConfigCompl = optIfOtnConfigCompl.setStatus('current') optIfPreOtnPMCompl = ModuleCompliance((1, 3, 6, 1, 2, 1, 10, 133, 2, 2, 2)).setObjects(("OPT-IF-MIB", "optIfPerfMonGroup"), ("OPT-IF-MIB", "optIfOTSnSinkPreOtnPMGroup"), ("OPT-IF-MIB", "optIfOTSnSinkPreOtnPMThresholdGroup"), ("OPT-IF-MIB", "optIfOTSnSourcePreOtnPMGroup"), ("OPT-IF-MIB", "optIfOTSnSourcePreOtnPMThresholdGroup"), ("OPT-IF-MIB", "optIfOMSnSinkPreOtnPMGroup"), ("OPT-IF-MIB", "optIfOMSnSinkPreOtnPMThresholdGroup"), ("OPT-IF-MIB", "optIfOMSnSourcePreOtnPMGroup"), ("OPT-IF-MIB", "optIfOMSnSourcePreOtnPMThresholdGroup"), ("OPT-IF-MIB", "optIfOChGroupSinkPreOtnPMGroup"), ("OPT-IF-MIB", "optIfOChGroupSinkPreOtnPMThresholdGroup"), ("OPT-IF-MIB", "optIfOChGroupSourcePreOtnPMGroup"), ("OPT-IF-MIB", "optIfOChGroupSourcePreOtnPMThresholdGroup"), ("OPT-IF-MIB", "optIfOChSinkPreOtnPMGroup"), ("OPT-IF-MIB", "optIfOChSinkPreOtnPMThresholdGroup"), ("OPT-IF-MIB", "optIfOChSourcePreOtnPMGroup"), ("OPT-IF-MIB", "optIfOChSourcePreOtnPMThresholdGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optIfPreOtnPMCompl = optIfPreOtnPMCompl.setStatus('current') mibBuilder.exportSymbols("OPT-IF-MIB", optIfOChSinkIntervalHighInputPower=optIfOChSinkIntervalHighInputPower, optIfOChSrcCurrentHighOutputPower=optIfOChSrcCurrentHighOutputPower, optIfOTSnSrcIntervalLowOutputPower=optIfOTSnSrcIntervalLowOutputPower, optIfOTMnInterfaceType=optIfOTMnInterfaceType, optIfOTSnSinkCurrentLowOutputPower=optIfOTSnSinkCurrentLowOutputPower, optIfOMSnSrcCurrentEntry=optIfOMSnSrcCurrentEntry, optIfODUkNimTIMDetMode=optIfODUkNimTIMDetMode, optIfOTSnSinkCurDayEntry=optIfOTSnSinkCurDayEntry, optIfOChSrcCurDayTable=optIfOChSrcCurDayTable, optIfOMSnSinkCurrentHighOutputPower=optIfOMSnSinkCurrentHighOutputPower, optIfOMSnSrcCurDayLowAggregatedInputPower=optIfOMSnSrcCurDayLowAggregatedInputPower, optIfOChSinkCurrentLowInputPower=optIfOChSinkCurrentLowInputPower, optIfOChSinkCurrentLowerInputPowerThreshold=optIfOChSinkCurrentLowerInputPowerThreshold, optIfOTSnSinkIntervalHighInputPower=optIfOTSnSinkIntervalHighInputPower, optIfOTSnSinkPreOtnPMThresholdGroup=optIfOTSnSinkPreOtnPMThresholdGroup, optIfOChSinkCurDayTable=optIfOChSinkCurDayTable, optIfOChGroupSrcPrevDayLastOutputPower=optIfOChGroupSrcPrevDayLastOutputPower, optIfOTSnSinkCurDayHighOutputPower=optIfOTSnSinkCurDayHighOutputPower, optIfOMSnSinkIntervalLastOutputPower=optIfOMSnSinkIntervalLastOutputPower, optIfOChGroupSrcCurrentHighOutputPower=optIfOChGroupSrcCurrentHighOutputPower, optIfOTSnAprStatus=optIfOTSnAprStatus, optIfODUkTTraceIdentifierAccepted=optIfODUkTTraceIdentifierAccepted, optIfOTSnSourceGroupFull=optIfOTSnSourceGroupFull, optIfOChGroupSinkIntervalHighAggregatedInputPower=optIfOChGroupSinkIntervalHighAggregatedInputPower, optIfODUkTSourceLockSignalAdminState=optIfODUkTSourceLockSignalAdminState, optIfOMSnSrcCurrentSuspectedFlag=optIfOMSnSrcCurrentSuspectedFlag, optIfOChGroupSrcIntervalTable=optIfOChGroupSrcIntervalTable, optIfOMSnSinkPrevDayHighOutputPower=optIfOMSnSinkPrevDayHighOutputPower, optIfODUkTCommonGroup=optIfODUkTCommonGroup, optIfOChSinkIntervalEntry=optIfOChSinkIntervalEntry, optIfOTSnSrcPrevDaySuspectedFlag=optIfOTSnSrcPrevDaySuspectedFlag, optIfOMSnSrcCurrentAggregatedInputPower=optIfOMSnSrcCurrentAggregatedInputPower, optIfOTSnSinkCurrentUpperOutputPowerThreshold=optIfOTSnSinkCurrentUpperOutputPowerThreshold, optIfOTSnSinkPrevDaySuspectedFlag=optIfOTSnSinkPrevDaySuspectedFlag, optIfOChGroupSrcCurDayTable=optIfOChGroupSrcCurDayTable, optIfOTSnSinkIntervalSuspectedFlag=optIfOTSnSinkIntervalSuspectedFlag, optIfOChGroupSinkIntervalLastAggregatedInputPower=optIfOChGroupSinkIntervalLastAggregatedInputPower, OptIfTIMDetMode=OptIfTIMDetMode, optIfOChGroupSinkPrevDayTable=optIfOChGroupSinkPrevDayTable, optIfOTUkConfigEntry=optIfOTUkConfigEntry, optIfOTSnSinkCurDayLowOutputPower=optIfOTSnSinkCurDayLowOutputPower, optIfOChGroupSrcCurDaySuspectedFlag=optIfOChGroupSrcCurDaySuspectedFlag, optIfOChSrcPrevDayLowOutputPower=optIfOChSrcPrevDayLowOutputPower, optIfOMSnSinkCurrentHighAggregatedInputPower=optIfOMSnSinkCurrentHighAggregatedInputPower, optIfOtnConfigCompl=optIfOtnConfigCompl, optIfOMSnSrcCurDayHighOutputPower=optIfOMSnSrcCurDayHighOutputPower, optIfOTSnSrcCurrentEntry=optIfOTSnSrcCurrentEntry, optIfOTSnSrcPrevDayLastInputPower=optIfOTSnSrcPrevDayLastInputPower, optIfGCC12ConfigTable=optIfGCC12ConfigTable, optIfOMSnSinkCurrentLowerOutputPowerThreshold=optIfOMSnSinkCurrentLowerOutputPowerThreshold, optIfGCC12GCCAccess=optIfGCC12GCCAccess, optIfGCC0Application=optIfGCC0Application, optIfOMSnSrcCurrentLowAggregatedInputPower=optIfOMSnSrcCurrentLowAggregatedInputPower, optIfOTSnSrcCurDayHighInputPower=optIfOTSnSrcCurDayHighInputPower, optIfODUkTTraceIdentifierTransmitted=optIfODUkTTraceIdentifierTransmitted, optIfPerfMonGroup=optIfPerfMonGroup, optIfOChGroupSinkPrevDayHighAggregatedInputPower=optIfOChGroupSinkPrevDayHighAggregatedInputPower, optIfOTSnSrcPrevDayLastOutputPower=optIfOTSnSrcPrevDayLastOutputPower, optIfOTSnSinkCurrentLowerOutputPowerThreshold=optIfOTSnSinkCurrentLowerOutputPowerThreshold, optIfOMSnSrcCurrentLowerInputPowerThreshold=optIfOMSnSrcCurrentLowerInputPowerThreshold, optIfGroups=optIfGroups, optIfOMSnSrcIntervalHighOutputPower=optIfOMSnSrcIntervalHighOutputPower, optIfOChGroupSinkCurDayLowAggregatedInputPower=optIfOChGroupSinkCurDayLowAggregatedInputPower, optIfODUkPositionSeqPosition=optIfODUkPositionSeqPosition, optIfOMSnSrcCurDayTable=optIfOMSnSrcCurDayTable, OptIfExDAPI=OptIfExDAPI, optIfOTSnSrcPrevDayLowOutputPower=optIfOTSnSrcPrevDayLowOutputPower, optIfGCC12Codirectional=optIfGCC12Codirectional, optIfOChSourcePreOtnPMThresholdGroup=optIfOChSourcePreOtnPMThresholdGroup, optIfGCC12ConfigEntry=optIfGCC12ConfigEntry, optIfODUkTCurrentStatus=optIfODUkTCurrentStatus, optIfOChSrcPrevDayEntry=optIfOChSrcPrevDayEntry, optIfOMSnSrcIntervalLowAggregatedInputPower=optIfOMSnSrcIntervalLowAggregatedInputPower, optIfConfs=optIfConfs, optIfODUkTtpSinkGroup=optIfODUkTtpSinkGroup, optIfGCC0ConfigTable=optIfGCC0ConfigTable, optIfOTUkDEGM=optIfOTUkDEGM, optIfODUkTNimSAPIExpected=optIfODUkTNimSAPIExpected, optIfOMSnSrcPrevDayTable=optIfOMSnSrcPrevDayTable, optIfOChGroupSrcPrevDayHighAggregatedInputPower=optIfOChGroupSrcPrevDayHighAggregatedInputPower, optIfOChGroupCommonGroup=optIfOChGroupCommonGroup, optIfOChGroupSinkIntervalHighOutputPower=optIfOChGroupSinkIntervalHighOutputPower, optIfOTSnSinkPrevDayLastInputPower=optIfOTSnSinkPrevDayLastInputPower, optIfOChGroupSrcCurrentLowerInputPowerThreshold=optIfOChGroupSrcCurrentLowerInputPowerThreshold, optIfOMSnSinkIntervalSuspectedFlag=optIfOMSnSinkIntervalSuspectedFlag, optIfOMSnSrcCurrentTable=optIfOMSnSrcCurrentTable, optIfOTSnSinkPrevDayTable=optIfOTSnSinkPrevDayTable, OptIfSinkOrSource=OptIfSinkOrSource, optIfOChGroupSrcIntervalLastOutputPower=optIfOChGroupSrcIntervalLastOutputPower, optIfODUkTcmFieldsInUse=optIfODUkTcmFieldsInUse, optIfOTSnSrcCurDayTable=optIfOTSnSrcCurDayTable, optIfODUkTNimConfigEntry=optIfODUkTNimConfigEntry, optIfOChSinkCurDayHighInputPower=optIfOChSinkCurDayHighInputPower, optIfOMSnSinkIntervalEntry=optIfOMSnSinkIntervalEntry, optIfODUkTNimDEGThr=optIfODUkTNimDEGThr, optIfOMSnSinkPrevDayLowOutputPower=optIfOMSnSinkPrevDayLowOutputPower, optIfOTSnSinkCurrentOutputPower=optIfOTSnSinkCurrentOutputPower, optIfPerfMonIntervalTable=optIfPerfMonIntervalTable, optIfOMSnSinkIntervalHighOutputPower=optIfOMSnSinkIntervalHighOutputPower, optIfOMSnCurrentStatus=optIfOMSnCurrentStatus, optIfMibModule=optIfMibModule, optIfOChGroupDirectionality=optIfOChGroupDirectionality, optIfODUkTtpConfigEntry=optIfODUkTtpConfigEntry, optIfODUkTtpPresent=optIfODUkTtpPresent, optIfODUkTNimTcmField=optIfODUkTNimTcmField, optIfOChSrcCurDayHighOutputPower=optIfOChSrcCurDayHighOutputPower, optIfOTUkTIMActEnabled=optIfOTUkTIMActEnabled, optIfOChSrcCurrentEntry=optIfOChSrcCurrentEntry, optIfODUkTSourceGroup=optIfODUkTSourceGroup, optIfOMSnSrcCurrentLowOutputPower=optIfOMSnSrcCurrentLowOutputPower, optIfOChSrcCurrentOutputPower=optIfOChSrcCurrentOutputPower, optIfOChGroupSourcePreOtnPMThresholdGroup=optIfOChGroupSourcePreOtnPMThresholdGroup, optIfOMSnSinkPrevDayLowAggregatedInputPower=optIfOMSnSinkPrevDayLowAggregatedInputPower, optIfOMSnSinkCurrentOutputPower=optIfOMSnSinkCurrentOutputPower, optIfOChGroupSrcCurDayLowOutputPower=optIfOChGroupSrcCurDayLowOutputPower, optIfOMSnSrcCurrentHighAggregatedInputPower=optIfOMSnSrcCurrentHighAggregatedInputPower, optIfOTSnAPRControlGroup=optIfOTSnAPRControlGroup, optIfODUkNimDEGM=optIfODUkNimDEGM, optIfOMSnSrcIntervalHighAggregatedInputPower=optIfOMSnSrcIntervalHighAggregatedInputPower, optIfODUkPositionSeqEntry=optIfODUkPositionSeqEntry, optIfODUk=optIfODUk, optIfOChGroupSinkCurrentUpperInputPowerThreshold=optIfOChGroupSinkCurrentUpperInputPowerThreshold, optIfOChGroupSinkCurDayHighOutputPower=optIfOChGroupSinkCurDayHighOutputPower, optIfOChGroupSinkCurrentLowerOutputPowerThreshold=optIfOChGroupSinkCurrentLowerOutputPowerThreshold, optIfOTMnReduced=optIfOTMnReduced, optIfOMSnSinkCurDayHighOutputPower=optIfOMSnSinkCurDayHighOutputPower, optIfOTSnSinkIntervalNumber=optIfOTSnSinkIntervalNumber, optIfOChGroupSourcePreOtnPMGroup=optIfOChGroupSourcePreOtnPMGroup, optIfOTSnAprControl=optIfOTSnAprControl, optIfOChSinkIntervalNumber=optIfOChSinkIntervalNumber, optIfOMSnSinkPrevDayLastAggregatedInputPower=optIfOMSnSinkPrevDayLastAggregatedInputPower, optIfODUkTTIMDetMode=optIfODUkTTIMDetMode, optIfODUkTNimRowStatus=optIfODUkTNimRowStatus, optIfOChSrcIntervalHighOutputPower=optIfOChSrcIntervalHighOutputPower, optIfODUkTNimCurrentStatus=optIfODUkTNimCurrentStatus, optIfODUkTtpSourceGroup=optIfODUkTtpSourceGroup, optIfOTSnSrcIntervalEntry=optIfOTSnSrcIntervalEntry, optIfPerfMonIntervalNumIntervals=optIfPerfMonIntervalNumIntervals, optIfOChSrcCurDaySuspectedFlag=optIfOChSrcCurDaySuspectedFlag, optIfOTUkSinkFECEnabled=optIfOTUkSinkFECEnabled, optIfOTSnSinkCurrentLowerInputPowerThreshold=optIfOTSnSinkCurrentLowerInputPowerThreshold, optIfOChSrcCurrentLowOutputPower=optIfOChSrcCurrentLowOutputPower, optIfOChGroupSrcPrevDayHighOutputPower=optIfOChGroupSrcPrevDayHighOutputPower, OptIfDirectionality=OptIfDirectionality, optIfOMSnSrcCurrentHighOutputPower=optIfOMSnSrcCurrentHighOutputPower, optIfOTSnSourcePreOtnPMGroup=optIfOTSnSourcePreOtnPMGroup, optIfOMSnSinkGroupBasic=optIfOMSnSinkGroupBasic, optIfODUkGroup=optIfODUkGroup, optIfOTSnSrcCurrentUpperOutputPowerThreshold=optIfOTSnSrcCurrentUpperOutputPowerThreshold, optIfOChGroupSinkCurrentUpperOutputPowerThreshold=optIfOChGroupSinkCurrentUpperOutputPowerThreshold, optIfOChGroupSrcCurrentAggregatedInputPower=optIfOChGroupSrcCurrentAggregatedInputPower, optIfOMSnConfigEntry=optIfOMSnConfigEntry, optIfOChSinkIntervalLastInputPower=optIfOChSinkIntervalLastInputPower, optIfOMSnSinkCurrentUpperOutputPowerThreshold=optIfOMSnSinkCurrentUpperOutputPowerThreshold, optIfOTUkBitRateK=optIfOTUkBitRateK, optIfOChGroupSrcIntervalLowOutputPower=optIfOChGroupSrcIntervalLowOutputPower, OptIfIntervalNumber=OptIfIntervalNumber, optIfOChSinkCurrentSuspectedFlag=optIfOChSinkCurrentSuspectedFlag, optIfOChGroupSrcIntervalHighOutputPower=optIfOChGroupSrcIntervalHighOutputPower, optIfODUkPositionSeqPointer=optIfODUkPositionSeqPointer, optIfODUkTNimTIMDetMode=optIfODUkTNimTIMDetMode, optIfOChGroupSinkPrevDayLowAggregatedInputPower=optIfOChGroupSinkPrevDayLowAggregatedInputPower, optIfOTUkDEGThr=optIfOTUkDEGThr, optIfObjects=optIfObjects, optIfOTSnCurrentStatus=optIfOTSnCurrentStatus, optIfOChSrcIntervalTable=optIfOChSrcIntervalTable, optIfOChCurrentStatus=optIfOChCurrentStatus, optIfOChSinkCurDayEntry=optIfOChSinkCurDayEntry, optIfOChSinkPreOtnPMThresholdGroup=optIfOChSinkPreOtnPMThresholdGroup, optIfOTSnSrcCurDaySuspectedFlag=optIfOTSnSrcCurDaySuspectedFlag, optIfOMSnSinkCurrentEntry=optIfOMSnSinkCurrentEntry, optIfOChDirectionality=optIfOChDirectionality, optIfODUkTtpTIMActEnabled=optIfODUkTtpTIMActEnabled, optIfOChSrcCurDayLowOutputPower=optIfOChSrcCurDayLowOutputPower, optIfOChGroupSinkIntervalLastOutputPower=optIfOChGroupSinkIntervalLastOutputPower, optIfOChGroupSinkIntervalLowOutputPower=optIfOChGroupSinkIntervalLowOutputPower, optIfOTSnSinkGroupFull=optIfOTSnSinkGroupFull, optIfOTSnSrcCurrentHighInputPower=optIfOTSnSrcCurrentHighInputPower, optIfOChGroupSrcIntervalLastAggregatedInputPower=optIfOChGroupSrcIntervalLastAggregatedInputPower, optIfOMSnCommonGroup=optIfOMSnCommonGroup, optIfOMSnSinkPrevDayTable=optIfOMSnSinkPrevDayTable, optIfOChGroupSinkPrevDayLastOutputPower=optIfOChGroupSinkPrevDayLastOutputPower, optIfOChSinkPrevDaySuspectedFlag=optIfOChSinkPrevDaySuspectedFlag, optIfGCC0ConfigEntry=optIfGCC0ConfigEntry, optIfODUkTtpDEGThr=optIfODUkTtpDEGThr, optIfODUkTCodirectional=optIfODUkTCodirectional, optIfOChSinkIntervalTable=optIfOChSinkIntervalTable, optIfPreOtnPMCompl=optIfPreOtnPMCompl, optIfOTUkTIMDetMode=optIfOTUkTIMDetMode, optIfOTUkSourceGroup=optIfOTUkSourceGroup, optIfOChGroupSinkCurrentTable=optIfOChGroupSinkCurrentTable, optIfOChGroupSinkIntervalEntry=optIfOChGroupSinkIntervalEntry, optIfOChSinkCurrentEntry=optIfOChSinkCurrentEntry, optIfOTSnSrcIntervalNumber=optIfOTSnSrcIntervalNumber, optIfOTSnSrcCurDayLowInputPower=optIfOTSnSrcCurDayLowInputPower, optIfOMSnSinkCurDaySuspectedFlag=optIfOMSnSinkCurDaySuspectedFlag, optIfOTSnSrcPrevDayTable=optIfOTSnSrcPrevDayTable, optIfOMSn=optIfOMSn, optIfOTUk=optIfOTUk, optIfOChGroupSrcCurDayEntry=optIfOChGroupSrcCurDayEntry, optIfOTSnDirectionality=optIfOTSnDirectionality, optIfOTSnDAPIExpected=optIfOTSnDAPIExpected, optIfOMSnSrcCurDaySuspectedFlag=optIfOMSnSrcCurDaySuspectedFlag, optIfOTUkConfigTable=optIfOTUkConfigTable, optIfOChGroupSrcIntervalNumber=optIfOChGroupSrcIntervalNumber, optIfOTSnSrcCurrentInputPower=optIfOTSnSrcCurrentInputPower, optIfOMSnDirectionality=optIfOMSnDirectionality, optIfOChGroupSinkIntervalNumber=optIfOChGroupSinkIntervalNumber, optIfOChGroupSinkCurDaySuspectedFlag=optIfOChGroupSinkCurDaySuspectedFlag, optIfOChGroup=optIfOChGroup, optIfOTSnSinkCurrentHighOutputPower=optIfOTSnSinkCurrentHighOutputPower, optIfODUkPositionSeqTable=optIfODUkPositionSeqTable, optIfOMSnSinkIntervalTable=optIfOMSnSinkIntervalTable, optIfOChGroupSrcPrevDayLastAggregatedInputPower=optIfOChGroupSrcPrevDayLastAggregatedInputPower, optIfOChSrcIntervalLastOutputPower=optIfOChSrcIntervalLastOutputPower, optIfCompl=optIfCompl, optIfOMSnSrcPrevDayLastAggregatedInputPower=optIfOMSnSrcPrevDayLastAggregatedInputPower, optIfOChGroupSinkCurrentOutputPower=optIfOChGroupSinkCurrentOutputPower, optIfOMSnSinkIntervalLowOutputPower=optIfOMSnSinkIntervalLowOutputPower, optIfOMSnSinkCurrentUpperInputPowerThreshold=optIfOMSnSinkCurrentUpperInputPowerThreshold, optIfPerfMonIntervalNumInvalidIntervals=optIfPerfMonIntervalNumInvalidIntervals, optIfOChSrcCurrentSuspectedFlag=optIfOChSrcCurrentSuspectedFlag, optIfOMSnSinkPrevDayLastOutputPower=optIfOMSnSinkPrevDayLastOutputPower, optIfOChSinkPrevDayLastInputPower=optIfOChSinkPrevDayLastInputPower, optIfODUkNimCurrentStatus=optIfODUkNimCurrentStatus, optIfOTSnSrcIntervalTable=optIfOTSnSrcIntervalTable, optIfOMSnSinkCurrentSuspectedFlag=optIfOMSnSinkCurrentSuspectedFlag, optIfOChGroupSrcCurrentLowerOutputPowerThreshold=optIfOChGroupSrcCurrentLowerOutputPowerThreshold, optIfODUkNimRowStatus=optIfODUkNimRowStatus, optIfOChSrcPrevDayLastOutputPower=optIfOChSrcPrevDayLastOutputPower, optIfOChGroupSrcCurrentHighAggregatedInputPower=optIfOChGroupSrcCurrentHighAggregatedInputPower, optIfODUkTNimDirectionality=optIfODUkTNimDirectionality, optIfOTSnSinkCurrentInputPower=optIfOTSnSinkCurrentInputPower, optIfOTUkCommonGroup=optIfOTUkCommonGroup, optIfOTSnSrcIntervalLastInputPower=optIfOTSnSrcIntervalLastInputPower, optIfOChSrcCurrentLowerOutputPowerThreshold=optIfOChSrcCurrentLowerOutputPowerThreshold, optIfOChSinkIntervalSuspectedFlag=optIfOChSinkIntervalSuspectedFlag, optIfODUkTtpDAPIExpected=optIfODUkTtpDAPIExpected, optIfOTMnTcmMax=optIfOTMnTcmMax, optIfOChGroupSrcIntervalLowAggregatedInputPower=optIfOChGroupSrcIntervalLowAggregatedInputPower, optIfODUkNimConfigTable=optIfODUkNimConfigTable, optIfOTUkSinkGroup=optIfOTUkSinkGroup, optIfODUkTDEGThr=optIfODUkTDEGThr, optIfOTUkSourceAdaptActive=optIfOTUkSourceAdaptActive, optIfOTSnConfigEntry=optIfOTSnConfigEntry, optIfODUkNimSAPIExpected=optIfODUkNimSAPIExpected, optIfODUkTNimDEGM=optIfODUkTNimDEGM, optIfOTSnSourcePreOtnPMThresholdGroup=optIfOTSnSourcePreOtnPMThresholdGroup, optIfOChSrcPrevDayHighOutputPower=optIfOChSrcPrevDayHighOutputPower, optIfOTUkTraceIdentifierAccepted=optIfOTUkTraceIdentifierAccepted, optIfOMSnSrcPrevDayLowOutputPower=optIfOMSnSrcPrevDayLowOutputPower, optIfODUkTNimTraceIdentifierAccepted=optIfODUkTNimTraceIdentifierAccepted, optIfODUkTtpConfigTable=optIfODUkTtpConfigTable, optIfOChGroupSrcCurrentSuspectedFlag=optIfOChGroupSrcCurrentSuspectedFlag) mibBuilder.exportSymbols("OPT-IF-MIB", optIfOTSnSinkCurrentLowInputPower=optIfOTSnSinkCurrentLowInputPower, optIfOTUkTraceIdentifierTransmitted=optIfOTUkTraceIdentifierTransmitted, optIfOChGroupSinkCurrentLowAggregatedInputPower=optIfOChGroupSinkCurrentLowAggregatedInputPower, optIfOChSrcPrevDayTable=optIfOChSrcPrevDayTable, optIfOTSnTraceIdentifierTransmitted=optIfOTSnTraceIdentifierTransmitted, optIfGCC0Group=optIfGCC0Group, OptIfTxTI=OptIfTxTI, optIfOChGroupSrcIntervalEntry=optIfOChGroupSrcIntervalEntry, optIfOTSnSinkPrevDayLowInputPower=optIfOTSnSinkPrevDayLowInputPower, optIfODUkBitRateK=optIfODUkBitRateK, optIfOChSinkIntervalLowInputPower=optIfOChSinkIntervalLowInputPower, optIfODUkTSinkGroup=optIfODUkTSinkGroup, optIfOTMnBitRates=optIfOTMnBitRates, optIfODUkNimDAPIExpected=optIfODUkNimDAPIExpected, optIfOChSourcePreOtnPMGroup=optIfOChSourcePreOtnPMGroup, optIfOTSnSrcPrevDayHighInputPower=optIfOTSnSrcPrevDayHighInputPower, optIfOMSnSinkIntervalNumber=optIfOMSnSinkIntervalNumber, optIfOChGroupSrcPrevDayTable=optIfOChGroupSrcPrevDayTable, optIfOChSinkPreOtnPMGroup=optIfOChSinkPreOtnPMGroup, optIfOMSnSinkIntervalHighAggregatedInputPower=optIfOMSnSinkIntervalHighAggregatedInputPower, optIfPerfMonCurDayTimeElapsed=optIfPerfMonCurDayTimeElapsed, optIfOTSnSinkCurDaySuspectedFlag=optIfOTSnSinkCurDaySuspectedFlag, optIfODUkTSinkLockSignalAdminState=optIfODUkTSinkLockSignalAdminState, optIfOChSrcCurrentTable=optIfOChSrcCurrentTable, optIfOChSrcIntervalSuspectedFlag=optIfOChSrcIntervalSuspectedFlag, optIfOTSnSinkIntervalLowOutputPower=optIfOTSnSinkIntervalLowOutputPower, optIfODUkTSinkGroupCtp=optIfODUkTSinkGroupCtp, optIfOTSn=optIfOTSn, optIfOMSnSrcCurDayHighAggregatedInputPower=optIfOMSnSrcCurDayHighAggregatedInputPower, optIfOChSinkGroupBasic=optIfOChSinkGroupBasic, optIfOTSnSinkCurrentUpperInputPowerThreshold=optIfOTSnSinkCurrentUpperInputPowerThreshold, optIfOMSnSrcPrevDayEntry=optIfOMSnSrcPrevDayEntry, optIfOChGroupSinkPrevDayEntry=optIfOChGroupSinkPrevDayEntry, optIfODUkTSAPIExpected=optIfODUkTSAPIExpected, optIfOChGroupSinkCurrentLowerInputPowerThreshold=optIfOChGroupSinkCurrentLowerInputPowerThreshold, optIfOChGroupSinkIntervalTable=optIfOChGroupSinkIntervalTable, optIfOMSnSrcIntervalLowOutputPower=optIfOMSnSrcIntervalLowOutputPower, optIfOTSnConfigTable=optIfOTSnConfigTable, optIfOChGroupSrcCurrentOutputPower=optIfOChGroupSrcCurrentOutputPower, optIfOTSnSrcIntervalLastOutputPower=optIfOTSnSrcIntervalLastOutputPower, optIfOTSnSinkCurrentTable=optIfOTSnSinkCurrentTable, optIfOMSnSinkCurDayTable=optIfOMSnSinkCurDayTable, optIfOChGroupSinkPreOtnPMThresholdGroup=optIfOChGroupSinkPreOtnPMThresholdGroup, optIfOTMnOrder=optIfOTMnOrder, optIfOChSrcCurDayEntry=optIfOChSrcCurDayEntry, optIfOChGroupSinkCurDayEntry=optIfOChGroupSinkCurDayEntry, optIfOChGroupSrcCurrentUpperInputPowerThreshold=optIfOChGroupSrcCurrentUpperInputPowerThreshold, optIfPerfMonCurrentTimeElapsed=optIfPerfMonCurrentTimeElapsed, optIfOTSnSrcCurDayHighOutputPower=optIfOTSnSrcCurDayHighOutputPower, optIfOChSrcIntervalNumber=optIfOChSrcIntervalNumber, optIfGCC12Application=optIfGCC12Application, optIfOTSnSinkCurrentSuspectedFlag=optIfOTSnSinkCurrentSuspectedFlag, optIfOTUkCurrentStatus=optIfOTUkCurrentStatus, optIfOTSnSinkIntervalEntry=optIfOTSnSinkIntervalEntry, optIfOChGroupSrcCurDayHighAggregatedInputPower=optIfOChGroupSrcCurDayHighAggregatedInputPower, optIfOTSnSrcCurDayEntry=optIfOTSnSrcCurDayEntry, optIfOMSnSrcIntervalEntry=optIfOMSnSrcIntervalEntry, optIfOMSnConfigTable=optIfOMSnConfigTable, optIfOTSnSrcPrevDayEntry=optIfOTSnSrcPrevDayEntry, optIfOTSnSinkPrevDayLowOutputPower=optIfOTSnSinkPrevDayLowOutputPower, optIfODUkTtpTIMDetMode=optIfODUkTtpTIMDetMode, optIfOTSnSinkPrevDayHighOutputPower=optIfOTSnSinkPrevDayHighOutputPower, optIfOTSnSinkCurrentHighInputPower=optIfOTSnSinkCurrentHighInputPower, optIfODUkTDEGM=optIfODUkTDEGM, optIfOTSnSinkPreOtnPMGroup=optIfOTSnSinkPreOtnPMGroup, optIfOChGroupSinkPrevDayHighOutputPower=optIfOChGroupSinkPrevDayHighOutputPower, optIfGCC12RowStatus=optIfGCC12RowStatus, optIfODUkT=optIfODUkT, optIfOTSnSAPIExpected=optIfOTSnSAPIExpected, optIfOChSrcPrevDaySuspectedFlag=optIfOChSrcPrevDaySuspectedFlag, optIfOChSinkPrevDayHighInputPower=optIfOChSinkPrevDayHighInputPower, optIfOTSnSrcIntervalHighOutputPower=optIfOTSnSrcIntervalHighOutputPower, optIfOMSnSinkCurDayHighAggregatedInputPower=optIfOMSnSinkCurDayHighAggregatedInputPower, optIfOChGroupSrcCurrentUpperOutputPowerThreshold=optIfOChGroupSrcCurrentUpperOutputPowerThreshold, optIfOMSnSrcCurDayEntry=optIfOMSnSrcCurDayEntry, optIfOChGroupSinkIntervalSuspectedFlag=optIfOChGroupSinkIntervalSuspectedFlag, optIfOTUkDirectionality=optIfOTUkDirectionality, optIfOTSnSrcPrevDayLowInputPower=optIfOTSnSrcPrevDayLowInputPower, optIfOChGroupSrcCurrentTable=optIfOChGroupSrcCurrentTable, optIfODUkNimConfigEntry=optIfODUkNimConfigEntry, optIfOChGroupSinkCurrentAggregatedInputPower=optIfOChGroupSinkCurrentAggregatedInputPower, optIfODUkTtpTraceIdentifierTransmitted=optIfODUkTtpTraceIdentifierTransmitted, optIfOTMnEntry=optIfOTMnEntry, optIfODUkPositionSeqIndex=optIfODUkPositionSeqIndex, optIfOChGroupSrcPrevDaySuspectedFlag=optIfOChGroupSrcPrevDaySuspectedFlag, optIfOChGroupSrcPrevDayLowAggregatedInputPower=optIfOChGroupSrcPrevDayLowAggregatedInputPower, optIfODUkNimTIMActEnabled=optIfODUkNimTIMActEnabled, optIfOChSrcIntervalEntry=optIfOChSrcIntervalEntry, optIfOMSnSourcePreOtnPMThresholdGroup=optIfOMSnSourcePreOtnPMThresholdGroup, optIfOTSnSrcCurrentLowInputPower=optIfOTSnSrcCurrentLowInputPower, optIfOTSnSinkCurDayTable=optIfOTSnSinkCurDayTable, optIfODUkNimDEGThr=optIfODUkNimDEGThr, optIfODUkTTIMActEnabled=optIfODUkTTIMActEnabled, optIfODUkTRowStatus=optIfODUkTRowStatus, optIfOTSnTraceIdentifierAccepted=optIfOTSnTraceIdentifierAccepted, optIfODUkTSinkMode=optIfODUkTSinkMode, optIfOChGroupSrcCurrentEntry=optIfOChGroupSrcCurrentEntry, optIfOTSnTIMDetMode=optIfOTSnTIMDetMode, optIfOMSnSrcCurDayLowOutputPower=optIfOMSnSrcCurDayLowOutputPower, optIfOMSnSrcPrevDayHighOutputPower=optIfOMSnSrcPrevDayHighOutputPower, optIfOTMnGroup=optIfOTMnGroup, optIfODUkTConfigTable=optIfODUkTConfigTable, optIfOTSnSinkIntervalLastOutputPower=optIfOTSnSinkIntervalLastOutputPower, optIfOChGroupSinkPreOtnPMGroup=optIfOChGroupSinkPreOtnPMGroup, optIfGCC0RowStatus=optIfGCC0RowStatus, OptIfExSAPI=OptIfExSAPI, optIfOTSnSinkCurDayHighInputPower=optIfOTSnSinkCurDayHighInputPower, optIfOTSnSrcCurrentLowerOutputPowerThreshold=optIfOTSnSrcCurrentLowerOutputPowerThreshold, optIfOChConfigEntry=optIfOChConfigEntry, optIfOMSnSrcCurrentLowerOutputPowerThreshold=optIfOMSnSrcCurrentLowerOutputPowerThreshold, optIfOTSnSinkCurrentEntry=optIfOTSnSinkCurrentEntry, optIfOTSnSrcCurrentHighOutputPower=optIfOTSnSrcCurrentHighOutputPower, optIfODUkTtpSAPIExpected=optIfODUkTtpSAPIExpected, optIfOTSnSinkIntervalHighOutputPower=optIfOTSnSinkIntervalHighOutputPower, optIfOTSnSrcCurrentLowOutputPower=optIfOTSnSrcCurrentLowOutputPower, optIfODUkTNimConfigTable=optIfODUkTNimConfigTable, optIfOMSnSinkCurrentTable=optIfOMSnSinkCurrentTable, optIfOChGroupSinkCurDayHighAggregatedInputPower=optIfOChGroupSinkCurDayHighAggregatedInputPower, optIfOTMnOpticalReach=optIfOTMnOpticalReach, optIfOChGroupSinkCurrentEntry=optIfOChGroupSinkCurrentEntry, optIfOMSnSinkPrevDaySuspectedFlag=optIfOMSnSinkPrevDaySuspectedFlag, optIfOMSnSinkPreOtnPMGroup=optIfOMSnSinkPreOtnPMGroup, optIfOChGroupSrcCurrentLowAggregatedInputPower=optIfOChGroupSrcCurrentLowAggregatedInputPower, optIfOTSnSinkPrevDayLastOutputPower=optIfOTSnSinkPrevDayLastOutputPower, optIfOChSinkPrevDayLowInputPower=optIfOChSinkPrevDayLowInputPower, optIfOMSnSinkIntervalLastAggregatedInputPower=optIfOMSnSinkIntervalLastAggregatedInputPower, OptIfDEGM=OptIfDEGM, optIfOMSnSinkCurDayLowAggregatedInputPower=optIfOMSnSinkCurDayLowAggregatedInputPower, optIfOMSnSrcPrevDayLowAggregatedInputPower=optIfOMSnSrcPrevDayLowAggregatedInputPower, optIfOTUkSinkAdaptActive=optIfOTUkSinkAdaptActive, optIfOTSnSinkGroupBasic=optIfOTSnSinkGroupBasic, optIfOChSinkCurrentInputPower=optIfOChSinkCurrentInputPower, optIfOChConfigTable=optIfOChConfigTable, optIfOTSnSrcCurrentSuspectedFlag=optIfOTSnSrcCurrentSuspectedFlag, optIfOTSnSinkIntervalLowInputPower=optIfOTSnSinkIntervalLowInputPower, optIfOMSnSrcCurrentUpperInputPowerThreshold=optIfOMSnSrcCurrentUpperInputPowerThreshold, optIfOChGroupConfigTable=optIfOChGroupConfigTable, optIfOChSinkPrevDayEntry=optIfOChSinkPrevDayEntry, optIfOChGroupSinkPrevDaySuspectedFlag=optIfOChGroupSinkPrevDaySuspectedFlag, optIfOChSinkPrevDayTable=optIfOChSinkPrevDayTable, optIfOMSnSinkPrevDayHighAggregatedInputPower=optIfOMSnSinkPrevDayHighAggregatedInputPower, optIfGCC12GCCPassThrough=optIfGCC12GCCPassThrough, optIfOChGroupSrcCurDayLowAggregatedInputPower=optIfOChGroupSrcCurDayLowAggregatedInputPower, optIfOTSnSrcPrevDayHighOutputPower=optIfOTSnSrcPrevDayHighOutputPower, optIfOMSnSrcIntervalTable=optIfOMSnSrcIntervalTable, optIfOTSnSinkPrevDayEntry=optIfOTSnSinkPrevDayEntry, optIfOChGroupConfigEntry=optIfOChGroupConfigEntry, optIfPerfMon=optIfPerfMon, optIfODUkConfigTable=optIfODUkConfigTable, optIfODUkTtpDEGM=optIfODUkTtpDEGM, optIfOTSnSrcCurrentLowerInputPowerThreshold=optIfOTSnSrcCurrentLowerInputPowerThreshold, optIfOTSnSinkPrevDayHighInputPower=optIfOTSnSinkPrevDayHighInputPower, optIfOMSnSinkCurDayLowOutputPower=optIfOMSnSinkCurDayLowOutputPower, OptIfAcTI=OptIfAcTI, optIfOChGroupSinkPrevDayLastAggregatedInputPower=optIfOChGroupSinkPrevDayLastAggregatedInputPower, optIfOTSnSinkIntervalLastInputPower=optIfOTSnSinkIntervalLastInputPower, optIfODUkTtpCurrentStatus=optIfODUkTtpCurrentStatus, optIfOTMn=optIfOTMn, optIfOTSnSrcIntervalHighInputPower=optIfOTSnSrcIntervalHighInputPower, optIfOChGroupSrcPrevDayEntry=optIfOChGroupSrcPrevDayEntry, optIfOTSnSrcCurrentTable=optIfOTSnSrcCurrentTable, optIfPerfMonIntervalEntry=optIfPerfMonIntervalEntry, optIfOChGroupSinkCurrentLowOutputPower=optIfOChGroupSinkCurrentLowOutputPower, optIfOChGroupSinkPrevDayLowOutputPower=optIfOChGroupSinkPrevDayLowOutputPower, optIfOMSnSinkIntervalLowAggregatedInputPower=optIfOMSnSinkIntervalLowAggregatedInputPower, optIfODUkConfigEntry=optIfODUkConfigEntry, optIfOMSnSinkPreOtnPMThresholdGroup=optIfOMSnSinkPreOtnPMThresholdGroup, PYSNMP_MODULE_ID=optIfMibModule, optIfOChGroupSrcCurrentLowOutputPower=optIfOChGroupSrcCurrentLowOutputPower, optIfOMSnSinkCurrentLowerInputPowerThreshold=optIfOMSnSinkCurrentLowerInputPowerThreshold, optIfOMSnSrcIntervalNumber=optIfOMSnSrcIntervalNumber, optIfOChGroupSinkCurrentSuspectedFlag=optIfOChGroupSinkCurrentSuspectedFlag, optIfOChSinkCurDayLowInputPower=optIfOChSinkCurDayLowInputPower, optIfODUkNimTraceIdentifierAccepted=optIfODUkNimTraceIdentifierAccepted, optIfOChGroupSinkCurDayTable=optIfOChGroupSinkCurDayTable, optIfODUkNimGroup=optIfODUkNimGroup, optIfOMSnSrcPrevDayLastOutputPower=optIfOMSnSrcPrevDayLastOutputPower, optIfOChGroupSrcIntervalHighAggregatedInputPower=optIfOChGroupSrcIntervalHighAggregatedInputPower, optIfOChGroupSinkCurrentHighAggregatedInputPower=optIfOChGroupSinkCurrentHighAggregatedInputPower, optIfOTSnSrcCurrentUpperInputPowerThreshold=optIfOTSnSrcCurrentUpperInputPowerThreshold, optIfOMSnSinkCurDayEntry=optIfOMSnSinkCurDayEntry, optIfOChSrcIntervalLowOutputPower=optIfOChSrcIntervalLowOutputPower, OptIfBitRateK=OptIfBitRateK, optIfOChGroupSrcIntervalSuspectedFlag=optIfOChGroupSrcIntervalSuspectedFlag, optIfODUkDirectionality=optIfODUkDirectionality, optIfOTSnSrcCurDayLowOutputPower=optIfOTSnSrcCurDayLowOutputPower, optIfODUkTNimGroup=optIfODUkTNimGroup, optIfOMSnSrcCurrentOutputPower=optIfOMSnSrcCurrentOutputPower, optIfOTSnTIMActEnabled=optIfOTSnTIMActEnabled, optIfOTSnSinkIntervalTable=optIfOTSnSinkIntervalTable, optIfOTSnCommonGroup=optIfOTSnCommonGroup, optIfOTSnSrcIntervalSuspectedFlag=optIfOTSnSrcIntervalSuspectedFlag, optIfOTSnSrcIntervalLowInputPower=optIfOTSnSrcIntervalLowInputPower, optIfOMSnSrcIntervalLastOutputPower=optIfOMSnSrcIntervalLastOutputPower, optIfOChSrcCurrentUpperOutputPowerThreshold=optIfOChSrcCurrentUpperOutputPowerThreshold, optIfOMSnSrcPrevDaySuspectedFlag=optIfOMSnSrcPrevDaySuspectedFlag, optIfOMSnSinkCurrentLowAggregatedInputPower=optIfOMSnSinkCurrentLowAggregatedInputPower, optIfOTUkDAPIExpected=optIfOTUkDAPIExpected, optIfODUkTConfigEntry=optIfODUkTConfigEntry, optIfOChCommonGroup=optIfOChCommonGroup, optIfOTUkSAPIExpected=optIfOTUkSAPIExpected, optIfODUkTDAPIExpected=optIfODUkTDAPIExpected, optIfOTSnSrcCurrentOutputPower=optIfOTSnSrcCurrentOutputPower, optIfOChSinkCurrentHighInputPower=optIfOChSinkCurrentHighInputPower, optIfOMSnSinkPrevDayEntry=optIfOMSnSinkPrevDayEntry, optIfOCh=optIfOCh, optIfOTMnTable=optIfOTMnTable, optIfOTSnSinkCurDayLowInputPower=optIfOTSnSinkCurDayLowInputPower, optIfOMSnSinkCurrentLowOutputPower=optIfOMSnSinkCurrentLowOutputPower, optIfOChSinkCurDaySuspectedFlag=optIfOChSinkCurDaySuspectedFlag, optIfODUkTNimDAPIExpected=optIfODUkTNimDAPIExpected, optIfOTSnAPRStatusGroup=optIfOTSnAPRStatusGroup, OptIfDEGThr=OptIfDEGThr, optIfOChGroupSrcCurDayHighOutputPower=optIfOChGroupSrcCurDayHighOutputPower, optIfOChGroupSrcPrevDayLowOutputPower=optIfOChGroupSrcPrevDayLowOutputPower, optIfGCC0Directionality=optIfGCC0Directionality, optIfODUkNimDirectionality=optIfODUkNimDirectionality, optIfOChGroupSinkCurDayLowOutputPower=optIfOChGroupSinkCurDayLowOutputPower, optIfOChGroupSinkCurrentHighOutputPower=optIfOChGroupSinkCurrentHighOutputPower, optIfODUkPositionSeqCurrentSize=optIfODUkPositionSeqCurrentSize, optIfOChGroupSinkIntervalLowAggregatedInputPower=optIfOChGroupSinkIntervalLowAggregatedInputPower, optIfODUkTNimTIMActEnabled=optIfODUkTNimTIMActEnabled, optIfGCC12Group=optIfGCC12Group, optIfOChSinkCurrentUpperInputPowerThreshold=optIfOChSinkCurrentUpperInputPowerThreshold, optIfODUkTTcmField=optIfODUkTTcmField, optIfOMSnSrcPrevDayHighAggregatedInputPower=optIfOMSnSrcPrevDayHighAggregatedInputPower, optIfOMSnSrcIntervalSuspectedFlag=optIfOMSnSrcIntervalSuspectedFlag, optIfOChSinkCurrentTable=optIfOChSinkCurrentTable, optIfOMSnSrcCurrentUpperOutputPowerThreshold=optIfOMSnSrcCurrentUpperOutputPowerThreshold, optIfOMSnSourcePreOtnPMGroup=optIfOMSnSourcePreOtnPMGroup, optIfOMSnSinkCurrentAggregatedInputPower=optIfOMSnSinkCurrentAggregatedInputPower, optIfODUkTtpTraceIdentifierAccepted=optIfODUkTtpTraceIdentifierAccepted, optIfOMSnSrcIntervalLastAggregatedInputPower=optIfOMSnSrcIntervalLastAggregatedInputPower)
"""Spotify response stated codes. Reference: https://developer.spotify.com/documentation/web-api/#response-status-codes """ RESPONSE_OK = 200 RESPONSE_CREATED = 201 RESPONSE_ACCEPTED = 202 RESPONSE_NO_CONTENT = 204 RESPONSE_NOT_MODIFIED = 304 RESPONSE_BAD_REQUEST = 400 RESPONSE_UNAUTHORIZED = 401 RESPONSE_FORBIDDEN = 403 RESPONSE_NOT_FOUND = 404 RESPONSE_TOO_MANY_REQUESTS = 429 RESPONSE_INTERNAL_SERVER_ERROR = 500 RESPONSE_BAD_GATEWAY = 502 RESPONSE_SERVICE_UNAVAILABLE = 503
''' Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) You may assume all four edges of the grid are surrounded by water. Find the maximum area of an island in the given 2D array. (If there is no island, the maximum area is 0.) Example 1: [[0,0,1,0,0,0,0,1,0,0,0,0,0], [0,0,0,0,0,0,0,1,1,1,0,0,0], [0,1,1,0,1,0,0,0,0,0,0,0,0], [0,1,0,0,1,1,0,0,1,0,1,0,0], [0,1,0,0,1,1,0,0,1,1,1,0,0], [0,0,0,0,0,0,0,0,0,0,1,0,0], [0,0,0,0,0,0,0,1,1,1,0,0,0], [0,0,0,0,0,0,0,1,1,0,0,0,0]] Given the above grid, return 6. Note the answer is not 11, because the island must be connected 4-directionally. Example 2: [[0,0,0,0,0,0,0,0]] Given the above grid, return 0. Note: The length of each dimension in the given grid does not exceed 50. ''' class Solution: def maxAreaOfIsland(self, grid): """ :type grid: List[List[int]] :rtype: int """ seen = set() def area(r, c): if not (0 <= r < len(grid) and 0 <= c < len(grid[0]) and (r, c) not in seen and grid[r][c]): return 0 seen.add((r, c)) return (1 + area(r+1, c) + area(r-1, c) + area(r, c-1) + area(r, c+1)) return max(area(r, c) for r in range(len(grid)) for c in range(len(grid[0]))) ''' temp=set() def get_area(i,j): if(not(0<=i<len(grid)) and 0<=j<len(grid[0])and (i,j) not in temp and grid[i][j] ): return(0) temp.add((i,j)) return(1+get_area(i-1,j)+get_area(i,j-1)+get_area(i,j+1)+get_area(i+1,j)) areas=[] for i in range(len(grid)): for j in range(len(grid[0])): print(i) areas.append(get_area(i,j)) print(areas) return(max(areas)) '''
class Solution: def rotate(self, nums: List[int], k: int) -> None: """ Do not return anything, modify nums in-place instead. """ length = len(nums) k %= length self.reverse(0, length - 1, nums) self.reverse(0, k - 1, nums) self.reverse(k, length - 1, nums) def reverse(self, start: int, end: int, nums: List[int]) -> None: while start < end: nums[start], nums[end] = nums[end], nums[start] start += 1 end -= 1
''' Ao observar a curva de velocidade de um motor, o engenheiro Zé percebeu que sempre ocorria uma queda quando as medidas eram feitas em intervalos de 10 ms. Mas esta queda acontecia em medidas diferentes a cada novo teste do motor. Zé ficou curioso com essa falta de padrão e quer saber, para cada teste do motor, qual a primeira medida em que ocorre uma queda de velocidade. Entrada A entrada é um teste do motor e é dada em duas linhas. A primeira tem o número N de medidas de velocidade do motor (1 < N ≤ 100). A segunda linha tem N inteiros: o número de RPM (rotações por minuto) Ri de cada medida (0 ≤ Ri ≤ 10000, para todo Ri, tal que 1 ≤ i ≤ N). Uma medida é considerada uma queda se é menor que a medida anterior. Saída A saída é o índice da medida em que houve a primeira queda de velocidade no teste. Caso não aconteça uma queda de velocidade a saída deve ser o número zero. ''' N = int(input()) indice = i = 0 entrada = str(input()).split() for k,v in enumerate(entrada): entrada[k] = int(v) while True: if i >= 1: if entrada[i] < entrada[i-1]: indice = entrada.index(entrada[i])+1 break i += 1 if i == len(entrada): break print(indice)
''' Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. Example 1: Input: "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc" Note: In the string, each word is separated by single space and there will not be any extra space in the string. ''' class Solution(object): def reverseWords(self, s): """ :type s: str :rtype: str """ res = [] vec = s.split(' ') for token in vec: res.append(token[::-1]) return ' '.join(res)
def checkrootpos(root, params): a, b, c, d = params return a * root**3 + b * root**2 + c * root + d > 0 def checkrootneg(root, params): a, b, c, d = params return a * root**3 + b * root**2 + c * root + d < 0 def fbinsearch(l, r, eps, check, params): while l + eps < r: m = (l + r) / 2 if check(m, params): r = m else: l = m return l a, b, c, d = map(int, input().split()) eps = 0.0000000001 l = -10000000 r = 10000000 if a > 0: x = fbinsearch(l, r, eps, checkrootpos, (a, b, c, d)) else: x = fbinsearch(l, r, eps, checkrootneg, (a, b, c, d)) print(x)
LOWER_BOUND = -2147483648 UPPER_BOUND = 2147483647 def solve(i: int) -> int: base = 10 digit_arr = [] mult = 1 if i > 0 else -1 num = abs(i) while num: digit_arr.append(num % base) num //= base reverse_num = 0 for digit in digit_arr[::-1]: reverse_num += mult * digit mult *= base return reverse_num if LOWER_BOUND <= reverse_num <= UPPER_BOUND else 0 def execute_tests() -> None: simple_case_123 = (123, 321) simple_case_321 = (321, 123) long_case_453412 = (453412, 214354) zero = (0, 0) one = (1, 1) min_allowed = (-8463847412, -2147483648) too_small = (-9463847412, 0) too_big = (1534236469, 0) for test_case in [ simple_case_123, simple_case_321, long_case_453412, zero, one, min_allowed, too_small, too_big ]: test(*test_case) def test(i: int, expected: int) -> None: answer = solve(i) print(i, "reversed is", answer, "expected:", expected) assert answer == expected def main() -> None: return execute_tests() if __name__ == '__main__': main()
class MultiSerializerMixin: def get_serializer_class(self): return self.serializer_classes[self.action]
# While loops practice # PART A ages = [5, 6, 24, 32, 21, 70] counter = 0 while ages[counter] < 30: print("Part A - The ages is : " +str(ages[counter])) counter+=1 print("Part A - The value that caused the loop to stop : " +str(ages[counter])) print("\n") # PART B counter = 0 while ages[counter] < 30: if ages[counter] > 20 : print("Part B - Print the value that stopped the loop : " +str(ages[counter])) break counter +=1 print("\n") # PART C counter = 0 while ages[counter] < 70: ages[counter] = ages[counter] + 2 print("Part C - Cell's new value is : " +str(ages[counter])) counter +=1 else: print("Part C - I'm inside 'else' because the number : " +str(ages[counter]))
def out_red(text): return "\033[31m {}" .format(text) def out_yellow(text): return "\033[33m {}" .format(text) def out_green(text): return "\033[32m {}" .format(text)
""" Continuação kwargs3.py... """ # Entenda porquê é importante manter a ordem dos parâmetros na declaração # Função com a ordem correta de Parâmetros def mostra_info(a, b, *args, instrutor='Geek', **Kwargs): return [a, b, args, instrutor, Kwargs] print(mostra_info(1, 2, 3, sobrenome='University', cargo='Instrutor')) """ a = 1 b = 2 args = (3,) instrutor = 'Geek' kwargs = {'sobrenome': 'University', 'cargo': 'Instrutor'} """ # Função com a ordem errada de Parâmetros def mostra_info(a, b, instrutor='Geek', *args, **Kwargs): return [a, b, args, instrutor, Kwargs] print(mostra_info(1, 2, 3, sobrenome='University', cargo='Instrutor')) """ a = 1 b = 2 args = (0) instrutor = 3 kwargs = {'sobrenome': 'University', 'cargo': 'Instrutor'} """ # Desempacotar com **kwargs def mostra_nomes(**kwargs): return f'{kwargs["nome"]}, {kwargs["sobrenome"]}' nomes = {'nome': 'Felicity', 'sobrenome': 'Jones'} print(mostra_nomes(**nomes)) def soma_multiplos_numeros(a, b, c): print(a + b + c) lista = [1, 2, 3] tupla = (1, 2, 3) conjunto = {1, 2, 3} soma_multiplos_numeros(*lista) soma_multiplos_numeros(*tupla) soma_multiplos_numeros(*conjunto) dicionario = dict(a=1, b=2, c=3) soma_multiplos_numeros(**dicionario) # OBS! Os nomes das chaves em um dicionário devem ser os mesmos dos parâmetros da função # dicionario = dict(d=1, e=2, f=3) TypeError # soma_multiplos_numeros(**dicionario)
# vowels list vowels = ['e', 'a', 'u', 'o', 'i'] # sort the vowels vowels.sort() # print vowels print('Sorted list:', vowels)
# set the path-to-files TRAIN_FILE = "/home/luban/work_jupyter/point_rec_data/train.csv" TEST_FILE = "/home/luban/work_jupyter/point_rec_data/test.csv" SUB_DIR = "./output" NUM_SPLITS = 3 RANDOM_SEED = 2017 # types of columns of the dataset dataframe CATEGORICAL_COLS = [ 'common.os', 'common.loc_provider', 'time.time', 'time.week', ] NUMERIC_COLS = [ # binary 'personal.cur_rectangle', # numeric 'common.loc_accuracy', 'walk.spherical_dist', 'walk.spherical_dist_ratio_on_pop', 'his_heat.absorb_offset' # feature engineering # "missing_feat", "ps_car_13_x_ps_reg_03", ] IGNORE_COLS = [ "id", "target", 'common.city_id', 'his_heat.weight_on_pos', 'his_heat.weight_on_link', 'his_heat.weight_on_route', 'his_heat.hottest_offset', 'his_heat.hottest_value', 'his_heat.nearest_offset', 'his_heat.nearest_value', 'his_heat.weight_on_pos_ratio', 'his_heat.weight_on_link_ratio', 'his_heat.weight_on_route_ratio', 'his_heat.pos_link_weight_ratio', 'his_heat.hottest_offset_ratio', 'his_heat.hottest_offset_pop_ratio', 'his_heat.hottest_value_ratio', 'his_heat.hottest_value_pop_ratio', 'his_heat.nearest_offset_ratio', 'his_heat.nearest_offset_pop_ratio', 'his_heat.nearest_value_ratio', 'his_heat.nearest_value_pop_ratio', 'his_heat.nearest_hottest_offset_ratio', 'his_heat.nearest_hottest_value_ratio', 'his_heat.hottest_value_offset_ratio', 'his_heat.nearest_value_offset_ratio', 'his_heat.hottest_pos_weight_ratio', 'his_heat.nearest_pos_weight_ratio', 'heat.link_cluster_point_heat', 'onsite_30.order_cnt', 'onsite_30.aboard_offset_median', 'onsite_30.aboard_onsite_rate_20', 'onsite_30.aboard_onsite_rate_30', 'onsite_30.aboard_onsite_rate_40', 'onsite_30.charge_offset_median', 'onsite_30.charge_onsite_rate_20', 'onsite_30.charge_onsite_rate_30', 'onsite_30.charge_onsite_rate_40', 'onsite_60.order_cnt', 'onsite_60.aboard_offset_median', 'onsite_60.aboard_onsite_rate_20', 'onsite_60.aboard_onsite_rate_30', 'onsite_60.aboard_onsite_rate_40', 'onsite_60.charge_offset_median', 'onsite_60.charge_onsite_rate_20', 'onsite_60.charge_onsite_rate_30', 'onsite_60.charge_onsite_rate_40', 'onsite_90.order_cnt', 'onsite_90.aboard_offset_median', 'onsite_90.aboard_onsite_rate_20', 'onsite_90.aboard_onsite_rate_30', 'onsite_90.aboard_onsite_rate_40', 'onsite_90.charge_offset_median', 'onsite_90.charge_onsite_rate_20', 'onsite_90.charge_onsite_rate_30', 'onsite_90.charge_onsite_rate_40', 'onsite_180.order_cnt', 'onsite_180.aboard_offset_median', 'onsite_180.aboard_onsite_rate_20', 'onsite_180.aboard_onsite_rate_30', 'onsite_180.aboard_onsite_rate_40', 'onsite_180.charge_offset_median', 'onsite_180.charge_onsite_rate_20', 'onsite_180.charge_onsite_rate_30', 'onsite_180.charge_onsite_rate_40', 'personal.dist_to_cur_center', 'personal.cur_radius', 'personal.b4mm_cnt', 'personal.origin_stat_0', 'personal.origin_stat_1', 'personal.origin_stat_from_last_0_0', 'personal.origin_stat_from_last_0_1', 'personal.origin_stat_from_last_1_0', 'personal.origin_stat_from_last_1_1', 'personal.origin_stat_from_last_2_0', 'personal.origin_stat_from_last_2_1', 'personal.origin_stat_from_last_3_0', 'personal.origin_stat_from_last_3_1', 'personal.origin_stat_from_now_0_0', 'personal.origin_stat_from_now_0_1', 'personal.origin_stat_from_now_1_0', 'personal.origin_stat_from_now_1_1', 'personal.origin_stat_from_now_2_0', 'personal.origin_stat_from_now_2_1', 'personal.origin_stat_from_now_3_0', 'personal.origin_stat_from_now_3_1', 'personal.move_stat_date_diff', 'personal.move_stat_0', 'personal.move_stat_1', 'personal.move_stat_2', 'personal.move_stat_3', 'personal.move_stat_from_last_0_0', 'personal.move_stat_from_last_0_1', 'personal.move_stat_from_last_0_2', 'personal.move_stat_from_last_0_3', 'personal.move_stat_from_last_1_0', 'personal.move_stat_from_last_1_1', 'personal.move_stat_from_last_1_2', 'personal.move_stat_from_last_1_3', 'personal.move_stat_from_last_2_0', 'personal.move_stat_from_last_2_1', 'personal.move_stat_from_last_2_2', 'personal.move_stat_from_last_2_3', 'personal.move_stat_from_last_3_0', 'personal.move_stat_from_last_3_1', 'personal.move_stat_from_last_3_2', 'personal.move_stat_from_last_3_3', 'personal.move_stat_from_now_0_0', 'personal.move_stat_from_now_0_1', 'personal.move_stat_from_now_0_2', 'personal.move_stat_from_now_0_3', 'personal.move_stat_from_now_1_0', 'personal.move_stat_from_now_1_1', 'personal.move_stat_from_now_1_2', 'personal.move_stat_from_now_1_3', 'personal.move_stat_from_now_2_0', 'personal.move_stat_from_now_2_1', 'personal.move_stat_from_now_2_2', 'personal.move_stat_from_now_2_3', 'personal.move_stat_from_now_3_0', 'personal.move_stat_from_now_3_1', 'personal.move_stat_from_now_3_2', 'personal.move_stat_from_now_3_3' ]
# Copyright 2019 Xilinx Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. class statItem: def __init__(self, name, timeunit="ms"): self.name = name self.runs = 0 self.min_t = float("inf") self.max_t = 0.0 self.ave_t = 0.0 self.total_t = 0.0 self.timeunit = timeunit def add(self, time): self.runs += 1 self.total_t += time if time < self.min_t: self.min_t = time if time > self.max_t: self.max_t = time self.ave_t = self.total_t / self.runs def setTimeUnit(self, _timeunit): if _timeunit == "s" or _timeunit == "ms" or _timeunit == "us": self.timeunit = _timeunit def __str__(self): if self.timeunit == "ms": tu = 1000 elif self.timeunit == "us": tu = 1000 * 1000 else: tu = 1 min_t = self.min_t * tu max_t = self.max_t * tu ave_t = self.ave_t * tu total_t = self.total_t * tu return "%s,%d,CPU,%.3f,%.3f,%.3f,\n" % (self.name, self.runs, min_t, ave_t, max_t) def __iter__(self): if self.timeunit == "ms": tu = 1000 elif self.timeunit == "us": tu = 1000 * 1000 else: tu = 1 min_t = self.min_t * tu max_t = self.max_t * tu ave_t = self.ave_t * tu total_t = self.total_t * tu return iter([self.name, self.runs, min_t, ave_t, max_t]) class statTable: def __init__(self, name): self.items = {} self.name = name def add(self, name, time): if name not in self.keys(): self.items.update({name: statItem(name)}) self.items.get(name).add(time) def keys(self): return self.items.keys() def output(self, fmt="csv", timeunit="ms"): for k in self.items.keys(): self.items[k].setTimeUnit(timeunit) if fmt == "csv": csv = [] #csv.append(self.name + " " + "Summary\n") #csv.append("Function Name,Number Of Runs,Minimum Time (ms),Maximum Time (ms),Average Time (ms),\n") for k in self.items.keys(): csv.append(str(self.items[k])) return csv if fmt == "list": l = [] for k in self.items.keys(): l.append(list(self.items[k])) return l """ DPU Summary Kernel Name,Number Of Runs,CU Full Name,Minimum Time (ms),Maximum Time (ms),Average Time (ms), """
HIVE_CONFIG = { "host": '127.0.0.1', "port": 10000, "username": 'username', "password": 'password' } MYSQL_CONFIG = { 'test': { "host": "127.0.0.1", "port": 3306, "user": "username", "password": "password", "database": "default"}, 'prod': { "host": "127.0.0.1", "port": 3306, "user": "username", "password": "password", "database": "default"}, }
n = int(input("Digite o valor a ser avaliado:")) ac1 = n%10 achouadjacente = False n = n//10 while n !=0 and not(achouadjacente): ac2 = n%10 if ac2 == ac1: achouadjacente = True n = n//10 ac1 = ac2 if achouadjacente: print("Nesse número há dois números adjacentes!") else: print("Nesse número não há dois números adjacentes!")
def test_stats_filter(api, b2b_raw_config, utils): """ configure two flows f1 and f2 - Send 1000 packets from f1 of size 74B - Send 2000 packets from f2 of size 1500B Validation: 1) Get port statistics based on port name & column names and assert each port & column has returned the values and assert them against packets and frame size sent 2) Get flow statistics based on flow name & column names and assert each flow & column has returned the values and assert them against packets and frame size sent """ api.set_config(api.config()) f1_packets = 1000 f2_packets = 2000 f1_size = 74 f2_size = 1500 port1, port2 = b2b_raw_config.ports flows = b2b_raw_config.flows flow1, flow2 = flows.flow() flow1.name = "flow1" flow2.name = "flow2" flow1.duration.fixed_packets.packets = f1_packets flow1.size.fixed = f1_size flow1.rate.percentage = 10 flow2.tx_rx.port.tx_name = port1.name flow2.tx_rx.port.rx_name = port2.name flow2.duration.fixed_packets.packets = f2_packets flow2.size.fixed = f2_size flow2.rate.percentage = 10 flow1.metrics.enable = True flow1.metrics.loss = True flow2.metrics.enable = True flow2.metrics.loss = True utils.start_traffic(api, b2b_raw_config, start_capture=False) utils.wait_for(lambda: utils.is_traffic_stopped(api), "traffic to stop") utils.wait_for( lambda: utils.is_stats_accumulated(api, f1_packets + f2_packets), "stats to be accumulated", ) # Validation on Port statistics based on port names port_names = ["raw_tx", "raw_rx"] for port_name in port_names: req = api.metrics_request() req.port.port_names = [port_name] port_results = api.get_metrics(req).port_metrics # port_results = api.get_port_results(result.PortRequest( # port_names=[port_name])) validate_port_stats_based_on_port_name(port_results, port_name) # Validation on Port statistics based on column names column_names = ["frames_tx", "frames_rx", "bytes_tx", "bytes_rx"] for column_name in column_names: req = api.metrics_request() req.port.column_names = ["name", column_name] port_results = api.get_metrics(req).port_metrics # port_results = api.get_port_results(result.PortRequest( # column_names=['name', # column_name])) validate_port_stats_based_on_column_name( port_results, column_name, f1_packets, f2_packets, f1_size, f2_size ) # Validation on Flow statistics based on flow names flow_names = ["flow1", "flow2"] for flow_name in flow_names: req = api.metrics_request() req.flow.flow_names = [flow_name] req.flow.metric_names = ["name"] flow_results = api.get_metrics(req).flow_metrics # flow_results = api.get_flow_results(result.FlowRequest( # flow_names=[flow_name], # column_names=['name'])) validate_flow_stats_based_on_flow_name(flow_results, flow_name) # Validation on Flow statistics based on metric names metric_names = ["frames_tx", "frames_rx", "bytes_rx"] for metric_name in metric_names: req = api.metrics_request() req.flow.metric_names = ["name", column_name] flow_results = api.get_metrics(req).flow_metrics # flow_results = api.get_flow_results(result.FlowRequest( # column_names=['name', # column_name])) validate_flow_stats_based_on_metric_name( flow_results, metric_name, f1_packets, f2_packets, f1_size, f2_size ) def validate_port_stats_based_on_port_name(port_results, port_name): """ Validate stats based on port_names """ for row in port_results: assert row.name == port_name def validate_port_stats_based_on_column_name( port_results, column_name, f1_packets, f2_packets, f1_size, f2_size ): """ Validate Port stats based on column_names """ total_bytes = (f1_packets * f1_size) + (f2_packets * f2_size) total_packets = f1_packets + f2_packets for row in port_results: if row.name == "raw_tx": if column_name == "frames_tx": assert getattr(row, column_name) == total_packets elif column_name == "bytes_tx": assert getattr(row, column_name) == total_bytes elif row.name == "raw_rx": if column_name == "frames_rx": assert getattr(row, column_name) == total_packets elif column_name == "bytes_rx": assert getattr(row, column_name) == total_bytes def validate_flow_stats_based_on_flow_name(flow_results, flow_name): """ Validate Flow stats based on flow_names """ for row in flow_results: assert row.name == flow_name def validate_flow_stats_based_on_metric_name( flow_results, metric_name, f1_packets, f2_packets, f1_size, f2_size ): """ Validate Flow stats based on metric_names """ for row in flow_results: if row.name == "f1": if metric_name == "frames_tx": assert getattr(row, metric_name) == f1_packets elif metric_name == "frames_rx": assert getattr(row, metric_name) == f1_packets elif metric_name == "bytes_rx": assert getattr(row, metric_name) == f1_packets * f1_size elif row.name == "f2": if metric_name == "frames_tx": assert getattr(row, metric_name) == f2_packets elif metric_name == "frames_rx": assert getattr(row, metric_name) == f2_packets elif metric_name == "bytes_rx": assert getattr(row, metric_name) == f2_packets * f2_size
# Readable: can read during runtime/compile time # Writeable: can write during runtime and compile time """ ============ | Tuple | ============ Readable Not writeable: - cannot modify value, add or remove an element during the runtime. """ fooTuple = ("fooTupleItem", True, 123); anotherTuple = tuple(("anotherTupleItem", False, 456)); print(fooTuple) print(anotherTuple) print ("==================================="); # Accessing an element based on given index # List index starts at 0. print(fooTuple[1]); # print the second element print(anotherTuple[0]); # print the first element print ("==================================="); print("New modified tuple: "); print(fooTuple);
cor = { 'fim':'\033[m', 'amarelo':'\033[1;033m', 'amarelof':'\033[7;033m', 'vermelho':'\033[1;031m', 'vermelhof':'\033[7;031m', 'azul':'\033[1;034m', 'verde':'\033[1;32m', 'verdef':'\033[7;32m', 'branco':'\033[1;030m' } primo = int(input('\nInsira um{} NÙMERO INTEIRO {}: '.format(cor['amarelo'], cor['fim']))) if primo < 2: print('\t{} NÃO É PRIMO {}'.format(cor['vermelhof'], cor['fim'])) elif primo / 2 == 1: print('\t{} É PRIMO {}'.format(cor['verdef'], cor['fim'])) elif primo / 1 == primo and primo / primo == 1 and primo % 2 != 0: print('\t{} É PRIMO {}'.format(cor['verdef'], cor['fim'])) else: print('\t{} NÃO É PRIMO {}'.format(cor['vermelhof'], cor['fim']))
""" Common constants. """ ALPH = list('abcdefghijklmnopqrstuvwxyz')
# mock.py # Metadata NAME = 'mock' ENABLE = True PATTERN = r'^!mock (?P<phrase>.*)' USAGE = '''Usage: !mock <phrase> Given a phrase, this translates the phrase into a mocking spongebob phrase. Example: > !mock it should work on slack and irc iT ShOuLd wOrK On sLaCk aNd iRc ''' # Command async def mock(bot, message, phrase): phrase = phrase.lower().rstrip() response = '' for count, letter in enumerate(phrase): if count % 2: letter = letter.upper() response += letter return message.with_body(response) # Register def register(bot): return ( ('command', PATTERN, mock), ) # vim: set sts=4 sw=4 ts=8 expandtab ft=python:
""" To sum in a sorted array Given: l: a list of sorted arrays s: integer find unique pair of items in the list l where sum is 's' Problems: 1. Not working when there is a duplicate item is the list - [2, 3, 5, 4, 2, 1, 0] """ def two_sum_sorted_array(l, sum): l.sort() print(l) a = 0 z = len(l)-1 while a < z: sum = l[a] + l[z] if sum == s: print(l[a], l[z]) a = a + 1 z = z - 1 elif sum > s: z = z-1 else: a = a + 1 if __name__ == '__main__': l = [2, 3, 5, 4, 2, 1, 0] s = 4 two_sum_sorted_array(l, s)
# Check For Vowel in a sentence.... s = input("Enter String: ") s = s.lower() f = 0 for i in range(0, len(s)): if(s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or s[i] == 'o' or s[i] == 'u'): f = 2 break else: f = 1 if f > 1: print("Yes, Present") else: print("No, Not Present")
"""Provides python helper functions.""" load("@pydeps//:requirements.bzl", _requirement = "requirement") def filter_deps(deps = None): if deps == None: deps = [] return [dep for dep in deps if dep] def py_library(deps = None, **kwargs): return native.py_library(deps = filter_deps(deps), **kwargs) def py_test(deps = None, **kwargs): return native.py_test(deps = filter_deps(deps), **kwargs) def requirement(name, direct = True): """ requirement returns the required dependency. """ return _requirement(name)
class Crawler: """ This class handles the calling of the scraper. """ def __init__(self) -> None: pass
""" Generators Expression WE studied: - List Comprehension - Dictionary Comprehension - Set Comprehension Not use: - Tuple Comprehension => because call Generators # List Comprehension names = ['Carlos', 'Camila', 'Carla', 'Cassino', 'Cristina', 'Vanessa'] print(any([name[0] == 'C' for name in names])) # True # Generator => Less resource of memory computer names = ['Carlos', 'Camila', 'Carla', 'Cassino', 'Cristina', 'Vanessa'] print(any((name[0] == 'C' for name in names))) # True # List Comprehension result = [name[0] == 'C' for name in names] print(type(result)) # <class 'list'> print(result) # [True, True, True, True, True, False] # Generator => Less resource of memory computer result = (name[0] == 'C' for name in names) print(type(result)) # <class 'generator'> print(result) # print(result) # # import sys # getsizeof => quantity of size in byte at memory from sys import getsizeof print(getsizeof('Yumi')) # 53 print(getsizeof('Yumi Ouchi')) # 59 print(getsizeof(9)) # 28 print(getsizeof(91)) # 28 print(getsizeof(1234123412)) # 32 print(getsizeof(True)) # 28 list_comp = getsizeof([x * 10 for x in range(1000)]) set_comp = getsizeof({x * 10 for x in range(1000)}) dict_comp = getsizeof({x:x * 10 for x in range(1000)}) gen_comp = getsizeof(x * 10 for x in range(1000)) print("Memory:") print(f'List Comprehension: {list_comp}') # 9024 print(f'Set Comprehension: {set_comp}') # 32992 print(f'Dictionary Comprehension: {dict_comp}') # 36968 print(f'Generator: {gen_comp}') # 88 """ gen_comp = (x * 10 for x in range(1000)) print(gen_comp) # <generator object <genexpr> at 0x000001484F2CFD58> print(type(gen_comp)) # <class 'generator'> for number in gen_comp: print(number)
# Given a 2D grid, each cell is either a wall 'W', # an enemy 'E' or empty '0' (the number zero), # return the maximum enemies you can kill using one bomb. # The bomb kills all the enemies in the same row and column from # the planted point until it hits the wall since the wall is too strong # to be destroyed. # Note that you can only put the bomb at an empty cell. # Example: # For the given grid # 0 E 0 0 # E 0 W E # 0 E 0 0 # return 3. (Placing a bomb at (1,1) kills 3 enemies) def max_killed_enemies(grid): if not grid: return 0 m, n = len(grid), len(grid[0]) max_killed = 0 row_e, col_e = 0, [0] * n for i in range(m): for j in range(n): if j == 0 or grid[i][j-1] == 'W': row_e = row_kills(grid, i, j) if i == 0 or grid[i-1][j] == 'W': col_e[j] = col_kills(grid, i, j) if grid[i][j] == '0': max_killed = max(max_killed, row_e + col_e[j]) return max_killed # calculate killed enemies for row i from column j def row_kills(grid, i, j): num = 0 while j < len(grid[0]) and grid[i][j] != 'W': if grid[i][j] == 'E': num += 1 j += 1 return num # calculate killed enemies for column j from row i def col_kills(grid, i, j): num = 0 while i < len(grid) and grid[i][j] != 'W': if grid[i][j] == 'E': num += 1 i += 1 return num grid = [ ["0", "E", "0", "E"], ["E", "E", "E", "0"], ["E", "0", "W", "E"], ["0", "E", "0", "0"]] print(grid) print(max_killed_enemies(grid))
def insertion_sort(arr): isSorted = None while not isSorted: isSorted = True for x,val in enumerate(arr): try: if val>arr[x+1]: temp = arr[x] arr[x] = arr[x+1] arr[x+1] = temp isSorted = False except IndexError: x-=1 return arr print(insertion_sort([5,3,1,2,10,5,7,4,5])) print(insertion_sort([1,2,3])) print(insertion_sort([3,2,1,4,4,4,10,1000]))
# # Copyright © 2022 Christos Pavlatos, George Rassias, Christos Andrikos, # Evangelos Makris, Aggelos Kolaitis # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the “Software”), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies # of the Software, and to permit persons to whom the Software is furnished to do # so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # class BaseParser: """ Base RNA parser class. Defines the interface for using the RNA parser, and common configuration options for all parsers. Parser implementations are expected to read and respect these configurations. Implementations should """ def __init__( self, max_dd_size: int = 2, allow_ug: bool = False, min_dd_size: int = 0, max_window_size: int = 100, min_window_size: int = 6, max_window_size_ratio: float = 0, min_window_size_ratio: float = 0, ): self.allow_ug = allow_ug self.max_dd_size = max_dd_size self.min_dd_size = min_dd_size self.max_window_size = max_window_size self.min_window_size = min_window_size self.max_window_size_ratio = max_window_size_ratio self.min_window_size_ratio = min_window_size_ratio def detect_pseudoknots(self, sequence: str) -> list: """ Return a list of pseudoknots for the given RNA sequence (and any subsequences). The format should be: [ "<left1>,<size1>,<left_loop_size1>,<dd_size1>", "<left2>,<size2>,<left_loop_size2>,<dd_size2>", ... ] """ raise NotImplementedError
# -*- coding: utf-8 -*- def main(): a, b = map(int, input().split()) a -= 1 b -= 1 n = 100 grid = [['.'] * n for _ in range(n // 2)] for _ in range(n // 2): grid.append(['#'] * n) print(n, n) for i in range(0, n // 2, 2): for j in range(0, n, 2): if b > 0: grid[i][j] = '#' b -= 1 else: break for i in range(51, n, 2): for j in range(0, n, 2): if a > 0: grid[i][j] = '.' a -= 1 else: break for g in grid: print(''.join(map(str, g))) if __name__ == '__main__': main()
# Constant values IS_COLD_START = True WARM_ACTION_INDENTIFIER = 'warm_up' DEFAULT_WARM_METHOD = 'sleep'
def test_endpoint_with_var2(client): response = client.get("/items2/2") assert response.status_code == 200 assert response.json() == {"item_id": 2}
EXAMPLES = { 'Example 1 - Swedish': 'Glochidion gaudichaudii är en emblikaväxtart som först beskrevs av Johannes Müller Argoviensis , och fick sitt nu gällande namn av Jacob Gijsbert Boerlage . Glochidion gaudichaudii ingår i släktet Glochidion och familjen emblikaväxter . Inga underarter finns listade i Catalogue of Life .', 'Example 2 - Ossetian': 'Рагон англисаг æвзаг ( англ . Old English , рагон англ . Englisc sprǣc ) у англисаг æвзаджы фыццагон формæ Англисы æмæ хуссар Шотландийы XII æнусмæ хæлиугонд . Рагон англисаг æвзаг у ныгуылæн гермайнаг æвзаг .', 'Example 3 - Tuvan': 'Черниң болгаш өске - даа планеталарның тыптып келгениниң дугайында эң - не баштайгы эртем - шинчилел ажылдарын 1755 чылда немец философ И . Кант кылган . Ол - ла үеде француз эртемден Лапластың кылган түңнелдери Кантыныы - биле дүгжүп турар . Кант биле Лаплас - Хүн Черге дөмейлешпес , тергиин изиг , хемчээл талазы - биле Черден хөй катап улуг , а Чер болза , Хүн системазының планетазының бирээзи болур деп тодаргайлааннар . Оон ыңай планета бүрүзү бодунуң орбитазы - биле Хүннү чаңгыс аай углуг дескинип турар , бойдуста бүгү - ле чүве үргүлчү өскерлип , хөгжүп , сайзырап турар деп түңнел үндүргеннер .', 'Example 4 - Malayalam': 'നൂഗാ . ( Nougat ) ഒരു മധുരപലഹാരം . പഞ്ചസാരയും തേനും വറുത്തെടുത്ത നട്സുകളും മുട്ടയുടെ വെള്ളയുമെല്ലാം ചേർത്ത് നിർമ്മിക്കുന്നതാണ് ഈ പലഹാരം . അണ്ടിപ്പരിപ്പ് , ബദാം , പിസ്ത , വാൽനട്ട് , ഹസെൽനട്സ് തുടങ്ങിയ വിവിധ നട്സുകൾ ഇതിനായി ഉപയോഗിക്കാറുണ്ട് . പഴങ്ങളുടെ കഷ്ണവും ഇതിനൊപ്പം ചേർക്കാറുണ്ട് . ചോക്ളേറ്റ് ബാറുകളായും സദ്യക്ക് ശേഷമുള്ള ഡെസേട്ടായും ഇത് ഉപയോഗിക്കാറുണ്ട് . സ്പെയിൻ , ഇറ്റലി എന്നിവിടങ്ങളിലെ പ്രാദേശിക ഭാഷയായ ഓസിറ്റാൻ ഭാഷയിലാണ് ഈ വാക്കുള്ളത് . ആൻഡ്രോയിഡിന്റെ പുതിയ പതിപ്പിന് ഈ പലഹാരത്തിന്റെ പേരാണ് നൽകിയിട്ടുള്ളത് .', 'Example 5 - Interlingue': 'Hó - témper , Ipce publica li electronic bulletine Ipce Newsletter e li revue Ipce Magazine . Li gruppe administra anc un website con un vast documental archive de scientific studies , libres e jornalistic articules pri li pedofilie e temas afin , quel include in plu un privat forum pri ti - ci classe de litteratura e pri li maniere de promotionar li academic debatte pri li pedofilie . Annualmen , Ipce celebra reuniones pro discusser pri questiones intern e altri temas , queles eveni in un land diferent chascun annu .'}
# -*- coding: utf-8 -*- API_TOKEN = "" DEFAULT_REPLY = "잘못된 명령어입니다. 고갱님" PLUGINS = [ 'eastbot.plugins.basic', 'eastbot.plugins.ethereum', 'eastbot.plugins.miner', ]
class SampleClass: @staticmethod def sample_method(a, b): return a + b
name = "S - Density Squares" description = "Trigger randomly placed squares" knob1 = "Square Size" knob2 = "Density" knob3 = "Line Width" knob4 = "Color" released = "March 21 2017"
''' Interface Genie Ops Object Outputs for IOSXR. ''' class InterfaceOutput(object): ShowInterfacesDetail = { 'GigabitEthernet0/0/0/0': { 'auto_negotiate': True, 'bandwidth': 768, 'counters': {'carrier_transitions': 0, 'drops': 0, 'in_abort': 0, 'in_broadcast_pkts': 0, 'in_crc_errors': 0, 'in_discards': 0, 'in_errors': 0, 'in_frame': 0, 'in_giants': 0, 'in_ignored': 0, 'in_multicast_pkts': 0, 'in_octets': 0, 'in_overrun': 0, 'in_parity': 0, 'in_pkts': 0, 'in_runts': 0, 'in_throttles': 0, 'last_clear': 'never', 'out_applique': 0, 'out_broadcast_pkts': 0, 'out_buffer_failures': 0, 'out_buffer_swapped_out': 0, 'out_discards': 0, 'out_errors': 0, 'out_multicast_pkts': 0, 'out_octets': 0, 'out_pkts': 0, 'out_resets': 0, 'out_underruns': 0, 'rate': {'in_rate': 0, 'in_rate_pkts': 0, 'load_interval': 30, 'out_rate': 0, 'out_rate_pkts': 0}}, 'description': 'desc', 'duplex_mode': 'full', 'enabled': False, 'encapsulations': {'encapsulation': 'ARPA'}, 'flow_control': {'flow_control_receive': False, 'flow_control_send': False}, 'interface_state': 0, 'ipv4': {'10.1.1.1/24': {'ip': '10.1.1.1', 'prefix_length': '24'}}, 'last_input': 'never', 'last_output': 'never', 'line_protocol': 'administratively down', 'location': 'unknown', 'loopback_status': 'not set', 'mac_address': 'aaaa.bbbb.cccc', 'mtu': 1600, 'phys_address': '5254.0077.9407', 'port_speed': '1000Mb/s', 'reliability': '255/255', 'rxload': '0/255', 'txload': '0/255', 'types': 'GigabitEthernet'}, 'GigabitEthernet0/0/0/0.10': { 'bandwidth': 768, 'counters': {'drops': 0, 'in_broadcast_pkts': 0, 'in_discards': 0, 'in_multicast_pkts': 0, 'in_octets': 0, 'in_pkts': 0, 'last_clear': 'never', 'out_broadcast_pkts': 0, 'out_discards': 0, 'out_multicast_pkts': 0, 'out_octets': 0, 'out_pkts': 0, 'rate': {'in_rate': 0, 'in_rate_pkts': 0, 'load_interval': 5, 'out_rate': 0, 'out_rate_pkts': 0}}, 'enabled': False, 'encapsulations': {'encapsulation': '802.1Q ' 'Virtual ' 'LAN', 'first_dot1q': '10', 'second_dot1q': '10'}, 'interface_state': 0, 'last_input': 'never', 'last_output': 'never', 'line_protocol': 'administratively down', 'loopback_status': 'not set', 'mtu': 1608, 'reliability': '255/255', 'rxload': '0/255', 'txload': '0/255'}, 'GigabitEthernet0/0/0/0.20': { 'bandwidth': 768, 'counters': {'drops': 0, 'in_broadcast_pkts': 0, 'in_discards': 0, 'in_multicast_pkts': 0, 'in_octets': 0, 'in_pkts': 0, 'last_clear': 'never', 'out_broadcast_pkts': 0, 'out_discards': 0, 'out_multicast_pkts': 0, 'out_octets': 0, 'out_pkts': 0, 'rate': {'in_rate': 0, 'in_rate_pkts': 0, 'load_interval': 5, 'out_rate': 0, 'out_rate_pkts': 0}}, 'enabled': False, 'encapsulations': {'encapsulation': '802.1Q ' 'Virtual ' 'LAN', 'first_dot1q': '20'}, 'interface_state': 0, 'last_input': 'never', 'last_output': 'never', 'line_protocol': 'administratively down', 'loopback_status': 'not set', 'mtu': 1604, 'reliability': '255/255', 'rxload': '0/255', 'txload': '0/255'}, 'MgmtEth0/0/CPU0/0': { 'auto_negotiate': True, 'bandwidth': 0, 'counters': {'carrier_transitions': 0, 'drops': 0, 'in_abort': 0, 'in_broadcast_pkts': 0, 'in_crc_errors': 0, 'in_discards': 0, 'in_errors': 0, 'in_frame': 0, 'in_giants': 0, 'in_ignored': 0, 'in_multicast_pkts': 0, 'in_octets': 0, 'in_overrun': 0, 'in_parity': 0, 'in_pkts': 0, 'in_runts': 0, 'in_throttles': 0, 'last_clear': 'never', 'out_applique': 0, 'out_broadcast_pkts': 0, 'out_buffer_failures': 0, 'out_buffer_swapped_out': 0, 'out_discards': 0, 'out_errors': 0, 'out_multicast_pkts': 0, 'out_octets': 0, 'out_pkts': 0, 'out_resets': 0, 'out_underruns': 0, 'rate': {'in_rate': 0, 'in_rate_pkts': 0, 'load_interval': 5, 'out_rate': 0, 'out_rate_pkts': 0}}, 'duplex_mode': 'duplex unknown', 'enabled': False, 'encapsulations': {'encapsulation': 'ARPA'}, 'flow_control': {'flow_control_receive': False, 'flow_control_send': False}, 'interface_state': 0, 'last_input': 'never', 'last_output': 'never', 'line_protocol': 'administratively down', 'location': 'unknown', 'loopback_status': 'not set', 'mac_address': '5254.00c3.6c43', 'mtu': 1514, 'phys_address': '5254.00c3.6c43', 'port_speed': '0Kb/s', 'reliability': '255/255', 'rxload': 'Unknown', 'txload': 'Unknown', 'types': 'Management Ethernet'}, 'Null0': { 'bandwidth': 0, 'counters': {'drops': 0, 'in_broadcast_pkts': 0, 'in_discards': 0, 'in_multicast_pkts': 0, 'in_octets': 0, 'in_pkts': 0, 'last_clear': 'never', 'out_broadcast_pkts': 0, 'out_discards': 0, 'out_multicast_pkts': 0, 'out_octets': 0, 'out_pkts': 0, 'rate': {'in_rate': 0, 'in_rate_pkts': 0, 'load_interval': 5, 'out_rate': 0, 'out_rate_pkts': 0}}, 'enabled': True, 'encapsulations': {'encapsulation': 'Null'}, 'last_input': 'never', 'last_output': 'never', 'line_protocol': 'up', 'loopback_status': 'not set', 'mtu': 1500, 'reliability': '255/255', 'rxload': 'Unknown', 'txload': 'Unknown', 'types': 'Null'} } ShowEthernetTags = { "GigabitEthernet0/0/0/0.10": { "rewrite_num_of_tags_push": 0, "status": "up", "rewrite_num_of_tags_pop": 1, "mtu": 1518, "outer_vlan": ".1Q:10", "vlan_id": "10" }, "GigabitEthernet0/0/0/0.20": { "rewrite_num_of_tags_push": 0, "status": "up", "rewrite_num_of_tags_pop": 1, "mtu": 1518, "outer_vlan": ".1Q:20", "vlan_id": "20" } } ShowIpv6VrfAllInterface = { 'GigabitEthernet0/0/0/0': { 'enabled': True, 'int_status': 'shutdown', 'ipv6': {'2001:db8:1:1::1/64': {'ipv6': '2001:db8:1:1::1', 'ipv6_prefix_length': '64', 'ipv6_status': 'tentative', 'ipv6_subnet': '2001:db8:1:1::'}, '2001:db8:2:2::2/64': {'ipv6': '2001:db8:2:2::2', 'ipv6_prefix_length': '64', 'ipv6_status': 'tentative', 'ipv6_subnet': '2001:db8:2:2::'}, '2001:db8:3:3:a8aa:bbff:febb:cccc/64': {'ipv6': '2001:db8:3:3:a8aa:bbff:febb:cccc', 'ipv6_eui64': True, 'ipv6_prefix_length': '64', 'ipv6_status': 'tentative', 'ipv6_subnet': '2001:db8:3:3::'}, '2001:db8:4:4::4/64': {'ipv6': '2001:db8:4:4::4', 'ipv6_prefix_length': '64', 'ipv6_route_tag': '10', 'ipv6_status': 'tentative', 'ipv6_subnet': '2001:db8:4:4::'}, 'auto_config_state': 'stateless', 'complete_glean_adj': '0', 'complete_protocol_adj': '0', 'dropped_glean_req': '0', 'dropped_protocol_req': '0', 'icmp_redirects': 'disabled', 'icmp_unreachables': 'enabled', 'in_access_list': 'not set', 'incomplete_glean_adj': '0', 'incomplete_protocol_adj': '0', 'ipv6_link_local': 'fe80::a8aa:bbff:febb:cccc', 'ipv6_link_local_state': 'tentative', 'ipv6_mtu': '1600', 'ipv6_mtu_available': '1586', 'nd_adv_retrans_int': '0', 'nd_cache_limit': '1000000000', 'nd_reachable_time': '0', 'out_access_list': 'not set', 'table_id': '0xe0800011'}, 'ipv6_enabled': False, 'oper_status': 'down', 'vrf': 'VRF1', 'vrf_id': '0x60000002'}, 'GigabitEthernet0/0/0/0.10': {'enabled': False, 'int_status': 'shutdown', 'ipv6_enabled': False, 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'}, 'GigabitEthernet0/0/0/0.20': {'enabled': False, 'int_status': 'shutdown', 'ipv6_enabled': False, 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'}, 'GigabitEthernet0/0/0/1': {'enabled': False, 'int_status': 'shutdown', 'ipv6_enabled': False, 'oper_status': 'down', 'vrf': 'VRF2', 'vrf_id': '0x60000003'}, 'GigabitEthernet0/0/0/2': {'enabled': False, 'int_status': 'shutdown', 'ipv6_enabled': False, 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'}, 'GigabitEthernet0/0/0/3': {'enabled': False, 'int_status': 'shutdown', 'ipv6_enabled': False, 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'}, 'GigabitEthernet0/0/0/4': {'enabled': False, 'int_status': 'shutdown', 'ipv6_enabled': False, 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'}, 'GigabitEthernet0/0/0/5': {'enabled': False, 'int_status': 'shutdown', 'ipv6_enabled': False, 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'}, 'GigabitEthernet0/0/0/6': {'enabled': False, 'int_status': 'shutdown', 'ipv6_enabled': False, 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'}, 'MgmtEth0/0/CPU0/0': {'enabled': False, 'int_status': 'shutdown', 'ipv6_enabled': False, 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'} } ShowIpv4VrfAllInterface = { 'GigabitEthernet0/0/0/0': { 'int_status': 'shutdown', 'ipv4': {'10.1.1.1/24': {'ip': '10.1.1.1', 'prefix_length': '24', 'route_tag': 50}, '10.2.2.2/24': {'arp': 'disabled', 'broadcast_forwarding': 'disabled', 'helper_address': 'not ' 'set', 'icmp_redirects': 'never ' 'sent', 'icmp_replies': 'never ' 'sent', 'icmp_unreachables': 'always ' 'sent', 'in_access_list': 'not ' 'set', 'ip': '10.2.2.2', 'mtu': 1600, 'mtu_available': 1586, 'out_access_list': 'not ' 'set', 'prefix_length': '24', 'secondary': True, 'table_id': '0xe0000011'}, 'unnumbered': {'unnumbered_int': '111.111.111.111/32', 'unnumbered_intf_ref': 'Loopback11'}}, 'oper_status': 'down', 'vrf': 'VRF1', 'vrf_id': '0x60000002'}, 'GigabitEthernet0/0/0/0.10': {'int_status': 'shutdown', 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'}, 'GigabitEthernet0/0/0/0.20': {'int_status': 'shutdown', 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'}, 'GigabitEthernet0/0/0/1': {'int_status': 'shutdown', 'oper_status': 'down', 'vrf': 'VRF2', 'vrf_id': '0x60000003'}, 'GigabitEthernet0/0/0/2': {'int_status': 'shutdown', 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'}, 'GigabitEthernet0/0/0/3': {'int_status': 'shutdown', 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'}, 'GigabitEthernet0/0/0/4': {'int_status': 'shutdown', 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'}, 'GigabitEthernet0/0/0/5': {'int_status': 'shutdown', 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'}, 'GigabitEthernet0/0/0/6': {'int_status': 'shutdown', 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'}, 'MgmtEth0/0/CPU0/0': {'int_status': 'shutdown', 'oper_status': 'down', 'vrf': 'default', 'vrf_id': '0x60000000'} } ShowVrfAllDetail = { "VRF1": { "description": "not set", "vrf_mode": "Regular", "address_family": { "ipv6 unicast": { "route_target": { "400:1": { "rt_type": "import", "route_target": "400:1" }, "300:1": { "rt_type": "import", "route_target": "300:1" }, "200:1": { "rt_type": "both", "route_target": "200:1" }, "200:2": { "rt_type": "import", "route_target": "200:2" } } }, "ipv4 unicast": { "route_target": { "400:1": { "rt_type": "import", "route_target": "400:1" }, "300:1": { "rt_type": "import", "route_target": "300:1" }, "200:1": { "rt_type": "both", "route_target": "200:1" }, "200:2": { "rt_type": "import", "route_target": "200:2" } } } }, "route_distinguisher": "200:1", "interfaces": [ "GigabitEthernet0/0/0/1" ] }, "VRF2": { "description": "not set", "vrf_mode": "Regular", "address_family": { "ipv6 unicast": { "route_target": { "200:2": { "rt_type": "both", "route_target": "200:2" } } }, "ipv4 unicast": { "route_target": { "200:2": { "rt_type": "both", "route_target": "200:2" } } } }, "route_distinguisher": "200:2", "interfaces": [ "GigabitEthernet0/0/0/2" ]} } ShowInterfacesAccounting = \ { "GigabitEthernet0/0/0/0": { "accounting": { "arp": { "chars_in": 378, "chars_out": 378, "pkts_in": 9, "pkts_out": 9 }, "ipv4_multicast": { "chars_in": 0, "chars_out": 843700, "pkts_in": 0, "pkts_out": 10514 }, "ipv4_unicast": { "chars_in": 1226852, "chars_out": 887519, "pkts_in": 19254, "pkts_out": 13117 } } }, "GigabitEthernet0/0/0/1": { "accounting": { "arp": { "chars_in": 378, "chars_out": 378, "pkts_in": 9, "pkts_out": 9 }, "ipv4_multicast": { "chars_in": 0, "chars_out": 844816, "pkts_in": 0, "pkts_out": 10530 }, "ipv4_unicast": { "chars_in": 843784, "chars_out": 1764, "pkts_in": 10539, "pkts_out": 26 } } } } InterfaceOpsOutput_info = { "Null0": { "mtu": 1500, "type": "Null", "enabled": True, "bandwidth": 0, "counters": { "in_octets": 0, "out_broadcast_pkts": 0, "out_pkts": 0, "in_discards": 0, "in_pkts": 0, "in_multicast_pkts": 0, "in_broadcast_pkts": 0, "rate": { "out_rate": 0, "out_rate_pkts": 0, "in_rate_pkts": 0, "load_interval": 5, "in_rate": 0 }, "last_clear": "never", "out_multicast_pkts": 0, "out_octets": 0 }, "encapsulation": { "encapsulation": "Null" }, }, "MgmtEth0/0/CPU0/0": { "mtu": 1514, "mac_address": "5254.00c3.6c43", "flow_control": { "flow_control_receive": False, "flow_control_send": False }, "type": "Management Ethernet", "enabled": False, "encapsulation": { "encapsulation": "ARPA" }, "auto_negotiate": True, "bandwidth": 0, "counters": { "out_broadcast_pkts": 0, "in_multicast_pkts": 0, "in_crc_errors": 0, "in_pkts": 0, "in_errors": 0, "in_broadcast_pkts": 0, "out_multicast_pkts": 0, "out_errors": 0, "in_octets": 0, "rate": { "out_rate": 0, "out_rate_pkts": 0, "in_rate_pkts": 0, "load_interval": 5, "in_rate": 0 }, "out_pkts": 0, "in_discards": 0, "last_clear": "never", "out_octets": 0 }, "duplex_mode": "duplex unknown", "port_speed": "0Kb/s", "phys_address": "5254.00c3.6c43", "ipv6": { "enabled": False } }, "GigabitEthernet0/0/0/5": { "ipv6": { "enabled": False } }, "GigabitEthernet0/0/0/4": { "ipv6": { "enabled": False } }, "GigabitEthernet0/0/0/0": { "mtu": 1600, "mac_address": "aaaa.bbbb.cccc", "description": "desc", "duplex_mode": "full", "type": "GigabitEthernet", "enabled": False, "encapsulation": { "encapsulation": "ARPA" }, "auto_negotiate": True, "ipv4": { "10.1.1.1/24": { "ip": "10.1.1.1", "prefix_length": "24", "route_tag": 50}, "10.2.2.2/24": { "ip": '10.2.2.2', 'prefix_length': '24', 'secondary': True}, "unnumbered": { "unnumbered_intf_ref": "Loopback11" } }, "bandwidth": 768, "accounting": { "arp": { "chars_in": 378, "chars_out": 378, "pkts_in": 9, "pkts_out": 9 }, "ipv4_multicast": { "chars_in": 0, "chars_out": 843700, "pkts_in": 0, "pkts_out": 10514 }, "ipv4_unicast": { "chars_in": 1226852, "chars_out": 887519, "pkts_in": 19254, "pkts_out": 13117 } }, "counters": { "out_broadcast_pkts": 0, "in_multicast_pkts": 0, "in_crc_errors": 0, "in_pkts": 0, "in_errors": 0, "in_broadcast_pkts": 0, "out_multicast_pkts": 0, "out_errors": 0, "in_octets": 0, "rate": { "out_rate": 0, "out_rate_pkts": 0, "in_rate_pkts": 0, "load_interval": 30, "in_rate": 0 }, "out_pkts": 0, "in_discards": 0, "last_clear": "never", "out_octets": 0 }, "flow_control": { "flow_control_receive": False, "flow_control_send": False }, "port_speed": "1000Mb/s", "phys_address": "5254.0077.9407", "ipv6": { "2001:db8:2:2::2/64": { "status": "tentative", "ip": "2001:db8:2:2::2", "prefix_length": "64" }, "2001:db8:1:1::1/64": { "status": "tentative", "ip": "2001:db8:1:1::1", "prefix_length": "64" }, "enabled": False, "2001:db8:4:4::4/64": { "status": "tentative", "route_tag": "10", "ip": "2001:db8:4:4::4", "prefix_length": "64" }, "2001:db8:3:3:a8aa:bbff:febb:cccc/64": { "status": "tentative", "ip": "2001:db8:3:3:a8aa:bbff:febb:cccc", "prefix_length": "64", "eui64": True } } }, "GigabitEthernet0/0/0/1": { "vrf": "VRF1", "ipv6": { "enabled": False }, "accounting": { "arp": { "chars_in": 378, "chars_out": 378, "pkts_in": 9, "pkts_out": 9 }, "ipv4_multicast": { "chars_in": 0, "chars_out": 844816, "pkts_in": 0, "pkts_out": 10530 }, "ipv4_unicast": { "chars_in": 843784, "chars_out": 1764, "pkts_in": 10539, "pkts_out": 26 } } }, "GigabitEthernet0/0/0/6": { "ipv6": { "enabled": False } }, "GigabitEthernet0/0/0/0.20": { "mtu": 1604, "counters": { "in_octets": 0, "out_broadcast_pkts": 0, "out_pkts": 0, "in_discards": 0, "in_pkts": 0, "in_multicast_pkts": 0, "in_broadcast_pkts": 0, "rate": { "out_rate": 0, "out_rate_pkts": 0, "in_rate_pkts": 0, "load_interval": 5, "in_rate": 0 }, "last_clear": "never", "out_multicast_pkts": 0, "out_octets": 0 }, "enabled": False, "bandwidth": 768, "vlan_id": '20', "encapsulation": { "encapsulation": "802.1Q Virtual LAN", "first_dot1q": "20" }, "ipv6": { "enabled": False } }, "GigabitEthernet0/0/0/2": { "vrf": "VRF2", "ipv6": { "enabled": False } }, "GigabitEthernet0/0/0/3": { "ipv6": { "enabled": False } }, "GigabitEthernet0/0/0/0.10": { "mtu": 1608, "counters": { "in_octets": 0, "out_broadcast_pkts": 0, "out_pkts": 0, "in_discards": 0, "in_pkts": 0, "in_multicast_pkts": 0, "in_broadcast_pkts": 0, "rate": { "out_rate": 0, "out_rate_pkts": 0, "in_rate_pkts": 0, "load_interval": 5, "in_rate": 0 }, "last_clear": "never", "out_multicast_pkts": 0, "out_octets": 0 }, "enabled": False, "bandwidth": 768, "vlan_id": '10', "encapsulation": { "encapsulation": "802.1Q Virtual LAN", "first_dot1q": "10", "second_dot1q": "10" }, "ipv6": { "enabled": False } } }
viagem = float(input('Quantos km é a vigem?')) custo1 = viagem * 0.50 custo2 = viagem * 0.45 if viagem <= 200.000: print('O custo da sua viagem será de R${:.2f}!'.format(custo1)) elif viagem >= 201.000: print('O custo da sua viagem será de R${}!'.format(custo2)) print('Boa viagem!')
# Least Recently Used Cache # # The LRU caching scheme remove the least recently used data when the cache is full and a new page is referenced which is not there in cache. # # We use two data structures to implement an LRU Cache: # - Double Linked List: The maximum size of the queue will be equal to the total number of frames available (cache size). The most recently used pages will be near front end and least recently pages will be near the rear end. # - HashMap: a Hash with page number as key and address of the corresponding queue node as value. # # When a page is referenced, the required page may be in the memory: # - If it is in the memory, we need to detach the node of the list and bring it to the front of the queue. # - If the required page is not in memory, we add a new node to the front of the queue and update the corresponding node address in the hash. # - If the queue is full, we remove a node from the rear of the queue, and add the new node to the front of the queue. class Node: '''Double Linked List node implemetation for handling LRU Cache data''' def __init__(self, key, value): self.value = value self.key = key self.prev = None self.next = None def __repr__(self): return f"Node({self.key}, {self.value})" def __str__(self): return f"Node({self.key}, {self.value})" class Deque: '''Deque implementation using Double Linked List, with a method to keep track of nodes access.''' def __init__(self): self.head = None self.tail = None self.num_elements = 0 def enqueue(self, new_node): '''Nodes are enqueued on tail (newtest pointer)''' if self.tail is None: self.tail = new_node self.head = self.tail else: self.tail.next = new_node new_node.prev = self.tail self.tail = new_node self.num_elements += 1 def dequeue(self): '''Nodes are dequeued on head (oldest poitner)''' if self.head is None: return None else: key = self.head.key self.head = self.head.next if self.head: self.head.prev = None self.num_elements -= 1 return key def access(self, node): '''An access should deque a random node and enqueue again''' if node is None or self.tail == node: # Base cases return if self.head == node: # If is the oldest, move the Head self.head = node.next self.head.prev = None else: # Otherwise, detach the node node.prev.next = node.next node.next.prev = node.prev # Link the node to the Tail self.tail.next = node node.prev = self.tail node.next = None # Move the Tail self.tail = node def size(self): return self.num_elements def to_list(self): output = list() node = self.head while node: node_tuple = tuple([node.key, node.value]) output.append(node_tuple) node = node.next return output def __repr__(self): if self.num_elements > 0: s = "(Oldest) : " node = self.head while node: s += str(node) if node.next is not None: s += ", " node = node.next s += " (Newest)" return s else: return "Deque: empty!" class LRU_Cache: '''LRU Cache data object implementation with O(1) time complexity''' def __init__(self, capacity: int): # Initialize class variables self.lru_dict = dict() self.lru_deque = Deque() self.capacity = capacity def get(self, key: int) -> int: # Retrieve item from provided key, using the hash map. Return -1 if nonexistent. if key in self.lru_dict: node = self.lru_dict[key] self.lru_deque.access(node) return node.value else: return -1 def put(self, key: int, value: int) -> None: # Set the value if the key is not present in the cache. If the cache is at capacity remove the oldest item. if key not in self.lru_dict: if self.capacity < 1: return -1 if self.lru_deque.size() >= self.capacity: # Quick access the oldest element by using the deque old_node = self.lru_deque.dequeue() del self.lru_dict[old_node] new_node = Node(key, value) self.lru_deque.enqueue(new_node) self.lru_dict[key] = new_node else: node = self.lru_dict[key] node.value = value self.lru_deque.access(node) def to_list(self): return self.lru_deque.to_list() def __repr__(self): if self.lru_deque.num_elements > 0: s = "LRU_Cache: (Oldest) : " node = self.lru_deque.head while node: s += str(node) if node.next is not None: s += ", " node = node.next s += " (Newest)" return s else: return "LRU_Cache: empty!" # Tests cases # Utility function def Test_LRU_Cache(test_name, op_list, val_list, result_list, is_debug = False): lru_cache = None out_list = [] print(f"{test_name:>25s}: ", end = '') # Use the operations for op, val, res in zip(op_list, val_list, result_list): out = None if op == "LRUCache": lru_cache = LRU_Cache(val[0]) elif op == "put": lru_cache.put(val[0], val[1]) elif op == "get": out = lru_cache.get(val[0]) out_list.append(out) if out != res: print(f"Fail: [LRU Cache content: {lru_cache.to_list()}, op: {op}, val: {val}, res: {res}") return if is_debug and op != "LRUCache": print(f" {op}({val}), dict: {len(lru_cache.lru_dict)}, deque: {lru_cache.lru_deque.size()}") print(f" dict: {lru_cache.lru_dict}") print(f" deque: {lru_cache.lru_deque}") print("Pass") # Check LRU_Cache print("\nTesting LRU Cache with access control\n") # Test Miss LRU access op_list = ["LRUCache","get"] val_list = [[5],[1]] result_list = [None,-1,] Test_LRU_Cache("Miss LRU access", op_list, val_list, result_list) # Test Exceed LRU capacity op_list = ["LRUCache","put","put","put","put","put","get","get"] val_list = [[3],[1,11],[2,22],[3,33],[4,44],[5,55],[2],[3]] result_list = [None,None,None,None,None,None,-1,33] Test_LRU_Cache("Exceed LRU capacity", op_list, val_list, result_list) # Test Access central element op_list = ["LRUCache","put","put","put","put","put","get"] val_list = [[5],[1,11],[2,22],[3,33],[4,44],[5,55],[3]] result_list = [None,None,None,None,None,None,33] Test_LRU_Cache("Access central element", op_list, val_list, result_list) # Test Access last element op_list = ["LRUCache","put","put","put","put","put","get"] val_list = [[5],[1,11],[2,22],[3,33],[4,44],[5,55],[5]] result_list = [None,None,None,None,None,None,55] Test_LRU_Cache("Access last element", op_list, val_list, result_list) # Test Access first element op_list = ["LRUCache","put","put","put","put","put","get"] val_list = [[5],[1,11],[2,22],[3,33],[4,44],[5,55],[1]] result_list = [None,None,None,None,None,None,11] Test_LRU_Cache("Access first element", op_list, val_list, result_list) # Test for updating value op_list = ["LRUCache","put","get","put","get"] val_list = [[5],[1,1],[2],[1,11111],[1]] result_list = [None,None,-1,None,11111] Test_LRU_Cache("Updating value", op_list, val_list, result_list) # Test for zero capacity op_list = ["LRUCache","put","get"] val_list = [[0],[1,1],[1]] result_list = [None,None,-1] Test_LRU_Cache("Zero capacity", op_list, val_list, result_list) # Test Update 2 op_list = ["LRUCache","put","put","put","get","put","get","put","get","get","get","get"] val_list = [[2],[1,1],[2,2],[2,3],[2],[3,3],[2],[4,4],[1],[2],[3],[4]] result_list = [None,None,None,None,3,None,3,None,-1,3,-1,4] Test_LRU_Cache("Update 2", op_list, val_list, result_list) # Test One element Deque add op_list = ["LRUCache","put","get","put","get","get"] val_list = [[1],[2,1],[2],[3,2],[2],[3]] result_list = [None,None,1,None,-1,2] Test_LRU_Cache("One element Deque add", op_list, val_list, result_list) # Test Update and get op_list = ["LRUCache","put","put","put","put","get","get"] val_list = [[2],[2,1],[1,1],[2,3],[4,1],[1],[2]] result_list = [None, None, None, None, None, -1, 3] Test_LRU_Cache("Update and get", op_list, val_list, result_list) # Test Long list op_list = ["LRUCache","put","put","put","put","put","get","put","get","get","put","get","put","put","put","get","put","get","get","get","get","put","put","get","get","get","put","put","get","put","get","put","get","get","get","put","put","put","get","put","get","get","put","put","get","put","put","put","put","get","put","put","get","put","put","get","put","put","put","put","put","get","put","put","get","put","get","get","get","put","get","get","put","put","put","put","get","put","put","put","put","get","get","get","put","put","put","get","put","put","put","get","put","put","put","get","get","get","put","put","put","put","get","put","put","put","put","put","put","put"] val_list = [[10],[10,13],[3,17],[6,11],[10,5],[9,10],[13],[2,19],[2],[3],[5,25],[8],[9,22],[5,5],[1,30],[11],[9,12],[7],[5],[8],[9],[4,30],[9,3],[9],[10],[10],[6,14],[3,1],[3],[10,11],[8],[2,14],[1],[5],[4],[11,4],[12,24],[5,18],[13],[7,23],[8],[12],[3,27],[2,12],[5],[2,9],[13,4],[8,18],[1,7],[6],[9,29],[8,21],[5],[6,30],[1,12],[10],[4,15],[7,22],[11,26],[8,17],[9,29],[5],[3,4],[11,30],[12],[4,29],[3],[9],[6],[3,4],[1],[10],[3,29],[10,28],[1,20],[11,13],[3],[3,12],[3,8],[10,9],[3,26],[8],[7],[5],[13,17],[2,27],[11,15],[12],[9,19],[2,15],[3,16],[1],[12,17],[9,1],[6,19],[4],[5],[5],[8,1],[11,7],[5,2],[9,28],[1],[2,2],[7,4],[4,22],[7,24],[9,26],[13,28],[11,26]] result_list = [None, None, None, None, None, None, -1, None, 19, 17, None, -1, None, None, None, -1, None, -1, 5, -1, 12, None, None, 3, 5, 5, None, None, 1, None, -1, None, 30, 5, 30, None, None, None, -1, None, -1, 24, None, None, 18, None, None, None, None, -1, None, None, 18, None, None, -1, None, None, None, None, None, 18, None, None, -1, None, 4, 29, 30, None, 12, -1, None, None, None, None, 29, None, None, None, None, 17, 22, 18, None, None, None, -1, None, None, None, 20, None, None, None, -1, 18, 18, None, None, None, None, 20, None, None, None, None, None, None, None] Test_LRU_Cache("Long list", op_list, val_list, result_list)
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created by shimeng on 17-8-17 # 爬虫名称 spider_name = 'get_ip' # 日志设置 log_folder_name = '%s_logs' % spider_name delete_existed_logs = True # 请求参数设置 thread_num = 50 sleep_time = 0.5 retry_times = 10 time_out = 5 # 当use_proxy为True时,必须在请求的args中或者在配置文件中定义ip, eg: ip="120.52.72.58:80", 否则程序将报错 use_proxy = False ip = None # 移动端设置为 ua_type = 'mobile' ua_type = 'pc' # 队列顺序 FIFO = 0 # 默认提供的浏览器头包括user_agent host, 若需要更丰富的header,可自行定定义新的header,并赋值给diy_header diy_header = None # 定义状态码,不在其中的均视为请求错误或异常 status_code = [200, 304, 404] # 保存设置 # 当你定义好了host,port,database_name之后再将connect改为True connect = True host = 'localhost' port = 27017 database_name = 'free_ip'
# Tuenti Challenge Edition 8 Level 10 PROBLEM_SIZE = "submit" # -- jam input/output ------------------------------------------------------- # def parse_problems(lines): """ Given a list of lines, parses them and returns a list of problems. """ i = 0 res = [] while i < len(lines): P, G = map(int, lines[i].split()) grudges = [tuple(map(int, lines[i + n + 1].split())) for n in range(G)] i += G + 1 res.append((P, grudges)) return res def solve_all(): """ Process each test case and generate the output file. """ res = "" with open("%s.in" % PROBLEM_SIZE, "r", encoding="utf-8") as fp: lines = fp.read().strip().split("\n")[1:] problems = parse_problems(lines) for case, problem in enumerate(problems, 1): print("Solving Case #%s" % case) sol = solve(*problem) print(">> %s" % sol) res += "Case #%s: %s\n" % (case, sol) with open("%s.out" % PROBLEM_SIZE, "w", encoding="utf-8") as fp: fp.write(res[:-1]) # -- problem specific functions --------------------------------------------- # def solve(P, grudges): grudges = tuple(sorted(tuple(sorted(g)) for g in grudges if abs(g[0] - g[1]) % 2)) print(P, len(grudges)) if P % 2: return 0 return ways(P, grudges) % (10**9 + 7) _ways_mem = {} def ways(P, grudges): if (P, grudges) in _ways_mem: return _ways_mem[(P, grudges)] elif P == 0: res = 1 elif len(grudges) == 0: res = catalan(P / 2) else: res = 0 for n in range(1, P, 2): if (0, n) not in grudges: gs1 = tuple((c1 - 1, c2 - 1) for c1, c2 in grudges if c1 >= 1 and c2 <= n - 1) gs2 = tuple((c1 - n - 1, c2 - n - 1) for c1, c2 in grudges if c1 >= n + 1) res += ways(n - 1, gs1) * ways(P - n - 1, gs2) _ways_mem[(P, grudges)] = res return res _catalan_mem = {} def catalan(n): if n in _catalan_mem: return _catalan_mem[n] if n <= 1: res = 1 else: res = 0 for i in range(int(n)): res += catalan(i) * catalan(n - i - 1) _catalan_mem[n] = res return res # -- entrypoint ------------------------------------------------------------- # if __name__ == "__main__": solve_all() # print(solve(100, [(50,51)]))
#python 3.5.2 ''' With the Remained Methods first you count the number of elements you what to store. So the length of the array will eaual the number of elements you want so each element will have place to be stored. When you do the divide by array length the remainer will always to equal or less than the number of element in the array. The folding method for constructing hash functions begins by dividing the item into equal-size pieces (the last piece may not be of equal size). These pieces are then added together to give the resulting hash value. For example, if our item was the phone number 436-555-4601, we would take the digits and divide them into groups of 2 (43,65,55,46,01). After the addition, 43+65+55+46+01, we get 210. If we assume our hash table has 11 slots, then we need to perform the extra step of dividing by 11 and keeping the remainder. In this case 210 % 11 is 1, so the phone number 436-555-4601 hashes to slot 1. Some folding methods go one step further and reverse every other piece before the addition. For the above example, we get 43+56+55+64+01=219 which gives 219 % 11=10. ''' def convertPhoneNo(phoneNo): firstNo = int(phoneNo[0])*10 + int(phoneNo[1]) secondNo = int(phoneNo[2])*10 + int(phoneNo[4]) thirdNo = int(phoneNo[5])*10 + int(phoneNo[6]) fourthNo = int(phoneNo[8])*10 + int(phoneNo[9]) fifthNo = int(phoneNo[10])*10 + int(phoneNo[11]) result =firstNo+secondNo+thirdNo+fourthNo+fifthNo print( phoneNo ," = ", result ) return result def hash( length ): def remainderMethod(phoneNo): element = convertPhoneNo(phoneNo) print( element , ' % ', length, ' = ', element % length) return element % length return remainderMethod def insertHash( elementList ): resultsList = [None] * len( elementList ) func = hash( len( elementList ) ) for element in elementList: index = func(element) while resultsList [ index ] != None: print('Collision Index: ' , index) #if we at the last element in array go to first element in array if index == len( elementList ) -1: index = 0 else: index = index +1 resultsList[index] = element print( 'Insert Index: ', index) print( resultsList ) print( '-'*20 ) print( '-'*20 ) return resultsList print ( insertHash( ['436-555-4601','436-555-4600','436-555-4611','436-555-4621','436-555-4634'] ) ) ''' OUTPUT: 436-555-4601 = 210 210 % 5 = 0 Insert Index: 0 ['436-555-4601', None, None, None, None] -------------------- 436-555-4600 = 209 209 % 5 = 4 Insert Index: 4 ['436-555-4601', None, None, None, '436-555-4600'] -------------------- 436-555-4611 = 220 220 % 5 = 0 Collision Index: 0 Insert Index: 1 ['436-555-4601', '436-555-4611', None, None, '436-555-4600'] -------------------- 436-555-4621 = 230 230 % 5 = 0 Collision Index: 0 Collision Index: 1 Insert Index: 2 ['436-555-4601', '436-555-4611', '436-555-4621', None, '436-555-4600'] -------------------- 436-555-4634 = 243 243 % 5 = 3 Insert Index: 3 ['436-555-4601', '436-555-4611', '436-555-4621', '436-555-4634', '436-555-4600'] -------------------- -------------------- ['436-555-4601', '436-555-4611', '436-555-4621', '436-555-4634', '436-555-4600'] '''
class Solution: def minWindow(self, s: str, t: str) -> str: """ s = "ADOBECODEBANC", t = "ABC" t count = 3 ^ ^ 010 s count = 0 Time O(N+M) Space O(M) """ counts = collections.Counter(t) counter = len(t) min_size = float("inf") min_start, min_end = 0, -1 start, end = 0, 0 while end < len(s): end_char = s[end] if end_char in counts: counts[end_char] -= 1 if counts[end_char] >= 0: counter -= 1 while counter == 0: if end - start + 1 < min_size: min_start, min_end = start, end min_size = end - start + 1 start_char = s[start] if start_char in counts: counts[start_char] += 1 if counts[start_char] > 0: counter += 1 start += 1 end += 1 return s[min_start:min_end+1]
"""color methods""" def color(r, g, b): assert 256 > r > -1, "expected integer in range 0-255" assert 256 > g > -1, "expected integer in range 0-255" assert 256 > b > -1, "expected integer in range 0-255" return '#%02x%02x%02x' % (r, g, b) def color_to_rgb(html_color): if len(html_color) == 7 and html_color[0] == '#': try: return ( int(html_color[1:3], 16), int(html_color[3:5], 16), int(html_color[5:7], 16) ) except: pass raise ValueError('invalid html color: %s' % color) _B_SAVE = (0, 0x33, 0x66, 0xcc, 0xff) _B_SAVE2 = (0x19, 0x33, 0x66, 0x7f) def is_browser_save(color): r, g, b = color_to_rgb(color) return r in _B_SAVE and g in _B_SAVE and b in _B_SAVE def make_browser_save(html_color): def make_save(ushort): if ushort <= _B_SAVE2[0]: return _B_SAVE[0] if ushort <= _B_SAVE2[1]: return _B_SAVE[1] if ushort <= _B_SAVE2[2]: return _B_SAVE[2] if ushort <= _B_SAVE2[3]: return _B_SAVE[3] return _B_SAVE[4] r, g, b = color_to_rgb(html_color) return color(make_save(r), make_save(g), make_save(b))
def secti(a, b): return a + b if __name__ == '__main__': print(secti(1, 2)) # https://stackoverflow.com/questions/419163/what-does-if-name-main-do
weights_path = './weights' #pre trained model name_model = 'model_unet' #directory where read noisy sound to denoise audio_dir_prediction = './mypredictions/input/' #directory to save the denoise sound dir_save_prediction = './mypredictions/output/' #Name noisy sound file to denoise #audio_input_prediction = args.audio_input_prediction #Name of denoised sound file to save #audio_output_prediction = args.audio_output_prediction # Sample rate to read audio sample_rate = 8000 # Minimum duration of audio files to consider min_duration = 1.0 #Frame length for training data frame_length = 8064 # hop length for sound files hop_length_frame = 8064 #nb of points for fft(for spectrogram computation) n_fft = 255 #hop length for fft hop_length_fft = 63
BOT_NAME = 'books_images' SPIDER_MODULES = ['books_images.spiders'] NEWSPIDER_MODULE = 'books_images.spiders' ROBOTSTXT_OBEY = True ITEM_PIPELINES = { 'books_images.pipelines.BooksImagesPipeline': 1 } FILES_STORE = r'downloaded' # Change this to your path DOWNLOAD_DELAY = 2 # Change to 0 for fastest crawl
print('Valida e corrige número de telefone') numero = int(input('Telefone: ')) novoNumero = '' if len(str(numero)) < 8: diferenca = 8 - len(str(numero)) novoNumero = '3' * diferenca numeroFormatado = novoNumero + str(numero) numeroFormatado = numeroFormatado[0:4] + '-' + numeroFormatado[5:] print('Telefone possui %d dígitos. Vou acrescentar o digito três na frente.' % len(str(numero))) print('Telefone corrigido sem formatação: %d' % numero) print('Telefone corrigido com formatação: %s' % numeroFormatado)
""" Test uygulaması = uygulama01 NİHAT FURKAN ÇİFTÇİ 31/03/2019 """ print("~~~~Kolay Matematik Testi~~~~") print("Lütfen size doğru gelen şıkkı yazarak cevaplayınız") sorular = ["4*4 A)16 B)8 C)12 = ", "3*3 A)13 B)9 C)15 =", "7*7 A)44 B)47 C)49 =", "9*9 A)81 B)88 C)78 =", "5*5 A)10 B)15 C)25 ="] cevaplar = ["A","B","C","A","C"] puan = 0 #soru1 cevap = input((sorular[0])) if cevaplar[0] == cevap.upper(): print("Tebrikler, doğru bildiniz!") puan +=1 else: print("Cevabınız yanlış!") #soru2 cevap = input((sorular[1])) if cevaplar[1] == cevap.upper(): print("Tebrikler, doğru bildiniz!") puan +=1 else: print("Cevabınız yanlış!") #soru3 cevap = input((sorular[2])) if cevaplar[2] == cevap.upper(): print("Tebrikler, doğru bildiniz!") puan +=1 else: print("Cevabınız yanlış!") #soru4 cevap = input((sorular[3])) if cevaplar[3] == cevap.upper(): print("Tebrikler, doğru bildiniz!") puan +=1 else: print("Cevabınız yanlış!") #soru5 cevap = input((sorular[4])) if cevaplar[4] == cevap.upper(): print("Tebrikler, doğru bildiniz!") puan +=1 print("Tebrikler sınavı tamamladınız!""puanınız :" + str(puan * 20)) else: print("Cevabınız yanlış!") print("Tebrikler sınavı tamamladınız!""puanınız :" + str(puan * 20)) sayı = input("Lütfen testimizi 1-10 arasında değerlendiriniz =") print("Vermiş olduğunuz puan",sayı,"anketimize katıldığınız için teşekkür ederiz")
#punto1 def triangulo(a,b): area = (b * a)/2 print(area) triangulo(30,50)
def threeSum(nums): """ :type nums: List[int] :rtype: List[List[int]] """ if len(nums)<3: return False found = [] n = len(nums) for i in range(0, n-2): for j in range(i+1, n-1): for k in range(j+1, n): if nums[i] + nums[j] + nums[k] == 0 and i != j : found.append([nums[i], nums[j], nums[k]]) """ O(n^3) """
area = float(input()) kgInM = float(input()) badGrape = float(input()) allGrape = area * kgInM restGrape = allGrape - badGrape rakia = restGrape * 45 / 100 sell = restGrape * 55 / 100 lRakia = (rakia / 7.5) * 9.80 lSell = sell * 1.5 print('%.2f' % lRakia) print('%.2f' % lSell)
inputFile = open("input/day7.txt", "r") inputLines = inputFile.readlines() listBagsWithoutShinyGold = [] listBagsWithShinyGold = [] listUncertain = [] def goldMiner(): for line in inputLines: splittedLine = line.split() bagColor = splittedLine[0] + splittedLine[1] childrenBags = [] if splittedLine[4] == "no" or bagColor == "shinygold": if bagColor not in listBagsWithoutShinyGold: listBagsWithoutShinyGold.append(bagColor) else: someChildrenBags = True counter = 5 while someChildrenBags: childrenBags.append(splittedLine[counter] + splittedLine[counter + 1]) if (splittedLine[counter + 2] == "bag.") or (splittedLine[counter + 2] == "bags."): someChildrenBags = False counter = counter + 4 if "shinygold" in childrenBags: if bagColor not in listBagsWithShinyGold: listBagsWithShinyGold.append(bagColor) else: # Look into every children to see if they can have the bag for childrenBag in childrenBags: if childrenBag in listBagsWithShinyGold: if bagColor not in listBagsWithShinyGold: listBagsWithShinyGold.append(bagColor) else: if bagColor not in listUncertain: listUncertain.append(bagColor) goldMiner() lastRunCount = 0 while lastRunCount != len(listBagsWithShinyGold): lastRunCount = len(listBagsWithShinyGold) goldMiner() print("Bags that can eventually contain one shiny gold bag {}".format(len(listBagsWithShinyGold))) def bagCounter(color): for line in inputLines: splittedLine = line.split() bagColor = splittedLine[0] + splittedLine[1] if bagColor == color: childrenBags = [] someChildrenBags = True counter = 4 while someChildrenBags: childrenBags.append((splittedLine[counter + 1] + splittedLine[counter + 2], int(splittedLine[counter]))) if (splittedLine[counter + 3] == "bag.") or (splittedLine[counter + 3] == "bags."): someChildrenBags = False counter = counter + 4 return childrenBags numberOfBags = 0 returnedBag = bagCounter("shinygold") for bag in returnedBag: numberOfBags = numberOfBags + bag[1] # Need to go down further print("Nested bags {}".format(numberOfBags)) inputFile.close()
# Given an integer array nums, find the contiguous subarray (containing at least one number) # which has the largest sum and return its sum. # Example: # Input: [-2,1,-3,4,-1,2,1,-5,4], # Output: 6 # Explanation: [4,-1,2,1] has the largest sum = 6. # Follow up: # If you have figured out the O(n) solution, try coding another solution # using the divide and conquer approach, which is more subtle. class Solution: def maxSubArray(self, nums): total_sum = max_sum = nums[0] for i in nums[1:]: total_sum = max(i, total_sum+i) max_sum = max(max_sum, total_sum) return max_sum if __name__ == "__main__": nums = [-2,1,-3,4,-1,2,1,-5,4] print(Solution().maxSubArray(nums))
def sum2(nums): if len(nums) >= 2 : return (nums[0] + nums[1]) elif len(nums) == 1 : return nums[0] else : return 0
#!/usr/bin/env python """ @package ion.agents.platform.util.network @file ion/agents/platform/util/network.py @author Carlos Rueda @brief Supporting elements for convenient representation of a platform network """ __author__ = 'Carlos Rueda' __license__ = 'Apache 2.0' class BaseNode(object): """ A convenient base class for the components of a platform network. """ def __init__(self): pass def diff(self, other): """ Returns None if this and the other object are the same. Otherwise, returns a message describing the first difference. """ raise NotImplementedError() # pragma: no cover class AttrNode(BaseNode): """ Represents a platform attribute. """ def __init__(self, attr_id, defn): """ OOIION-1551: First, get attr_name and attr_instance from the given attr_id (this is the preferred mechanism as it's expected to be of the form "<name>|<instance>") or from properties in defn, and resorting to the given attr_id for the name, and "0" for the instance. Finally, the store attr_id is composed from the name and instance as captured above. """ BaseNode.__init__(self) idx = attr_id.rfind('|') if idx >= 0: self._attr_name = attr_id[:idx] self._attr_instance = attr_id[idx + 1:] else: self._attr_name = defn.get('attr_name', attr_id) self._attr_instance = defn.get('attr_instance', "0") self._attr_id = "%s|%s" % (self._attr_name, self._attr_instance) defn['attr_id'] = self._attr_id self._defn = defn def __repr__(self): return "AttrNode{id=%s, defn=%s}" % (self.attr_id, self.defn) @property def attr_name(self): return self._attr_name @property def attr_instance(self): return self._attr_instance @property def attr_id(self): return self._attr_id @property def defn(self): return self._defn @property def writable(self): return self.defn.get('read_write', '').lower().find("write") >= 0 def diff(self, other): if self.attr_id != other.attr_id: return "Attribute IDs are different: %r != %r" % ( self.attr_id, other.attr_id) if self.defn != other.defn: return "Attribute definitions are different: %r != %r" % ( self.defn, other.defn) return None class PortNode(BaseNode): """ Represents a platform port. self._port_id self._instrument_ids = [ instrument_id, ... ] """ def __init__(self, port_id): BaseNode.__init__(self) self._port_id = str(port_id) self._instrument_ids = [] def __repr__(self): return "PortNode{port_id=%r, instrument_ids=%r}" % ( self.port_id, self.instrument_ids) @property def port_id(self): return self._port_id @property def instrument_ids(self): """ IDs of instruments associated to this port. """ return self._instrument_ids def add_instrument_id(self, instrument_id): if instrument_id in self._instrument_ids: raise Exception('duplicate instrument_id=%r for port_id=%r' % ( instrument_id, self.port_id)) self._instrument_ids.append(instrument_id) def remove_instrument_id(self, instrument_id): if instrument_id not in self._instrument_ids: raise Exception('no such instrument_id=%r in port_id=%r' % ( instrument_id, self.port_id)) self._instrument_ids.remove(instrument_id) def diff(self, other): """ Returns None if the two ports are the same. Otherwise, returns a message describing the first difference. """ if self.port_id != other.port_id: return "Port IDs are different: %r != %r" % ( self.port_id, other.port_id) # compare instruments: instrument_ids = set(self.instrument_ids) other_instrument_ids = set(other.instrument_ids) if instrument_ids != other_instrument_ids: return "port_id=%r: instrument_ids are different: %r != %r" % ( self.port_id, instrument_ids, other_instrument_ids) return None class InstrumentNode(BaseNode): """ Represents an instrument in a PlatformNode to capture the configuration for instruments. self._instrument_id self._attrs = { ... } self._CFG = dict The _CFG element included for convenience to capture the provided configuration dict. """ def __init__(self, instrument_id, attrs=None, CFG=None): BaseNode.__init__(self) self._instrument_id = instrument_id self._attrs = attrs or {} self._CFG = CFG def __repr__(self): return "InstrumentNode{id=%s, attrs=%s}" % ( self.instrument_id, self.attrs) @property def instrument_id(self): return self._instrument_id @property def attrs(self): """ Attributes of this instrument. """ return self._attrs @property def CFG(self): return self._CFG def diff(self, other): """ Returns None if the two instruments are the same. Otherwise, returns a message describing the first difference. """ if self.instrument_id != other.instrument_id: return "Instrument IDs are different: %r != %r" % ( self.instrument_id, other.instrument_id) if self.attrs != other.attrs: return "Instrument attributes are different: %r != %r" % ( self.attrs, other.attrs) return None class PlatformNode(BaseNode): """ Platform node for purposes of representing the network. self._platform_id self._attrs = { attr_id: AttrNode, ... } self._ports = { port_id: PortNode, ... } self._subplatforms = { platform_id: PlatformNode, ...} self._parent = None | PlatformNode self._instruments = { instrument_id: InstrumentNode, ...} self._CFG = dict The _CFG element included for convenience to capture the provided configuration dict in PlatformAgent. See create_network_definition_from_ci_config() """ #TODO: some separation of configuration vs. state would be convenient. def __init__(self, platform_id, CFG=None): BaseNode.__init__(self) self._platform_id = platform_id self._name = None self._ports = {} self._attrs = {} self._subplatforms = {} self._parent = None self._instruments = {} self._CFG = CFG def set_name(self, name): self._name = name def add_port(self, port): if port.port_id in self._ports: raise Exception('%s: duplicate port ID' % port.port_id) self._ports[port.port_id] = port def add_attribute(self, attr): if attr.attr_id in self._attrs: raise Exception('%s: duplicate attribute ID' % attr.attr_id) self._attrs[attr.attr_id] = attr @property def platform_id(self): return self._platform_id @property def name(self): return self._name @property def ports(self): return self._ports @property def attrs(self): return self._attrs def get_port(self, port_id): return self._ports[port_id] @property def CFG(self): return self._CFG @property def parent(self): return self._parent @property def subplatforms(self): return self._subplatforms def add_subplatform(self, pn): if pn.platform_id in self._subplatforms: raise Exception('%s: duplicate subplatform ID' % pn.platform_id) self._subplatforms[pn.platform_id] = pn pn._parent = self @property def instruments(self): """ Instruments configured for this platform. """ return self._instruments def add_instrument(self, instrument): if instrument.instrument_id in self._instruments: raise Exception('%s: duplicate instrument ID' % instrument.instrument_id) self._instruments[instrument.instrument_id] = instrument def __str__(self): s = "<%s" % self.platform_id if self.name: s += "/name=%s" % self.name s += ">\n" s += "ports=%s\n" % list(self.ports.itervalues()) s += "attrs=%s\n" % list(self.attrs.itervalues()) s += "#subplatforms=%d\n" % len(self.subplatforms) s += "#instruments=%d\n" % len(self.instruments) return s def get_map(self, pairs): """ Helper for getting the list of (platform_id, parent_platform_id) pairs. """ if self._parent: pairs.append((self.platform_id, self.parent.platform_id)) for sub_platform in self.subplatforms.itervalues(): sub_platform.get_map(pairs) return pairs def diff(self, other): """ Returns None if the two PlatformNode's represent the same topology and same attributes and ports. Otherwise, returns a message describing the first difference. """ if self.platform_id != other.platform_id: return "platform IDs are different: %r != %r" % ( self.platform_id, other.platform_id) if self.name != other.name: return "platform names are different: %r != %r" % ( self.name, other.name) # compare parents: if (self.parent is None) != (other.parent is None): return "platform parents are different: %r != %r" % ( self.parent, other.parent) if self.parent is not None and self.parent.platform_id != other.parent.platform_id: return "platform parents are different: %r != %r" % ( self.parent.platform_id, other.parent.platform_id) # compare attributes: attr_ids = set(self.attrs.iterkeys()) other_attr_ids = set(other.attrs.iterkeys()) if attr_ids != other_attr_ids: return "platform_id=%r: attribute IDs are different: %r != %r" % ( self.platform_id, attr_ids, other_attr_ids) for attr_id, attr in self.attrs.iteritems(): other_attr = other.attrs[attr_id] diff = attr.diff(other_attr) if diff: return diff # compare ports: port_ids = set(self.ports.iterkeys()) other_port_ids = set(other.ports.iterkeys()) if port_ids != other_port_ids: return "platform_id=%r: port IDs are different: %r != %r" % ( self.platform_id, port_ids, other_port_ids) for port_id, port in self.ports.iteritems(): other_port = other.ports[port_id] diff = port.diff(other_port) if diff: return diff # compare sub-platforms: subplatform_ids = set(self.subplatforms.iterkeys()) other_subplatform_ids = set(other.subplatforms.iterkeys()) if subplatform_ids != other_subplatform_ids: return "platform_id=%r: subplatform IDs are different: %r != %r" % ( self.platform_id, subplatform_ids, other_subplatform_ids) for platform_id, node in self.subplatforms.iteritems(): other_node = other.subplatforms[platform_id] diff = node.diff(other_node) if diff: return diff return None class NetworkDefinition(BaseNode): """ Represents a platform network definition in terms of platform types and topology, including attributes and ports associated with the platforms. See NetworkUtil for serialization/deserialization of objects of this type and other associated utilities. """ def __init__(self): BaseNode.__init__(self) self._pnodes = {} # _dummy_root is a dummy PlatformNode having as children the actual roots in # the network. self._dummy_root = None @property def pnodes(self): """ Returns a dict of all PlatformNodes in the network indexed by the platform ID. @return {platform_id : PlatformNode} map """ return self._pnodes @property def root(self): """ Returns the root PlatformNode. Can be None if there is no such root or there are multiple root PlatformNode's. The expected normal situation is to have single root. @return the root PlatformNode. """ root = None if self._dummy_root and len(self._dummy_root.subplatforms) == 1: root = self._dummy_root.subplatforms.values()[0] return root def get_map(self): """ Helper for getting the list of (platform_id, parent_platform_id) pairs. """ return self._dummy_root.get_map([]) def diff(self, other): """ Returns None if the two objects represent the same network definition. Otherwise, returns a message describing the first difference. """ # compare topology if (self.root is None) != (other.root is None): return "roots are different: %r != %r" % ( self.root, other.root) if self.root is not None: return self.root.diff(other.root) else: return None
''' r : It opens the file to read-only. The file pointer exists at the beginning. The file is by default open in this mode if no access mode is passed. ''' ''' w : It opens the file to write only. It overwrites the file if previously exists or creates a new one if no file exists with the same name. The file pointer exists at the beginning of the file.''' # change your parent dir accordingly f = open("E:/GitHub/1) Git_Tutorials_Repo_Projects/core-python/Core_Python/ExFiles/FileMethod.txt",'w') print("File Name : ",f.name) print("File Modes : ",f.mode) print("Return an integer number (file descriptor) of the file : ",f.fileno()) print("Readable : ",f.readable()) print("Writable : ",f.writable()) print("Returns the current position of file : ",f.tell()) print("Truncate : ",f.truncate()) f.close()
# !/usr/bin/env python3 ############################################################################# # # # Program purpose: Displays a histogram from list data # # Program Author : Happi Yvan <ivensteinpoker@gmail.com> # # Creation Date : July 14, 2019 # # # ############################################################################# # URL: https://www.w3resource.com/python-exercises/python-basic-exercises.php def histogram(someList, char): for x in someList: while x > 0: print(f"{char}", end='') x = x-1 print(f"\n") if __name__ == "__main__": randList = [3, 7, 4, 2, 6] histogram(randList, '*')
class Dice(object): def __init__(self, labels): self.stat = labels def roll_e(self): self.stat[0], self.stat[2], self.stat[5], self.stat[3] = self.stat[3], self.stat[0], self.stat[2], self.stat[5] def roll_w(self): self.stat[0], self.stat[2], self.stat[5], self.stat[3] = self.stat[2], self.stat[5], self.stat[3], self.stat[0] def roll_n(self): self.stat[0], self.stat[1], self.stat[5], self.stat[4] = self.stat[1], self.stat[5], self.stat[4], self.stat[0] def roll_s(self): self.stat[0], self.stat[1], self.stat[5], self.stat[4] = self.stat[4], self.stat[0], self.stat[1], self.stat[5] def get_top(self): return self.stat[0] dice = Dice(input().split()) commands = input() for command in commands: if command == "E": dice.roll_e() elif command == "W": dice.roll_w() elif command == "N": dice.roll_n() elif command == "S": dice.roll_s() print(dice.get_top())
def sum(number1, number2): total = number1 + number2 print(total) print("suma de 1 + 50") sum(1,50) print("suma de 1 + 500") sum(500,1) print("programa terminado")
class Solution: def isUgly(self, n: int) -> bool: while True: k=n if n%2==0: n=n//2 if n%3==0: n=n//3 if n%5==0: n=n//5 if k==n: break if n==1: return True
def factorial(n): suma = 1 for i in range(n, 1, -1): suma = suma * i return suma def triangulo(n, k): temp_n = factorial(n) temp_n_k = factorial(n - k) temp_k = factorial(k) formula = temp_n / (temp_n_k * temp_k) return formula def welcome(): try: var_1 = input("Ingresa un número n: ") var_2 = input("Ingresa un número k: ") return triangulo(int(var_1), int(var_2)) except ValueError: print("An unexpected error ocurred") print(welcome())
def palin(n): if str(n) == str(n)[::-1]: return True return False N, M = map(int, input().split()) mid = (N+M) // 2 mid1 = (N+M) // 2 mid2 = (N+M) // 2 mids = {} while True: mid1 += 1 if palin(mid1): break while True: mid2 -= 1 if palin(mid2): break if abs(mid - mid1) > abs(mid - mid2): print(mid2) else: print(mid1)
#from .test_cluster_det import test_cluster_det #from .train_cluster_det import train_cluster_det #from .debug_cluster_det import debug_cluster_det #from .get_cluster_det import get_cluster_det __factory__ = { } def build_handler(phase, stage): key_handler = '{}_{}'.format(phase, stage) if key_handler not in __factory__: raise KeyError("Unknown op:", key_handler) return __factory__[key_handler]
# -*- coding: utf-8 -*- def test_hello_world(): text = 'Hello World' assert text == 'Hello World'
try: 1/0 except Exception as e: print('e : ', e) print(f"repr(e) : {repr(e)}")
#!/usr/bin/env python3 print("Welcome to the Binary/Hexadecimal Converter Application") # User input max_value = int(input("\nCompute binary and hexadecimal values up to the following decimal number: ")) decimal = list(range(1, max_value+1)) binary = [] hexadecimal = [] for num in decimal: binary.append(bin(num)) hexadecimal.append(hex(num)) print("Generating your lists.....................Complete!") # Get slicing index from user print("\nUsing slices. we will now show a portion of each list") lower_range = int(input("what decimal number would you like to start at: ")) upper_range = int(input("What decimal number would you to stop at: ")) # Slicing through each individual list print("\nDecimal values from " + str(lower_range) + " to " + str(upper_range) + ":") for num in decimal[lower_range - 1: upper_range]: print(num) print("\nBinary values from " + str(lower_range) + " to " + str(upper_range) + ":") for num in binary[lower_range - 1: upper_range]: print(num) print("\nHexadecimal values from " + str(lower_range) + " to " + str(upper_range) + ":") for num in hexadecimal[lower_range - 1: upper_range]: print(num) # Display the whole list input("\nPress Enter to see all values from 1 to " + str(max_value) + ".") print("Decimal----Binary----Hexadecimal") print("================================") for d, b, h in zip(decimal, binary, hexadecimal): print(str(d) + "----" + str(b) + "----" + str(h))
# # @lc app=leetcode id=989 lang=python3 # # [989] Add to Array-Form of Integer # # https://leetcode.com/problems/add-to-array-form-of-integer/description/ # # algorithms # Easy (43.96%) # Likes: 269 # Dislikes: 52 # Total Accepted: 34.1K # Total Submissions: 77.4K # Testcase Example: '[1,2,0,0]\n34' # # For a non-negative integer X, the array-form of X is an array of its digits # in left to right order.  For example, if X = 1231, then the array form is # [1,2,3,1]. # # Given the array-form A of a non-negative integer X, return the array-form of # the integer X+K. # # # # # # # # Example 1: # # # Input: A = [1,2,0,0], K = 34 # Output: [1,2,3,4] # Explanation: 1200 + 34 = 1234 # # # # Example 2: # # # Input: A = [2,7,4], K = 181 # Output: [4,5,5] # Explanation: 274 + 181 = 455 # # # # Example 3: # # # Input: A = [2,1,5], K = 806 # Output: [1,0,2,1] # Explanation: 215 + 806 = 1021 # # # # Example 4: # # # Input: A = [9,9,9,9,9,9,9,9,9,9], K = 1 # Output: [1,0,0,0,0,0,0,0,0,0,0] # Explanation: 9999999999 + 1 = 10000000000 # # # # # Note: # # # 1 <= A.length <= 10000 # 0 <= A[i] <= 9 # 0 <= K <= 10000 # If A.length > 1, then A[0] != 0 # # # # # # # @lc code=start class Solution: def addToArrayForm(self, A: List[int], K: int) -> List[int]: ans = K A = A[::-1] for i,v in enumerate(A): ans+=v*10**i return [int(c) for c in str(ans)] # @lc code=end
## datatypes demo # a = 3 # b = '3' # a + 3 # b + 3 # if else boolean values # print(a,b) # print(a+3) # print(b+' cats') # print(type(a)) # print(td) # now lets say you want to go shopping and you need a collection of items # shopping_list = ['oat milk', 'apples'] # shopping_list[1] # phonebook = { 'noel a': '+44010', 'sarah b': '+33212'} # phonebook['sarah b'] # Main solution ## To show the first 5 entries of the dataset we use the head function of Pandas # td.head() ## To sort the dataset by the mean value of passenger class # td.groupby('Pclass').mean() ## Tho show the survival rate depending on the passenger class ## we are using seaborn's barplot function ## The error bars show the variability in the upper quartiles plot2 = sns.barplot(x=td['Pclass'], y= td['Survived']*100) ## create a new figure # plt.figure() ## To show the number of persons alive by class ## we are using the countplot from seaborn ## histogram across a categorical (v.s. quantitative) variable # plot1 = sns.countplot(x = td['Pclass'], # hue=td['Alive']) # plt.title('Number of Persons Alive by Class')
#!/usr/bin/env python3 class Colors: """ Colorized output during run """ red = "\033[91m" green = "\033[92m" yellow = "\033[93m" reset = "\033[0m" class Config: user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36' sleep_time = 5
"""This module holds miscellaneous validator Mixin classes for validating the incoming YAML.""" class KeyExistsMixIn: def __init__(self, payload, *args, _key, _exception, _elem, **kwargs): """Raise an error if _key is not in the payload.""" try: _ = payload[_key] except (KeyError, AttributeError): excp = _exception(f'\'{_key}\' not found in {_elem}.') excp.show() quit(excp.exit_code) class ValIsStrMixIn(KeyExistsMixIn): def __init__(self, payload, *args, _key, _exception, _elem, **kwargs): """Raise an error if payload[_key] is not a string.""" super().__init__(payload, *args, _key=_key, _exception=_exception, _elem=_elem, **kwargs) if not isinstance(payload[_key], str): excp = _exception(f'\'{_key}\' is not a string in {_elem}.') excp.show() quit(excp.exit_code) class ValIsDictMixIn(KeyExistsMixIn): def __init__(self, payload, *args, _key, _exception, _elem, **kwargs): """Raise an error if payload[_key] is not a dict.""" # call superclass validation first super().__init__(payload, *args, _key=_key, _exception=_exception, _elem=_elem, **kwargs) if not isinstance(payload[_key], dict): excp = _exception(f'\'{_key}\' does not have a subtree in {_elem}.') excp.show() quit(excp.exit_code) class ValIsDictHasSubKeysMixIn(ValIsDictMixIn): def __init__(self, payload, *args, _key, _exception, _elem, _sub_keys, **kwargs): """Raise an error if payload[_key] does not have _sub_keys in it.""" # call superclass validation first super().__init__(payload, *args, _key=_key, _exception=_exception, _elem=_elem, **kwargs) for sk in _sub_keys: if sk not in payload[_key]: excp = _exception(f'\'{_key}\' does not have item \'{sk}\' in {_elem}.') excp.show() quit(excp.exit_code) class ValIsDictSubKeysFromMixIn(ValIsDictMixIn): def __init__(self, payload, *args, _key, _exception, _elem, _keys_from, **kwargs): """Raise an error if payload[_key] has sub keys other than _keys_from in it.""" # call superclass validation first super().__init__(payload, *args, _key=_key, _exception=_exception, _elem=_elem, **kwargs) for sk in payload[_key]: if sk not in _keys_from: excp = _exception(f'\'{sk}\' is not a valid item in {_elem}.') excp.show() quit(excp.exit_code) class ValIsDictCheckSubKeyTypesMixIn(ValIsDictSubKeysFromMixIn): def __init__(self, payload, *args, _key, _exception, _elem, _keys_from, _type_list, **kwargs): """Raise an error if payload[_key] has sub keys which don't comply with types in _type_list .""" # call superclass validation first super().__init__(payload, *args, _key=_key, _exception=_exception, _keys_from=_keys_from, _elem=_elem, **kwargs) if len(_keys_from) != len(_type_list): raise ValueError(f'_keys_from length differs from _type_list length') for subkey in payload[_key]: req_type = _type_list[_keys_from.index(subkey)] if not isinstance(payload[_key][subkey], req_type): excp = _exception(f'\'{subkey}: {payload[_key][subkey]}\' is not of a valid type in {_elem}. Expected {req_type.__name__}.') excp.show() quit(excp.exit_code)
def solve_poly_reg(x, y, max_order): """Fit a polynomial regression model for each order 0 through max_order. Args: x (ndarray): An array of shape (samples, ) that contains the input values y (ndarray): An array of shape (samples, ) that contains the output values max_order (scalar): The order of the polynomial we want to fit Returns: numpy array: (input_features, max_order+1) Each column contains the fitted weights for that order of polynomial regression """ # Create a dictionary with polynomial order as keys, and np array of theta # (weights) as the values theta_hat = {} # Loop over polynomial orders from 0 through max_order for order in range(max_order+1): X = make_design_matrix(x, order) this_theta = ordinary_least_squares(X, y) theta_hat[order] = this_theta return theta_hat max_order = 5 theta_hat = solve_poly_reg(x, y, max_order)
s = 'GTCGAAGCCATTTCGCCGTGGGGTTGCGCGTGATTCTACCATCAGTTCTTTTTACGGTTCATTTAAACCGGTAATCCAGTAGCGTCAACAAATACTACTCTATGGTTGACTGGAGACGGAACGGGCCCATCGGACGTAATTATGTGGTCTTTGCACGAGCCGGCTGATACAAGCACATGCATCGTGACCACACCGACAAAGTTGTATCTTGGTTCCCGATTTATAACGTCTGCAGAATGAGCCTGTGTGACTATTGTAGTAGGTCCGAATGCCATGTCGGGGCTCCCACCTACGCTGCCTGGCGTCTTTTTGTGCGCAGGTTGTCATTTTCTGGCTTCATAACACCCAGTCCTCAACAAGCGGAAGCCGATCTCACCCTTCCAGTACTTCGTCGACAACGCCGCCATTGTCAACCAAAACCTGTCCTTGAACTAGAGTCGTCTTATCGCACTTAGAGCCTAGCAACCTATCCCGCCATAGAGCTCATTGTAGAAGACCGCAACCCGTGGGGGATCCTATGAGCATACTGCCACTGAAGCTATCGCGGCAGCTAACTGGGATGACCACCGTGTGGAGCCACGCCAGTTCTGATCATCATTTACGTCCACTAAATACTTGGGTCGACCGACAATCGTGGGACTACGCGCGTACAAGCCGGTCGTTCAATAAAGTAGTCAGTCACTTTTCTTCCCACAGAGCTAGACTTGTCAAGCCTCCAATAAGTCAGGGGAGGGGCTGGTCAGCTCAACTACGGGACGGCGGCATAAGTATTGTGCGCAGTGACTGGATACAAGGACTAATACGTCGAGCCTCTGGAGTAGCAGTGTAAGTAAGTAAACATGTGCATGATCTCCGTAGCTATCTCAGGCGTAGGGAGCATGGATAGCATAGGCTGCTCGGATCAGCCTT' ''' Author : Sujit Mandal Github: https://github.com/sujitmandal Package : https://pypi.org/project/images-into-array/ LinkedIn : https://www.linkedin.com/in/sujit-mandal-91215013a/ Facebook : https://www.facebook.com/sujit.mandal.33671748 Twitter : https://twitter.com/mandalsujit37 ''' def RNA(rna): transcribed = rna.replace('T', 'U') print(transcribed) if __name__ == "__main__": RNA(s)
# 15. 3Sum # ttungl@gmail.com # Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? # Find all unique triplets in the array which gives the sum of zero. # For example, given array S = [-1, 0, 1, 2, -1, -4], # -- # A solution set is: # [ # [-1, 0, 1], # [-1, -1, 2] # ] class Solution(object): def threeSum(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ # sol 1: # binary search # runtime: 1476ms res = [] nums.sort() ## tricky for i in range(len(nums)-2): if i > 0 and nums[i] == nums[i-1]: continue lo, hi = i + 1, len(nums)-1 while lo < hi: s = nums[i] + nums[lo] + nums[hi] if s < 0: lo += 1 elif s > 0: hi -= 1 else: # s = 0 res.append((nums[i],nums[lo],nums[hi])) while lo < hi and nums[lo] == nums[lo + 1]: lo += 1 while lo < hi and nums[hi] == nums[hi - 1]: hi -= 1 lo += 1 hi -= 1 return res # sol 2: # runtime: 1227ms if len(nums) < 3: return [] nums.sort() # [-4, -1, -1, 0, 1, 2] res = set() # use set() takes less space than list. for i, v in enumerate(nums[:-2]): # n=[-4,-1,-1,0] if i >= 1 and v == nums[i-1]: # i=1, v=-1, n[1-1]=n[0]=-4 //;i=2, v=-1, n[2-1]=n[1]=-1 continue d = {} for x in nums[i+1:]: # x in n[1+1]=n[2:]=[-1,0] if x not in d: # d[-v-x] = 1 # d[-1-(-1)]=d[0]=1; else: res.add((v, -v-x, x)) # res=(-1, 0, -1) return map(list, res) # or use "list(s for s in res)" # sol 3: # runtime: 580ms counter = collections.defaultdict(int) for num in nums: counter[num] += 1 if 0 in counter and counter[0] > 2: res = [[0, 0, 0]] else: res = [] uniques = counter.keys() pos = sorted(p for p in uniques if p > 0) neg = sorted(n for n in uniques if n < 0) for p in pos: for n in neg: inverse = -(p + n) if inverse in counter: if inverse == p and counter[p] > 1: res.append([n, p, p]) elif inverse == n and counter[n] > 1: res.append([n, n, p]) elif n<inverse< p or inverse == 0: res.append([n, inverse, p]) return res
expected_output = { "route-information": { "route-table": [ { "table-name": "inet.0", "destination-count": "60", "total-route-count": "66", "active-route-count": "60", "holddown-route-count": "1", "hidden-route-count": "0", "rt-entry": { "rt-destination": "10.169.196.254", "rt-prefix-length": "32", "rt-entry-count": "2", "rt-announced-count": "2", "bgp-group": { "bgp-group-name": "lacGCS001", "bgp-group-type": "External", }, "nh": {"to": "10.189.5.252"}, "med": "29012", "local-preference": "4294967285", "as-path": "[65151] (65171) I", "communities": "65151:65109", }, }, { "table-name": "inet.3", "destination-count": "27", "total-route-count": "27", "active-route-count": "27", "holddown-route-count": "0", "hidden-route-count": "0", "rt-entry": { "active-tag": "*", "rt-destination": "10.169.196.254", "rt-prefix-length": "32", "rt-entry-count": "1", "rt-announced-count": "1", "route-label": "118071", "bgp-group": { "bgp-group-name": "lacGCS001", "bgp-group-type": "External", }, "nh": {"to": "10.189.5.252"}, "med": "29012", "local-preference": "100", "as-path": "[65151] (65171) I", "communities": "65151:65109", }, }, ] } }
if __name__ == '__main__': fruits = ["apple", "banana", "cherry", "kiwi", "mango"] l = [fruit.upper() for fruit in fruits if "n" in fruit] print(l) s = {fruit.upper() for fruit in fruits if "n" in fruit} print(s) d = {fruit.upper() : len(fruit) for fruit in fruits if "n" in fruit} print(d) t = *(fruit.upper() for fruit in fruits if "n" in fruit), print(t)
class BaseClass: def __init__(self): pass @staticmethod def say_hi(): print("hi") class MyClassOne(BaseClass): def __init__(self): pass class MyClassTwo(BaseClass, MyClassOne): def __init__(self): pass
""" django-amazon-price-monitor monitors prices of Amazon products. """ __version_info__ = { 'major': 0, 'minor': 7, 'micro': 0, 'releaselevel': 'final', 'serial': 0, } def get_version(short=False): assert __version_info__['releaselevel'] in ('alpha', 'beta', 'final') version = ["{major:d}.{minor:d}".format(**__version_info__), ] if __version_info__['micro']: version.append(".{micro:d}".format(**__version_info__)) if __version_info__['releaselevel'] != 'final' and not short: version.append('{0!s}{1:d}'.format(__version_info__['releaselevel'][0], __version_info__['serial'])) return ''.join(version) __version__ = get_version()
class AndGate(BinaryGate): def __init__(self,n): super().__init__(n) def performGateLogic(self): a = self.getPinA() b = self.getPinB() if a==1 and b==1: return 1 else: return 0
'''Melhore o DESAFIO 61, perguntando para o usuário se ele quer mostrar mais alguns termos. O programa encerrará quando ele disser que quer mostrar 0 termos.''' primeiro = int(input('Qual o termo? ')) progressao = int(input('Pular de quanto em quanto? ')) contador = 1 termo = primeiro cont = 1 total = 0 mais = 10 while mais != 0: total += mais while contador <= total: print('{}'.format(termo), end=' > ') termo += progressao contador += 1 print('Pausa') mais = int(input('Quantos termos quer adicionar a mais? ')) print('A progressão finalizada com {} termos mostrados.'.format(total))
""" Display the complete lyrics for the song: 99 Bottles of Beer on the Wall. The lyrics follow this form: 99 bottles of beer on the wall 99 bottles of beer Take one down, pass it around 98 bottles of beer on the wall 98 bottles of beer on the wall 98 bottles of beer Take one down, pass it around """ def solution(): """Using while loop""" max = 99 while max > 1: print(f"{max} bottles of beer on the wall") print(f"{max} bottles of beer") print(f"Take one down, pass it around") max -= 1 print(f"{max} bottles of beer \n") def main(): solution() if __name__ == '__main__': main()
# # Copyright (c) 2019, Infosys Ltd. # # 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. # IES_TYPE = { "0" : "MME-UE-S1AP-ID", "1" : "HandoverType", "2" : "Cause", "3" : "SourceID", "4" : "TargetID", "8" : "ENB-UE-S1AP-ID", "12" : "E-RABSubjecttoDataForwardingList", "13" : "E-RABtoReleaselistHOCmd", "14" : "E-RABDataForwardingItem", "15" : "E-RABReleaseItemBearerRelComp", "16" : "E-RABToBeSetuplistBearerSUReq", "17" : "E-RABToBeSetupItemBearerSUReq", "18" : "E-RABAdmittedlist", "19" : "E-RABFailedToSetuplistHOReqAck", "20" : "E-RABAdmittedItem", "21" : "E-RABFailedtoSetupItemHOReqAck", "22" : "E-RABToBeSwitchedDLlist", "23" : "E-RABToBeSwitchedDLItem", "24" : "E-RABToBeSetupListCtxtSUReq", "25" : "TraceActivation", "26" : "NAS-PDU", "27" : "E-RABToBeSetupItemHOReq", "28" : "E-RABSetuplistBearerSURes", "29" : "E-RABFailedToSetuplistBearerSURes", "30" : "E-RABToBeModifiedlistBearerModReq", "31" : "E-RABModifylistBearerModRes", "32" : "E-RABFailedToModifylist", "33" : "E-RABToBeReleasedlist", "34" : "E-RABFailedToReleaselist", "35" : "E-RABItem", "36" : "E-RABToBeModifiedItemBearerModReq", "37" : "E-RABModifyItemBearerModRes", "38" : "E-RABReleaseItem", "39" : "E-RABSetupItemBearerSURes", "40" : "SecurityContext", "41" : "HandoverRestrictionlist", "43" : "UEPagingID", "44" : "PagingDRX", "46" : "TAIList", "47" : "TAIItem", "48" : "E-RABFailedToSetuplistCtxtSURes", "49" : "E-RABReleaseItemHOCmd", "50" : "E-RABSetupItemCtxtSURes", "51" : "E-RABSetupListCtxtSURes", "52" : "E-RABToBeSetupItemCtxtSUReq", "53" : "E-RABToBeSetupListHOReq", "55" : "GERANtoLTEHOInformationRes", "57" : "UTRANtoLTEHOInformationRes", "58" : "CriticalityDiagnostics", "59" : "Global-ENB-ID", "60" : "ENBname", "61" : "MMEname", "63" : "ServedPLMNs", "64" : "SupportedTAs", "65" : "TimeToWait", "66" : "UEAggregateMaximumBitrate", "67" : "TAI", "69" : "E-RABReleaselistBearerRelComp", "70" : "Cdma2000PDU", "71" : "Cdma2000RATType", "72" : "Cdma2000SectorID", "73" : "SecurityKey", "74" : "UERadioCapability", "75" : "GUMMEI", "78" : "E-RABInformationlistItem", "79" : "Direct-Forwarding-Path-Availability", "80" : "UEIdentityIndexValue", "83" : "Cdma2000HOStatus", "84" : "Cdma2000HORequiredIndication", "86" : "E-UTRAN-Trace-ID", "87" : "RelativeMMECapacity", "88" : "SourceMME-UE-S1AP-ID", "89" : "Bearers-SubjectToStatusTransfer-Item", "90" : "ENB-StatusTransfer-TransparentContainer", "91" : "UE-associatedLogicalS1-ConnectionItem", "92" : "ResetType", "93" : "UE-associatedLogicalS1-ConnectionlistResAck", "94" : "E-RABToBeSwitchedULItem", "95" : "E-RABToBeSwitchedULlist", "96" : "S-TMSI", "97" : "Cdma2000OneXRAND", "98" : "RequestType", "99" : "UE-S1AP-IDs", "100" : "EUTRAN-CGI", "101" : "OverloadResponse", "102" : "Cdma2000OneXSRVCCInfo", "103" : "E-RABFailedToBeReleasedlist", "104" : "Source-ToTarget-TransparentContainer", "105" : "ServedGUMMEIs", "106" : "SubscriberProfileIDforRFP", "107" : "UESecurityCapabilities", "108" : "CSFallbackIndicator", "109" : "CNDomain", "110" : "E-RABReleasedlist", "111" : "MessageIdentifier", "112" : "SerialNumber", "113" : "WarningArealist", "114" : "RepetitionPeriod", "115" : "NumberofBroadcastRequest", "116" : "WarningType", "117" : "WarningSecurityInfo", "118" : "DataCodingScheme", "119" : "WarningMessageContents", "120" : "BroadcastCompletedArealist", "121" : "Inter-SystemInformationTransferTypeEDT", "122" : "Inter-SystemInformationTransferTypeMDT", "123" : "Target-ToSource-TransparentContainer", "124" : "SRVCCOperationPossible", "125" : "SRVCCHOIndication", "126" : "NAS-DownlinkCount", "127" : "CSG-Id", "128" : "CSG-Idlist", "129" : "SONConfigurationTransferECT", "130" : "SONConfigurationTransferMCT", "131" : "TraceCollectionEntityIPAddress", "132" : "MSClassmark2", "133" : "MSClassmark3", "134" : "RRC-Establishment-Cause", "135" : "NASSecurityParametersfromE-UTRAN", "136" : "NASSecurityParameterstoE-UTRAN", "137" : "PagingDRX", "138" : "Source-ToTarget-TransparentContainer-Secondary", "139" : "Target-ToSource-TransparentContainer-Secondary", "140" : "EUTRANRoundTripDelayEstimationInfo", "141" : "BroadcastCancelledArealist", "142" : "ConcurrentWarningMessageIndicator", "143" : "Data-Forwarding-Not-Possible", "144" : "ExtendedRepetitionPeriod", "145" : "CellAccessMode", "146" : "CSGMembershipStatus", "147" : "LPPa-PDU", "148" : "Routing-ID", "149" : "Time-Synchronisation-Info", "150" : "PS-ServiceNotAvailable", "151" : "PagingPriority", "152" : "X2TNLConfigurationInfo", "153" : "ENBX2ExtendedTransportLayerAddresses", "154" : "GUMMEIlist", "155" : "GW-TransportLayerAddress", "156" : "Correlation-ID", "157" : "SourceMME-GUMMEI", "158" : "MME-UE-S1AP-ID-2", "159" : "RegisteredLAI", "160" : "RelayNode-Indicator", "161" : "TrafficLoadReductionIndication", "162" : "MDTConfiguration", "163" : "MMERelaySupportIndicator", "164" : "GWContextReleaseIndication", "165" : "ManagementBasedMDTAllowed", "166" : "PrivacyIndicator", "167" : "Time-UE-StayedInCell-EnhancedGranularity", "168" : "HO-Cause", "169" : "VoiceSupportMatchIndicator", "170" : "GUMMEIType", "171" : "M3Configuration", "172" : "M4Configuration", "173" : "M5Configuration", "174" : "MDT-Location-Info", "175" : "MobilityInformation", "176" : "Tunnel-Information-for-BBF", "177" : "ManagementBasedMDTPLMNlist", "178" : "SignallingBasedMDTPLMNlist", "179" : "ULCOUNTValueExtended", "180" : "DLCOUNTValueExtended", "181" : "ReceiveStatusOfULPDCPSDUsExtended", "182" : "ECGIlistForRestart", "183" : "SIPTO-Correlation-ID", "184" : "SIPTO-L-GW-TransportLayerAddress", "185" : "TransportInformation", "186" : "LHN-ID", "187" : "AdditionalCSFallbackIndicator", "188" : "TAIlistForRestart", "189" : "UserLocationInformation", "190" : "EmergencyAreaIDlistForRestart", "191" : "KillAllWarningMessages", "192" : "Masked-IMEISV", "193" : "ENBIndirectX2TransportLayerAddresses", "194" : "UE-HistoryInformationFromTheUE", "195" : "ProSeAuthorized", "196" : "ExpectedUEBehaviour", "197" : "LoggedMBSFNMDT", "198" : "UERadioCapabilityForPaging", "199" : "E-RABToBeModifiedlistBearerModInd", "200" : "E-RABToBeModifiedItemBearerModInd", "201" : "E-RABNotToBeModifiedlistBearerModInd", "202" : "E-RABNotToBeModifiedItemBearerModInd", "203" : "E-RABModifyListBearerModConf", "204" : "E-RABModifyItemBearerModConf", "205" : "E-RABFailedToModifylistBearerModConf", "206" : "SON-Information-Report", "207" : "Muting-Availability-Indication", "208" : "Muting-Pattern-Information", "209" : "Synchronisation-Information", "210" : "E-RABToBeReleasedlistBearerModConf", "211" : "AssistanceDataForPaging", "212" : "CellIdentifierAndCELevelForCECapableUEs", "213" : "InformationOnRecommendedCellsAndENBsForPaging", "214" : "RecommendedCellItem", "215" : "RecommendedENBItem", "216" : "ProSeUEtoNetworkRelaying", "217" : "ULCOUNTValuePDCP-SNlength18", "218" : "DLCOUNTValuePDCP-SNlength18", "219" : "ReceiveStatusOfULPDCPSDUsPDCP-SNlength18", "220" : "M6Configuration", "221" : "M7Configuration", "222" : "PWSfailedECGIlist", "223" : "MME-Group-ID", "224" : "Additional-GUTI", "225" : "S1-Message", "226" : "CSGMembershipInfo", "227" : "Paging-eDRXInformation", "228" : "UE-RetentionInformation", "230" : "UE-Usage-Type", "231" : "Extended-UEIdentityIndexValue"}
#!/usr/bin/env python3 # -*- coding: utf-8 -*- def constant_aminoacid_code(): aa_dict = { "R" : "ARG", "H" : "HIS", "K" : "LYS", "D" : "ASP", "E" : "GLU", "S" : "SER", "T" : "THR", "N" : "ASN", "Q" : "GLN", "C" : "CYS", "G" : "GLY", "P" : "PRO", "A" : "ALA", "V" : "VAL", "I" : "ILE", "L" : "LEU", "M" : "MET", "F" : "PHE", "Y" : "TYR", "W" : "TRP", "-" : "MAR" } return aa_dict def constant_aminoacid_code_reverse(): aa_dict = { v : k for k, v in constant_aminoacid_code().items() } ## aa_dict["HSD"] = "H" ## aa_dict["CYSP"] = "C" return aa_dict def constant_atomlabel(): # MAR stands for missing-a-residue; # We consider MAR still has 4 placeholder atoms that form a backbone label_dict = { "ARG" : ['N', 'CA', 'C', 'O', 'CB', 'CG', 'CD', 'NE', 'CZ', 'NH1', 'NH2'], "HIS" : ['N', 'CA', 'C', 'O', 'CB', 'CG', 'ND1', 'CD2', 'CE1', 'NE2'], "LYS" : ['N', 'CA', 'C', 'O', 'CB', 'CG', 'CD', 'CE', 'NZ'], "ASP" : ['N', 'CA', 'C', 'O', 'CB', 'CG', 'OD1', 'OD2'], "GLU" : ['N', 'CA', 'C', 'O', 'CB', 'CG', 'CD', 'OE1', 'OE2'], "SER" : ['N', 'CA', 'C', 'O', 'CB', 'OG'], "THR" : ['N', 'CA', 'C', 'O', 'CB', 'OG1', 'CG2'], "ASN" : ['N', 'CA', 'C', 'O', 'CB', 'CG', 'OD1', 'ND2'], "GLN" : ['N', 'CA', 'C', 'O', 'CB', 'CG', 'CD', 'OE1', 'NE2'], "CYS" : ['N', 'CA', 'C', 'O', 'CB', 'SG'], "GLY" : ['N', 'CA', 'C', 'O'], "PRO" : ['N', 'CA', 'C', 'O', 'CB', 'CG', 'CD'], "ALA" : ['N', 'CA', 'C', 'O', 'CB'], "VAL" : ['N', 'CA', 'C', 'O', 'CB', 'CG1', 'CG2'], "ILE" : ['N', 'CA', 'C', 'O', 'CB', 'CG1', 'CG2', 'CD1'], "LEU" : ['N', 'CA', 'C', 'O', 'CB', 'CG', 'CD1', 'CD2'], "MET" : ['N', 'CA', 'C', 'O', 'CB', 'CG', 'SD', 'CE'], "PHE" : ['N', 'CA', 'C', 'O', 'CB', 'CG', 'CD1', 'CD2', 'CE1', 'CE2', 'CZ'], "TYR" : ['N', 'CA', 'C', 'O', 'CB', 'CG', 'CD1', 'CD2', 'CE1', 'CE2', 'CZ', 'OH'], "TRP" : ['N', 'CA', 'C', 'O', 'CB', 'CG', 'CD1', 'CD2', 'NE1', 'CE2', 'CE3', 'CZ2', 'CZ3', 'CH2'], "MAR" : ['N', 'CA', 'C', 'O'], } return label_dict
def head(n): print(f"Calling the function head({n})") # Base Case if(n == 0): print("**** Base Case **** \n") return # Recursive Function Call head(n-1) # Operation print(n) # head(5): -1006 # RecursionError: maximum recursion depth exceeded while pickling # an object. (Stack Memory Overflow, if do not have # the base case "break". head(5) # Answer: #Calling the function head(5) #Calling the function head(4) #Calling the function head(3) #Calling the function head(2) #Calling the function head(1) #Calling the function head(0) #**** Base Case **** # #1 #2 #3 #4 #5
#!/usr/bin/env python # -*- coding: utf-8 -*- """ fabrik ------------ :copyright: (c) 2014-2017 by Fröjd Interactive AB :license: MIT, see LICENSE for more details. """ __title__ = "fabrik" __version__ = "3.3.0" __build__ = 330 __license__ = "MIT" __copyright__ = "Copyright 2014-2017 Fröjd Interactive AB"
{ PDBConst.Name: "notetype", PDBConst.Columns: [ { PDBConst.Name: "ID", PDBConst.Attributes: ["tinyint", "not null", "primary key"] }, { PDBConst.Name: "Type", PDBConst.Attributes: ["varchar(128)", "not null"] }, { PDBConst.Name: "SID", PDBConst.Attributes: ["varchar(128)", "not null"] }], PDBConst.Initials: [ {"Type": "'html'", "ID": "1", "SID": "'sidTableNoteType1'"}, {"Type": "'pdf'", "ID": "2", "SID": "'sidTableNoteType2'"} ] }
# -*- python -*- { 'includes': [ '../../../build/common.gypi', ], 'target_defaults': { 'variables':{ 'target_base': 'none', }, 'target_conditions': [ ['target_base=="ripple_ledger_service"', { 'sources': [ 'ripple_ledger_service.h', 'ripple_ledger_service.c', ], 'xcode_settings': { 'WARNING_CFLAGS': [ '-Wno-missing-field-initializers' ] }, }, ]], }, 'conditions': [ ['OS=="win" and target_arch=="ia32"', { 'targets': [ { 'target_name': 'ripple_ledger_service64', 'type': 'static_library', 'variables': { 'target_base': 'ripple_ledger_service', 'win_target': 'x64', }, 'dependencies': [ '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform64', '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:nonnacl_srpc64', '<(DEPTH)/native_client/src/trusted/threading/threading.gyp:thread_interface64', '<(DEPTH)/native_client/src/trusted/desc/desc.gyp:nrd_xfer64', '<(DEPTH)/native_client/src/trusted/nacl_base/nacl_base.gyp:nacl_base64', ], }, ], }], ], 'targets': [ { 'target_name': 'ripple_ledger_service', 'type': 'static_library', 'variables': { 'target_base': 'ripple_ledger_service', }, 'dependencies': [ '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform', '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:nonnacl_srpc', '<(DEPTH)/native_client/src/trusted/threading/threading.gyp:thread_interface', '<(DEPTH)/native_client/src/trusted/desc/desc.gyp:nrd_xfer', '<(DEPTH)/native_client/src/trusted/nacl_base/nacl_base.gyp:nacl_base', ], }, ], }
# Задание 9.1b def generate_access_config(access, psecurity = False): ''' access - словарь access-портов, для которых необходимо сгенерировать конфигурацию, вида: { 'FastEthernet0/12':10, 'FastEthernet0/14':11, 'FastEthernet0/16':17 } psecurity - контролирует нужна ли настройка Port Security. По умолчанию значение False - если значение True, то настройка выполняется с добавлением шаблона port_security - если значение False, то настройка не выполняется Функция возвращает словарь: - ключи: имена интерфейсов, вида 'FastEthernet0/1' - значения: список команд, который надо выполнить на этом интерфейсе ''' access_template = ['switchport mode access', 'switchport access vlan', 'switchport nonegotiate', 'spanning-tree portfast', 'spanning-tree bpduguard enable'] port_security = ['switchport port-security maximum 2', 'switchport port-security violation restrict', 'switchport port-security'] INTERF = access.keys() #INTERF = [intf for intf, vlan in access.items()] VALUES_LIST = access.values() if psecurity: for vlan in VALUES_LIST: commands = [' {} {}'.format(command, vlan) if command.endswith('access vlan') else ' {}'.format(command) for command in access_template] security_commands = [' {}'.format(command) for command in port_security] VALUES = commands + security_commands else: for vlan in VALUES_LIST: commands = [' {} {}'.format(command, vlan) if command.endswith('access vlan') else ' {}'.format(command) for command in access_template] VALUES = commands PORTS_DICT = {key: VALUES for key in INTERF} return PORTS_DICT access_dict = { 'FastEthernet0/12':10, 'FastEthernet0/14':11, 'FastEthernet0/16':17, 'FastEthernet0/17':150 } # Call the function print(generate_access_config(access_dict,True))
# This code is a partial mod of of the Adafruit PyPotal lib # https://github.com/adafruit/Adafruit_CircuitPython_PyPortal/blob/master/adafruit_pyportal.py def wrap_nicely(string, max_chars): """Wrap nicely function A helper that will return a list of lines with word-break wrapping Parameters ---------- string : str The text to be wrapped max_chars: int The maximum number of characters on a line before wrapping Returns ------- list Returns a list of lines where each line is separated based on the amount of max_chars provided """ string = string.replace('\n', '').replace('\r', '') # Strip confusing newlines words = string.split(' ') the_lines = [] the_line = '' for w in words: if len(the_line + ' ' + w) <= max_chars: the_line += ' ' + w else: the_lines.append(the_line) the_line = '' + w if the_line: # Last line remaining the_lines.append(the_line) # Remove first space from first line: the_lines[0] = the_lines[0][1:] return the_lines
# 140000000 LILIN = 1201000 sm.setSpeakerID(LILIN) if sm.sendAskAccept("Shall we continue with your Basic Training? Before accepting, please make sure you have properly equipped your sword and your skills and potions are readily accessible."): sm.startQuest(parentID) sm.removeEscapeButton() sm.sendNext("Alright. This time, let's have you defeat #r#o0100132#s#k, which are slightly more powerful than #o0100131#s. Head over to #b#m140020100##k and defeat #r15#k of them. That should help you build your strength. Alright! Let's do this!") else: sm.sendNext("Are you not ready to hunt the #o0100132#s yet? Always proceed if and only if you are fully ready. There's nothing worse than engaging in battles without sufficient preparation.") sm.dispose()
class Solution(object): def solveNQueens(self, n): """ :type n: int :rtype: List[List[str]] """ ress = [] locs = [-1] * n checkarray = [[True] * n, [True] * (2 * n - 1), [True] * (2 * n - 1)] def put(dep, checkarray): if dep == n: ress.append(["." * loc + "Q" + "." * (n - loc - 1) for loc in locs]) return for i in range(n): if checkarray[0][i] and checkarray[1][dep+i] and checkarray[2][dep-i+n-1]: checkarray[0][i], checkarray[1][dep + i], checkarray[2][dep - i + n - 1] = False, False, False locs[dep] = i put(dep+1,checkarray) checkarray[0][i], checkarray[1][dep + i], checkarray[2][dep - i + n - 1] = True, True, True put(0, checkarray) return ress if __name__ == "__main__": sol = Solution() sol.solveNQueens(1)