content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
''' This solution worked out because it has a time complexity of O(N) ''' # you can write to stdout for debugging purposes, e.g. # print("this is a debug message") def solution(A): # write your code in Python 3.6 lengthy = len(A) if (lengthy == 0 or lengthy == 1): return 0 diffies =[] maxy = sum(A) tempy = 0 for i in range(0, lengthy-1, 1): tempy = tempy + A[i] diffies.append(abs(maxy-tempy-tempy)) print('diffies ',diffies) # print(min(diffies)) return(min(diffies))
""" This solution worked out because it has a time complexity of O(N) """ def solution(A): lengthy = len(A) if lengthy == 0 or lengthy == 1: return 0 diffies = [] maxy = sum(A) tempy = 0 for i in range(0, lengthy - 1, 1): tempy = tempy + A[i] diffies.append(abs(maxy - tempy - tempy)) print('diffies ', diffies) return min(diffies)
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ============================================================================= # # ============================================================================= __author__ = 'Chet Coenen' __copyright__ = 'Copyright 2020' __credits__ = ['Chet Coenen'] __license__ = '/LICENSE' __version__ = '1.0' __maintainer__ = 'Chet Coenen' __email__ = 'chet.m.coenen@icloud.com' __socials__ = '@Denimbeard' __status__ = 'Complete' __description__ = 'et of code to convert a whole number from base 10 to variable base without directly using base conversions' __date__ = '30 November 2020 at 15:42' #============================================================================== n = int(input("Input a whole number to convert from base 10: ")) #User inputs a whole positive number, converted to an int b = int(input("Input a base to convert into: ")) #User inputs the new base for their number, converted to an int def toDigits(n, b): #Convert a positive number n to its digit representation in base b. digits = [] #Digits is an empty array that will fill with the math while n > 0: #While your whole number is greater than 0 do the following digits.insert(0, n % b) #Insert into position 0 of digits array the remainder of n/b n = n // b #Your whole number now equals the previous whole number divided by b, rounded down return digits #Print the array named digits list = toDigits(n, b) #Sets the resulting array to the variable list def convert(list): #Converts the array into a single number res = int("".join(map(str, list))) return res cr = convert(list) print("The number {n} converted to base {b} is: {cr}." .format(n=n, b=b, cr=cr)) #Gives results
__author__ = 'Chet Coenen' __copyright__ = 'Copyright 2020' __credits__ = ['Chet Coenen'] __license__ = '/LICENSE' __version__ = '1.0' __maintainer__ = 'Chet Coenen' __email__ = 'chet.m.coenen@icloud.com' __socials__ = '@Denimbeard' __status__ = 'Complete' __description__ = 'et of code to convert a whole number from base 10 to variable base without directly using base conversions' __date__ = '30 November 2020 at 15:42' n = int(input('Input a whole number to convert from base 10: ')) b = int(input('Input a base to convert into: ')) def to_digits(n, b): digits = [] while n > 0: digits.insert(0, n % b) n = n // b return digits list = to_digits(n, b) def convert(list): res = int(''.join(map(str, list))) return res cr = convert(list) print('The number {n} converted to base {b} is: {cr}.'.format(n=n, b=b, cr=cr))
# EASY # find all multiples less than n # ex Input 6 # arr = [1:True, 2:True ,3:True ,4:True ,5:True ] # start from 2, mark 2*2, 2*3, 2*4 ... False # Time O(N^2) Space O(N) class Solution: def countPrimes(self, n: int) -> int: arr = [1 for _ in range(n)] count = 0 for i in range(2,n): j = 2 while arr[i] and i*j < n: arr[i*j] = 0 j += 1 for i in range(2,n): if arr[i]: count+= 1 return count
class Solution: def count_primes(self, n: int) -> int: arr = [1 for _ in range(n)] count = 0 for i in range(2, n): j = 2 while arr[i] and i * j < n: arr[i * j] = 0 j += 1 for i in range(2, n): if arr[i]: count += 1 return count
class ViewModel: current_model = None def __init__(self, view): self.view = view def switch(self, model): self.clear_annotation() self.current_model = model self.view.show(model) def get_current_id(self): return self.current_model.identifier def clear_annotation(self): self.view.clear_annotation() def show_annotation(self, annotation): self.view.show_annotation(annotation)
class Viewmodel: current_model = None def __init__(self, view): self.view = view def switch(self, model): self.clear_annotation() self.current_model = model self.view.show(model) def get_current_id(self): return self.current_model.identifier def clear_annotation(self): self.view.clear_annotation() def show_annotation(self, annotation): self.view.show_annotation(annotation)
var1 = "Hello World" var2 = 100 # while something is true do stuff while(var2 < 110): print("still less than 110!") var2 += 1 else: print(f"Not less than 110: var2 = {var2}")
var1 = 'Hello World' var2 = 100 while var2 < 110: print('still less than 110!') var2 += 1 else: print(f'Not less than 110: var2 = {var2}')
def sort_carries(carries): sorted_results = {"loss": [], "no_gain": [], "short_gain": [], "med_gain": [], "big_gain": []} for carry in carries: if carry < 0: sorted_results["loss"].append(carry) elif carry == 0: sorted_results["no_gain"].append(carry) elif 0 < carry < 5: sorted_results["short_gain"].append(carry) elif 5 <= carry < 10: sorted_results["med_gain"].append(carry) elif carry >= 10: sorted_results["big_gain"].append(carry) return sorted_results def bucket_carry_counts(raw_carries): sorted_carries = sort_carries(raw_carries) bucketed_carries = {'loss': len(sorted_carries['loss']), 'no_gain': len(sorted_carries['no_gain']), 'short_gain': len(sorted_carries['short_gain']), 'med_gain': len(sorted_carries['med_gain']), 'big_gain': len(sorted_carries['big_gain'])} return bucketed_carries
def sort_carries(carries): sorted_results = {'loss': [], 'no_gain': [], 'short_gain': [], 'med_gain': [], 'big_gain': []} for carry in carries: if carry < 0: sorted_results['loss'].append(carry) elif carry == 0: sorted_results['no_gain'].append(carry) elif 0 < carry < 5: sorted_results['short_gain'].append(carry) elif 5 <= carry < 10: sorted_results['med_gain'].append(carry) elif carry >= 10: sorted_results['big_gain'].append(carry) return sorted_results def bucket_carry_counts(raw_carries): sorted_carries = sort_carries(raw_carries) bucketed_carries = {'loss': len(sorted_carries['loss']), 'no_gain': len(sorted_carries['no_gain']), 'short_gain': len(sorted_carries['short_gain']), 'med_gain': len(sorted_carries['med_gain']), 'big_gain': len(sorted_carries['big_gain'])} return bucketed_carries
# # PySNMP MIB module CXPhysicalInterfaceManager-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CXPhysicalInterfaceManager-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:17:44 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection") cxPortManager, = mibBuilder.importSymbols("CXProduct-SMI", "cxPortManager") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") ObjectIdentity, IpAddress, MibIdentifier, Gauge32, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, Unsigned32, Counter64, Counter32, iso, TimeTicks, Bits, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "IpAddress", "MibIdentifier", "Gauge32", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "Unsigned32", "Counter64", "Counter32", "iso", "TimeTicks", "Bits", "NotificationType") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") cxPhyIfTable = MibTable((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 16, 3), ) if mibBuilder.loadTexts: cxPhyIfTable.setStatus('mandatory') cxPhyIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 16, 3, 1), ).setIndexNames((0, "CXPhysicalInterfaceManager-MIB", "cxPhyIfIndex")) if mibBuilder.loadTexts: cxPhyIfEntry.setStatus('mandatory') cxPhyIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 16, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cxPhyIfIndex.setStatus('mandatory') cxPhyIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 16, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28))).clone(namedValues=NamedValues(("others", 1), ("v24", 2), ("v35", 3), ("x21", 4), ("v34", 5), ("u-isdn-bri", 6), ("st-isdn-bri", 8), ("dds-56k", 10), ("dds-t1e1", 11), ("fxs-voice", 12), ("fxo-voice", 13), ("em-voice", 14), ("ethernet", 15), ("token-ring", 16), ("v35-eu", 17), ("hsIO", 18), ("usIO", 19), ("lanIO", 20), ("elIO", 21), ("voxIO", 22), ("tlIO", 23), ("t1e1IO", 24), ("dvc", 25), ("multi-io", 26), ("fast-ethernet", 27), ("atm-cell-io", 28)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cxPhyIfType.setStatus('mandatory') mibBuilder.exportSymbols("CXPhysicalInterfaceManager-MIB", cxPhyIfIndex=cxPhyIfIndex, cxPhyIfTable=cxPhyIfTable, cxPhyIfEntry=cxPhyIfEntry, cxPhyIfType=cxPhyIfType)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_size_constraint, single_value_constraint, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection') (cx_port_manager,) = mibBuilder.importSymbols('CXProduct-SMI', 'cxPortManager') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (object_identity, ip_address, mib_identifier, gauge32, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, unsigned32, counter64, counter32, iso, time_ticks, bits, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'IpAddress', 'MibIdentifier', 'Gauge32', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'Unsigned32', 'Counter64', 'Counter32', 'iso', 'TimeTicks', 'Bits', 'NotificationType') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') cx_phy_if_table = mib_table((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 16, 3)) if mibBuilder.loadTexts: cxPhyIfTable.setStatus('mandatory') cx_phy_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 16, 3, 1)).setIndexNames((0, 'CXPhysicalInterfaceManager-MIB', 'cxPhyIfIndex')) if mibBuilder.loadTexts: cxPhyIfEntry.setStatus('mandatory') cx_phy_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 16, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cxPhyIfIndex.setStatus('mandatory') cx_phy_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 16, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28))).clone(namedValues=named_values(('others', 1), ('v24', 2), ('v35', 3), ('x21', 4), ('v34', 5), ('u-isdn-bri', 6), ('st-isdn-bri', 8), ('dds-56k', 10), ('dds-t1e1', 11), ('fxs-voice', 12), ('fxo-voice', 13), ('em-voice', 14), ('ethernet', 15), ('token-ring', 16), ('v35-eu', 17), ('hsIO', 18), ('usIO', 19), ('lanIO', 20), ('elIO', 21), ('voxIO', 22), ('tlIO', 23), ('t1e1IO', 24), ('dvc', 25), ('multi-io', 26), ('fast-ethernet', 27), ('atm-cell-io', 28)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cxPhyIfType.setStatus('mandatory') mibBuilder.exportSymbols('CXPhysicalInterfaceManager-MIB', cxPhyIfIndex=cxPhyIfIndex, cxPhyIfTable=cxPhyIfTable, cxPhyIfEntry=cxPhyIfEntry, cxPhyIfType=cxPhyIfType)
def df_to_lower(data, cols=None): '''Convert all string values to lowercase data : pandas dataframe The dataframe to be cleaned cols : str, list, or None If None, an attempt will be made to turn all string columns into lowercase. ''' if isinstance(cols, str): cols = [cols] elif cols is None: cols = data.columns for col in cols: try: data[col] = data[col].str.lower() except AttributeError: pass return data
def df_to_lower(data, cols=None): """Convert all string values to lowercase data : pandas dataframe The dataframe to be cleaned cols : str, list, or None If None, an attempt will be made to turn all string columns into lowercase. """ if isinstance(cols, str): cols = [cols] elif cols is None: cols = data.columns for col in cols: try: data[col] = data[col].str.lower() except AttributeError: pass return data
def exercise_1(): a_word = "hello world" f = open("exo1.txt",'a') f.write(a_word) f.close() def save_list2file(sentences, filename): f = open(filename,"w") f.close()
def exercise_1(): a_word = 'hello world' f = open('exo1.txt', 'a') f.write(a_word) f.close() def save_list2file(sentences, filename): f = open(filename, 'w') f.close()
''' The .pivot_table() method has several useful arguments, including fill_value and margins. fill_value replaces missing values with a real value (known as imputation). What to replace missing values with is a topic big enough to have its own course (Dealing with Missing Data in Python), but the simplest thing to do is to substitute a dummy value. margins is a shortcut for when you pivoted by two variables, but also wanted to pivot by each of those variables separately: it gives the row and column totals of the pivot table contents. In this exercise, you'll practice using these arguments to up your pivot table skills, which will help you crunch numbers more efficiently! ''' # Print mean weekly_sales by department and type; fill missing values with 0 print(sales.pivot_table(values="weekly_sales", index="type", columns="department", fill_value=0)) # Print the mean weekly_sales by department and type; fill missing values with 0s; sum all rows and cols print(sales.pivot_table(values="weekly_sales", index="department", columns="type", fill_value=0, margins=True))
""" The .pivot_table() method has several useful arguments, including fill_value and margins. fill_value replaces missing values with a real value (known as imputation). What to replace missing values with is a topic big enough to have its own course (Dealing with Missing Data in Python), but the simplest thing to do is to substitute a dummy value. margins is a shortcut for when you pivoted by two variables, but also wanted to pivot by each of those variables separately: it gives the row and column totals of the pivot table contents. In this exercise, you'll practice using these arguments to up your pivot table skills, which will help you crunch numbers more efficiently! """ print(sales.pivot_table(values='weekly_sales', index='type', columns='department', fill_value=0)) print(sales.pivot_table(values='weekly_sales', index='department', columns='type', fill_value=0, margins=True))
def make_differences(arr): diff_arr = [0] * (len(arr) - 1) for i in range(1, len(arr)): diff_arr[i - 1] = arr[i] - arr[i - 1] return diff_arr def paths_reconstruction(arr): num_paths_arr = [0] * len(arr) num_paths_arr[-1] = 1 for i in range(len(arr) - 2, -1, -1): num_paths = 0 for j in range(1, 4): if i + j >= len(arr): break if arr[i+j] - arr[i] > 3: break num_paths += num_paths_arr[i + j] num_paths_arr[i] = num_paths return num_paths_arr[0]
def make_differences(arr): diff_arr = [0] * (len(arr) - 1) for i in range(1, len(arr)): diff_arr[i - 1] = arr[i] - arr[i - 1] return diff_arr def paths_reconstruction(arr): num_paths_arr = [0] * len(arr) num_paths_arr[-1] = 1 for i in range(len(arr) - 2, -1, -1): num_paths = 0 for j in range(1, 4): if i + j >= len(arr): break if arr[i + j] - arr[i] > 3: break num_paths += num_paths_arr[i + j] num_paths_arr[i] = num_paths return num_paths_arr[0]
#DictExample8.py student = {"name":"sumit","college":"stanford","grade":"A"} #this will prints whole key and values pairs using items() for x in student.items(): print(x) print("-----------------------------------------------------") #you can also store key and value in two differnet variable like for x,y in student.items(): print(x,"-",y)
student = {'name': 'sumit', 'college': 'stanford', 'grade': 'A'} for x in student.items(): print(x) print('-----------------------------------------------------') for (x, y) in student.items(): print(x, '-', y)
class config: global auth; auth = "YOUR TOKEN" # Enter your discord token for Auto-Login. global prefix; prefix = "$" # Enter your prefix for selfbot. global nitro_sniper; nitro_sniper = "true" # 'true' to enable nitro sniper, 'false' to disable. global giveaway_sniper; giveaway_sniper = "true" # 'true' to enable giveaway sniper, 'false' to disable.
class Config: global auth auth = 'YOUR TOKEN' global prefix prefix = '$' global nitro_sniper nitro_sniper = 'true' global giveaway_sniper giveaway_sniper = 'true'
# # PySNMP MIB module HUAWEI-IMA-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/HUAWEI-IMA-MIB # Produced by pysmi-0.0.7 at Sun Jul 3 11:25:20 2016 # On host localhost.localdomain platform Linux version 3.10.0-229.7.2.el7.x86_64 by user root # Using Python version 2.7.5 (default, Jun 24 2015, 00:41:19) # (Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") (NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") (ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint") (hwDatacomm,) = mibBuilder.importSymbols("HUAWEI-MIB", "hwDatacomm") (ifIndex, InterfaceIndexOrZero, InterfaceIndex,) = mibBuilder.importSymbols("IF-MIB", "ifIndex", "InterfaceIndexOrZero", "InterfaceIndex") (NotificationGroup, ModuleCompliance, ObjectGroup,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") (Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, enterprises, ModuleIdentity, Gauge32, iso, ObjectIdentity, Bits, Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "enterprises", "ModuleIdentity", "Gauge32", "iso", "ObjectIdentity", "Bits", "Counter32") (DisplayString, RowStatus, TextualConvention, DateAndTime,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "RowStatus", "TextualConvention", "DateAndTime") hwImaMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176)) hwImaMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1)) hwImaMibConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2)) hwImaNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3)) class MilliSeconds(Integer32, TextualConvention): pass class ImaGroupState(Integer32, TextualConvention): subtypeSpec = Integer32.subtypeSpec + SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ) namedValues = NamedValues(("notConfigured", 1), ("startUp", 2), ("startUpAck", 3), ("configAbortUnsupportedM", 4), ("configAbortIncompatibleSymmetry", 5), ("configAbortOther", 6), ("insufficientLinks", 7), ("blocked", 8), ("operational", 9), ("configAbortUnsupportedImaVersion", 10), ) class ImaGroupSymmetry(Integer32, TextualConvention): subtypeSpec = Integer32.subtypeSpec + SingleValueConstraint(1, 2, 3, ) namedValues = NamedValues(("symmetricOperation", 1), ("asymmetricOperation", 2), ("asymmetricConfiguration", 3), ) class ImaFrameLength(Integer32, TextualConvention): subtypeSpec = Integer32.subtypeSpec + SingleValueConstraint(1, 2, 3, 4, ) namedValues = NamedValues(("m32", 1), ("m64", 2), ("m128", 3), ("m256", 4), ) class ImaLinkState(Integer32, TextualConvention): subtypeSpec = Integer32.subtypeSpec + SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, ) namedValues = NamedValues(("notInGroup", 1), ("unusableNoGivenReason", 2), ("unusableFault", 3), ("unusableMisconnected", 4), ("unusableInhibited", 5), ("unusableFailed", 6), ("usable", 7), ("active", 8), ) hwImaGroupTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1), ) hwImaGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1), ).setIndexNames( (0, "HUAWEI-IMA-MIB", "hwImaGroupIfIndex")) hwImaGroupIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 1), InterfaceIndex()).setMaxAccess( "readonly") hwImaGroupNeState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 2), ImaGroupState()).setMaxAccess( "readonly") hwImaGroupFeState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 3), ImaGroupState()).setMaxAccess( "readonly") hwImaGroupSymmetry = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 4), ImaGroupSymmetry()).setMaxAccess( "readonly") hwImaGroupMinNumTxLinks = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess( "readcreate") hwImaGroupMinNumRxLinks = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess( "readcreate") hwImaGroupTxTimingRefLink = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 7), InterfaceIndexOrZero()).setMaxAccess("readonly") hwImaGroupRxTimingRefLink = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 8), InterfaceIndexOrZero()).setMaxAccess("readonly") hwImaGroupTxImaId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess( "readonly") hwImaGroupRxImaId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess( "readonly") hwImaGroupTxFrameLength = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 11), ImaFrameLength()).setMaxAccess("readcreate") hwImaGroupRxFrameLength = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 12), ImaFrameLength()).setMaxAccess("readonly") hwImaGroupDiffDelayMax = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 13), MilliSeconds().subtype(subtypeSpec=ValueRangeConstraint(25, 120))).setMaxAccess( "readcreate") hwImaGroupAlphaValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2))).setMaxAccess( "readonly") hwImaGroupBetaValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 5))).setMaxAccess( "readonly") hwImaGroupGammaValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 5))).setMaxAccess( "readonly") hwImaGroupNumTxActLinks = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 17), Gauge32()).setMaxAccess( "readonly") hwImaGroupNumRxActLinks = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 18), Gauge32()).setMaxAccess( "readonly") hwImaGroupTxOamLabelValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess( "readonly") hwImaGroupRxOamLabelValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess( "readonly") hwImaGroupFirstLinkIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 21), InterfaceIndex()).setMaxAccess("readonly") hwImaGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 22), OctetString()).setMaxAccess( "accessiblefornotify") hwImaLinkTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2), ) hwImaLinkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1), ).setIndexNames( (0, "HUAWEI-IMA-MIB", "hwImaLinkIfIndex")) hwImaLinkIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 1), InterfaceIndex()) hwImaLinkGroupIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 2), InterfaceIndex()).setMaxAccess( "readcreate") hwImaLinkNeTxState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 3), ImaLinkState()).setMaxAccess( "readonly") hwImaLinkNeRxState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 4), ImaLinkState()).setMaxAccess( "readonly") hwImaLinkFeTxState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 5), ImaLinkState()).setMaxAccess( "readonly") hwImaLinkFeRxState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 6), ImaLinkState()).setMaxAccess( "readonly") hwImaLinkRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 51), RowStatus()).setMaxAccess( "readcreate") hwImaLinkName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 52), OctetString()).setMaxAccess( "accessiblefornotify") hwImaAlarmTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3), ) hwImaAlarmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1), ).setIndexNames( (0, "HUAWEI-IMA-MIB", "hwImaAlarmIfIndex")) hwImaAlarmIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 1), Integer32()) hwImaGroupNeDownEn = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 2), Integer32()).setMaxAccess( "readwrite") hwImaGroupFeDownEn = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 3), Integer32()).setMaxAccess( "readwrite") hwImaGroupTxClkMismatchEn = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 4), Integer32()).setMaxAccess( "readwrite") hwImaLinkLifEn = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 5), Integer32()).setMaxAccess("readwrite") hwImaLinkLodsEn = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 6), Integer32()).setMaxAccess( "readwrite") hwImaLinkRfiEn = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 7), Integer32()).setMaxAccess("readwrite") hwImaLinkFeTxUnusableEn = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 8), Integer32()).setMaxAccess( "readwrite") hwImaLinkFeRxUnusableEn = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 9), Integer32()).setMaxAccess( "readwrite") hwIMAAllEn = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 10), Integer32()).setMaxAccess("readwrite") hwImaMibGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 1)) hwImaMibCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 2)) hwImaMibCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 2, 1)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaGroupGroup"), ("HUAWEI-IMA-MIB", "hwImaLinkGroup"),)) hwImaGroupGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 1, 1)).setObjects(*( ("HUAWEI-IMA-MIB", "hwImaGroupIfIndex"), ("HUAWEI-IMA-MIB", "hwImaGroupNeState"), ("HUAWEI-IMA-MIB", "hwImaGroupFeState"), ("HUAWEI-IMA-MIB", "hwImaGroupSymmetry"), ("HUAWEI-IMA-MIB", "hwImaGroupMinNumTxLinks"), ("HUAWEI-IMA-MIB", "hwImaGroupMinNumRxLinks"), ("HUAWEI-IMA-MIB", "hwImaGroupTxTimingRefLink"), ("HUAWEI-IMA-MIB", "hwImaGroupRxTimingRefLink"), ("HUAWEI-IMA-MIB", "hwImaGroupTxImaId"), ("HUAWEI-IMA-MIB", "hwImaGroupRxImaId"), ("HUAWEI-IMA-MIB", "hwImaGroupTxFrameLength"), ("HUAWEI-IMA-MIB", "hwImaGroupRxFrameLength"), ("HUAWEI-IMA-MIB", "hwImaGroupDiffDelayMax"), ("HUAWEI-IMA-MIB", "hwImaGroupAlphaValue"), ("HUAWEI-IMA-MIB", "hwImaGroupBetaValue"), ("HUAWEI-IMA-MIB", "hwImaGroupGammaValue"), ("HUAWEI-IMA-MIB", "hwImaGroupNumTxActLinks"), ("HUAWEI-IMA-MIB", "hwImaGroupNumRxActLinks"), ("HUAWEI-IMA-MIB", "hwImaGroupTxOamLabelValue"), ("HUAWEI-IMA-MIB", "hwImaGroupRxOamLabelValue"), ("HUAWEI-IMA-MIB", "hwImaGroupFirstLinkIfIndex"),)) hwImaLinkGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 1, 2)).setObjects(*( ("HUAWEI-IMA-MIB", "hwImaLinkGroupIfIndex"), ("HUAWEI-IMA-MIB", "hwImaLinkNeTxState"), ("HUAWEI-IMA-MIB", "hwImaLinkNeRxState"), ("HUAWEI-IMA-MIB", "hwImaLinkFeTxState"), ("HUAWEI-IMA-MIB", "hwImaLinkFeRxState"), ("HUAWEI-IMA-MIB", "hwImaLinkRowStatus"),)) hwImaGroupNeDownAlarm = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 1)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaGroupName"),)) hwImaGroupNeDownAlarmResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 2)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaGroupName"),)) hwImaGroupFeDownAlarm = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 3)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaGroupName"),)) hwImaGroupFeDownAlarmResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 4)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaGroupName"),)) hwImaGroupTxClkMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 5)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaGroupName"),)) hwImaGroupTxClkMismatchResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 6)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaGroupName"),)) hwImaLinkLifAlarm = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 7)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaLinkName"),)) hwImaLinkLifAlarmResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 8)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaLinkName"),)) hwImaLinkLodsAlarm = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 9)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaLinkName"),)) hwImaLinkLodsAlarmResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 10)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaLinkName"),)) hwImaLinkRfiAlarm = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 11)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaLinkName"),)) hwImaLinkRfiAlarmResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 12)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaLinkName"),)) hwImaLinkFeTxUnusableAlarm = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 13)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaLinkName"),)) hwImaLinkFeTxUnusableAlarmResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 14)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaLinkName"),)) hwImaLinkFeRxUnusableAlarm = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 15)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaLinkName"),)) hwImaLinkFeRxUnusableAlarmResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 16)).setObjects( *(("HUAWEI-IMA-MIB", "hwImaLinkName"),)) mibBuilder.exportSymbols("HUAWEI-IMA-MIB", hwImaGroupFirstLinkIfIndex=hwImaGroupFirstLinkIfIndex, hwImaLinkFeRxState=hwImaLinkFeRxState, PYSNMP_MODULE_ID=hwImaMIB, hwImaLinkRfiEn=hwImaLinkRfiEn, hwImaGroupNumRxActLinks=hwImaGroupNumRxActLinks, hwImaLinkRfiAlarmResume=hwImaLinkRfiAlarmResume, hwImaLinkLifAlarm=hwImaLinkLifAlarm, hwImaGroupTxClkMismatch=hwImaGroupTxClkMismatch, hwImaGroupRxOamLabelValue=hwImaGroupRxOamLabelValue, hwImaLinkLifEn=hwImaLinkLifEn, hwImaGroupFeDownAlarmResume=hwImaGroupFeDownAlarmResume, hwImaLinkNeRxState=hwImaLinkNeRxState, hwImaGroupFeDownAlarm=hwImaGroupFeDownAlarm, ImaGroupState=ImaGroupState, hwImaAlarmIfIndex=hwImaAlarmIfIndex, hwImaGroupNeDownEn=hwImaGroupNeDownEn, hwImaLinkEntry=hwImaLinkEntry, hwImaGroupRxTimingRefLink=hwImaGroupRxTimingRefLink, hwImaGroupNeDownAlarm=hwImaGroupNeDownAlarm, hwImaGroupTable=hwImaGroupTable, hwImaLinkFeTxState=hwImaLinkFeTxState, ImaGroupSymmetry=ImaGroupSymmetry, hwImaLinkName=hwImaLinkName, hwImaLinkLodsEn=hwImaLinkLodsEn, hwImaGroupFeState=hwImaGroupFeState, hwImaLinkIfIndex=hwImaLinkIfIndex, hwImaGroupMinNumRxLinks=hwImaGroupMinNumRxLinks, hwImaMIB=hwImaMIB, hwImaGroupGroup=hwImaGroupGroup, hwImaLinkFeTxUnusableEn=hwImaLinkFeTxUnusableEn, hwImaNotifications=hwImaNotifications, hwImaGroupFeDownEn=hwImaGroupFeDownEn, hwImaGroupTxImaId=hwImaGroupTxImaId, hwImaGroupTxFrameLength=hwImaGroupTxFrameLength, hwIMAAllEn=hwIMAAllEn, ImaLinkState=ImaLinkState, hwImaLinkFeRxUnusableAlarm=hwImaLinkFeRxUnusableAlarm, hwImaLinkFeRxUnusableAlarmResume=hwImaLinkFeRxUnusableAlarmResume, hwImaLinkLifAlarmResume=hwImaLinkLifAlarmResume, hwImaGroupNeDownAlarmResume=hwImaGroupNeDownAlarmResume, hwImaGroupEntry=hwImaGroupEntry, hwImaMibCompliances=hwImaMibCompliances, hwImaAlarmEntry=hwImaAlarmEntry, hwImaLinkRowStatus=hwImaLinkRowStatus, hwImaLinkLodsAlarm=hwImaLinkLodsAlarm, hwImaGroupNeState=hwImaGroupNeState, hwImaMibCompliance=hwImaMibCompliance, hwImaLinkFeTxUnusableAlarm=hwImaLinkFeTxUnusableAlarm, hwImaGroupIfIndex=hwImaGroupIfIndex, hwImaGroupTxClkMismatchEn=hwImaGroupTxClkMismatchEn, hwImaGroupDiffDelayMax=hwImaGroupDiffDelayMax, hwImaGroupRxFrameLength=hwImaGroupRxFrameLength, hwImaGroupTxClkMismatchResume=hwImaGroupTxClkMismatchResume, hwImaGroupTxOamLabelValue=hwImaGroupTxOamLabelValue, hwImaGroupTxTimingRefLink=hwImaGroupTxTimingRefLink, hwImaGroupBetaValue=hwImaGroupBetaValue, hwImaGroupName=hwImaGroupName, hwImaMibGroups=hwImaMibGroups, hwImaGroupRxImaId=hwImaGroupRxImaId, hwImaLinkFeRxUnusableEn=hwImaLinkFeRxUnusableEn, hwImaAlarmTable=hwImaAlarmTable, hwImaLinkNeTxState=hwImaLinkNeTxState, hwImaGroupSymmetry=hwImaGroupSymmetry, hwImaMibConformance=hwImaMibConformance, hwImaMibObjects=hwImaMibObjects, MilliSeconds=MilliSeconds, hwImaGroupMinNumTxLinks=hwImaGroupMinNumTxLinks, hwImaLinkTable=hwImaLinkTable, hwImaLinkGroup=hwImaLinkGroup, hwImaLinkRfiAlarm=hwImaLinkRfiAlarm, ImaFrameLength=ImaFrameLength, hwImaGroupGammaValue=hwImaGroupGammaValue, hwImaGroupAlphaValue=hwImaGroupAlphaValue, hwImaLinkLodsAlarmResume=hwImaLinkLodsAlarmResume, hwImaGroupNumTxActLinks=hwImaGroupNumTxActLinks, hwImaLinkFeTxUnusableAlarmResume=hwImaLinkFeTxUnusableAlarmResume, hwImaLinkGroupIfIndex=hwImaLinkGroupIfIndex)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, single_value_constraint, constraints_intersection, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint') (hw_datacomm,) = mibBuilder.importSymbols('HUAWEI-MIB', 'hwDatacomm') (if_index, interface_index_or_zero, interface_index) = mibBuilder.importSymbols('IF-MIB', 'ifIndex', 'InterfaceIndexOrZero', 'InterfaceIndex') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, mib_identifier, ip_address, time_ticks, counter64, unsigned32, enterprises, module_identity, gauge32, iso, object_identity, bits, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'MibIdentifier', 'IpAddress', 'TimeTicks', 'Counter64', 'Unsigned32', 'enterprises', 'ModuleIdentity', 'Gauge32', 'iso', 'ObjectIdentity', 'Bits', 'Counter32') (display_string, row_status, textual_convention, date_and_time) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'RowStatus', 'TextualConvention', 'DateAndTime') hw_ima_mib = module_identity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176)) hw_ima_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1)) hw_ima_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2)) hw_ima_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3)) class Milliseconds(Integer32, TextualConvention): pass class Imagroupstate(Integer32, TextualConvention): subtype_spec = Integer32.subtypeSpec + single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) named_values = named_values(('notConfigured', 1), ('startUp', 2), ('startUpAck', 3), ('configAbortUnsupportedM', 4), ('configAbortIncompatibleSymmetry', 5), ('configAbortOther', 6), ('insufficientLinks', 7), ('blocked', 8), ('operational', 9), ('configAbortUnsupportedImaVersion', 10)) class Imagroupsymmetry(Integer32, TextualConvention): subtype_spec = Integer32.subtypeSpec + single_value_constraint(1, 2, 3) named_values = named_values(('symmetricOperation', 1), ('asymmetricOperation', 2), ('asymmetricConfiguration', 3)) class Imaframelength(Integer32, TextualConvention): subtype_spec = Integer32.subtypeSpec + single_value_constraint(1, 2, 3, 4) named_values = named_values(('m32', 1), ('m64', 2), ('m128', 3), ('m256', 4)) class Imalinkstate(Integer32, TextualConvention): subtype_spec = Integer32.subtypeSpec + single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8) named_values = named_values(('notInGroup', 1), ('unusableNoGivenReason', 2), ('unusableFault', 3), ('unusableMisconnected', 4), ('unusableInhibited', 5), ('unusableFailed', 6), ('usable', 7), ('active', 8)) hw_ima_group_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1)) hw_ima_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1)).setIndexNames((0, 'HUAWEI-IMA-MIB', 'hwImaGroupIfIndex')) hw_ima_group_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 1), interface_index()).setMaxAccess('readonly') hw_ima_group_ne_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 2), ima_group_state()).setMaxAccess('readonly') hw_ima_group_fe_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 3), ima_group_state()).setMaxAccess('readonly') hw_ima_group_symmetry = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 4), ima_group_symmetry()).setMaxAccess('readonly') hw_ima_group_min_num_tx_links = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readcreate') hw_ima_group_min_num_rx_links = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readcreate') hw_ima_group_tx_timing_ref_link = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 7), interface_index_or_zero()).setMaxAccess('readonly') hw_ima_group_rx_timing_ref_link = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 8), interface_index_or_zero()).setMaxAccess('readonly') hw_ima_group_tx_ima_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') hw_ima_group_rx_ima_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') hw_ima_group_tx_frame_length = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 11), ima_frame_length()).setMaxAccess('readcreate') hw_ima_group_rx_frame_length = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 12), ima_frame_length()).setMaxAccess('readonly') hw_ima_group_diff_delay_max = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 13), milli_seconds().subtype(subtypeSpec=value_range_constraint(25, 120))).setMaxAccess('readcreate') hw_ima_group_alpha_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(1, 2))).setMaxAccess('readonly') hw_ima_group_beta_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(1, 5))).setMaxAccess('readonly') hw_ima_group_gamma_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(1, 5))).setMaxAccess('readonly') hw_ima_group_num_tx_act_links = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 17), gauge32()).setMaxAccess('readonly') hw_ima_group_num_rx_act_links = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 18), gauge32()).setMaxAccess('readonly') hw_ima_group_tx_oam_label_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') hw_ima_group_rx_oam_label_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') hw_ima_group_first_link_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 21), interface_index()).setMaxAccess('readonly') hw_ima_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 22), octet_string()).setMaxAccess('accessiblefornotify') hw_ima_link_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2)) hw_ima_link_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1)).setIndexNames((0, 'HUAWEI-IMA-MIB', 'hwImaLinkIfIndex')) hw_ima_link_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 1), interface_index()) hw_ima_link_group_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 2), interface_index()).setMaxAccess('readcreate') hw_ima_link_ne_tx_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 3), ima_link_state()).setMaxAccess('readonly') hw_ima_link_ne_rx_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 4), ima_link_state()).setMaxAccess('readonly') hw_ima_link_fe_tx_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 5), ima_link_state()).setMaxAccess('readonly') hw_ima_link_fe_rx_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 6), ima_link_state()).setMaxAccess('readonly') hw_ima_link_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 51), row_status()).setMaxAccess('readcreate') hw_ima_link_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 52), octet_string()).setMaxAccess('accessiblefornotify') hw_ima_alarm_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3)) hw_ima_alarm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1)).setIndexNames((0, 'HUAWEI-IMA-MIB', 'hwImaAlarmIfIndex')) hw_ima_alarm_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 1), integer32()) hw_ima_group_ne_down_en = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 2), integer32()).setMaxAccess('readwrite') hw_ima_group_fe_down_en = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 3), integer32()).setMaxAccess('readwrite') hw_ima_group_tx_clk_mismatch_en = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 4), integer32()).setMaxAccess('readwrite') hw_ima_link_lif_en = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 5), integer32()).setMaxAccess('readwrite') hw_ima_link_lods_en = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 6), integer32()).setMaxAccess('readwrite') hw_ima_link_rfi_en = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 7), integer32()).setMaxAccess('readwrite') hw_ima_link_fe_tx_unusable_en = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 8), integer32()).setMaxAccess('readwrite') hw_ima_link_fe_rx_unusable_en = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 9), integer32()).setMaxAccess('readwrite') hw_ima_all_en = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 3, 1, 10), integer32()).setMaxAccess('readwrite') hw_ima_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 1)) hw_ima_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 2)) hw_ima_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 2, 1)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaGroupGroup'), ('HUAWEI-IMA-MIB', 'hwImaLinkGroup'))) hw_ima_group_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 1, 1)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaGroupIfIndex'), ('HUAWEI-IMA-MIB', 'hwImaGroupNeState'), ('HUAWEI-IMA-MIB', 'hwImaGroupFeState'), ('HUAWEI-IMA-MIB', 'hwImaGroupSymmetry'), ('HUAWEI-IMA-MIB', 'hwImaGroupMinNumTxLinks'), ('HUAWEI-IMA-MIB', 'hwImaGroupMinNumRxLinks'), ('HUAWEI-IMA-MIB', 'hwImaGroupTxTimingRefLink'), ('HUAWEI-IMA-MIB', 'hwImaGroupRxTimingRefLink'), ('HUAWEI-IMA-MIB', 'hwImaGroupTxImaId'), ('HUAWEI-IMA-MIB', 'hwImaGroupRxImaId'), ('HUAWEI-IMA-MIB', 'hwImaGroupTxFrameLength'), ('HUAWEI-IMA-MIB', 'hwImaGroupRxFrameLength'), ('HUAWEI-IMA-MIB', 'hwImaGroupDiffDelayMax'), ('HUAWEI-IMA-MIB', 'hwImaGroupAlphaValue'), ('HUAWEI-IMA-MIB', 'hwImaGroupBetaValue'), ('HUAWEI-IMA-MIB', 'hwImaGroupGammaValue'), ('HUAWEI-IMA-MIB', 'hwImaGroupNumTxActLinks'), ('HUAWEI-IMA-MIB', 'hwImaGroupNumRxActLinks'), ('HUAWEI-IMA-MIB', 'hwImaGroupTxOamLabelValue'), ('HUAWEI-IMA-MIB', 'hwImaGroupRxOamLabelValue'), ('HUAWEI-IMA-MIB', 'hwImaGroupFirstLinkIfIndex'))) hw_ima_link_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 1, 2)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaLinkGroupIfIndex'), ('HUAWEI-IMA-MIB', 'hwImaLinkNeTxState'), ('HUAWEI-IMA-MIB', 'hwImaLinkNeRxState'), ('HUAWEI-IMA-MIB', 'hwImaLinkFeTxState'), ('HUAWEI-IMA-MIB', 'hwImaLinkFeRxState'), ('HUAWEI-IMA-MIB', 'hwImaLinkRowStatus'))) hw_ima_group_ne_down_alarm = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 1)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaGroupName'),)) hw_ima_group_ne_down_alarm_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 2)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaGroupName'),)) hw_ima_group_fe_down_alarm = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 3)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaGroupName'),)) hw_ima_group_fe_down_alarm_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 4)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaGroupName'),)) hw_ima_group_tx_clk_mismatch = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 5)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaGroupName'),)) hw_ima_group_tx_clk_mismatch_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 6)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaGroupName'),)) hw_ima_link_lif_alarm = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 7)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaLinkName'),)) hw_ima_link_lif_alarm_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 8)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaLinkName'),)) hw_ima_link_lods_alarm = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 9)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaLinkName'),)) hw_ima_link_lods_alarm_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 10)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaLinkName'),)) hw_ima_link_rfi_alarm = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 11)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaLinkName'),)) hw_ima_link_rfi_alarm_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 12)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaLinkName'),)) hw_ima_link_fe_tx_unusable_alarm = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 13)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaLinkName'),)) hw_ima_link_fe_tx_unusable_alarm_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 14)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaLinkName'),)) hw_ima_link_fe_rx_unusable_alarm = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 15)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaLinkName'),)) hw_ima_link_fe_rx_unusable_alarm_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 3, 16)).setObjects(*(('HUAWEI-IMA-MIB', 'hwImaLinkName'),)) mibBuilder.exportSymbols('HUAWEI-IMA-MIB', hwImaGroupFirstLinkIfIndex=hwImaGroupFirstLinkIfIndex, hwImaLinkFeRxState=hwImaLinkFeRxState, PYSNMP_MODULE_ID=hwImaMIB, hwImaLinkRfiEn=hwImaLinkRfiEn, hwImaGroupNumRxActLinks=hwImaGroupNumRxActLinks, hwImaLinkRfiAlarmResume=hwImaLinkRfiAlarmResume, hwImaLinkLifAlarm=hwImaLinkLifAlarm, hwImaGroupTxClkMismatch=hwImaGroupTxClkMismatch, hwImaGroupRxOamLabelValue=hwImaGroupRxOamLabelValue, hwImaLinkLifEn=hwImaLinkLifEn, hwImaGroupFeDownAlarmResume=hwImaGroupFeDownAlarmResume, hwImaLinkNeRxState=hwImaLinkNeRxState, hwImaGroupFeDownAlarm=hwImaGroupFeDownAlarm, ImaGroupState=ImaGroupState, hwImaAlarmIfIndex=hwImaAlarmIfIndex, hwImaGroupNeDownEn=hwImaGroupNeDownEn, hwImaLinkEntry=hwImaLinkEntry, hwImaGroupRxTimingRefLink=hwImaGroupRxTimingRefLink, hwImaGroupNeDownAlarm=hwImaGroupNeDownAlarm, hwImaGroupTable=hwImaGroupTable, hwImaLinkFeTxState=hwImaLinkFeTxState, ImaGroupSymmetry=ImaGroupSymmetry, hwImaLinkName=hwImaLinkName, hwImaLinkLodsEn=hwImaLinkLodsEn, hwImaGroupFeState=hwImaGroupFeState, hwImaLinkIfIndex=hwImaLinkIfIndex, hwImaGroupMinNumRxLinks=hwImaGroupMinNumRxLinks, hwImaMIB=hwImaMIB, hwImaGroupGroup=hwImaGroupGroup, hwImaLinkFeTxUnusableEn=hwImaLinkFeTxUnusableEn, hwImaNotifications=hwImaNotifications, hwImaGroupFeDownEn=hwImaGroupFeDownEn, hwImaGroupTxImaId=hwImaGroupTxImaId, hwImaGroupTxFrameLength=hwImaGroupTxFrameLength, hwIMAAllEn=hwIMAAllEn, ImaLinkState=ImaLinkState, hwImaLinkFeRxUnusableAlarm=hwImaLinkFeRxUnusableAlarm, hwImaLinkFeRxUnusableAlarmResume=hwImaLinkFeRxUnusableAlarmResume, hwImaLinkLifAlarmResume=hwImaLinkLifAlarmResume, hwImaGroupNeDownAlarmResume=hwImaGroupNeDownAlarmResume, hwImaGroupEntry=hwImaGroupEntry, hwImaMibCompliances=hwImaMibCompliances, hwImaAlarmEntry=hwImaAlarmEntry, hwImaLinkRowStatus=hwImaLinkRowStatus, hwImaLinkLodsAlarm=hwImaLinkLodsAlarm, hwImaGroupNeState=hwImaGroupNeState, hwImaMibCompliance=hwImaMibCompliance, hwImaLinkFeTxUnusableAlarm=hwImaLinkFeTxUnusableAlarm, hwImaGroupIfIndex=hwImaGroupIfIndex, hwImaGroupTxClkMismatchEn=hwImaGroupTxClkMismatchEn, hwImaGroupDiffDelayMax=hwImaGroupDiffDelayMax, hwImaGroupRxFrameLength=hwImaGroupRxFrameLength, hwImaGroupTxClkMismatchResume=hwImaGroupTxClkMismatchResume, hwImaGroupTxOamLabelValue=hwImaGroupTxOamLabelValue, hwImaGroupTxTimingRefLink=hwImaGroupTxTimingRefLink, hwImaGroupBetaValue=hwImaGroupBetaValue, hwImaGroupName=hwImaGroupName, hwImaMibGroups=hwImaMibGroups, hwImaGroupRxImaId=hwImaGroupRxImaId, hwImaLinkFeRxUnusableEn=hwImaLinkFeRxUnusableEn, hwImaAlarmTable=hwImaAlarmTable, hwImaLinkNeTxState=hwImaLinkNeTxState, hwImaGroupSymmetry=hwImaGroupSymmetry, hwImaMibConformance=hwImaMibConformance, hwImaMibObjects=hwImaMibObjects, MilliSeconds=MilliSeconds, hwImaGroupMinNumTxLinks=hwImaGroupMinNumTxLinks, hwImaLinkTable=hwImaLinkTable, hwImaLinkGroup=hwImaLinkGroup, hwImaLinkRfiAlarm=hwImaLinkRfiAlarm, ImaFrameLength=ImaFrameLength, hwImaGroupGammaValue=hwImaGroupGammaValue, hwImaGroupAlphaValue=hwImaGroupAlphaValue, hwImaLinkLodsAlarmResume=hwImaLinkLodsAlarmResume, hwImaGroupNumTxActLinks=hwImaGroupNumTxActLinks, hwImaLinkFeTxUnusableAlarmResume=hwImaLinkFeTxUnusableAlarmResume, hwImaLinkGroupIfIndex=hwImaLinkGroupIfIndex)
@auth.requires_membership('admin') def album(): grid = SQLFORM.grid(db.t_mtalbum) return dict(grid=grid) @auth.requires_membership('admin') def dataset(): grid = SQLFORM.grid(db.t_mtdataset) return dict(grid=grid) @auth.requires_membership('admin') def item(): grid = SQLFORM.grid(db.t_mtitem) return dict(grid=grid) @auth.requires_membership('admin') def itemtype(): grid = SQLFORM.grid(db.t_mtitemtype) return dict(grid=grid) @auth.requires_membership('admin') def search(): grid = SQLFORM.grid(db.t_mtsearch) return dict(grid=grid) @auth.requires_membership('admin') def user(): grid = SQLFORM.grid(db.t_mtuser) return dict(grid=grid)
@auth.requires_membership('admin') def album(): grid = SQLFORM.grid(db.t_mtalbum) return dict(grid=grid) @auth.requires_membership('admin') def dataset(): grid = SQLFORM.grid(db.t_mtdataset) return dict(grid=grid) @auth.requires_membership('admin') def item(): grid = SQLFORM.grid(db.t_mtitem) return dict(grid=grid) @auth.requires_membership('admin') def itemtype(): grid = SQLFORM.grid(db.t_mtitemtype) return dict(grid=grid) @auth.requires_membership('admin') def search(): grid = SQLFORM.grid(db.t_mtsearch) return dict(grid=grid) @auth.requires_membership('admin') def user(): grid = SQLFORM.grid(db.t_mtuser) return dict(grid=grid)
n = int(input().strip()) value1 = 0 value2 = 0 for i in range(n): a_t = [int(a_temp) for a_temp in input().strip().split(' ')] value1 += a_t[i] value2 += a_t[-1-i] print(abs(value2-value1))
n = int(input().strip()) value1 = 0 value2 = 0 for i in range(n): a_t = [int(a_temp) for a_temp in input().strip().split(' ')] value1 += a_t[i] value2 += a_t[-1 - i] print(abs(value2 - value1))
def test(): # noqa assert 1 + 1 == 2 def test_multi_line_args(math_fixture, *args, **kwargs): # noqa assert 1 + 1 == 2
def test(): assert 1 + 1 == 2 def test_multi_line_args(math_fixture, *args, **kwargs): assert 1 + 1 == 2
def checkio(str_number, radix): try: return int(str_number,radix) except: return -1 #These "asserts" using only for self-checking and not necessary for auto-testing if __name__ == '__main__': assert checkio("AF", 16) == 175, "Hex" assert checkio("101", 2) == 5, "Bin" assert checkio("101", 5) == 26, "5 base" assert checkio("Z", 36) == 35, "Z base" assert checkio("AB", 10) == -1, "B > A = 10" print("Coding complete? Click 'Check' to review your tests and earn cool rewards!")
def checkio(str_number, radix): try: return int(str_number, radix) except: return -1 if __name__ == '__main__': assert checkio('AF', 16) == 175, 'Hex' assert checkio('101', 2) == 5, 'Bin' assert checkio('101', 5) == 26, '5 base' assert checkio('Z', 36) == 35, 'Z base' assert checkio('AB', 10) == -1, 'B > A = 10' print("Coding complete? Click 'Check' to review your tests and earn cool rewards!")
async def _asyncWrapWith(res, wrapper_fn): result = await res return wrapper_fn(result["id"]) def wrapWith(res, wrapper_fn): if isinstance(res, dict): return wrapper_fn(res) else: return _asyncWrapWith(res, wrapper_fn)
async def _asyncWrapWith(res, wrapper_fn): result = await res return wrapper_fn(result['id']) def wrap_with(res, wrapper_fn): if isinstance(res, dict): return wrapper_fn(res) else: return _async_wrap_with(res, wrapper_fn)
#!/usr/bin/env python # encoding: utf-8 def run(whatweb, pluginname): whatweb.recog_from_file(pluginname, "themes\default\Wikiwyg\Wikiwy\Phpwiki.js", "phpwiki")
def run(whatweb, pluginname): whatweb.recog_from_file(pluginname, 'themes\\default\\Wikiwyg\\Wikiwy\\Phpwiki.js', 'phpwiki')
__author__ = "Prikly Grayp" __license__ = "MIT" __version__ = "1.0.0" __email__ = "priklygrayp@gmail.com" __status__ = "Development" def first(iterable): iterator = iter(iterable) try: return next(iterator) except StopIteration: raise ValueError('iterable is empty') first(['Spring', 'Summer', 'Autumn', 'Winter'])
__author__ = 'Prikly Grayp' __license__ = 'MIT' __version__ = '1.0.0' __email__ = 'priklygrayp@gmail.com' __status__ = 'Development' def first(iterable): iterator = iter(iterable) try: return next(iterator) except StopIteration: raise value_error('iterable is empty') first(['Spring', 'Summer', 'Autumn', 'Winter'])
# https://leetcode.com/problems/kids-with-the-greatest-number-of-candies/submissions/ class Solution: def kidsWithCandies(self, candies: [int], extraCandies: int) -> [bool]: maxCandies = max(candies, default=0) return [True if v + extraCandies >= maxCandies else False for v in candies]
class Solution: def kids_with_candies(self, candies: [int], extraCandies: int) -> [bool]: max_candies = max(candies, default=0) return [True if v + extraCandies >= maxCandies else False for v in candies]
# Alternating Characters # Developer: Murillo Grubler # Link: https://www.hackerrank.com/challenges/alternating-characters/problem # Time complexity: O(n) def alternatingCharacters(s): sumChars = 0 for i in range(len(s)): if i == 0 or tempChar != s[i]: tempChar = s[i] continue if tempChar == s[i]: sumChars += 1 return sumChars q = int(input().strip()) for a0 in range(q): print(alternatingCharacters(input().strip()))
def alternating_characters(s): sum_chars = 0 for i in range(len(s)): if i == 0 or tempChar != s[i]: temp_char = s[i] continue if tempChar == s[i]: sum_chars += 1 return sumChars q = int(input().strip()) for a0 in range(q): print(alternating_characters(input().strip()))
# A simple use of user defined functions in python def greet_user(name): print(f"Hi {name}!") print("Welcome Aboard!") print("Start") greet_user("Kwadwo") greet_user("Sammy") print("finish")
def greet_user(name): print(f'Hi {name}!') print('Welcome Aboard!') print('Start') greet_user('Kwadwo') greet_user('Sammy') print('finish')
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def insertionSortList(self, head: ListNode) -> ListNode: dummyHead = ListNode(float('-inf'), head) currentNode = dummyHead.next while currentNode and currentNode.next: if currentNode.val <= currentNode.next.val: currentNode = currentNode.next else: tempNode = currentNode.next currentNode.next = tempNode.next iterator = dummyHead while iterator.next and iterator.next.val <= tempNode.val: iterator = iterator.next tempNode.next = iterator.next iterator.next = tempNode return dummyHead.next
class Solution: def insertion_sort_list(self, head: ListNode) -> ListNode: dummy_head = list_node(float('-inf'), head) current_node = dummyHead.next while currentNode and currentNode.next: if currentNode.val <= currentNode.next.val: current_node = currentNode.next else: temp_node = currentNode.next currentNode.next = tempNode.next iterator = dummyHead while iterator.next and iterator.next.val <= tempNode.val: iterator = iterator.next tempNode.next = iterator.next iterator.next = tempNode return dummyHead.next
def Factorial_Head(n): # Base Case: 0! = 1 if(n == 0): return 1 # Recursion result1 = Factorial_Head(n-1) result2 = n * result1 return result2 def Factorial_Tail(n, accumulator): # Base Case: 0! = 1 if( n == 0): return accumulator # Recursion return Factorial_Tail(n-1, n*accumulator) # n = 5 # 1st loop: n=5, accumulator= 1 # 2nd loop: n=4, accumulator= 5 # 3rd loop: n=3, accumulator= 20 # 4th loop: n=2, accumulator= 60 # 5th loop: n=1, accumulator= 120 (answer) n = 5 head = Factorial_Head(n) print(f"Factorial {n} using HEAD Recursion: {head}") n = 6 tail = Factorial_Tail(n, 1) print(f"Factorial {n} using TAIL Recursion: {tail}")
def factorial__head(n): if n == 0: return 1 result1 = factorial__head(n - 1) result2 = n * result1 return result2 def factorial__tail(n, accumulator): if n == 0: return accumulator return factorial__tail(n - 1, n * accumulator) n = 5 head = factorial__head(n) print(f'Factorial {n} using HEAD Recursion: {head}') n = 6 tail = factorial__tail(n, 1) print(f'Factorial {n} using TAIL Recursion: {tail}')
class palin: def __init__(self,string): self.string=string s=self.string a=[] for i in s: a.append(i) b=[] for i in range(len(a)-1,-1,-1): b.append(a[i]) if(a==b): print('True') else: print('False') # if __name__=='__main__': # obj=palin('kaif') # obj.check()
class Palin: def __init__(self, string): self.string = string s = self.string a = [] for i in s: a.append(i) b = [] for i in range(len(a) - 1, -1, -1): b.append(a[i]) if a == b: print('True') else: print('False')
class UnboundDataPullException(Exception): pass class DataPullInProgressError(Exception): pass
class Unbounddatapullexception(Exception): pass class Datapullinprogresserror(Exception): pass
print("To define a new function, you use 'def+<your_function_name>+(+<your_params_comma_separated>+)', example: 'def myFunction(param1, param2, ..., paramn)'") # Creating a simple function and calling it print("Creating simple function and calling it") def sayHello(name): print("Hello",name) sayHello("balam909") # Defining a simple function with default params print("Creating a simple function with default params") def giveMeTwoNumbersAndAText(number1, number2, myText="This is my default text"): print("number1:",number1,"number2:",number2,"myText:",myText) print("This function receive 3 parameters, if we have 'default values' defined, we can call this function without send the parameter(s) that has a default value asigned") print("The function 'giveMeTwoNumbersAndAText' has 2 parameters with non default value and 1 parameter with a default value") print("The function looks like this: 'giveMeTwoNumbersAndAText(number1, number2, myText=\"This is my default text\")'") print("This is a call with the 3 parameters: giveMeTwoNumbersAndAText(1,2,\"Look at this awesome value\")") giveMeTwoNumbersAndAText(1,2,"Look at this awesome value") print("This is a call with 2 parameters: giveMeTwoNumbersAndAText(1,2)") giveMeTwoNumbersAndAText(1,2) print("If you do not have a default value for a param, you can not call the function without it") print("For example: 'giveMeTwoNumbersAndAText(1)' will result in an error") print("The default value is evaluated only once, when we define the function, so it not possible to change it arround the execution") print("In python we can follow the argument order, or we can add the 'key,value' pair") print("A valid example could be giveMeTwoNumbersAndAText(1, myText=\"Some Text\", number2=10)") giveMeTwoNumbersAndAText(1, myText="Some Text", number2=10) print("Once we use the 'key/value' definition, we have to use the 'key/value' for the next elements, an invalid call for this case looks like this: giveMeTwoNumbersAndAText(1, myText=\"Some Text\", 10)") # Defining a function receiving pocitional arguments print("Defining a function receiving pocitional arguments") def sayAbunchOfWords(*args): for arg in args: print(arg) print("A call with cero arg") sayAbunchOfWords() print("A call with one arg") sayAbunchOfWords("one") print("A call with two args") sayAbunchOfWords("one","two") print("A call with three arg") sayAbunchOfWords("one","two","three") # Defining a function receiving a dictionary print("Defining a function receiving a dictionary") def printMyDictionary(**myDictionary): for key in myDictionary.keys(): print("The key:",key+"_k",",","The value:",myDictionary[key]+"_v") print("This is the function call with a dictionary as an input") printMyDictionary(param1="param1", param2="param2", param3="param3")
print("To define a new function, you use 'def+<your_function_name>+(+<your_params_comma_separated>+)', example: 'def myFunction(param1, param2, ..., paramn)'") print('Creating simple function and calling it') def say_hello(name): print('Hello', name) say_hello('balam909') print('Creating a simple function with default params') def give_me_two_numbers_and_a_text(number1, number2, myText='This is my default text'): print('number1:', number1, 'number2:', number2, 'myText:', myText) print("This function receive 3 parameters, if we have 'default values' defined, we can call this function without send the parameter(s) that has a default value asigned") print("The function 'giveMeTwoNumbersAndAText' has 2 parameters with non default value and 1 parameter with a default value") print('The function looks like this: \'giveMeTwoNumbersAndAText(number1, number2, myText="This is my default text")\'') print('This is a call with the 3 parameters: giveMeTwoNumbersAndAText(1,2,"Look at this awesome value")') give_me_two_numbers_and_a_text(1, 2, 'Look at this awesome value') print('This is a call with 2 parameters: giveMeTwoNumbersAndAText(1,2)') give_me_two_numbers_and_a_text(1, 2) print('If you do not have a default value for a param, you can not call the function without it') print("For example: 'giveMeTwoNumbersAndAText(1)' will result in an error") print('The default value is evaluated only once, when we define the function, so it not possible to change it arround the execution') print("In python we can follow the argument order, or we can add the 'key,value' pair") print('A valid example could be giveMeTwoNumbersAndAText(1, myText="Some Text", number2=10)') give_me_two_numbers_and_a_text(1, myText='Some Text', number2=10) print('Once we use the \'key/value\' definition, we have to use the \'key/value\' for the next elements, an invalid call for this case looks like this: giveMeTwoNumbersAndAText(1, myText="Some Text", 10)') print('Defining a function receiving pocitional arguments') def say_abunch_of_words(*args): for arg in args: print(arg) print('A call with cero arg') say_abunch_of_words() print('A call with one arg') say_abunch_of_words('one') print('A call with two args') say_abunch_of_words('one', 'two') print('A call with three arg') say_abunch_of_words('one', 'two', 'three') print('Defining a function receiving a dictionary') def print_my_dictionary(**myDictionary): for key in myDictionary.keys(): print('The key:', key + '_k', ',', 'The value:', myDictionary[key] + '_v') print('This is the function call with a dictionary as an input') print_my_dictionary(param1='param1', param2='param2', param3='param3')
class Solution: def brokenCalc(self, X: int, Y: int) -> int: count = 0 while Y>X: if Y%2==0: Y //= 2 else: Y += 1 count += 1 return count + X - Y
class Solution: def broken_calc(self, X: int, Y: int) -> int: count = 0 while Y > X: if Y % 2 == 0: y //= 2 else: y += 1 count += 1 return count + X - Y
s = float(input('What is the salary of the functionary? $')) if s > 1250.00: t = s + s * 0.10 print(f'His salary increased by 10% and is now {t:.2f}') else: f = s + s * 0.15 print(f'His salary increased by 15% and is now {f:.2f}')
s = float(input('What is the salary of the functionary? $')) if s > 1250.0: t = s + s * 0.1 print(f'His salary increased by 10% and is now {t:.2f}') else: f = s + s * 0.15 print(f'His salary increased by 15% and is now {f:.2f}')
condition_table_true = ["lt", "gt", "eq"] condition_table_false = ["ge", "le", "ne"] trap_condition_table = { 1: "lgt", 2: "llt", 4: "eq", 5: "lge", 8: "gt", 12: "ge", 16: "lt", 20: "le", 31: "u" } spr_table = { 8: "lr", 9: "ctr" } def decodeI(value): return (value >> 2) & 0xFFFFFF, (value >> 1) & 1, value & 1 def decodeB(value): return (value >> 21) & 0x1F, (value >> 16) & 0x1F, (value >> 2) & 0x3FFF, (value >> 1) & 1, value & 1 def decodeD(value): return (value >> 21) & 0x1F, (value >> 16) & 0x1F, value & 0xFFFF def decodeX(value): return (value >> 21) & 0x1F, (value >> 16) & 0x1F, (value >> 11) & 0x1F, (value >> 1) & 0x3FF, value & 1 def extend_sign(value, bits=16): if value & 1 << (bits - 1): value -= 1 << bits return value def ihex(value): return "-" * (value < 0) + "0x" + hex(value).lstrip("-0x").rstrip("L").zfill(1).upper() def decodeCond(BO, BI): #TODO: Better condition code if BO == 20: return "" if BO & 1: return "?" if BI > 2: return "?" if BO == 4: return condition_table_false[BI] if BO == 12: return condition_table_true[BI] return "?" def loadStore(value, regtype="r"): D, A, d = decodeD(value) d = extend_sign(d) return "%s%i, %s(r%i)" %(regtype, D, ihex(d), A) def loadStoreX(D, A, B, pad): if pad: return "<invalid>" return "r%i, %s, r%i" %(D, ("r%i" %A) if A else "0", B) def add(D, A, B, Rc): return "add%s" %("." * Rc), "r%i, r%i, r%i" %(D, A, B) def addi(value, addr): D, A, SIMM = decodeD(value) SIMM = extend_sign(SIMM) if A == 0: return "li", "r%i, %s" %(D, ihex(SIMM)) return "addi", "r%i, r%i, %s" %(D, A, ihex(SIMM)) def addic(value, addr): D, A, SIMM = decodeD(value) SIMM = extend_sign(SIMM) return "addic", "r%i, r%i, %s" %(D, A, ihex(SIMM)) def addic_(value, addr): D, A, SIMM = decodeD(value) SIMM = extend_sign(SIMM) return "addic.", "r%i, r%i, %s" %(D, A, ihex(SIMM)) def addis(value, addr): D, A, SIMM = decodeD(value) SIMM = extend_sign(SIMM) if A == 0: return "lis", "r%i, %s" %(D, ihex(SIMM)) return "addis", "r%i, r%i, %s" %(D, A, ihex(SIMM)) def and_(S, A, B, Rc): return "and%s" % ("." * Rc), "r%i, r%i, r%i" % (A, S, B) def b(value, addr): LI, AA, LK = decodeI(value) LI = extend_sign(LI, 24) * 4 if AA: dst = LI else: dst = addr + LI return "b%s%s" %("l" * LK, "a" * AA), ihex(dst) def bc(value, addr): BO, BI, BD, AA, LK = decodeB(value) LI = extend_sign(LK, 14) * 4 instr = "b" + decodeCond(BO, BI) if LK: instr += "l" if AA: instr += "a" dst = LI else: dst = addr + LI return instr, ihex(dst) def bcctr(BO, BI, pad, LK): if pad: return "<invalid>" instr = "b" + decodeCond(BO, BI) + "ctr" if LK: instr += "l" return instr def bclr(BO, BI, pad, LK): if pad: return "<invalid>" instr = "b" + decodeCond(BO, BI) + "lr" if LK: instr += "l" return instr def cmp(cr, A, B, pad): if pad: return "<invalid>" if cr & 3: return "<invalid>" return "cmp", "cr%i, r%i, r%i" %(cr >> 2, A, B) def cmpi(value, addr): cr, A, SIMM = decodeD(value) SIMM = extend_sign(SIMM) if cr & 3: return "<invalid>" return "cmpwi", "cr%i, r%i, %s" %(cr >> 2, A, ihex(SIMM)) def cmpl(cr, A, B, pad): if pad: return "<invalid>" if cr & 3: return "<invalid>" return "cmplw", "cr%i, r%i, r%i" %(cr >> 2, A, B) def cmpli(value, addr): cr, A, UIMM = decodeD(value) if cr & 3: return "<invalid>" return "cmplwi", "cr%i, r%i, %s" %(cr >> 2, A, ihex(UIMM)) def cntlzw(S, A, pad, Rc): if pad: return "<invalid>" return "cntlzw%s" %("." * Rc), "r%i, r%i" %(A, S) def dcbst(pad1, A, B, pad2): if pad1 or pad2: return "<invalid>" return "dcbst", "r%i, r%i" %(A, B) def fmr(D, pad, B, Rc): if pad: return "<invalid>" return "fmr%s" %("." * Rc), "f%i, f%i" %(D, B) def fneg(D, pad, B, Rc): if pad: return "<invalid>" return "fneg%s" %("." * Rc), "f%i, f%i" %(D, B) def mfspr(D, sprLo, sprHi, pad): if pad: return "<invalid>" sprnum = (sprHi << 5) | sprLo if sprnum not in spr_table: spr = "?" else: spr = spr_table[sprnum] return "mf%s" %spr, "r%i" %D def mtspr(S, sprLo, sprHi, pad): if pad: return "<invalid>" sprnum = (sprHi << 5) | sprLo if sprnum not in spr_table: spr = ihex(sprnum) else: spr = spr_table[sprnum] return "mt%s" %spr, "r%i" %S def lbz(value, addr): return "lbz", loadStore(value) def lfd(value, addr): return "lfd", loadStore(value, "f") def lfs(value, addr): return "lfs", loadStore(value, "f") def lmw(value, addr): return "lmw", loadStore(value) def lwz(value, addr): return "lwz", loadStore(value) def lwzu(value, addr): return "lwzu", loadStore(value) def lwarx(D, A, B, pad): return "lwarx", loadStoreX(D, A, B, pad) def lwzx(D, A, B, pad): return "lwzx", loadStoreX(D, A, B, pad) def or_(S, A, B, Rc): if S == B: return "mr%s" %("." * Rc), "r%i, r%i" %(A, S) return "or%s" %("." * Rc), "r%i, r%i, r%i" %(A, S, B) def ori(value, addr): S, A, UIMM = decodeD(value) if UIMM == 0: return "nop" return "ori", "r%s, r%s, %s" %(A, S, ihex(UIMM)) def oris(value, addr): S, A, UIMM = decodeD(value) return "oris", "r%s, r%s, %s" %(A, S, ihex(UIMM)) def rlwinm(value, addr): S, A, SH, M, Rc = decodeX(value) MB = M >> 5 ME = M & 0x1F dot = "." * Rc if SH == 0 and MB == 0 and ME == 31: return "nop" if MB == 0 and ME == 31 - SH: return "slwi%s" %dot, "r%i, r%i, %i" %(A, S, SH) if ME == 31 and SH == 32 - MB: return "srwi%s" %dot, "r%i, r%i, %i" %(A, S, MB) if MB == 0 and ME < 31: return "extlwi%s" %dot, "r%i, r%i, %i,%i" %(A, S, ME + 1, SH) #extrwi if MB == 0 and ME == 31: if SH >= 16: return "rotlwi%s" %dot, "r%i, r%i, %i" %(A, S, SH) return "rotrwi%s" %dot, "r%i, r%i, %i" %(A, S, 32 - SH) if SH == 0 and ME == 31: return "clrlwi%s" %dot, "r%i, r%i, %i" %(A, S, MB) if SH == 0 and MB == 0: return "clrrwi%s" %dot, "r%i, r%i, %i" %(A, S, 31 - ME) #clrlslwi return "rlwinm%s" %dot, "r%i, r%i, r%i,r%i,r%i" %(A, S, SH, MB, ME) def sc(value, addr): if value & 0x3FFFFFF != 2: return "<invalid>" return "sc" def stb(value, addr): return "stb", loadStore(value) def stfd(value, addr): return "stfd", loadStore(value, "f") def stfs(value, addr): return "stfs", loadStore(value, "f") def stfsu(value, addr): return "stfsu", loadStore(value, "f") def stmw(value, addr): return "stmw", loadStore(value) def stw(value, addr): return "stw", loadStore(value) def stwu(value, addr): return "stwu", loadStore(value) def stbx(S, A, B, pad): return "stbx", loadStoreX(S, A, B, pad) def stwx(S, A, B, pad): return "stwx", loadStoreX(S, A, B, pad) def stwcx(S, A, B, pad): return "stwcx", loadStoreX(S, A, B, pad ^ 1) def tw(TO, A, B, pad): if pad: return "<invalid>" if TO == 31 and A == 0 and B == 0: return "trap" if TO not in trap_condition_table: condition = "?" else: condition = trap_condition_table[TO] return "tw%s" %condition, "r%i, r%i" %(A, B) opcode_table_ext1 = { 16: bclr, 528: bcctr } opcode_table_ext2 = { 0: cmp, 4: tw, 20: lwarx, 23: lwzx, 26: cntlzw, 28: and_, 32: cmpl, 54: dcbst, 150: stwcx, 151: stwx, 215: stbx, 266: add, 339: mfspr, 444: or_, 467: mtspr } opcode_table_float_ext1 = { 40: fneg, 72: fmr } def ext1(value, addr): DS, A, B, XO, Rc = decodeX(value) if not XO in opcode_table_ext1: return "ext1 - %s" %bin(XO) return opcode_table_ext1[XO](DS, A, B, Rc) def ext2(value, addr): DS, A, B, XO, Rc = decodeX(value) if not XO in opcode_table_ext2: return "ext2 - %s" %bin(XO) return opcode_table_ext2[XO](DS, A, B, Rc) def float_ext1(value, addr): D, A, B, XO, Rc = decodeX(value) if not XO in opcode_table_float_ext1: return "float_ext1 - %s" %bin(XO) return opcode_table_float_ext1[XO](D, A, B, Rc) opcode_table = { 10: cmpli, 11: cmpi, 12: addic, 13: addic_, 14: addi, 15: addis, 16: bc, 17: sc, 18: b, 19: ext1, 21: rlwinm, 24: ori, 25: oris, 31: ext2, 32: lwz, 33: lwzu, 34: lbz, 36: stw, 37: stwu, 38: stb, 46: lmw, 47: stmw, 48: lfs, 50: lfd, 52: stfs, 53: stfsu, 54: stfd, 63: float_ext1 } def disassemble(value, address): opcode = value >> 26 if opcode not in opcode_table: return "???" instr = opcode_table[opcode](value, address) if type(instr) == str: return instr return instr[0] + " " * (10 - len(instr[0])) + instr[1]
condition_table_true = ['lt', 'gt', 'eq'] condition_table_false = ['ge', 'le', 'ne'] trap_condition_table = {1: 'lgt', 2: 'llt', 4: 'eq', 5: 'lge', 8: 'gt', 12: 'ge', 16: 'lt', 20: 'le', 31: 'u'} spr_table = {8: 'lr', 9: 'ctr'} def decode_i(value): return (value >> 2 & 16777215, value >> 1 & 1, value & 1) def decode_b(value): return (value >> 21 & 31, value >> 16 & 31, value >> 2 & 16383, value >> 1 & 1, value & 1) def decode_d(value): return (value >> 21 & 31, value >> 16 & 31, value & 65535) def decode_x(value): return (value >> 21 & 31, value >> 16 & 31, value >> 11 & 31, value >> 1 & 1023, value & 1) def extend_sign(value, bits=16): if value & 1 << bits - 1: value -= 1 << bits return value def ihex(value): return '-' * (value < 0) + '0x' + hex(value).lstrip('-0x').rstrip('L').zfill(1).upper() def decode_cond(BO, BI): if BO == 20: return '' if BO & 1: return '?' if BI > 2: return '?' if BO == 4: return condition_table_false[BI] if BO == 12: return condition_table_true[BI] return '?' def load_store(value, regtype='r'): (d, a, d) = decode_d(value) d = extend_sign(d) return '%s%i, %s(r%i)' % (regtype, D, ihex(d), A) def load_store_x(D, A, B, pad): if pad: return '<invalid>' return 'r%i, %s, r%i' % (D, 'r%i' % A if A else '0', B) def add(D, A, B, Rc): return ('add%s' % ('.' * Rc), 'r%i, r%i, r%i' % (D, A, B)) def addi(value, addr): (d, a, simm) = decode_d(value) simm = extend_sign(SIMM) if A == 0: return ('li', 'r%i, %s' % (D, ihex(SIMM))) return ('addi', 'r%i, r%i, %s' % (D, A, ihex(SIMM))) def addic(value, addr): (d, a, simm) = decode_d(value) simm = extend_sign(SIMM) return ('addic', 'r%i, r%i, %s' % (D, A, ihex(SIMM))) def addic_(value, addr): (d, a, simm) = decode_d(value) simm = extend_sign(SIMM) return ('addic.', 'r%i, r%i, %s' % (D, A, ihex(SIMM))) def addis(value, addr): (d, a, simm) = decode_d(value) simm = extend_sign(SIMM) if A == 0: return ('lis', 'r%i, %s' % (D, ihex(SIMM))) return ('addis', 'r%i, r%i, %s' % (D, A, ihex(SIMM))) def and_(S, A, B, Rc): return ('and%s' % ('.' * Rc), 'r%i, r%i, r%i' % (A, S, B)) def b(value, addr): (li, aa, lk) = decode_i(value) li = extend_sign(LI, 24) * 4 if AA: dst = LI else: dst = addr + LI return ('b%s%s' % ('l' * LK, 'a' * AA), ihex(dst)) def bc(value, addr): (bo, bi, bd, aa, lk) = decode_b(value) li = extend_sign(LK, 14) * 4 instr = 'b' + decode_cond(BO, BI) if LK: instr += 'l' if AA: instr += 'a' dst = LI else: dst = addr + LI return (instr, ihex(dst)) def bcctr(BO, BI, pad, LK): if pad: return '<invalid>' instr = 'b' + decode_cond(BO, BI) + 'ctr' if LK: instr += 'l' return instr def bclr(BO, BI, pad, LK): if pad: return '<invalid>' instr = 'b' + decode_cond(BO, BI) + 'lr' if LK: instr += 'l' return instr def cmp(cr, A, B, pad): if pad: return '<invalid>' if cr & 3: return '<invalid>' return ('cmp', 'cr%i, r%i, r%i' % (cr >> 2, A, B)) def cmpi(value, addr): (cr, a, simm) = decode_d(value) simm = extend_sign(SIMM) if cr & 3: return '<invalid>' return ('cmpwi', 'cr%i, r%i, %s' % (cr >> 2, A, ihex(SIMM))) def cmpl(cr, A, B, pad): if pad: return '<invalid>' if cr & 3: return '<invalid>' return ('cmplw', 'cr%i, r%i, r%i' % (cr >> 2, A, B)) def cmpli(value, addr): (cr, a, uimm) = decode_d(value) if cr & 3: return '<invalid>' return ('cmplwi', 'cr%i, r%i, %s' % (cr >> 2, A, ihex(UIMM))) def cntlzw(S, A, pad, Rc): if pad: return '<invalid>' return ('cntlzw%s' % ('.' * Rc), 'r%i, r%i' % (A, S)) def dcbst(pad1, A, B, pad2): if pad1 or pad2: return '<invalid>' return ('dcbst', 'r%i, r%i' % (A, B)) def fmr(D, pad, B, Rc): if pad: return '<invalid>' return ('fmr%s' % ('.' * Rc), 'f%i, f%i' % (D, B)) def fneg(D, pad, B, Rc): if pad: return '<invalid>' return ('fneg%s' % ('.' * Rc), 'f%i, f%i' % (D, B)) def mfspr(D, sprLo, sprHi, pad): if pad: return '<invalid>' sprnum = sprHi << 5 | sprLo if sprnum not in spr_table: spr = '?' else: spr = spr_table[sprnum] return ('mf%s' % spr, 'r%i' % D) def mtspr(S, sprLo, sprHi, pad): if pad: return '<invalid>' sprnum = sprHi << 5 | sprLo if sprnum not in spr_table: spr = ihex(sprnum) else: spr = spr_table[sprnum] return ('mt%s' % spr, 'r%i' % S) def lbz(value, addr): return ('lbz', load_store(value)) def lfd(value, addr): return ('lfd', load_store(value, 'f')) def lfs(value, addr): return ('lfs', load_store(value, 'f')) def lmw(value, addr): return ('lmw', load_store(value)) def lwz(value, addr): return ('lwz', load_store(value)) def lwzu(value, addr): return ('lwzu', load_store(value)) def lwarx(D, A, B, pad): return ('lwarx', load_store_x(D, A, B, pad)) def lwzx(D, A, B, pad): return ('lwzx', load_store_x(D, A, B, pad)) def or_(S, A, B, Rc): if S == B: return ('mr%s' % ('.' * Rc), 'r%i, r%i' % (A, S)) return ('or%s' % ('.' * Rc), 'r%i, r%i, r%i' % (A, S, B)) def ori(value, addr): (s, a, uimm) = decode_d(value) if UIMM == 0: return 'nop' return ('ori', 'r%s, r%s, %s' % (A, S, ihex(UIMM))) def oris(value, addr): (s, a, uimm) = decode_d(value) return ('oris', 'r%s, r%s, %s' % (A, S, ihex(UIMM))) def rlwinm(value, addr): (s, a, sh, m, rc) = decode_x(value) mb = M >> 5 me = M & 31 dot = '.' * Rc if SH == 0 and MB == 0 and (ME == 31): return 'nop' if MB == 0 and ME == 31 - SH: return ('slwi%s' % dot, 'r%i, r%i, %i' % (A, S, SH)) if ME == 31 and SH == 32 - MB: return ('srwi%s' % dot, 'r%i, r%i, %i' % (A, S, MB)) if MB == 0 and ME < 31: return ('extlwi%s' % dot, 'r%i, r%i, %i,%i' % (A, S, ME + 1, SH)) if MB == 0 and ME == 31: if SH >= 16: return ('rotlwi%s' % dot, 'r%i, r%i, %i' % (A, S, SH)) return ('rotrwi%s' % dot, 'r%i, r%i, %i' % (A, S, 32 - SH)) if SH == 0 and ME == 31: return ('clrlwi%s' % dot, 'r%i, r%i, %i' % (A, S, MB)) if SH == 0 and MB == 0: return ('clrrwi%s' % dot, 'r%i, r%i, %i' % (A, S, 31 - ME)) return ('rlwinm%s' % dot, 'r%i, r%i, r%i,r%i,r%i' % (A, S, SH, MB, ME)) def sc(value, addr): if value & 67108863 != 2: return '<invalid>' return 'sc' def stb(value, addr): return ('stb', load_store(value)) def stfd(value, addr): return ('stfd', load_store(value, 'f')) def stfs(value, addr): return ('stfs', load_store(value, 'f')) def stfsu(value, addr): return ('stfsu', load_store(value, 'f')) def stmw(value, addr): return ('stmw', load_store(value)) def stw(value, addr): return ('stw', load_store(value)) def stwu(value, addr): return ('stwu', load_store(value)) def stbx(S, A, B, pad): return ('stbx', load_store_x(S, A, B, pad)) def stwx(S, A, B, pad): return ('stwx', load_store_x(S, A, B, pad)) def stwcx(S, A, B, pad): return ('stwcx', load_store_x(S, A, B, pad ^ 1)) def tw(TO, A, B, pad): if pad: return '<invalid>' if TO == 31 and A == 0 and (B == 0): return 'trap' if TO not in trap_condition_table: condition = '?' else: condition = trap_condition_table[TO] return ('tw%s' % condition, 'r%i, r%i' % (A, B)) opcode_table_ext1 = {16: bclr, 528: bcctr} opcode_table_ext2 = {0: cmp, 4: tw, 20: lwarx, 23: lwzx, 26: cntlzw, 28: and_, 32: cmpl, 54: dcbst, 150: stwcx, 151: stwx, 215: stbx, 266: add, 339: mfspr, 444: or_, 467: mtspr} opcode_table_float_ext1 = {40: fneg, 72: fmr} def ext1(value, addr): (ds, a, b, xo, rc) = decode_x(value) if not XO in opcode_table_ext1: return 'ext1 - %s' % bin(XO) return opcode_table_ext1[XO](DS, A, B, Rc) def ext2(value, addr): (ds, a, b, xo, rc) = decode_x(value) if not XO in opcode_table_ext2: return 'ext2 - %s' % bin(XO) return opcode_table_ext2[XO](DS, A, B, Rc) def float_ext1(value, addr): (d, a, b, xo, rc) = decode_x(value) if not XO in opcode_table_float_ext1: return 'float_ext1 - %s' % bin(XO) return opcode_table_float_ext1[XO](D, A, B, Rc) opcode_table = {10: cmpli, 11: cmpi, 12: addic, 13: addic_, 14: addi, 15: addis, 16: bc, 17: sc, 18: b, 19: ext1, 21: rlwinm, 24: ori, 25: oris, 31: ext2, 32: lwz, 33: lwzu, 34: lbz, 36: stw, 37: stwu, 38: stb, 46: lmw, 47: stmw, 48: lfs, 50: lfd, 52: stfs, 53: stfsu, 54: stfd, 63: float_ext1} def disassemble(value, address): opcode = value >> 26 if opcode not in opcode_table: return '???' instr = opcode_table[opcode](value, address) if type(instr) == str: return instr return instr[0] + ' ' * (10 - len(instr[0])) + instr[1]
__version__ = "2.2.3" __title__ = "taxidTools" __description__ = "A Python Toolkit for Taxonomy" __author__ = "Gregoire Denay" __author_email__ = 'gregoire.denay@cvua-rrw.de' __licence__ = 'BSD License' __url__ = "https://github.com/CVUA-RRW/taxidTools"
__version__ = '2.2.3' __title__ = 'taxidTools' __description__ = 'A Python Toolkit for Taxonomy' __author__ = 'Gregoire Denay' __author_email__ = 'gregoire.denay@cvua-rrw.de' __licence__ = 'BSD License' __url__ = 'https://github.com/CVUA-RRW/taxidTools'
#!/usr/bin/python3.3 S1 = 'abc' S2 = 'xyz123' z = zip(S1, S2) print(list(z)) print(list(zip([1, 2, 3], [2, 3, 4, 5]))) print(list(map(abs, [-2, -1, 0, 1, 2]))) print(list(map(pow, [1, 2, 3], [2, 3, 4, 5]))) print(list(map(lambda x, y: x+y, open('script2.py'), open('script2.py')))) print([x+y for (x, y) in zip(open('script2.py'), open('script2.py'))]) def mymap(func, *seqs): res = [] for x in zip(*seqs): res.append(func(*x)) return res print(list(mymap(abs, [-2, -1, 0, 1, 2]))) print(list(mymap(pow, [1, 2, 3], [2, 3, 4, 5]))) def mymap(func, *seqs): return [func(*x) for x in zip(*seqs)] print(list(mymap(abs, [-2, -1, 0, 1, 2]))) print(list(mymap(pow, [1, 2, 3], [2, 3, 4, 5]))) def mymap(func, *seqs): return (func(*x) for x in zip(*seqs)) print(list(mymap(abs, [-2, -1, 0, 1, 2]))) print(list(mymap(pow, [1, 2, 3], [2, 3, 4, 5]))) def mymap(func, *seqs): for x in zip(*seqs): yield func(*x) print(list(mymap(abs, [-2, -1, 0, 1, 2]))) print(list(mymap(pow, [1, 2, 3], [2, 3, 4, 5]))) def myzip(*seq): res = [] seqs = [list(S) for S in seq] while all(seqs): res.append(tuple(S.pop(0) for S in seqs)) return res print(list(myzip([1, 2, 3], [2, 3, 4, 5]))) print([x+y for (x, y) in zip(open('script2.py'), open('script2.py'))]) def mymappad(*seq, pad=None): res = [] seqs = [list(S) for S in seq] while any(seqs): res.append(tuple((S.pop(0) if S else pad) for S in seqs)) return res print(mymappad(S1, S2, pad=99)) print(mymappad(S1, S2)) def myzip(*seq): seqs = [list(S) for S in seq] while all(seqs): yield tuple(S.pop(0) for S in seqs) print(list(myzip([1, 2, 3], [2, 3, 4, 5]))) print([x+y for (x, y) in myzip(open('script2.py'), open('script2.py'))]) def mymappad(*seq, pad=None): seqs = [list(S) for S in seq] while any(seqs): yield tuple((S.pop(0) if S else pad) for S in seqs) print(list(mymappad(S1, S2, pad=99))) print(list(mymappad(S1, S2))) def myzip(*seq): minlen = min(len(S) for S in seq) return [tuple(S[i] for S in seq) for i in range(minlen)] print(list(myzip([1, 2, 3], [2, 3, 4, 5]))) def mymappad(*seq, pad=None): maxlen = max(len(S) for S in seq) return [tuple(S[i] if i < len(S) else pad for S in seq) for i in range(maxlen)] print(list(mymappad(S1, S2, pad=99))) print(list(mymappad(S1, S2))) def myzip(*seq): minlen = min(len(S) for S in seq) return (tuple(S[i] for S in seq) for i in range(minlen)) print(list(myzip([1, 2, 3], [2, 3, 4, 5]))) def myzip(*seq): iters = list(map(iter, seq)) i = 0 while iters: i = i+1 print(i) res = [next(i) for i in iters] print(bool(iters)) yield tuple(res) print('lala') print(list(myzip([1, 2, 3], [2, 3, 4, 5])))
s1 = 'abc' s2 = 'xyz123' z = zip(S1, S2) print(list(z)) print(list(zip([1, 2, 3], [2, 3, 4, 5]))) print(list(map(abs, [-2, -1, 0, 1, 2]))) print(list(map(pow, [1, 2, 3], [2, 3, 4, 5]))) print(list(map(lambda x, y: x + y, open('script2.py'), open('script2.py')))) print([x + y for (x, y) in zip(open('script2.py'), open('script2.py'))]) def mymap(func, *seqs): res = [] for x in zip(*seqs): res.append(func(*x)) return res print(list(mymap(abs, [-2, -1, 0, 1, 2]))) print(list(mymap(pow, [1, 2, 3], [2, 3, 4, 5]))) def mymap(func, *seqs): return [func(*x) for x in zip(*seqs)] print(list(mymap(abs, [-2, -1, 0, 1, 2]))) print(list(mymap(pow, [1, 2, 3], [2, 3, 4, 5]))) def mymap(func, *seqs): return (func(*x) for x in zip(*seqs)) print(list(mymap(abs, [-2, -1, 0, 1, 2]))) print(list(mymap(pow, [1, 2, 3], [2, 3, 4, 5]))) def mymap(func, *seqs): for x in zip(*seqs): yield func(*x) print(list(mymap(abs, [-2, -1, 0, 1, 2]))) print(list(mymap(pow, [1, 2, 3], [2, 3, 4, 5]))) def myzip(*seq): res = [] seqs = [list(S) for s in seq] while all(seqs): res.append(tuple((S.pop(0) for s in seqs))) return res print(list(myzip([1, 2, 3], [2, 3, 4, 5]))) print([x + y for (x, y) in zip(open('script2.py'), open('script2.py'))]) def mymappad(*seq, pad=None): res = [] seqs = [list(S) for s in seq] while any(seqs): res.append(tuple((S.pop(0) if S else pad for s in seqs))) return res print(mymappad(S1, S2, pad=99)) print(mymappad(S1, S2)) def myzip(*seq): seqs = [list(S) for s in seq] while all(seqs): yield tuple((S.pop(0) for s in seqs)) print(list(myzip([1, 2, 3], [2, 3, 4, 5]))) print([x + y for (x, y) in myzip(open('script2.py'), open('script2.py'))]) def mymappad(*seq, pad=None): seqs = [list(S) for s in seq] while any(seqs): yield tuple((S.pop(0) if S else pad for s in seqs)) print(list(mymappad(S1, S2, pad=99))) print(list(mymappad(S1, S2))) def myzip(*seq): minlen = min((len(S) for s in seq)) return [tuple((S[i] for s in seq)) for i in range(minlen)] print(list(myzip([1, 2, 3], [2, 3, 4, 5]))) def mymappad(*seq, pad=None): maxlen = max((len(S) for s in seq)) return [tuple((S[i] if i < len(S) else pad for s in seq)) for i in range(maxlen)] print(list(mymappad(S1, S2, pad=99))) print(list(mymappad(S1, S2))) def myzip(*seq): minlen = min((len(S) for s in seq)) return (tuple((S[i] for s in seq)) for i in range(minlen)) print(list(myzip([1, 2, 3], [2, 3, 4, 5]))) def myzip(*seq): iters = list(map(iter, seq)) i = 0 while iters: i = i + 1 print(i) res = [next(i) for i in iters] print(bool(iters)) yield tuple(res) print('lala') print(list(myzip([1, 2, 3], [2, 3, 4, 5])))
def make_singleton(class_): def __new__(cls, *args, **kwargs): raise Exception('class', cls.__name__, 'is a singleton') class_.__new__ = __new__
def make_singleton(class_): def __new__(cls, *args, **kwargs): raise exception('class', cls.__name__, 'is a singleton') class_.__new__ = __new__
def main(): a = int(input("Insira a idade do nadador: ")) if(a <= 5): print("Categoria: Bebe") elif(a > 5 and a <= 7): print("Categoria: Infantil A") elif(a >= 8 and a <= 10): print("Categoria: Infantil B") elif(a >= 11 and a <= 13): print("Categoria: Juvenil A") elif(a >= 14 and a <= 17): print("Categoria: Juvenil B") else: print("Categoria: Senior") main()
def main(): a = int(input('Insira a idade do nadador: ')) if a <= 5: print('Categoria: Bebe') elif a > 5 and a <= 7: print('Categoria: Infantil A') elif a >= 8 and a <= 10: print('Categoria: Infantil B') elif a >= 11 and a <= 13: print('Categoria: Juvenil A') elif a >= 14 and a <= 17: print('Categoria: Juvenil B') else: print('Categoria: Senior') main()
#Contains an (x,y) point, usually in projected coords. class Point: def __init__(self, x:float, y:float): self.x = x self.y = y def __repr__(self): return "Point(%f,%f)" % (self.x, self.y) def __str__(self): return "(%f,%f)" % (self.x, self.y) #Contains a (lat/lng) location, usually as +/- rather than E/W class Location: def __init__(self, lat:float, lng:float): self.lat = lat self.lng = lng def __repr__(self): return "Location(%f,%f)" % (self.lat, self.lng) def __str__(self): return "(%f,%f)" % (self.lat, self.lng)
class Point: def __init__(self, x: float, y: float): self.x = x self.y = y def __repr__(self): return 'Point(%f,%f)' % (self.x, self.y) def __str__(self): return '(%f,%f)' % (self.x, self.y) class Location: def __init__(self, lat: float, lng: float): self.lat = lat self.lng = lng def __repr__(self): return 'Location(%f,%f)' % (self.lat, self.lng) def __str__(self): return '(%f,%f)' % (self.lat, self.lng)
class Node: pass class BinaryNode(Node): def __init__(self, des, src1, src2): self.des=des self.src1=src1 self.src2=src2 class AdduNode(BinaryNode): def __str__(self): return f'addu {self.des}, {self.src1}, {self.src2}' class MuloNode(BinaryNode): def __str__(self): return f'mulo {self.des}, {self.src1}, {self.src2}' class DivuNode(BinaryNode): def __str__(self): return f'divu {self.des}, {self.src1}, {self.src2}' class SubuNode(BinaryNode): def __str__(self): return f'subu {self.des}, {self.src1}, {self.src2}' class SeqNode(BinaryNode): def __str__(self): return f'seq {self.des}, {self.src1}, {self.src2}' class SneNode(BinaryNode): def __str__(self): return f'sne {self.des}, {self.src1}, {self.src2}' class SgeuNode(BinaryNode): def __str__(self): return f'sgeu {self.des}, {self.src1}, {self.src2}' class SgtuNode(BinaryNode): def __str__(self): return f'sgtu {self.des}, {self.src1}, {self.src2}' class SleuNode(BinaryNode): def __str__(self): return f'sleu {self.des}, {self.src1}, {self.src2}' class SltuNode(BinaryNode): def __str__(self): return f'sltu {self.des}, {self.src1}, {self.src2}' class BNode(Node): def __init__(self, lab): self.lab=lab def __str__(self): return f'b {self.lab}' class BeqzNode(Node): def __init__(self,src, lab): self.src=src self.lab=lab def __str__(self): return f'beqz {self.src}, {self.lab}' class JNode(Node): def __init__(self, lab): self.lab=lab def __str__(self): return f'j {self.lab}' class JrNode(Node): def __init__(self, src): self.src=src def __str__(self): return f'jr {self.src}' class AddressNode(Node): pass class ConstAddrNode(AddressNode): def __init__(self, const): self.const=const def __str__(self): return self.const class RegAddrNode(AddressNode): def __init__(self, reg, const=None): self.const=const self.reg=reg def __str__(self): if self.const: return f'{self.const}({self.reg})' else: return f'({self.reg})' class SymbolAddrNode(AddressNode): def __init__(self, symbol, const=None, reg=None): self.symbol=symbol self.const=const self.reg=reg def __str__(self): if self.const and self.reg: return f'{self.symbol} + {self.const}({self.reg})' if self.const: return f'{self.symbol} + {self.const}' return self.symbol class LoadAddrNode(Node): def __init__(self, des, addr): self.des=des self.addr=addr class LaNode(LoadAddrNode): def __str__(self): return f'la {self.des}, {self.addr}' class LbuNode(LoadAddrNode): def __str__(self): return f'lbu {self.des}, {self.addr}' class LhuNode(LoadAddrNode): def __str__(self): return f'lhu {self.des}, {self.addr}' class LwNode(LoadAddrNode): def __str__(self): return f'lw {self.des}, {self.addr}' class Ulhu(LoadAddrNode): def __str__(self): return f'ulhu {self.des}, {self.addr}' class Ulw(LoadAddrNode): def __str__(self): return f'ulw {self.des}, {self.addr}' class LoadConstNode(Node): def __init__(self, des, const): self.des=des self.const=const class LuiNode(LoadConstNode): def __str__(self): return f'lui {self.des}, {self.const}' class LiNode(LoadConstNode): def __str__(self): return f'li {self.des}, {self.const}' class Move(Node): def __init__(self, src, des): self.des=des self.src=src def __str__(self): return f'move {self.des}, {self.src}' class UnaryNode(Node): def __init__(self, des, src): self.des=des self.src=src class NotNode(UnaryNode): def __str__(self): return f'la {self.des}, {self.src}' class SyscallNode(Node): def __str__(self): return 'syscall'
class Node: pass class Binarynode(Node): def __init__(self, des, src1, src2): self.des = des self.src1 = src1 self.src2 = src2 class Addunode(BinaryNode): def __str__(self): return f'addu {self.des}, {self.src1}, {self.src2}' class Mulonode(BinaryNode): def __str__(self): return f'mulo {self.des}, {self.src1}, {self.src2}' class Divunode(BinaryNode): def __str__(self): return f'divu {self.des}, {self.src1}, {self.src2}' class Subunode(BinaryNode): def __str__(self): return f'subu {self.des}, {self.src1}, {self.src2}' class Seqnode(BinaryNode): def __str__(self): return f'seq {self.des}, {self.src1}, {self.src2}' class Snenode(BinaryNode): def __str__(self): return f'sne {self.des}, {self.src1}, {self.src2}' class Sgeunode(BinaryNode): def __str__(self): return f'sgeu {self.des}, {self.src1}, {self.src2}' class Sgtunode(BinaryNode): def __str__(self): return f'sgtu {self.des}, {self.src1}, {self.src2}' class Sleunode(BinaryNode): def __str__(self): return f'sleu {self.des}, {self.src1}, {self.src2}' class Sltunode(BinaryNode): def __str__(self): return f'sltu {self.des}, {self.src1}, {self.src2}' class Bnode(Node): def __init__(self, lab): self.lab = lab def __str__(self): return f'b {self.lab}' class Beqznode(Node): def __init__(self, src, lab): self.src = src self.lab = lab def __str__(self): return f'beqz {self.src}, {self.lab}' class Jnode(Node): def __init__(self, lab): self.lab = lab def __str__(self): return f'j {self.lab}' class Jrnode(Node): def __init__(self, src): self.src = src def __str__(self): return f'jr {self.src}' class Addressnode(Node): pass class Constaddrnode(AddressNode): def __init__(self, const): self.const = const def __str__(self): return self.const class Regaddrnode(AddressNode): def __init__(self, reg, const=None): self.const = const self.reg = reg def __str__(self): if self.const: return f'{self.const}({self.reg})' else: return f'({self.reg})' class Symboladdrnode(AddressNode): def __init__(self, symbol, const=None, reg=None): self.symbol = symbol self.const = const self.reg = reg def __str__(self): if self.const and self.reg: return f'{self.symbol} + {self.const}({self.reg})' if self.const: return f'{self.symbol} + {self.const}' return self.symbol class Loadaddrnode(Node): def __init__(self, des, addr): self.des = des self.addr = addr class Lanode(LoadAddrNode): def __str__(self): return f'la {self.des}, {self.addr}' class Lbunode(LoadAddrNode): def __str__(self): return f'lbu {self.des}, {self.addr}' class Lhunode(LoadAddrNode): def __str__(self): return f'lhu {self.des}, {self.addr}' class Lwnode(LoadAddrNode): def __str__(self): return f'lw {self.des}, {self.addr}' class Ulhu(LoadAddrNode): def __str__(self): return f'ulhu {self.des}, {self.addr}' class Ulw(LoadAddrNode): def __str__(self): return f'ulw {self.des}, {self.addr}' class Loadconstnode(Node): def __init__(self, des, const): self.des = des self.const = const class Luinode(LoadConstNode): def __str__(self): return f'lui {self.des}, {self.const}' class Linode(LoadConstNode): def __str__(self): return f'li {self.des}, {self.const}' class Move(Node): def __init__(self, src, des): self.des = des self.src = src def __str__(self): return f'move {self.des}, {self.src}' class Unarynode(Node): def __init__(self, des, src): self.des = des self.src = src class Notnode(UnaryNode): def __str__(self): return f'la {self.des}, {self.src}' class Syscallnode(Node): def __str__(self): return 'syscall'
n, m = map(int, input().split()) connected = [] seeds = [] for i in range(0, n): connected.append([]) for i in range(0, m): a, b = map(int, input().split()) if (b not in connected[a-1]): connected[a-1].append(b) if (a not in connected[b-1]): connected[b-1].append(a) print(connected) # for each pasture for i in range(0, n): # for each seed for j in range(1, 4): valid = True # for each other pasture for k in range(1, 4): if k == j: continue if k in connected[j]: valid = False break if valid: seeds.append(k) break print(seeds)
(n, m) = map(int, input().split()) connected = [] seeds = [] for i in range(0, n): connected.append([]) for i in range(0, m): (a, b) = map(int, input().split()) if b not in connected[a - 1]: connected[a - 1].append(b) if a not in connected[b - 1]: connected[b - 1].append(a) print(connected) for i in range(0, n): for j in range(1, 4): valid = True for k in range(1, 4): if k == j: continue if k in connected[j]: valid = False break if valid: seeds.append(k) break print(seeds)
class Rule: def __init__(self, rule_id): self.rule_id = rule_id def __eq__(self, other): return self.rule_id == other.rule_id class RuleSet: def __init__(self, **kwargs): self.rules = {} for k, v in kwargs.items(): self.rules[k] = Rule(v) def __getattr__(self, attr_name): return self.rules[attr_name] def __add__(self, other): result = self.__class__() result.rules.update(self.rules) result.rules.update(other.rules) return result
class Rule: def __init__(self, rule_id): self.rule_id = rule_id def __eq__(self, other): return self.rule_id == other.rule_id class Ruleset: def __init__(self, **kwargs): self.rules = {} for (k, v) in kwargs.items(): self.rules[k] = rule(v) def __getattr__(self, attr_name): return self.rules[attr_name] def __add__(self, other): result = self.__class__() result.rules.update(self.rules) result.rules.update(other.rules) return result
#! /usr/bin/python # -*- coding: iso-8859-15 -*- def sc(n): if n > 1: r = sc(n - 1) + n ** 3 else: r = 1 return r a = int(input("Desde: ")) b = int(input("Hasta: ")) for i in range(a, b+1): if sc(i): print ("Numero primo: ",i)
def sc(n): if n > 1: r = sc(n - 1) + n ** 3 else: r = 1 return r a = int(input('Desde: ')) b = int(input('Hasta: ')) for i in range(a, b + 1): if sc(i): print('Numero primo: ', i)
sum( 1, 2, 3, 5, ) sum( 1, 2, 3, 5)
sum(1, 2, 3, 5) sum(1, 2, 3, 5)
class BackendError(Exception): pass class FieldError(Exception): pass
class Backenderror(Exception): pass class Fielderror(Exception): pass
def read_spreadsheet(): file_name = "Data/day2.txt" file = open(file_name, "r") spreadsheet = [] for line in file: line = list(map(int, line.split())) spreadsheet.append(line) return spreadsheet def checksum(spreadsheet): total = 0 for row in spreadsheet: total += max(row) - min(row) print(f"Part one: {total}") def divisible_checksum(spreadsheet): total = 0 for row in spreadsheet: for i in range(len(row)-1): for j in range(i+1, len(row)): if row[i]%row[j] == 0: total += row[i]//row[j] if row[j]%row[i] == 0: total += row[j]//row[i] print(f"Part two: {total}") if __name__ == "__main__": spreadsheet = read_spreadsheet() checksum(spreadsheet) divisible_checksum(spreadsheet)
def read_spreadsheet(): file_name = 'Data/day2.txt' file = open(file_name, 'r') spreadsheet = [] for line in file: line = list(map(int, line.split())) spreadsheet.append(line) return spreadsheet def checksum(spreadsheet): total = 0 for row in spreadsheet: total += max(row) - min(row) print(f'Part one: {total}') def divisible_checksum(spreadsheet): total = 0 for row in spreadsheet: for i in range(len(row) - 1): for j in range(i + 1, len(row)): if row[i] % row[j] == 0: total += row[i] // row[j] if row[j] % row[i] == 0: total += row[j] // row[i] print(f'Part two: {total}') if __name__ == '__main__': spreadsheet = read_spreadsheet() checksum(spreadsheet) divisible_checksum(spreadsheet)
#!/usr/bin/env python3 # recherche empirique aiguille = list() for t in range(0, 43200): h = t / 120 m = (t / 10) % 360 if abs(abs(h - m) - 90) < 0.05 or abs(abs(h - m) - 270) < 0.05: if len(aiguille) > 0 and (t - aiguille[-1][0]) < 2: del aiguille[-1] hh, mm = int(h / 30), int(m / 6) aiguille.append((t, f"{hh:02d}:{mm:02d}:{t%60:02d} {h:6.2f} {m:6.2f}")) # calcul exact exact = list() for i in range(22): h = (90 + 180 * i) / 11 m = (12 * h) % 360 hh, mm, ss = int(h / 30), int(m / 6), int(120 * h) % 60 fmt = f"{hh:02d}:{mm:02d}:{ss:02d} {h:6.2f} {m:6.2f}" exact.append(fmt) # affichage for i, ((_, v), w) in enumerate(zip(aiguille, exact)): print(f"{i+1:2} {v} {w}")
aiguille = list() for t in range(0, 43200): h = t / 120 m = t / 10 % 360 if abs(abs(h - m) - 90) < 0.05 or abs(abs(h - m) - 270) < 0.05: if len(aiguille) > 0 and t - aiguille[-1][0] < 2: del aiguille[-1] (hh, mm) = (int(h / 30), int(m / 6)) aiguille.append((t, f'{hh:02d}:{mm:02d}:{t % 60:02d} {h:6.2f} {m:6.2f}')) exact = list() for i in range(22): h = (90 + 180 * i) / 11 m = 12 * h % 360 (hh, mm, ss) = (int(h / 30), int(m / 6), int(120 * h) % 60) fmt = f'{hh:02d}:{mm:02d}:{ss:02d} {h:6.2f} {m:6.2f}' exact.append(fmt) for (i, ((_, v), w)) in enumerate(zip(aiguille, exact)): print(f'{i + 1:2} {v} {w}')
# Iterate through the array and maintain the min_so_far value. at each step profit = max(profit, arr[i]-min_so_far) class Solution: def maxProfit(self, prices: List[int]) -> int: i = 0 max_profit = 0 min_so_far = 99999 for i in range(len(prices)): max_profit = max(max_profit, prices[i]-min_so_far) min_so_far = min(min_so_far, prices[i]) return max_profit
class Solution: def max_profit(self, prices: List[int]) -> int: i = 0 max_profit = 0 min_so_far = 99999 for i in range(len(prices)): max_profit = max(max_profit, prices[i] - min_so_far) min_so_far = min(min_so_far, prices[i]) return max_profit
def f(xs): ys = 'string' for x in xs: g(ys) def g(x): return x.lower()
def f(xs): ys = 'string' for x in xs: g(ys) def g(x): return x.lower()
def get_standard_config_dictionary(values): run_dict = {} run_dict['Configuration Name'] = values['standard_name_input'] run_dict['Model file'] = values['standard_model_input'] var_values = list(filter(''.__ne__, values['standard_value_input'].split('\n'))) run_dict['Parameter values'] = list(map(lambda x: x.strip(), var_values)) run_dict['Repetitions'] = values['standard_repetition_input'] run_dict['Ticks per run'] = values['standard_tick_input'] reporters = list(filter(''.__ne__, values['standard_reporter_input'].split('\n'))) run_dict['NetLogo reporters'] = list(map(lambda x: x.strip(), reporters)) setup_commands = list(filter(''.__ne__, values['standard_setup_input'].split('\n'))) run_dict['Setup commands'] = list(map(lambda x: x.strip(), setup_commands)) run_dict['Parallel executors'] = values['standard_process_input'] return run_dict
def get_standard_config_dictionary(values): run_dict = {} run_dict['Configuration Name'] = values['standard_name_input'] run_dict['Model file'] = values['standard_model_input'] var_values = list(filter(''.__ne__, values['standard_value_input'].split('\n'))) run_dict['Parameter values'] = list(map(lambda x: x.strip(), var_values)) run_dict['Repetitions'] = values['standard_repetition_input'] run_dict['Ticks per run'] = values['standard_tick_input'] reporters = list(filter(''.__ne__, values['standard_reporter_input'].split('\n'))) run_dict['NetLogo reporters'] = list(map(lambda x: x.strip(), reporters)) setup_commands = list(filter(''.__ne__, values['standard_setup_input'].split('\n'))) run_dict['Setup commands'] = list(map(lambda x: x.strip(), setup_commands)) run_dict['Parallel executors'] = values['standard_process_input'] return run_dict
A, B, C = input() .split() A = float(A) B = float(B) C = float(C) triangulo = float(A * C /2) circulo = float(3.14159 * C**2) trapezio = float(((A + B) * C) /2) quadrado = float(B * B) retangulo = float(A * B) print("TRIANGULO: %0.3f" %triangulo) print("CIRCULO: %0.3f" %circulo) print("TRAPEZIO: %0.3f" %trapezio) print("QUADRADO: %0.3f" %quadrado) print("RETANGULO: %0.3f" %retangulo)
(a, b, c) = input().split() a = float(A) b = float(B) c = float(C) triangulo = float(A * C / 2) circulo = float(3.14159 * C ** 2) trapezio = float((A + B) * C / 2) quadrado = float(B * B) retangulo = float(A * B) print('TRIANGULO: %0.3f' % triangulo) print('CIRCULO: %0.3f' % circulo) print('TRAPEZIO: %0.3f' % trapezio) print('QUADRADO: %0.3f' % quadrado) print('RETANGULO: %0.3f' % retangulo)
PAD = 0 UNK = 1 EOS = 2 BOS = 3 PAD_WORD = '<blank>' UNK_WORD = '<unk>' EOS_WORD = '<eos>' BOS_WORD = '<bos>'
pad = 0 unk = 1 eos = 2 bos = 3 pad_word = '<blank>' unk_word = '<unk>' eos_word = '<eos>' bos_word = '<bos>'
class File: def __init__(self, name: str, kind: str, content=None, base64=False): self.content = content self.name = name self.type = kind self.base64 = base64 def save(self, path): with open(path, 'wb') as f: f.write(self.content) def open(self, path): with open(path, 'rb') as f: self.content = f.read()
class File: def __init__(self, name: str, kind: str, content=None, base64=False): self.content = content self.name = name self.type = kind self.base64 = base64 def save(self, path): with open(path, 'wb') as f: f.write(self.content) def open(self, path): with open(path, 'rb') as f: self.content = f.read()
class Chain(): def __init__(self, val): self.val = val def add(self, b): self.val += b return self def sub(self, b): self.val -= b return self def mul(self, b): self.val *= b return self print(Chain(5).add(5).sub(2).mul(10))
class Chain: def __init__(self, val): self.val = val def add(self, b): self.val += b return self def sub(self, b): self.val -= b return self def mul(self, b): self.val *= b return self print(chain(5).add(5).sub(2).mul(10))
#passed Test Set 1 in py # def romanToInt(s): # translations = { # "I": 1, # "V": 5, # "X": 10, # "L": 50, # "C": 100, # "D": 500, # "M": 1000 # } # number = 0 # s = s.replace("IV", "IIII").replace("IX", "VIIII") # s = s.replace("XL", "XXXX").replace("XC", "LXXXX") # s = s.replace("CD", "CCCC").replace("CM", "DCCCC") # for char in s: # number += translations[char] # print(number) def make_change(s): # num = 0; # temp = s s = s.replace("01","2"); s = s.replace("12","3"); s = s.replace("23","4"); s = s.replace("34","5"); s = s.replace("45","6"); s = s.replace("56","7"); s = s.replace("67","8"); s = s.replace("78","9"); s = s.replace("89","0"); s = s.replace("90","1"); return s; # if(temp == s): # # return num; # return s; # else: # return make_change(s); t=int(input()) tt=1 while(tt<=t): n=int(input()) s=input() # temp = s while(True): temp = s s = make_change(s) if(temp == s): break; # ans = make_change(s) print("Case #",tt,": ",s,sep='') tt+=1
def make_change(s): s = s.replace('01', '2') s = s.replace('12', '3') s = s.replace('23', '4') s = s.replace('34', '5') s = s.replace('45', '6') s = s.replace('56', '7') s = s.replace('67', '8') s = s.replace('78', '9') s = s.replace('89', '0') s = s.replace('90', '1') return s t = int(input()) tt = 1 while tt <= t: n = int(input()) s = input() while True: temp = s s = make_change(s) if temp == s: break print('Case #', tt, ': ', s, sep='') tt += 1
EQUAL_ROWS_DATAFRAME_NAME = \ 'dataframe_of_equal_rows' NON_EQUAL_ROWS_DATAFRAME_NAME = \ 'dataframe_of_non_equal_rows'
equal_rows_dataframe_name = 'dataframe_of_equal_rows' non_equal_rows_dataframe_name = 'dataframe_of_non_equal_rows'
# HEAD # Augmented Assignment Operators # DESCRIPTION # Describes basic usage of all the augmented operators available # RESOURCES # foo = 40 # Addition augmented operator foo += 1 print(foo) # Subtraction augmented operator foo -= 1 print(foo) # Multiplication augmented operator foo *= 1 print(foo) # Division augmented operator foo /= 2 print(foo) # Modulus augmented operator foo %= 3 print(foo) # Modulus augmented operator foo //= 3 print(foo) # Example Usage strOne = 'Testing' listOne = [1, 2] strOne += ' String' # concat for strings and lists print(strOne) listOne *= 2 # replication for strings and lists print(listOne)
foo = 40 foo += 1 print(foo) foo -= 1 print(foo) foo *= 1 print(foo) foo /= 2 print(foo) foo %= 3 print(foo) foo //= 3 print(foo) str_one = 'Testing' list_one = [1, 2] str_one += ' String' print(strOne) list_one *= 2 print(listOne)
def test_client_can_get_avatars(client): resp = client.get('/api/avatars') assert resp.status_code == 200 def test_client_gets_correct_avatars_fields(client): resp = client.get('/api/avatars') assert 'offset' in resp.json assert resp.json['offset'] is None assert 'total' in resp.json assert 'data' in resp.json assert resp.json['total'] == len(resp.json['data']) assert { 'avatar_id', 'category', 'uri', 'created_at', 'updated_at', } == set(resp.json['data'][0].keys()) def test_client_filters_avatars_fields(client): resp = client.get('/api/avatars?fields=category,created_at') avatars = resp.json['data'] assert { 'category', 'created_at', } == set(avatars[0].keys()) def test_client_offsets_avatars(client): resp_1 = client.get('/api/avatars') resp_2 = client.get('/api/avatars?offset=2') assert len(resp_1.json['data']) \ == len(resp_2.json['data']) + min(2, len(resp_1.json['data'])) def test_client_limits_avatars(client): resp_1 = client.get('/api/avatars?max_n_results=1') resp_2 = client.get('/api/avatars?max_n_results=2') assert len(resp_1.json['data']) <= 1 assert len(resp_2.json['data']) <= 2 def test_logged_off_client_cannot_create_avatar(client): resp = client.post('/api/avatars', data={ 'uri': 'http://newavatars.com/img.png', 'category': 'dummy', } ) assert resp.status_code == 401 def test_logged_in_user_cannot_create_avatar(client_with_tok): resp = client_with_tok.post('/api/avatars', data={ 'uri': 'http://newavatars.com/img.png', 'category': 'dummy', } ) assert resp.status_code == 401 def test_logged_in_mod_cannot_create_avatar(mod_with_tok): resp = mod_with_tok.post('/api/avatars', data={ 'uri': 'http://newavatars.com/img.png', 'category': 'dummy', } ) assert resp.status_code == 401 def test_logged_in_admin_can_create_avatar(admin_with_tok): resp = admin_with_tok.post('/api/avatars', data={ 'uri': 'http://newavatars.com/img.png', 'category': 'dummy', } ) assert resp.status_code == 200 def test_logged_in_admin_gets_correct_data_on_user_creation(admin_with_tok): resp = admin_with_tok.post('/api/avatars', data={ 'uri': 'http://newavatars.com/img.png', 'category': 'dummy', } ) assert 'data' in resp.json assert resp.json['data']['uri'] == 'http://newavatars.com/img.png' assert resp.json['data']['category'] == 'dummy' def test_client_can_get_avatar(client, avatar_id): resp = client.get('/api/avatars/{}'.format(avatar_id)) assert resp.status_code == 200 assert 'data' in resp.json def test_client_gets_correct_avatar_fields(client, avatar_id): resp = client.get('/api/avatars/{}'.format(avatar_id)) assert 'data' in resp.json assert { 'avatar_id', 'category', 'uri', 'created_at', 'updated_at', } == set(resp.json['data'].keys()) def test_logged_off_client_cannot_edit_avatar(client, avatar_id): resp = client.put('/api/avatars/{}'.format(avatar_id), data={ 'uri': 'http://newavatars.com/newimg.png', } ) assert resp.status_code == 401 def test_logged_in_user_cannot_edit_avatar(client_with_tok, avatar_id): resp = client_with_tok.put('/api/avatars/{}'.format(avatar_id), data={ 'uri': 'http://newavatars.com/newimg.png', } ) assert resp.status_code == 401 def test_logged_in_mod_cannot_edit_avatar(mod_with_tok, avatar_id): resp = mod_with_tok.put('/api/avatars/{}'.format(avatar_id), data={ 'uri': 'http://newavatars.com/newimg.png', } ) assert resp.status_code == 401 def test_logged_in_admin_can_edit_avatar(admin_with_tok, avatar_id): resp = admin_with_tok.put('/api/avatars/{}'.format(avatar_id), data={ 'uri': 'http://newavatars.com/img.png', 'category': 'dummy', } ) assert resp.status_code == 200 def test_logged_in_admin_gets_correct_put_fields(admin_with_tok, avatar_id): resp = admin_with_tok.put('/api/avatars/{}'.format(avatar_id), data={ 'category': 'newcategory', } ) assert 'data' in resp.json assert { 'avatar_id', 'category', 'uri', 'created_at', 'updated_at', } == set(resp.json['data'].keys()) def test_logged_in_admin_corretly_edits_avatar(admin_with_tok, avatar_id): resp_1 = admin_with_tok.get('/api/avatars/{}'.format(avatar_id)) resp_2 = admin_with_tok.put('/api/avatars/{}'.format(avatar_id), data={ 'category': resp_1.json['data']['category'] + '_altered', 'uri': resp_1.json['data']['uri'] + '.png', } ) resp_3 = admin_with_tok.get('/api/avatars/{}'.format(avatar_id)) assert resp_1.status_code == 200 assert resp_2.status_code == 200 assert resp_3.status_code == 200 assert resp_3.json['data']['category'] \ == resp_1.json['data']['category'] + '_altered' assert resp_3.json['data']['uri'] \ == resp_1.json['data']['uri'] + '.png' def test_logged_off_client_cannot_delete_avatar(client, avatar_id): resp = client.delete('/api/avatars/{}'.format(avatar_id)) assert resp.status_code == 401 def test_logged_in_user_cannot_delete_avatar(client_with_tok, avatar_id): resp = client_with_tok.delete('/api/avatars/{}'.format(avatar_id)) assert resp.status_code == 401 def test_logged_in_mod_cannot_delete_avatar(mod_with_tok, avatar_id): resp = mod_with_tok.delete('/api/avatars/{}'.format(avatar_id)) assert resp.status_code == 401 def test_logged_in_admin_can_delete_avatar(admin_with_tok, avatar_id): resp = admin_with_tok.delete('/api/avatars/{}'.format(avatar_id)) assert resp.status_code == 204 def test_logged_in_admin_corretly_deletes_avatar(admin_with_tok, avatar_id): resp_1 = admin_with_tok.get('/api/avatars/{}'.format(avatar_id)) resp_2 = admin_with_tok.delete('/api/avatars/{}'.format(avatar_id)) resp_3 = admin_with_tok.get('/api/avatars/{}'.format(avatar_id)) assert resp_1.status_code == 200 assert resp_2.status_code == 204 assert resp_3.status_code == 404
def test_client_can_get_avatars(client): resp = client.get('/api/avatars') assert resp.status_code == 200 def test_client_gets_correct_avatars_fields(client): resp = client.get('/api/avatars') assert 'offset' in resp.json assert resp.json['offset'] is None assert 'total' in resp.json assert 'data' in resp.json assert resp.json['total'] == len(resp.json['data']) assert {'avatar_id', 'category', 'uri', 'created_at', 'updated_at'} == set(resp.json['data'][0].keys()) def test_client_filters_avatars_fields(client): resp = client.get('/api/avatars?fields=category,created_at') avatars = resp.json['data'] assert {'category', 'created_at'} == set(avatars[0].keys()) def test_client_offsets_avatars(client): resp_1 = client.get('/api/avatars') resp_2 = client.get('/api/avatars?offset=2') assert len(resp_1.json['data']) == len(resp_2.json['data']) + min(2, len(resp_1.json['data'])) def test_client_limits_avatars(client): resp_1 = client.get('/api/avatars?max_n_results=1') resp_2 = client.get('/api/avatars?max_n_results=2') assert len(resp_1.json['data']) <= 1 assert len(resp_2.json['data']) <= 2 def test_logged_off_client_cannot_create_avatar(client): resp = client.post('/api/avatars', data={'uri': 'http://newavatars.com/img.png', 'category': 'dummy'}) assert resp.status_code == 401 def test_logged_in_user_cannot_create_avatar(client_with_tok): resp = client_with_tok.post('/api/avatars', data={'uri': 'http://newavatars.com/img.png', 'category': 'dummy'}) assert resp.status_code == 401 def test_logged_in_mod_cannot_create_avatar(mod_with_tok): resp = mod_with_tok.post('/api/avatars', data={'uri': 'http://newavatars.com/img.png', 'category': 'dummy'}) assert resp.status_code == 401 def test_logged_in_admin_can_create_avatar(admin_with_tok): resp = admin_with_tok.post('/api/avatars', data={'uri': 'http://newavatars.com/img.png', 'category': 'dummy'}) assert resp.status_code == 200 def test_logged_in_admin_gets_correct_data_on_user_creation(admin_with_tok): resp = admin_with_tok.post('/api/avatars', data={'uri': 'http://newavatars.com/img.png', 'category': 'dummy'}) assert 'data' in resp.json assert resp.json['data']['uri'] == 'http://newavatars.com/img.png' assert resp.json['data']['category'] == 'dummy' def test_client_can_get_avatar(client, avatar_id): resp = client.get('/api/avatars/{}'.format(avatar_id)) assert resp.status_code == 200 assert 'data' in resp.json def test_client_gets_correct_avatar_fields(client, avatar_id): resp = client.get('/api/avatars/{}'.format(avatar_id)) assert 'data' in resp.json assert {'avatar_id', 'category', 'uri', 'created_at', 'updated_at'} == set(resp.json['data'].keys()) def test_logged_off_client_cannot_edit_avatar(client, avatar_id): resp = client.put('/api/avatars/{}'.format(avatar_id), data={'uri': 'http://newavatars.com/newimg.png'}) assert resp.status_code == 401 def test_logged_in_user_cannot_edit_avatar(client_with_tok, avatar_id): resp = client_with_tok.put('/api/avatars/{}'.format(avatar_id), data={'uri': 'http://newavatars.com/newimg.png'}) assert resp.status_code == 401 def test_logged_in_mod_cannot_edit_avatar(mod_with_tok, avatar_id): resp = mod_with_tok.put('/api/avatars/{}'.format(avatar_id), data={'uri': 'http://newavatars.com/newimg.png'}) assert resp.status_code == 401 def test_logged_in_admin_can_edit_avatar(admin_with_tok, avatar_id): resp = admin_with_tok.put('/api/avatars/{}'.format(avatar_id), data={'uri': 'http://newavatars.com/img.png', 'category': 'dummy'}) assert resp.status_code == 200 def test_logged_in_admin_gets_correct_put_fields(admin_with_tok, avatar_id): resp = admin_with_tok.put('/api/avatars/{}'.format(avatar_id), data={'category': 'newcategory'}) assert 'data' in resp.json assert {'avatar_id', 'category', 'uri', 'created_at', 'updated_at'} == set(resp.json['data'].keys()) def test_logged_in_admin_corretly_edits_avatar(admin_with_tok, avatar_id): resp_1 = admin_with_tok.get('/api/avatars/{}'.format(avatar_id)) resp_2 = admin_with_tok.put('/api/avatars/{}'.format(avatar_id), data={'category': resp_1.json['data']['category'] + '_altered', 'uri': resp_1.json['data']['uri'] + '.png'}) resp_3 = admin_with_tok.get('/api/avatars/{}'.format(avatar_id)) assert resp_1.status_code == 200 assert resp_2.status_code == 200 assert resp_3.status_code == 200 assert resp_3.json['data']['category'] == resp_1.json['data']['category'] + '_altered' assert resp_3.json['data']['uri'] == resp_1.json['data']['uri'] + '.png' def test_logged_off_client_cannot_delete_avatar(client, avatar_id): resp = client.delete('/api/avatars/{}'.format(avatar_id)) assert resp.status_code == 401 def test_logged_in_user_cannot_delete_avatar(client_with_tok, avatar_id): resp = client_with_tok.delete('/api/avatars/{}'.format(avatar_id)) assert resp.status_code == 401 def test_logged_in_mod_cannot_delete_avatar(mod_with_tok, avatar_id): resp = mod_with_tok.delete('/api/avatars/{}'.format(avatar_id)) assert resp.status_code == 401 def test_logged_in_admin_can_delete_avatar(admin_with_tok, avatar_id): resp = admin_with_tok.delete('/api/avatars/{}'.format(avatar_id)) assert resp.status_code == 204 def test_logged_in_admin_corretly_deletes_avatar(admin_with_tok, avatar_id): resp_1 = admin_with_tok.get('/api/avatars/{}'.format(avatar_id)) resp_2 = admin_with_tok.delete('/api/avatars/{}'.format(avatar_id)) resp_3 = admin_with_tok.get('/api/avatars/{}'.format(avatar_id)) assert resp_1.status_code == 200 assert resp_2.status_code == 204 assert resp_3.status_code == 404
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def diameterOfBinaryTree(self, root: TreeNode) -> int: def helper(root): if root is None: return 0,0 if root.left is None and root.right is None: return 1,1 l1,m1 = helper(root.left) l2,m2 = helper(root.right) l = max(l1,l2) + 1 m = max(l1 + l2 + 1, m1 ,m2) return l,m l,m = helper(root) if m: return m -1 return m
class Solution: def diameter_of_binary_tree(self, root: TreeNode) -> int: def helper(root): if root is None: return (0, 0) if root.left is None and root.right is None: return (1, 1) (l1, m1) = helper(root.left) (l2, m2) = helper(root.right) l = max(l1, l2) + 1 m = max(l1 + l2 + 1, m1, m2) return (l, m) (l, m) = helper(root) if m: return m - 1 return m
data_in: str = str() balance: float = float() deposit: float = float() while True: data_in = input() if data_in == 'NoMoreMoney': break deposit = float(data_in) if deposit < 0: print('Invalid operation!') break print(f'Increase: {deposit:.2f}') balance += deposit print(f'Total: {balance:.2f}')
data_in: str = str() balance: float = float() deposit: float = float() while True: data_in = input() if data_in == 'NoMoreMoney': break deposit = float(data_in) if deposit < 0: print('Invalid operation!') break print(f'Increase: {deposit:.2f}') balance += deposit print(f'Total: {balance:.2f}')
class Solution: # # Track unsorted indexes using sets (Revisited), O(n*m) time, O(n) space # def minDeletionSize(self, strs: List[str]) -> int: # n, m = len(strs), len(strs[0]) # unsorted = set(range(n-1)) # res = 0 # for j in range(m): # if any(strs[i][j] > strs[i+1][j] for i in unsorted): # res += 1 # else: # unsorted -= {i for i in unsorted if strs[i][j] < strs[i+1][j]} # return res # Track unsorted indexes using sets (Top Voted), O(n*m) time, O(n) space def minDeletionSize(self, A: List[str]) -> int: res, n, m = 0, len(A), len(A[0]) unsorted = set(range(n - 1)) for j in range(m): if any(A[i][j] > A[i + 1][j] for i in unsorted): res += 1 else: unsorted -= {i for i in unsorted if A[i][j] < A[i + 1][j]} return res
class Solution: def min_deletion_size(self, A: List[str]) -> int: (res, n, m) = (0, len(A), len(A[0])) unsorted = set(range(n - 1)) for j in range(m): if any((A[i][j] > A[i + 1][j] for i in unsorted)): res += 1 else: unsorted -= {i for i in unsorted if A[i][j] < A[i + 1][j]} return res
# code t = int(input()) for _ in range(t): n = int(input()) temp = list(map(int, input().split())) l = [temp[i:i+n] for i in range(0, len(temp), n)] del temp weight = 1 for i in range(n): l.append(list(map(int, input().split(',')))) row = 0 col = 0 suml = 0 while True: if row < n-1 and col < n-1: a = min(l[row+1][col], l[row][col+1]) if a == l[row+1][col]: row += 1 else: col += 1 suml += a if row == n-1 and col < n-1: col += 1 a = l[row][col] suml += a if row < n-1 and col == n-1: row += 1 a = l[row][col] suml += a if row == n-1 and col == n-1: a = l[row][col] suml += a print(suml) break
t = int(input()) for _ in range(t): n = int(input()) temp = list(map(int, input().split())) l = [temp[i:i + n] for i in range(0, len(temp), n)] del temp weight = 1 for i in range(n): l.append(list(map(int, input().split(',')))) row = 0 col = 0 suml = 0 while True: if row < n - 1 and col < n - 1: a = min(l[row + 1][col], l[row][col + 1]) if a == l[row + 1][col]: row += 1 else: col += 1 suml += a if row == n - 1 and col < n - 1: col += 1 a = l[row][col] suml += a if row < n - 1 and col == n - 1: row += 1 a = l[row][col] suml += a if row == n - 1 and col == n - 1: a = l[row][col] suml += a print(suml) break
def Efrase(frase): nums = ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9') if frase.count('.') == 1 and frase[len(frase) - 1] != '.' or frase == '.': return False elif frase.count('.') > 1: return False for j in range(0, 10): if nums[j] in frase: return False return True #entrada while True: try: frase = str(input()).strip().split() #processamento fraseValida = '' for i in range(0, len(frase)): #frase valida (eliminando palavras invalidas) if Efrase(frase[i]): fraseValida = fraseValida + ' ' + frase[i] fraseValida = fraseValida.strip().split() nPalavras = len(fraseValida) m = ponto = 0 for i in range(0, nPalavras): #calculando o tamanho medio das palavras m += len(fraseValida[i]) ponto += fraseValida[i].count('.') m -= ponto if nPalavras > 0: m = m // nPalavras else: m = 0 #saida if m <= 3: print(250) elif m <= 5: print(500) else: print(1000) except EOFError: break
def efrase(frase): nums = ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9') if frase.count('.') == 1 and frase[len(frase) - 1] != '.' or frase == '.': return False elif frase.count('.') > 1: return False for j in range(0, 10): if nums[j] in frase: return False return True while True: try: frase = str(input()).strip().split() frase_valida = '' for i in range(0, len(frase)): if efrase(frase[i]): frase_valida = fraseValida + ' ' + frase[i] frase_valida = fraseValida.strip().split() n_palavras = len(fraseValida) m = ponto = 0 for i in range(0, nPalavras): m += len(fraseValida[i]) ponto += fraseValida[i].count('.') m -= ponto if nPalavras > 0: m = m // nPalavras else: m = 0 if m <= 3: print(250) elif m <= 5: print(500) else: print(1000) except EOFError: break
#!/usr/bin/env python outlinks_file = open('link_graph_ly.txt', 'r') inlinks_file = open('link_graph_ly2.txt', 'w') inlinks = {} # url -> list of inlinks in url for line in outlinks_file.readlines(): urls = line.split() if (len(urls)) < 1: continue url = urls[0] inlinks[url] = [] outlinks_file.seek(0) for line in outlinks_file.readlines(): urls = line.split() if (len(urls)) < 1: continue url = urls[0] outlinks = urls[1:] for ol in outlinks: if ol in inlinks: inlinks[ol].append(url) # Write to file for url in inlinks: inlinks_file.write(url + ' ' + ' '.join(inlinks[url]) + '\n') inlinks_file.flush() inlinks_file.close()
outlinks_file = open('link_graph_ly.txt', 'r') inlinks_file = open('link_graph_ly2.txt', 'w') inlinks = {} for line in outlinks_file.readlines(): urls = line.split() if len(urls) < 1: continue url = urls[0] inlinks[url] = [] outlinks_file.seek(0) for line in outlinks_file.readlines(): urls = line.split() if len(urls) < 1: continue url = urls[0] outlinks = urls[1:] for ol in outlinks: if ol in inlinks: inlinks[ol].append(url) for url in inlinks: inlinks_file.write(url + ' ' + ' '.join(inlinks[url]) + '\n') inlinks_file.flush() inlinks_file.close()
def init(cfg): data = {'_logLevel': 'WARN', '_moduleLogLevel': 'WARN'} if cfg['_stage'] == 'dev': data.update({ '_logLevel': 'DEBUG', '_moduleLogLevel': 'WARN', '_logFormat': '%(levelname)s: %(message)s' }) return data
def init(cfg): data = {'_logLevel': 'WARN', '_moduleLogLevel': 'WARN'} if cfg['_stage'] == 'dev': data.update({'_logLevel': 'DEBUG', '_moduleLogLevel': 'WARN', '_logFormat': '%(levelname)s: %(message)s'}) return data
user1_input = int(input("Please enter number 1 : Rock or 2 : Scissors or 3 : Papers.")) user2_input = int(input("Please enter number 1 : Rock or 2 : Scissors or 3 : Papers.")) if user1_input == 1: user1_input = 'Rock' elif user1_input == 2: user1_input = 'Scissors' else: user1_input = 'Papers' if user2_input == 1: user2_input = 'Rock' elif user2_input == 2: user2_input = 'Scissors' else: user2_input = 'Papers' while user1_input != user2_input: if user1_input == 'Rock': if user2_input == 'Papers': print("User2 is the winner") break elif user2_input == 'Scissors': print("User1 is the winner") break elif user1_input == 'Scissors': if user2_input == 'Rock': print("User2 is the winner.") break elif user2_input == 'Papers': print("User1 is the winner.") break elif user1_input == 'Papers': if user2_input == 'Scissors': print("User2 is the winner.") break elif user2_input == 'Rock': print("User1 is the winner.") break # Another Solution attempted on 14/2/2020 while True: print("Please input your command") print("1 : Play Rock, Scissors and Paper Game") print("0 : Exit the Game\n") command = int(input("\nEnter your command")) if command == 0: break elif command == 1: choices = [] for i in range(1, 3): plays = ['Rock', 'Scissors', 'Players'] print(f'Enter play for user {i}\n') print("1. Rock \n", "2. Scissors \n", "3. Paper\n",) choice = int(input("\nPlease enter your choice")) if choice == 1: choices.append("Rock") if choice == 2: choices.append("Scissors") if choice == 3: choices.append("Paper") if choices[0] == choices[1]: print("===" * 10) print("It is a draw") print("===" * 10) else: if choices[0] == "Rock" and choices[1] == "Scissors": print("\nPlayer 1 is the winner\n") elif choices[0] == "Scissors" and choices[1] == "Paper": print("\nPlayer 1 is the winner\n") elif choices[0] == "Paper" and choices[1] == "Rock": print("\nPlayer1 is the winner\n") else: print("\nPlayer 2 is the winner\n")
user1_input = int(input('Please enter number 1 : Rock or 2 : Scissors or 3 : Papers.')) user2_input = int(input('Please enter number 1 : Rock or 2 : Scissors or 3 : Papers.')) if user1_input == 1: user1_input = 'Rock' elif user1_input == 2: user1_input = 'Scissors' else: user1_input = 'Papers' if user2_input == 1: user2_input = 'Rock' elif user2_input == 2: user2_input = 'Scissors' else: user2_input = 'Papers' while user1_input != user2_input: if user1_input == 'Rock': if user2_input == 'Papers': print('User2 is the winner') break elif user2_input == 'Scissors': print('User1 is the winner') break elif user1_input == 'Scissors': if user2_input == 'Rock': print('User2 is the winner.') break elif user2_input == 'Papers': print('User1 is the winner.') break elif user1_input == 'Papers': if user2_input == 'Scissors': print('User2 is the winner.') break elif user2_input == 'Rock': print('User1 is the winner.') break while True: print('Please input your command') print('1 : Play Rock, Scissors and Paper Game') print('0 : Exit the Game\n') command = int(input('\nEnter your command')) if command == 0: break elif command == 1: choices = [] for i in range(1, 3): plays = ['Rock', 'Scissors', 'Players'] print(f'Enter play for user {i}\n') print('1. Rock \n', '2. Scissors \n', '3. Paper\n') choice = int(input('\nPlease enter your choice')) if choice == 1: choices.append('Rock') if choice == 2: choices.append('Scissors') if choice == 3: choices.append('Paper') if choices[0] == choices[1]: print('===' * 10) print('It is a draw') print('===' * 10) elif choices[0] == 'Rock' and choices[1] == 'Scissors': print('\nPlayer 1 is the winner\n') elif choices[0] == 'Scissors' and choices[1] == 'Paper': print('\nPlayer 1 is the winner\n') elif choices[0] == 'Paper' and choices[1] == 'Rock': print('\nPlayer1 is the winner\n') else: print('\nPlayer 2 is the winner\n')
class AdvancedBoxScore: def __init__(self, seconds_played, offensive_rating, defensive_rating, teammate_assist_percentage, assist_to_turnover_ratio, assists_per_100_possessions, offensive_rebound_percentage, defensive_rebound_percentage, turnovers_per_100_possessions, effective_field_goal_percentage, true_shooting_percentage): self.seconds_played = seconds_played self.offensive_rating = offensive_rating self.defensive_rating = defensive_rating self.teammate_assist_percentage = teammate_assist_percentage self.assist_to_turnover_ratio = assist_to_turnover_ratio self.assists_per_100_possessions = assists_per_100_possessions self.offensive_rebound_percentage = offensive_rebound_percentage self.defensive_rebound_percentage = defensive_rebound_percentage self.turnovers_per_100_possessions = turnovers_per_100_possessions self.effective_field_goal_percentage = effective_field_goal_percentage self.true_shooting_percentage = true_shooting_percentage def __unicode__(self): return '{0} | {1}'.format(self.get_additional_unicode(), self.get_base_unicode) def get_base_unicode(self): return 'seconds played: {seconds_played} | offensive rating: {offensive_rating} | ' \ 'defensive rating: {defensive_rating} | teammate assist percentage: {teammate_assist_percentage} |' \ 'assist to turnover ratio: {assist_to_turnover_ratio} | ' \ 'assists per 100 possessions: {assists_per_100_possessions} | ' \ 'offensive rebound percentage: {offensive_rebound_percentage} |' \ 'defensive rebound percentage: {defensive_rebound_percentage} |' \ 'turnovers per 100 possessions: {turnovers_per_100_possessions} |' \ 'effective field goal percentage: {effective_field_goal_percentage} |' \ 'true shooting percentage: {true_shooting_percentage}'\ .format(seconds_played=self.seconds_played, offensive_rating=self.offensive_rating, defensive_rating=self.defensive_rating, teammate_assist_percentage=self.teammate_assist_percentage, assist_to_turnover_ratio=self.assist_to_turnover_ratio, assists_per_100_possessions=self.assists_per_100_possessions, offensive_rebound_percentage=self.offensive_rebound_percentage, defensive_rebound_percentage=self.defensive_rebound_percentage, turnovers_per_100_possessions=self.turnovers_per_100_possessions, effective_field_goal_percentage=self.effective_field_goal_percentage, true_shooting_percentage=self.true_shooting_percentage) def get_additional_unicode(self): return NotImplementedError('Should be implemented in concrete class') class AdvancedPlayerBoxScore(AdvancedBoxScore): def __init__(self, player, seconds_played, offensive_rating, defensive_rating, teammate_assist_percentage, assist_to_turnover_ratio, assists_per_100_possessions, offensive_rebound_percentage, defensive_rebound_percentage, turnovers_per_100_possessions, effective_field_goal_percentage, true_shooting_percentage, usage_percentage): self.player = player self.usage_percentage = usage_percentage AdvancedBoxScore.__init__(self, seconds_played=seconds_played, offensive_rating=offensive_rating, defensive_rating=defensive_rating, teammate_assist_percentage=teammate_assist_percentage, assist_to_turnover_ratio=assist_to_turnover_ratio, assists_per_100_possessions=assists_per_100_possessions, offensive_rebound_percentage=offensive_rebound_percentage, defensive_rebound_percentage=defensive_rebound_percentage, turnovers_per_100_possessions=turnovers_per_100_possessions, effective_field_goal_percentage=effective_field_goal_percentage, true_shooting_percentage=true_shooting_percentage) def get_additional_unicode(self): return 'player: {player} | usage percentage: {usage_percentage}'.format(player=self.player, usage_percentage=self.usage_percentage) class AdvancedTeamBoxScore(AdvancedBoxScore): def __init__(self, team, seconds_played, offensive_rating, defensive_rating, teammate_assist_percentage, assist_to_turnover_ratio, assists_per_100_possessions, offensive_rebound_percentage, defensive_rebound_percentage, turnovers_per_100_possessions, effective_field_goal_percentage, true_shooting_percentage): self.team = team AdvancedBoxScore.__init__(self, seconds_played=seconds_played, offensive_rating=offensive_rating, defensive_rating=defensive_rating, teammate_assist_percentage=teammate_assist_percentage, assist_to_turnover_ratio=assist_to_turnover_ratio, assists_per_100_possessions=assists_per_100_possessions, offensive_rebound_percentage=offensive_rebound_percentage, defensive_rebound_percentage=defensive_rebound_percentage, turnovers_per_100_possessions=turnovers_per_100_possessions, effective_field_goal_percentage=effective_field_goal_percentage, true_shooting_percentage=true_shooting_percentage) def get_additional_unicode(self): return 'team: {team}'.format(team=self.team) class TraditionalBoxScore: def __init__(self, seconds_played, field_goals_made, field_goals_attempted, three_point_field_goals_made, three_point_field_goals_attempted, free_throws_made, free_throws_attempted, offensive_rebounds, defensive_rebounds, assists, steals, blocks, turnovers, personal_fouls): self.seconds_played = seconds_played self.field_goals_made = field_goals_made self.field_goals_attempted = field_goals_attempted self.three_point_field_goals_made = three_point_field_goals_made self.three_point_field_goals_attempted = three_point_field_goals_attempted self.free_throws_made = free_throws_made self.free_throws_attempted = free_throws_attempted self.offensive_rebounds = offensive_rebounds self.defensive_rebounds = defensive_rebounds self.assists = assists self.steals = steals self.blocks = blocks self.turnovers = turnovers self.personal_fouls = personal_fouls def __unicode__(self): return '{0} | {1}'.format(self.get_additional_unicode(), self.get_base_unicode()) def get_base_unicode(self): return 'seconds played: {seconds_played} | field goals made: {field_goals_made} |' \ 'field goals attempted: {field_goals_attempted} | ' \ 'three point field goals made: {three_point_field_goals_made} | ' \ 'three point field goals attempted: {three_point_field_goals_attempted} | ' \ 'free throws made: {free_throws_made} |' 'free throws attempted: {free_throws_attempted} | ' \ 'offensive rebounds: {offensive rebounds} |' 'defensive rebounds: {defensive rebounds} | ' \ 'assists: {assists} | steals: {steals} | blocks: {blocks} | turnovers: {turnovers} | ' \ 'personal fouls: {personal_fouls}'.format(seconds_played=self.seconds_played, field_goals_made=self.field_goals_made, field_goals_attempted=self.field_goals_attempted, three_point_field_goals_made=self.three_point_field_goals_made, three_point_field_goals_attempted=self.three_point_field_goals_attempted, free_throws_made=self.free_throws_made, free_throws_attempted=self.free_throws_attempted, offensive_rebounds=self.offensive_rebounds, defensive_rebounds=self.defensive_rebounds, assists=self.assists, steals=self.steals, blocks=self.blocks, turnovers=self.turnovers, personal_fouls=self.personal_fouls) def get_additional_unicode(self): raise NotImplementedError('Implement in concrete classes') class TraditionalPlayerBoxScore(TraditionalBoxScore): def __init__(self, player, seconds_played, field_goals_made, field_goals_attempted, three_point_field_goals_made, three_point_field_goals_attempted, free_throws_made, free_throws_attempted, offensive_rebounds, defensive_rebounds, assists, steals, blocks, turnovers, personal_fouls, plus_minus): self.player = player self.plus_minus = plus_minus TraditionalBoxScore.__init__(self, seconds_played=seconds_played, field_goals_made=field_goals_made, field_goals_attempted=field_goals_attempted, three_point_field_goals_made=three_point_field_goals_made, three_point_field_goals_attempted=three_point_field_goals_attempted, free_throws_made=free_throws_made, free_throws_attempted=free_throws_attempted, offensive_rebounds=offensive_rebounds, defensive_rebounds=defensive_rebounds, assists=assists, steals=steals, blocks=blocks, turnovers=turnovers, personal_fouls=personal_fouls) def get_additional_unicode(self): return 'player: {player} | plus minus: {plus_minus}'.format(player=self.player, plus_minus=self.plus_minus) class TraditionalTeamBoxScore(TraditionalBoxScore): def __init__(self, team, seconds_played, field_goals_made, field_goals_attempted, free_throws_attempted, three_point_field_goals_made, three_point_field_goals_attempted, free_throws_made, offensive_rebounds, defensive_rebounds, assists, steals, blocks, turnovers, personal_fouls): self.team = team TraditionalBoxScore.__init__(self, seconds_played=seconds_played, field_goals_made=field_goals_made, field_goals_attempted=field_goals_attempted, three_point_field_goals_made=three_point_field_goals_made, three_point_field_goals_attempted=three_point_field_goals_attempted, free_throws_made=free_throws_made, free_throws_attempted=free_throws_attempted, offensive_rebounds=offensive_rebounds, defensive_rebounds=defensive_rebounds, assists=assists, steals=steals, blocks=blocks, turnovers=turnovers, personal_fouls=personal_fouls) def get_additional_unicode(self): return 'team: {team}'.format(self.team) class GameBoxScore: def __init__(self, game_id, player_box_scores, team_box_scores): self.game_id = game_id self.player_box_scores = player_box_scores self.team_box_scores = team_box_scores
class Advancedboxscore: def __init__(self, seconds_played, offensive_rating, defensive_rating, teammate_assist_percentage, assist_to_turnover_ratio, assists_per_100_possessions, offensive_rebound_percentage, defensive_rebound_percentage, turnovers_per_100_possessions, effective_field_goal_percentage, true_shooting_percentage): self.seconds_played = seconds_played self.offensive_rating = offensive_rating self.defensive_rating = defensive_rating self.teammate_assist_percentage = teammate_assist_percentage self.assist_to_turnover_ratio = assist_to_turnover_ratio self.assists_per_100_possessions = assists_per_100_possessions self.offensive_rebound_percentage = offensive_rebound_percentage self.defensive_rebound_percentage = defensive_rebound_percentage self.turnovers_per_100_possessions = turnovers_per_100_possessions self.effective_field_goal_percentage = effective_field_goal_percentage self.true_shooting_percentage = true_shooting_percentage def __unicode__(self): return '{0} | {1}'.format(self.get_additional_unicode(), self.get_base_unicode) def get_base_unicode(self): return 'seconds played: {seconds_played} | offensive rating: {offensive_rating} | defensive rating: {defensive_rating} | teammate assist percentage: {teammate_assist_percentage} |assist to turnover ratio: {assist_to_turnover_ratio} | assists per 100 possessions: {assists_per_100_possessions} | offensive rebound percentage: {offensive_rebound_percentage} |defensive rebound percentage: {defensive_rebound_percentage} |turnovers per 100 possessions: {turnovers_per_100_possessions} |effective field goal percentage: {effective_field_goal_percentage} |true shooting percentage: {true_shooting_percentage}'.format(seconds_played=self.seconds_played, offensive_rating=self.offensive_rating, defensive_rating=self.defensive_rating, teammate_assist_percentage=self.teammate_assist_percentage, assist_to_turnover_ratio=self.assist_to_turnover_ratio, assists_per_100_possessions=self.assists_per_100_possessions, offensive_rebound_percentage=self.offensive_rebound_percentage, defensive_rebound_percentage=self.defensive_rebound_percentage, turnovers_per_100_possessions=self.turnovers_per_100_possessions, effective_field_goal_percentage=self.effective_field_goal_percentage, true_shooting_percentage=self.true_shooting_percentage) def get_additional_unicode(self): return not_implemented_error('Should be implemented in concrete class') class Advancedplayerboxscore(AdvancedBoxScore): def __init__(self, player, seconds_played, offensive_rating, defensive_rating, teammate_assist_percentage, assist_to_turnover_ratio, assists_per_100_possessions, offensive_rebound_percentage, defensive_rebound_percentage, turnovers_per_100_possessions, effective_field_goal_percentage, true_shooting_percentage, usage_percentage): self.player = player self.usage_percentage = usage_percentage AdvancedBoxScore.__init__(self, seconds_played=seconds_played, offensive_rating=offensive_rating, defensive_rating=defensive_rating, teammate_assist_percentage=teammate_assist_percentage, assist_to_turnover_ratio=assist_to_turnover_ratio, assists_per_100_possessions=assists_per_100_possessions, offensive_rebound_percentage=offensive_rebound_percentage, defensive_rebound_percentage=defensive_rebound_percentage, turnovers_per_100_possessions=turnovers_per_100_possessions, effective_field_goal_percentage=effective_field_goal_percentage, true_shooting_percentage=true_shooting_percentage) def get_additional_unicode(self): return 'player: {player} | usage percentage: {usage_percentage}'.format(player=self.player, usage_percentage=self.usage_percentage) class Advancedteamboxscore(AdvancedBoxScore): def __init__(self, team, seconds_played, offensive_rating, defensive_rating, teammate_assist_percentage, assist_to_turnover_ratio, assists_per_100_possessions, offensive_rebound_percentage, defensive_rebound_percentage, turnovers_per_100_possessions, effective_field_goal_percentage, true_shooting_percentage): self.team = team AdvancedBoxScore.__init__(self, seconds_played=seconds_played, offensive_rating=offensive_rating, defensive_rating=defensive_rating, teammate_assist_percentage=teammate_assist_percentage, assist_to_turnover_ratio=assist_to_turnover_ratio, assists_per_100_possessions=assists_per_100_possessions, offensive_rebound_percentage=offensive_rebound_percentage, defensive_rebound_percentage=defensive_rebound_percentage, turnovers_per_100_possessions=turnovers_per_100_possessions, effective_field_goal_percentage=effective_field_goal_percentage, true_shooting_percentage=true_shooting_percentage) def get_additional_unicode(self): return 'team: {team}'.format(team=self.team) class Traditionalboxscore: def __init__(self, seconds_played, field_goals_made, field_goals_attempted, three_point_field_goals_made, three_point_field_goals_attempted, free_throws_made, free_throws_attempted, offensive_rebounds, defensive_rebounds, assists, steals, blocks, turnovers, personal_fouls): self.seconds_played = seconds_played self.field_goals_made = field_goals_made self.field_goals_attempted = field_goals_attempted self.three_point_field_goals_made = three_point_field_goals_made self.three_point_field_goals_attempted = three_point_field_goals_attempted self.free_throws_made = free_throws_made self.free_throws_attempted = free_throws_attempted self.offensive_rebounds = offensive_rebounds self.defensive_rebounds = defensive_rebounds self.assists = assists self.steals = steals self.blocks = blocks self.turnovers = turnovers self.personal_fouls = personal_fouls def __unicode__(self): return '{0} | {1}'.format(self.get_additional_unicode(), self.get_base_unicode()) def get_base_unicode(self): return 'seconds played: {seconds_played} | field goals made: {field_goals_made} |field goals attempted: {field_goals_attempted} | three point field goals made: {three_point_field_goals_made} | three point field goals attempted: {three_point_field_goals_attempted} | free throws made: {free_throws_made} |free throws attempted: {free_throws_attempted} | offensive rebounds: {offensive rebounds} |defensive rebounds: {defensive rebounds} | assists: {assists} | steals: {steals} | blocks: {blocks} | turnovers: {turnovers} | personal fouls: {personal_fouls}'.format(seconds_played=self.seconds_played, field_goals_made=self.field_goals_made, field_goals_attempted=self.field_goals_attempted, three_point_field_goals_made=self.three_point_field_goals_made, three_point_field_goals_attempted=self.three_point_field_goals_attempted, free_throws_made=self.free_throws_made, free_throws_attempted=self.free_throws_attempted, offensive_rebounds=self.offensive_rebounds, defensive_rebounds=self.defensive_rebounds, assists=self.assists, steals=self.steals, blocks=self.blocks, turnovers=self.turnovers, personal_fouls=self.personal_fouls) def get_additional_unicode(self): raise not_implemented_error('Implement in concrete classes') class Traditionalplayerboxscore(TraditionalBoxScore): def __init__(self, player, seconds_played, field_goals_made, field_goals_attempted, three_point_field_goals_made, three_point_field_goals_attempted, free_throws_made, free_throws_attempted, offensive_rebounds, defensive_rebounds, assists, steals, blocks, turnovers, personal_fouls, plus_minus): self.player = player self.plus_minus = plus_minus TraditionalBoxScore.__init__(self, seconds_played=seconds_played, field_goals_made=field_goals_made, field_goals_attempted=field_goals_attempted, three_point_field_goals_made=three_point_field_goals_made, three_point_field_goals_attempted=three_point_field_goals_attempted, free_throws_made=free_throws_made, free_throws_attempted=free_throws_attempted, offensive_rebounds=offensive_rebounds, defensive_rebounds=defensive_rebounds, assists=assists, steals=steals, blocks=blocks, turnovers=turnovers, personal_fouls=personal_fouls) def get_additional_unicode(self): return 'player: {player} | plus minus: {plus_minus}'.format(player=self.player, plus_minus=self.plus_minus) class Traditionalteamboxscore(TraditionalBoxScore): def __init__(self, team, seconds_played, field_goals_made, field_goals_attempted, free_throws_attempted, three_point_field_goals_made, three_point_field_goals_attempted, free_throws_made, offensive_rebounds, defensive_rebounds, assists, steals, blocks, turnovers, personal_fouls): self.team = team TraditionalBoxScore.__init__(self, seconds_played=seconds_played, field_goals_made=field_goals_made, field_goals_attempted=field_goals_attempted, three_point_field_goals_made=three_point_field_goals_made, three_point_field_goals_attempted=three_point_field_goals_attempted, free_throws_made=free_throws_made, free_throws_attempted=free_throws_attempted, offensive_rebounds=offensive_rebounds, defensive_rebounds=defensive_rebounds, assists=assists, steals=steals, blocks=blocks, turnovers=turnovers, personal_fouls=personal_fouls) def get_additional_unicode(self): return 'team: {team}'.format(self.team) class Gameboxscore: def __init__(self, game_id, player_box_scores, team_box_scores): self.game_id = game_id self.player_box_scores = player_box_scores self.team_box_scores = team_box_scores
def solution(A): # write your code in Python 3.6 disks = [] for i,v in enumerate(A): disks.append((i-v,1)) disks.append((i+v,0)) disks.sort(key=lambda x: (x[0], not x[1])) active = 0 intersections = 0 for i,isBegin in disks: if isBegin: intersections += active active += 1 else: active -= 1 if intersections > 10**7: return -1 return intersections
def solution(A): disks = [] for (i, v) in enumerate(A): disks.append((i - v, 1)) disks.append((i + v, 0)) disks.sort(key=lambda x: (x[0], not x[1])) active = 0 intersections = 0 for (i, is_begin) in disks: if isBegin: intersections += active active += 1 else: active -= 1 if intersections > 10 ** 7: return -1 return intersections
def repeatedString(s, n): total = s.count("a") * int(n/len(s)) total += s[:n % len(s)].count("a") return total s = "aba" n = 10 n = int(n) repeatedString(s, n)
def repeated_string(s, n): total = s.count('a') * int(n / len(s)) total += s[:n % len(s)].count('a') return total s = 'aba' n = 10 n = int(n) repeated_string(s, n)
# ====================================================================== # Beverage Bandits # Advent of Code 2018 Day 15 -- Eric Wastl -- https://adventofcode.com # # Python implementation by Dr. Dean Earl Wright III # ====================================================================== # ====================================================================== # p e r s o n . p y # ====================================================================== "People and persons for the Advent of Code 2018 Day 15 puzzle" # ---------------------------------------------------------------------- # import # ---------------------------------------------------------------------- # ---------------------------------------------------------------------- # constants # ---------------------------------------------------------------------- ROW_MULT = 100 ADJACENT = [-100, -1, 1, 100] # ---------------------------------------------------------------------- # location # ---------------------------------------------------------------------- def row_col_to_loc(row, col): return row * ROW_MULT + col def loc_to_row_col(loc): return divmod(loc, ROW_MULT) def distance(loc1, loc2): loc1row, loc1col = loc_to_row_col(loc1) loc2row, loc2col = loc_to_row_col(loc2) return abs(loc1row - loc2row) + abs(loc1col - loc2col) def adjacent(loc1, loc2): return distance(loc1, loc2) == 1 # ====================================================================== # Person # ====================================================================== class Person(object): # pylint: disable=R0902, R0205 "Elf/Goblin for Beverage Bandits" def __init__(self, letter='#', location=0, attack=3): # 1. Set the initial values self.letter = letter self.location = location self.hitpoints = 200 self.attack = attack def distance(self, location): return distance(self.location, location) def attacks(self, other): other.hitpoints = max(0, other.hitpoints - self.attack) def adjacent(self): return [self.location + a for a in ADJACENT] # ====================================================================== # People # ====================================================================== class People(object): # pylint: disable=R0902, R0205 "Multiple Elf/Goblin for Beverage Bandits" def __init__(self, letter='#'): # 1. Set the initial values self.letter = letter self.persons = {} def __len__(self): return len(self.persons) def __getitem__(self, loc): if loc in self.persons: return self.persons[loc] else: raise AttributeError("No such location: %s" % loc) def __setitem__(self, loc, person): if self.letter != person.letter: raise ValueError("Incompatable letters: %s != %s" % (self.letter, person.letter)) if loc != person.location: raise ValueError("Incompatable locations: %s != %s" % (loc, person.location)) self.persons[loc] = person def __delitem__(self, loc): if loc in self.persons: del self.persons[loc] else: raise AttributeError("No such location: %s" % loc) def __iter__(self): return iter(self.persons) def __contains__(self, loc): return loc in self.persons def add(self, person): if self.letter != person.letter: raise ValueError("Incompatable letters: %s != %s" % (self.letter, person.letter)) if person.location in self.persons: raise ValueError("Location %s already occuried" % (person.location)) self.persons[person.location] = person def locations(self): keys = list(self.persons.keys()) keys.sort() return keys def hitpoints(self): return sum([x.hitpoints for x in self.persons.values()]) # ---------------------------------------------------------------------- # module initialization # ---------------------------------------------------------------------- if __name__ == '__main__': pass # ====================================================================== # end p e r s o n . p y end # ======================================================================
"""People and persons for the Advent of Code 2018 Day 15 puzzle""" row_mult = 100 adjacent = [-100, -1, 1, 100] def row_col_to_loc(row, col): return row * ROW_MULT + col def loc_to_row_col(loc): return divmod(loc, ROW_MULT) def distance(loc1, loc2): (loc1row, loc1col) = loc_to_row_col(loc1) (loc2row, loc2col) = loc_to_row_col(loc2) return abs(loc1row - loc2row) + abs(loc1col - loc2col) def adjacent(loc1, loc2): return distance(loc1, loc2) == 1 class Person(object): """Elf/Goblin for Beverage Bandits""" def __init__(self, letter='#', location=0, attack=3): self.letter = letter self.location = location self.hitpoints = 200 self.attack = attack def distance(self, location): return distance(self.location, location) def attacks(self, other): other.hitpoints = max(0, other.hitpoints - self.attack) def adjacent(self): return [self.location + a for a in ADJACENT] class People(object): """Multiple Elf/Goblin for Beverage Bandits""" def __init__(self, letter='#'): self.letter = letter self.persons = {} def __len__(self): return len(self.persons) def __getitem__(self, loc): if loc in self.persons: return self.persons[loc] else: raise attribute_error('No such location: %s' % loc) def __setitem__(self, loc, person): if self.letter != person.letter: raise value_error('Incompatable letters: %s != %s' % (self.letter, person.letter)) if loc != person.location: raise value_error('Incompatable locations: %s != %s' % (loc, person.location)) self.persons[loc] = person def __delitem__(self, loc): if loc in self.persons: del self.persons[loc] else: raise attribute_error('No such location: %s' % loc) def __iter__(self): return iter(self.persons) def __contains__(self, loc): return loc in self.persons def add(self, person): if self.letter != person.letter: raise value_error('Incompatable letters: %s != %s' % (self.letter, person.letter)) if person.location in self.persons: raise value_error('Location %s already occuried' % person.location) self.persons[person.location] = person def locations(self): keys = list(self.persons.keys()) keys.sort() return keys def hitpoints(self): return sum([x.hitpoints for x in self.persons.values()]) if __name__ == '__main__': pass
def Singleton(cls): _instance = {} def _singleton(*args, **kwargs): if cls not in _instance: _instance[cls] = cls(*args, *kwargs) return _instance[cls] return _singleton @Singleton class A(object): def __init__(self, x): self.x = x if __name__ == '__main__': a = A(12) print(a.x)
def singleton(cls): _instance = {} def _singleton(*args, **kwargs): if cls not in _instance: _instance[cls] = cls(*args, *kwargs) return _instance[cls] return _singleton @Singleton class A(object): def __init__(self, x): self.x = x if __name__ == '__main__': a = a(12) print(a.x)
def beau(vals, diff): lookup = set(vals) result = [] for x in vals: if x - diff in lookup and x + diff in lookup: result.append((x - diff, x, x + diff)) return result n, d = map(int, input().split()) values = tuple(map(int, input().split())) triplets = beau(values, d) print(len(triplets))
def beau(vals, diff): lookup = set(vals) result = [] for x in vals: if x - diff in lookup and x + diff in lookup: result.append((x - diff, x, x + diff)) return result (n, d) = map(int, input().split()) values = tuple(map(int, input().split())) triplets = beau(values, d) print(len(triplets))
class matrix: def __init__(self, data): self.data = [data] if type(data[0]) != list else data #if not all(list(map(lambda x: len(x) == len(self.data[0]), self.data))): raise ValueError("Matrix shape is not OK") self.row = len(self.data) self.col = len(self.data[0]) self.shape = (self.row, self.col) #================================================================================== def __null__(self, shape, key = 1, diag = False): row, col = shape if row != col and diag: raise ValueError("Only square matrices could be diagonal") data = [[(key,(0, key)[i == j])[diag] for i in range(col)] for j in range(row)] return data #================================================================================== def __str__(self): return "{}".format(self.data) #================================================================================== def __repr__(self): str_ = "" for row in range(self.row): col_ = [] for col in range(self.col): col_.append(str(self.data[row][col])) str_ += "\t".join(col_) + "\n" return "Matrix({}x{})\n".format(self.row, self.col) + str_ #================================================================================== def __add__(self, other): if self.shape != other.shape: raise ValueError("Matrix shapes are not matched") data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] + other.data[row][col] return matrix(data) #================================================================================== def __sub__(self, other): if self.shape != other.shape: raise ValueError("Matrix shapes are not matched") data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] - other.data[row][col] return matrix(data) #================================================================================== def __mul__(self, other): if type(other) != matrix: raise ValueError("Non-matrix type variables must be placed at the left side of the matrix \n\t\t------> const * A(mxk)") elif self.col != other.row: raise ValueError("Matrix shapes did not satisfy the criteria of C(mxn) = A(mxk) * B(kxn)") data = self.__null__((self.row, other.col), key = 0) for row in range(self.row): for col in range(other.col): for mul in range(self.col): data[row][col] += self.data[row][mul] * other.data[mul][col] return matrix(data) #================================================================================== def __rmul__(self, const): data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] * const return matrix(data) #================================================================================== def __pow__(self, const): data = matrix(self.data) for i in range(const-1): data *= data return data #================================================================================== def __pos__(self): data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = +self.data[row][col] return matrix(data) #================================================================================== def __neg__(self): data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = -self.data[row][col] return matrix(data) #================================================================================== def __abs__(self): data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = abs(self.data[row][col]) return matrix(data) #================================================================================== def __int__(self): data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = int(self.data[row][col]) return matrix(data) #================================================================================== def __float__(self): data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = float(self.data[row][col]) return matrix(data) #================================================================================== def __and__(self, other): data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] & other.data[row][col] return matrix(data) #================================================================================== def __or__(self, other): data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] | other.data[row][col] return matrix(data) #================================================================================== def __lt__(self, const): data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] < const return matrix(data) #================================================================================== def __le__(self, const): data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] <= const return matrix(data) #================================================================================== def __eq__(self, const): data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] == const return matrix(data) #================================================================================== def __ne__(self, const): if self.shape != other.shape: raise ValueError("Matrix shapes are not matched") data = [] for i, j in zip(self.data, other.data): data.append(i != j) return matrix(data) #================================================================================== def __gt__(self, const): data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] > const return matrix(data) #================================================================================== def __ge__(self, const): data = self.__null__(self.shape, key = 0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] >= const return matrix(data) #================================================================================== def __getitem__(self, index): slide = [] for row in self.data[index[0]]: col_ = [] for col in row: col_.append(col[index[1]]) slide.append(col_) return matrix(slide) #================================================================================== def __setitem__(self, index, value): self.data[index] = value #================================================================================== def __iter__(self): return iter(self.data)
class Matrix: def __init__(self, data): self.data = [data] if type(data[0]) != list else data self.row = len(self.data) self.col = len(self.data[0]) self.shape = (self.row, self.col) def __null__(self, shape, key=1, diag=False): (row, col) = shape if row != col and diag: raise value_error('Only square matrices could be diagonal') data = [[(key, (0, key)[i == j])[diag] for i in range(col)] for j in range(row)] return data def __str__(self): return '{}'.format(self.data) def __repr__(self): str_ = '' for row in range(self.row): col_ = [] for col in range(self.col): col_.append(str(self.data[row][col])) str_ += '\t'.join(col_) + '\n' return 'Matrix({}x{})\n'.format(self.row, self.col) + str_ def __add__(self, other): if self.shape != other.shape: raise value_error('Matrix shapes are not matched') data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] + other.data[row][col] return matrix(data) def __sub__(self, other): if self.shape != other.shape: raise value_error('Matrix shapes are not matched') data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] - other.data[row][col] return matrix(data) def __mul__(self, other): if type(other) != matrix: raise value_error('Non-matrix type variables must be placed at the left side of the matrix \n\t\t------> const * A(mxk)') elif self.col != other.row: raise value_error('Matrix shapes did not satisfy the criteria of C(mxn) = A(mxk) * B(kxn)') data = self.__null__((self.row, other.col), key=0) for row in range(self.row): for col in range(other.col): for mul in range(self.col): data[row][col] += self.data[row][mul] * other.data[mul][col] return matrix(data) def __rmul__(self, const): data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] * const return matrix(data) def __pow__(self, const): data = matrix(self.data) for i in range(const - 1): data *= data return data def __pos__(self): data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = +self.data[row][col] return matrix(data) def __neg__(self): data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = -self.data[row][col] return matrix(data) def __abs__(self): data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = abs(self.data[row][col]) return matrix(data) def __int__(self): data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = int(self.data[row][col]) return matrix(data) def __float__(self): data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = float(self.data[row][col]) return matrix(data) def __and__(self, other): data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] & other.data[row][col] return matrix(data) def __or__(self, other): data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] | other.data[row][col] return matrix(data) def __lt__(self, const): data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] < const return matrix(data) def __le__(self, const): data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] <= const return matrix(data) def __eq__(self, const): data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] == const return matrix(data) def __ne__(self, const): if self.shape != other.shape: raise value_error('Matrix shapes are not matched') data = [] for (i, j) in zip(self.data, other.data): data.append(i != j) return matrix(data) def __gt__(self, const): data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] > const return matrix(data) def __ge__(self, const): data = self.__null__(self.shape, key=0) for row in range(self.row): for col in range(self.col): data[row][col] = self.data[row][col] >= const return matrix(data) def __getitem__(self, index): slide = [] for row in self.data[index[0]]: col_ = [] for col in row: col_.append(col[index[1]]) slide.append(col_) return matrix(slide) def __setitem__(self, index, value): self.data[index] = value def __iter__(self): return iter(self.data)
# In the Manager class of Self Check 11, override the getName method so that managers # have a * before their name (such as *Lin, Sally ). class Employee(): def __init__(self, name="", base_salary=0.0): self._name = name self._base_salary = base_salary def set_name(self, new_name): self._name = new_name def set_base_salary(self, new_salary): self._base_salary = new_salary def get_name(self): return self._name def get_salary(self): return self._base_salary class Manager(Employee): def __init__(self, name="", base_salary=0.0, bonus=0.0): super().__init__(name, base_salary) self._bonus = bonus def get_bonus(self): return self._bonus def get_name(self): return "* {}".format(super.get_name())
class Employee: def __init__(self, name='', base_salary=0.0): self._name = name self._base_salary = base_salary def set_name(self, new_name): self._name = new_name def set_base_salary(self, new_salary): self._base_salary = new_salary def get_name(self): return self._name def get_salary(self): return self._base_salary class Manager(Employee): def __init__(self, name='', base_salary=0.0, bonus=0.0): super().__init__(name, base_salary) self._bonus = bonus def get_bonus(self): return self._bonus def get_name(self): return '* {}'.format(super.get_name())
typenames = {"int": 4} operations = {"+=", "-="} class VarNameCreator: state = 0 def __init__(self, state=0): self.state = state def char2latin(self, char): x = ('%s' % hex(ord(char)))[2:] #print(x, char) ans = [] #print(x) for el in x: if '0' <= el <= '9': ans.append(chr(ord(el) - ord('0') + ord('A'))) else: ans.append(chr(ord(el) + 10)) return "".join(ans) def newvar(self, readable_varname): self.state += 1 #print("newvar ", len(readable_varname)) name = [] for char in readable_varname: name.append(self.char2latin(char)) #name.append(self.char2latin(str(self.state))) res = "z".join(name) + 'variable' #print(readable_varname, "->", res) return res VarGen = VarNameCreator() class Codeline: def process(self): #print("line 45: ", self.tokens) #print(self.declarated) if (len(self.tokens) == 0 or len(self.tokens) == 1 and self.tokens[0] == ''): return if (self.tokens[0] in typenames): #this is declaration if len(self.tokens) == 1: #print("Invalid declaration in: %s" % (" ".join(self.tokens))) exit(0) name = self.tokens[1] self.declarated.append(name) self.data = '%s dd 0x0\n' % VarGen.newvar(name) #print("Declaration") #debug if (len(self.tokens) > 2): print("Operations after declacation are not supported: %s" % " ".join(self.tokens)) print("Use <type> <varname>") exit(0) else: if len(self.tokens) == 1: if self.tokens[0][0] == 'p': # print(myvar) myvarname = self.tokens[0][len("print("):-1] #print("printing... ", myvarname) myvar = "[" + VarGen.newvar(myvarname) + "]" self.external.append(myvarname) self.code += "\npush rax\nmov rax,%s\ncall printInt\nmov rax,endl\ncall print\npop rax\n" % myvar else: myvarname = self.tokens[0][len("get("):-1] #print("reading...", myvarname) myvar = VarGen.newvar(myvarname) #print("myvar", myvar) self.external.append(myvarname) #print() self.code += "\nmov rax, __buff2__\ncall getInput\nmov rax, __buff2__\nmov rbx, %s\ncall StrToInt\n" % myvar elif (len(self.tokens) != 3): print("Invalid format in %s. Only <myvarname> <operation> <const value (not expression) or varname>" % " ".join(self.tokens)) exit(0) else: ''' push rax; mov rax, myvar1; add/sub rax, myvar2/const num; mov myvar1, rax; pop rax; ''' #print("operation") self.external.append(self.tokens[0]) myvar1 = "[" + VarGen.newvar(self.tokens[0]) + "]" myvar2 = self.tokens[2] if '0' <= myvar2[0] <= '9' and (len(myvar2) < 3 or myvar2[1] != 'x'): myvar2 = str(hex(int(myvar2))) elif len(myvar2) >= 3 and myvar2[:2] == '0x': pass else: self.external.append(myvar2) myvar2 = "[" + VarGen.newvar(myvar2) + "]" operation = "add" if self.tokens[1] == '-=': operation = "sub" #print(myvar1, myvar2) self.code = "\n" + "push rax\n" + "mov rax,%s\n" % myvar1 self.code += operation + " rax,%s\n" % myvar2 + "mov %s,rax\n" % myvar1 self.code += "pop rax\n" + "\n" #print(self.declarated) ''' situations: declacation calling ''' def __init__(self, codeline): self.offset = 0 self.tokens = [] self.OFFSET_SYMB = " " self.external = [] self.declarated = [] self.code = '' self.data = '' while codeline.find(self.OFFSET_SYMB) == 0: self.offset += 1 codeline = codeline[len(self.OFFSET_SYMB):] self.tokens = [token for token in codeline.split(" ") if token != " "] self.process() def __str__(self): return "Codeline{" + "offset: " + str(self.offset) + " tokens: " + str(self.tokens) + "}" __repr__ = __str__ class Codeblock: commands = [] external = [] declarated = [] code = '' data = '' def process(self): #print("line 117") code = [] data = [] declvars = [] extvars = [] for el in self.commands: #print(el, el.declarated, el.external) data.append(el.data) code.append(el.code) declvars += (el.declarated) extvars += (el.external) self.code = "".join(code) self.data = "".join(data) if len(declvars) != len(set(declvars)): var = '' was = set() for el in declvars: if el not in was: was.add(el) else: var = el print("Double declaration of variable %s" % var) exit(0) new_vars = set(declvars) for el in extvars: if el not in new_vars: self.external.append(el) self.declarated = declvars def __init__(self, code): self.commands = code # codeblocks and codelines self.process() def __str__(self): if len(self.commands) != 0: OFFSET = self.commands[0].OFFSET_SYMB * self.commands[0].offset else: OFFSET = "" repr_string = [OFFSET + "{\n"] for el in self.commands: repr_string.append(OFFSET + str(el) + "\n") repr_string.append(OFFSET + "}\n") return "".join(repr_string) __repr__ = __str__ def make_program(self): code = ''' section .bss __buff__ resb 100 ;only for nums __buff2__ resb 100 __buffsize__ equ 100 section .text global _start exit: mov ebx,0 mov eax,1 int 0x80 ret StrToInt: push rdx mov rdx, rax dec rdx; xor rax, rax ;mov rax, 13; StrToIntLoop: inc rdx cmp byte [rdx], 0x30 jl eNd push rdx mov dl, 0xA mul dl; al = al * 10 pop rdx add al, [rdx] sub al, '0' jmp StrToIntLoop eNd: mov byte [rbx], al; not correct value in al pop rdx ret getInput: push rsi push rdi mov rdi, __buffsize__ - 1 + __buff2__ loopInput: mov byte [rdi], 0 dec rdi cmp rdi, __buff2__ jne loopInput mov rsi, rax xor rax, rax xor rdi, rdi mov rdx, __buffsize__ syscall pop rdi pop rsi ret print: push rdx push rcx push rbx xor rdx, rdx loopPrint: cmp byte [rax + rdx], 0x0; je loopPrintEnd inc rdx; jmp loopPrint loopPrintEnd: mov rcx, rax mov rax, 4 mov rbx, 1 ; first argument: file handle (stdout). int 0x80 ; call kernel. pop rbx pop rcx pop rdx ret printInt: push rbx push rdx mov rbx, __buff__ + __buffsize__ - 1; dec rbx; mov word [rbx], 0x0; loopPrintInt: push rbx mov ebx, 10 xor rdx, rdx div ebx; pop rbx; dec rbx; mov [rbx], dl; add word [rbx], '0' cmp rax, 0 jne loopPrintInt mov rax, rbx call print pop rdx pop rbx ret\n'''.replace("\t", " " * 4) code += "_start:\n" + self.code.replace("\n", "\n" + " " * 4) + "\n\n call exit\n\n" code += "section .data\n" + self.data + "\nendl db 0xA, 0x0" return code
typenames = {'int': 4} operations = {'+=', '-='} class Varnamecreator: state = 0 def __init__(self, state=0): self.state = state def char2latin(self, char): x = ('%s' % hex(ord(char)))[2:] ans = [] for el in x: if '0' <= el <= '9': ans.append(chr(ord(el) - ord('0') + ord('A'))) else: ans.append(chr(ord(el) + 10)) return ''.join(ans) def newvar(self, readable_varname): self.state += 1 name = [] for char in readable_varname: name.append(self.char2latin(char)) res = 'z'.join(name) + 'variable' return res var_gen = var_name_creator() class Codeline: def process(self): if len(self.tokens) == 0 or (len(self.tokens) == 1 and self.tokens[0] == ''): return if self.tokens[0] in typenames: if len(self.tokens) == 1: exit(0) name = self.tokens[1] self.declarated.append(name) self.data = '%s dd 0x0\n' % VarGen.newvar(name) if len(self.tokens) > 2: print('Operations after declacation are not supported: %s' % ' '.join(self.tokens)) print('Use <type> <varname>') exit(0) elif len(self.tokens) == 1: if self.tokens[0][0] == 'p': myvarname = self.tokens[0][len('print('):-1] myvar = '[' + VarGen.newvar(myvarname) + ']' self.external.append(myvarname) self.code += '\npush rax\nmov rax,%s\ncall printInt\nmov rax,endl\ncall print\npop rax\n' % myvar else: myvarname = self.tokens[0][len('get('):-1] myvar = VarGen.newvar(myvarname) self.external.append(myvarname) self.code += '\nmov rax, __buff2__\ncall getInput\nmov rax, __buff2__\nmov rbx, %s\ncall StrToInt\n' % myvar elif len(self.tokens) != 3: print('Invalid format in %s. Only <myvarname> <operation> <const value (not expression) or varname>' % ' '.join(self.tokens)) exit(0) else: '\n\t\t\t\t\tpush rax;\n\t\t\t\t\tmov rax, myvar1;\n\t\t\t\t\tadd/sub rax, myvar2/const num;\n\t\t\t\t\tmov myvar1, rax;\n\t\t\t\t\tpop rax;\n\t\t\t\t' self.external.append(self.tokens[0]) myvar1 = '[' + VarGen.newvar(self.tokens[0]) + ']' myvar2 = self.tokens[2] if '0' <= myvar2[0] <= '9' and (len(myvar2) < 3 or myvar2[1] != 'x'): myvar2 = str(hex(int(myvar2))) elif len(myvar2) >= 3 and myvar2[:2] == '0x': pass else: self.external.append(myvar2) myvar2 = '[' + VarGen.newvar(myvar2) + ']' operation = 'add' if self.tokens[1] == '-=': operation = 'sub' self.code = '\n' + 'push rax\n' + 'mov rax,%s\n' % myvar1 self.code += operation + ' rax,%s\n' % myvar2 + 'mov %s,rax\n' % myvar1 self.code += 'pop rax\n' + '\n' '\n\t\tsituations:\n\t\tdeclacation\n\t\tcalling\n\t\t' def __init__(self, codeline): self.offset = 0 self.tokens = [] self.OFFSET_SYMB = ' ' self.external = [] self.declarated = [] self.code = '' self.data = '' while codeline.find(self.OFFSET_SYMB) == 0: self.offset += 1 codeline = codeline[len(self.OFFSET_SYMB):] self.tokens = [token for token in codeline.split(' ') if token != ' '] self.process() def __str__(self): return 'Codeline{' + 'offset: ' + str(self.offset) + ' tokens: ' + str(self.tokens) + '}' __repr__ = __str__ class Codeblock: commands = [] external = [] declarated = [] code = '' data = '' def process(self): code = [] data = [] declvars = [] extvars = [] for el in self.commands: data.append(el.data) code.append(el.code) declvars += el.declarated extvars += el.external self.code = ''.join(code) self.data = ''.join(data) if len(declvars) != len(set(declvars)): var = '' was = set() for el in declvars: if el not in was: was.add(el) else: var = el print('Double declaration of variable %s' % var) exit(0) new_vars = set(declvars) for el in extvars: if el not in new_vars: self.external.append(el) self.declarated = declvars def __init__(self, code): self.commands = code self.process() def __str__(self): if len(self.commands) != 0: offset = self.commands[0].OFFSET_SYMB * self.commands[0].offset else: offset = '' repr_string = [OFFSET + '{\n'] for el in self.commands: repr_string.append(OFFSET + str(el) + '\n') repr_string.append(OFFSET + '}\n') return ''.join(repr_string) __repr__ = __str__ def make_program(self): code = "\nsection .bss\n __buff__ resb 100 ;only for nums\n __buff2__ resb 100\n__buffsize__ equ 100\n\nsection .text\nglobal _start\nexit:\n\tmov\tebx,0\n mov eax,1\n\tint 0x80\n\tret\nStrToInt:\n\tpush rdx\n\tmov rdx, rax\n\tdec rdx;\n\txor rax, rax\n\t;mov rax, 13;\nStrToIntLoop:\n\tinc rdx\n\tcmp byte [rdx], 0x30\n\tjl eNd\n\tpush rdx\n\tmov dl, 0xA\n\tmul dl; al = al * 10\n\tpop rdx\n\tadd al, [rdx]\n\tsub al, '0'\n\tjmp StrToIntLoop \neNd: \n\tmov byte [rbx], al; not correct value in al\n\tpop rdx\n\tret\ngetInput:\n\tpush rsi\n\tpush rdi\n\tmov rdi, __buffsize__ - 1 + __buff2__\nloopInput:\n\tmov byte [rdi], 0\n\tdec rdi\n\tcmp rdi, __buff2__\n\tjne loopInput\n\tmov rsi, rax\n\txor rax, rax\n\txor rdi, rdi\n\tmov rdx, __buffsize__\n\tsyscall\n\tpop rdi\n\tpop rsi\n\tret\nprint:\n\tpush rdx\n\tpush rcx\n\tpush rbx\n\txor rdx, rdx\nloopPrint:\n\tcmp byte [rax + rdx], 0x0;\n\tje loopPrintEnd\n\tinc rdx; \n\tjmp loopPrint\nloopPrintEnd:\n\tmov rcx, rax\n\tmov rax, 4\n mov rbx, 1 ; first argument: file handle (stdout).\n int 0x80\t ; call kernel.\n\tpop rbx\n\tpop rcx\n\tpop rdx\n\tret\nprintInt:\n\tpush rbx\n\tpush rdx\n\tmov rbx, __buff__ + __buffsize__ - 1;\n\tdec rbx;\n\tmov word [rbx], 0x0;\nloopPrintInt:\n\tpush rbx\n\tmov ebx, 10\n\txor rdx, rdx\n\tdiv ebx; \n\tpop rbx;\n\tdec rbx;\n\tmov [rbx], dl;\n\tadd word [rbx], '0'\n\tcmp rax, 0\n\tjne loopPrintInt\n\tmov rax, rbx\n\tcall print\n\tpop rdx\n\tpop rbx\n\tret\n".replace('\t', ' ' * 4) code += '_start:\n' + self.code.replace('\n', '\n' + ' ' * 4) + '\n\n call exit\n\n' code += 'section .data\n' + self.data + '\nendl db 0xA, 0x0' return code
#--------------------------------------- #Since : 2019/04/25 #Update: 2021/11/18 # -*- coding: utf-8 -*- #--------------------------------------- class Parameters: def __init__(self): #Game setting self.board_x = 8 # boad size self.board_y = self.board_x # boad size self.action_size = self.board_x * self.board_y + 1 # the maximum number of actions self.black = 1 # stone color of the first player self.white = -1 # stone color of the second player #------------------------ # AlphaZero #MCTS self.num_mcts_sims = 400 # the number of MCTS simulations self.cpuct = 1.25 # the exploration rate self.opening_train = 0 # the opening of a game for training self.opening_test = 0 # the opening of a game for test self.opening = self.opening_train # the opening of a game self.Temp = 40 # the temperature parameter of softmax function for calculating the move probability self.rnd_rate = 0.2 # the probability to select a move at random #Neural Network self.k_boards = 1 # the number of board states in one input self.input_channels = (self.k_boards * 2) + 1 # the number of channels of an input self.num_filters = 256 # the number of filters in the body self.num_filters_p = 2 # the number of filters in the policy head self.num_filters_v = 1 # the number of filters in the value head self.num_res = 5 # the number of redidual blocks in the body
class Parameters: def __init__(self): self.board_x = 8 self.board_y = self.board_x self.action_size = self.board_x * self.board_y + 1 self.black = 1 self.white = -1 self.num_mcts_sims = 400 self.cpuct = 1.25 self.opening_train = 0 self.opening_test = 0 self.opening = self.opening_train self.Temp = 40 self.rnd_rate = 0.2 self.k_boards = 1 self.input_channels = self.k_boards * 2 + 1 self.num_filters = 256 self.num_filters_p = 2 self.num_filters_v = 1 self.num_res = 5
print("Bienvenido al cajero automatico de este banco") print() usuario=int(input("Ingrese la cantidad de dinero que desea\n")) cant500 = usuario // 500 resto500 = usuario % 500 cant200 = resto500 // 200 resto200 = resto500 % 200 cant100 = resto200 // 100 resto100 = resto200 % 100 print("cant de billetes de 500: ", cant500) print() print("cant de billetes de 200: ", cant200) print() print("cant de billetes de 100: ", cant100)
print('Bienvenido al cajero automatico de este banco') print() usuario = int(input('Ingrese la cantidad de dinero que desea\n')) cant500 = usuario // 500 resto500 = usuario % 500 cant200 = resto500 // 200 resto200 = resto500 % 200 cant100 = resto200 // 100 resto100 = resto200 % 100 print('cant de billetes de 500: ', cant500) print() print('cant de billetes de 200: ', cant200) print() print('cant de billetes de 100: ', cant100)
def f(yan): xan = yan*3 xan -= 2 fin1 = [] tant = [0,1] for i in range(xan): shet = i shet2 = i+1 newr = tant[shet] + tant[shet2] tant.append(int(newr)) #2part for i in range(xan): gav = tant.pop() if (gav % 2 == 0): fin1.append(gav) fin1.append(0) fin1.sort() fin1.count(i%2 == 0) return fin1 print(f(int(input())))
def f(yan): xan = yan * 3 xan -= 2 fin1 = [] tant = [0, 1] for i in range(xan): shet = i shet2 = i + 1 newr = tant[shet] + tant[shet2] tant.append(int(newr)) for i in range(xan): gav = tant.pop() if gav % 2 == 0: fin1.append(gav) fin1.append(0) fin1.sort() fin1.count(i % 2 == 0) return fin1 print(f(int(input())))
_BEGIN = 0 BLACK=0 WHITE=1 GRAY=2 _END = 12
_begin = 0 black = 0 white = 1 gray = 2 _end = 12
def swap(s,n): res=bin(n)[2:]*(len(s)//len(bin(n)[2:])+1) index=0 string="" for i in range(len(s)): if not s[i].isalpha(): string+=s[i] continue string+=s[i].swapcase() if res[index]=="1" else s[i] index+=1 return string
def swap(s, n): res = bin(n)[2:] * (len(s) // len(bin(n)[2:]) + 1) index = 0 string = '' for i in range(len(s)): if not s[i].isalpha(): string += s[i] continue string += s[i].swapcase() if res[index] == '1' else s[i] index += 1 return string
class Solution: def XXX(self, s: str) -> int: blank_count = 0 start = 0 for index in range(len(s)): if s[index] != " ": if blank_count == 0: continue else: blank_count = 0 start = index else: blank_count += 1 return len(s) - blank_count - start
class Solution: def xxx(self, s: str) -> int: blank_count = 0 start = 0 for index in range(len(s)): if s[index] != ' ': if blank_count == 0: continue else: blank_count = 0 start = index else: blank_count += 1 return len(s) - blank_count - start
# class node to store data and next class Node: def __init__(self,data, next=None, prev=None): self.data = data self.next = next self.prev = prev # defining getter and setter for data, next and prev def getData(self): return self.data def setData(self, data): self.data = data def getNextNode(self): return self.next def setNextNode(self, node): self.next = node def getPrevNode(self): return self.prev def setPrevNode(self, node): self.prev = node # class Linked List class LinkedList: def __init__(self, head=None): self.head = head self.size = 0 def getSize(self): return self.size def addNode(self, data): node = Node(data, None, self.head) self.head = node # incrementing the size of the linked list self.size += 1 return True # delete a node from linked list def removeNode(self, value): prev = None curr = self.head while curr: if curr.getData() == value: if prev: prev.setNextNode(curr.getNextNode()) else: self.head = curr.getNextNode() return True prev = curr curr = curr.getNextNode() return False # find a node in the linked list def findNode(self,value): curr = self.head while curr: if curr.getData() == value: return True else: curr = curr.getNextNode() return False # print the linked list def printLL(self): curr = self.head while curr: print(curr.data) curr = curr.getNextNode() myList = LinkedList() print("Inserting") print(myList.addNode(5)) print(myList.addNode(15)) print(myList.addNode(25)) myList.printLL() print(myList.getSize()) print(myList.findNode(25)) print(myList.removeNode(25)) myList.printLL()
class Node: def __init__(self, data, next=None, prev=None): self.data = data self.next = next self.prev = prev def get_data(self): return self.data def set_data(self, data): self.data = data def get_next_node(self): return self.next def set_next_node(self, node): self.next = node def get_prev_node(self): return self.prev def set_prev_node(self, node): self.prev = node class Linkedlist: def __init__(self, head=None): self.head = head self.size = 0 def get_size(self): return self.size def add_node(self, data): node = node(data, None, self.head) self.head = node self.size += 1 return True def remove_node(self, value): prev = None curr = self.head while curr: if curr.getData() == value: if prev: prev.setNextNode(curr.getNextNode()) else: self.head = curr.getNextNode() return True prev = curr curr = curr.getNextNode() return False def find_node(self, value): curr = self.head while curr: if curr.getData() == value: return True else: curr = curr.getNextNode() return False def print_ll(self): curr = self.head while curr: print(curr.data) curr = curr.getNextNode() my_list = linked_list() print('Inserting') print(myList.addNode(5)) print(myList.addNode(15)) print(myList.addNode(25)) myList.printLL() print(myList.getSize()) print(myList.findNode(25)) print(myList.removeNode(25)) myList.printLL()
# Hello world ''' We will use this file to write our first statement in Python Pretty simple: print('Hello world') '''
""" We will use this file to write our first statement in Python Pretty simple: print('Hello world') """
class Point: def __init__(self, x, y): self.x = x self.y = y point = Point(3, 5) print(f"The Point x value is {point.x}") print(f"The Point y value is {point.y}")
class Point: def __init__(self, x, y): self.x = x self.y = y point = point(3, 5) print(f'The Point x value is {point.x}') print(f'The Point y value is {point.y}')
# The Fibonacci Sequence # The Fibonacci sequence begins with fibonacci(0) = 0 and fibonacci(1) = 1 as its respective first and second terms. After these first two elements, each subsequent element is equal to the sum of the previous two elements. def fibonacci(n): if n == 0 or n == 1: return n return fibonacci(n - 1) + fibonacci(n- 2) fib_list = [] for i in range(0, 11): fib_list.append(fibonacci(i)) print(fib_list)
def fibonacci(n): if n == 0 or n == 1: return n return fibonacci(n - 1) + fibonacci(n - 2) fib_list = [] for i in range(0, 11): fib_list.append(fibonacci(i)) print(fib_list)
# # PySNMP MIB module WWP-LEOS-PORT-STATS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WWP-LEOS-PORT-STATS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:31:30 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") TimeTicks, Bits, NotificationType, IpAddress, iso, Counter64, Integer32, Gauge32, ModuleIdentity, Unsigned32, ObjectIdentity, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "Bits", "NotificationType", "IpAddress", "iso", "Counter64", "Integer32", "Gauge32", "ModuleIdentity", "Unsigned32", "ObjectIdentity", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") wwpModulesLeos, wwpModules = mibBuilder.importSymbols("WWP-SMI", "wwpModulesLeos", "wwpModules") wwpLeosPortStatsMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3)) wwpLeosPortStatsMIB.setRevisions(('2012-11-16 00:00', '2010-02-12 00:00', '2001-04-03 17:00',)) if mibBuilder.loadTexts: wwpLeosPortStatsMIB.setLastUpdated('201211160000Z') if mibBuilder.loadTexts: wwpLeosPortStatsMIB.setOrganization('Ciena, Inc') wwpLeosPortStatsMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1)) wwpLeosPortStats = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1)) wwpLeosPortStatsMIBNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 2)) wwpLeosPortStatsMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 2, 0)) wwpLeosPortStatsMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 3)) wwpLeosPortStatsMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 3, 1)) wwpLeosPortStatsMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 3, 2)) wwpLeosPortStatsReset = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("none", 0), ("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosPortStatsReset.setStatus('current') wwpLeosPortStatsTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2), ) if mibBuilder.loadTexts: wwpLeosPortStatsTable.setStatus('current') wwpLeosPortStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1), ).setIndexNames((0, "WWP-LEOS-PORT-STATS-MIB", "wwpLeosPortStatsPortId")) if mibBuilder.loadTexts: wwpLeosPortStatsEntry.setStatus('current') wwpLeosPortStatsPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsPortId.setStatus('current') wwpLeosPortStatsRxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsRxBytes.setStatus('current') wwpLeosPortStatsRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsRxPkts.setStatus('current') wwpLeosPortStatsRxCrcErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsRxCrcErrorPkts.setStatus('current') wwpLeosPortStatsRxBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsRxBcastPkts.setStatus('current') wwpLeosPortStatsUndersizePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsUndersizePkts.setStatus('current') wwpLeosPortStatsOversizePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsOversizePkts.setStatus('current') wwpLeosPortStatsFragmentPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsFragmentPkts.setStatus('current') wwpLeosPortStatsJabberPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsJabberPkts.setStatus('current') wwpLeosPortStats64BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStats64BytePkts.setStatus('current') wwpLeosPortStats65To127BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStats65To127BytePkts.setStatus('current') wwpLeosPortStats128To255BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStats128To255BytePkts.setStatus('current') wwpLeosPortStats256To511BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStats256To511BytePkts.setStatus('current') wwpLeosPortStats512To1023BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStats512To1023BytePkts.setStatus('current') wwpLeosPortStats1024To1518BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStats1024To1518BytePkts.setStatus('current') wwpLeosPortStatsTxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxBytes.setStatus('current') wwpLeosPortStatsTxTBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxTBytes.setStatus('deprecated') wwpLeosPortStatsTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxPkts.setStatus('current') wwpLeosPortStatsTxExDeferPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxExDeferPkts.setStatus('current') wwpLeosPortStatsTxGiantPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxGiantPkts.setStatus('current') wwpLeosPortStatsTxUnderRunPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxUnderRunPkts.setStatus('current') wwpLeosPortStatsTxCrcErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxCrcErrorPkts.setStatus('current') wwpLeosPortStatsTxLCheckErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxLCheckErrorPkts.setStatus('current') wwpLeosPortStatsTxLOutRangePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxLOutRangePkts.setStatus('current') wwpLeosPortStatsTxLateCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxLateCollPkts.setStatus('current') wwpLeosPortStatsTxExCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxExCollPkts.setStatus('current') wwpLeosPortStatsTxSingleCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxSingleCollPkts.setStatus('current') wwpLeosPortStatsTxCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxCollPkts.setStatus('current') wwpLeosPortStatsTxPausePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxPausePkts.setStatus('current') wwpLeosPortStatsTxMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxMcastPkts.setStatus('current') wwpLeosPortStatsTxBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 31), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxBcastPkts.setStatus('current') wwpLeosPortStatsPortReset = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("none", 0), ("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosPortStatsPortReset.setStatus('current') wwpLeosPortStatsRxMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 33), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsRxMcastPkts.setStatus('current') wwpLeosPortStatsRxPausePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 34), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsRxPausePkts.setStatus('current') wwpLeosPortStats1519To2047BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 35), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStats1519To2047BytePkts.setStatus('current') wwpLeosPortStats2048To4095BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 36), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStats2048To4095BytePkts.setStatus('current') wwpLeosPortStats4096To9216BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 37), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStats4096To9216BytePkts.setStatus('current') wwpLeosPortStatsTxDeferPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 38), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxDeferPkts.setStatus('current') wwpLeosPortStatsTx64BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 39), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTx64BytePkts.setStatus('current') wwpLeosPortStatsTx65To127BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 40), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTx65To127BytePkts.setStatus('current') wwpLeosPortStatsTx128To255BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 41), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTx128To255BytePkts.setStatus('current') wwpLeosPortStatsTx256To511BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 42), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTx256To511BytePkts.setStatus('current') wwpLeosPortStatsTx512To1023BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 43), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTx512To1023BytePkts.setStatus('current') wwpLeosPortStatsTx1024To1518BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 44), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTx1024To1518BytePkts.setStatus('current') wwpLeosPortStatsTx1519To2047BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 45), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTx1519To2047BytePkts.setStatus('current') wwpLeosPortStatsTx2048To4095BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 46), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTx2048To4095BytePkts.setStatus('current') wwpLeosPortStatsTx4096To9216BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 47), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTx4096To9216BytePkts.setStatus('current') wwpLeosPortStatsRxFpgaDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 48), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsRxFpgaDropPkts.setStatus('current') wwpLeosPortStatsPortLinkUp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 49), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsPortLinkUp.setStatus('current') wwpLeosPortStatsPortLinkDown = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 50), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsPortLinkDown.setStatus('current') wwpLeosPortStatsPortLinkFlap = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 51), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsPortLinkFlap.setStatus('current') wwpLeosPortStatsRxUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 52), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsRxUcastPkts.setStatus('current') wwpLeosPortStatsTxUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 53), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxUcastPkts.setStatus('current') wwpLeosPortStatsRxDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 54), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsRxDropPkts.setStatus('current') wwpLeosPortStatsRxDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 55), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsRxDiscardPkts.setStatus('current') wwpLeosPortStatsRxLOutRangePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 56), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsRxLOutRangePkts.setStatus('current') wwpLeosPortStatsRxFpgaBufferDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 57), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsRxFpgaBufferDropPkts.setStatus('current') wwpLeosPortStatsTxFpgaBufferDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 58), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsTxFpgaBufferDropPkts.setStatus('current') wwpLeosPortStatsFpgaVlanPriFilterDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 59), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsFpgaVlanPriFilterDropPkts.setStatus('current') wwpLeosPortStatsFpgaRxErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 60), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsFpgaRxErrorPkts.setStatus('current') wwpLeosPortStatsFpgaRxCrcErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 61), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsFpgaRxCrcErrorPkts.setStatus('current') wwpLeosPortStatsFpgaRxIpCrcErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 62), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsFpgaRxIpCrcErrorPkts.setStatus('current') wwpLeosPortStatsRxInErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 63), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortStatsRxInErrorPkts.setStatus('current') wwpLeosPortTotalStatsTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3), ) if mibBuilder.loadTexts: wwpLeosPortTotalStatsTable.setStatus('current') wwpLeosPortTotalStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1), ).setIndexNames((0, "WWP-LEOS-PORT-STATS-MIB", "wwpLeosPortTotalStatsPortId")) if mibBuilder.loadTexts: wwpLeosPortTotalStatsEntry.setStatus('current') wwpLeosPortTotalStatsPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsPortId.setStatus('current') wwpLeosPortTotalStatsRxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxBytes.setStatus('current') wwpLeosPortTotalStatsRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxPkts.setStatus('current') wwpLeosPortTotalStatsRxCrcErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxCrcErrorPkts.setStatus('current') wwpLeosPortTotalStatsRxBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxBcastPkts.setStatus('current') wwpLeosPortTotalStatsUndersizePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsUndersizePkts.setStatus('current') wwpLeosPortTotalStatsOversizePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsOversizePkts.setStatus('current') wwpLeosPortTotalStatsFragmentPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsFragmentPkts.setStatus('current') wwpLeosPortTotalStatsJabberPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsJabberPkts.setStatus('current') wwpLeosPortTotalStats64BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStats64BytePkts.setStatus('current') wwpLeosPortTotalStats65To127BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStats65To127BytePkts.setStatus('current') wwpLeosPortTotalStats128To255BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStats128To255BytePkts.setStatus('current') wwpLeosPortTotalStats256To511BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStats256To511BytePkts.setStatus('current') wwpLeosPortTotalStats512To1023BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStats512To1023BytePkts.setStatus('current') wwpLeosPortTotalStats1024To1518BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStats1024To1518BytePkts.setStatus('current') wwpLeosPortTotalStatsTxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxBytes.setStatus('current') wwpLeosPortTotalStatsTxTBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxTBytes.setStatus('deprecated') wwpLeosPortTotalStatsTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxPkts.setStatus('current') wwpLeosPortTotalStatsTxExDeferPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxExDeferPkts.setStatus('current') wwpLeosPortTotalStatsTxGiantPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxGiantPkts.setStatus('current') wwpLeosPortTotalStatsTxUnderRunPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxUnderRunPkts.setStatus('current') wwpLeosPortTotalStatsTxCrcErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxCrcErrorPkts.setStatus('current') wwpLeosPortTotalStatsTxLCheckErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxLCheckErrorPkts.setStatus('current') wwpLeosPortTotalStatsTxLOutRangePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxLOutRangePkts.setStatus('current') wwpLeosPortTotalStatsTxLateCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxLateCollPkts.setStatus('current') wwpLeosPortTotalStatsTxExCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxExCollPkts.setStatus('current') wwpLeosPortTotalStatsTxSingleCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxSingleCollPkts.setStatus('current') wwpLeosPortTotalStatsTxCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxCollPkts.setStatus('current') wwpLeosPortTotalStatsTxPausePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxPausePkts.setStatus('current') wwpLeosPortTotalStatsTxMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxMcastPkts.setStatus('current') wwpLeosPortTotalStatsTxBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 31), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxBcastPkts.setStatus('current') wwpLeosPortTotalStatsPortReset = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("none", 0), ("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosPortTotalStatsPortReset.setStatus('current') wwpLeosPortTotalStatsRxMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 33), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxMcastPkts.setStatus('current') wwpLeosPortTotalStatsRxPausePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 34), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxPausePkts.setStatus('current') wwpLeosPortTotalStats1519To2047BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 35), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStats1519To2047BytePkts.setStatus('current') wwpLeosPortTotalStats2048To4095BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 36), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStats2048To4095BytePkts.setStatus('current') wwpLeosPortTotalStats4096To9216BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 37), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStats4096To9216BytePkts.setStatus('current') wwpLeosPortTotalStatsTxDeferPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 38), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxDeferPkts.setStatus('current') wwpLeosPortTotalStatsTx64BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 39), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx64BytePkts.setStatus('current') wwpLeosPortTotalStatsTx65To127BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 40), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx65To127BytePkts.setStatus('current') wwpLeosPortTotalStatsTx128To255BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 41), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx128To255BytePkts.setStatus('current') wwpLeosPortTotalStatsTx256To511BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 42), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx256To511BytePkts.setStatus('current') wwpLeosPortTotalStatsTx512To1023BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 43), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx512To1023BytePkts.setStatus('current') wwpLeosPortTotalStatsTx1024To1518BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 44), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx1024To1518BytePkts.setStatus('current') wwpLeosPortTotalStatsTx1519To2047BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 45), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx1519To2047BytePkts.setStatus('current') wwpLeosPortTotalStatsTx2048To4095BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 46), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx2048To4095BytePkts.setStatus('current') wwpLeosPortTotalStatsTx4096To9216BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 47), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx4096To9216BytePkts.setStatus('current') wwpLeosPortTotalStatsRxFpgaDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 48), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxFpgaDropPkts.setStatus('current') wwpLeosPortTotalStatsPortLinkUp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 49), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsPortLinkUp.setStatus('current') wwpLeosPortTotalStatsPortLinkDown = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 50), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsPortLinkDown.setStatus('current') wwpLeosPortTotalStatsPortLinkFlap = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 51), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsPortLinkFlap.setStatus('current') wwpLeosPortTotalStatsRxUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 52), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxUcastPkts.setStatus('current') wwpLeosPortTotalStatsTxUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 53), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxUcastPkts.setStatus('current') wwpLeosPortTotalStatsRxDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 54), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxDropPkts.setStatus('current') wwpLeosPortTotalStatsRxDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 55), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxDiscardPkts.setStatus('current') wwpLeosPortTotalStatsRxLOutRangePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 56), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxLOutRangePkts.setStatus('current') wwpLeosPortTotalStatsRxFpgaBufferDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 57), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxFpgaBufferDropPkts.setStatus('current') wwpLeosPortTotalStatsTxFpgaBufferDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 58), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxFpgaBufferDropPkts.setStatus('current') wwpLeosPortTotalStatsFpgaVlanPriFilterDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 59), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsFpgaVlanPriFilterDropPkts.setStatus('current') wwpLeosPortTotalStatsFpgaRxErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 60), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsFpgaRxErrorPkts.setStatus('current') wwpLeosPortTotalStatsFpgaRxCrcErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 61), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsFpgaRxCrcErrorPkts.setStatus('current') wwpLeosPortTotalStatsFpgaRxIpCrcErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 62), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsFpgaRxIpCrcErrorPkts.setStatus('current') wwpLeosPortTotalStatsRxInErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 63), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxInErrorPkts.setStatus('current') wwpLeosPortHCStatsTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4), ) if mibBuilder.loadTexts: wwpLeosPortHCStatsTable.setStatus('current') wwpLeosPortHCStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1), ).setIndexNames((0, "WWP-LEOS-PORT-STATS-MIB", "wwpLeosPortHCStatsPortId")) if mibBuilder.loadTexts: wwpLeosPortHCStatsEntry.setStatus('current') wwpLeosPortHCStatsPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsPortId.setStatus('current') wwpLeosPortHCStatsRxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsRxBytes.setStatus('current') wwpLeosPortHCStatsRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsRxPkts.setStatus('current') wwpLeosPortHCStatsRxCrcErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsRxCrcErrorPkts.setStatus('current') wwpLeosPortHCStatsRxBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsRxBcastPkts.setStatus('current') wwpLeosPortHCStatsUndersizePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsUndersizePkts.setStatus('current') wwpLeosPortHCStatsOversizePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsOversizePkts.setStatus('current') wwpLeosPortHCStatsFragmentPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsFragmentPkts.setStatus('current') wwpLeosPortHCStatsJabberPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsJabberPkts.setStatus('current') wwpLeosPortHCStats64BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStats64BytePkts.setStatus('current') wwpLeosPortHCStats65To127BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStats65To127BytePkts.setStatus('current') wwpLeosPortHCStats128To255BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStats128To255BytePkts.setStatus('current') wwpLeosPortHCStats256To511BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStats256To511BytePkts.setStatus('current') wwpLeosPortHCStats512To1023BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStats512To1023BytePkts.setStatus('current') wwpLeosPortHCStats1024To1518BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStats1024To1518BytePkts.setStatus('current') wwpLeosPortHCStatsTxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxBytes.setStatus('current') wwpLeosPortHCStatsTxTBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxTBytes.setStatus('deprecated') wwpLeosPortHCStatsTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxPkts.setStatus('current') wwpLeosPortHCStatsTxExDeferPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxExDeferPkts.setStatus('current') wwpLeosPortHCStatsTxGiantPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxGiantPkts.setStatus('current') wwpLeosPortHCStatsTxUnderRunPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxUnderRunPkts.setStatus('current') wwpLeosPortHCStatsTxCrcErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxCrcErrorPkts.setStatus('current') wwpLeosPortHCStatsTxLCheckErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxLCheckErrorPkts.setStatus('current') wwpLeosPortHCStatsTxLOutRangePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxLOutRangePkts.setStatus('current') wwpLeosPortHCStatsTxLateCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxLateCollPkts.setStatus('current') wwpLeosPortHCStatsTxExCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxExCollPkts.setStatus('current') wwpLeosPortHCStatsTxSingleCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxSingleCollPkts.setStatus('current') wwpLeosPortHCStatsTxCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 28), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxCollPkts.setStatus('current') wwpLeosPortHCStatsTxPausePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 29), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxPausePkts.setStatus('current') wwpLeosPortHCStatsTxMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 30), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxMcastPkts.setStatus('current') wwpLeosPortHCStatsTxBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 31), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxBcastPkts.setStatus('current') wwpLeosPortHCStatsPortReset = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("none", 0), ("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosPortHCStatsPortReset.setStatus('current') wwpLeosPortHCStatsRxMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 33), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsRxMcastPkts.setStatus('current') wwpLeosPortHCStatsRxPausePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 34), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsRxPausePkts.setStatus('current') wwpLeosPortHCStats1519To2047BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 35), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStats1519To2047BytePkts.setStatus('current') wwpLeosPortHCStats2048To4095BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 36), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStats2048To4095BytePkts.setStatus('current') wwpLeosPortHCStats4096To9216BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 37), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStats4096To9216BytePkts.setStatus('current') wwpLeosPortHCStatsTxDeferPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 38), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxDeferPkts.setStatus('current') wwpLeosPortHCStatsTx64BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 39), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTx64BytePkts.setStatus('current') wwpLeosPortHCStatsTx65To127BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 40), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTx65To127BytePkts.setStatus('current') wwpLeosPortHCStatsTx128To255BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 41), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTx128To255BytePkts.setStatus('current') wwpLeosPortHCStatsTx256To511BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 42), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTx256To511BytePkts.setStatus('current') wwpLeosPortHCStatsTx512To1023BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 43), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTx512To1023BytePkts.setStatus('current') wwpLeosPortHCStatsTx1024To1518BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 44), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTx1024To1518BytePkts.setStatus('current') wwpLeosPortHCStatsTx1519To2047BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 45), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTx1519To2047BytePkts.setStatus('current') wwpLeosPortHCStatsTx2048To4095BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 46), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTx2048To4095BytePkts.setStatus('current') wwpLeosPortHCStatsTx4096To9216BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 47), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTx4096To9216BytePkts.setStatus('current') wwpLeosPortHCStatsRxUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 48), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsRxUcastPkts.setStatus('current') wwpLeosPortHCStatsTxUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 49), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsTxUcastPkts.setStatus('current') wwpLeosPortHCStatsRxDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 50), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsRxDropPkts.setStatus('current') wwpLeosPortHCStatsRxDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 51), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsRxDiscardPkts.setStatus('current') wwpLeosPortHCStatsRxLOutRangePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 52), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsRxLOutRangePkts.setStatus('current') wwpLeosPortHCStatsRxInErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 53), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsRxInErrorPkts.setStatus('current') wwpLeosPortHCStatsLastRefresh = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 54), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsLastRefresh.setStatus('current') wwpLeosPortHCStatsLastChange = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 55), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortHCStatsLastChange.setStatus('current') wwpLeosPortTotalHCStatsTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5), ) if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTable.setStatus('current') wwpLeosPortTotalHCStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1), ).setIndexNames((0, "WWP-LEOS-PORT-STATS-MIB", "wwpLeosPortTotalHCStatsPortId")) if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsEntry.setStatus('current') wwpLeosPortTotalHCStatsPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsPortId.setStatus('current') wwpLeosPortTotalHCStatsRxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxBytes.setStatus('current') wwpLeosPortTotalHCStatsRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxPkts.setStatus('current') wwpLeosPortTotalHCStatsRxCrcErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxCrcErrorPkts.setStatus('current') wwpLeosPortTotalHCStatsRxBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxBcastPkts.setStatus('current') wwpLeosPortTotalHCStatsUndersizePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsUndersizePkts.setStatus('current') wwpLeosPortTotalHCStatsOversizePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsOversizePkts.setStatus('current') wwpLeosPortTotalHCStatsFragmentPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsFragmentPkts.setStatus('current') wwpLeosPortTotalHCStatsJabberPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsJabberPkts.setStatus('current') wwpLeosPortTotalHCStats64BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStats64BytePkts.setStatus('current') wwpLeosPortTotalHCStats65To127BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStats65To127BytePkts.setStatus('current') wwpLeosPortTotalHCStats128To255BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStats128To255BytePkts.setStatus('current') wwpLeosPortTotalHCStats256To511BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStats256To511BytePkts.setStatus('current') wwpLeosPortTotalHCStats512To1023BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStats512To1023BytePkts.setStatus('current') wwpLeosPortTotalHCStats1024To1518BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStats1024To1518BytePkts.setStatus('current') wwpLeosPortTotalHCStatsTxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxBytes.setStatus('current') wwpLeosPortTotalHCStatsTxTBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxTBytes.setStatus('deprecated') wwpLeosPortTotalHCStatsTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxPkts.setStatus('current') wwpLeosPortTotalHCStatsTxExDeferPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxExDeferPkts.setStatus('current') wwpLeosPortTotalHCStatsTxGiantPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxGiantPkts.setStatus('current') wwpLeosPortTotalHCStatsTxUnderRunPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxUnderRunPkts.setStatus('current') wwpLeosPortTotalHCStatsTxCrcErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxCrcErrorPkts.setStatus('current') wwpLeosPortTotalHCStatsTxLCheckErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxLCheckErrorPkts.setStatus('current') wwpLeosPortTotalHCStatsTxLOutRangePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxLOutRangePkts.setStatus('current') wwpLeosPortTotalHCStatsTxLateCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxLateCollPkts.setStatus('current') wwpLeosPortTotalHCStatsTxExCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxExCollPkts.setStatus('current') wwpLeosPortTotalHCStatsTxSingleCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxSingleCollPkts.setStatus('current') wwpLeosPortTotalHCStatsTxCollPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 28), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxCollPkts.setStatus('current') wwpLeosPortTotalHCStatsTxPausePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 29), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxPausePkts.setStatus('current') wwpLeosPortTotalHCStatsTxMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 30), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxMcastPkts.setStatus('current') wwpLeosPortTotalHCStatsTxBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 31), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxBcastPkts.setStatus('current') wwpLeosPortTotalHCStatsPortReset = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("none", 0), ("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsPortReset.setStatus('current') wwpLeosPortTotalHCStatsRxMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 33), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxMcastPkts.setStatus('current') wwpLeosPortTotalHCStatsRxPausePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 34), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxPausePkts.setStatus('current') wwpLeosPortTotalHCStats1519To2047BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 35), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStats1519To2047BytePkts.setStatus('current') wwpLeosPortTotalHCStats2048To4095BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 36), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStats2048To4095BytePkts.setStatus('current') wwpLeosPortTotalHCStats4096To9216BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 37), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStats4096To9216BytePkts.setStatus('current') wwpLeosPortTotalHCStatsTxDeferPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 38), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxDeferPkts.setStatus('current') wwpLeosPortTotalHCStatsTx64BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 39), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx64BytePkts.setStatus('current') wwpLeosPortTotalHCStatsTx65To127BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 40), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx65To127BytePkts.setStatus('current') wwpLeosPortTotalHCStatsTx128To255BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 41), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx128To255BytePkts.setStatus('current') wwpLeosPortTotalHCStatsTx256To511BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 42), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx256To511BytePkts.setStatus('current') wwpLeosPortTotalHCStatsTx512To1023BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 43), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx512To1023BytePkts.setStatus('current') wwpLeosPortTotalHCStatsTx1024To1518BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 44), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx1024To1518BytePkts.setStatus('current') wwpLeosPortTotalHCStatsTx1519To2047BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 45), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx1519To2047BytePkts.setStatus('current') wwpLeosPortTotalHCStatsTx2048To4095BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 46), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx2048To4095BytePkts.setStatus('current') wwpLeosPortTotalHCStatsTx4096To9216BytePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 47), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx4096To9216BytePkts.setStatus('current') wwpLeosPortTotalHCStatsRxUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 48), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxUcastPkts.setStatus('current') wwpLeosPortTotalHCStatsTxUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 49), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxUcastPkts.setStatus('current') wwpLeosPortTotalHCStatsRxDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 50), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxDropPkts.setStatus('current') wwpLeosPortTotalHCStatsRxDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 51), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxDiscardPkts.setStatus('current') wwpLeosPortTotalHCStatsRxLOutRangePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 52), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxLOutRangePkts.setStatus('current') wwpLeosPortTotalHCStatsRxInErrorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 53), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxInErrorPkts.setStatus('current') wwpLeosPortTotalHCStatsLastRefresh = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 54), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsLastRefresh.setStatus('current') wwpLeosPortTotalHCStatsLastChange = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 55), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsLastChange.setStatus('current') mibBuilder.exportSymbols("WWP-LEOS-PORT-STATS-MIB", wwpLeosPortStatsRxFpgaBufferDropPkts=wwpLeosPortStatsRxFpgaBufferDropPkts, wwpLeosPortTotalStatsTxTBytes=wwpLeosPortTotalStatsTxTBytes, wwpLeosPortTotalHCStatsRxMcastPkts=wwpLeosPortTotalHCStatsRxMcastPkts, wwpLeosPortTotalHCStatsTxUcastPkts=wwpLeosPortTotalHCStatsTxUcastPkts, wwpLeosPortStatsTx1024To1518BytePkts=wwpLeosPortStatsTx1024To1518BytePkts, wwpLeosPortTotalStatsTxBytes=wwpLeosPortTotalStatsTxBytes, wwpLeosPortHCStatsTxBytes=wwpLeosPortHCStatsTxBytes, wwpLeosPortTotalStatsRxInErrorPkts=wwpLeosPortTotalStatsRxInErrorPkts, wwpLeosPortTotalStatsTxCrcErrorPkts=wwpLeosPortTotalStatsTxCrcErrorPkts, wwpLeosPortStatsRxBcastPkts=wwpLeosPortStatsRxBcastPkts, wwpLeosPortHCStatsTxLCheckErrorPkts=wwpLeosPortHCStatsTxLCheckErrorPkts, wwpLeosPortHCStats4096To9216BytePkts=wwpLeosPortHCStats4096To9216BytePkts, wwpLeosPortStatsPortReset=wwpLeosPortStatsPortReset, wwpLeosPortStatsPortId=wwpLeosPortStatsPortId, wwpLeosPortTotalStats256To511BytePkts=wwpLeosPortTotalStats256To511BytePkts, wwpLeosPortHCStatsTxCollPkts=wwpLeosPortHCStatsTxCollPkts, wwpLeosPortTotalStatsPortReset=wwpLeosPortTotalStatsPortReset, wwpLeosPortTotalHCStatsTxBcastPkts=wwpLeosPortTotalHCStatsTxBcastPkts, wwpLeosPortHCStatsTx64BytePkts=wwpLeosPortHCStatsTx64BytePkts, wwpLeosPortStatsFpgaRxErrorPkts=wwpLeosPortStatsFpgaRxErrorPkts, wwpLeosPortHCStatsTable=wwpLeosPortHCStatsTable, wwpLeosPortStatsRxDiscardPkts=wwpLeosPortStatsRxDiscardPkts, wwpLeosPortStatsFpgaRxCrcErrorPkts=wwpLeosPortStatsFpgaRxCrcErrorPkts, wwpLeosPortTotalStatsTx64BytePkts=wwpLeosPortTotalStatsTx64BytePkts, wwpLeosPortTotalHCStats4096To9216BytePkts=wwpLeosPortTotalHCStats4096To9216BytePkts, wwpLeosPortTotalStats4096To9216BytePkts=wwpLeosPortTotalStats4096To9216BytePkts, wwpLeosPortStatsRxFpgaDropPkts=wwpLeosPortStatsRxFpgaDropPkts, wwpLeosPortTotalStatsRxBcastPkts=wwpLeosPortTotalStatsRxBcastPkts, wwpLeosPortTotalStatsJabberPkts=wwpLeosPortTotalStatsJabberPkts, wwpLeosPortHCStatsTxMcastPkts=wwpLeosPortHCStatsTxMcastPkts, wwpLeosPortTotalHCStats128To255BytePkts=wwpLeosPortTotalHCStats128To255BytePkts, wwpLeosPortTotalHCStatsTxPkts=wwpLeosPortTotalHCStatsTxPkts, wwpLeosPortHCStatsRxUcastPkts=wwpLeosPortHCStatsRxUcastPkts, wwpLeosPortTotalStatsTx2048To4095BytePkts=wwpLeosPortTotalStatsTx2048To4095BytePkts, wwpLeosPortHCStatsRxBcastPkts=wwpLeosPortHCStatsRxBcastPkts, wwpLeosPortStatsTxMcastPkts=wwpLeosPortStatsTxMcastPkts, wwpLeosPortHCStatsPortReset=wwpLeosPortHCStatsPortReset, wwpLeosPortTotalHCStatsUndersizePkts=wwpLeosPortTotalHCStatsUndersizePkts, wwpLeosPortTotalStatsTxLOutRangePkts=wwpLeosPortTotalStatsTxLOutRangePkts, wwpLeosPortStatsTxBcastPkts=wwpLeosPortStatsTxBcastPkts, wwpLeosPortHCStatsUndersizePkts=wwpLeosPortHCStatsUndersizePkts, wwpLeosPortTotalStatsPortId=wwpLeosPortTotalStatsPortId, wwpLeosPortHCStatsTxSingleCollPkts=wwpLeosPortHCStatsTxSingleCollPkts, wwpLeosPortTotalStatsPortLinkFlap=wwpLeosPortTotalStatsPortLinkFlap, wwpLeosPortStatsTxLOutRangePkts=wwpLeosPortStatsTxLOutRangePkts, wwpLeosPortHCStatsTxTBytes=wwpLeosPortHCStatsTxTBytes, wwpLeosPortHCStatsTxUnderRunPkts=wwpLeosPortHCStatsTxUnderRunPkts, wwpLeosPortHCStatsRxLOutRangePkts=wwpLeosPortHCStatsRxLOutRangePkts, wwpLeosPortStats256To511BytePkts=wwpLeosPortStats256To511BytePkts, wwpLeosPortHCStatsTxExDeferPkts=wwpLeosPortHCStatsTxExDeferPkts, wwpLeosPortStats65To127BytePkts=wwpLeosPortStats65To127BytePkts, wwpLeosPortTotalHCStatsRxPkts=wwpLeosPortTotalHCStatsRxPkts, wwpLeosPortStatsFragmentPkts=wwpLeosPortStatsFragmentPkts, wwpLeosPortTotalStatsTxPausePkts=wwpLeosPortTotalStatsTxPausePkts, wwpLeosPortTotalHCStatsRxBcastPkts=wwpLeosPortTotalHCStatsRxBcastPkts, wwpLeosPortTotalStatsTx128To255BytePkts=wwpLeosPortTotalStatsTx128To255BytePkts, wwpLeosPortStats2048To4095BytePkts=wwpLeosPortStats2048To4095BytePkts, wwpLeosPortTotalStatsFpgaVlanPriFilterDropPkts=wwpLeosPortTotalStatsFpgaVlanPriFilterDropPkts, wwpLeosPortTotalStatsRxLOutRangePkts=wwpLeosPortTotalStatsRxLOutRangePkts, wwpLeosPortStatsMIB=wwpLeosPortStatsMIB, wwpLeosPortTotalStatsTx256To511BytePkts=wwpLeosPortTotalStatsTx256To511BytePkts, wwpLeosPortHCStatsLastRefresh=wwpLeosPortHCStatsLastRefresh, wwpLeosPortTotalStatsTable=wwpLeosPortTotalStatsTable, wwpLeosPortTotalHCStatsRxUcastPkts=wwpLeosPortTotalHCStatsRxUcastPkts, wwpLeosPortTotalStatsPortLinkDown=wwpLeosPortTotalStatsPortLinkDown, wwpLeosPortStatsTx65To127BytePkts=wwpLeosPortStatsTx65To127BytePkts, wwpLeosPortTotalStats1024To1518BytePkts=wwpLeosPortTotalStats1024To1518BytePkts, wwpLeosPortHCStatsTx128To255BytePkts=wwpLeosPortHCStatsTx128To255BytePkts, wwpLeosPortHCStatsJabberPkts=wwpLeosPortHCStatsJabberPkts, wwpLeosPortTotalStatsTx512To1023BytePkts=wwpLeosPortTotalStatsTx512To1023BytePkts, wwpLeosPortTotalStatsTx1024To1518BytePkts=wwpLeosPortTotalStatsTx1024To1518BytePkts, wwpLeosPortHCStats2048To4095BytePkts=wwpLeosPortHCStats2048To4095BytePkts, wwpLeosPortHCStatsRxDropPkts=wwpLeosPortHCStatsRxDropPkts, wwpLeosPortStatsTxPausePkts=wwpLeosPortStatsTxPausePkts, wwpLeosPortStatsRxPausePkts=wwpLeosPortStatsRxPausePkts, wwpLeosPortTotalStatsRxFpgaDropPkts=wwpLeosPortTotalStatsRxFpgaDropPkts, wwpLeosPortTotalHCStatsRxPausePkts=wwpLeosPortTotalHCStatsRxPausePkts, wwpLeosPortStatsRxBytes=wwpLeosPortStatsRxBytes, wwpLeosPortTotalStatsTx1519To2047BytePkts=wwpLeosPortTotalStatsTx1519To2047BytePkts, wwpLeosPortTotalStatsTxDeferPkts=wwpLeosPortTotalStatsTxDeferPkts, wwpLeosPortHCStatsTxLateCollPkts=wwpLeosPortHCStatsTxLateCollPkts, wwpLeosPortTotalStats512To1023BytePkts=wwpLeosPortTotalStats512To1023BytePkts, wwpLeosPortStatsMIBNotifications=wwpLeosPortStatsMIBNotifications, wwpLeosPortHCStatsTx65To127BytePkts=wwpLeosPortHCStatsTx65To127BytePkts, wwpLeosPortTotalStatsTxCollPkts=wwpLeosPortTotalStatsTxCollPkts, wwpLeosPortTotalHCStatsRxLOutRangePkts=wwpLeosPortTotalHCStatsRxLOutRangePkts, wwpLeosPortHCStatsTxPausePkts=wwpLeosPortHCStatsTxPausePkts, wwpLeosPortTotalStatsTxMcastPkts=wwpLeosPortTotalStatsTxMcastPkts, wwpLeosPortTotalHCStatsTx64BytePkts=wwpLeosPortTotalHCStatsTx64BytePkts, wwpLeosPortTotalStatsTx4096To9216BytePkts=wwpLeosPortTotalStatsTx4096To9216BytePkts, wwpLeosPortTotalStatsTxGiantPkts=wwpLeosPortTotalStatsTxGiantPkts, wwpLeosPortStatsReset=wwpLeosPortStatsReset, wwpLeosPortTotalStatsTxPkts=wwpLeosPortTotalStatsTxPkts, wwpLeosPortTotalStatsTxSingleCollPkts=wwpLeosPortTotalStatsTxSingleCollPkts, wwpLeosPortStatsPortLinkUp=wwpLeosPortStatsPortLinkUp, wwpLeosPortTotalHCStatsTxLCheckErrorPkts=wwpLeosPortTotalHCStatsTxLCheckErrorPkts, wwpLeosPortTotalStats1519To2047BytePkts=wwpLeosPortTotalStats1519To2047BytePkts, wwpLeosPortTotalHCStatsEntry=wwpLeosPortTotalHCStatsEntry, wwpLeosPortTotalHCStatsTxBytes=wwpLeosPortTotalHCStatsTxBytes, wwpLeosPortStatsTxTBytes=wwpLeosPortStatsTxTBytes, wwpLeosPortStatsRxLOutRangePkts=wwpLeosPortStatsRxLOutRangePkts, wwpLeosPortHCStatsTxDeferPkts=wwpLeosPortHCStatsTxDeferPkts, wwpLeosPortTotalHCStatsRxCrcErrorPkts=wwpLeosPortTotalHCStatsRxCrcErrorPkts, wwpLeosPortTotalStatsFpgaRxCrcErrorPkts=wwpLeosPortTotalStatsFpgaRxCrcErrorPkts, wwpLeosPortTotalStatsFpgaRxIpCrcErrorPkts=wwpLeosPortTotalStatsFpgaRxIpCrcErrorPkts, wwpLeosPortStatsRxUcastPkts=wwpLeosPortStatsRxUcastPkts, wwpLeosPortTotalStatsRxBytes=wwpLeosPortTotalStatsRxBytes, wwpLeosPortHCStatsRxCrcErrorPkts=wwpLeosPortHCStatsRxCrcErrorPkts, wwpLeosPortHCStatsTxCrcErrorPkts=wwpLeosPortHCStatsTxCrcErrorPkts, wwpLeosPortTotalHCStats256To511BytePkts=wwpLeosPortTotalHCStats256To511BytePkts, wwpLeosPortHCStats128To255BytePkts=wwpLeosPortHCStats128To255BytePkts, wwpLeosPortTotalHCStatsLastRefresh=wwpLeosPortTotalHCStatsLastRefresh, wwpLeosPortStatsPortLinkFlap=wwpLeosPortStatsPortLinkFlap, wwpLeosPortStats64BytePkts=wwpLeosPortStats64BytePkts, wwpLeosPortStatsMIBObjects=wwpLeosPortStatsMIBObjects, wwpLeosPortTotalHCStatsTxExDeferPkts=wwpLeosPortTotalHCStatsTxExDeferPkts, wwpLeosPortTotalHCStatsTxUnderRunPkts=wwpLeosPortTotalHCStatsTxUnderRunPkts, wwpLeosPortHCStats1024To1518BytePkts=wwpLeosPortHCStats1024To1518BytePkts, wwpLeosPortHCStatsRxPkts=wwpLeosPortHCStatsRxPkts, wwpLeosPortHCStatsTx4096To9216BytePkts=wwpLeosPortHCStatsTx4096To9216BytePkts, wwpLeosPortTotalStatsTxUcastPkts=wwpLeosPortTotalStatsTxUcastPkts, wwpLeosPortTotalStatsRxDiscardPkts=wwpLeosPortTotalStatsRxDiscardPkts, wwpLeosPortStatsTxPkts=wwpLeosPortStatsTxPkts, wwpLeosPortStatsTxUnderRunPkts=wwpLeosPortStatsTxUnderRunPkts, wwpLeosPortTotalStats2048To4095BytePkts=wwpLeosPortTotalStats2048To4095BytePkts, wwpLeosPortHCStatsTxLOutRangePkts=wwpLeosPortHCStatsTxLOutRangePkts, wwpLeosPortHCStatsEntry=wwpLeosPortHCStatsEntry, wwpLeosPortStatsTx256To511BytePkts=wwpLeosPortStatsTx256To511BytePkts, wwpLeosPortTotalHCStatsTxCrcErrorPkts=wwpLeosPortTotalHCStatsTxCrcErrorPkts, wwpLeosPortStats1519To2047BytePkts=wwpLeosPortStats1519To2047BytePkts, wwpLeosPortTotalStats65To127BytePkts=wwpLeosPortTotalStats65To127BytePkts, wwpLeosPortStatsJabberPkts=wwpLeosPortStatsJabberPkts, wwpLeosPortHCStatsTx512To1023BytePkts=wwpLeosPortHCStatsTx512To1023BytePkts, wwpLeosPortStatsTxLateCollPkts=wwpLeosPortStatsTxLateCollPkts, wwpLeosPortStatsRxDropPkts=wwpLeosPortStatsRxDropPkts, wwpLeosPortHCStatsTx1519To2047BytePkts=wwpLeosPortHCStatsTx1519To2047BytePkts, wwpLeosPortHCStatsRxMcastPkts=wwpLeosPortHCStatsRxMcastPkts, wwpLeosPortTotalHCStatsTable=wwpLeosPortTotalHCStatsTable, wwpLeosPortTotalStatsTxUnderRunPkts=wwpLeosPortTotalStatsTxUnderRunPkts, wwpLeosPortTotalStatsTxExDeferPkts=wwpLeosPortTotalStatsTxExDeferPkts, wwpLeosPortStatsRxCrcErrorPkts=wwpLeosPortStatsRxCrcErrorPkts, wwpLeosPortStatsTxDeferPkts=wwpLeosPortStatsTxDeferPkts, wwpLeosPortStatsTx512To1023BytePkts=wwpLeosPortStatsTx512To1023BytePkts, wwpLeosPortTotalStatsTxLCheckErrorPkts=wwpLeosPortTotalStatsTxLCheckErrorPkts, wwpLeosPortTotalHCStats65To127BytePkts=wwpLeosPortTotalHCStats65To127BytePkts, wwpLeosPortTotalHCStats1519To2047BytePkts=wwpLeosPortTotalHCStats1519To2047BytePkts, wwpLeosPortStatsTable=wwpLeosPortStatsTable, wwpLeosPortTotalHCStatsRxDiscardPkts=wwpLeosPortTotalHCStatsRxDiscardPkts, wwpLeosPortStats4096To9216BytePkts=wwpLeosPortStats4096To9216BytePkts, wwpLeosPortTotalHCStatsTx512To1023BytePkts=wwpLeosPortTotalHCStatsTx512To1023BytePkts, wwpLeosPortStatsMIBNotificationPrefix=wwpLeosPortStatsMIBNotificationPrefix, wwpLeosPortHCStatsTxGiantPkts=wwpLeosPortHCStatsTxGiantPkts, wwpLeosPortTotalStatsRxUcastPkts=wwpLeosPortTotalStatsRxUcastPkts, wwpLeosPortHCStats64BytePkts=wwpLeosPortHCStats64BytePkts, wwpLeosPortHCStatsRxInErrorPkts=wwpLeosPortHCStatsRxInErrorPkts, wwpLeosPortTotalHCStatsRxBytes=wwpLeosPortTotalHCStatsRxBytes, wwpLeosPortTotalStats64BytePkts=wwpLeosPortTotalStats64BytePkts, wwpLeosPortStatsTxExDeferPkts=wwpLeosPortStatsTxExDeferPkts, wwpLeosPortStatsRxPkts=wwpLeosPortStatsRxPkts, wwpLeosPortTotalHCStatsTxTBytes=wwpLeosPortTotalHCStatsTxTBytes, wwpLeosPortStatsMIBGroups=wwpLeosPortStatsMIBGroups, wwpLeosPortStatsTxCrcErrorPkts=wwpLeosPortStatsTxCrcErrorPkts, wwpLeosPortTotalStatsEntry=wwpLeosPortTotalStatsEntry, wwpLeosPortTotalHCStatsFragmentPkts=wwpLeosPortTotalHCStatsFragmentPkts, wwpLeosPortTotalStatsUndersizePkts=wwpLeosPortTotalStatsUndersizePkts, wwpLeosPortTotalStatsTxFpgaBufferDropPkts=wwpLeosPortTotalStatsTxFpgaBufferDropPkts, wwpLeosPortHCStatsTxPkts=wwpLeosPortHCStatsTxPkts, wwpLeosPortTotalHCStats2048To4095BytePkts=wwpLeosPortTotalHCStats2048To4095BytePkts, wwpLeosPortTotalHCStatsTx65To127BytePkts=wwpLeosPortTotalHCStatsTx65To127BytePkts, wwpLeosPortTotalStatsFpgaRxErrorPkts=wwpLeosPortTotalStatsFpgaRxErrorPkts, wwpLeosPortTotalHCStatsPortId=wwpLeosPortTotalHCStatsPortId, wwpLeosPortTotalStatsFragmentPkts=wwpLeosPortTotalStatsFragmentPkts, wwpLeosPortStats512To1023BytePkts=wwpLeosPortStats512To1023BytePkts, wwpLeosPortStats=wwpLeosPortStats, wwpLeosPortHCStatsTx256To511BytePkts=wwpLeosPortHCStatsTx256To511BytePkts, wwpLeosPortTotalHCStatsJabberPkts=wwpLeosPortTotalHCStatsJabberPkts, wwpLeosPortTotalHCStatsTx1024To1518BytePkts=wwpLeosPortTotalHCStatsTx1024To1518BytePkts, wwpLeosPortHCStatsRxBytes=wwpLeosPortHCStatsRxBytes, wwpLeosPortTotalHCStats64BytePkts=wwpLeosPortTotalHCStats64BytePkts, wwpLeosPortStatsTxExCollPkts=wwpLeosPortStatsTxExCollPkts, wwpLeosPortStatsTxGiantPkts=wwpLeosPortStatsTxGiantPkts, wwpLeosPortHCStats65To127BytePkts=wwpLeosPortHCStats65To127BytePkts, wwpLeosPortStats1024To1518BytePkts=wwpLeosPortStats1024To1518BytePkts, wwpLeosPortHCStatsTxUcastPkts=wwpLeosPortHCStatsTxUcastPkts, wwpLeosPortTotalHCStatsTxCollPkts=wwpLeosPortTotalHCStatsTxCollPkts, wwpLeosPortTotalStatsTx65To127BytePkts=wwpLeosPortTotalStatsTx65To127BytePkts, wwpLeosPortTotalStatsRxFpgaBufferDropPkts=wwpLeosPortTotalStatsRxFpgaBufferDropPkts, wwpLeosPortTotalHCStatsTxLOutRangePkts=wwpLeosPortTotalHCStatsTxLOutRangePkts, wwpLeosPortTotalHCStatsTxPausePkts=wwpLeosPortTotalHCStatsTxPausePkts, wwpLeosPortHCStatsOversizePkts=wwpLeosPortHCStatsOversizePkts, wwpLeosPortTotalStatsTxBcastPkts=wwpLeosPortTotalStatsTxBcastPkts, wwpLeosPortStatsTxBytes=wwpLeosPortStatsTxBytes, wwpLeosPortTotalHCStatsTxGiantPkts=wwpLeosPortTotalHCStatsTxGiantPkts, wwpLeosPortTotalHCStatsTxExCollPkts=wwpLeosPortTotalHCStatsTxExCollPkts, wwpLeosPortStatsTx1519To2047BytePkts=wwpLeosPortStatsTx1519To2047BytePkts, PYSNMP_MODULE_ID=wwpLeosPortStatsMIB, wwpLeosPortTotalStatsOversizePkts=wwpLeosPortTotalStatsOversizePkts, wwpLeosPortTotalHCStatsTxMcastPkts=wwpLeosPortTotalHCStatsTxMcastPkts, wwpLeosPortStatsTxLCheckErrorPkts=wwpLeosPortStatsTxLCheckErrorPkts, wwpLeosPortHCStats256To511BytePkts=wwpLeosPortHCStats256To511BytePkts, wwpLeosPortHCStatsTxExCollPkts=wwpLeosPortHCStatsTxExCollPkts, wwpLeosPortHCStatsTxBcastPkts=wwpLeosPortHCStatsTxBcastPkts, wwpLeosPortTotalHCStatsTx4096To9216BytePkts=wwpLeosPortTotalHCStatsTx4096To9216BytePkts, wwpLeosPortHCStatsTx2048To4095BytePkts=wwpLeosPortHCStatsTx2048To4095BytePkts, wwpLeosPortTotalStats128To255BytePkts=wwpLeosPortTotalStats128To255BytePkts, wwpLeosPortStatsTx128To255BytePkts=wwpLeosPortStatsTx128To255BytePkts, wwpLeosPortTotalStatsTxLateCollPkts=wwpLeosPortTotalStatsTxLateCollPkts, wwpLeosPortStatsFpgaVlanPriFilterDropPkts=wwpLeosPortStatsFpgaVlanPriFilterDropPkts, wwpLeosPortStatsTxFpgaBufferDropPkts=wwpLeosPortStatsTxFpgaBufferDropPkts, wwpLeosPortTotalStatsRxPkts=wwpLeosPortTotalStatsRxPkts, wwpLeosPortTotalHCStatsTx2048To4095BytePkts=wwpLeosPortTotalHCStatsTx2048To4095BytePkts, wwpLeosPortHCStatsLastChange=wwpLeosPortHCStatsLastChange, wwpLeosPortHCStats512To1023BytePkts=wwpLeosPortHCStats512To1023BytePkts, wwpLeosPortTotalHCStats512To1023BytePkts=wwpLeosPortTotalHCStats512To1023BytePkts, wwpLeosPortTotalHCStatsTxLateCollPkts=wwpLeosPortTotalHCStatsTxLateCollPkts, wwpLeosPortStatsFpgaRxIpCrcErrorPkts=wwpLeosPortStatsFpgaRxIpCrcErrorPkts, wwpLeosPortStatsRxInErrorPkts=wwpLeosPortStatsRxInErrorPkts, wwpLeosPortStatsUndersizePkts=wwpLeosPortStatsUndersizePkts, wwpLeosPortHCStatsTx1024To1518BytePkts=wwpLeosPortHCStatsTx1024To1518BytePkts, wwpLeosPortTotalHCStatsPortReset=wwpLeosPortTotalHCStatsPortReset, wwpLeosPortTotalStatsTxExCollPkts=wwpLeosPortTotalStatsTxExCollPkts, wwpLeosPortStatsOversizePkts=wwpLeosPortStatsOversizePkts, wwpLeosPortStatsTxSingleCollPkts=wwpLeosPortStatsTxSingleCollPkts, wwpLeosPortTotalStatsRxPausePkts=wwpLeosPortTotalStatsRxPausePkts, wwpLeosPortHCStatsRxPausePkts=wwpLeosPortHCStatsRxPausePkts, wwpLeosPortTotalHCStatsRxInErrorPkts=wwpLeosPortTotalHCStatsRxInErrorPkts, wwpLeosPortTotalHCStatsTx256To511BytePkts=wwpLeosPortTotalHCStatsTx256To511BytePkts, wwpLeosPortTotalStatsRxCrcErrorPkts=wwpLeosPortTotalStatsRxCrcErrorPkts, wwpLeosPortTotalHCStatsLastChange=wwpLeosPortTotalHCStatsLastChange, wwpLeosPortTotalStatsRxMcastPkts=wwpLeosPortTotalStatsRxMcastPkts, wwpLeosPortHCStats1519To2047BytePkts=wwpLeosPortHCStats1519To2047BytePkts, wwpLeosPortStatsMIBConformance=wwpLeosPortStatsMIBConformance, wwpLeosPortStatsTxUcastPkts=wwpLeosPortStatsTxUcastPkts, wwpLeosPortHCStatsRxDiscardPkts=wwpLeosPortHCStatsRxDiscardPkts, wwpLeosPortTotalHCStatsRxDropPkts=wwpLeosPortTotalHCStatsRxDropPkts, wwpLeosPortStats128To255BytePkts=wwpLeosPortStats128To255BytePkts, wwpLeosPortStatsMIBCompliances=wwpLeosPortStatsMIBCompliances, wwpLeosPortTotalStatsPortLinkUp=wwpLeosPortTotalStatsPortLinkUp, wwpLeosPortStatsEntry=wwpLeosPortStatsEntry, wwpLeosPortStatsTxCollPkts=wwpLeosPortStatsTxCollPkts, wwpLeosPortStatsTx2048To4095BytePkts=wwpLeosPortStatsTx2048To4095BytePkts, wwpLeosPortHCStatsFragmentPkts=wwpLeosPortHCStatsFragmentPkts, wwpLeosPortTotalHCStatsOversizePkts=wwpLeosPortTotalHCStatsOversizePkts, wwpLeosPortTotalStatsRxDropPkts=wwpLeosPortTotalStatsRxDropPkts, wwpLeosPortTotalHCStats1024To1518BytePkts=wwpLeosPortTotalHCStats1024To1518BytePkts, wwpLeosPortTotalHCStatsTxDeferPkts=wwpLeosPortTotalHCStatsTxDeferPkts, wwpLeosPortTotalHCStatsTx128To255BytePkts=wwpLeosPortTotalHCStatsTx128To255BytePkts, wwpLeosPortTotalHCStatsTx1519To2047BytePkts=wwpLeosPortTotalHCStatsTx1519To2047BytePkts, wwpLeosPortStatsTx4096To9216BytePkts=wwpLeosPortStatsTx4096To9216BytePkts, wwpLeosPortHCStatsPortId=wwpLeosPortHCStatsPortId, wwpLeosPortStatsPortLinkDown=wwpLeosPortStatsPortLinkDown, wwpLeosPortTotalHCStatsTxSingleCollPkts=wwpLeosPortTotalHCStatsTxSingleCollPkts, wwpLeosPortStatsRxMcastPkts=wwpLeosPortStatsRxMcastPkts, wwpLeosPortStatsTx64BytePkts=wwpLeosPortStatsTx64BytePkts) mibBuilder.exportSymbols("WWP-LEOS-PORT-STATS-MIB", )
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_range_constraint, constraints_union, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (time_ticks, bits, notification_type, ip_address, iso, counter64, integer32, gauge32, module_identity, unsigned32, object_identity, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'Bits', 'NotificationType', 'IpAddress', 'iso', 'Counter64', 'Integer32', 'Gauge32', 'ModuleIdentity', 'Unsigned32', 'ObjectIdentity', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') (wwp_modules_leos, wwp_modules) = mibBuilder.importSymbols('WWP-SMI', 'wwpModulesLeos', 'wwpModules') wwp_leos_port_stats_mib = module_identity((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3)) wwpLeosPortStatsMIB.setRevisions(('2012-11-16 00:00', '2010-02-12 00:00', '2001-04-03 17:00')) if mibBuilder.loadTexts: wwpLeosPortStatsMIB.setLastUpdated('201211160000Z') if mibBuilder.loadTexts: wwpLeosPortStatsMIB.setOrganization('Ciena, Inc') wwp_leos_port_stats_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1)) wwp_leos_port_stats = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1)) wwp_leos_port_stats_mib_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 2)) wwp_leos_port_stats_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 2, 0)) wwp_leos_port_stats_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 3)) wwp_leos_port_stats_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 3, 1)) wwp_leos_port_stats_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 3, 2)) wwp_leos_port_stats_reset = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('none', 0), ('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosPortStatsReset.setStatus('current') wwp_leos_port_stats_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2)) if mibBuilder.loadTexts: wwpLeosPortStatsTable.setStatus('current') wwp_leos_port_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1)).setIndexNames((0, 'WWP-LEOS-PORT-STATS-MIB', 'wwpLeosPortStatsPortId')) if mibBuilder.loadTexts: wwpLeosPortStatsEntry.setStatus('current') wwp_leos_port_stats_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsPortId.setStatus('current') wwp_leos_port_stats_rx_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsRxBytes.setStatus('current') wwp_leos_port_stats_rx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsRxPkts.setStatus('current') wwp_leos_port_stats_rx_crc_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsRxCrcErrorPkts.setStatus('current') wwp_leos_port_stats_rx_bcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsRxBcastPkts.setStatus('current') wwp_leos_port_stats_undersize_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsUndersizePkts.setStatus('current') wwp_leos_port_stats_oversize_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsOversizePkts.setStatus('current') wwp_leos_port_stats_fragment_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsFragmentPkts.setStatus('current') wwp_leos_port_stats_jabber_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsJabberPkts.setStatus('current') wwp_leos_port_stats64_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStats64BytePkts.setStatus('current') wwp_leos_port_stats65_to127_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStats65To127BytePkts.setStatus('current') wwp_leos_port_stats128_to255_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStats128To255BytePkts.setStatus('current') wwp_leos_port_stats256_to511_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStats256To511BytePkts.setStatus('current') wwp_leos_port_stats512_to1023_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStats512To1023BytePkts.setStatus('current') wwp_leos_port_stats1024_to1518_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStats1024To1518BytePkts.setStatus('current') wwp_leos_port_stats_tx_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxBytes.setStatus('current') wwp_leos_port_stats_tx_t_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxTBytes.setStatus('deprecated') wwp_leos_port_stats_tx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxPkts.setStatus('current') wwp_leos_port_stats_tx_ex_defer_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxExDeferPkts.setStatus('current') wwp_leos_port_stats_tx_giant_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxGiantPkts.setStatus('current') wwp_leos_port_stats_tx_under_run_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxUnderRunPkts.setStatus('current') wwp_leos_port_stats_tx_crc_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxCrcErrorPkts.setStatus('current') wwp_leos_port_stats_tx_l_check_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxLCheckErrorPkts.setStatus('current') wwp_leos_port_stats_tx_l_out_range_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxLOutRangePkts.setStatus('current') wwp_leos_port_stats_tx_late_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxLateCollPkts.setStatus('current') wwp_leos_port_stats_tx_ex_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxExCollPkts.setStatus('current') wwp_leos_port_stats_tx_single_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 27), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxSingleCollPkts.setStatus('current') wwp_leos_port_stats_tx_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 28), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxCollPkts.setStatus('current') wwp_leos_port_stats_tx_pause_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 29), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxPausePkts.setStatus('current') wwp_leos_port_stats_tx_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 30), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxMcastPkts.setStatus('current') wwp_leos_port_stats_tx_bcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 31), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxBcastPkts.setStatus('current') wwp_leos_port_stats_port_reset = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('none', 0), ('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosPortStatsPortReset.setStatus('current') wwp_leos_port_stats_rx_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 33), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsRxMcastPkts.setStatus('current') wwp_leos_port_stats_rx_pause_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 34), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsRxPausePkts.setStatus('current') wwp_leos_port_stats1519_to2047_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 35), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStats1519To2047BytePkts.setStatus('current') wwp_leos_port_stats2048_to4095_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 36), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStats2048To4095BytePkts.setStatus('current') wwp_leos_port_stats4096_to9216_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 37), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStats4096To9216BytePkts.setStatus('current') wwp_leos_port_stats_tx_defer_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 38), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxDeferPkts.setStatus('current') wwp_leos_port_stats_tx64_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 39), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTx64BytePkts.setStatus('current') wwp_leos_port_stats_tx65_to127_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 40), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTx65To127BytePkts.setStatus('current') wwp_leos_port_stats_tx128_to255_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 41), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTx128To255BytePkts.setStatus('current') wwp_leos_port_stats_tx256_to511_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 42), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTx256To511BytePkts.setStatus('current') wwp_leos_port_stats_tx512_to1023_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 43), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTx512To1023BytePkts.setStatus('current') wwp_leos_port_stats_tx1024_to1518_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 44), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTx1024To1518BytePkts.setStatus('current') wwp_leos_port_stats_tx1519_to2047_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 45), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTx1519To2047BytePkts.setStatus('current') wwp_leos_port_stats_tx2048_to4095_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 46), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTx2048To4095BytePkts.setStatus('current') wwp_leos_port_stats_tx4096_to9216_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 47), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTx4096To9216BytePkts.setStatus('current') wwp_leos_port_stats_rx_fpga_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 48), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsRxFpgaDropPkts.setStatus('current') wwp_leos_port_stats_port_link_up = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 49), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsPortLinkUp.setStatus('current') wwp_leos_port_stats_port_link_down = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 50), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsPortLinkDown.setStatus('current') wwp_leos_port_stats_port_link_flap = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 51), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsPortLinkFlap.setStatus('current') wwp_leos_port_stats_rx_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 52), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsRxUcastPkts.setStatus('current') wwp_leos_port_stats_tx_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 53), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxUcastPkts.setStatus('current') wwp_leos_port_stats_rx_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 54), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsRxDropPkts.setStatus('current') wwp_leos_port_stats_rx_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 55), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsRxDiscardPkts.setStatus('current') wwp_leos_port_stats_rx_l_out_range_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 56), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsRxLOutRangePkts.setStatus('current') wwp_leos_port_stats_rx_fpga_buffer_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 57), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsRxFpgaBufferDropPkts.setStatus('current') wwp_leos_port_stats_tx_fpga_buffer_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 58), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsTxFpgaBufferDropPkts.setStatus('current') wwp_leos_port_stats_fpga_vlan_pri_filter_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 59), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsFpgaVlanPriFilterDropPkts.setStatus('current') wwp_leos_port_stats_fpga_rx_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 60), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsFpgaRxErrorPkts.setStatus('current') wwp_leos_port_stats_fpga_rx_crc_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 61), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsFpgaRxCrcErrorPkts.setStatus('current') wwp_leos_port_stats_fpga_rx_ip_crc_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 62), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsFpgaRxIpCrcErrorPkts.setStatus('current') wwp_leos_port_stats_rx_in_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 2, 1, 63), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortStatsRxInErrorPkts.setStatus('current') wwp_leos_port_total_stats_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3)) if mibBuilder.loadTexts: wwpLeosPortTotalStatsTable.setStatus('current') wwp_leos_port_total_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1)).setIndexNames((0, 'WWP-LEOS-PORT-STATS-MIB', 'wwpLeosPortTotalStatsPortId')) if mibBuilder.loadTexts: wwpLeosPortTotalStatsEntry.setStatus('current') wwp_leos_port_total_stats_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsPortId.setStatus('current') wwp_leos_port_total_stats_rx_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxBytes.setStatus('current') wwp_leos_port_total_stats_rx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxPkts.setStatus('current') wwp_leos_port_total_stats_rx_crc_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxCrcErrorPkts.setStatus('current') wwp_leos_port_total_stats_rx_bcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxBcastPkts.setStatus('current') wwp_leos_port_total_stats_undersize_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsUndersizePkts.setStatus('current') wwp_leos_port_total_stats_oversize_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsOversizePkts.setStatus('current') wwp_leos_port_total_stats_fragment_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsFragmentPkts.setStatus('current') wwp_leos_port_total_stats_jabber_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsJabberPkts.setStatus('current') wwp_leos_port_total_stats64_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStats64BytePkts.setStatus('current') wwp_leos_port_total_stats65_to127_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStats65To127BytePkts.setStatus('current') wwp_leos_port_total_stats128_to255_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStats128To255BytePkts.setStatus('current') wwp_leos_port_total_stats256_to511_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStats256To511BytePkts.setStatus('current') wwp_leos_port_total_stats512_to1023_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStats512To1023BytePkts.setStatus('current') wwp_leos_port_total_stats1024_to1518_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStats1024To1518BytePkts.setStatus('current') wwp_leos_port_total_stats_tx_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxBytes.setStatus('current') wwp_leos_port_total_stats_tx_t_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxTBytes.setStatus('deprecated') wwp_leos_port_total_stats_tx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxPkts.setStatus('current') wwp_leos_port_total_stats_tx_ex_defer_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxExDeferPkts.setStatus('current') wwp_leos_port_total_stats_tx_giant_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxGiantPkts.setStatus('current') wwp_leos_port_total_stats_tx_under_run_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxUnderRunPkts.setStatus('current') wwp_leos_port_total_stats_tx_crc_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxCrcErrorPkts.setStatus('current') wwp_leos_port_total_stats_tx_l_check_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxLCheckErrorPkts.setStatus('current') wwp_leos_port_total_stats_tx_l_out_range_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxLOutRangePkts.setStatus('current') wwp_leos_port_total_stats_tx_late_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxLateCollPkts.setStatus('current') wwp_leos_port_total_stats_tx_ex_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxExCollPkts.setStatus('current') wwp_leos_port_total_stats_tx_single_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 27), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxSingleCollPkts.setStatus('current') wwp_leos_port_total_stats_tx_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 28), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxCollPkts.setStatus('current') wwp_leos_port_total_stats_tx_pause_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 29), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxPausePkts.setStatus('current') wwp_leos_port_total_stats_tx_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 30), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxMcastPkts.setStatus('current') wwp_leos_port_total_stats_tx_bcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 31), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxBcastPkts.setStatus('current') wwp_leos_port_total_stats_port_reset = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('none', 0), ('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosPortTotalStatsPortReset.setStatus('current') wwp_leos_port_total_stats_rx_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 33), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxMcastPkts.setStatus('current') wwp_leos_port_total_stats_rx_pause_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 34), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxPausePkts.setStatus('current') wwp_leos_port_total_stats1519_to2047_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 35), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStats1519To2047BytePkts.setStatus('current') wwp_leos_port_total_stats2048_to4095_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 36), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStats2048To4095BytePkts.setStatus('current') wwp_leos_port_total_stats4096_to9216_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 37), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStats4096To9216BytePkts.setStatus('current') wwp_leos_port_total_stats_tx_defer_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 38), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxDeferPkts.setStatus('current') wwp_leos_port_total_stats_tx64_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 39), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx64BytePkts.setStatus('current') wwp_leos_port_total_stats_tx65_to127_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 40), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx65To127BytePkts.setStatus('current') wwp_leos_port_total_stats_tx128_to255_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 41), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx128To255BytePkts.setStatus('current') wwp_leos_port_total_stats_tx256_to511_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 42), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx256To511BytePkts.setStatus('current') wwp_leos_port_total_stats_tx512_to1023_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 43), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx512To1023BytePkts.setStatus('current') wwp_leos_port_total_stats_tx1024_to1518_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 44), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx1024To1518BytePkts.setStatus('current') wwp_leos_port_total_stats_tx1519_to2047_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 45), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx1519To2047BytePkts.setStatus('current') wwp_leos_port_total_stats_tx2048_to4095_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 46), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx2048To4095BytePkts.setStatus('current') wwp_leos_port_total_stats_tx4096_to9216_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 47), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTx4096To9216BytePkts.setStatus('current') wwp_leos_port_total_stats_rx_fpga_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 48), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxFpgaDropPkts.setStatus('current') wwp_leos_port_total_stats_port_link_up = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 49), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsPortLinkUp.setStatus('current') wwp_leos_port_total_stats_port_link_down = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 50), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsPortLinkDown.setStatus('current') wwp_leos_port_total_stats_port_link_flap = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 51), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsPortLinkFlap.setStatus('current') wwp_leos_port_total_stats_rx_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 52), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxUcastPkts.setStatus('current') wwp_leos_port_total_stats_tx_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 53), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxUcastPkts.setStatus('current') wwp_leos_port_total_stats_rx_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 54), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxDropPkts.setStatus('current') wwp_leos_port_total_stats_rx_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 55), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxDiscardPkts.setStatus('current') wwp_leos_port_total_stats_rx_l_out_range_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 56), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxLOutRangePkts.setStatus('current') wwp_leos_port_total_stats_rx_fpga_buffer_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 57), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxFpgaBufferDropPkts.setStatus('current') wwp_leos_port_total_stats_tx_fpga_buffer_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 58), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsTxFpgaBufferDropPkts.setStatus('current') wwp_leos_port_total_stats_fpga_vlan_pri_filter_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 59), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsFpgaVlanPriFilterDropPkts.setStatus('current') wwp_leos_port_total_stats_fpga_rx_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 60), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsFpgaRxErrorPkts.setStatus('current') wwp_leos_port_total_stats_fpga_rx_crc_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 61), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsFpgaRxCrcErrorPkts.setStatus('current') wwp_leos_port_total_stats_fpga_rx_ip_crc_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 62), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsFpgaRxIpCrcErrorPkts.setStatus('current') wwp_leos_port_total_stats_rx_in_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 3, 1, 63), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalStatsRxInErrorPkts.setStatus('current') wwp_leos_port_hc_stats_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4)) if mibBuilder.loadTexts: wwpLeosPortHCStatsTable.setStatus('current') wwp_leos_port_hc_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1)).setIndexNames((0, 'WWP-LEOS-PORT-STATS-MIB', 'wwpLeosPortHCStatsPortId')) if mibBuilder.loadTexts: wwpLeosPortHCStatsEntry.setStatus('current') wwp_leos_port_hc_stats_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsPortId.setStatus('current') wwp_leos_port_hc_stats_rx_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsRxBytes.setStatus('current') wwp_leos_port_hc_stats_rx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsRxPkts.setStatus('current') wwp_leos_port_hc_stats_rx_crc_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsRxCrcErrorPkts.setStatus('current') wwp_leos_port_hc_stats_rx_bcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsRxBcastPkts.setStatus('current') wwp_leos_port_hc_stats_undersize_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsUndersizePkts.setStatus('current') wwp_leos_port_hc_stats_oversize_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsOversizePkts.setStatus('current') wwp_leos_port_hc_stats_fragment_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsFragmentPkts.setStatus('current') wwp_leos_port_hc_stats_jabber_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsJabberPkts.setStatus('current') wwp_leos_port_hc_stats64_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStats64BytePkts.setStatus('current') wwp_leos_port_hc_stats65_to127_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStats65To127BytePkts.setStatus('current') wwp_leos_port_hc_stats128_to255_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStats128To255BytePkts.setStatus('current') wwp_leos_port_hc_stats256_to511_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStats256To511BytePkts.setStatus('current') wwp_leos_port_hc_stats512_to1023_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStats512To1023BytePkts.setStatus('current') wwp_leos_port_hc_stats1024_to1518_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStats1024To1518BytePkts.setStatus('current') wwp_leos_port_hc_stats_tx_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxBytes.setStatus('current') wwp_leos_port_hc_stats_tx_t_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxTBytes.setStatus('deprecated') wwp_leos_port_hc_stats_tx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxPkts.setStatus('current') wwp_leos_port_hc_stats_tx_ex_defer_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxExDeferPkts.setStatus('current') wwp_leos_port_hc_stats_tx_giant_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxGiantPkts.setStatus('current') wwp_leos_port_hc_stats_tx_under_run_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxUnderRunPkts.setStatus('current') wwp_leos_port_hc_stats_tx_crc_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxCrcErrorPkts.setStatus('current') wwp_leos_port_hc_stats_tx_l_check_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxLCheckErrorPkts.setStatus('current') wwp_leos_port_hc_stats_tx_l_out_range_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxLOutRangePkts.setStatus('current') wwp_leos_port_hc_stats_tx_late_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 25), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxLateCollPkts.setStatus('current') wwp_leos_port_hc_stats_tx_ex_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxExCollPkts.setStatus('current') wwp_leos_port_hc_stats_tx_single_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 27), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxSingleCollPkts.setStatus('current') wwp_leos_port_hc_stats_tx_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 28), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxCollPkts.setStatus('current') wwp_leos_port_hc_stats_tx_pause_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 29), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxPausePkts.setStatus('current') wwp_leos_port_hc_stats_tx_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 30), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxMcastPkts.setStatus('current') wwp_leos_port_hc_stats_tx_bcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 31), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxBcastPkts.setStatus('current') wwp_leos_port_hc_stats_port_reset = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('none', 0), ('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosPortHCStatsPortReset.setStatus('current') wwp_leos_port_hc_stats_rx_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 33), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsRxMcastPkts.setStatus('current') wwp_leos_port_hc_stats_rx_pause_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 34), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsRxPausePkts.setStatus('current') wwp_leos_port_hc_stats1519_to2047_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 35), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStats1519To2047BytePkts.setStatus('current') wwp_leos_port_hc_stats2048_to4095_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 36), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStats2048To4095BytePkts.setStatus('current') wwp_leos_port_hc_stats4096_to9216_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 37), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStats4096To9216BytePkts.setStatus('current') wwp_leos_port_hc_stats_tx_defer_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 38), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxDeferPkts.setStatus('current') wwp_leos_port_hc_stats_tx64_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 39), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTx64BytePkts.setStatus('current') wwp_leos_port_hc_stats_tx65_to127_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 40), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTx65To127BytePkts.setStatus('current') wwp_leos_port_hc_stats_tx128_to255_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 41), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTx128To255BytePkts.setStatus('current') wwp_leos_port_hc_stats_tx256_to511_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 42), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTx256To511BytePkts.setStatus('current') wwp_leos_port_hc_stats_tx512_to1023_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 43), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTx512To1023BytePkts.setStatus('current') wwp_leos_port_hc_stats_tx1024_to1518_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 44), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTx1024To1518BytePkts.setStatus('current') wwp_leos_port_hc_stats_tx1519_to2047_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 45), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTx1519To2047BytePkts.setStatus('current') wwp_leos_port_hc_stats_tx2048_to4095_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 46), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTx2048To4095BytePkts.setStatus('current') wwp_leos_port_hc_stats_tx4096_to9216_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 47), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTx4096To9216BytePkts.setStatus('current') wwp_leos_port_hc_stats_rx_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 48), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsRxUcastPkts.setStatus('current') wwp_leos_port_hc_stats_tx_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 49), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsTxUcastPkts.setStatus('current') wwp_leos_port_hc_stats_rx_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 50), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsRxDropPkts.setStatus('current') wwp_leos_port_hc_stats_rx_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 51), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsRxDiscardPkts.setStatus('current') wwp_leos_port_hc_stats_rx_l_out_range_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 52), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsRxLOutRangePkts.setStatus('current') wwp_leos_port_hc_stats_rx_in_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 53), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsRxInErrorPkts.setStatus('current') wwp_leos_port_hc_stats_last_refresh = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 54), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsLastRefresh.setStatus('current') wwp_leos_port_hc_stats_last_change = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 4, 1, 55), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortHCStatsLastChange.setStatus('current') wwp_leos_port_total_hc_stats_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5)) if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTable.setStatus('current') wwp_leos_port_total_hc_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1)).setIndexNames((0, 'WWP-LEOS-PORT-STATS-MIB', 'wwpLeosPortTotalHCStatsPortId')) if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsEntry.setStatus('current') wwp_leos_port_total_hc_stats_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsPortId.setStatus('current') wwp_leos_port_total_hc_stats_rx_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxBytes.setStatus('current') wwp_leos_port_total_hc_stats_rx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxPkts.setStatus('current') wwp_leos_port_total_hc_stats_rx_crc_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxCrcErrorPkts.setStatus('current') wwp_leos_port_total_hc_stats_rx_bcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxBcastPkts.setStatus('current') wwp_leos_port_total_hc_stats_undersize_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsUndersizePkts.setStatus('current') wwp_leos_port_total_hc_stats_oversize_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsOversizePkts.setStatus('current') wwp_leos_port_total_hc_stats_fragment_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsFragmentPkts.setStatus('current') wwp_leos_port_total_hc_stats_jabber_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsJabberPkts.setStatus('current') wwp_leos_port_total_hc_stats64_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStats64BytePkts.setStatus('current') wwp_leos_port_total_hc_stats65_to127_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStats65To127BytePkts.setStatus('current') wwp_leos_port_total_hc_stats128_to255_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStats128To255BytePkts.setStatus('current') wwp_leos_port_total_hc_stats256_to511_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStats256To511BytePkts.setStatus('current') wwp_leos_port_total_hc_stats512_to1023_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStats512To1023BytePkts.setStatus('current') wwp_leos_port_total_hc_stats1024_to1518_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStats1024To1518BytePkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxBytes.setStatus('current') wwp_leos_port_total_hc_stats_tx_t_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxTBytes.setStatus('deprecated') wwp_leos_port_total_hc_stats_tx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxPkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_ex_defer_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxExDeferPkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_giant_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxGiantPkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_under_run_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxUnderRunPkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_crc_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxCrcErrorPkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_l_check_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxLCheckErrorPkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_l_out_range_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxLOutRangePkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_late_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 25), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxLateCollPkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_ex_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxExCollPkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_single_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 27), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxSingleCollPkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_coll_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 28), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxCollPkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_pause_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 29), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxPausePkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 30), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxMcastPkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_bcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 31), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxBcastPkts.setStatus('current') wwp_leos_port_total_hc_stats_port_reset = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('none', 0), ('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsPortReset.setStatus('current') wwp_leos_port_total_hc_stats_rx_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 33), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxMcastPkts.setStatus('current') wwp_leos_port_total_hc_stats_rx_pause_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 34), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxPausePkts.setStatus('current') wwp_leos_port_total_hc_stats1519_to2047_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 35), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStats1519To2047BytePkts.setStatus('current') wwp_leos_port_total_hc_stats2048_to4095_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 36), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStats2048To4095BytePkts.setStatus('current') wwp_leos_port_total_hc_stats4096_to9216_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 37), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStats4096To9216BytePkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_defer_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 38), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxDeferPkts.setStatus('current') wwp_leos_port_total_hc_stats_tx64_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 39), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx64BytePkts.setStatus('current') wwp_leos_port_total_hc_stats_tx65_to127_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 40), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx65To127BytePkts.setStatus('current') wwp_leos_port_total_hc_stats_tx128_to255_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 41), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx128To255BytePkts.setStatus('current') wwp_leos_port_total_hc_stats_tx256_to511_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 42), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx256To511BytePkts.setStatus('current') wwp_leos_port_total_hc_stats_tx512_to1023_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 43), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx512To1023BytePkts.setStatus('current') wwp_leos_port_total_hc_stats_tx1024_to1518_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 44), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx1024To1518BytePkts.setStatus('current') wwp_leos_port_total_hc_stats_tx1519_to2047_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 45), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx1519To2047BytePkts.setStatus('current') wwp_leos_port_total_hc_stats_tx2048_to4095_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 46), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx2048To4095BytePkts.setStatus('current') wwp_leos_port_total_hc_stats_tx4096_to9216_byte_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 47), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTx4096To9216BytePkts.setStatus('current') wwp_leos_port_total_hc_stats_rx_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 48), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxUcastPkts.setStatus('current') wwp_leos_port_total_hc_stats_tx_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 49), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsTxUcastPkts.setStatus('current') wwp_leos_port_total_hc_stats_rx_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 50), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxDropPkts.setStatus('current') wwp_leos_port_total_hc_stats_rx_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 51), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxDiscardPkts.setStatus('current') wwp_leos_port_total_hc_stats_rx_l_out_range_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 52), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxLOutRangePkts.setStatus('current') wwp_leos_port_total_hc_stats_rx_in_error_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 53), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsRxInErrorPkts.setStatus('current') wwp_leos_port_total_hc_stats_last_refresh = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 54), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsLastRefresh.setStatus('current') wwp_leos_port_total_hc_stats_last_change = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 3, 1, 1, 5, 1, 55), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosPortTotalHCStatsLastChange.setStatus('current') mibBuilder.exportSymbols('WWP-LEOS-PORT-STATS-MIB', wwpLeosPortStatsRxFpgaBufferDropPkts=wwpLeosPortStatsRxFpgaBufferDropPkts, wwpLeosPortTotalStatsTxTBytes=wwpLeosPortTotalStatsTxTBytes, wwpLeosPortTotalHCStatsRxMcastPkts=wwpLeosPortTotalHCStatsRxMcastPkts, wwpLeosPortTotalHCStatsTxUcastPkts=wwpLeosPortTotalHCStatsTxUcastPkts, wwpLeosPortStatsTx1024To1518BytePkts=wwpLeosPortStatsTx1024To1518BytePkts, wwpLeosPortTotalStatsTxBytes=wwpLeosPortTotalStatsTxBytes, wwpLeosPortHCStatsTxBytes=wwpLeosPortHCStatsTxBytes, wwpLeosPortTotalStatsRxInErrorPkts=wwpLeosPortTotalStatsRxInErrorPkts, wwpLeosPortTotalStatsTxCrcErrorPkts=wwpLeosPortTotalStatsTxCrcErrorPkts, wwpLeosPortStatsRxBcastPkts=wwpLeosPortStatsRxBcastPkts, wwpLeosPortHCStatsTxLCheckErrorPkts=wwpLeosPortHCStatsTxLCheckErrorPkts, wwpLeosPortHCStats4096To9216BytePkts=wwpLeosPortHCStats4096To9216BytePkts, wwpLeosPortStatsPortReset=wwpLeosPortStatsPortReset, wwpLeosPortStatsPortId=wwpLeosPortStatsPortId, wwpLeosPortTotalStats256To511BytePkts=wwpLeosPortTotalStats256To511BytePkts, wwpLeosPortHCStatsTxCollPkts=wwpLeosPortHCStatsTxCollPkts, wwpLeosPortTotalStatsPortReset=wwpLeosPortTotalStatsPortReset, wwpLeosPortTotalHCStatsTxBcastPkts=wwpLeosPortTotalHCStatsTxBcastPkts, wwpLeosPortHCStatsTx64BytePkts=wwpLeosPortHCStatsTx64BytePkts, wwpLeosPortStatsFpgaRxErrorPkts=wwpLeosPortStatsFpgaRxErrorPkts, wwpLeosPortHCStatsTable=wwpLeosPortHCStatsTable, wwpLeosPortStatsRxDiscardPkts=wwpLeosPortStatsRxDiscardPkts, wwpLeosPortStatsFpgaRxCrcErrorPkts=wwpLeosPortStatsFpgaRxCrcErrorPkts, wwpLeosPortTotalStatsTx64BytePkts=wwpLeosPortTotalStatsTx64BytePkts, wwpLeosPortTotalHCStats4096To9216BytePkts=wwpLeosPortTotalHCStats4096To9216BytePkts, wwpLeosPortTotalStats4096To9216BytePkts=wwpLeosPortTotalStats4096To9216BytePkts, wwpLeosPortStatsRxFpgaDropPkts=wwpLeosPortStatsRxFpgaDropPkts, wwpLeosPortTotalStatsRxBcastPkts=wwpLeosPortTotalStatsRxBcastPkts, wwpLeosPortTotalStatsJabberPkts=wwpLeosPortTotalStatsJabberPkts, wwpLeosPortHCStatsTxMcastPkts=wwpLeosPortHCStatsTxMcastPkts, wwpLeosPortTotalHCStats128To255BytePkts=wwpLeosPortTotalHCStats128To255BytePkts, wwpLeosPortTotalHCStatsTxPkts=wwpLeosPortTotalHCStatsTxPkts, wwpLeosPortHCStatsRxUcastPkts=wwpLeosPortHCStatsRxUcastPkts, wwpLeosPortTotalStatsTx2048To4095BytePkts=wwpLeosPortTotalStatsTx2048To4095BytePkts, wwpLeosPortHCStatsRxBcastPkts=wwpLeosPortHCStatsRxBcastPkts, wwpLeosPortStatsTxMcastPkts=wwpLeosPortStatsTxMcastPkts, wwpLeosPortHCStatsPortReset=wwpLeosPortHCStatsPortReset, wwpLeosPortTotalHCStatsUndersizePkts=wwpLeosPortTotalHCStatsUndersizePkts, wwpLeosPortTotalStatsTxLOutRangePkts=wwpLeosPortTotalStatsTxLOutRangePkts, wwpLeosPortStatsTxBcastPkts=wwpLeosPortStatsTxBcastPkts, wwpLeosPortHCStatsUndersizePkts=wwpLeosPortHCStatsUndersizePkts, wwpLeosPortTotalStatsPortId=wwpLeosPortTotalStatsPortId, wwpLeosPortHCStatsTxSingleCollPkts=wwpLeosPortHCStatsTxSingleCollPkts, wwpLeosPortTotalStatsPortLinkFlap=wwpLeosPortTotalStatsPortLinkFlap, wwpLeosPortStatsTxLOutRangePkts=wwpLeosPortStatsTxLOutRangePkts, wwpLeosPortHCStatsTxTBytes=wwpLeosPortHCStatsTxTBytes, wwpLeosPortHCStatsTxUnderRunPkts=wwpLeosPortHCStatsTxUnderRunPkts, wwpLeosPortHCStatsRxLOutRangePkts=wwpLeosPortHCStatsRxLOutRangePkts, wwpLeosPortStats256To511BytePkts=wwpLeosPortStats256To511BytePkts, wwpLeosPortHCStatsTxExDeferPkts=wwpLeosPortHCStatsTxExDeferPkts, wwpLeosPortStats65To127BytePkts=wwpLeosPortStats65To127BytePkts, wwpLeosPortTotalHCStatsRxPkts=wwpLeosPortTotalHCStatsRxPkts, wwpLeosPortStatsFragmentPkts=wwpLeosPortStatsFragmentPkts, wwpLeosPortTotalStatsTxPausePkts=wwpLeosPortTotalStatsTxPausePkts, wwpLeosPortTotalHCStatsRxBcastPkts=wwpLeosPortTotalHCStatsRxBcastPkts, wwpLeosPortTotalStatsTx128To255BytePkts=wwpLeosPortTotalStatsTx128To255BytePkts, wwpLeosPortStats2048To4095BytePkts=wwpLeosPortStats2048To4095BytePkts, wwpLeosPortTotalStatsFpgaVlanPriFilterDropPkts=wwpLeosPortTotalStatsFpgaVlanPriFilterDropPkts, wwpLeosPortTotalStatsRxLOutRangePkts=wwpLeosPortTotalStatsRxLOutRangePkts, wwpLeosPortStatsMIB=wwpLeosPortStatsMIB, wwpLeosPortTotalStatsTx256To511BytePkts=wwpLeosPortTotalStatsTx256To511BytePkts, wwpLeosPortHCStatsLastRefresh=wwpLeosPortHCStatsLastRefresh, wwpLeosPortTotalStatsTable=wwpLeosPortTotalStatsTable, wwpLeosPortTotalHCStatsRxUcastPkts=wwpLeosPortTotalHCStatsRxUcastPkts, wwpLeosPortTotalStatsPortLinkDown=wwpLeosPortTotalStatsPortLinkDown, wwpLeosPortStatsTx65To127BytePkts=wwpLeosPortStatsTx65To127BytePkts, wwpLeosPortTotalStats1024To1518BytePkts=wwpLeosPortTotalStats1024To1518BytePkts, wwpLeosPortHCStatsTx128To255BytePkts=wwpLeosPortHCStatsTx128To255BytePkts, wwpLeosPortHCStatsJabberPkts=wwpLeosPortHCStatsJabberPkts, wwpLeosPortTotalStatsTx512To1023BytePkts=wwpLeosPortTotalStatsTx512To1023BytePkts, wwpLeosPortTotalStatsTx1024To1518BytePkts=wwpLeosPortTotalStatsTx1024To1518BytePkts, wwpLeosPortHCStats2048To4095BytePkts=wwpLeosPortHCStats2048To4095BytePkts, wwpLeosPortHCStatsRxDropPkts=wwpLeosPortHCStatsRxDropPkts, wwpLeosPortStatsTxPausePkts=wwpLeosPortStatsTxPausePkts, wwpLeosPortStatsRxPausePkts=wwpLeosPortStatsRxPausePkts, wwpLeosPortTotalStatsRxFpgaDropPkts=wwpLeosPortTotalStatsRxFpgaDropPkts, wwpLeosPortTotalHCStatsRxPausePkts=wwpLeosPortTotalHCStatsRxPausePkts, wwpLeosPortStatsRxBytes=wwpLeosPortStatsRxBytes, wwpLeosPortTotalStatsTx1519To2047BytePkts=wwpLeosPortTotalStatsTx1519To2047BytePkts, wwpLeosPortTotalStatsTxDeferPkts=wwpLeosPortTotalStatsTxDeferPkts, wwpLeosPortHCStatsTxLateCollPkts=wwpLeosPortHCStatsTxLateCollPkts, wwpLeosPortTotalStats512To1023BytePkts=wwpLeosPortTotalStats512To1023BytePkts, wwpLeosPortStatsMIBNotifications=wwpLeosPortStatsMIBNotifications, wwpLeosPortHCStatsTx65To127BytePkts=wwpLeosPortHCStatsTx65To127BytePkts, wwpLeosPortTotalStatsTxCollPkts=wwpLeosPortTotalStatsTxCollPkts, wwpLeosPortTotalHCStatsRxLOutRangePkts=wwpLeosPortTotalHCStatsRxLOutRangePkts, wwpLeosPortHCStatsTxPausePkts=wwpLeosPortHCStatsTxPausePkts, wwpLeosPortTotalStatsTxMcastPkts=wwpLeosPortTotalStatsTxMcastPkts, wwpLeosPortTotalHCStatsTx64BytePkts=wwpLeosPortTotalHCStatsTx64BytePkts, wwpLeosPortTotalStatsTx4096To9216BytePkts=wwpLeosPortTotalStatsTx4096To9216BytePkts, wwpLeosPortTotalStatsTxGiantPkts=wwpLeosPortTotalStatsTxGiantPkts, wwpLeosPortStatsReset=wwpLeosPortStatsReset, wwpLeosPortTotalStatsTxPkts=wwpLeosPortTotalStatsTxPkts, wwpLeosPortTotalStatsTxSingleCollPkts=wwpLeosPortTotalStatsTxSingleCollPkts, wwpLeosPortStatsPortLinkUp=wwpLeosPortStatsPortLinkUp, wwpLeosPortTotalHCStatsTxLCheckErrorPkts=wwpLeosPortTotalHCStatsTxLCheckErrorPkts, wwpLeosPortTotalStats1519To2047BytePkts=wwpLeosPortTotalStats1519To2047BytePkts, wwpLeosPortTotalHCStatsEntry=wwpLeosPortTotalHCStatsEntry, wwpLeosPortTotalHCStatsTxBytes=wwpLeosPortTotalHCStatsTxBytes, wwpLeosPortStatsTxTBytes=wwpLeosPortStatsTxTBytes, wwpLeosPortStatsRxLOutRangePkts=wwpLeosPortStatsRxLOutRangePkts, wwpLeosPortHCStatsTxDeferPkts=wwpLeosPortHCStatsTxDeferPkts, wwpLeosPortTotalHCStatsRxCrcErrorPkts=wwpLeosPortTotalHCStatsRxCrcErrorPkts, wwpLeosPortTotalStatsFpgaRxCrcErrorPkts=wwpLeosPortTotalStatsFpgaRxCrcErrorPkts, wwpLeosPortTotalStatsFpgaRxIpCrcErrorPkts=wwpLeosPortTotalStatsFpgaRxIpCrcErrorPkts, wwpLeosPortStatsRxUcastPkts=wwpLeosPortStatsRxUcastPkts, wwpLeosPortTotalStatsRxBytes=wwpLeosPortTotalStatsRxBytes, wwpLeosPortHCStatsRxCrcErrorPkts=wwpLeosPortHCStatsRxCrcErrorPkts, wwpLeosPortHCStatsTxCrcErrorPkts=wwpLeosPortHCStatsTxCrcErrorPkts, wwpLeosPortTotalHCStats256To511BytePkts=wwpLeosPortTotalHCStats256To511BytePkts, wwpLeosPortHCStats128To255BytePkts=wwpLeosPortHCStats128To255BytePkts, wwpLeosPortTotalHCStatsLastRefresh=wwpLeosPortTotalHCStatsLastRefresh, wwpLeosPortStatsPortLinkFlap=wwpLeosPortStatsPortLinkFlap, wwpLeosPortStats64BytePkts=wwpLeosPortStats64BytePkts, wwpLeosPortStatsMIBObjects=wwpLeosPortStatsMIBObjects, wwpLeosPortTotalHCStatsTxExDeferPkts=wwpLeosPortTotalHCStatsTxExDeferPkts, wwpLeosPortTotalHCStatsTxUnderRunPkts=wwpLeosPortTotalHCStatsTxUnderRunPkts, wwpLeosPortHCStats1024To1518BytePkts=wwpLeosPortHCStats1024To1518BytePkts, wwpLeosPortHCStatsRxPkts=wwpLeosPortHCStatsRxPkts, wwpLeosPortHCStatsTx4096To9216BytePkts=wwpLeosPortHCStatsTx4096To9216BytePkts, wwpLeosPortTotalStatsTxUcastPkts=wwpLeosPortTotalStatsTxUcastPkts, wwpLeosPortTotalStatsRxDiscardPkts=wwpLeosPortTotalStatsRxDiscardPkts, wwpLeosPortStatsTxPkts=wwpLeosPortStatsTxPkts, wwpLeosPortStatsTxUnderRunPkts=wwpLeosPortStatsTxUnderRunPkts, wwpLeosPortTotalStats2048To4095BytePkts=wwpLeosPortTotalStats2048To4095BytePkts, wwpLeosPortHCStatsTxLOutRangePkts=wwpLeosPortHCStatsTxLOutRangePkts, wwpLeosPortHCStatsEntry=wwpLeosPortHCStatsEntry, wwpLeosPortStatsTx256To511BytePkts=wwpLeosPortStatsTx256To511BytePkts, wwpLeosPortTotalHCStatsTxCrcErrorPkts=wwpLeosPortTotalHCStatsTxCrcErrorPkts, wwpLeosPortStats1519To2047BytePkts=wwpLeosPortStats1519To2047BytePkts, wwpLeosPortTotalStats65To127BytePkts=wwpLeosPortTotalStats65To127BytePkts, wwpLeosPortStatsJabberPkts=wwpLeosPortStatsJabberPkts, wwpLeosPortHCStatsTx512To1023BytePkts=wwpLeosPortHCStatsTx512To1023BytePkts, wwpLeosPortStatsTxLateCollPkts=wwpLeosPortStatsTxLateCollPkts, wwpLeosPortStatsRxDropPkts=wwpLeosPortStatsRxDropPkts, wwpLeosPortHCStatsTx1519To2047BytePkts=wwpLeosPortHCStatsTx1519To2047BytePkts, wwpLeosPortHCStatsRxMcastPkts=wwpLeosPortHCStatsRxMcastPkts, wwpLeosPortTotalHCStatsTable=wwpLeosPortTotalHCStatsTable, wwpLeosPortTotalStatsTxUnderRunPkts=wwpLeosPortTotalStatsTxUnderRunPkts, wwpLeosPortTotalStatsTxExDeferPkts=wwpLeosPortTotalStatsTxExDeferPkts, wwpLeosPortStatsRxCrcErrorPkts=wwpLeosPortStatsRxCrcErrorPkts, wwpLeosPortStatsTxDeferPkts=wwpLeosPortStatsTxDeferPkts, wwpLeosPortStatsTx512To1023BytePkts=wwpLeosPortStatsTx512To1023BytePkts, wwpLeosPortTotalStatsTxLCheckErrorPkts=wwpLeosPortTotalStatsTxLCheckErrorPkts, wwpLeosPortTotalHCStats65To127BytePkts=wwpLeosPortTotalHCStats65To127BytePkts, wwpLeosPortTotalHCStats1519To2047BytePkts=wwpLeosPortTotalHCStats1519To2047BytePkts, wwpLeosPortStatsTable=wwpLeosPortStatsTable, wwpLeosPortTotalHCStatsRxDiscardPkts=wwpLeosPortTotalHCStatsRxDiscardPkts, wwpLeosPortStats4096To9216BytePkts=wwpLeosPortStats4096To9216BytePkts, wwpLeosPortTotalHCStatsTx512To1023BytePkts=wwpLeosPortTotalHCStatsTx512To1023BytePkts, wwpLeosPortStatsMIBNotificationPrefix=wwpLeosPortStatsMIBNotificationPrefix, wwpLeosPortHCStatsTxGiantPkts=wwpLeosPortHCStatsTxGiantPkts, wwpLeosPortTotalStatsRxUcastPkts=wwpLeosPortTotalStatsRxUcastPkts, wwpLeosPortHCStats64BytePkts=wwpLeosPortHCStats64BytePkts, wwpLeosPortHCStatsRxInErrorPkts=wwpLeosPortHCStatsRxInErrorPkts, wwpLeosPortTotalHCStatsRxBytes=wwpLeosPortTotalHCStatsRxBytes, wwpLeosPortTotalStats64BytePkts=wwpLeosPortTotalStats64BytePkts, wwpLeosPortStatsTxExDeferPkts=wwpLeosPortStatsTxExDeferPkts, wwpLeosPortStatsRxPkts=wwpLeosPortStatsRxPkts, wwpLeosPortTotalHCStatsTxTBytes=wwpLeosPortTotalHCStatsTxTBytes, wwpLeosPortStatsMIBGroups=wwpLeosPortStatsMIBGroups, wwpLeosPortStatsTxCrcErrorPkts=wwpLeosPortStatsTxCrcErrorPkts, wwpLeosPortTotalStatsEntry=wwpLeosPortTotalStatsEntry, wwpLeosPortTotalHCStatsFragmentPkts=wwpLeosPortTotalHCStatsFragmentPkts, wwpLeosPortTotalStatsUndersizePkts=wwpLeosPortTotalStatsUndersizePkts, wwpLeosPortTotalStatsTxFpgaBufferDropPkts=wwpLeosPortTotalStatsTxFpgaBufferDropPkts, wwpLeosPortHCStatsTxPkts=wwpLeosPortHCStatsTxPkts, wwpLeosPortTotalHCStats2048To4095BytePkts=wwpLeosPortTotalHCStats2048To4095BytePkts, wwpLeosPortTotalHCStatsTx65To127BytePkts=wwpLeosPortTotalHCStatsTx65To127BytePkts, wwpLeosPortTotalStatsFpgaRxErrorPkts=wwpLeosPortTotalStatsFpgaRxErrorPkts, wwpLeosPortTotalHCStatsPortId=wwpLeosPortTotalHCStatsPortId, wwpLeosPortTotalStatsFragmentPkts=wwpLeosPortTotalStatsFragmentPkts, wwpLeosPortStats512To1023BytePkts=wwpLeosPortStats512To1023BytePkts, wwpLeosPortStats=wwpLeosPortStats, wwpLeosPortHCStatsTx256To511BytePkts=wwpLeosPortHCStatsTx256To511BytePkts, wwpLeosPortTotalHCStatsJabberPkts=wwpLeosPortTotalHCStatsJabberPkts, wwpLeosPortTotalHCStatsTx1024To1518BytePkts=wwpLeosPortTotalHCStatsTx1024To1518BytePkts, wwpLeosPortHCStatsRxBytes=wwpLeosPortHCStatsRxBytes, wwpLeosPortTotalHCStats64BytePkts=wwpLeosPortTotalHCStats64BytePkts, wwpLeosPortStatsTxExCollPkts=wwpLeosPortStatsTxExCollPkts, wwpLeosPortStatsTxGiantPkts=wwpLeosPortStatsTxGiantPkts, wwpLeosPortHCStats65To127BytePkts=wwpLeosPortHCStats65To127BytePkts, wwpLeosPortStats1024To1518BytePkts=wwpLeosPortStats1024To1518BytePkts, wwpLeosPortHCStatsTxUcastPkts=wwpLeosPortHCStatsTxUcastPkts, wwpLeosPortTotalHCStatsTxCollPkts=wwpLeosPortTotalHCStatsTxCollPkts, wwpLeosPortTotalStatsTx65To127BytePkts=wwpLeosPortTotalStatsTx65To127BytePkts, wwpLeosPortTotalStatsRxFpgaBufferDropPkts=wwpLeosPortTotalStatsRxFpgaBufferDropPkts, wwpLeosPortTotalHCStatsTxLOutRangePkts=wwpLeosPortTotalHCStatsTxLOutRangePkts, wwpLeosPortTotalHCStatsTxPausePkts=wwpLeosPortTotalHCStatsTxPausePkts, wwpLeosPortHCStatsOversizePkts=wwpLeosPortHCStatsOversizePkts, wwpLeosPortTotalStatsTxBcastPkts=wwpLeosPortTotalStatsTxBcastPkts, wwpLeosPortStatsTxBytes=wwpLeosPortStatsTxBytes, wwpLeosPortTotalHCStatsTxGiantPkts=wwpLeosPortTotalHCStatsTxGiantPkts, wwpLeosPortTotalHCStatsTxExCollPkts=wwpLeosPortTotalHCStatsTxExCollPkts, wwpLeosPortStatsTx1519To2047BytePkts=wwpLeosPortStatsTx1519To2047BytePkts, PYSNMP_MODULE_ID=wwpLeosPortStatsMIB, wwpLeosPortTotalStatsOversizePkts=wwpLeosPortTotalStatsOversizePkts, wwpLeosPortTotalHCStatsTxMcastPkts=wwpLeosPortTotalHCStatsTxMcastPkts, wwpLeosPortStatsTxLCheckErrorPkts=wwpLeosPortStatsTxLCheckErrorPkts, wwpLeosPortHCStats256To511BytePkts=wwpLeosPortHCStats256To511BytePkts, wwpLeosPortHCStatsTxExCollPkts=wwpLeosPortHCStatsTxExCollPkts, wwpLeosPortHCStatsTxBcastPkts=wwpLeosPortHCStatsTxBcastPkts, wwpLeosPortTotalHCStatsTx4096To9216BytePkts=wwpLeosPortTotalHCStatsTx4096To9216BytePkts, wwpLeosPortHCStatsTx2048To4095BytePkts=wwpLeosPortHCStatsTx2048To4095BytePkts, wwpLeosPortTotalStats128To255BytePkts=wwpLeosPortTotalStats128To255BytePkts, wwpLeosPortStatsTx128To255BytePkts=wwpLeosPortStatsTx128To255BytePkts, wwpLeosPortTotalStatsTxLateCollPkts=wwpLeosPortTotalStatsTxLateCollPkts, wwpLeosPortStatsFpgaVlanPriFilterDropPkts=wwpLeosPortStatsFpgaVlanPriFilterDropPkts, wwpLeosPortStatsTxFpgaBufferDropPkts=wwpLeosPortStatsTxFpgaBufferDropPkts, wwpLeosPortTotalStatsRxPkts=wwpLeosPortTotalStatsRxPkts, wwpLeosPortTotalHCStatsTx2048To4095BytePkts=wwpLeosPortTotalHCStatsTx2048To4095BytePkts, wwpLeosPortHCStatsLastChange=wwpLeosPortHCStatsLastChange, wwpLeosPortHCStats512To1023BytePkts=wwpLeosPortHCStats512To1023BytePkts, wwpLeosPortTotalHCStats512To1023BytePkts=wwpLeosPortTotalHCStats512To1023BytePkts, wwpLeosPortTotalHCStatsTxLateCollPkts=wwpLeosPortTotalHCStatsTxLateCollPkts, wwpLeosPortStatsFpgaRxIpCrcErrorPkts=wwpLeosPortStatsFpgaRxIpCrcErrorPkts, wwpLeosPortStatsRxInErrorPkts=wwpLeosPortStatsRxInErrorPkts, wwpLeosPortStatsUndersizePkts=wwpLeosPortStatsUndersizePkts, wwpLeosPortHCStatsTx1024To1518BytePkts=wwpLeosPortHCStatsTx1024To1518BytePkts, wwpLeosPortTotalHCStatsPortReset=wwpLeosPortTotalHCStatsPortReset, wwpLeosPortTotalStatsTxExCollPkts=wwpLeosPortTotalStatsTxExCollPkts, wwpLeosPortStatsOversizePkts=wwpLeosPortStatsOversizePkts, wwpLeosPortStatsTxSingleCollPkts=wwpLeosPortStatsTxSingleCollPkts, wwpLeosPortTotalStatsRxPausePkts=wwpLeosPortTotalStatsRxPausePkts, wwpLeosPortHCStatsRxPausePkts=wwpLeosPortHCStatsRxPausePkts, wwpLeosPortTotalHCStatsRxInErrorPkts=wwpLeosPortTotalHCStatsRxInErrorPkts, wwpLeosPortTotalHCStatsTx256To511BytePkts=wwpLeosPortTotalHCStatsTx256To511BytePkts, wwpLeosPortTotalStatsRxCrcErrorPkts=wwpLeosPortTotalStatsRxCrcErrorPkts, wwpLeosPortTotalHCStatsLastChange=wwpLeosPortTotalHCStatsLastChange, wwpLeosPortTotalStatsRxMcastPkts=wwpLeosPortTotalStatsRxMcastPkts, wwpLeosPortHCStats1519To2047BytePkts=wwpLeosPortHCStats1519To2047BytePkts, wwpLeosPortStatsMIBConformance=wwpLeosPortStatsMIBConformance, wwpLeosPortStatsTxUcastPkts=wwpLeosPortStatsTxUcastPkts, wwpLeosPortHCStatsRxDiscardPkts=wwpLeosPortHCStatsRxDiscardPkts, wwpLeosPortTotalHCStatsRxDropPkts=wwpLeosPortTotalHCStatsRxDropPkts, wwpLeosPortStats128To255BytePkts=wwpLeosPortStats128To255BytePkts, wwpLeosPortStatsMIBCompliances=wwpLeosPortStatsMIBCompliances, wwpLeosPortTotalStatsPortLinkUp=wwpLeosPortTotalStatsPortLinkUp, wwpLeosPortStatsEntry=wwpLeosPortStatsEntry, wwpLeosPortStatsTxCollPkts=wwpLeosPortStatsTxCollPkts, wwpLeosPortStatsTx2048To4095BytePkts=wwpLeosPortStatsTx2048To4095BytePkts, wwpLeosPortHCStatsFragmentPkts=wwpLeosPortHCStatsFragmentPkts, wwpLeosPortTotalHCStatsOversizePkts=wwpLeosPortTotalHCStatsOversizePkts, wwpLeosPortTotalStatsRxDropPkts=wwpLeosPortTotalStatsRxDropPkts, wwpLeosPortTotalHCStats1024To1518BytePkts=wwpLeosPortTotalHCStats1024To1518BytePkts, wwpLeosPortTotalHCStatsTxDeferPkts=wwpLeosPortTotalHCStatsTxDeferPkts, wwpLeosPortTotalHCStatsTx128To255BytePkts=wwpLeosPortTotalHCStatsTx128To255BytePkts, wwpLeosPortTotalHCStatsTx1519To2047BytePkts=wwpLeosPortTotalHCStatsTx1519To2047BytePkts, wwpLeosPortStatsTx4096To9216BytePkts=wwpLeosPortStatsTx4096To9216BytePkts, wwpLeosPortHCStatsPortId=wwpLeosPortHCStatsPortId, wwpLeosPortStatsPortLinkDown=wwpLeosPortStatsPortLinkDown, wwpLeosPortTotalHCStatsTxSingleCollPkts=wwpLeosPortTotalHCStatsTxSingleCollPkts, wwpLeosPortStatsRxMcastPkts=wwpLeosPortStatsRxMcastPkts, wwpLeosPortStatsTx64BytePkts=wwpLeosPortStatsTx64BytePkts) mibBuilder.exportSymbols('WWP-LEOS-PORT-STATS-MIB')
def partition(arr, left, right): pivot = arr[left] low = left + 1 high = right while low <= high: while low <= right and pivot > arr[low]: low += 1 while high > left and pivot < arr[high]: high -= 1 if (low <= high): arr[low], arr[high] = arr[high], arr[low] arr[left], arr[high] = arr[high], arr[left] return high def quick_sort(arr, left, right): if left > right: return pivot_idx = partition(arr, left, right) quick_sort(arr, left, pivot_idx - 1) quick_sort(arr, pivot_idx + 1, right) def print_array(arr, n): for i in range(n): print(arr[i], end=' ') print() arr = list(map(int, input().split())) size = len(arr) print_array(arr, size) quick_sort(arr, 0, size - 1) print_array(arr, size) ''' Input: 5 4 3 2 1 Output: 5 4 3 2 1 1 2 3 4 5 '''
def partition(arr, left, right): pivot = arr[left] low = left + 1 high = right while low <= high: while low <= right and pivot > arr[low]: low += 1 while high > left and pivot < arr[high]: high -= 1 if low <= high: (arr[low], arr[high]) = (arr[high], arr[low]) (arr[left], arr[high]) = (arr[high], arr[left]) return high def quick_sort(arr, left, right): if left > right: return pivot_idx = partition(arr, left, right) quick_sort(arr, left, pivot_idx - 1) quick_sort(arr, pivot_idx + 1, right) def print_array(arr, n): for i in range(n): print(arr[i], end=' ') print() arr = list(map(int, input().split())) size = len(arr) print_array(arr, size) quick_sort(arr, 0, size - 1) print_array(arr, size) '\nInput:\n5 4 3 2 1\n\nOutput:\n5 4 3 2 1\n1 2 3 4 5\n'
sieve = [0] * 300001 for i in range(6, 300000, 7): sieve[i] = sieve[i+2] = 1 MSprimes = [] for i in range(6, 300000, 7): if sieve[i] == 1: MSprimes.append(i) for j in range(2*i, 300000, i): sieve[j] = 0 if sieve[i+2] == 1: MSprimes.append(i+2) for j in range(2*(i+2), 300000, i+2): sieve[j] = 0 while True: N = int(input()) if N == 1: break ansp = [x for x in MSprimes if N % x == 0] print('{}: {}'.format(N, ' '.join(map(str, ansp))))
sieve = [0] * 300001 for i in range(6, 300000, 7): sieve[i] = sieve[i + 2] = 1 m_sprimes = [] for i in range(6, 300000, 7): if sieve[i] == 1: MSprimes.append(i) for j in range(2 * i, 300000, i): sieve[j] = 0 if sieve[i + 2] == 1: MSprimes.append(i + 2) for j in range(2 * (i + 2), 300000, i + 2): sieve[j] = 0 while True: n = int(input()) if N == 1: break ansp = [x for x in MSprimes if N % x == 0] print('{}: {}'.format(N, ' '.join(map(str, ansp))))
N = int(input()) a = list(map(int, input().split())) a.sort(reverse=True) print(sum(a[1::2][:N]))
n = int(input()) a = list(map(int, input().split())) a.sort(reverse=True) print(sum(a[1::2][:N]))
if m > 1: b = 'metros equivalem' else: b = 'metro equivale' #https://pt.stackoverflow.com/q/413280/101
if m > 1: b = 'metros equivalem' else: b = 'metro equivale'
__version__ = '0.1.0' def cli(): print("Hello from child CLI!")
__version__ = '0.1.0' def cli(): print('Hello from child CLI!')
input_data = '1901,12.3\n1902,45.6\n1903,78.9' print('input data is:') print(input_data) as_lines = input_data.split('\n') print('as lines:') print(as_lines) for line in as_lines: fields = line.split(',') year = int(fields[0]) value = float(fields[1]) print(year, ':', value)
input_data = '1901,12.3\n1902,45.6\n1903,78.9' print('input data is:') print(input_data) as_lines = input_data.split('\n') print('as lines:') print(as_lines) for line in as_lines: fields = line.split(',') year = int(fields[0]) value = float(fields[1]) print(year, ':', value)
def findDecision(obj): #obj[0]: Passanger, obj[1]: Weather, obj[2]: Temperature, obj[3]: Time, obj[4]: Coupon, obj[5]: Coupon_validity, obj[6]: Gender, obj[7]: Age, obj[8]: Maritalstatus, obj[9]: Children, obj[10]: Education, obj[11]: Occupation, obj[12]: Income, obj[13]: Bar, obj[14]: Coffeehouse, obj[15]: Restaurantlessthan20, obj[16]: Restaurant20to50, obj[17]: Direction_same, obj[18]: Distance # {"feature": "Age", "instances": 51, "metric_value": 0.9774, "depth": 1} if obj[7]<=3: # {"feature": "Weather", "instances": 34, "metric_value": 0.9975, "depth": 2} if obj[1]<=0: # {"feature": "Coupon", "instances": 28, "metric_value": 0.9852, "depth": 3} if obj[4]<=3: # {"feature": "Restaurantlessthan20", "instances": 17, "metric_value": 0.874, "depth": 4} if obj[15]<=2.0: # {"feature": "Occupation", "instances": 10, "metric_value": 1.0, "depth": 5} if obj[11]<=8: # {"feature": "Income", "instances": 7, "metric_value": 0.8631, "depth": 6} if obj[12]>4: return 'True' elif obj[12]<=4: # {"feature": "Passanger", "instances": 3, "metric_value": 0.9183, "depth": 7} if obj[0]>0: return 'False' elif obj[0]<=0: return 'True' else: return 'True' else: return 'False' elif obj[11]>8: return 'False' else: return 'False' elif obj[15]>2.0: return 'True' else: return 'True' elif obj[4]>3: # {"feature": "Time", "instances": 11, "metric_value": 0.9457, "depth": 4} if obj[3]<=1: return 'False' elif obj[3]>1: # {"feature": "Passanger", "instances": 5, "metric_value": 0.7219, "depth": 5} if obj[0]>0: return 'True' elif obj[0]<=0: # {"feature": "Children", "instances": 2, "metric_value": 1.0, "depth": 6} if obj[9]<=0: return 'True' elif obj[9]>0: return 'False' else: return 'False' else: return 'True' else: return 'True' else: return 'False' elif obj[1]>0: return 'False' else: return 'False' elif obj[7]>3: # {"feature": "Temperature", "instances": 17, "metric_value": 0.6723, "depth": 2} if obj[2]>30: # {"feature": "Bar", "instances": 14, "metric_value": 0.3712, "depth": 3} if obj[13]<=2.0: return 'True' elif obj[13]>2.0: # {"feature": "Coupon", "instances": 3, "metric_value": 0.9183, "depth": 4} if obj[4]<=0: return 'True' elif obj[4]>0: return 'False' else: return 'False' else: return 'True' elif obj[2]<=30: # {"feature": "Time", "instances": 3, "metric_value": 0.9183, "depth": 3} if obj[3]>0: return 'False' elif obj[3]<=0: return 'True' else: return 'True' else: return 'False' else: return 'True'
def find_decision(obj): if obj[7] <= 3: if obj[1] <= 0: if obj[4] <= 3: if obj[15] <= 2.0: if obj[11] <= 8: if obj[12] > 4: return 'True' elif obj[12] <= 4: if obj[0] > 0: return 'False' elif obj[0] <= 0: return 'True' else: return 'True' else: return 'False' elif obj[11] > 8: return 'False' else: return 'False' elif obj[15] > 2.0: return 'True' else: return 'True' elif obj[4] > 3: if obj[3] <= 1: return 'False' elif obj[3] > 1: if obj[0] > 0: return 'True' elif obj[0] <= 0: if obj[9] <= 0: return 'True' elif obj[9] > 0: return 'False' else: return 'False' else: return 'True' else: return 'True' else: return 'False' elif obj[1] > 0: return 'False' else: return 'False' elif obj[7] > 3: if obj[2] > 30: if obj[13] <= 2.0: return 'True' elif obj[13] > 2.0: if obj[4] <= 0: return 'True' elif obj[4] > 0: return 'False' else: return 'False' else: return 'True' elif obj[2] <= 30: if obj[3] > 0: return 'False' elif obj[3] <= 0: return 'True' else: return 'True' else: return 'False' else: return 'True'
score = int(input()) if score >= 90: print("A") elif score >= 70: print("B") elif score >= 40: print("C") else: print("D")
score = int(input()) if score >= 90: print('A') elif score >= 70: print('B') elif score >= 40: print('C') else: print('D')
{ "targets": [ { "target_name": "addon", "sources": ["./main_node.cpp", "./GhostServer/GhostServer/networkmanager.cpp"], "libraries": ["-lsfml-network", "-lsfml-system", "-lpthread"], } ] }
{'targets': [{'target_name': 'addon', 'sources': ['./main_node.cpp', './GhostServer/GhostServer/networkmanager.cpp'], 'libraries': ['-lsfml-network', '-lsfml-system', '-lpthread']}]}
print('''Type the phrases bellow to know our answer: 1. Hello 2. How are you? 3. Good bye''') ps = (70 * '-') + '\nYou might have to try again if the phrases will be inserted differently.' print(ps) while True: userInput = str(input('Please input the choosen phrase: ')).upper() if userInput == 'HELLO': print('Hello to you too!') elif userInput == 'HOW ARE YOU?': print('Fine, thanks for asking.') elif userInput == 'GOOD BYE': break else: print('Try again.')
print('Type the phrases bellow to know our answer:\n1. Hello\n2. How are you?\n3. Good bye') ps = 70 * '-' + '\nYou might have to try again if the phrases will be inserted differently.' print(ps) while True: user_input = str(input('Please input the choosen phrase: ')).upper() if userInput == 'HELLO': print('Hello to you too!') elif userInput == 'HOW ARE YOU?': print('Fine, thanks for asking.') elif userInput == 'GOOD BYE': break else: print('Try again.')
class Member: def __init__( self, name: str, linkedin_url: str = None, github_url: str = None ) -> None: self.name = name self.linkedin_url = linkedin_url self.github_url = github_url def sidebar_markdown(self): markdown = f'<b style="display: inline-block; vertical-align: middle; height: 100%">{self.name}</b>' if self.linkedin_url is not None: markdown += f' <a href={self.linkedin_url} target="_blank"><img src="https://dst-studio-template.s3.eu-west-3.amazonaws.com/linkedin-logo-black.png" alt="linkedin" width="25" style="vertical-align: middle; margin-left: 5px"/></a> ' if self.github_url is not None: markdown += f' <a href={self.github_url} target="_blank"><img src="https://dst-studio-template.s3.eu-west-3.amazonaws.com/github-logo.png" alt="github" width="20" style="vertical-align: middle; margin-left: 5px"/></a> ' return markdown
class Member: def __init__(self, name: str, linkedin_url: str=None, github_url: str=None) -> None: self.name = name self.linkedin_url = linkedin_url self.github_url = github_url def sidebar_markdown(self): markdown = f'<b style="display: inline-block; vertical-align: middle; height: 100%">{self.name}</b>' if self.linkedin_url is not None: markdown += f' <a href={self.linkedin_url} target="_blank"><img src="https://dst-studio-template.s3.eu-west-3.amazonaws.com/linkedin-logo-black.png" alt="linkedin" width="25" style="vertical-align: middle; margin-left: 5px"/></a> ' if self.github_url is not None: markdown += f' <a href={self.github_url} target="_blank"><img src="https://dst-studio-template.s3.eu-west-3.amazonaws.com/github-logo.png" alt="github" width="20" style="vertical-align: middle; margin-left: 5px"/></a> ' return markdown
class TransactionError(Exception): def __init__(self, message): self.message = message # Call the base class constructor with the parameters it needs super().__init__(message) class UserError(Exception): def __init__(self, message): self.message = message # Call the base class constructor with the parameters it needs super().__init__(message) class HackerError(Exception): def __init__(self, message, low_level=False, victim_chat_id=None): self.message = message self.low_level = low_level self.victim_chat_id = victim_chat_id # Call the base class constructor with the parameters it needs super().__init__(message) class AddressRecordError(Exception): def __init__(self, message): self.message = message # Call the base class constructor with the parameters it needs super().__init__(message) class MessageError(Exception): def __init__(self, message): self.message = message # Call the base class constructor with the parameters it needs super().__init__(message)
class Transactionerror(Exception): def __init__(self, message): self.message = message super().__init__(message) class Usererror(Exception): def __init__(self, message): self.message = message super().__init__(message) class Hackererror(Exception): def __init__(self, message, low_level=False, victim_chat_id=None): self.message = message self.low_level = low_level self.victim_chat_id = victim_chat_id super().__init__(message) class Addressrecorderror(Exception): def __init__(self, message): self.message = message super().__init__(message) class Messageerror(Exception): def __init__(self, message): self.message = message super().__init__(message)
def e_sum(x, y): return x + y def e_sub(x, y): return x - y
def e_sum(x, y): return x + y def e_sub(x, y): return x - y
s = set(); print(s, type(s)) s = set([1,2,3]); print(s, type(s)) s = set([1,2,3,2,1]); print(s, type(s)) s = {}; print(s, type(s))#dict s = {1,2,3,2,1}; print(s, type(s))
s = set() print(s, type(s)) s = set([1, 2, 3]) print(s, type(s)) s = set([1, 2, 3, 2, 1]) print(s, type(s)) s = {} print(s, type(s)) s = {1, 2, 3, 2, 1} print(s, type(s))
class EventRecorder(object): def __init__(self): super(EventRecorder, self).__init__() self.events = {} self.timestamp = 0 def record(self, event_name, **kwargs): assert event_name not in self.events, "Event {} already recorded".format(event_name) self.timestamp += 1 self.events[event_name] = Event(self.timestamp, kwargs) def __getitem__(self, event_name): return self.events[event_name] class Event(object): happened = True def __init__(self, timestamp, info): super(Event, self).__init__() self.timestamp = timestamp self.info = info
class Eventrecorder(object): def __init__(self): super(EventRecorder, self).__init__() self.events = {} self.timestamp = 0 def record(self, event_name, **kwargs): assert event_name not in self.events, 'Event {} already recorded'.format(event_name) self.timestamp += 1 self.events[event_name] = event(self.timestamp, kwargs) def __getitem__(self, event_name): return self.events[event_name] class Event(object): happened = True def __init__(self, timestamp, info): super(Event, self).__init__() self.timestamp = timestamp self.info = info
level = [ (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 0, 0, 0, 0, 0, 2, 1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #0-2 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #3-5 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 0, 0, 0, 0, 0, 2, 1), #6-8 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #9-11 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #12-14 (1, 0, 0, 0, 0, 0, 2, 1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #15-17 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #18-20 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 0, 0, 0, 0, 0, 2, 1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #21-23 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #24-26 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 0, 0, 1, 0, 1, 0, 1), #27-29 (1, 1 ,0 ,1 ,1 ,0 ,0 ,1), (0, 0, 0, 0, 0, 0, 0, 1), (1, 1, 0, 1, 1, 0, 0, 1), #30-32 (0, 0, 0, 0, 0, 0, 0 ,1), (1, 0, 0, 0, 0, 0, 0, 1), (1, 0, 0, 0, 0, 0, 0, 1), #33-35 (1, 0, 0, 0, 0, 0, 0, 0), (1, 0, 0, 0, 0, 0, 0 ,0), (0, 0, 0, 0, 0, 0, 0, 0), #36-38 (1, 0, 0, 1, 1, 1, 0, 1), (1, 0, 0, 1, 1, 1 ,0 ,1), (1, 0, 0, 0, 1, 1, 1, 1), #39-41 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #42-44 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #45-47 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #48-50 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #51-53 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #54-56 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #57-59 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #60-62 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #63-65 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #66-68 (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), (1, 1 ,1 ,1 ,1 ,1 ,1 ,1), #69-71 ]
level = [(1, 1, 1, 1, 1, 1, 1, 1), (1, 0, 0, 0, 0, 0, 2, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 0, 0, 0, 0, 0, 2, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 0, 0, 0, 0, 0, 2, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 0, 0, 0, 0, 0, 2, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 0, 0, 1, 0, 1, 0, 1), (1, 1, 0, 1, 1, 0, 0, 1), (0, 0, 0, 0, 0, 0, 0, 1), (1, 1, 0, 1, 1, 0, 0, 1), (0, 0, 0, 0, 0, 0, 0, 1), (1, 0, 0, 0, 0, 0, 0, 1), (1, 0, 0, 0, 0, 0, 0, 1), (1, 0, 0, 0, 0, 0, 0, 0), (1, 0, 0, 0, 0, 0, 0, 0), (0, 0, 0, 0, 0, 0, 0, 0), (1, 0, 0, 1, 1, 1, 0, 1), (1, 0, 0, 1, 1, 1, 0, 1), (1, 0, 0, 0, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1)]